:root {
  --plum-900: #1E0728;
  --plum-800: #2A0B37;
  --plum-700: #3A0F4A;
  --plum-600: #49155C;
  --plum-500: #5E1D75;
  --plum-400: #7A2A96;
  --violet-400: #A855F7;
  --violet-300: #C084FC;
  --violet-200: #DDBEFB;
  --danger: #F87171;
  --success: #4ADE80;

  --violet-600: #7A2A96;
  --l-bg: #FFFFFF;
  --l-surface: #FFFFFF;
  --l-line: #ECE2F5;
  --l-track: #F3EBFA;
  --l-ink: #1B0A24;
  --l-muted: #6C5A77;

  --card: rgba(255, 255, 255, 0.055);
  --card-line: rgba(255, 255, 255, 0.14);
  --field: rgba(255, 255, 255, 0.05);

  --on-dark: #FFFFFF;
  --on-dark-soft: #C9B3D9;
  --on-dark-muted: #9C86AE;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-dark-soft);
  background:
    radial-gradient(900px 520px at 20% -8%, var(--plum-600) 0%, transparent 62%),
    linear-gradient(175deg, var(--plum-800) 0%, var(--plum-900) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

p { margin: 0; }

a { color: var(--violet-300); text-decoration: none; touch-action: manipulation; }
a:hover { color: var(--violet-200); }

:focus-visible {
  outline: 3px solid var(--violet-400);
  outline-offset: 3px;
  border-radius: 8px;
}

.svg-defs { position: absolute; width: 0; height: 0; }

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-a {
  top: -140px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: rgba(168, 85, 247, 0.30);
}

.orb-b {
  bottom: -180px;
  left: -140px;
  width: 380px;
  height: 380px;
  background: rgba(94, 29, 117, 0.42);
}

.view {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-5) var(--space-3) var(--space-6);
}

.auth {
  width: 100%;
  max-width: 440px;
  display: grid;
  gap: var(--space-4);
  justify-items: center;
}

.auth-brand img {
  width: auto;
  height: 76px;
  object-fit: contain;
}

.auth-card {
  width: 100%;
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-head { margin-bottom: var(--space-4); }

.auth-head p {
  margin-top: var(--space-2);
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

.auth-foot {
  font-size: 0.94rem;
  color: var(--on-dark-muted);
  text-align: center;
}

.form { display: grid; gap: var(--space-3); }

.field { display: grid; gap: var(--space-2); }

.field-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-dark);
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--field);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-md);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.field-control:focus-within {
  border-color: var(--violet-400);
  background: rgba(255, 255, 255, 0.08);
}

.field-prefix {
  padding-left: 16px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  background: none;
  border: 0;
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
}

.input:focus { outline: none; }
.input::placeholder { color: rgba(201, 179, 217, 0.45); }

.input-phone {
  padding-left: 10px;
  letter-spacing: 0.04em;
}

.reveal {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: 4px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: var(--on-dark-muted);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.reveal:hover {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.07);
}

.icon { width: 20px; height: 20px; }

.stepper-count {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.stepper {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.stepper-bar {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.13);
  transition: background-color 260ms ease;
}

.stepper-bar.is-active { background: var(--violet-400); }

.step-panel {
  display: grid;
  gap: var(--space-3);
}

.step-panel[hidden] { display: none; }

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-1);
  cursor: pointer;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border: 1.5px solid var(--card-line);
  border-radius: 8px;
  background: var(--field);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.check-mark {
  width: 15px;
  height: 15px;
  color: #22062E;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.check input:checked + .check-box {
  background: var(--violet-400);
  border-color: var(--violet-400);
}

.check input:checked + .check-box .check-mark {
  opacity: 1;
  transform: scale(1);
}

.check input:focus-visible + .check-box {
  outline: 3px solid var(--violet-400);
  outline-offset: 3px;
}

.check-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.field-check.has-error .check-box { border-color: var(--danger); }

.btn-plain {
  min-height: 48px;
  background: none;
  border-color: transparent;
  color: var(--on-dark-muted);
  font-size: 0.94rem;
}

.btn-plain:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.05); }

.field-hint {
  font-size: 0.84rem;
  color: var(--on-dark-muted);
}

.field-hint.is-ok { color: var(--success); }

.field-state {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 16px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 200ms ease;
}

.field-state.is-ok { background: var(--success); }
.field-state.is-error { background: var(--danger); }

.field-state.is-checking {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--violet-300);
  background: transparent;
  animation: spin 700ms linear infinite;
}

.field-error {
  min-height: 0;
  font-size: 0.86rem;
  color: var(--danger);
}

.field-error:empty { display: none; }

.field.has-error .field-control { border-color: var(--danger); }

.form-note {
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn-block { width: 100%; }

.btn-primary {
  background: var(--violet-400);
  color: #22062E;
  box-shadow: 0 12px 28px rgba(122, 42, 150, 0.4);
}

.btn-primary:hover { background: var(--violet-300); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  margin-top: var(--space-2);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--card-line);
  color: var(--on-dark-soft);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); }

.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn.is-loading { position: relative; color: transparent; }

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(34, 6, 46, 0.35);
  border-top-color: #22062E;
  animation: spin 700ms linear infinite;
}

.btn-ghost.is-loading::after {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: var(--on-dark);
}

@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-md);
  background: rgba(30, 7, 40, 0.96);
  color: var(--on-dark);
  font-size: 0.94rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast-error { border-color: rgba(248, 113, 113, 0.55); }

body.theme-light {
  color: var(--l-ink);
  background: var(--l-bg);
}

body.theme-light .backdrop { display: none; }

body.theme-light .view {
  display: block;
  place-items: initial;
  padding: 0;
}

.app {
  min-height: 100dvh;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  padding-top: calc(var(--space-3) + env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--l-line);
}

.app-logo {
  width: auto;
  height: 26px;
  max-width: 130px;
  object-fit: contain;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
  margin-left: auto;
  margin-right: var(--space-1);
  text-align: right;
}

.identity-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--l-ink);
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-phone {
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--l-muted);
  font-variant-numeric: tabular-nums;
}

.app-viewport {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  overflow-x: hidden;
}

.page {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-4);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.page.is-out {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.page.from-right { transform: translateX(30px); opacity: 0; }
.page.from-left { transform: translateX(-30px); opacity: 0; }
.page.to-left { transform: translateX(-30px); opacity: 0; }
.page.to-right { transform: translateX(30px); opacity: 0; }

.greeting {
  font-size: 0.94rem;
  color: var(--l-muted);
}

.page-title {
  margin-top: 2px;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--l-ink);
}

.section-title {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--l-ink);
}

.card {
  padding: var(--space-4);
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(43, 12, 56, 0.06);
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-600);
}

.card-title {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--l-ink);
}

.card-phase {
  margin-top: var(--space-1);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--violet-600);
}

.card-meta {
  margin-top: var(--space-2);
  font-size: 0.94rem;
  color: var(--l-muted);
}

.facts {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
}

.facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.facts dt {
  font-size: 0.9rem;
  color: var(--l-muted);
}

.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--l-ink);
}

.facts dd.strong {
  font-size: 1.12rem;
  color: var(--violet-600);
}

.competition .progress { margin-top: var(--space-4); }
.competition .btn { margin-top: var(--space-4); }

.progress {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--l-track);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--plum-500) 0%, var(--violet-400) 100%);
}

.match-card .btn { margin-top: var(--space-4); }
.match-card.is-live { border-color: var(--violet-400); box-shadow: 0 12px 34px rgba(168, 85, 247, 0.18); }
.match-card.is-out { background: var(--l-bg); }

.match-note {
  margin-top: var(--space-3);
  font-size: 0.92rem;
  color: var(--l-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: var(--space-4);
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
}

.pill-wait {
  background: var(--l-track);
  color: var(--violet-600);
}

.empty { text-align: center; }
.empty .btn { margin-top: var(--space-4); }

.building {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.building-mark {
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-2);
  border: 2px dashed var(--l-line);
  border-radius: 16px;
}

.building h1 {
  font-size: 1.4rem;
  color: var(--l-ink);
}

.building p { color: var(--l-muted); }

.splash {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  opacity: 0;
  transition: opacity 340ms ease;
}

.splash.is-visible { opacity: 1; }
.splash.is-leaving { opacity: 0; }

.splash-glow {
  grid-area: 1 / 1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 68%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.splash-logo {
  grid-area: 1 / 1;
  width: auto;
  height: 104px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.88) translateY(8px);
  transition: opacity 560ms ease 90ms, transform 720ms cubic-bezier(0.22, 1, 0.36, 1) 90ms;
}

.splash.is-visible .splash-glow { opacity: 1; transform: scale(1); }
.splash.is-visible .splash-logo { opacity: 1; transform: scale(1) translateY(0); }
.splash.is-leaving .splash-logo { transform: scale(1.04); }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom));
  pointer-events: none;
}

.tabbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100vw - 24px);
  padding: 7px;
  border-radius: var(--radius-pill);
  background: var(--plum-900);
  box-shadow: 0 14px 34px rgba(30, 7, 40, 0.35);
  pointer-events: auto;
}

.tab-pill {
  position: absolute;
  top: 7px;
  left: 0;
  height: 50px;
  width: 0;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-pill.no-anim { transition: none; }

.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 50px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: rgba(214, 194, 228, 0.6);
  transition: color 240ms ease;
}

.tab:hover { color: var(--on-dark); }
.tab.is-active { padding: 0 16px; color: var(--plum-900); }

.tab-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.tab-label {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.tab.is-active .tab-label {
  max-width: 140px;
  margin-left: 9px;
  opacity: 1;
  transition: opacity 220ms ease 140ms;
}

.app.is-fixed {
  height: 100dvh;
  padding-bottom: 0;
  overflow: hidden;
}

.page-wallet {
  height: calc(100dvh - var(--shell-top, 74px) - var(--shell-bottom, 82px));
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.wallet-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--on-dark);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(168, 85, 247, 0.55) 0%, transparent 62%),
    linear-gradient(150deg, var(--plum-600) 0%, var(--plum-900) 100%);
  box-shadow: 0 16px 38px rgba(43, 12, 56, 0.28);
}

.wallet-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-200);
}

.wallet-amount {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.wallet-stats {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.wallet-stats div { flex: 1 1 0; min-width: 0; }

.wallet-stats dt {
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}

.wallet-stats dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.tx-scroll {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid var(--l-line);
  border-radius: var(--radius-lg);
  background: var(--l-surface);
}

.tx-list { margin: 0; padding: 0; list-style: none; }

.tx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px var(--space-4);
  border-bottom: 1px solid var(--l-line);
}

.tx:last-child { border-bottom: 0; }

.tx-main { display: grid; gap: 2px; min-width: 0; }

.tx-amount {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--l-ink);
}

.tx-date {
  font-size: 0.8rem;
  color: var(--l-muted);
}

.tx-status {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--l-track);
  color: var(--violet-600);
}

.tx-completed { background: rgba(74, 222, 128, 0.16); color: #15803D; }
.tx-failed, .tx-cancelled { background: rgba(248, 113, 113, 0.16); color: #B91C1C; }

.tx-empty {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  font-size: 0.92rem;
  color: var(--l-muted);
}

.faq-group { display: grid; gap: var(--space-2); }

.faq-group-title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-600);
}

.faq-items {
  display: grid;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--l-line); }
.faq-item:last-child { border-bottom: 0; }

.faq-question {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px var(--space-4);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--l-ink);
  transition: background-color 180ms ease;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--l-track); }
.faq-question span { flex: 1; min-width: 0; }

.faq-chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--l-muted);
  transform: rotate(90deg);
  transition: transform 240ms ease;
}

.faq-item[open] .faq-question { background: var(--l-track); }
.faq-item[open] .faq-chevron { transform: rotate(-90deg); }

.faq-answer {
  padding: 0 var(--space-4) 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--l-muted);
}

.faq-answer p + p { margin-top: var(--space-2); }

.faq-list {
  margin: var(--space-2) 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.faq-list li { padding-left: 2px; }

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

.page-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.page-back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: -10px;
  border-radius: 50%;
  color: var(--l-ink);
}

.page-back:hover { background: var(--l-track); }

.page-head-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--l-ink);
}

.setting-group {
  display: grid;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.setting {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 68px;
  padding: 14px var(--space-4);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--l-line);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.setting:last-child { border-bottom: 0; }
.setting:hover { background: var(--l-track); }

.setting-text { display: grid; gap: 2px; flex: 1; min-width: 0; }

.setting-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--l-ink);
}

.setting-description {
  font-size: 0.84rem;
  color: var(--l-muted);
}

.setting-chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--l-muted);
}

.page-history {
  height: calc(100dvh - var(--shell-top, 74px) - var(--shell-bottom, 82px));
  grid-template-rows: auto auto minmax(0, 1fr);
}

.segment {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--l-track);
}

.segment-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  background: var(--l-surface);
  box-shadow: 0 4px 12px rgba(43, 12, 56, 0.1);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.segment-pill.no-anim { transition: none; }

.segment-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 42px;
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--l-muted);
  cursor: pointer;
  transition: color 220ms ease;
}

.segment-btn.is-active { color: var(--l-ink); }

.history-scroll {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid var(--l-line);
  border-radius: var(--radius-lg);
  background: var(--l-surface);
}

.page-contact {
  height: calc(100dvh - var(--shell-top, 74px) - var(--shell-bottom, 82px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 0;
  padding: var(--space-3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid var(--l-line);
  border-radius: var(--radius-lg);
  background: var(--l-track);
}

.chat-intro {
  margin: auto;
  padding: var(--space-4);
  text-align: center;
  font-size: 0.92rem;
  color: var(--l-muted);
}

.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
}

.bubble-mine {
  align-self: flex-end;
  background: var(--plum-600);
  color: var(--on-dark);
  border-bottom-right-radius: 6px;
}

.bubble-them {
  align-self: flex-start;
  background: var(--l-surface);
  color: var(--l-ink);
  border: 1px solid var(--l-line);
  border-bottom-left-radius: 6px;
}

.bubble-text {
  font-size: 0.94rem;
  line-height: 1.45;
  word-break: break-word;
}

.bubble-time {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  text-align: right;
  opacity: 0.7;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--l-line);
  border-radius: 26px;
  background: var(--l-surface);
}

.composer-input {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  padding: 12px 0;
  border: 0;
  background: none;
  resize: none;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--l-ink);
}

.composer-input:focus { outline: none; }
.composer-input::placeholder { color: var(--l-muted); }

.composer-send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--violet-400);
  color: #22062E;
  cursor: pointer;
  transition: background-color 180ms ease, opacity 180ms ease;
}

.composer-send:hover { background: var(--violet-300); }
.composer-send:disabled { opacity: 0.5; cursor: not-allowed; }

.sheet-tall { max-height: 90dvh; }

.legal {
  margin: var(--space-4) 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--l-muted);
}

.legal h3 {
  margin: var(--space-4) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--l-ink);
}

.legal h3:first-child { margin-top: 0; }
.legal p + p { margin-top: var(--space-2); }

.legal-note {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--l-line);
  font-size: 0.84rem;
  font-style: italic;
}

.rows {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
}

.row {
  display: grid;
  gap: 2px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--l-line);
}

.row:last-child { padding-bottom: 0; border-bottom: 0; }

.row dt {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--l-muted);
}

.row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--l-ink);
  font-variant-numeric: tabular-nums;
}

.row-note {
  margin-top: var(--space-1);
  font-size: 0.82rem;
  color: var(--l-muted);
}

.row-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.row-action-text h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--l-ink);
}

.row-action-text p {
  margin-top: 2px;
  font-size: 0.86rem;
  color: var(--l-muted);
}

.btn-soft {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  background: var(--l-track);
  color: var(--violet-600);
  font-size: 0.92rem;
}

.btn-soft:hover { background: #E9DCF6; }

.btn-outline {
  background: transparent;
  border-color: var(--l-line);
  color: var(--l-ink);
}

.btn-outline:hover { background: var(--l-track); }

.btn-danger {
  background: transparent;
  border-color: rgba(185, 28, 28, 0.28);
  color: #B91C1C;
}

.btn-danger:hover { background: rgba(185, 28, 28, 0.08); }

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(27, 10, 36, 0.55);
  opacity: 0;
  transition: opacity 280ms ease;
}

.sheet-overlay.is-visible { opacity: 1; }

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-3) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom));
  background: var(--l-surface);
  border-radius: 26px 26px 0 0;
  transform: translateY(100%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-overlay.is-visible .sheet { transform: translateY(0); }

.sheet-grip {
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--l-line);
}

.sheet-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--l-ink);
}

.sheet-text {
  margin-top: var(--space-2);
  font-size: 0.92rem;
  color: var(--l-muted);
}

.sheet-form { margin-top: var(--space-4); }

.sheet .field-label { color: var(--l-ink); }

.sheet .field-control {
  background: var(--l-track);
  border-color: var(--l-line);
}

.sheet .field-control:focus-within {
  background: var(--l-surface);
  border-color: var(--violet-400);
}

.sheet .input { color: var(--l-ink); }
.sheet .btn-plain { color: var(--l-muted); }
.sheet .btn-plain:hover { color: var(--l-ink); background: var(--l-track); }

body.sheet-open { overflow: hidden; }

.skeleton-line {
  height: 58px;
  margin: var(--space-3);
  border-radius: var(--radius-md);
}

.skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--l-track) 25%, #EFE6F7 37%, var(--l-track) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-title { height: 28px; width: 60%; }
.skeleton-card { height: 210px; border-radius: var(--radius-lg); }

@keyframes shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

@media (max-width: 359px) {
  .tab { min-width: 42px; padding: 0 10px; }
  .tab.is-active { padding: 0 13px; }
  .tab-label { font-size: 0.82rem; }
  .tab.is-active .tab-label { max-width: 84px; margin-left: 7px; }
}

@media (min-width: 560px) {
  .auth-card { padding: var(--space-5); }
  .view { padding-inline: var(--space-4); }
  .auth-brand img { height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body.theme-game {
  color: var(--on-dark);
  background:
    radial-gradient(900px 520px at 20% -8%, var(--plum-500) 0%, transparent 62%),
    linear-gradient(175deg, var(--plum-700) 0%, var(--plum-900) 100%);
  background-attachment: fixed;
}

body.theme-game .backdrop { display: none; }

body.theme-game .view {
  display: block;
  place-items: initial;
  padding: 0;
}

.game {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: calc(var(--space-3) + env(safe-area-inset-top)) var(--space-3) calc(var(--space-4) + env(safe-area-inset-bottom));
}

.game.is-gold {
  background:
    radial-gradient(760px 420px at 80% 0%, rgba(242, 193, 78, 0.32) 0%, transparent 60%),
    linear-gradient(170deg, rgba(120, 84, 12, 0.55) 0%, rgba(30, 7, 40, 0.2) 70%);
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-200);
}

.game.is-gold .game-top { color: var(--gold-200, #F6DFA6); }

.game-body {
  display: grid;
  align-content: center;
  gap: var(--space-3);
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.game-card {
  padding: var(--space-4);
  background: #FFFFFF;
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(15, 3, 22, 0.42);
  color: var(--l-ink);
  text-align: center;
}

.game.is-gold .game-card {
  box-shadow: 0 26px 60px rgba(70, 46, 4, 0.45);
  border: 1px solid rgba(242, 193, 78, 0.5);
}

.card-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-600);
}

.card-heading {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--l-ink);
}

.card-question {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--l-ink);
}

.card-note {
  margin-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--l-muted);
}

.card-divider {
  margin-top: var(--space-4);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-muted);
}

.countdown {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--violet-600);
}

.countdown.small { font-size: 1.6rem; }

.reveal-count {
  margin: var(--space-3) auto 0;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid var(--violet-400);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--violet-600);
  animation: pop 900ms ease infinite;
}

.reveal-count.is-zero { animation: none; opacity: 0.35; }

@keyframes pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

.timer, .progress-bar {
  height: 8px;
  margin-top: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--l-track);
  overflow: hidden;
}

.progress-bar {
  margin-top: 0;
  margin-bottom: var(--space-1);
  background: rgba(255, 255, 255, 0.16);
}

.timer-fill, .progress-bar .progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--plum-500), var(--violet-400));
  transition: width 120ms linear;
}

.timer-fill.is-low, .progress-bar .progress-fill.is-low {
  background: linear-gradient(90deg, #B91C1C, #F87171);
}

.answers {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.answer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--l-line);
  border-radius: var(--radius-pill);
  background: var(--l-surface);
  color: var(--l-ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.answer:hover:not(:disabled) { border-color: var(--violet-400); background: var(--l-track); }
.answer:active:not(:disabled) { transform: scale(0.99); }
.answer:disabled { cursor: default; opacity: 0.75; }

.answer-label {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--l-track);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet-600);
}

.answer-text { flex: 1; min-width: 0; }

.answer.is-mine { border-color: var(--violet-400); background: #F3E8FD; opacity: 1; }
.answer.is-right { border-color: #4ADE80; background: rgba(74, 222, 128, 0.16); }
.answer.is-wrong { border-color: #F87171; background: rgba(248, 113, 113, 0.14); }

.seats {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.seat {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 66px;
  transition: opacity 300ms ease;
}

.seat.is-out { opacity: 0.34; filter: grayscale(1); }

.seat-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.seat-badge.small { width: 34px; height: 34px; }

.seat.is-me .seat-badge { border-color: var(--violet-300); background: rgba(168, 85, 247, 0.32); }

.seat-initials {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--on-dark);
}

.seat-name {
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--on-dark-soft);
}

.seat-score {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet-200);
}

.seat-gain {
  position: absolute;
  top: -6px;
  right: -10px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: #4ADE80;
  color: #06301A;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
}

.seat.is-gaining .seat-gain { animation: gain 1100ms ease forwards; }
.seat.is-gaining .seat-badge { animation: bump 620ms ease; }

@keyframes gain {
  0% { opacity: 0; transform: translateY(4px) scale(0.7); }
  25% { opacity: 1; transform: translateY(-6px) scale(1); }
  75% { opacity: 1; transform: translateY(-12px) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

@keyframes bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18); }
}

.waiting-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.waiting-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--l-track);
  font-size: 0.9rem;
  color: var(--l-muted);
  opacity: 0.55;
}

.waiting-list li.is-here { opacity: 1; color: var(--l-ink); }
.waiting-list .seat-badge { background: var(--plum-600); border-color: transparent; }

.subjects {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.subject {
  display: block;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--l-line);
  border-radius: var(--radius-md);
  background: var(--l-surface);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--l-ink);
  cursor: pointer;
}

button.subject:hover:not(:disabled) { border-color: var(--violet-400); background: var(--l-track); }
.subject:disabled, .subject.is-taken { opacity: 0.4; cursor: default; }

.subject-taken {
  float: right;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--l-muted);
}

.own-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.own-score-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.own-score-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--on-dark);
}

.podium {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.podium-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--l-track);
}

.podium-item .seat-badge { width: 36px; height: 36px; background: var(--plum-600); border-color: transparent; }
.podium-item.is-me { outline: 2px solid var(--violet-400); }
.podium-item.is-out { opacity: 0.4; filter: grayscale(1); }

.podium-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--l-ink);
  text-align: left;
}

.podium-score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--violet-600);
}

.game-card-final .btn { margin-top: var(--space-4); }

.group-card .btn { margin-top: var(--space-4); }

.roster {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.roster-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--l-track);
}

.roster-item.is-me { outline: 2px solid var(--violet-400); }

.roster-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--plum-600);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
}

.roster-main { display: grid; gap: 1px; min-width: 0; }

.roster-name {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--l-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-stat { font-size: 0.78rem; color: var(--l-muted); }

.btn-locked {
  background: var(--l-track);
  border-color: var(--l-line);
  color: var(--l-muted);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.play-date {
  margin-top: var(--space-2);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--violet-600);
}

.btn-play {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--plum-500) 0%, var(--violet-400) 55%, var(--violet-300) 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.45);
  animation: play-pulse 2.2s ease-in-out infinite;
}

.btn-play::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: play-shine 2.6s ease-in-out infinite;
}

.btn-play:hover { color: #FFFFFF; }

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 14px 42px rgba(192, 132, 252, 0.7); }
}

@keyframes play-shine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}

.bell {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--l-line);
  border-radius: 50%;
  background: var(--l-surface);
  color: var(--l-ink);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.bell:hover { background: var(--l-track); }
.bell.has-unread { border-color: var(--violet-400); }
.bell-icon { width: 21px; height: 21px; }

.bell.has-unread .bell-icon { animation: bell-swing 2.6s ease-in-out infinite; transform-origin: 50% 15%; }

@keyframes bell-swing {
  0%, 70%, 100% { transform: rotate(0deg); }
  76% { transform: rotate(11deg); }
  82% { transform: rotate(-9deg); }
  88% { transform: rotate(5deg); }
  94% { transform: rotate(-3deg); }
}

.bell-count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--l-surface);
  background: var(--violet-400);
  color: #22062E;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
}

.notif-holder { margin: var(--space-4) 0; }

.notif-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.notif {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--l-track);
}

.notif.is-new {
  background: #F6EEFC;
  border-left: 3px solid var(--violet-400);
}

.notif-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--plum-600);
  color: var(--violet-200);
}

.notif-icon .icon { width: 17px; height: 17px; }

.notif-main { display: grid; gap: 2px; min-width: 0; }

.notif-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--l-ink);
}

.notif-body { font-size: 0.86rem; line-height: 1.45; color: var(--l-muted); }

.notif-time {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--l-muted);
}

.notif-empty {
  padding: var(--space-5) var(--space-3);
  text-align: center;
  font-size: 0.92rem;
  color: var(--l-muted);
}

.pay-body { margin-top: var(--space-4); }

.pay-facts {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--l-line);
  border-radius: var(--radius-md);
  background: var(--l-track);
}

.pay-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.pay-facts dt { font-size: 0.88rem; color: var(--l-muted); }

.pay-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--l-ink);
  font-variant-numeric: tabular-nums;
}

.pay-facts dd.strong { font-size: 1.1rem; color: var(--violet-600); }

.pay-state {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2) var(--space-5);
  text-align: center;
}

.pay-state h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--l-ink);
}

.pay-state p { font-size: 0.92rem; line-height: 1.5; color: var(--l-muted); }

.pay-hint {
  margin-top: var(--space-2);
  font-size: 0.84rem !important;
  font-weight: 600;
  color: var(--violet-600) !important;
}

.pay-state.is-ok h3 { color: #15803D; }
.pay-state.is-error h3 { color: #B91C1C; }

.pay-spinner {
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  border: 3px solid var(--l-track);
  border-top-color: var(--violet-400);
  animation: spin 800ms linear infinite;
}

.refund-note {
  margin-bottom: var(--space-4);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--l-track);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--l-muted);
}

.field-suffix {
  padding-left: 0;
  padding-right: 16px;
  color: var(--l-muted);
}

.sheet .field-hint { color: var(--l-muted); }
.sheet .btn-danger { margin-top: var(--space-2); }

.notice {
  display: grid;
  gap: var(--space-1);
  padding: 14px 16px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-left: 3px solid var(--violet-400);
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.1);
}

.notice-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--on-dark);
}

.notice-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.install-bar {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(520px, calc(100% - 24px));
  padding: 12px 14px;
  border: 1px solid var(--l-line);
  border-radius: 20px;
  background: var(--l-surface);
  box-shadow: 0 18px 44px rgba(43, 12, 56, 0.24);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.install-bar.is-visible { opacity: 1; transform: translate(-50%, 0); }

.install-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.install-text { display: grid; gap: 1px; flex: 1; min-width: 0; }

.install-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--l-ink);
}

.install-sub {
  font-size: 0.78rem;
  color: var(--l-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-bar .btn-sm {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.install-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--l-muted);
  cursor: pointer;
}

.install-close:hover { background: var(--l-track); color: var(--l-ink); }
.install-close .icon { width: 16px; height: 16px; }

body.theme-game .install-bar { display: none; }

.install-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-5) var(--space-3) calc(var(--space-5) + env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 520px at 20% -8%, var(--plum-500) 0%, transparent 62%),
    linear-gradient(175deg, var(--plum-700) 0%, var(--plum-900) 100%);
}

.install-card {
  width: 100%;
  max-width: 440px;
  padding: var(--space-5) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.install-brand {
  width: auto;
  height: 62px;
  margin: 0 auto var(--space-4);
  object-fit: contain;
}

.install-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.install-lead {
  margin-top: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--on-dark-soft);
}

.install-benefits {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.install-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--on-dark-soft);
}

.install-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--violet-300);
}

.install-steps {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--on-dark-soft);
}

.install-steps strong { color: var(--on-dark); }

.install-step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--violet-400);
  color: #22062E;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.install-inline {
  display: inline-block;
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  color: var(--violet-300);
}

.install-note {
  margin-bottom: var(--space-4);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.install-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
  border: 2px solid rgba(74, 222, 128, 0.5);
  animation: pop 700ms ease;
}

.install-check .install-icon { width: 26px; height: 26px; color: #4ADE80; }

.install-card .btn-plain { margin-top: var(--space-2); color: var(--on-dark-muted); }
.install-card .btn-plain:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.07); }

.field-prefix-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 12px;
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 52px;
  padding: 0 22px 0 4px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--on-dark);
  cursor: pointer;
}

.field-select option { color: #1B0A24; }

.field-select-chevron {
  position: absolute;
  right: 2px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: rotate(90deg);
  color: var(--on-dark-muted);
}

.home-stack { display: grid; gap: var(--space-4); }

.wallet-action {
  margin-top: var(--space-3);
  width: 100%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.22);
}

.wallet-action:hover { background: rgba(255, 255, 255, 0.24); }
.wallet-action:disabled { opacity: 0.5; }

.vc-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.vc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--on-dark);
}

.vc-icon { width: 18px; height: 18px; color: var(--violet-200); }

.vc-track {
  flex: 1 1 auto;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.vc-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--violet-300), var(--violet-200));
  transition: width 320ms ease;
}

.work-zone {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
}

.work-button {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(120px 120px at 30% 20%, rgba(168, 85, 247, 0.9) 0%, transparent 70%),
    linear-gradient(150deg, var(--plum-500) 0%, var(--plum-700) 100%);
  box-shadow: 0 18px 40px rgba(122, 42, 150, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-button:active { transform: scale(0.96); }
.work-button:disabled { opacity: 0.5; box-shadow: none; }

.work-ring {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.work-icon { width: 42px; height: 42px; color: #FFFFFF; }

.work-label {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--l-ink);
}

.work-note {
  max-width: 280px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--l-muted);
}

.referral-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.referral-title { min-width: 0; }

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--l-line);
  border-radius: var(--radius-md);
  background: var(--l-track);
  color: var(--violet-600);
  cursor: pointer;
  transition: background-color 180ms ease;
}

.icon-button:hover { background: #E9DCF6; }

.referral-link {
  margin-top: var(--space-3);
  padding: 12px 14px;
  border: 1px dashed var(--l-line);
  border-radius: var(--radius-md);
  background: var(--l-track);
  font-size: 0.86rem;
  color: var(--l-muted);
  word-break: break-all;
}

.btn-icon { width: 18px; height: 18px; margin-right: 8px; }

.gate { position: relative; }

.gate-content {
  filter: grayscale(1) blur(2px);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.gate-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--shell-top, 76px);
  bottom: var(--shell-bottom, 96px);
  z-index: 8;
  display: grid;
  place-items: center;
  padding: var(--space-3) var(--space-4);
  pointer-events: none;
}

.gate-card {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow-y: auto;
  padding: var(--space-4);
  border: 1px solid var(--l-line);
  border-radius: var(--radius-lg);
  background: var(--l-surface);
  box-shadow: 0 24px 60px rgba(43, 12, 56, 0.22);
}

.gate-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--l-track);
  color: var(--violet-600);
}

.gate-icon-svg { width: 26px; height: 26px; }

.gate-title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 700;
  color: var(--l-ink);
}

.gate-text {
  margin-top: var(--space-2);
  font-size: 0.94rem;
  color: var(--l-muted);
}

.gate-card .pay-facts { margin-top: var(--space-4); }
.gate-card .btn { margin-top: var(--space-4); }

.gate-note {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.82rem;
  color: var(--l-muted);
}

.work-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: rgba(30, 7, 40, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.work-overlay.is-visible { opacity: 1; }

.work-panel {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 340px;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--l-surface);
  text-align: center;
}

.work-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--l-ink);
}

.work-panel-text {
  font-size: 0.9rem;
  color: var(--l-muted);
}

.work-check {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
  color: #15803D;
}

.work-check-icon { width: 30px; height: 30px; }

.work-gain {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #15803D;
}

.tx-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--l-track);
  color: var(--violet-600);
}

.tx-icon .icon { width: 18px; height: 18px; }
.tx-icon.is-credit { background: rgba(74, 222, 128, 0.16); color: #15803D; }
.tx-icon.is-debit { background: rgba(168, 85, 247, 0.14); color: var(--violet-600); }

.tx-main { flex: 1 1 auto; }

.tx-success { background: rgba(74, 222, 128, 0.16); color: #15803D; }
.tx-pending { background: rgba(168, 85, 247, 0.14); color: var(--violet-600); }

.pay-facts dd { text-align: right; }
.pay-facts dd.nowrap { white-space: nowrap; font-size: 0.94rem; }

body.theme-dark-full { background: #120418; }

.work-screen {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #120418;
}

.work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: calc(env(safe-area-inset-top) + 14px) var(--space-4) 14px;
}

.work-exit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--on-dark);
  cursor: pointer;
}

.work-exit-icon { width: 18px; height: 18px; }

.work-vc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.18);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--on-dark);
}

.camera-stage {
  position: relative;
  overflow: hidden;
  margin: 0 var(--space-4);
  border-radius: var(--radius-lg);
  background: #1B0A24;
}

.camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease, filter 200ms ease;
}

.camera-stage.is-live .camera-feed { opacity: 1; }
.camera-stage.is-frozen .camera-feed { filter: brightness(0.72) saturate(0.7); }

.camera-blind {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  text-align: center;
  color: var(--on-dark-muted);
  opacity: 0;
  transition: opacity 300ms ease;
}

.camera-stage.is-blind .camera-blind { opacity: 1; }
.camera-blind-icon { width: 42px; height: 42px; }

.camera-frame {
  position: absolute;
  inset: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.camera-flash {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
}

.camera-flash.is-flashing { animation: shutter-flash 220ms ease-out; }

@keyframes shutter-flash {
  0% { opacity: 0.92; }
  100% { opacity: 0; }
}

.work-gain-bubble {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 12px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(21, 128, 61, 0.92);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.work-gain-bubble.is-visible {
  opacity: 1;
  transform: translate(-50%, -6px);
}

.work-controls {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4) calc(env(safe-area-inset-bottom) + var(--space-4));
}

.shutter {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.shutter-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.shutter-core {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 140ms ease, background-color 140ms ease;
}

.shutter:active .shutter-core { transform: scale(0.88); }
.shutter.is-shooting .shutter-core { transform: scale(0.7); background: var(--violet-300); }
.shutter.is-shooting .shutter-ring { animation: shutter-wait 1s linear infinite; }
.shutter:disabled { opacity: 0.42; cursor: default; }

@keyframes shutter-wait {
  from { transform: rotate(0deg); border-top-color: var(--violet-300); }
  to { transform: rotate(360deg); border-top-color: var(--violet-300); }
}

.work-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.work-balance { display: grid; gap: 2px; }

.work-balance-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.work-balance-amount {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.install-bar[hidden] { display: none; }

.withdraw-summary {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--l-track);
  display: grid;
  gap: 6px;
}

.withdraw-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.withdraw-summary-label {
  font-size: 0.86rem;
  color: var(--l-muted);
}

.withdraw-summary-value {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--violet-600);
}

.withdraw-summary-hint {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--l-ink);
}

.withdraw-amount-field { margin-top: var(--space-3); }

.field-amount .input-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: left;
}

.field-amount .field-suffix {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--l-muted);
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-amount {
  padding: 8px 14px;
  border: 1px solid var(--l-line);
  border-radius: var(--radius-pill);
  background: var(--l-track);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--violet-600);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.quick-amount:hover { background: #E9DCF6; border-color: transparent; }

.input-amount::-webkit-outer-spin-button,
.input-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-amount { -moz-appearance: textfield; }

.field-amount { padding-right: 4px; }


body.theme-auth {
  background: #FFFFFF;
  color: var(--l-ink);
}

body.theme-auth .backdrop { display: none; }

body.theme-auth .view {
  background: #FFFFFF;
  padding: var(--space-4) var(--space-4) var(--space-5);
}

body.theme-auth .auth-card {
  background: #FFFFFF;
  border: 1px solid var(--l-line);
  box-shadow: none;
  padding: var(--space-3);
}

body.theme-auth h1 {
  color: var(--l-ink);
}

body.theme-auth .auth-head p {
  color: var(--l-muted);
}

body.theme-auth .auth-foot {
  color: var(--l-muted);
}

body.theme-auth .auth-foot a {
  color: var(--violet-600);
  font-weight: 700;
}

body.theme-auth .field-label {
  color: var(--l-ink);
}

body.theme-auth .field-control {
  background: var(--l-track);
  border: 1px solid transparent;
}

body.theme-auth .field-control:focus-within {
  border-color: var(--violet-400);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
}

body.theme-auth .input,
body.theme-auth .field-select {
  color: var(--l-ink);
}

body.theme-auth .input::placeholder {
  color: rgba(108, 90, 119, 0.55);
}

body.theme-auth .field-select option {
  color: var(--l-ink);
}

body.theme-auth .field-select-chevron {
  color: var(--l-muted);
}

body.theme-auth .field-hint {
  color: var(--l-muted);
}

body.theme-auth .field-hint.is-ok {
  color: #15803D;
}

body.theme-auth .notice {
  background: var(--l-track);
  border: 1px solid var(--l-line);
  color: var(--l-ink);
}

body.theme-auth .notice-title { color: var(--l-ink); }
body.theme-auth .notice-text { color: var(--l-muted); }

body.theme-auth .stepper-count {
  color: var(--l-muted);
}

body.theme-auth .stepper-bar {
  background: var(--l-line);
}

body.theme-auth .stepper-bar.is-active {
  background: var(--violet-600);
}

body.theme-auth .check-text {
  color: var(--l-ink);
}

body.theme-auth .check-box {
  border-color: var(--l-line);
  background: #FFFFFF;
}

body.theme-auth .reveal {
  color: var(--l-muted);
}

body.theme-auth .btn-plain {
  color: var(--violet-600);
}

.auth-brand img {
  width: auto;
  height: 44px;
  max-width: 220px;
  object-fit: contain;
}
