:root {
  --ink: #111111;
  --muted: #5f6368;
  --line: #dadce0;
  --red: #e30613;
  --bg: #ffffff;
  --font: "Lato", "Frutiger for UBS", Frutiger, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content-w: min(420px, 100%);
  --site-brand-h: 4.75rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--site-brand-h) + 0.75rem) 1.25rem 2rem;
}

.site-brand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--site-brand-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 0.65rem;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 55%,
      rgba(255, 255, 255, 0.85) 80%,
      rgba(255, 255, 255, 0)
    );
}

.site-brand__logo {
  display: block;
  height: 40px;
  width: auto;
  pointer-events: auto;
}

.site-brand__logo-btn {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 4px;
}

.site-brand__logo-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.site-brand--game {
  pointer-events: auto;
}

.site-brand--wallet {
  justify-content: center;
  pointer-events: auto;
  padding-inline: 1.25rem;
}

.site-brand--wallet .site-brand__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content-w);
  pointer-events: auto;
}

.site-brand--wallet .site-brand__logo {
  flex: 0 0 auto;
}

.wallet-lang {
  position: relative;
  flex: 0 0 auto;
}

.wallet-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0 0 0.4rem;
  border: 0;
  border-bottom: 2px solid var(--red);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
}

.wallet-lang__toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wallet-lang__chevron {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.wallet-lang.is-open .wallet-lang__chevron {
  transform: rotate(-135deg);
  margin-top: 0.1rem;
}

.wallet-lang__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 50;
  min-width: 4.5rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
}

.wallet-lang__item {
  margin: 0;
}

.wallet-lang__option {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.wallet-lang__option:hover {
  background: #f7f7f8;
  text-decoration: none;
}

.wallet-lang__option--current {
  color: var(--red);
}

body > main {
  width: var(--content-w);
  margin-block: auto;
}

/* Touch kiosk / large displays: scale in CSS (sharp) — not browser zoom (blurry).
   4K note: at 200% OS scaling the browser sees ~1920px; at 150% ~2560px; at 100% 3840px. */
@media (min-width: 600px) {
  body.game-kiosk {
    --content-w: min(520px, 88vw);
    --site-brand-h: 5.25rem;
  }
}

@media (min-width: 900px) {
  body.game-kiosk {
    --content-w: min(640px, 72vw);
    --site-brand-h: 5.75rem;
  }

  html:has(body.game-kiosk) {
    font-size: 112.5%;
  }

  body.game-kiosk .site-brand__logo {
    height: 48px;
  }
}

@media (min-width: 1200px) {
  body.game-kiosk {
    --content-w: min(760px, 58vw);
    --site-brand-h: 6rem;
  }

  html:has(body.game-kiosk) {
    font-size: 125%;
  }

  body.game-kiosk .site-brand__logo {
    height: 54px;
  }
}

@media (min-width: 1920px) {
  body.game-kiosk {
    --content-w: min(920px, 48vw);
    --site-brand-h: 6.75rem;
  }

  html:has(body.game-kiosk) {
    font-size: 150%;
  }

  body.game-kiosk .site-brand__logo {
    height: 64px;
  }
}

@media (min-width: 2560px) {
  body.game-kiosk {
    --content-w: min(1040px, 40vw);
    --site-brand-h: 7.25rem;
  }

  html:has(body.game-kiosk) {
    font-size: 162.5%;
  }

  body.game-kiosk .site-brand__logo {
    height: 72px;
  }
}

@media (min-width: 3840px) {
  body.game-kiosk {
    --content-w: min(1200px, 36vw);
    --site-brand-h: 7.75rem;
  }

  html:has(body.game-kiosk) {
    font-size: 175%;
  }

  body.game-kiosk .site-brand__logo {
    height: 80px;
  }
}

@media (pointer: coarse) and (min-width: 768px) {
  body.game-kiosk {
    --content-w: min(720px, 76vw);
  }
}

@media (pointer: coarse) and (min-width: 1920px) {
  body.game-kiosk {
    --content-w: min(960px, 50vw);
  }
}

@media (pointer: coarse) and (min-width: 3840px) {
  body.game-kiosk {
    --content-w: min(1280px, 38vw);
  }
}

/* Portrait kiosk (Sklera / Chrome OS, 4K Hochformat).
   Physical 4K portrait = 2160×3840; browser often sees ~1080×1920 (DPI scaling).
   Landscape min-width rules above miss this — scale by viewport height instead. */
@media (orientation: portrait) and (min-height: 1000px) {
  body.game-kiosk {
    --content-w: min(720px, 94vw);
    --site-brand-h: 5.5rem;
  }
}

@media (orientation: portrait) and (min-height: 1400px) {
  body.game-kiosk {
    --content-w: min(820px, 94vw);
    --site-brand-h: 6rem;
  }

  html:has(body.game-kiosk) {
    font-size: 125%;
  }

  body.game-kiosk .site-brand__logo {
    height: 52px;
  }
}

@media (orientation: portrait) and (min-height: 1800px) {
  body.game-kiosk {
    --content-w: min(960px, 95vw);
    --site-brand-h: 6.75rem;
  }

  html:has(body.game-kiosk) {
    font-size: 150%;
  }

  body.game-kiosk .site-brand__logo {
    height: 64px;
  }
}

@media (orientation: portrait) and (min-height: 3200px) {
  body.game-kiosk {
    --content-w: min(1120px, 96vw);
    --site-brand-h: 7.5rem;
  }

  html:has(body.game-kiosk) {
    font-size: 175%;
  }

  body.game-kiosk .site-brand__logo {
    height: 76px;
  }
}

/* JS fallback when embedded webview reports orientation incorrectly */
@media (min-height: 1400px) {
  body.game-kiosk.game-kiosk-portrait {
    --content-w: min(820px, 94vw);
    --site-brand-h: 6rem;
  }

  html:has(body.game-kiosk-portrait) {
    font-size: 125%;
  }

  body.game-kiosk.game-kiosk-portrait .site-brand__logo {
    height: 52px;
  }
}

@media (min-height: 1800px) {
  body.game-kiosk.game-kiosk-portrait {
    --content-w: min(960px, 95vw);
    --site-brand-h: 6.75rem;
  }

  html:has(body.game-kiosk-portrait) {
    font-size: 150%;
  }

  body.game-kiosk.game-kiosk-portrait .site-brand__logo {
    height: 64px;
  }
}

@media (min-height: 3200px) {
  body.game-kiosk.game-kiosk-portrait {
    --content-w: min(1120px, 96vw);
    --site-brand-h: 7.5rem;
  }

  html:has(body.game-kiosk-portrait) {
    font-size: 175%;
  }

  body.game-kiosk.game-kiosk-portrait .site-brand__logo {
    height: 76px;
  }
}

.wallet-page {
  width: var(--content-w);
  text-align: center;
}

.wallet-page--consent {
  text-align: left;
}

.consent-title {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  font-weight: 900;
}

.consent-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.1rem 0 1.25rem;
}

.consent-copy {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

.consent-copy p {
  margin: 0 0 0.85rem;
}

.consent-subtitle {
  margin: 0 0 0.85rem;
  font-size: clamp(1.12rem, 3.6vw, 1.28rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.consent-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.15rem;
}

.consent-inline-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.consent-inline-link:hover {
  color: #b8050f;
}

.terms-body {
  margin-bottom: 1.5rem;
}

.terms-body h2,
.terms-body h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: clamp(1.08rem, 3.2vw, 1.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.terms-body h2:first-child,
.terms-body h3:first-child {
  margin-top: 0;
}

.terms-body p {
  margin: 0 0 0.85rem;
}

.terms-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.terms-body a:hover,
.terms-body a:focus-visible {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.terms-body a:visited {
  color: var(--ink);
}

.terms-body ul,
.terms-body ol {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.legal-links {
  margin: 0 0 1.75rem;
}

.legal-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.legal-links__item {
  margin: 0;
}

.legal-links__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink, #111);
  font-weight: 800;
  font-size: clamp(1rem, 2.8vw, 1.08rem);
  line-height: 1.35;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.legal-links__link:hover {
  color: var(--red, #e30613);
}

.legal-links__link:hover .legal-links__chevron {
  transform: translateX(2px);
}

.legal-links__chevron {
  color: var(--red, #e30613);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.4;
  cursor: pointer;
}

.consent-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--red);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ticket-art {
  width: min(280px, 85%);
  margin: 0 auto 1.75rem;
  display: block;
}

.ticket-card {
  width: min(320px, 100%);
  margin: 0 auto 1.75rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 3px solid #5f6368;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f7f7f8 100%);
  text-align: left;
  box-sizing: border-box;
}

.ticket-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
}

.ticket-card__brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.ticket-card__logo {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.ticket-card__rule {
  border: 0;
  border-top: 2px dashed rgba(17, 17, 17, 0.25);
  margin: 0.85rem 0 0.9rem;
}

.ticket-card__meta {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: start;
}

.ticket-card__field {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.ticket-card__field--date {
  text-align: left;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(17, 17, 17, 0.22);
}

.ticket-card__date-line {
  display: block;
  width: 72%;
  max-width: 5.5rem;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #d1d5db;
}

.ticket-card__body--no-qr .ticket-card__lines {
  width: 100%;
}

.ticket-card__body--no-qr .ticket-card__lines span:nth-child(1) { width: 92%; }
.ticket-card__body--no-qr .ticket-card__lines span:nth-child(2) { width: 78%; }
.ticket-card__body--no-qr .ticket-card__lines span:nth-child(3) { width: 64%; }

.ticket-card__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-card__value {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.ticket-card__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-card__body:not(.ticket-card__body--no-qr) {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
  align-items: end;
}

.ticket-card__body:not(.ticket-card__body--no-qr) .ticket-card__lines {
  flex: none;
  min-width: 0;
}

.ticket-card__body:not(.ticket-card__body--no-qr) .ticket-card__qr {
  justify-self: start;
  margin-left: calc(0.85rem + 2px); /* = Datum padding-left + border */
}

.ticket-card__lines {
  display: grid;
  gap: 0.55rem;
  flex: 1;
  padding-bottom: 0.35rem;
}

.ticket-card__lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
}

.ticket-card__lines span:nth-child(1) { width: 88%; background: #d1d5db; }
.ticket-card__lines span:nth-child(2) { width: 72%; }
.ticket-card__lines span:nth-child(3) { width: 58%; }

.ticket-card__qr {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  background: #fff;
  object-fit: contain;
}

.ticket-card__qr--placeholder {
  background: #111;
  position: relative;
}

.ticket-card__qr--placeholder span {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
}

.ticket-card__qr--placeholder span:nth-child(1) { top: 10px; left: 10px; }
.ticket-card__qr--placeholder span:nth-child(2) { top: 10px; right: 10px; }
.ticket-card__qr--placeholder span:nth-child(3) { bottom: 10px; left: 10px; }
.ticket-card__qr--placeholder span:nth-child(4) { top: 27px; left: 27px; width: 12px; height: 12px; }
.ticket-card__qr--placeholder span:nth-child(5) { bottom: 10px; right: 10px; }


.wallet-page h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.wallet-page .lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.wallet-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.wallet-history {
  width: 100%;
  margin-top: 2rem;
  text-align: left;
}

.wallet-history__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
}

.wallet-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.wallet-history__card {
  margin: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

.wallet-history__prize {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.wallet-history__card--win .wallet-history__prize {
  color: #0b6b34;
}

.wallet-history__card--lose .wallet-history__prize {
  color: #5f6368;
  font-weight: 700;
}

.wallet-history__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

.wallet-history__meta time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}

.wallet-history__meta-sep {
  color: #c5c5c7;
}

.wallet-history__place {
  min-width: 0;
  font-weight: 600;
  color: var(--muted);
}

.wallet-history__hint {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.wallet-history__redeem {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.wallet-history__filiale {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 2.5rem 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  touch-action: manipulation;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f6368' d='M1.2 1.1 6 5.9l4.8-4.8 1.1 1.1L6 8.1.1 2.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}

.wallet-history__filiale:focus-visible {
  outline: 2px solid var(--red, #e30613);
  outline-offset: 1px;
}

.wallet-history__filiale.is-invalid {
  border-color: var(--red, #e30613);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.15);
}

.wallet-history__filiale:disabled {
  opacity: 0.7;
  cursor: default;
}

.wallet-history__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--red, #e30613);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  font: inherit;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.wallet-history__check-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wallet-history__check:hover:not(:disabled),
.wallet-history__check:focus-visible:not(:disabled) {
  background: #b8050f;
  outline: none;
}

.wallet-history__check:disabled,
.wallet-history__check.is-done {
  background: #c4c4c4;
  cursor: default;
}

.wallet-history__check.is-pending {
  opacity: 0.65;
  cursor: wait;
}

.wallet-history__check-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.wallet-history__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #6b6f76;
}

.wallet-history__status-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .wallet-history__card--handover:not(.is-redeemed) .wallet-history__redeem {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .wallet-history__card--handover:not(.is-redeemed) .wallet-history__check {
    width: auto;
    min-width: 9.5rem;
    padding-inline: 1.25rem;
  }
}

/* Official-style badges with custom/translatable text */
.wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 320px);
  height: 68px;
  min-height: 68px;
  padding: 0 20px 0 14px;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 14px;
  -webkit-font-smoothing: antialiased;
}

.wallet-badge:hover { text-decoration: none; opacity: 0.92; }

.wallet-badge__icon-wrap {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.wallet-badge__icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.wallet-badge__icon--apple,
.wallet-badge__icon--google {
  width: 40px;
  height: 40px;
}

.wallet-badge--apple {
  justify-content: flex-start;
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.wallet-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
  text-align: left;
}

.wallet-badge__line1,
.wallet-badge__line2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wallet-badge--google {
  justify-content: flex-start;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #5e5e5e;
  font-family: "Google Sans", Roboto, Arial, Helvetica, sans-serif;
}

@media (max-width: 380px) {
  .wallet-badge {
    gap: 10px;
    padding-left: 12px;
    padding-right: 16px;
  }

  .wallet-badge__line1,
  .wallet-badge__line2 {
    font-size: 15px;
  }

  .wallet-badge__icon-wrap,
  .wallet-badge__icon,
  .wallet-badge__icon--apple,
  .wallet-badge__icon--google {
    width: 38px;
    height: 38px;
  }
}

.wallet-meta {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.wallet-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
  font-weight: 700;
}

.form-card {
  text-align: left;
  display: grid;
  gap: 0.95rem;
  margin-top: 0.5rem;
}

.form-card label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.form-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.form-card .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #b8050f;
  color: #fff;
  text-decoration: none;
}

.flash {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: left;
}

.flash-error {
  background: #fdecec;
  color: #b42318;
  border: 1px solid #f3c7c7;
}

.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
}

/* Shared game / coming-soon pages */
.front-page {
  width: var(--content-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.front-page h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 900;
}

.front-page .lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fafafa;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.langs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.langs a {
  color: var(--ink);
  text-decoration: none;
}

.langs a[aria-current="page"] {
  color: var(--red);
}
