/* ============ PokerSpot App · animated rebuild ============ */

@font-face { font-family: 'Grato'; src: url('/assets/fonts/GratoGroteskCY-Super-Desktop.otf') format('opentype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Grato'; src: url('/assets/fonts/GratoGroteskCY-Black-Desktop.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Grato'; src: url('/assets/fonts/GratoGroteskCY-Medium-Desktop.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'InterPS'; src: url('/assets/fonts/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'InterPS'; src: url('/assets/fonts/Inter-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'InterPS'; src: url('/assets/fonts/Inter-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0b1220;
  --bg-deep: #070c16;
  --card: #0e1930;
  --card-2: #101f3a;
  --line: rgba(70, 122, 231, 0.55);
  --line-dim: rgba(70, 122, 231, 0.25);
  --blue: #0033ff;
  --blue-soft: #3b82f6;
  --blue-hi: #5ea1ff;
  --yellow: #ffcd00;
  --green: #22c55e;
  --green-bg: #0d2b1c;
  --red: #c51a1a;
  --text: #f4f7fc;
  --dim: #8b97ab;
  --dim-2: #5b6779;
  --radius: 20px;
  --nav-h: 92px;
  --grato: 'Grato', 'InterPS', sans-serif;
  --inter: 'InterPS', 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--inter);
  overflow-x: hidden;
  min-height: 100dvh;
}

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font-family: inherit; }
a { color: var(--blue-hi); }
img { max-width: 100%; }
.hidden { display: none !important; }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
#preloader video { width: 10rem; height: 10rem; object-fit: contain; }

/* ---------- app shell ---------- */
#app { min-height: 100dvh; }
.screen {
  min-height: 100dvh;
  padding: 24px 20px calc(var(--nav-h) + 28px);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.screen--auth { padding-bottom: 40px; display: flex; flex-direction: column; }

.h-page {
  font-family: var(--grato); font-weight: 800; font-size: 34px;
  letter-spacing: 0.01em; margin-bottom: 18px;
}
.h-grato { font-family: var(--grato); font-weight: 800; text-transform: uppercase; }

/* ---------- generic card ---------- */
.card {
  background: linear-gradient(160deg, var(--card) 0%, #0c1526 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.card + .card { margin-top: 14px; }
.card--tap { cursor: pointer; user-select: none; width: 100%; text-align: left; color: var(--text); display: block; }
.card--green { background: linear-gradient(160deg, #0e3320 0%, #0a2417 100%); border-color: rgba(46, 204, 113, 0.55); }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
  padding: 7px 14px; border-radius: 999px;
}
.badge--yellow { background: var(--yellow); color: #131313; }
.badge--green { background: rgba(34, 197, 94, 0.14); color: #35e07c; border: 1px solid rgba(34, 197, 94, 0.5); text-transform: uppercase; }
.badge--grey { background: rgba(139, 151, 171, 0.15); color: var(--dim); border: 1px solid rgba(139, 151, 171, 0.35); text-transform: uppercase; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px 22px;
  border-radius: 18px;
  font-size: 17px; font-weight: 700;
  position: relative; overflow: hidden;
  transition: filter 0.2s;
  will-change: transform;
}
.btn--primary { background: linear-gradient(90deg, #10298f 0%, #3b82f6 100%); color: #fff; }
.btn--white { background: #eef1f6; color: #10131a; }
.btn--ghost { background: transparent; color: var(--dim); font-weight: 500; }
.btn--outline { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn:disabled { opacity: 0.45; filter: grayscale(0.4); cursor: default; }
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.35); transform: scale(0);
}

/* ---------- inputs ---------- */
.field { margin-bottom: 14px; }
.input {
  width: 100%; padding: 17px 18px;
  background: rgba(20, 32, 56, 0.55);
  border: 1px solid rgba(90, 110, 145, 0.45);
  border-radius: 16px;
  color: var(--text); font-size: 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input::placeholder { color: var(--dim-2); }
.input:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); background: rgba(24, 39, 70, 0.7); }
.input--error { border-color: #e05252 !important; box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15) !important; }
.form-error { color: #ff7b7b; font-size: 14px; margin: 4px 2px 10px; min-height: 18px; }

/* ---------- tabs ---------- */
.tabs {
  position: relative; display: flex;
  background: rgba(18, 28, 48, 0.8);
  border: 1px solid rgba(70, 122, 231, 0.2);
  border-radius: 18px; padding: 5px;
  margin-bottom: 18px;
}
.tabs .tab {
  flex: 1; padding: 13px 10px; text-align: center;
  font-size: 15.5px; font-weight: 600; color: var(--dim);
  position: relative; z-index: 1; border-radius: 14px;
  transition: color 0.25s;
}
.tabs .tab.active { color: var(--text); }
.tabs .tab-pill {
  position: absolute; top: 5px; bottom: 5px; left: 0;
  background: rgba(37, 66, 126, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px; z-index: 0;
}

/* ---------- auth ---------- */
.auth-logo {
  font-family: var(--grato); font-weight: 900;
  font-size: clamp(34px, 12.5vw, 62px);
  text-align: center; letter-spacing: 0.01em; line-height: 0.95;
  margin: 9vh 0 1vh; user-select: none; white-space: nowrap;
}
.auth-logo span { display: inline-block; will-change: transform; }
.auth-logo .heart { color: var(--red); }
.auth-sub { color: var(--dim); text-align: center; margin: 26px 0 20px; font-size: 16.5px; }
.auth-suits { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.auth-suits span { position: absolute; font-size: 26px; opacity: 0; color: #21335c; will-change: transform; }
.screen--auth form, .screen--auth .auth-actions { position: relative; z-index: 1; }
.auth-tg { background: #2aabee; color: #fff; }
.auth-note { color: var(--dim); font-size: 14.5px; margin-top: 16px; line-height: 1.45; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--dim-2); margin: 20px 0; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(90, 110, 145, 0.3); }

/* ---------- lobby ---------- */
.lobby-hero { min-height: 178px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.lobby-hero .t-title { font-family: var(--grato); font-weight: 800; font-size: 30px; line-height: 1.05; }
.lobby-hero .t-meta { display: flex; gap: 26px; }
.lobby-hero .t-meta b { font-size: 26px; font-weight: 800; }
.lobby-hero .t-meta i { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); text-transform: uppercase; margin-left: 6px; }

.card-art { position: relative; min-height: 168px; display: flex; align-items: flex-start; padding: 22px; }
.card-art .art-title { font-family: var(--grato); font-weight: 800; font-size: 30px; line-height: 1.05; position: relative; z-index: 1; }
.card-art .art-sub { position: absolute; bottom: 18px; left: 22px; font-size: 19px; font-weight: 600; z-index: 1; }
.card-art img.art {
  position: absolute; right: -6px; bottom: -8px; height: 105%;
  max-width: 72%; object-fit: contain; object-position: right bottom;
  pointer-events: none;
}
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.quick {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(160deg, var(--card) 0%, #0c1526 100%);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 17px 16px; font-weight: 800; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: left;
  color: var(--text);
}
.quick .q-ico {
  flex: 0 0 38px; height: 38px; border-radius: 11px;
  background: #eef1f6; color: #10131a;
  display: flex; align-items: center; justify-content: center;
}
.quick .q-ico svg { width: 20px; height: 20px; }

/* ---------- tournaments ---------- */
.t-card { display: block; width: 100%; text-align: left; color: var(--text); }
.t-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; font-size: 16px; }
.t-card .row + .row { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 13px; }
.t-card .tt { font-family: var(--grato); font-weight: 800; font-size: 26px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.t-card .chev { color: rgba(255, 255, 255, 0.7); flex: 0 0 auto; margin-top: 6px; }
.t-card b { font-weight: 700; }
.t-card .loc { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: 0.05em; font-size: 14px; text-transform: uppercase; }

/* tournament detail */
.detail-hero {
  margin: -24px -20px 18px; padding: 68px 20px 26px;
  background: linear-gradient(180deg, #10275e 0%, rgba(11, 18, 32, 0) 100%);
}
.detail-hero h1 { font-family: var(--grato); font-weight: 800; font-size: 38px; line-height: 1.02; margin-top: 14px; }
.back-fab {
  position: absolute; top: 18px; left: 16px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(24, 39, 70, 0.75); border: 1px solid rgba(90, 110, 145, 0.4);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.info-list { padding: 0; }
.info-row { display: flex; gap: 16px; padding: 17px 0; align-items: flex-start; }
.info-row + .info-row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.info-row .i-ico { flex: 0 0 30px; color: #b9c6da; padding-top: 2px; }
.info-row .i-val { font-size: 18px; font-weight: 700; line-height: 1.3; }
.info-row .i-cap { color: var(--dim); font-size: 14.5px; margin-top: 3px; }
.detail-text { line-height: 1.55; font-size: 15.5px; color: #cdd6e4; }
.detail-text h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; text-align: center; }
.register-bar { position: sticky; bottom: calc(var(--nav-h) + 10px); margin-top: 20px; z-index: 5; }

/* ---------- leaderboard ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 4%; margin: 26px 0 26px; }
.pod { display: flex; flex-direction: column; align-items: center; width: 30%; text-align: center; }
.pod .ava-wrap { position: relative; width: 100%; }
.pod .ava {
  width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 3px solid #8b97ab; background: #1a2540; display: block;
}
.pod--1 .ava { border-color: var(--blue-soft); box-shadow: 0 0 26px rgba(59, 130, 246, 0.45); }
.pod--3 .ava { border-color: #c96b3a; }
.pod .rank-chip {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: #8b97ab; color: #0c1526;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  border: 3px solid var(--bg);
}
.pod--1 .rank-chip { background: var(--blue-soft); color: #fff; }
.pod--3 .rank-chip { background: #c96b3a; color: #fff; }
.pod--1 { width: 36%; }
.pod .p-name { margin-top: 20px; font-weight: 800; font-size: 19px; }
.pod .p-pts { color: var(--blue-hi); font-weight: 700; font-size: 16px; }
.pod .p-delta { color: #35e07c; font-size: 13.5px; font-weight: 600; }

.lb-head { display: grid; grid-template-columns: 44px 1fr 74px 92px; color: var(--dim); font-size: 13.5px; padding: 0 14px 10px; }
.lb-head span:last-child, .lb-head span:nth-child(3) { text-align: right; }
.lb-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(14, 25, 48, 0.6); }
.lb-row { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) 36px 100px; align-items: center; gap: 8px; padding: 12px 12px; }
.lb-row + .lb-row { border-top: 1px solid rgba(70, 122, 231, 0.22); }
.lb-row.me { background: rgba(59, 130, 246, 0.14); }
.lb-row .r-pos { color: var(--dim-2); font-style: italic; font-weight: 600; }
.lb-row .r-ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #1a2540; }
.lb-row .r-name { font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .r-status { color: var(--dim); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.lb-row .r-games { text-align: right; font-weight: 600; font-size: 16px; }
.lb-row .r-pts { text-align: right; font-weight: 800; font-size: 17px; white-space: nowrap; }
.lb-row .r-pts small { display: block; color: var(--blue-hi); font-weight: 600; font-size: 12px; }

/* ---------- shop ---------- */
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-f {
  flex: 0 0 auto; padding: 12px 20px; border-radius: 15px;
  border: 1px solid transparent; color: var(--dim); font-size: 15px; font-weight: 600;
  background: rgba(18, 28, 48, 0.8);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip-f.active { color: var(--text); border-color: var(--line); background: rgba(37, 66, 126, 0.45); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.prod {
  background: var(--card); border: 1px solid var(--line-dim); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.prod .p-img { aspect-ratio: 1; background: #f5f5f5; }
.prod .p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod .p-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.prod .p-name { font-weight: 700; font-size: 16.5px; line-height: 1.25; min-height: 42px; }
.prod .p-tags { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.prod .p-cat { background: rgba(139, 151, 171, 0.15); border: 1px solid rgba(139, 151, 171, 0.3); color: var(--dim); padding: 4px 9px; border-radius: 8px; }
.prod .p-left { color: #ff8a3c; font-weight: 600; }
.prod .p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.prod .p-price { color: var(--blue-hi); font-weight: 800; font-size: 21px; }
.prod .p-add {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 500; line-height: 1;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.prod.sold { opacity: 0.55; }
.top-link { color: var(--blue-hi); font-weight: 600; font-size: 16px; }
.screen-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.screen-top .h-page { margin-bottom: 0; }
.screen-top .with-back { display: flex; align-items: center; gap: 14px; }

/* cart fab */
.cart-fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + 16px); z-index: 40;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
  border-radius: 999px; padding: 15px 22px; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

/* ---------- profile ---------- */
.prof-head { display: flex; align-items: center; justify-content: center; position: relative; margin: 26px 0 8px; }
.prof-ava-wrap { position: relative; width: 132px; height: 132px; }
.prof-ava {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: #2a3548; border: 3px solid var(--blue-soft);
  box-shadow: 0 0 34px rgba(59, 130, 246, 0.35);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.prof-ava svg { width: 62%; height: 62%; color: #f0f2f6; }
.prof-side {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: #101f3a; border: 1px solid var(--line-dim);
}
.prof-side--l { left: calc(50% - 158px); overflow: hidden; }
.prof-side--r { right: calc(50% - 158px); color: var(--blue-hi); font-weight: 800; font-size: 20px; }
.prof-side--r small { font-size: 12px; letter-spacing: 0.1em; color: var(--dim); font-weight: 700; }
.prof-side--l img { width: 74%; }
.prof-name { text-align: center; font-family: var(--grato); font-weight: 800; font-size: 32px; margin-top: 16px; }
.prof-status { text-align: center; color: var(--dim-2); margin-top: 8px; font-size: 16px; }

.level-bar { height: 12px; background: rgba(139, 151, 171, 0.18); border-radius: 999px; margin: 26px 0 12px; overflow: hidden; }
.level-bar .fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #5ea1ff); }
.level-caps { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; }
.level-caps b { color: var(--text); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 20px; }
.stat-card { padding: 18px; }
.stat-card .s-ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 26px;
  background: rgba(59, 130, 246, 0.2); color: var(--blue-hi);
  display: flex; align-items: center; justify-content: center;
}
.stat-card .s-cap { color: var(--dim); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.stat-card .s-val { font-size: 26px; font-weight: 800; margin-top: 6px; }

.chips-bank { display: flex; align-items: center; gap: 12px; min-height: 116px; margin-top: 14px; }
.chips-bank .cb-val { color: var(--yellow); font-weight: 900; font-size: 34px; font-family: var(--grato); }
.chips-bank .cb-cap { color: var(--yellow); font-weight: 700; letter-spacing: 0.06em; font-size: 15px; text-transform: uppercase; }
.chips-bank .coin {
  position: absolute; border: 6px dashed rgba(59, 130, 246, 0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #2563eb; font-family: var(--grato); font-weight: 900;
  background: rgba(19, 34, 63, 0.6);
}
.sect-cap { color: var(--text); letter-spacing: 0.08em; font-weight: 700; font-size: 14.5px; text-transform: uppercase; margin: 24px 0 12px; }
.empty-box {
  border: 1px solid var(--line-dim); border-radius: var(--radius);
  padding: 44px 20px; text-align: center; color: var(--dim-2); font-size: 17px;
  background: rgba(14, 25, 48, 0.5);
}
.menu-list { margin-top: 22px; }
.menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 17px 6px; color: var(--text); font-size: 17px; font-weight: 600;
}
.menu-item + .menu-item { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.menu-item .m-ico { color: var(--dim); flex: 0 0 26px; }
.menu-item .m-chev { margin-left: auto; color: var(--dim-2); }
.menu-item.danger { color: #ff7b7b; }

/* statuses */
.status-track { position: relative; margin: 30px 0 10px; padding-left: 34px; }
.status-track::before {
  content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 3px;
  background: rgba(139, 151, 171, 0.25); border-radius: 2px;
}
.status-node { position: relative; padding: 0 0 34px; }
.status-node .s-dot {
  position: absolute; left: -30px; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: #33415c; border: 3px solid var(--bg);
}
.status-node.reached .s-dot { background: var(--blue-soft); box-shadow: 0 0 12px rgba(59, 130, 246, 0.7); }
.status-node .s-name { font-weight: 800; font-size: 19px; }
.status-node .s-pts { color: var(--dim); font-size: 14px; margin-top: 3px; }
.status-node.current .s-name { color: var(--blue-hi); }

/* ---------- training ---------- */
.pos-wheel-wrap { display: flex; justify-content: center; padding: 10px 0 6px; }
.pos-wheel { position: relative; width: 300px; height: 300px; }
.pos-wheel .table-oval {
  position: absolute; inset: 13%;
  border: 2px solid var(--line); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #12305d 0%, #0c1c38 70%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; text-align: center;
}
.pos-wheel .seat {
  position: absolute; width: 52px; height: 52px; margin: -26px;
  border-radius: 50%; background: #101f3a; border: 1px solid var(--line-dim);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--dim);
}
.pos-wheel .seat.hot { background: var(--blue); color: #fff; border-color: var(--blue-hi); box-shadow: 0 0 18px rgba(0, 51, 255, 0.55); }
.pos-desc { text-align: center; color: var(--dim); font-size: 15px; line-height: 1.5; min-height: 68px; padding: 0 8px; }
.pos-desc b { color: var(--text); font-size: 17px; display: block; margin-bottom: 6px; }

/* ---------- QA accordion ---------- */
.qa-item { border: 1px solid var(--line-dim); border-radius: 16px; margin-bottom: 12px; overflow: hidden; background: rgba(14, 25, 48, 0.6); }
.qa-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left; padding: 18px; font-size: 16.5px; font-weight: 600; color: var(--text);
}
.qa-q .qa-chev { transition: none; color: var(--dim); flex: 0 0 auto; }
.qa-a { height: 0; overflow: hidden; }
.qa-a-inner { padding: 0 18px 18px; color: var(--dim); line-height: 1.55; font-size: 15.5px; }

/* ---------- bottom nav ---------- */
#bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 0 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 520px; margin: 0 auto;
  background: rgba(16, 24, 40, 0.92);
  border: 1px solid rgba(70, 122, 231, 0.25);
  backdrop-filter: blur(14px);
  border-radius: 26px;
  display: flex; align-items: flex-end; justify-content: space-around;
  padding: 12px 6px 10px;
  position: relative;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--dim-2); width: 66px; position: relative; padding-top: 2px;
}
.nav-item .nav-icon svg { width: 26px; height: 26px; display: block; }
.nav-item .nav-label { font-size: 12.5px; font-weight: 600; }
.nav-item.active { color: #fff; }
.nav-qr { transform: translateY(-24px); color: var(--dim); }
.nav-qr .qr-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #14264a 0%, #0d1830 75%);
  border: 2px solid var(--blue-soft);
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-hi);
}
.nav-qr .qr-circle svg { width: 34px; height: 34px; }
.nav-qr .nav-label { margin-top: 4px; }

/* ---------- sheets & toasts ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 6, 12, 0.6); backdrop-filter: blur(4px);
  opacity: 0;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81;
  max-width: 520px; margin: 0 auto;
  background: #0f1e3d;
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 26px 26px 0 0;
  padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 26px);
  transform: translateY(105%);
  max-height: 86dvh; overflow-y: auto;
}
.sheet .grab { width: 64px; height: 5px; border-radius: 3px; background: rgba(139, 151, 171, 0.4); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 18px; }
.sheet-head h2 { font-family: var(--grato); font-weight: 800; font-size: 25px; }
.sheet-close {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(139, 151, 171, 0.15); color: #dfe6ef;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.qr-box { background: #fff; border-radius: 22px; padding: 18px; width: min(300px, 76vw); margin: 14px auto 8px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-id { text-align: center; color: var(--dim-2); margin-top: 6px; font-size: 15px; }

#toast-root { position: fixed; top: 16px; left: 0; right: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: #14264a; border: 1px solid var(--line);
  color: var(--text); font-size: 15px; font-weight: 600;
  border-radius: 14px; padding: 13px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 86vw;
}
.toast--err { border-color: rgba(224, 82, 82, 0.7); background: #3a1520; }

/* ---------- onboarding ---------- */
.onb { min-height: 100dvh; display: flex; flex-direction: column; padding: 30px 22px 26px; max-width: 520px; margin: 0 auto; }
.onb .onb-title { font-family: var(--grato); font-weight: 800; font-size: 40px; line-height: 1.0; text-transform: uppercase; }
.onb .onb-body { flex: 1; display: flex; flex-direction: column; }
.rules-scroll {
  flex: 1; overflow-y: auto; margin: 20px 0; line-height: 1.6; color: #cdd6e4; font-size: 15.5px;
  mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  max-height: calc(100dvh - 260px);
}
.rules-scroll h3 { color: var(--text); margin: 18px 0 8px; }
.tour-slide { flex: 1; display: flex; flex-direction: column; text-align: center; justify-content: space-between; padding: 4vh 0 0; }
.tour-slide .tour-emoji { font-size: 96px; line-height: 1; margin: 3vh 0; }
.tour-slide .tour-text { color: #cdd6e4; font-size: 17.5px; line-height: 1.55; padding: 0 6px; }
.tour-dots { display: flex; justify-content: center; gap: 8px; margin: 26px 0 18px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(139, 151, 171, 0.35); transition: none; }
.tour-dots i.on { width: 40px; background: #fff; }
.onb-emoji-big { font-size: 88px; text-align: center; margin: 6vh 0; }

/* ---------- skeleton ---------- */
.skel {
  position: relative; overflow: hidden;
  background: rgba(30, 45, 78, 0.5); border-radius: var(--radius);
}
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(120, 150, 210, 0.14) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }

.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; }
}
