/* ==========================================================
   blastthebass.ee — style.css
   Palette: deep sea navy, harbour mist, buoy orange, brass gold
   ========================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --sea: #0C2B40;
  --sea-2: #123A55;
  --mist: #EAF1F5;
  --paper: #FFFFFF;
  --ink: #0F2230;
  --muted: #4E6677;
  --line: #D2DFE7;
  --buoy: #EE4A1E;
  --buoy-dark: #C93810;
  --gold: #FFC23A;
  --foam: #7FD3F2;

  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --header-h: 68px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--ink);
  background: var(--mist);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--buoy-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--head); color: var(--sea); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 750; margin-bottom: 18px; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 30px 0 10px; }
p { margin: 0 0 16px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--sea); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 700 0.95rem/1.1 var(--body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--buoy { background: var(--buoy); color: #fff; box-shadow: 0 3px 0 var(--buoy-dark); }
.btn--buoy:hover { background: var(--buoy-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--sea); border-color: var(--sea); }
.btn--ghost:hover { background: var(--sea); color: #fff; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 0.85rem; box-shadow: 0 2px 0 var(--buoy-dark); }

.age {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 22px; padding: 0 6px; margin-right: 6px;
  border: 1.5px solid currentColor; border-radius: 6px;
  font: 700 0.72rem/1 var(--body);
}

/* ---------- topline + header ---------- */
.topline { background: var(--sea); color: #C9DCE8; font-size: 0.8rem; }
.topline p { max-width: var(--wrap); margin: 0 auto; padding: 7px var(--gutter); display: flex; align-items: center; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.header__logo img { width: 150px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { background: var(--mist); color: var(--sea); }
.nav .nav__demo { margin-left: 8px; background: var(--sea); color: #fff; }
.nav .nav__demo:hover { background: var(--sea-2); color: #fff; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: var(--mist); border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--sea); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .header__logo img { width: 122px; }
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(12,43,64,.35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 1.05rem; border-radius: 12px; }
  .nav .nav__demo { margin: 8px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero__art { margin: 0; order: -1; }
.hero__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__text { padding: 26px var(--gutter) 30px; }
.hero__provider { font-size: 0.9rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 18px; text-wrap: balance; }
.hero__lead { font-size: 1.08rem; color: #2A4152; max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }

.readout { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 2px solid var(--sea); }
.readout div { padding: 12px 0 4px; border-bottom: 1px solid var(--line); }
.readout div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.readout div:nth-child(even) { padding-left: 16px; }
.readout dt { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.readout dd { margin: 0; font: 800 1.55rem/1.2 var(--head); color: var(--sea); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

@media (min-width: 640px) {
  .hero__actions .btn { min-width: 200px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: stretch; }
  .hero__art { order: 0; padding: 28px 0 28px 0; }
  .hero__art img { height: 100%; min-height: 460px; aspect-ratio: auto; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .hero__text { padding: 48px 48px 44px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); align-self: center; }
  .readout { grid-template-columns: repeat(4, 1fr); }
  .readout div, .readout div:nth-child(odd), .readout div:nth-child(even) { padding: 12px 14px 4px; border-right: 1px solid var(--line); border-bottom: 0; }
  .readout div:first-child { padding-left: 0; }
  .readout div:last-child { border-right: 0; }
}

/* ---------- section chips (mobile / tablet TOC) ---------- */
.chips { position: sticky; top: var(--header-h); z-index: 40; background: rgba(234,241,245,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips__track { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter); scrollbar-width: none; max-width: var(--wrap); margin: 0 auto; }
.chips__track::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 0.87rem; font-weight: 600; text-decoration: none; }
.chips a.is-active { background: var(--sea); border-color: var(--sea); color: #fff; }

/* ---------- 3-column layout ---------- */
.layout { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.toc, .side { display: none; }

@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; padding-top: 44px; }
  .side { display: block; }
}
@media (min-width: 1280px) {
  .chips { display: none; }
  html { scroll-padding-top: calc(var(--header-h) + 24px); }
  .layout { grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 48px; }
  .toc { display: block; }
}

/* left TOC */
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.toc__title { font: 700 0.95rem/1 var(--head); color: var(--sea); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.35; }
.toc a:hover { color: var(--sea); }
.toc a.is-active { color: var(--sea); font-weight: 700; border-left-color: var(--buoy); }

/* right sticky casinos */
.side { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.side__box { background: var(--sea); color: #fff; border-radius: var(--r-lg); padding: 20px 18px 16px; position: relative; overflow: hidden; }
.side__box::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 110px;
  background: linear-gradient(180deg, rgba(12,43,64,.2), var(--sea)), url("../img/blast-the-bass-640.webp") center 35% / cover;
  opacity: .55;
}
.side__title { position: relative; font: 750 1.15rem/1.2 var(--head); margin: 0 0 16px; letter-spacing: -0.01em; }
.side__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-casino { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 8px 10px 8px 8px; }
.side-casino__logo { position: relative; width: 48px; height: 48px; }
.side-casino__rank { position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--sea); font: 800 0.72rem/1 var(--head); box-shadow: 0 0 0 2px var(--sea); }
.side-casino img { width: 48px; height: 48px; border-radius: 10px; }
.side-casino__txt { display: flex; flex-direction: column; min-width: 0; }
.side-casino__txt strong { font-size: 0.92rem; line-height: 1.2; }
.side-casino__txt span { font-size: 0.8rem; color: var(--gold); line-height: 1.3; font-weight: 600; }
.side__more { position: relative; display: block; text-align: center; margin-top: 14px; color: #fff; font-weight: 600; font-size: 0.9rem; }
.side__more:hover { color: var(--gold); }
.side__fine { position: relative; margin: 8px 0 0; text-align: center; font-size: 0.75rem; color: #9DB6C6; }

/* ---------- content ---------- */
.content { min-width: 0; max-width: 760px; }
.content > section { padding-top: 12px; margin-bottom: 48px; }
.content > section + section { border-top: 1px solid var(--line); padding-top: 44px; }
.intro { font-size: 1.12rem; color: #2A4152; border-left: 4px solid var(--gold); padding-left: 18px; margin-bottom: 36px; }

.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.checklist li { position: relative; padding: 12px 16px 12px 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.checklist li::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FFC23A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist strong { color: var(--sea); }

/* ---------- casino cards ---------- */
.casinos { list-style: none; margin: 26px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.casino {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 12px 14px;
}
.casino:first-child { border: 2px solid var(--gold); }
.casino__rank { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--sea); color: #fff; font: 700 0.8rem/1 var(--head); }
.casino:first-child .casino__rank { background: var(--gold); color: var(--sea); }
.casino__logo img { width: 72px; height: 72px; border-radius: 16px; }
.casino__body { margin: 10px 0 14px; }
.casino__name { font-size: 1.05rem; margin: 0 0 4px; }
.casino__label { font-size: 0.75rem; color: var(--muted); margin: 0; }
.casino__bonus { font: 750 1.02rem/1.25 var(--head); color: var(--sea); margin: 2px 0 0; letter-spacing: -0.01em; }
.casino__btn { width: 100%; margin-top: auto; }

@media (max-width: 359px) { .casinos { grid-template-columns: 1fr; grid-auto-rows: auto; } }

@media (min-width: 700px) {
  .casinos { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  .casino { display: grid; grid-template-columns: 30px 80px minmax(0, 1fr) auto; align-items: center; gap: 18px; text-align: left; padding: 14px 18px 14px 16px; }
  .casino__rank { position: static; }
  .casino__logo img { width: 80px; height: 80px; }
  .casino__body { margin: 0; }
  .casino__name { font-size: 1.15rem; }
  .casino__bonus { font-size: 1.25rem; }
  .casino__btn { width: auto; min-width: 150px; margin: 0; }
}
.fineprint { font-size: 0.8rem; color: var(--muted); }

/* ---------- inline CTA strip ---------- */
.cta {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px;
  margin: 28px 0 8px; padding: 14px; border-radius: var(--r-lg);
  background: var(--sea); color: #fff;
}
.cta img { width: 56px; height: 56px; border-radius: 12px; }
.cta__lead { margin: 0; font: 700 1.02rem/1.25 var(--head); }
.cta__offer { margin: 2px 0 0; font-size: 0.9rem; color: #BFD3E0; }
.cta__offer strong { color: #fff; font-weight: 600; }
.cta__offer span { color: var(--gold); font-weight: 600; margin-left: 4px; }
.cta__actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.cta__actions .btn { flex: 1; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cta .btn--ghost:hover { background: #fff; color: var(--sea); }
@media (min-width: 640px) {
  .cta { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 14px 16px 14px 14px; }
  .cta__actions { grid-column: auto; }
  .cta__actions .btn { flex: none; }
}

/* ---------- facts ---------- */
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 22px 0 24px; }
.facts > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.facts > div:last-child { border-bottom: 0; }
.facts [role="rowheader"] { color: var(--muted); }
.facts [role="cell"] { font-weight: 600; color: var(--ink); }
.facts .is-key { background: #FFF6DE; }
.facts .is-key [role="cell"] { font: 800 1.15rem/1.3 var(--head); color: var(--sea); }
@media (max-width: 479px) {
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .facts [role="rowheader"] { font-size: 0.82rem; }
}

.note { margin: 22px 0; padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px dashed var(--sea-2); font: 600 1.05rem/1.5 var(--head); color: var(--sea); }

/* ---------- symbols table ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.symbols { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.symbols th, .symbols td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.symbols thead th { background: var(--sea); color: #fff; font: 700 0.9rem/1.2 var(--head); }
.symbols tbody th { font-family: var(--head); color: var(--sea); white-space: nowrap; }
.symbols tbody tr:last-child > * { border-bottom: 0; }
.symbols td:last-child { white-space: nowrap; }
.symbols b { color: var(--buoy-dark); }
@media (max-width: 599px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .symbols thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .symbols, .symbols tbody, .symbols tr, .symbols th, .symbols td { display: block; width: 100%; }
  .symbols tr { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; padding: 6px 0; }
  .symbols th, .symbols td { border: 0; padding: 6px 16px; }
  .symbols tbody th { font-size: 1.1rem; padding-top: 10px; }
  .symbols td::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
  .symbols td:last-child { white-space: normal; }
}

/* ---------- scatter ladder ---------- */
.ladder { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 8px; }
.ladder li { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px 12px 12px; }
.ladder li:nth-child(2) { margin-left: 12px; } .ladder li:nth-child(3) { margin-left: 24px; }
.ladder__n { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--sea); color: var(--gold); font: 800 1.7rem/1 var(--head); }
.ladder li:nth-child(3) .ladder__n { background: var(--buoy); color: #fff; }
.ladder__what { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.ladder__res { font-weight: 600; line-height: 1.4; }
.ladder__res b { color: var(--buoy-dark); }
@media (max-width: 479px) { .ladder li:nth-child(2), .ladder li:nth-child(3) { margin-left: 0; } }

/* ---------- features ---------- */
.features { display: grid; gap: 12px; margin: 20px 0 8px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 6px; }
.feature h3 { margin-top: 0; }
.feature ul { margin: 0 0 16px; padding-left: 20px; }
.feature li { margin: 3px 0; }
.feature li::marker { color: var(--buoy); }
.feature:first-child { background: linear-gradient(135deg, #fff 60%, #FFF1CC); }

/* ---------- gauge (RTP) ---------- */
.gauge { background: var(--sea); color: #fff; border-radius: var(--r-lg); padding: 18px 20px; margin: 4px 0 22px; display: grid; gap: 12px; }
.gauge__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 0.88rem; }
.gauge__row span { color: #BFD3E0; }
.gauge__row b { font: 800 1.05rem/1 var(--head); color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }
.gauge__bar { height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.gauge__bar i { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, var(--foam), var(--gold)); border-radius: 99px; }

/* ---------- demo window ---------- */
.demo { background: var(--sea); border-radius: var(--r-lg); overflow: hidden; margin: 6px 0 10px; box-shadow: 0 24px 40px -28px rgba(12,43,64,.7); }
.demo__screen { position: relative; aspect-ratio: 16 / 9; background: #06151f; overflow: hidden; }
.demo__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.9) blur(2px); transform: scale(1.04); }
.demo__start {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px; background: radial-gradient(ellipse at center, rgba(6,21,31,.15), rgba(6,21,31,.6));
  text-align: center;
}
.demo__logo { width: clamp(150px, 42%, 280px); height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.demo__start p { margin: 0; color: #D7E6EF; font-size: 0.85rem; }
@media (max-width: 420px) { .demo__start { gap: 8px; } .demo__start p { display: none; } .demo__start .btn--lg { min-height: 46px; padding: 11px 22px; } }
.demo__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: #fff; }
.demo__title { font: 700 0.95rem/1.2 var(--head); }
.demo__title small { font: 500 0.78rem var(--body); color: #9DB6C6; margin-left: 6px; }
.demo__tools { display: flex; gap: 6px; }
.demo__tool { font: 600 0.8rem/1 var(--body); color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.demo__tool:hover { background: rgba(255,255,255,.2); }
.demo__fallback { font-size: 0.82rem; color: var(--muted); margin-bottom: 26px; }
.demo.is-playing .demo__cover, .demo.is-playing .demo__start { display: none; }
/* portrait phones: taller window so the game UI keeps readable size */
@media (max-width: 599px) and (orientation: portrait) {
  .demo.is-playing .demo__screen { aspect-ratio: 3 / 4; }
}
/* fullscreen: game fills the screen but never escapes the window element */
.demo:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.demo:fullscreen .demo__screen { flex: 1; aspect-ratio: auto; }
.demo.is-pseudo-fs { position: fixed; inset: 0; z-index: 200; border-radius: 0; display: flex; flex-direction: column; margin: 0; }
.demo.is-pseudo-fs .demo__screen { flex: 1; aspect-ratio: auto; }

/* ---------- pros / cons ---------- */
.proscons { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .proscons { grid-template-columns: 1fr 1fr; } }
.pc { border-radius: var(--r-lg); padding: 20px 22px 8px; background: #fff; border: 1px solid var(--line); }
.pc h3 { margin: 0 0 12px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.pc h3::before { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem/1 var(--body); }
.pc--pro h3::before { content: "+"; background: #D9F2E4; color: #13693A; }
.pc--con h3::before { content: "−"; background: #FDE2DA; color: var(--buoy-dark); }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.96rem; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; font: 700 1.05rem/1.35 var(--head); color: var(--sea); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--buoy); border-bottom: 2px solid var(--buoy); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { padding: 0 18px 16px; margin: 0; color: #2A4152; }

/* ---------- mobile dock ---------- */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px; background: var(--sea); color: #fff; border-radius: 18px;
  box-shadow: 0 12px 30px -8px rgba(6,21,31,.55);
  transform: translateY(0); transition: transform .25s, opacity .25s;
}
.dock[hidden] { display: none; }
.dock.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock img { width: 40px; height: 40px; border-radius: 10px; }
.dock__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dock__txt strong { font-size: 0.9rem; }
.dock__txt span { font-size: 0.78rem; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__close { width: 28px; height: 28px; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
@media (min-width: 1024px) { .dock { display: none !important; } }

/* ---------- footer ---------- */
.footer { background: var(--sea); color: #BFD3E0; font-size: 0.88rem; }
.footer__inner { max-width: 860px; margin: 0 auto; padding: 40px var(--gutter) 96px; text-align: center; }
.footer img { margin: 0 auto 20px; width: 160px; }
.footer a { color: #fff; }
.footer__rg { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; color: #fff; }
.footer__copy { color: #7F9AAD; margin: 18px 0 0; }
@media (min-width: 1024px) { .footer__inner { padding-bottom: 40px; } }
