/* styles.css — Slotsapp. All colors via theme vars (see theme.js). */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #14110d;
  background-image: radial-gradient(120% 90% at 50% 0%, #20201a 0%, #100f0c 70%);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; overflow: hidden;
  color: #fff;
}
:root { --serif: 'Playfair Display', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif; }

/* ── STAGE + DEVICE ── */
#root { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100vh; }
.device-scale { transform-origin: center center; }
.device {
  width: 402px; height: 868px;
  background: #0a0a0a; border-radius: 54px; border: 1.5px solid #2a2a2a;
  padding: 11px;
  box-shadow: 0 50px 120px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03), inset 0 0 0 2px #000;
  position: relative; flex-shrink: 0;
}
.device-inner {
  border-radius: 44px; overflow: hidden; height: 100%; width: 100%;
  position: relative; background: var(--bg); background-image: var(--bg-grad);
  display: flex; flex-direction: column;
}
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 30px; background: #0a0a0a; border-radius: 0 0 18px 18px; z-index: 60; }

/* ── STATUS BAR ── */
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px 6px; flex-shrink: 0; position: relative; z-index: 5; }
.statusbar .time { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.statusbar .sb-icons { display: flex; gap: 6px; align-items: center; }
.statusbar .sb-icons i { font-size: 15px; }
.sb-light .time, .sb-light .sb-icons i { color: #fff; }
.sb-dark .time, .sb-dark .sb-icons i { color: var(--ink); }

/* ── TOP BAR ── */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 22px 12px; flex-shrink: 0; position: relative; z-index: 5; }
.wordmark { font-family: var(--serif); font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.wordmark em { font-style: italic; font-weight: 600; color: var(--accent); }
.topbar-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.icon-btn:hover { background: var(--surface); border-color: var(--line); }
.icon-btn i { font-size: 21px; color: var(--ink-2); }

/* ── SCROLL BODY ── */
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { display: none; }
.pad-x { padding-left: 22px; padding-right: 22px; }

/* ── SECTION RULE (editorial) ── */
.secrule { display: flex; align-items: center; gap: 12px; padding: 26px 22px 14px; }
.secrule .line { flex: 1; height: 1px; background: var(--line); }
.secrule .label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 14px; }
.sechead .h { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.sechead .all { font-size: 12px; font-weight: 500; color: var(--accent); cursor: pointer; display: flex; align-items: center; gap: 3px; flex-shrink: 0; white-space: nowrap; }
.sechead .all:hover { opacity: .8; }

/* ── GAME ART placeholder ── */
.art { position: relative; overflow: hidden; width: 100%; height: 100%; display: block; }
.art .mono { position: absolute; font-family: var(--serif); font-weight: 800; font-style: italic; color: rgba(255,255,255,0.13); line-height: 1; user-select: none; }
.art .glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.art .reel { position: absolute; inset: 0; opacity: .9; }
.art .vig { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.06), transparent 40%); }

/* ── HERO (3 variants) ── */
.hero-wrap { padding: 4px 22px 0; }
/* full-bleed */
.hero-fb { position: relative; border-radius: 7px; overflow: hidden; height: 240px; cursor: pointer; box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.hero-fb .ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.92) 4%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.15) 100%); }
.hero-fb .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.hero-kick { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 7px; }
.hero-title { font-family: var(--serif); font-size: 28px; font-weight: 800; color: #fff; line-height: 1.05; margin-bottom: 11px; letter-spacing: -.01em; }
.hero-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
/* editorial split */
.hero-ed { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; cursor: pointer; background: var(--surface); }
.hero-ed .art-box { height: 168px; position: relative; }
.hero-ed .txt { padding: 16px 18px 18px; }
.hero-ed .txt .hero-kick { color: var(--accent); }
.hero-ed .txt .hero-title { color: var(--ink); font-size: 24px; margin-bottom: 9px; }
.hero-ed .txt .desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 12px; }
/* spotlight */
.hero-sp { position: relative; border-radius: 7px; overflow: hidden; height: 300px; cursor: pointer; box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.hero-sp .ov { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 12%, transparent 30%, rgba(0,0,0,0.55) 72%, rgba(0,0,0,0.95) 100%); }
.hero-sp .body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 26px 24px 24px; }
.hero-sp .hero-title { font-size: 30px; }
.hero-sp .hero-meta { justify-content: center; }

.tag { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.13); padding: 4px 9px; border-radius: 3px; backdrop-filter: blur(4px); white-space: nowrap; }
.tag.solid { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tag.gold { background: var(--gold); color: #1a1205; font-weight: 600; }

/* ── CAROUSEL ── */
.carousel { display: flex; gap: 13px; overflow-x: auto; scrollbar-width: none; padding: 0 22px 4px; scroll-snap-type: x mandatory; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }

/* ── GAME CARD ── */
.gcard { cursor: pointer; flex-shrink: 0; }
.gcard.col { width: 158px; }
.gcard .thumb { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3/4; margin-bottom: 9px; box-shadow: 0 8px 20px rgba(0,0,0,0.28); transition: transform .18s; }
.gcard:hover .thumb { transform: translateY(-3px); }
.gcard .badge-tl { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(4px); }
.gcard .badge-tl.solid { background: var(--accent); color: var(--accent-ink); }
.gcard .badge-tl.gold { background: var(--gold); color: #1a1205; }
.gcard .demo-pill { position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.gcard .demo-pill i { font-size: 13px; color: #fff; }
.gcard .kick { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.gcard .name { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.18; margin-bottom: 5px; }
.gcard .foot { display: flex; align-items: center; gap: 5px; }
.gcard .rt { font-size: 11px; color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 3px; }
.gcard .rt i { font-size: 12px; color: var(--gold); }

/* grid card (catalog) */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 13px; padding: 4px 22px 0; }
.gcard.grid-item { width: 100%; }

/* ── CALENDAR STRIP / LIST ── */
.cal-month-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 22px 12px; }
.cal-month-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cal-month-head { align-items: center; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav .icon-btn { width: 32px; height: 32px; border: 1px solid var(--line); }
.cal-nav .icon-btn i { font-size: 17px; }
.cal-list { padding: 0 22px; }
.cal-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cal-item:first-child { border-top: none; }
.cal-date { text-align: center; min-width: 38px; flex-shrink: 0; }
.cal-date .d { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.cal-date .m { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.cal-thumb { width: 46px; height: 46px; border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.cal-body { flex: 1; min-width: 0; }
.cal-name { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.cal-sub { font-size: 11px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cal-mini-tags { display: flex; gap: 4px; margin-top: 5px; }
.mini-tag { font-size: 8.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 5px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--ink-3); }
.mini-tag.gold { color: var(--gold); border-color: var(--gold); }
.mini-tag.acc { color: var(--accent); border-color: var(--accent); }
.bell { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all .15s; background: transparent; }
.bell i { font-size: 15px; color: var(--ink-2); }
.bell:hover { border-color: var(--accent); }
.bell.on { background: var(--accent); border-color: var(--accent); }
.bell.on i { color: var(--accent-ink); }

/* ── MONTH GRID ── */
.month { padding: 4px 18px 0; }
.dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.dow span { text-align: center; font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcell { min-width: 0; min-height: 62px; border-radius: 6px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 7px 2px 5px; position: relative; cursor: default; }
.mcell.empty { border: none; }
.mcell .num { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mcell.has { cursor: pointer; background: var(--surface); }
.mcell.has:hover { border-color: var(--accent); }
.mcell.sel { background: var(--accent); border-color: var(--accent); }
.mcell.sel .num { color: var(--accent-ink); }
.mcell .dots { display: flex; gap: 2px; margin-top: auto; }
.mcell .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.mcell .dot.gold { background: var(--gold); }
.mcell.sel .dot { background: var(--accent-ink); }
.month-detail { padding: 14px 22px 0; }
.month-detail .dh { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }

/* ── VIEW TOGGLE ── */
.viewtoggle { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; margin: 0 22px 6px; }
.viewtoggle button { flex: 1; padding: 9px; border: none; background: transparent; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.viewtoggle button i { font-size: 15px; }
.viewtoggle button.on { background: var(--ink); color: var(--bg); }

/* ── CHIPS / FILTER BAR ── */
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 6px 22px 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; font-size: 11.5px; font-weight: 500; padding: 7px 13px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--ink-2); background: transparent; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.toolbar { display: flex; gap: 8px; align-items: center; padding: 4px 22px 6px; }
.searchbox { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.searchbox i { font-size: 17px; color: var(--ink-3); }
.searchbox input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--sans); font-size: 13.5px; color: var(--ink); }
.searchbox input::placeholder { color: var(--ink-3); }
.tool-btn { position: relative; height: 40px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; cursor: pointer; flex-shrink: 0; }
.tool-btn i { font-size: 16px; }
.tool-btn .count { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.result-meta { display: flex; align-items: center; justify-content: space-between; padding: 4px 22px 8px; }
.result-meta .n { font-size: 11.5px; color: var(--ink-3); }
.result-meta .clear { font-size: 11.5px; color: var(--accent); cursor: pointer; }

/* ── BOTTOM NAV ── */
.bottomnav { display: flex; justify-content: space-around; align-items: center; padding: 9px 0 24px; border-top: 1px solid var(--line); background: var(--surface); flex-shrink: 0; }
.navbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; padding: 4px 16px; position: relative; }
.navbtn i { font-size: 23px; color: var(--ink-3); transition: color .15s; }
.navbtn .lbl { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.navbtn.on i, .navbtn.on .lbl { color: var(--accent); }
.navbtn .ndot { position: absolute; top: -1px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ── BUTTONS ── */
.btn { font-family: var(--sans); border: none; cursor: pointer; border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); padding: 14px; font-size: 14px; }
.btn-dark { background: var(--ink); color: var(--bg); padding: 14px; font-size: 14px; }
.btn-outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); padding: 14px; font-size: 14px; }
.btn-outline.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn i { font-size: 17px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── GAME PROFILE ── */
.gp-hero { position: relative; height: 280px; flex-shrink: 0; }
.gp-hero .ov { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 1%, transparent 58%); }
.gp-back { position: absolute; top: 52px; left: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.42); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.gp-back i { font-size: 19px; color: #fff; }
.gp-share { position: absolute; top: 52px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.42); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.gp-share i { font-size: 18px; color: #fff; }
.gp-body { flex: 1; overflow-y: auto; scrollbar-width: none; }
.gp-body::-webkit-scrollbar { display: none; }
.gp-kick { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.gp-title { font-family: var(--serif); font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.04; margin-bottom: 12px; letter-spacing: -.015em; }
.gp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.gbadge { font-size: 10.5px; font-weight: 500; padding: 5px 10px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.gbadge.solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.gbadge.gold { background: var(--gold); color: #1a1205; border-color: var(--gold); font-weight: 600; }
.gp-blurb { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.stat { background: var(--surface); padding: 13px 15px; }
.stat .l { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.stat .v { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); }
.gp-sec-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.gp-block { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; }

/* rating summary */
.rate-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rate-big { font-family: var(--serif); font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; }
.rate-meta .stars { margin-bottom: 4px; }
.rate-meta .cnt { font-size: 11.5px; color: var(--ink-3); }
.stars { display: inline-flex; gap: 2px; }
.stars i { color: var(--gold); font-size: 14px; }
.stars i.empty { color: var(--line-strong); }
.stars.interactive i { cursor: pointer; font-size: 30px; transition: transform .1s; }
.stars.interactive i:hover { transform: scale(1.15); }

.your-rating { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; text-align: center; }
.your-rating .q { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.your-rating .stars.interactive { justify-content: center; gap: 6px; }
.your-rating .done { color: var(--green-reg); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.write-link { font-size: 12.5px; color: var(--accent); cursor: pointer; margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }

.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: none; }
.review .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review .who { display: flex; align-items: center; gap: 7px; }
.review .who .nm { font-size: 12px; font-weight: 600; color: var(--ink); }
.review .who .vf { font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green-reg); border: 1px solid var(--green-reg); padding: 1px 5px; border-radius: 3px; }
.review .dt { font-size: 10.5px; color: var(--ink-3); }
.review .tx { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 8px; }
.review .acts { display: flex; gap: 16px; }
.review .acts span { font-size: 11px; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; gap: 5px; }
.review .acts span:hover { color: var(--ink-2); }
.review .acts span.up.on { color: var(--accent); }
.review .acts i { font-size: 13px; }
.sortbar { display: flex; gap: 8px; margin-bottom: 6px; }
.sortbar button { font-size: 11px; font-weight: 500; padding: 5px 11px; border-radius: 16px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-3); cursor: pointer; }
.sortbar button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* operator */
.op-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface); }
.op-top { display: flex; align-items: center; justify-content: space-between; }
.op-info { display: flex; align-items: center; gap: 12px; }
.op-logo { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.op-logo i { font-size: 22px; color: var(--accent); }
.op-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.op-reg { font-size: 10.5px; color: var(--green-reg); display: flex; align-items: center; gap: 4px; font-weight: 500; }
.op-reg i { font-size: 12px; }
.disc { font-size: 10px; color: var(--ink-3); line-height: 1.5; margin-top: 12px; }

/* responsible gambling quiet notice */
.rg-note { font-size: 10px; color: var(--ink-3); line-height: 1.5; text-align: center; padding: 14px 22px 4px; border-top: 1px solid var(--line); }
.rg-note a { color: var(--ink-2); text-decoration: underline; }

/* ── CTA BAR ── */
.cta-bar { display: flex; gap: 10px; padding: 12px 22px 26px; border-top: 1px solid var(--line); background: var(--surface); flex-shrink: 0; }
.cta-bar .btn-primary { flex: 1; }

/* ── COMMUNITY BAND ── */
.comm { margin: 4px 22px 0; padding: 20px; border-radius: 12px; background: var(--ink); position: relative; overflow: hidden; }
.comm .lbl { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 7px; }
.comm .t { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--bg); font-style: italic; margin-bottom: 4px; line-height: 1.1; }
.comm .s { font-size: 12px; color: color-mix(in srgb, var(--bg) 62%, transparent); margin-bottom: 16px; line-height: 1.5; }
.comm-rows { display: flex; flex-direction: column; gap: 8px; }
.comm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px; background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); cursor: pointer; transition: background .15s; }
.comm-row:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }
.comm-row .ci { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.comm-row .ci.wa { background: #25D366; }
.comm-row .ci.ml { background: var(--accent); }
.comm-row .ci i { font-size: 20px; color: #fff; }
.comm-row .ci.ml i { color: var(--accent-ink); }
.comm-row .ct { flex: 1; }
.comm-row .ct .cn { font-size: 13px; font-weight: 600; color: var(--bg); margin-bottom: 1px; }
.comm-row .ct .cd { font-size: 11px; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.comm-row > i.chev { font-size: 17px; color: color-mix(in srgb, var(--bg) 45%, transparent); }

/* ── SHEET / MODAL ── */
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line-strong); border-radius: 20px 20px 0 0; padding: 14px 22px 30px; z-index: 81; transform: translateY(100%); transition: transform .32s cubic-bezier(.32,.72,0,1); max-height: 88%; overflow-y: auto; scrollbar-width: none; }
.sheet::-webkit-scrollbar { display: none; }
.sheet.open { transform: translateY(0); }
.handle { width: 36px; height: 4px; background: var(--line-strong); border-radius: 3px; margin: 2px auto 18px; }
.sheet-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.sheet-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 18px; }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.seg button { flex: 1; padding: 11px; border: none; background: transparent; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button i { font-size: 16px; }
.seg button.on { background: var(--ink); color: var(--bg); }
.field { width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); font-family: var(--sans); font-size: 14.5px; color: var(--ink); outline: none; margin-bottom: 12px; }
.field:focus { border-color: var(--accent); }
.field::placeholder { color: var(--ink-3); }
textarea.field { resize: none; min-height: 96px; line-height: 1.5; }
.charcount { font-size: 10.5px; color: var(--ink-3); text-align: right; margin: -6px 0 12px; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.consent .box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--line-strong); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all .12s; }
.consent .box.on { background: var(--accent); border-color: var(--accent); }
.consent .box i { font-size: 12px; color: var(--accent-ink); }
.consent span { font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.consent a { color: var(--ink-2); text-decoration: underline; }
.sheet-cancel { display: block; text-align: center; font-size: 12px; color: var(--ink-3); cursor: pointer; padding: 6px; margin-top: 4px; }
.confirm { text-align: center; padding: 10px 0 4px; }
.confirm .circ { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.confirm .circ i { font-size: 30px; color: var(--accent); }
.confirm .ct { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.confirm .cs { font-size: 13px; color: var(--ink-2); line-height: 1.55; max-width: 280px; margin: 0 auto; }
.confirm-extra { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ── DEMO OVERLAY ── */
.demo-ov { position: absolute; inset: 0; z-index: 90; background: #06070a; display: flex; flex-direction: column; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; padding-top: 50px; background: rgba(0,0,0,0.6); }
.demo-banner .dt { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #FFD54A; display: flex; align-items: center; gap: 7px; }
.demo-banner .dt i { font-size: 15px; }
.demo-banner .close { color: #fff; cursor: pointer; font-size: 22px; }
.demo-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.demo-fake { text-align: center; color: rgba(255,255,255,0.5); padding: 30px; }
.demo-fake .reels { display: flex; gap: 10px; margin-bottom: 22px; justify-content: center; }
.demo-fake .reel { width: 64px; height: 90px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.demo-fake p { font-size: 13px; line-height: 1.6; }
.demo-foot { padding: 16px 22px 30px; background: rgba(0,0,0,0.5); }

/* ── TOAST ── */
.toast { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 500; padding: 11px 18px; border-radius: 24px; z-index: 95; opacity: 0; transition: all .25s; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,0.4); display: flex; align-items: center; gap: 7px; }
.toast i { font-size: 15px; color: var(--accent); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── EMPTY STATE ── */
.empty { text-align: center; padding: 50px 30px; }
.empty i { font-size: 40px; color: var(--ink-3); margin-bottom: 14px; display: block; }
.empty .et { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.empty .es { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* footer compliance */
.foot { padding: 28px 22px 30px; border-top: 1px solid var(--line); margin-top: 8px; }
.foot .age { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 20px; padding: 4px 11px; margin-bottom: 12px; }
.foot .age .n18 { background: var(--danger); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 8.5px; }
.foot p { font-size: 10.5px; color: var(--ink-3); line-height: 1.6; margin-bottom: 8px; }
.foot .links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot .links a { font-size: 10.5px; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.foot .links a:hover { color: var(--accent); }

.spacer { height: 86px; }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — real web app (mobile full-screen + desktop layout).
   Overrides the phone-mockup model. Mobile-first; desktop ≥1024px.
   ════════════════════════════════════════════════════════════════════ */

/* ── base: centered/scaled phone → full-screen scrolling app ── */
html, body { height: auto; min-height: 100%; }
body {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  background: #0E1411;            /* neutral behind app-shell on overscroll */
}
#root { display: block; width: 100%; height: auto; }

.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--bg-grad);
  color: var(--ink);
}
.app-screen { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

/* fake phone status bar removed entirely */
.statusbar { display: none !important; }

/* internal phone-scroll → natural page flow (the page itself scrolls) */
.scroll { flex: 1 1 auto; overflow: visible; }
.gp-body { overflow: visible; padding-bottom: 96px; }

/* sticky mobile header */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
}

/* mobile bottom tab bar fixed to viewport */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 9px 0 max(12px, env(safe-area-inset-bottom));
}
.bottomnav .navbtn { flex: 1 1 0; min-width: 0; padding: 4px 4px; }
.bottomnav .navbtn .lbl { font-size: 9px; }

/* mobile primary action bar (game) fixed */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; }

/* hero buttons / demo banner no longer clear a fake status bar */
.gp-back, .gp-share { top: 16px; }
.demo-banner { padding-top: 18px; }

/* overlays now relative to the viewport */
.backdrop, .sheet, .demo-ov, .toast { position: fixed; }

/* desktop nav hidden on mobile */
.site-header { display: none; }

/* ── tablet ── */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ── desktop ── */
@media (min-width: 1024px) {
  /* show site header, hide mobile chrome */
  .site-header {
    display: block; position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  }
  .site-header-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 30px; padding: 14px 22px; }
  .site-header .wordmark { font-family: var(--serif); font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
  .site-header .wordmark em { font-style: italic; font-weight: 600; color: var(--accent); }
  .site-nav { display: flex; gap: 4px; flex: 1; }
  .site-nav-link { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: color .15s, background .15s; }
  .site-nav-link:hover { color: var(--ink); background: var(--surface); }
  .site-nav-link.on { color: var(--accent); }
  .site-header-actions { display: flex; gap: 8px; }

  .topbar, .bottomnav { display: none; }

  /* centered content column */
  .app-screen { max-width: 1240px; margin: 0 auto; width: 100%; }

  /* carousels → grids; catalog grid → 4 cols */
  .carousel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; overflow: visible; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .gcard.col { width: 100%; }

  /* hero: cinematic wide banner */
  .hero-fb { height: 380px; border-radius: 12px; }
  .hero-sp { height: 440px; border-radius: 12px; }
  .hero-ed { flex-direction: row; align-items: stretch; }
  .hero-ed .art-box { width: 46%; height: auto; min-height: 320px; }
  .hero-ed .txt { flex: 1; padding: 44px; display: flex; flex-direction: column; justify-content: center; }
  .hero-ed .txt .hero-title { font-size: 34px; }
  .hero-title { font-size: 42px; }

  .sechead .h { font-size: 22px; }
  .secrule { padding-top: 34px; }

  /* community: narrow form column */
  .scroll.pad-x { max-width: 720px; margin-left: auto; margin-right: auto; }

  /* game profile: full-bleed hero, narrow readable body, static CTA */
  .gp-hero { height: 360px; }
  .gp-body { max-width: 760px; margin: 0 auto; padding-bottom: 24px; }
  .gp-title { font-size: 38px; }
  .cta-bar { position: static; max-width: 760px; margin: 16px auto 48px; border: 1px solid var(--line); border-radius: 12px; }

  /* calendar */
  .mcell { min-height: 92px; }
  .cal-month-title { font-size: 24px; }

  /* sheets → centered modal */
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: 440px; max-width: 92vw; max-height: 86vh;
    border-radius: 16px; border: 1px solid var(--line-strong);
    transform: translate(-50%, -46%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s cubic-bezier(.32,.72,0,1), opacity .22s ease;
  }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; pointer-events: auto; }
  .sheet .handle { display: none; }

  /* demo overlay → centered panel */
  .demo-ov {
    left: 50%; right: auto; transform: translateX(-50%);
    width: 460px; max-width: 92vw; top: 32px; bottom: 32px;
    border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong);
  }
  .demo-banner { padding-top: 16px; }

  .toast { bottom: 32px; }
  .gcard:hover .name { color: var(--accent); }
}

/* ── wide desktop: 5 columns ── */
@media (min-width: 1440px) {
  .carousel, .grid { grid-template-columns: repeat(5, 1fr); }
}
