:root {
  --paper: #f6f1e7;
  --sheet: #fffdf8;
  --sheet-2: #efe7d6;
  --ink: #15212c;
  --ink-soft: #55616c;
  --maple: #c8102e;
  --maple-deep: #9e0c24;
  --lake: #0e5e66;
  --bronze: #b7832f;
  --rule: #dccfb8;
  --band: #10222b;
  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r-sm: 3px;
  --r-md: 6px;
  --measure: 70ch;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(183, 131, 47, .14), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(21, 33, 44, .035) 31px 32px);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lake); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maple); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lake); outline-offset: 4px; }
.calc a:focus-visible, .calc button:focus-visible, .foot a:focus-visible, .dock a:focus-visible { outline-color: #f5c770; }
::selection { background: #d5e6e1; color: var(--ink); }

h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; margin: 0 0 .6rem; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 650; margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.2rem; font-weight: 650; margin: 1.6rem 0 .5rem; }
p, ul, ol { max-width: var(--measure); }
strong { font-weight: 700; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; z-index: 50; background: var(--sheet); padding: .5rem 1rem; }

/* masthead */
.mast {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 241, 231, .94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.mast-row { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.mast-nav { margin-left: auto; }
.mast-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; max-width: none; }
.mast-nav a { display: block; padding: .45rem .7rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mast-nav a:hover, .mast-nav a[aria-current="page"] { background: var(--sheet-2); color: var(--maple); }
.nav-toggle { display: none; }

/* lede (hero) */
.lede { padding: 2.4rem 0 1.4rem; }
.lede-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 2.2rem; align-items: start; }
.kicker { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lake); margin: 0 0 .7rem; }
.lede-copy > p { font-size: 1.12rem; }
.lede-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; align-items: center; }
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: .9rem; }
.crumbs a { color: var(--ink-soft); }

/* editorial photography and portal navigation */
.editorial-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: 1.75rem; }
.editorial-copy { min-width: 0; }
.editorial-copy h1 { font-size: clamp(2rem, 3.7vw, 2.85rem); text-wrap: balance; }
.editorial-copy .answer { margin-bottom: 0; }
.editorial-cover { position: relative; margin: 0; align-self: stretch; min-height: 330px; overflow: hidden; border-radius: 10px; background: var(--band); }
.editorial-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.editorial-cover figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 1.1rem 1rem; background: linear-gradient(transparent, rgba(8,20,27,.9)); color: #fff; font-size: .85rem; font-weight: 600; }
.portal-stories { margin: 1.5rem 0 2.5rem; }
.portal-heading { margin-bottom: 1rem; }
.portal-heading h2 { margin: 0 0 .4rem; }
.portal-heading p { margin: 0; color: var(--ink-soft); }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.story-link { display: flex; flex-direction: column; min-width: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 9px; overflow: hidden; color: var(--ink); text-decoration: none; }
.story-link > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.story-link:first-child > img { object-fit: contain; background: #21143d; }
.story-link:nth-child(2) > img { object-position: 50% 65%; }
.story-copy { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.story-copy h3 { margin: 0 0 .45rem; font-size: 1.2rem; }
.story-copy p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1rem; line-height: 1.5; }
.story-copy span { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; color: var(--lake); font-size: .85rem; font-weight: 700; }
.story-copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
@media (hover: hover) { .story-link:hover { border-color: var(--lake); } .story-link:hover h3 { color: var(--lake); } }
@media (max-width: 900px) { .editorial-intro { grid-template-columns: 1fr; gap: 1.25rem; } .editorial-cover { min-height: 0; aspect-ratio: 16 / 7; } .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .editorial-cover { aspect-ratio: 4 / 3; } .story-grid { gap: .75rem; } .story-copy { padding: .8rem; } .story-copy h3 { font-size: 1.05rem; } .story-copy p { font-size: .85rem; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 48px; padding: .7rem 1.25rem;
  border: 2px solid var(--ink); border-radius: var(--r-sm);
  background: var(--maple); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 8px -4px rgba(21, 33, 44, .3);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { color: #fff; background: var(--maple-deep); transform: translateY(-1px); box-shadow: 0 5px 12px -5px rgba(21, 33, 44, .35); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-ghost { background: var(--sheet); color: var(--ink); }
.btn-ghost:hover { background: var(--sheet-2); color: var(--ink); }
a.cta, button { min-height: 48px; }

/* ranked slips (brand cards) */
.slips { display: flex; flex-direction: column; gap: 1rem; }
.slip {
  position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .5rem 1.25rem;
  --stub: var(--bronze);
  background: var(--sheet); border: 1px solid var(--rule);
  border-radius: 10px; padding: 1.35rem 1.3rem 1.25rem;
  box-shadow: inset 0 3px 0 var(--stub), 0 6px 18px -12px rgba(21, 33, 44, .2);
}
.slip[data-brand-card="spinwinera"] { --stub: #7928ca; }
.slip[data-brand-card="spinwinera"] .slip-logo { background: #0b0a18; padding: 4px; }
.slip[data-brand-card="rainbet"] { --stub: var(--lake); }
.slip-logo { grid-row: span 3; align-self: start; width: 120px; height: 72px; border-radius: 7px; background: #0c0d21; display: grid; place-items: center; padding: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.slip-logo img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.slip-body { display: contents; }
.slip-body > li { list-style: none; margin: 0; padding: 0; }
.slip-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.slip-name { font-family: var(--f-head); font-size: 1.3rem; line-height: 1.25; font-weight: 700; margin: 0; }
.rank-badge { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; padding: .15rem .45rem; border-radius: var(--r-sm); background: var(--sheet-2); color: var(--ink-soft); }
.slip .badge-brand { font-family: var(--f-body); font-size: .75rem; font-weight: 650; letter-spacing: 0; line-height: 1.5; padding: .2rem .6rem; border: 1px solid #e5d7ba; border-radius: 5px; background: #f5eddc; color: #79551d; }
.slip[data-brand-card="rainbet"] .badge-brand { background: #eaf3f1; border-color: #cddfdb; color: #0e5e66; }
.slip[data-brand-card="spinwinera"] .badge-brand { background: #f1ebf8; border-color: #e1d4ef; color: #65379a; }
.slip-offer { font-family: var(--f-head); font-size: 1.15rem; line-height: 1.4; font-weight: 650; color: var(--maple); }
.slip-terms { font-family: var(--f-body); font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }
.slip-body > .slip-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; margin-top: .35rem; padding-top: .85rem; border-top: 1px solid #eee5d6; }
.slip-actions .btn { min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--maple); border-radius: 6px; box-shadow: 0 3px 7px -4px rgba(158,12,36,.4); font-size: .95rem; }
.slip-actions .btn:hover { transform: none; border-color: var(--maple-deep); box-shadow: 0 4px 9px -4px rgba(158,12,36,.45); }
.slip-actions .btn:active { transform: translateY(1px); box-shadow: none; }
.slip-review { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .875rem; text-decoration-color: #9bb6b4; text-underline-offset: 4px; }
.slip a:focus-visible { outline: 2px solid var(--lake); outline-offset: 4px; }

/* rotation: final order is known before first paint (html[data-rot] set in head) */
html[data-rot="1"] [data-brand-card="spinwinera"], html[data-rot="2"] [data-brand-card="rainbet"] { order: -1; }
html[data-rot="1"] [data-brand-card="slotsgem"], html[data-rot="2"] [data-brand-card="spinwinera"] { order: 1; }

/* sections */
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1.4rem 1.5rem; margin: 1.6rem 0; }
.sheet > h2:first-child, .sheet > h3:first-child { margin-top: 0; }
.answer { font-size: 1.08rem; }
.aside-note { border: 1px solid rgba(14, 94, 102, .35); background: rgba(14, 94, 102, .06); padding: .9rem 1.1rem; margin: 1.3rem 0; border-radius: var(--r-md); max-width: var(--measure); }
.aside-note p { margin: .3rem 0; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.figure-ledger { margin: 1.6rem 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1rem; }
.figure-ledger svg { width: 100%; height: auto; display: block; }
.figure-ledger figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .6rem; }
.media-fig { margin: 1.6rem 0; }
.media-fig img { border-radius: var(--r-md); border: 1px solid var(--rule); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.media-fig img[width="512"] { aspect-ratio: 512 / 713; width: min(100%, 320px); }
.media-fig figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .5rem; }
.source-line { font-size: .86rem; color: var(--ink-soft); border-top: 1px dashed var(--rule); padding-top: .7rem; margin-top: 1.4rem; }

/* tables */
.table-scroll { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--sheet); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
caption { text-align: left; padding: .8rem 1rem 0; font-weight: 700; font-family: var(--f-head); }
th, td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--sheet-2); font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--f-mono); white-space: nowrap; }

/* lists */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: .2rem 0 .9rem 2.8rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 2rem; height: 2rem; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); }
.ticks { padding-left: 1.2rem; }
.ticks li { margin: .35rem 0; }
.ticks li::marker { color: var(--bronze); }

/* calculators and tools */
.calc { background: var(--band); color: #f4efe6; color-scheme: dark; border: 1px solid #293e46; border-radius: 10px; padding: clamp(1.15rem, 3vw, 2rem); margin: 1.8rem 0; }
.calc h2, .calc h3 { color: #fff; margin-top: 0; }
.calc h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; margin-bottom: .75rem; }
.calc a { color: #f5c770; }
.calc p { color: #dcd6cb; }
.calc > p { margin: .75rem 0 1.25rem; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 160px); align-items: center; gap: .5rem 1.25rem; max-width: 34rem; margin: .85rem 0; }
.calc label { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; font-weight: 600; line-height: 1.45; color: #e9e2d4; min-width: 0; }
.calc input, .calc select {
  width: 100%; min-width: 0; max-width: 100%; font: 500 1rem var(--f-body); font-variant-numeric: tabular-nums;
  min-height: 48px; padding: .65rem .8rem; border: 1px solid #526871; border-radius: 6px; background: #0b1a21; color: #fff; caret-color: #f5c770;
}
.calc input:hover, .calc select:hover { border-color: #84979e; }
.calc input:focus-visible, .calc select:focus-visible { outline: 2px solid #f5c770; outline-offset: 3px; }
.calc-out { font-family: var(--f-body); font-size: 1rem; line-height: 1.65; background: #0b1a21; border: 1px solid #344b55; border-radius: 7px; padding: .25rem 1.15rem; margin-top: 1.35rem; font-variant-numeric: tabular-nums; }
.calc-out p { max-width: 75ch; margin: 0; padding: .85rem 0; color: #f4efe6; }
.calc-out p + p { border-top: 1px solid #293e46; }
.calc .btn { box-shadow: 0 3px 8px -4px #000; border-color: var(--maple); }
.calc ul { color: #dcd6cb; }
.calc > .ticks { margin: 1.35rem 0; font-size: .95rem; }
.calc > .ticks li { padding-left: .2rem; margin: .65rem 0; }
.calc > :last-child { margin-bottom: 0; }
.calc-list { list-style: none; padding: 0; margin: .8rem 0 0; }
.calc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding: .55rem 0; border-bottom: 1px solid #23394a; }
.calc-list button { min-height: 44px; background: transparent; color: #f5c770; border: 1px solid #3a5260; border-radius: var(--r-sm); padding: 0 .8rem; cursor: pointer; }
.board-form { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; margin: 1rem 0; }
.board-form .calc-row { grid-template-columns: minmax(0, 1fr); margin: 0; flex: 1 1 180px; }
.board-form .btn { flex: none; }
.board-form .btn-ghost { background: transparent; color: #f4efe6; border-color: #f4efe6; }
.board-form .btn-ghost:hover { background: #23394a; color: #fff; }
.board-list { list-style: none; padding: 0; margin: .8rem 0 0; max-width: none; }
.board-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .9rem; padding: .6rem 0; border-bottom: 1px solid #23394a; color: #f4efe6; font-family: var(--f-mono); font-size: .9rem; }
.board-list button { min-height: 44px; background: transparent; color: #f5c770; border: 1px solid #3a5260; border-radius: var(--r-sm); padding: 0 .8rem; cursor: pointer; font: 600 .85rem var(--f-body); transition: background-color .18s var(--ease); }
.board-list button:hover { background: #23394a; }
.calc progress { display: block; width: 100%; height: 12px; margin-top: .5rem; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: #23394a; overflow: hidden; }
.calc progress::-webkit-progress-bar { background: #23394a; border-radius: 99px; }
.calc progress::-webkit-progress-value { background: var(--bronze); border-radius: 99px; }
.calc progress::-moz-progress-bar { background: var(--bronze); border-radius: 99px; }

/* glossary */
.glossary { display: grid; grid-template-columns: minmax(120px, 13rem) minmax(0, 1fr); gap: .2rem 1.4rem; margin: 1.2rem 0; max-width: var(--measure); }
.glossary dt { font-family: var(--f-mono); font-weight: 700; font-size: .9rem; color: var(--lake); padding: .55rem 0; border-top: 1px solid var(--rule); }
.glossary dd { margin: 0; padding: .55rem 0; border-top: 1px solid var(--rule); }

/* games grid (slots page) */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.game-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; overflow-wrap: anywhere; hyphens: auto; }
.game-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.game-card h3 { font-size: 1rem; margin: .6rem .7rem .2rem; }
.game-card p { font-size: .85rem; color: var(--ink-soft); margin: 0 .7rem .6rem; }
.game-card a { margin: auto .7rem .8rem; font-weight: 700; font-size: .9rem; }

/* FAQ */
.faq-list h3 { font-size: 1.08rem; margin: 1.4rem 0 .35rem; }
.faq-list p { margin: 0 0 .6rem; }

/* evidence */
.evidence { border: 2px solid var(--ink); background: var(--sheet); border-radius: var(--r-md); padding: 1.2rem 1.4rem; margin: 2rem 0; box-shadow: 0 6px 20px -12px rgba(21, 33, 44, .25); }
.evidence h2 { margin-top: 0; }
.evidence li { margin: .45rem 0; }

/* link rail */
.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; list-style: none; padding: 0; max-width: none; }
.rail a { display: block; padding: .8rem 1rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 48px; }
.rail a:hover { border-color: var(--maple); color: var(--maple); }

/* footer */
.foot { margin-top: 3.5rem; background: var(--band); color: #d6d0c5; padding: 2.4rem 0 6rem; font-size: .95rem; }
.foot a { color: #f2dcae; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem; }
.foot-title { color: #fff; font-size: 1.05rem; font-weight: 650; margin: 0 0 .6rem; font-family: var(--f-head); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: .3rem 0; }
.foot-legal { border-top: 1px solid #2c4250; margin-top: 1.8rem; padding-top: 1.2rem; font-size: 1rem; color: #ece6db; max-width: 88ch; }
.age-mark { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid #f2dcae; border-radius: 50%; font-family: var(--f-mono); font-weight: 700; margin-right: .6rem; vertical-align: middle; }

/* mobile dock (sticky CTA) */
.dock { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .4rem; margin-left: auto;
    min-height: 44px; padding: 0 .9rem; border: 2px solid var(--ink); border-radius: var(--r-sm);
    background: var(--sheet); color: var(--ink); font: 700 .95rem var(--f-body); cursor: pointer;
  }
  .mast-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .6rem 1.25rem 1rem; }
  nav.mast-nav.open { display: block; }
  .mast-nav ul { flex-direction: column; }
  .mast-nav a { min-height: 44px; display: flex; align-items: center; }
  .lede-grid, .split { grid-template-columns: 1fr; }
  .lede { padding-top: 1.4rem; }
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; gap: .7rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--band); color: #fff; border-top: 3px solid var(--bronze);
  }
  .dock img { width: 54px; height: 34px; object-fit: contain; flex: none; background: #0c0d21; border-radius: var(--r-sm); padding: 3px; }
  .dock-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
  .dock-text strong { font-size: .95rem; }
  .dock-text span { font-size: .8rem; color: #e3dccd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dock .btn { min-height: 46px; padding: .4rem .9rem; font-size: .9rem; box-shadow: none; border-color: var(--maple); flex: none; }
  .slip { grid-template-columns: 96px minmax(0, 1fr); gap: .65rem .9rem; padding: 1.15rem 1rem 1rem; }
  .slip-logo { width: 96px; height: 52px; }
  .slip-logo img { max-height: 42px; }
  .slip-logo { grid-row: span 2; }
  .slip-terms, .slip-body > .slip-actions { grid-column: 1 / -1; }
  .glossary { grid-template-columns: 1fr; }
  .glossary dd { border-top: 0; padding-top: 0; }
  input, select { font-size: 16px; }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 2rem); }
  .sheet { padding: 1.15rem; }
  .calc-row { grid-template-columns: minmax(0, 1fr); gap: .45rem; margin: 1rem 0; }
  .calc-out { padding-inline: .9rem; }
  .slip-actions .btn { width: 100%; }
  .slip-review { justify-content: center; width: 100%; }
  .slip-name { font-size: 1.2rem; }
  .evidence { padding: 1.15rem; }
}

@media (min-width: 901px) {
  .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Portal structure and editorial navigation */
.portal-home .lede { padding-bottom: .7rem; }
.portal-home .editorial-copy h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.08; }
.portal-home .editorial-copy .answer { max-width: 48ch; margin-top: 1.2rem; font-size: 1.12rem; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.25rem; margin-top: 1.5rem; }
.hero-links > a:last-child { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; min-height: 44px; }
.hero-links svg, .section-heading svg, .tool-links svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.publication-note { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; color: var(--ink-soft); font-size: .8rem; margin: 1rem 0; }
.publication-note a { color: var(--lake); }
.page-jumps { display: flex; flex-wrap: wrap; gap: .2rem .45rem; padding: .7rem 0; border-block: 1px solid var(--rule); margin: 1rem 0 .5rem; }
.page-jumps a { display: flex; align-items: center; min-height: 44px; padding: .35rem .75rem; border-radius: 5px; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.page-jumps a:hover { color: var(--lake); background: #e8e7dc; }
.casino-selection { margin: 1.5rem 0 2.5rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.2rem; }
.section-heading h2 { margin: 0 0 .4rem; }
.section-heading p { margin: 0; color: var(--ink-soft); }
.section-heading > a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9rem; font-weight: 600; }
.selection-note { color: var(--ink-soft); font-size: .82rem; margin: .9rem 0 0; }
.portal-tools { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; border-block: 1px solid var(--rule); padding: 2rem 0; margin: 2.5rem 0 1rem; }
.tools-intro h2 { margin: 0 0 .7rem; }
.tools-intro p { color: var(--ink-soft); margin: 0 0 1rem; }
.tools-intro > a { font-weight: 600; }
.tool-links > a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--lake); }
.tool-links > a:first-child { padding-top: 0; }
.tool-links > a:last-child { border-bottom: 0; }
.tool-links h3 { color: var(--ink); font-family: var(--f-body); font-size: 1.03rem; margin: 0 0 .25rem; }
.tool-links p { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.tool-links a:hover h3 { color: var(--lake); }
.guide-feature { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 2rem; margin: 2.5rem 0; align-items: start; }
.feature-image { overflow: hidden; border-radius: 9px; background: #21143d; }
.feature-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-image img[src*="sweet-bonanza"] { object-fit: contain; }
.feature-copy h2 { margin: 0 0 .8rem; }
.feature-copy > p { margin: 0 0 .8rem; }
.reading-details summary, .calc-examples summary { cursor: pointer; font-weight: 600; padding: .65rem 0; min-height: 44px; color: var(--lake); }
.calc-examples { margin: 1rem 0; border-block: 1px solid #344b55; }
.calc-examples summary { color: #f5c770; }
.calc-examples ul { font-size: .95rem; padding-left: 1.2rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { position: relative; cursor: pointer; padding: 1rem 1.6rem 1rem 0; color: var(--ink); font-weight: 650; line-height: 1.5; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: .25rem; top: 1.35rem; width: 8px; height: 8px; border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.faq-item[open] summary::after { transform: rotate(225deg); top: 1.6rem; }
.faq-list .faq-item p { padding: 0 1rem .9rem 0; margin: 0; color: var(--ink-soft); }
summary:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }
.calc summary:focus-visible { outline-color: #f5c770; }
.review-sources { border-top: 1px solid var(--rule); padding: 1.5rem 0; margin-top: 2rem; font-size: .92rem; }
.review-sources ul { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; list-style: none; padding: 0; }
.review-sources p { color: var(--ink-soft); }
.operator-preview { margin: 2.5rem 0; }
.operator-preview .preview-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.operator-preview figure { margin: 0; }
.operator-preview img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 9px; }
.operator-preview figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .6rem; }
.operator-preview h2 { margin: 0 0 .8rem; }
.operator-preview p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .portal-tools { grid-template-columns: 1fr; gap: 1.5rem; }
  .guide-feature { grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 1.25rem; }
  .operator-preview .preview-layout { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 540px) {
  .hero-links { align-items: stretch; flex-direction: column; gap: .4rem; margin-top: 1.2rem; }
  .hero-links > a:last-child { justify-content: center; }
  .guide-feature { grid-template-columns: 1fr; gap: 1.2rem; }
  .feature-image img { aspect-ratio: 16 / 8; }
  .publication-note { gap: .35rem 1rem; }
  .page-jumps { gap: .1rem; }
  .page-jumps a { font-size: .82rem; padding-inline: .55rem; }
  .portal-home .editorial-cover { aspect-ratio: 16 / 9; }
}

.editorial-cover:has(img[src$="/interface.jpg"]) { min-height: 0; aspect-ratio: 1440 / 740; align-self: center; }

/* Delayed registration invitation; content and scrolling stay accessible. */
.signup-banner {
  position: fixed; z-index: 45; right: 1.25rem; bottom: 1.25rem;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .65rem .9rem;
  width: min(410px, calc(100vw - 2.5rem)); padding: 1.25rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); color: var(--ink);
  box-shadow: 0 12px 36px -14px rgba(16, 34, 43, .35);
  animation: signup-appear .2s cubic-bezier(.16, 1, .3, 1) both;
}
.signup-logo { width: 64px; height: 44px; align-self: center; object-fit: contain; padding: 4px; background: #0c0d21; border-radius: 5px; }
.signup-copy { min-width: 0; padding-right: 1.8rem; }
.signup-copy h2 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 .25rem; }
.signup-copy p { font-size: .9rem; font-weight: 650; color: var(--maple); margin: 0; line-height: 1.4; }
.signup-terms { grid-column: 1 / -1; margin: .05rem 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.signup-banner .signup-register { grid-column: 1 / -1; min-height: 44px; border: 1px solid var(--maple); border-radius: 6px; box-shadow: none; font-size: .95rem; padding: .6rem 1rem; }
.signup-footnote { grid-column: 1 / -1; text-align: center; margin: 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.3; }
.signup-close { position: absolute; top: .3rem; right: .3rem; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.signup-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
@media (hover: hover) { .signup-close:hover { color: var(--ink); background: var(--sheet-2); } }
@keyframes signup-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .signup-banner-open .dock { display: none; }
  .signup-banner { right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); width: min(410px, calc(100vw - 1.5rem)); }
}
@media (max-width: 540px) {
  .signup-banner { padding: 1rem; gap: .5rem .75rem; }
  .signup-copy h2 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .signup-banner { animation: none; } }
