/* ═══════════════════════════════════════════════════════════════════════════
   Papaz Kaçtı — design system & pages
   Midnight-casino look: deep felt, gold accents, cream cards, glass panels.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --gold: #d9b45b;
  --gold-hi: #f4dd96;
  --gold-lo: #a8812f;
  --cream: #f6efdd;
  --ink: #10131c;
  --red: #c8102e;
  --text: #ede5d0;
  --muted: #a8b3a0;

  --felt-a: #123524;
  --felt-b: #071b10;
  --panel: rgba(4, 17, 10, 0.58);
  --panel-line: rgba(217, 180, 91, 0.22);

  --radius: 16px;
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.5);

  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-ui: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html[data-felt='blue'] { --felt-a: #12233b; --felt-b: #060f1e; --panel: rgba(4, 10, 22, 0.58); }
html[data-felt='red']  { --felt-a: #371623; --felt-b: #1a0810; --panel: rgba(26, 6, 13, 0.6); }

* { box-sizing: border-box; }
html { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
    radial-gradient(140% 120% at 50% 110%, var(--felt-b) 30%, transparent 70%),
    linear-gradient(180deg, var(--felt-a), var(--felt-b));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle felt vignette + weave */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.02) 0 2px, transparent 2px 4px);
}

#app { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }

::selection { background: rgba(217, 180, 91, .35); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--cream); margin: 0 0 .5em; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── top bar ─────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(14px, 4vw, 32px);
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(2, 10, 6, .82), rgba(2, 10, 6, 0));
  backdrop-filter: blur(8px);
}
body.in-game .topbar { position: static; background: none; }
body.in-game .brand-name { display: none; }
body.in-game #foot { display: none; }

.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f6e27a'/%3E%3Cstop offset='1' stop-color='%23c9992e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='8' y='3' width='48' height='58' rx='8' fill='%23f8f2e2' stroke='%2322302a' stroke-width='2.5'/%3E%3Cpath d='M20.5 25.5 18.6 15l7.2 5L32 12.4l6.2 7.6 7.2-5-1.9 10.5z' fill='url(%23g)' stroke='%238a6a1d' stroke-width='1.6' stroke-linejoin='round'/%3E%3Crect x='21.5' y='26.6' width='21' height='2.8' rx='1.2' fill='%23caa23f'/%3E%3Ctext x='32' y='53' font-family='Georgia, serif' font-weight='700' font-size='27' fill='%2322302a' text-anchor='middle'%3EJ%3C/text%3E%3C/svg%3E") center/contain no-repeat;
}
.brand-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(18px, 3vw, 24px); letter-spacing: .04em; color: var(--cream);
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: 12px; border: 1px solid var(--panel-line);
  background: var(--panel); color: var(--text); cursor: pointer;
  transition: border-color .18s, transform .18s, background .18s;
  font-family: var(--font-ui); font-weight: 800; font-size: 13px;
  text-decoration: none !important;
}
.icon-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.icon-btn .ic { width: 20px; height: 20px; fill: currentColor; }
.icon-btn .ic .wave { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn.muted .ic .wave { display: none; }
.lang-btn { width: auto; padding: 0 12px; letter-spacing: .06em; }

/* ── layout ──────────────────────────────────────────────────────────── */
.view-container {
  flex: 1; width: 100%; max-width: 1060px;
  margin: 0 auto; padding: clamp(10px, 3vw, 28px) clamp(14px, 4vw, 32px) 40px;
  animation: view-in .35s ease both;
}
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-title { font-size: clamp(26px, 5vw, 40px); text-align: center; margin-top: 8px; }
.page-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 26px; line-height: 1.6; }

/* ── home / hero ─────────────────────────────────────────────────────── */
.hero { text-align: center; padding: clamp(20px, 6vw, 54px) 0 10px; position: relative; }
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 10vw, 84px); line-height: 1.02; letter-spacing: .03em;
  margin: 14px 0 4px; color: var(--cream);
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 24px 60px rgba(0,0,0,.45);
}
.hero-title .kacti {
  display: block;
  background: linear-gradient(180deg, #fbeaa9 15%, var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 24px rgba(217, 180, 91, .25));
}
.hero-tagline { color: var(--muted); max-width: 520px; margin: 10px auto 0; font-size: clamp(14px, 2.4vw, 17px); line-height: 1.55; }

.hero-cards {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 2vw, 14px);
  margin: clamp(18px, 5vw, 40px) auto 0; height: clamp(120px, 24vw, 190px);
  perspective: 800px;
}
.hero-card { animation: hero-float 5.5s ease-in-out infinite; transform-origin: bottom center; }
.hero-card:nth-child(1) { --cw: clamp(64px, 13vw, 104px); transform: rotate(-14deg) translateY(14px); animation-delay: 0s; z-index: 1; }
.hero-card:nth-child(2) { --cw: clamp(76px, 15vw, 124px); animation-delay: .8s; z-index: 2; }
.hero-card:nth-child(3) { --cw: clamp(64px, 13vw, 104px); transform: rotate(14deg) translateY(14px); animation-delay: 1.6s; z-index: 1; }
@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card, .hero-card * { animation: none !important; }
}

.home-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--text); background: var(--panel); border: 1px solid var(--panel-line);
}

.menu-buttons {
  display: grid; gap: 12px; max-width: 420px; margin: clamp(22px, 6vw, 42px) auto 0;
}
.menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 14px; border: none; cursor: pointer;
  font-family: var(--font-ui); font-weight: 800; font-size: 16px; letter-spacing: .02em;
  transition: transform .16s, box-shadow .16s, filter .16s;
  text-decoration: none !important; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-gold {
  background: linear-gradient(180deg, #f8e59b, var(--gold) 45%, #b98f36);
  color: #2b2005;
  box-shadow: 0 4px 16px rgba(217, 180, 91, .3), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(120, 88, 24, .5);
}
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 8px 26px rgba(217, 180, 91, .4), inset 0 1px 0 rgba(255,255,255,.55); }
.btn-gold.big { padding: 18px 34px; font-size: 19px; border-radius: 16px; }

.btn-ghost {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--panel-line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-1px); }

.btn-danger { background: linear-gradient(180deg, #e0566b, #b32037); color: #fff; box-shadow: var(--shadow-1); }

/* shine sweep */
.btn-gold::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  translate: -120% 0; transition: translate .6s ease;
}
.btn-gold:hover::after { translate: 120% 0; }

/* ── panels & cards ──────────────────────────────────────────────────── */
.panel {
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: var(--radius); padding: clamp(16px, 3vw, 26px);
  box-shadow: var(--shadow-1); backdrop-filter: blur(10px);
}
.panel + .panel { margin-top: 16px; }
.panel h2, .panel h3 { font-size: clamp(17px, 2.6vw, 21px); margin-bottom: 14px; }
.panel h3 { color: var(--gold-hi); }

.stack { display: grid; gap: 16px; }

/* ── setup page ──────────────────────────────────────────────────────── */
.setup-bots { display: flex; gap: 10px; justify-content: center; margin: 14px 0 4px; flex-wrap: wrap; }
.setup-bot-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 999px;
  font-weight: 800; font-size: 14px; opacity: .45; transition: opacity .2s, border-color .2s;
}
.setup-bot-chip.on { opacity: 1; border-color: var(--gold); }

.field { margin-bottom: 20px; }
.field-label { display: block; font-weight: 800; font-size: 14px; letter-spacing: .03em; margin-bottom: 4px; color: var(--gold-hi); }
.field-hint { color: var(--muted); font-size: 13px; margin: 2px 0 10px; line-height: 1.5; }

.segmented {
  display: flex; gap: 6px; background: rgba(0,0,0,.28); padding: 6px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.06);
}
.segmented > button {
  flex: 1; padding: 11px 8px; border: none; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--muted);
  font-family: var(--font-ui); font-weight: 800; font-size: 14.5px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.segmented > button:hover { color: var(--text); }
.segmented > button.sel {
  background: linear-gradient(180deg, rgba(248,229,155,.95), rgba(217,180,91,.92));
  color: #2b2005; box-shadow: 0 3px 12px rgba(217,180,91,.35);
}
.segmented .seg-desc {
  flex: 1 1 100%; text-align: center; font-size: 12.5px; color: var(--muted);
  padding: 0 4px 4px; font-weight: 600; background: none !important; cursor: default;
}

.felt-picker { display: flex; gap: 10px; }
.felt-chip {
  flex: 1; height: 52px; border-radius: 12px; cursor: pointer; border: 2px solid transparent;
  transition: border-color .18s, transform .18s; position: relative;
}
.felt-chip.sel { border-color: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.felt-chip[data-felt='green'] { background: linear-gradient(160deg, #17492f, #071b10); }
.felt-chip[data-felt='blue']  { background: linear-gradient(160deg, #1a3355, #060f1e); }
.felt-chip[data-felt='red']   { background: linear-gradient(160deg, #4d1f31, #1a0810); }
.felt-chip span {
  position: absolute; inset: auto 0 6px 0; text-align: center;
  font-size: 11.5px; font-weight: 800; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px #000;
}

/* ── how to play ─────────────────────────────────────────────────────── */
.rules-list { counter-reset: rule; display: grid; gap: 14px; }
.rule-box {
  position: relative; padding: 18px 18px 16px 64px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
}
.rule-box::before {
  counter-increment: rule; content: counter(rule);
  position: absolute; left: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 16px; color: #2b2005;
  background: linear-gradient(180deg, #f8e59b, var(--gold));
  box-shadow: 0 3px 10px rgba(217,180,91,.35);
}
.rule-box h3 { margin: 0 0 8px; font-size: 17px; }
.rule-box p { margin: 0 0 8px; color: var(--text); line-height: 1.65; font-size: 15px; }
.rule-box p:last-child { margin-bottom: 0; }

/* ── stats ───────────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-card {
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 14px; text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 4vw, 34px);
  background: linear-gradient(180deg, #fbeaa9, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 4px; letter-spacing: .03em; }

table.mini-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.mini-table th, table.mini-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); }
table.mini-table th { color: var(--gold-hi); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
table.mini-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.nick-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nick-row .input { flex: 1; min-width: 200px; }

.lb-list { display: grid; gap: 8px; margin-top: 14px; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.06);
  animation: view-in .3s ease both;
}
.lb-row .rank {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-weight: 900; font-size: 13.5px;
  background: rgba(217,180,91,.14); color: var(--gold-hi); border: 1px solid rgba(217,180,91,.3);
}
.lb-row.top1 .rank { background: linear-gradient(180deg,#f8e59b,var(--gold)); color: #2b2005; }
.lb-row .name { flex: 1; font-weight: 800; overflow-wrap: anywhere; }
.lb-row .meta { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lb-row.mine { border-color: var(--gold); }

/* ── forms ───────────────────────────────────────────────────────────── */
.input {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--panel-line);
  background: rgba(0,0,0,.3); color: var(--text);
  font-family: var(--font-ui); font-size: 15px; font-weight: 700;
  transition: border-color .18s; width: 100%;
}
.input:focus { outline: none; border-color: var(--gold); }

.switch { position: relative; display: inline-block; vertical-align: middle; width: 52px; height: 30px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(0,0,0,.45); border: 1px solid var(--panel-line);
  transition: background .2s, border-color .2s;
}
.switch .thumb {
  position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: #cfd8c6; transition: translate .2s, background .2s;
}
.switch input:checked ~ .track { background: linear-gradient(180deg,#f8e59b,var(--gold)); border-color: transparent; }
.switch input:checked ~ .thumb { translate: 22px 0; background: #2b2005; }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.setting-row:last-child { border-bottom: none; }
.setting-row .lab { font-weight: 800; font-size: 15px; }
.setting-row .lab small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.setting-row .ctrl { flex: none; max-width: 55%; }

input[type='range'] { accent-color: var(--gold); width: 160px; }

/* ── donate ──────────────────────────────────────────────────────────── */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.donate-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 22px 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-line);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.donate-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-2); }
.donate-card .emoji { font-size: 34px; line-height: 1; }
.donate-card .t { font-weight: 900; font-size: 15.5px; }

.addr-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: rgba(0,0,0,.3); border-radius: 10px; padding: 8px 8px 8px 12px;
  border: 1px solid rgba(255,255,255,.07);
}
.addr-row code { flex: 1; font-size: 12.5px; overflow-wrap: anywhere; color: var(--gold-hi); }
.addr-row .copy-btn {
  flex: none; border: 1px solid var(--panel-line); background: none; color: var(--text);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; font-weight: 800; font-size: 12px;
  font-family: var(--font-ui); transition: border-color .15s;
}
.addr-row .copy-btn:hover { border-color: var(--gold); }

.donate-thanks { text-align: center; font-size: 19px; font-weight: 900; color: var(--gold-hi); margin-top: 20px; }
.heart { color: #ff7a8a; text-decoration: none !important; }

/* ── legal / about ───────────────────────────────────────────────────── */
.legal-updated { color: var(--muted); text-align: center; font-size: 13.5px; margin-bottom: 22px; }
.legal-section { margin-bottom: 22px; }
.legal-section h3 { color: var(--gold-hi); font-size: 16.5px; margin-bottom: 8px; }
.legal-section p { line-height: 1.7; font-size: 14.8px; color: var(--text); margin: 0 0 10px; }

.about-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.about-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14.5px; }
.about-list li span:last-child { color: var(--gold-hi); font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { text-align: center; padding: 26px 16px calc(26px + env(safe-area-inset-bottom)); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 14px; font-weight: 700; }
.foot-links .dot { color: var(--muted); }
.foot-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* ── online lobby ────────────────────────────────────────────────────── */
.room-code {
  display: inline-block; margin-top: 10px; padding: 10px 26px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 7vw, 48px); letter-spacing: .28em; text-indent: .28em;
  color: var(--gold-hi);
  background: rgba(0,0,0,.3); border: 1px dashed rgba(217,180,91,.5);
  border-radius: 14px; cursor: pointer;
  transition: border-color .18s, transform .18s;
}
.room-code:hover { border-color: var(--gold); transform: translateY(-1px); }
.lb-row .avatar { flex: none; }

/* ── toasts ──────────────────────────────────────────────────────────── */
.toasts {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  translate: -50% 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; width: min(92vw, 480px);
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: rgba(8, 20, 12, .92); border: 1px solid var(--panel-line);
  color: var(--text); padding: 11px 18px; border-radius: 999px;
  font-weight: 800; font-size: 14.5px; box-shadow: var(--shadow-2);
  backdrop-filter: blur(10px);
  animation: toast-in .3s cubic-bezier(.2, 1.4, .4, 1) both;
  max-width: 100%;
}
.toast.leaving { animation: toast-out .25s ease both; }
@keyframes toast-in { from { opacity: 0; translate: 0 16px; scale: .9; } to { opacity: 1; } }
@keyframes toast-out { to { opacity: 0; translate: 0 10px; } }

/* ── modal ───────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 8, 5, .72); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 20px;
  animation: fade-in .22s ease both;
}
@keyframes fade-in { from { opacity: 0; } }
.modal {
  width: min(94vw, 460px); max-height: 86dvh; overflow: auto;
  background: linear-gradient(180deg, #0d221a, #081710);
  border: 1px solid var(--panel-line); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow-2);
  animation: modal-in .28s cubic-bezier(.2, 1.3, .4, 1) both;
}
html[data-felt='blue'] .modal { background: linear-gradient(180deg, #0d1c30, #081120); }
html[data-felt='red'] .modal { background: linear-gradient(180deg, #2c101c, #180812); }
@keyframes modal-in { from { opacity: 0; scale: .92; translate: 0 18px; } }
.modal h3 { font-size: 20px; margin-bottom: 10px; }
.modal .modal-body { color: var(--text); line-height: 1.6; font-size: 15px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-actions .btn { padding: 11px 20px; font-size: 15px; }

/* ── ad slots ────────────────────────────────────────────────────────── */
.ad-slot {
  margin: 26px auto 0; width: 100%; max-width: 728px; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; overflow: hidden;
  transition: min-height .3s;
}
.ad-slot.filled { min-height: 90px; background: rgba(0,0,0,.25); }
.ad-slot .ad-tag {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(200, 210, 195, .45); padding: 4px 10px;
  position: absolute;
}
.ad-slot:not(.filled) { display: none; }

/* ── fx canvas & misc ────────────────────────────────────────────────── */
#fx { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

.empty-note { color: var(--muted); text-align: center; padding: 22px 0; font-weight: 700; }

@media (max-width: 640px) {
  .menu-row { grid-template-columns: 1fr; }
  .menu-buttons { gap: 10px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .btn-gold.big { padding: 16px 26px; font-size: 17px; }
  .setting-row { flex-wrap: wrap; }
  .setting-row .ctrl { max-width: 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
