/* =========================================================
   Sóz Álemi — qaraqalpaq tilidegi sóz oyınları
   Dizayn tizimi: shisha kartalar, jonli fon, qaraqalpaq naqshi
   ========================================================= */

:root {
  --bg: #0a0f24;
  --bg2: #10183a;
  --card: rgba(255, 255, 255, .06);
  --card2: rgba(255, 255, 255, .1);
  --stroke: rgba(255, 255, 255, .11);
  --text: #eef2ff;
  --muted: #9aa5cc;
  --turq: #2dd4bf;
  --gold: #fbbf24;
  --coral: #fb7185;
  --violet: #8b5cf6;
  --blue: #38bdf8;
  --green: #22c55e;
  --ok: #16a34a;
  --present: #eab308;
  --absent: #3a4168;
  --danger: #ef4444;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --grad-main: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 55%, #8b5cf6 100%);
  --grad-gold: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #f97316 100%);
  --grad-coral: linear-gradient(135deg, #fda4af 0%, #fb7185 50%, #e11d48 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #eef3ff;
  --bg2: #e2e9ff;
  --card: rgba(255, 255, 255, .72);
  --card2: rgba(255, 255, 255, .92);
  --stroke: rgba(30, 41, 99, .1);
  --text: #141a3a;
  --muted: #5d6790;
  --absent: #9aa3c4;
  --shadow: 0 10px 30px rgba(40, 60, 140, .14);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select { font-family: inherit; }
a { color: var(--turq); }
img { max-width: 100%; }

/* ---------- Jonli fon ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 600px at 50% -10%, var(--bg2), var(--bg)); }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.blob.b1 { background: #2dd4bf; top: -25vmax; left: -20vmax; }
.blob.b2 { background: #8b5cf6; bottom: -30vmax; right: -25vmax; animation-duration: 28s; }
.blob.b3 { background: #f59e0b; top: 40%; left: 50%; width: 35vmax; height: 35vmax; opacity: .16; animation-duration: 34s; }
:root[data-theme="light"] .blob { opacity: .22; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.1); }
  100% { transform: translate(-4vmax, 8vmax) scale(.95); }
}
.ornament {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M48 30c-6-10-20-8-20 2 0 7 9 9 12 3M48 30c6-10 20-8 20 2 0 7-9 9-12 3M48 66c-6 10-20 8-20-2 0-7 9-9 12-3M48 66c6 10 20 8 20-2 0-7-9-9-12-3M48 30v36M38 48h20'/%3E%3Cpath d='M0 0l10 10M96 0L86 10M0 96l10-10M96 96l-10-10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  animation: ornamentMove 60s linear infinite;
}
:root[data-theme="light"] .ornament { filter: invert(1); opacity: .06; }
@keyframes ornamentMove { to { background-position: 96px 192px; } }

/* ---------- Ilova qobig'i ---------- */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; }
.page { padding: 14px 16px calc(110px + var(--safe-b)); animation: pageIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: itemIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes itemIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Yuqori panel ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 6px 0 14px; }
.avatar { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; padding: 3px;
  background: conic-gradient(var(--gold) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .12) 0); }
.avatar .in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 900; font-size: 18px;
  background: var(--grad-main); color: #fff; border: 2px solid var(--bg); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .lv { position: absolute; bottom: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--grad-gold);
  color: #3b2300; font-size: 11px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--bg); }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 12px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--stroke); font-weight: 800; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.coin { width: 20px; height: 20px; border-radius: 50%; background: var(--grad-gold); display: inline-grid; place-items: center; font-size: 11px; color: #7a4100;
  font-weight: 900; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.coin::after { content: "₮"; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--stroke);
  position: relative; transition: transform .15s; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 21px; height: 21px; }
.badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff;
  font-size: 11px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--bg); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, .6); } 50% { box-shadow: 0 0 0 7px rgba(251, 113, 133, 0); } }

/* ---------- Kartalar ---------- */
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: relative; overflow: hidden; }
.card + .card, .section { margin-top: 14px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; font-size: 18px; font-weight: 900; }
.sec-title a, .sec-title button { font-size: 13px; color: var(--turq); font-weight: 800; text-decoration: none; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }

/* Hero (kunlik Sózle) */
.hero { padding: 20px; border: 0; background: var(--grad-main); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, .35), transparent 60%); }
.hero::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px; border-radius: 40px; transform: rotate(18deg);
  background: rgba(255, 255, 255, .1); }
.hero > * { position: relative; z-index: 1; }
.hero h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 900; letter-spacing: -.3px; }
.hero p { margin: 0 0 14px; opacity: .92; font-weight: 600; }
.hero .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 800; }
.mini-tiles { display: flex; gap: 5px; margin: 10px 0 14px; }
.mini-tiles span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 17px;
  background: rgba(255, 255, 255, .2); animation: tileWave 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * .15s); }
.mini-tiles span.g { background: #16a34a; } .mini-tiles span.y { background: #d4a106; }
@keyframes tileWave { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-6px) rotateX(180deg); } }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 16px; font-weight: 900;
  font-size: 16px; background: var(--grad-main); color: #fff; box-shadow: 0 8px 20px rgba(59, 130, 246, .35); position: relative; overflow: hidden;
  transition: transform .15s, filter .2s; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: shine 3.5s infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn:active { transform: scale(.96); }
.btn[disabled] { filter: grayscale(.8) brightness(.8); pointer-events: none; }
.btn.block { width: 100%; }
.btn.white { background: #fff; color: #1e3a8a; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.btn.gold { background: var(--grad-gold); color: #4a2500; box-shadow: 0 8px 20px rgba(251, 191, 36, .35); }
.btn.coral { background: var(--grad-coral); box-shadow: 0 8px 20px rgba(251, 113, 133, .35); }
.btn.ghost { background: var(--card2); color: var(--text); box-shadow: none; border: 1px solid var(--stroke); }
.btn.ghost::after { display: none; }
.btn.sm { height: 38px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

/* O'yinlar to'ri */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-card { padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--stroke); text-align: left; position: relative; overflow: hidden;
  transition: transform .2s; min-height: 150px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.game-card:active { transform: scale(.96); }
.game-card .gi { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-size: 27px; margin-bottom: 10px; position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.game-card .gi::after { content: attr(data-l); position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 8px; background: #fff; color: #111;
  font-size: 13px; font-weight: 900; display: grid; place-items: center; }
.game-card b { font-size: 16px; font-weight: 900; }
.game-card small { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 3px; line-height: 1.3; }
.game-card .best { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 800; color: var(--gold); }
.game-card .glow { position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; filter: blur(30px); opacity: .35; }
.game-card.wide { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
.game-card.wide .gi { margin: 0; }
.g-sozle { background: linear-gradient(135deg, #22c55e, #16a34a); }
.g-anagram { background: linear-gradient(135deg, #f472b6, #db2777); }
.g-wordsearch { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.g-hangman { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.g-spelling { background: linear-gradient(135deg, #fbbf24, #ea580c); }
.g-meaning { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.g-rain { background: linear-gradient(135deg, #60a5fa, #6366f1); }

/* Vazifalar */
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.task + .task { border-top: 1px dashed var(--stroke); }
.task .ti { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--card2); font-size: 19px; flex: none; }
.task.done .ti { background: rgba(34, 197, 94, .2); }
.bar { height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; }
:root[data-theme="light"] .bar { background: rgba(20, 30, 80, .08); }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--grad-main); width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.task.done .bar i { background: linear-gradient(90deg, #22c55e, #4ade80); }
.reward { font-size: 12px; font-weight: 900; color: var(--gold); white-space: nowrap; }

/* Kun so'zi */
.wod { display: flex; gap: 14px; align-items: center; }
.wod .big { font-size: 30px; font-weight: 900; letter-spacing: .5px; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wod .tr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 12px; background: var(--card2); font-size: 12px; font-weight: 800; border: 1px solid var(--stroke); }
.chip.on { background: var(--grad-main); color: #fff; border-color: transparent; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip { flex: none; height: 34px; font-size: 13px; cursor: pointer; transition: all .2s; }

/* Reklama banneri */
.ad-wrap { position: relative; }
.ad { display: block; border-radius: var(--radius); overflow: hidden; position: relative; min-height: 110px; background: var(--grad-coral); color: #fff;
  text-decoration: none; box-shadow: var(--shadow); }
.ad img { width: 100%; display: block; aspect-ratio: 16/6; object-fit: cover; }
.ad .ad-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.ad.noimg .ad-t { position: static; background: none; padding: 18px; }
.ad .ad-t b { display: block; font-size: 17px; }
.ad .ad-t small { opacity: .9; font-weight: 600; }
.ad .ad-lbl { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .4); }
.ad-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.ad-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--stroke); transition: all .3s; }
.ad-dots i.on { width: 18px; background: var(--turq); }

/* Reyting */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 10px 0 6px; }
.pod { text-align: center; animation: rise .8s cubic-bezier(.2, .9, .3, 1.2) both; }
.pod:nth-child(1) { animation-delay: .15s; } .pod:nth-child(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.pod .av { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #fff;
  background: var(--grad-main); overflow: hidden; border: 3px solid var(--stroke); position: relative; }
.pod .av img { width: 100%; height: 100%; object-fit: cover; }
.pod.p1 .av { width: 74px; height: 74px; border-color: var(--gold); box-shadow: 0 0 25px rgba(251, 191, 36, .5); }
.pod .crown { font-size: 26px; display: block; animation: float 2.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }
.pod .nm { font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .pt { font-weight: 900; color: var(--gold); font-size: 14px; }
.pod .stand { margin-top: 8px; border-radius: 14px 14px 0 0; background: var(--card2); display: grid; place-items: center; font-size: 26px; font-weight: 900;
  border: 1px solid var(--stroke); border-bottom: 0; }
.pod.p1 .stand { height: 90px; background: linear-gradient(180deg, rgba(251, 191, 36, .35), var(--card)); }
.pod.p2 .stand { height: 66px; background: linear-gradient(180deg, rgba(203, 213, 225, .3), var(--card)); }
.pod.p3 .stand { height: 50px; background: linear-gradient(180deg, rgba(234, 88, 12, .3), var(--card)); }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; transition: background .2s; }
.lb-row + .lb-row { margin-top: 4px; }
.lb-row.me { background: rgba(45, 212, 191, .14); border: 1px solid rgba(45, 212, 191, .35); }
.lb-row .rk { width: 28px; text-align: center; font-weight: 900; color: var(--muted); }
.lb-row .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; overflow: hidden; flex: none; }
.lb-row .av img { width: 100%; height: 100%; object-fit: cover; }
.lb-row .pts { font-weight: 900; }
.me-bar { position: sticky; bottom: calc(86px + var(--safe-b)); margin-top: 12px; background: var(--grad-main); color: #fff; border-radius: 18px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 25px rgba(59, 130, 246, .4); }
.tabs { display: flex; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--stroke); position: relative; }
.tabs button { flex: 1; height: 38px; border-radius: 12px; font-weight: 800; font-size: 14px; position: relative; z-index: 1; color: var(--muted); transition: color .25s; }
.tabs button.on { color: #fff; }
.tabs .ind { position: absolute; top: 4px; bottom: 4px; border-radius: 12px; background: var(--grad-main); transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s; }

/* Profil */
.prof-head { text-align: center; padding: 26px 16px 20px; }
.prof-head .avatar { width: 96px; height: 96px; margin: 0 auto 12px; padding: 4px; }
.prof-head .avatar .in { font-size: 36px; }
.prof-head .avatar .lv { min-width: 30px; height: 30px; font-size: 14px; }
.prof-head h2 { margin: 0; font-size: 24px; font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { padding: 12px 6px; border-radius: 16px; background: var(--card2); text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 900; }
.stat small { color: var(--muted); font-size: 11px; font-weight: 800; }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ach { text-align: center; padding: 10px 4px; border-radius: 16px; background: var(--card2); cursor: pointer; transition: transform .2s; }
.ach:active { transform: scale(.94); }
.ach .e { font-size: 28px; display: block; }
.ach small { display: block; font-size: 10.5px; font-weight: 800; margin-top: 4px; line-height: 1.15; }
.ach.locked .e { filter: grayscale(1); opacity: .35; }
.ach.locked small { color: var(--muted); }
.set-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.set-row + .set-row { border-top: 1px solid var(--stroke); }
.set-row .si { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--card2); font-size: 17px; }
.toggle { width: 50px; height: 30px; border-radius: 15px; background: var(--absent); position: relative; transition: background .25s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.toggle.on { background: var(--turq); }
.toggle.on::after { transform: translateX(20px); }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-opt { padding: 14px; border-radius: 16px; background: var(--card2); border: 2px solid transparent; font-weight: 800; display: flex; align-items: center; gap: 10px; transition: all .2s; }
.lang-opt.on { border-color: var(--turq); background: rgba(45, 212, 191, .14); }
.lang-opt .fl { font-size: 22px; }

/* Bildirishnomalar */
.notif { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--stroke); }
.notif + .notif { margin-top: 10px; }
.notif.unread { border-color: rgba(45, 212, 191, .5); background: linear-gradient(90deg, rgba(45, 212, 191, .12), var(--card)); }
.notif .ni { width: 42px; height: 42px; border-radius: 14px; background: var(--card2); display: grid; place-items: center; font-size: 21px; flex: none; }
.notif b { display: block; font-size: 14.5px; }
.notif p { margin: 3px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; white-space: pre-line; user-select: text; }
.notif time { font-size: 11px; color: var(--muted); font-weight: 700; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); font-weight: 700; }
.empty .e { font-size: 56px; display: block; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }

/* ---------- Pastki menyu ---------- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); width: calc(100% - 24px); max-width: 536px; height: 66px; z-index: 50;
  display: flex; align-items: center; padding: 0 6px; border-radius: 24px; background: rgba(16, 24, 58, .78); border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 12px 35px rgba(0, 0, 0, .4); }
:root[data-theme="light"] .nav { background: rgba(255, 255, 255, .85); }
.nav button { flex: 1; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted);
  font-size: 11px; font-weight: 800; position: relative; z-index: 1; transition: color .25s; }
.nav button svg { width: 23px; height: 23px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.nav button.on { color: #fff; }
.nav button.on svg { transform: translateY(-1px) scale(1.1); }
.nav .ind { position: absolute; top: 6px; height: 54px; border-radius: 18px; background: var(--grad-main); transition: left .4s cubic-bezier(.3, 1.3, .5, 1), width .4s;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .45); }
.nav.hidden { transform: translate(-50%, 140%); transition: transform .3s; }

/* ---------- Modal / pastdan chiquvchi oyna ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 22, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .25s both; }
.overlay.center { align-items: center; padding: 18px; }
.overlay.closing { animation: fadeOut .25s both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg2); border-radius: 28px 28px 0 0; padding: 10px 18px calc(22px + var(--safe-b));
  border: 1px solid var(--stroke); border-bottom: 0; animation: sheetUp .45s cubic-bezier(.2, .9, .25, 1) both; box-shadow: 0 -20px 50px rgba(0, 0, 0, .4); }
.overlay.center .sheet { border-radius: 28px; border-bottom: 1px solid var(--stroke); animation: popIn .45s cubic-bezier(.2, 1.2, .3, 1) both; padding-bottom: 22px; }
.overlay.closing .sheet { animation: sheetDown .25s both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes popIn { from { transform: scale(.8); opacity: 0; } }
.grip { width: 44px; height: 5px; border-radius: 3px; background: var(--stroke); margin: 2px auto 14px; }
.sheet h3 { margin: 4px 0 6px; font-size: 22px; font-weight: 900; }
.sheet .lead { color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.rules { margin: 0 0 18px; padding: 0; list-style: none; }
.rules li { display: flex; gap: 10px; padding: 8px 0; font-weight: 600; }
.rules li span { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: var(--card2); }
.opt-group { margin-bottom: 16px; }
.opt-group label { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; height: 44px; border-radius: 14px; background: var(--card2); font-weight: 800; border: 2px solid transparent; transition: all .2s; }
.seg button.on { border-color: var(--turq); background: rgba(45, 212, 191, .15); }
.field { width: 100%; height: 52px; border-radius: 16px; border: 2px solid var(--stroke); background: var(--card); color: var(--text); padding: 0 16px; font-size: 16px; font-weight: 700; outline: none; }
.field:focus { border-color: var(--turq); }

/* Toast */
.toasts { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 300; width: calc(100% - 24px); max-width: 420px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 16px; background: rgba(16, 24, 58, .95); border: 1px solid var(--stroke); color: #fff; font-weight: 800; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; animation: toastIn .45s cubic-bezier(.2, 1.3, .3, 1) both; backdrop-filter: blur(12px); }
.toast.out { animation: toastOut .3s both; }
.toast.err { background: rgba(127, 29, 29, .95); }
.toast.ok { background: rgba(6, 95, 70, .95); }
.toast .e { font-size: 20px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-30px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px); } }

/* ---------- O'yin ekrani ---------- */
.game-screen { position: fixed; inset: 0; z-index: 60; overflow-y: auto; animation: gameIn .4s cubic-bezier(.2, .8, .2, 1) both; }
.game-screen .bg-scene { position: fixed; }
@keyframes gameIn { from { opacity: 0; transform: scale(1.04); } }
.game-wrap { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; padding: 10px 14px calc(14px + var(--safe-b)); }
.g-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.g-head .ttl { flex: 1; min-width: 0; }
.g-head .ttl b { display: block; font-size: 18px; font-weight: 900; }
.g-head .ttl small { color: var(--muted); font-weight: 700; font-size: 12px; }
.g-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.g-stat { flex: 1; padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--stroke); text-align: center; }
.g-stat b { display: block; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.g-stat small { font-size: 10.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.g-stat.warn b { color: var(--coral); animation: tick 1s infinite; }
@keyframes tick { 50% { transform: scale(1.15); } }
.timebar { height: 7px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-bottom: 12px; }
.timebar i { display: block; height: 100%; background: var(--grad-main); transform-origin: left; transition: transform 1s linear; }
.timebar.warn i { background: var(--grad-coral); }
.g-body { flex: 1; display: flex; flex-direction: column; }

/* Sózle */
.wgrid { display: grid; gap: 7px; margin: 6px auto 14px; width: 100%; max-width: 360px; }
.wrow { display: grid; gap: 7px; }
.wrow.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.tile { aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--stroke); display: grid; place-items: center; font-size: clamp(22px, 7.5vw, 32px); font-weight: 900;
  background: var(--card); transition: border-color .15s; perspective: 400px; }
.tile.filled { border-color: rgba(255, 255, 255, .4); animation: pop .12s; }
:root[data-theme="light"] .tile.filled { border-color: rgba(20, 30, 80, .4); }
.tile.hint { border-color: var(--gold); color: var(--gold); border-style: dashed; }
@keyframes pop { 50% { transform: scale(1.12); } }
.tile.flip { animation: flip .6s ease both; animation-delay: calc(var(--i) * .28s); }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.tile.s2 { --tc: var(--ok); } .tile.s1 { --tc: var(--present); } .tile.s0 { --tc: var(--absent); }
.tile.revealed { background: var(--tc); border-color: var(--tc); color: #fff; }
.tile.win { animation: jump .5s ease both; animation-delay: calc(var(--i) * .1s); }
@keyframes jump { 40% { transform: translateY(-16px); } 60% { transform: translateY(2px); } }

/* Klaviatura */
.kbd { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 7px; }
.kbd .kr { display: flex; gap: 5px; justify-content: center; }
.key { flex: 1; max-width: 46px; height: 50px; border-radius: 10px; background: var(--card2); border: 1px solid var(--stroke); font-weight: 900; font-size: 18px;
  display: grid; place-items: center; transition: transform .08s, background .3s; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.key.sp { color: var(--gold); }
.key:active { transform: translateY(2px) scale(.94); box-shadow: none; }
.key.s2 { background: var(--ok); color: #fff; border-color: var(--ok); }
.key.s1 { background: var(--present); color: #fff; border-color: var(--present); }
.key.s0 { background: var(--absent); color: rgba(255, 255, 255, .55); }
.key.used { opacity: .3; pointer-events: none; }
.key.act { max-width: none; flex: 1; font-size: 15px; gap: 6px; display: flex; align-items: center; justify-content: center; }
.key.enter { background: var(--grad-main); color: #fff; border: 0; flex: 1.6; }
.key.enter.ready { animation: glowPulse 1.6s infinite; }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 4px rgba(45, 212, 191, .35); } }

/* Anagramma */
.ana-card { text-align: center; padding: 22px 14px; }
.ana-slots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 16px 0 22px; min-height: 54px; }
.slot { width: 44px; height: 52px; border-radius: 12px; border: 2px dashed var(--stroke); display: grid; place-items: center; font-size: 24px; font-weight: 900; transition: all .2s; }
.slot.f { border-style: solid; border-color: var(--turq); background: rgba(45, 212, 191, .12); animation: pop .15s; }
.slot.lock { border-color: var(--gold); color: var(--gold); border-style: solid; }
.ana-card.right .slot { background: var(--ok); border-color: var(--ok); color: #fff; animation: jump .45s both; animation-delay: calc(var(--i) * .05s); }
.ana-card.wrong .ana-slots { animation: shake .45s; }
.ana-letters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ltile { width: 52px; height: 58px; border-radius: 14px; background: var(--grad-main); color: #fff; font-size: 26px; font-weight: 900; display: grid; place-items: center;
  box-shadow: 0 5px 0 rgba(30, 58, 138, .6), 0 10px 20px rgba(0, 0, 0, .25); transition: transform .15s, opacity .2s; animation: dropIn .5s cubic-bezier(.2, 1.4, .3, 1) both;
  animation-delay: calc(var(--i) * .05s); }
.ltile:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(30, 58, 138, .6); }
.ltile.gone { opacity: .15; pointer-events: none; transform: scale(.85); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-30px) rotate(-12deg); } }
.dots { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--card2); transition: all .3s; }
.dots i.cur { background: var(--turq); transform: scale(1.3); }
.dots i.ok { background: var(--green); }
.tools { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.tool { min-width: 58px; height: 52px; padding: 0 12px; border-radius: 16px; background: var(--card2); border: 1px solid var(--stroke); font-size: 20px; display: flex; align-items: center;
  justify-content: center; gap: 6px; font-weight: 800; transition: transform .12s; }
.tool small { font-size: 12px; color: var(--gold); font-weight: 900; }
.tool:active { transform: scale(.92); }

/* So'z qidirish */
.ws-box { position: relative; width: 100%; max-width: 440px; margin: 0 auto; touch-action: none; }
.ws-grid { display: grid; gap: 3px; padding: 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--stroke); }
.ws-cell { aspect-ratio: 1; display: grid; place-items: center; font-weight: 900; font-size: clamp(14px, 4.6vw, 22px); border-radius: 9px; transition: background .15s, transform .15s;
  animation: dropIn .4s both; animation-delay: calc(var(--i) * 6ms); position: relative; z-index: 2; }
.ws-cell.sel { background: rgba(251, 191, 36, .45); transform: scale(1.08); }
.ws-svg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ws-svg line { stroke-linecap: round; opacity: .55; animation: drawLine .4s ease both; }
@keyframes drawLine { from { stroke-dasharray: 0 1000; } to { stroke-dasharray: 1000 0; } }
.ws-words { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
.ws-words .chip { font-size: 14px; height: 34px; transition: all .4s; }
.ws-words .chip.found { text-decoration: line-through; opacity: .6; transform: scale(.94); }
.ws-flash-bad { animation: shake .4s; }

/* Jasırın sóz */
.hm-art { display: flex; justify-content: center; margin: 4px 0 6px; }
.hm-art svg { width: 150px; height: 150px; overflow: visible; }
.petal { transform-origin: 75px 75px; transition: all .9s cubic-bezier(.5, -0.2, .7, 1); }
.petal.fall { transform: translateY(160px) rotate(80deg); opacity: 0; }
.hm-mask { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 8px; }
.hm-mask span { width: 38px; height: 48px; border-bottom: 4px solid var(--stroke); display: grid; place-items: center; font-size: 26px; font-weight: 900; }
.hm-mask span.o { border-color: var(--turq); animation: jump .45s both; }
.hm-mask span.lost { color: var(--coral); border-color: var(--coral); }
.lives { display: flex; justify-content: center; gap: 4px; font-size: 18px; }
.lives i { font-style: normal; transition: all .4s; }
.lives i.off { filter: grayscale(1); opacity: .25; transform: scale(.8); }

/* Viktorina (Durıs jaz, Mánisin tap) */
.quiz-q { text-align: center; padding: 22px 16px; margin-bottom: 14px; }
.quiz-q .qlabel { color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.quiz-q .qmain { font-size: 34px; font-weight: 900; margin: 10px 0 4px; word-break: break-word; line-height: 1.15; }
.quiz-q .qsub { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 12px; background: var(--card2); font-weight: 800; margin-top: 8px; }
.ring { width: 54px; height: 54px; margin: 0 auto; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bgc { stroke: var(--card2); }
.ring .fgc { stroke: var(--turq); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.opts { display: grid; gap: 10px; }
.opt { min-height: 58px; padding: 10px 16px; border-radius: 18px; background: var(--card); border: 2px solid var(--stroke); font-size: 20px; font-weight: 800; text-align: left;
  display: flex; align-items: center; gap: 12px; transition: all .25s; animation: itemIn .4s both; animation-delay: calc(var(--i) * 60ms); }
.opt .k { width: 30px; height: 30px; border-radius: 10px; background: var(--card2); display: grid; place-items: center; font-size: 13px; font-weight: 900; flex: none; color: var(--muted); }
.opt:active { transform: scale(.97); }
.opt.right { background: rgba(34, 197, 94, .2); border-color: var(--green); animation: pop .3s; }
.opt.right .k { background: var(--green); color: #fff; }
.opt.bad { background: rgba(239, 68, 68, .18); border-color: var(--danger); animation: shake .4s; }
.opt.bad .k { background: var(--danger); color: #fff; }
.opt.dim { opacity: .45; }
.combo { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 12px; background: var(--grad-gold); color: #4a2500; font-weight: 900; font-size: 13px;
  animation: pop .3s; }

/* So'z yomg'iri */
.rain-area { position: relative; flex: 1; min-height: 46vh; border-radius: 22px; background: linear-gradient(180deg, rgba(56, 189, 248, .08), rgba(139, 92, 246, .1)); border: 1px solid var(--stroke);
  overflow: hidden; }
.rain-area::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--coral), var(--gold), var(--coral)); opacity: .8; }
.drop { position: absolute; top: 0; padding: 8px 13px; border-radius: 14px; background: var(--card2); border: 1px solid var(--stroke); font-weight: 900; font-size: 18px; white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25); will-change: transform; }
.drop::before { content: "💧"; font-size: 12px; margin-right: 4px; }
.drop .m { color: var(--gold); }
.drop.target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, .3); }
.drop.boom { animation: boom .45s forwards; }
@keyframes boom { to { transform: var(--t) scale(1.8); opacity: 0; filter: blur(4px); } }
.drop.splash { animation: splash .5s forwards; background: var(--danger); color: #fff; }
@keyframes splash { to { transform: var(--t) scaleX(1.8) scaleY(.2); opacity: 0; } }
.float-pts { position: absolute; font-weight: 900; color: var(--gold); font-size: 20px; pointer-events: none; animation: floatUp .9s forwards; z-index: 5; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
@keyframes floatUp { to { transform: translateY(-50px); opacity: 0; } }
.typed { height: 52px; margin: 10px 0 4px; border-radius: 16px; background: var(--card); border: 2px solid var(--stroke); display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; letter-spacing: 1px; }
.typed.bad { border-color: var(--danger); animation: shake .3s; }
.typed .caret { width: 2px; height: 26px; background: var(--turq); margin-left: 3px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kbd.compact .key { height: 44px; }

/* Natija oynasi */
.result { text-align: center; }
.result .big-emoji { font-size: 64px; display: block; animation: popIn .6s cubic-bezier(.2, 1.5, .3, 1) both; }
.result h2 { margin: 6px 0 2px; font-size: 26px; font-weight: 900; }
.result .score { font-size: 56px; font-weight: 900; line-height: 1; margin: 12px 0 4px; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; }
.stars { display: flex; justify-content: center; gap: 6px; font-size: 36px; margin: 8px 0; }
.stars i { font-style: normal; animation: starIn .5s cubic-bezier(.2, 1.6, .3, 1) both; animation-delay: calc(.4s + var(--i) * .2s); }
.stars i.off { filter: grayscale(1); opacity: .25; }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.gains { display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
.gain { padding: 10px 16px; border-radius: 16px; background: var(--card2); font-weight: 900; font-size: 16px; animation: itemIn .5s both; animation-delay: calc(.8s + var(--i) * .1s); }
.lvl-up { margin: 10px 0; padding: 14px; border-radius: 18px; background: var(--grad-gold); color: #4a2500; font-weight: 900; font-size: 18px; animation: popIn .6s both .9s; }
.new-ach { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .4);
  text-align: left; margin-top: 8px; animation: itemIn .5s both; animation-delay: calc(1s + var(--i) * .15s); }
.new-ach .e { font-size: 32px; }
.duel-box { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 14px 0; padding: 14px; border-radius: 18px; background: var(--card2); }
.duel-box b { display: block; font-size: 24px; font-weight: 900; }
.duel-box .vs { font-size: 22px; font-weight: 900; color: var(--coral); }
.share-grid { font-size: 22px; line-height: 1.1; letter-spacing: 2px; margin: 10px 0; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 22px; }

/* Obuna / kirish */
.gate { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 18px; }
.logo { display: block; width: 96px; height: 96px; margin: 0 auto 14px; animation: logoIn 1s cubic-bezier(.2, 1.4, .3, 1) both; filter: drop-shadow(0 14px 28px rgba(45, 212, 191, .35)); }
@keyframes logoIn { from { transform: scale(0) rotate(-30deg); opacity: 0; } }
.brand { text-align: center; font-size: 34px; font-weight: 900; letter-spacing: -.5px; margin: 0; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { text-align: center; color: var(--muted); font-weight: 700; margin: 6px 0 26px; }
.ch-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card2); text-decoration: none; color: var(--text); font-weight: 800; }
.ch-item + .ch-item { margin-top: 8px; }
.ch-item .ci { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-main); display: grid; place-items: center; font-size: 20px; color: #fff; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }

/* Yuklanish */
.loader { min-height: 70vh; display: grid; place-items: center; }
.spin-tiles { display: flex; gap: 6px; }
.spin-tiles span { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #fff; background: var(--grad-main);
  animation: loadBounce 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes loadBounce { 0%, 100% { transform: translateY(0) rotateY(0); } 40% { transform: translateY(-14px) rotateY(180deg); } }
.skel { border-radius: 16px; background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Konfetti */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; }

.streak-fire { display: inline-block; animation: flame 1.2s ease-in-out infinite; }
@keyframes flame { 50% { transform: scale(1.15) rotate(-6deg); } }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: onl 2s infinite; }
@keyframes onl { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

@media (min-width: 600px) {
  .page { padding-top: 22px; }
  .games-grid { grid-template-columns: 1fr 1fr 1fr; }
  .game-card.wide { grid-column: span 3; }
}
@media (max-width: 360px) {
  .key { height: 44px; font-size: 16px; }
  .ltile { width: 44px; height: 50px; font-size: 22px; }
  .slot { width: 38px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Xato so'zni belgilash ---------- */
.rep-list { display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.rep-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card2); border: 1px solid var(--stroke);
  animation: itemIn .4s both; animation-delay: calc(var(--i, 0) * 40ms); }
.rep-row b { display: block; font-size: 17px; }
.rep-row small { color: var(--muted); font-weight: 700; }
.rep-flag { height: 38px; min-width: 46px; padding: 0 12px; border-radius: 12px; background: rgba(251, 113, 133, .14); border: 1px solid rgba(251, 113, 133, .35);
  font-size: 17px; font-weight: 800; transition: transform .15s; }
.rep-flag:active { transform: scale(.9); }
.rep-flag.on { background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .4); color: #4ade80; font-size: 13px; pointer-events: none; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.reason { padding: 14px 10px; border-radius: 16px; background: var(--card2); border: 2px solid transparent; font-weight: 800; display: flex; flex-direction: column;
  align-items: center; gap: 6px; transition: all .2s; text-align: center; }
.reason span { font-size: 26px; }
.reason.on { border-color: var(--coral); background: rgba(251, 113, 133, .14); transform: scale(1.03); }
.rep-word { text-align: center; font-size: 32px; font-weight: 900; margin: 4px 0 2px; background: var(--grad-coral); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wod-flag { flex: none; align-self: flex-start; font-size: 16px; }
