:root {
  --bg: #1b1640;
  --bg-2: #241d55;
  --card: #2d2566;
  --card-2: #382e7a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #b7b0e0;
  --brand: #ff4f6d;
  --brand-2: #ff7a59;
  --gold: #ffc93c;
  --good: #2ed47a;
  --bad: #ff5a5f;
  --blue: #3d8bff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #3a2c8f 0%, transparent 70%), var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; max-width: 960px; margin: 0 auto;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 18px;
  box-shadow: 0 4px 14px rgba(255, 79, 109, 0.45);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--text); background: var(--card); }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--card); }
.me-chip .av { width: 32px; height: 32px; font-size: 18px; }
.me-chip small { color: var(--gold); font-weight: 800; }

.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); font-size: 24px; flex: none; }
.av.lg { width: 84px; height: 84px; font-size: 46px; }
.av.xl { width: 104px; height: 104px; font-size: 58px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 900; font-size: 17px;
  background: var(--card-2); transition: transform 0.08s, filter 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:hover { filter: brightness(1.08); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 22px rgba(255, 79, 109, 0.4); }
.btn.gold { background: var(--gold); color: #3a2a00; }
.btn.blue { background: var(--blue); }
.btn.ghost { background: transparent; border: 2px solid var(--line); }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 40px 0 24px; }
.hero .logo-mark { width: 96px; height: 96px; font-size: 48px; margin: 0 auto 18px; }
.hero h1 { font-size: clamp(40px, 9vw, 64px); }
.hero p { font-size: 18px; color: var(--muted); max-width: 520px; margin: 12px auto 28px; font-weight: 600; }
.hero .actions { display: grid; gap: 12px; max-width: 360px; margin: 0 auto; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 40px; }
.how .step { background: var(--card); border-radius: var(--radius); padding: 20px; }
.how .step b { display: block; font-size: 30px; margin-bottom: 6px; }
.how .step p { margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.section-title h2 { font-size: 22px; }

/* ---------- topics ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.topic-card {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: 22px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--c, var(--card)); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.12s;
}
.topic-card:hover { transform: translateY(-3px) rotate(-0.5deg); }
.topic-card::after { content: ''; position: absolute; inset: auto -30% -45% auto; width: 120%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.topic-card .emoji { font-size: 46px; line-height: 1; position: relative; z-index: 1; }
.topic-card .name { font-size: 18px; font-weight: 900; position: relative; z-index: 1; }
.topic-card .lvl { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 12px; font-weight: 900; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); }

/* ---------- topic page ---------- */
.banner { border-radius: 26px; padding: 26px 22px; background: var(--c); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.banner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.banner .emoji { font-size: 64px; line-height: 1; }
.banner h1 { font-size: 34px; margin-top: 10px; }
.banner p { margin: 6px 0 0; font-weight: 700; opacity: 0.9; }
.play-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat b { display: block; font-size: 24px; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; }
.progress { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #ff9f1c); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.lvl-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.league { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; background: rgba(0, 0, 0, 0.25); }
.league::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--lc, #9e9e9e); }

.tabs { display: flex; gap: 6px; background: var(--card); padding: 5px; border-radius: 999px; margin: 22px 0 14px; }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; color: var(--muted); font-weight: 900; }
.tabs button.on { background: var(--card-2); color: var(--text); }

.rank-list { display: grid; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border-radius: 14px; }
.rank-item .pos { width: 28px; text-align: center; font-weight: 900; color: var(--muted); }
.rank-item:nth-child(1) .pos { color: var(--gold); }
.rank-item:nth-child(2) .pos { color: #cfd8dc; }
.rank-item:nth-child(3) .pos { color: #ff9f6e; }
.rank-item .who { flex: 1; min-width: 0; }
.rank-item .who div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .who small { color: var(--muted); font-weight: 700; }
.rank-item .xp { font-weight: 900; color: var(--gold); }
.rank-item.me { outline: 2px solid var(--brand); }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); font-weight: 700; }

/* ---------- forms ---------- */
.auth { max-width: 400px; margin: 30px auto 0; }
.auth h1 { font-size: 32px; text-align: center; margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input {
  height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 700; outline: none;
}
.field input:focus { border-color: var(--brand); }
.form-error { color: var(--bad); min-height: 22px; text-align: center; margin: 4px 0 10px; }
.switch { text-align: center; color: var(--muted); margin-top: 18px; }
.switch a { color: var(--text); text-decoration: underline; }

/* ---------- matchmaking ---------- */
.center-screen { min-height: calc(100vh - 80px); display: grid; place-items: center; text-align: center; padding: 20px 0; }
.searching .ring { width: 150px; height: 150px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.searching .ring::before, .searching .ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--brand); animation: pulse 1.6s ease-out infinite; }
.searching .ring::after { animation-delay: 0.8s; }
@keyframes pulse { from { transform: scale(0.7); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.searching h2 { font-size: 26px; }
.searching p { color: var(--muted); }
.share-box { display: flex; gap: 8px; margin: 18px auto; max-width: 420px; }
.share-box input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--text); padding: 0 12px; font-weight: 700; }

/* ---------- match ---------- */
.match { max-width: 640px; margin: 0 auto; padding: 10px 16px 30px; min-height: min(100vh, 720px); display: flex; flex-direction: column; }
.players { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl.right { flex-direction: row-reverse; text-align: right; }
.pl .meta { min-width: 0; }
.pl .meta div { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .meta small { color: var(--muted); font-size: 12px; }
.pl .score { font-size: 30px; font-weight: 900; min-width: 64px; }
.pl .av { position: relative; }
.pl .av.answered::after { content: '✓'; position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); font-size: 12px; display: grid; place-items: center; }
.bot-tag { font-size: 10px; background: var(--card-2); padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: middle; color: var(--muted); }

.arena { position: relative; flex: 1; display: flex; flex-direction: column; margin-top: 16px; padding: 0 22px; }
.sbar { position: absolute; top: 0; bottom: 0; width: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; display: flex; align-items: flex-end; }
.sbar.l { left: 0; }
.sbar.r { right: 0; }
.sbar > i { width: 100%; border-radius: inherit; transition: height 0.6s cubic-bezier(.2, .8, .2, 1); }
.sbar.l > i { background: linear-gradient(var(--good), #18a058); }
.sbar.r > i { background: linear-gradient(var(--blue), #2a5fd6); }

.qhead { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.bonus { color: #3a2a00; background: var(--gold); padding: 3px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; animation: wiggle 0.8s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-3deg); } to { transform: rotate(3deg) scale(1.06); } }
.timer { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); margin: 10px 0 18px; overflow: hidden; }
.timer > i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), var(--gold), var(--bad)); background-size: 300% 100%; border-radius: inherit; }
.secs { font-size: 15px; font-weight: 900; color: var(--text); }
.qtext { font-size: clamp(21px, 5vw, 27px); line-height: 1.25; font-weight: 900; text-align: center; min-height: 120px; display: grid; place-items: center; padding: 10px 0 18px; }
.opts { display: grid; gap: 12px; margin-top: auto; }
.opt {
  position: relative; min-height: 60px; padding: 12px 52px; border-radius: 16px; font-size: 18px; font-weight: 800;
  background: #fff; color: #231b55; box-shadow: 0 5px 0 #c7c1ea; transition: transform 0.08s, background 0.2s, color 0.2s;
}
.opt:active { transform: translateY(3px); box-shadow: 0 2px 0 #c7c1ea; }
.opt[disabled] { cursor: default; }
.opt.dim { opacity: 0.45; }
.opt.right { background: var(--good); color: #fff; box-shadow: 0 5px 0 #18a058; opacity: 1; }
.opt.wrong { background: var(--bad); color: #fff; box-shadow: 0 5px 0 #c73a3f; opacity: 1; }
.opt .tag { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: rgba(0, 0, 0, 0.15); }
.opt .tag.me { left: 10px; }
.opt .tag.them { right: 10px; }
.pop { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: 40px; font-weight: 900; color: var(--gold); pointer-events: none; animation: pop 0.9s ease-out forwards; text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.6); } 25% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); } }

.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: auto 0; text-align: center; }
.vs .side { display: grid; justify-items: center; gap: 10px; animation: slideL 0.5s cubic-bezier(.2, .8, .2, 1) both; }
.vs .side.r { animation-name: slideR; }
.vs .side div { font-size: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vs .mid { font-size: 44px; font-weight: 900; color: var(--gold); animation: zoom 0.5s 0.3s both; }
.vs-topic { text-align: center; margin-top: 30px; }
.vs-topic .emoji { font-size: 44px; }
.count { font-size: 64px; font-weight: 900; text-align: center; margin-top: 10px; }
@keyframes slideL { from { transform: translateX(-60px); opacity: 0; } }
@keyframes slideR { from { transform: translateX(60px); opacity: 0; } }
@keyframes zoom { from { transform: scale(3); opacity: 0; } }

/* ---------- results ---------- */
.result-head { text-align: center; padding: 16px 0 8px; }
.result-head h1 { font-size: clamp(44px, 12vw, 70px); animation: zoom 0.5s both; }
.result-head.win h1 { color: var(--gold); }
.result-head.lose h1 { color: var(--bad); }
.result-head.draw h1 { color: var(--blue); }
.score-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; margin: 14px 0; }
.score-vs .side { display: grid; justify-items: center; gap: 6px; }
.score-vs b { font-size: 34px; }
.score-vs .dash { color: var(--muted); font-size: 22px; }
.xp-card { margin-top: 10px; }
.xp-gain { font-size: 30px; font-weight: 900; }
.xp-gain.pos { color: var(--good); }
.xp-gain.neg { color: var(--bad); }
.levelup { margin-top: 12px; text-align: center; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), #ff9f1c); color: #3a2a00; font-weight: 900; animation: zoom 0.5s 0.8s both; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.review { margin-top: 26px; display: grid; gap: 10px; }
.review .ri { background: var(--card); border-radius: 14px; padding: 12px 14px; }
.review .ri p { margin: 0 0 8px; }
.review .ri .ans { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.review .ri .ans span { padding: 3px 9px; border-radius: 999px; background: var(--card-2); }
.review .ri .ans .ok { background: rgba(46, 212, 122, 0.2); color: var(--good); }
.review .ri .ans .no { background: rgba(255, 90, 95, 0.2); color: var(--bad); }

/* ---------- profile ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.profile-head h1 { font-size: 30px; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.avatar-pick button { width: 44px; height: 44px; border-radius: 12px; background: var(--card); font-size: 24px; }
.avatar-pick button.on { outline: 2px solid var(--brand); }
.tlist { display: grid; gap: 10px; }
.trow { display: flex; align-items: center; gap: 12px; background: var(--card); padding: 12px 14px; border-radius: 14px; }
.trow .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--c); flex: none; }
.trow .grow { flex: 1; min-width: 0; }
.trow .grow .progress { height: 8px; margin-top: 6px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border-radius: 14px; }
.mrow .res { font-weight: 900; width: 46px; }
.mrow .res.w { color: var(--good); }
.mrow .res.l { color: var(--bad); }
.mrow .res.d { color: var(--blue); }
.mrow .grow { flex: 1; min-width: 0; }
.mrow small { color: var(--muted); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: #fff; color: #231b55; font-weight: 900; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); transition: transform 0.25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .nav a.hide-sm { display: none; }
  .me-chip span:not(.av) { display: none; }
  .topics { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pl .score { font-size: 24px; min-width: 48px; }
  .pl .meta { display: none; }
  .opt { font-size: 16px; min-height: 56px; }
  .stats { gap: 8px; }
}

/* ---------- quick match + online ---------- */
[hidden] { display: none !important; }
.online-pill, .quick-online { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--good); }
.online-pill { padding: 6px 10px; border-radius: 999px; background: rgba(46, 212, 122, 0.12); }
.online-pill i, .quick-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(46, 212, 122, 0.6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(46, 212, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0); } }
.quick {
  display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px; border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 28px rgba(255, 79, 109, 0.35);
  transition: transform 0.12s;
}
.quick:hover { transform: translateY(-2px); }
.quick-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, 0.2); flex: none; }
.quick .grow { flex: 1; min-width: 0; display: grid; }
.quick b { font-size: 20px; font-weight: 900; }
.quick small { opacity: 0.9; font-weight: 700; }
.quick .quick-online { color: #fff; background: rgba(0, 0, 0, 0.18); padding: 6px 10px; border-radius: 999px; }
.quick .quick-online i { background: #b9ffd6; }
.quick-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); font-size: 16px; flex: none; }
@media (max-width: 560px) { .quick .quick-online { display: none; } }

/* ---------- picture questions ---------- */
.arena > * { flex-shrink: 0; }
.qimg { display: grid; place-items: center; margin: 4px 0 2px; }
.qimg img { width: auto; max-width: min(100%, 320px); height: auto; max-height: min(26vh, 220px); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); background: #fff; animation: imgpop 0.3s ease-out both; }
@keyframes imgpop { from { transform: scale(0.85); opacity: 0; } }
.qtext.with-img { min-height: 0; padding: 12px 0 16px; font-size: clamp(18px, 4.5vw, 22px); }
.review .ri .ri-img { width: 72px; border-radius: 6px; float: right; margin: 0 0 6px 10px; background: #fff; }

/* ---------- SEO pages, blog, footer ---------- */
.seo h1 { font-size: clamp(30px, 6vw, 44px); }
.seo .hero h1 { font-size: clamp(36px, 8vw, 56px); }
h2.section-title { display: block; font-size: 22px; margin: 34px 0 14px; }
.crumbs { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.crumbs a { color: var(--text); }
.prose { font-weight: 600; line-height: 1.7; color: #e8e4ff; }
.prose p { margin: 14px 0; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose a { color: var(--gold); text-decoration: underline; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 10px 0; }
.prose strong { color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.samples { display: grid; gap: 10px; padding-left: 22px; }
.samples li { background: var(--card); border-radius: 14px; padding: 12px 14px; }
.samples li img { display: block; margin-bottom: 8px; border-radius: 6px; background: #fff; }
.samples li b { display: block; }
.samples li span { color: var(--muted); font-size: 14px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 14px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 900; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-weight: 600; line-height: 1.6; }
.post-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-card { display: grid; gap: 6px; background: var(--card); border-radius: 16px; padding: 16px; transition: transform 0.12s; }
.post-card:hover { transform: translateY(-2px); }
.post-card span { color: var(--muted); font-weight: 600; font-size: 14px; }
.post-card small { color: var(--muted); }
.post { max-width: 760px; }
.post > h1 { margin-top: 6px; }
.cta { display: flex; align-items: center; gap: 14px; margin: 22px 0; padding: 16px; border-radius: 18px; background: var(--c, var(--brand)); box-shadow: var(--shadow); }
.cta .emoji { font-size: 38px; }
.cta div { flex: 1; display: grid; gap: 2px; }
.cta div span { font-weight: 600; opacity: 0.9; font-size: 14px; }
.site-foot { margin-top: 48px; padding: 30px 0 40px; background: #150f35; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.foot-cols h3 { font-size: 15px; margin-bottom: 8px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-cols a { color: var(--muted); font-size: 14px; }
.foot-cols a:hover { color: var(--text); }
.site-foot p { font-size: 13px; margin-top: 22px; }
@media (max-width: 560px) { .cta { flex-wrap: wrap; } }

/* ---------- admin ---------- */
.admin .kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.admin .stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.grid2 .card h3 { font-size: 15px; margin-bottom: 10px; }
.chart { position: relative; height: 150px; padding-bottom: 18px; }
.chart svg { width: 100%; height: 132px; display: block; background: linear-gradient(transparent 49.5%, var(--line) 50%, transparent 50.5%); }
.chart .xlab { position: relative; height: 16px; font-size: 10px; color: var(--muted); }
.chart .xlab span { position: absolute; transform: translateX(-50%); top: 2px; }
.chart .ymax { position: absolute; top: -2px; right: 0; font-size: 11px; color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 6px 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px; }
.tbl td { padding: 8px; border-top: 1px solid var(--line); white-space: nowrap; }
