/* Ruby Fever — stylesheet. System fonts only, no external requests. */

:root {
  --ink: #14090c;
  --ink-2: #1b0e13;
  --card: #23131a;
  --card-2: #2d1a22;
  --sunk: #0e0609;
  --rule: rgba(224, 176, 98, .18);
  --rule-hard: rgba(224, 176, 98, .38);
  --paper: #f6ece4;
  --soft: #c9afa6;
  --faint: #93796f;
  --ruby: #d81e4a;
  --ruby-lit: #f24868;
  --ruby-deep: #7d0c27;
  --gold: #e0b062;
  --jade: #4fae86;
  --amber: #e8a33d;
  --shell: 1140px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(125, 12, 39, .30), transparent 520px),
    radial-gradient(620px 300px at 50% 0%, rgba(216, 30, 74, .16), transparent 70%);
  background-repeat: no-repeat;
  color: var(--paper);
  font: 16px/1.65 var(--sans);
}
body.is-held { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--paper); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--ruby); color: #fff; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 22px; }
.dim { color: var(--soft); }
.off { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jump { position: absolute; left: -9999px; top: 6px; z-index: 200; padding: 9px 16px; background: var(--gold); color: #1b0e13; font-weight: 700; }
.jump:focus { left: 14px; }
.lede { font-size: 1.12rem; color: var(--soft); }
.small-print { color: var(--faint); font-size: .84rem; margin-top: 12px; }

/* ---------- Notice rail ---------- */
.rail { background: var(--sunk); border-bottom: 1px solid var(--rule); }
.rail-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; padding-block: 8px; color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rail-in span + span::before { content: "/"; margin-right: 14px; color: var(--rule-hard); }
.rail-age { padding: 1px 7px; background: var(--ruby); color: #fff; letter-spacing: .08em; }

/* ---------- Masthead ---------- */
.mast { border-bottom: 1px solid var(--rule); background: rgba(20, 9, 12, .96); }
.mast-in { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--paper); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--serif); font-size: 1.36rem; font-weight: 700; letter-spacing: .01em; }
.brand-word i { font-style: normal; color: var(--ruby-lit); }
.brand:hover { color: var(--paper); }
.nav-main { margin-inline: auto; }
.nav-main ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-main a { display: block; padding: 10px 13px; border-bottom: 2px solid transparent; color: var(--soft); text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-main a:hover { color: var(--paper); border-bottom-color: var(--rule-hard); }
.nav-main a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.mast-side { display: flex; align-items: center; gap: 10px; }
.purse { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px; border: 1px solid var(--rule-hard); color: var(--gold); text-decoration: none; font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.purse:hover { color: var(--gold); background: rgba(224, 176, 98, .09); }
.purse em { font-style: normal; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.badge18 { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--ruby); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.tog { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 9px; border: 1px solid var(--rule-hard); background: none; cursor: pointer; }
.tog i { display: block; height: 2px; background: var(--paper); }

@media (max-width: 940px) {
  .tog { display: inline-flex; }
  .nav-main { position: absolute; left: 0; right: 0; z-index: 50; margin: 0; background: var(--ink-2); border-bottom: 1px solid var(--rule); display: none; }
  .nav-main.is-open { display: block; }
  .nav-main ul { flex-direction: column; padding: 8px 22px 16px; }
  .nav-main a { padding: 12px 0; }
  .mast-in { position: relative; }
  .mast-side { margin-left: auto; }
}
@media (max-width: 460px) {
  .purse em { display: none; }
  .brand-word { font-size: 1.1rem; }
  .badge18 { width: 32px; height: 32px; font-size: .72rem; }
}

/* ---------- Buttons ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 1px solid transparent; border-radius: 2px; font: inherit; font-size: .79rem; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.b:disabled { opacity: .4; cursor: not-allowed; }
.b-hot { background: var(--ruby); color: #fff; }
.b-hot:hover:not(:disabled) { background: var(--ruby-lit); color: #fff; }
.b-gold { background: var(--gold); color: #1b0e13; }
.b-gold:hover:not(:disabled) { background: #f0c67f; color: #1b0e13; }
.b-edge { border-color: var(--rule-hard); color: var(--gold); background: none; }
.b-edge:hover:not(:disabled) { border-color: var(--gold); background: rgba(224, 176, 98, .1); color: var(--gold); }
.b-quiet { background: rgba(246, 236, 228, .07); color: var(--paper); }
.b-quiet:hover:not(:disabled) { background: rgba(246, 236, 228, .13); color: var(--paper); }
.b-s { padding: 8px 14px; font-size: .71rem; }
.b-l { padding: 16px 32px; font-size: .84rem; }
.b-text { padding: 0; border: 0; background: none; color: var(--soft); font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.b-text:hover { color: var(--paper); }

/* ---------- Zones ---------- */
.zone { padding-block: 56px; border-top: 1px solid var(--rule); }
.zone-tint { background: rgba(0, 0, 0, .22); }
.zone-head { max-width: 60ch; margin-bottom: 30px; }
.zone-head p { margin: 10px 0 0; color: var(--soft); }
.zone-wide { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 30px; }
.zone-wide .zone-head { margin-bottom: 0; }
.tag-num { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.tag-num::after { content: ""; flex: 1; height: 1px; max-width: 90px; background: var(--rule-hard); }
.slab { padding: 24px; background: var(--card); border: 1px solid var(--rule); }
.slab h2 { font-size: 1.2rem; }
.slab h3:first-child { margin-top: 0; }
.note-box { margin: 0; padding: 18px 22px; background: rgba(232, 163, 61, .08); border-left: 3px solid var(--amber); color: #f7e2c2; font-size: .95rem; }

/* ---------- Opening stage ---------- */
.stage { padding-block: 66px 0; text-align: center; }
.stage-in { max-width: 820px; margin-inline: auto; }
.stage h1 { margin-bottom: .28em; }
.stage h1 em { font-style: normal; color: var(--ruby-lit); }
.stage .lede { max-width: 62ch; margin-inline: auto; }
.stage-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 10px; }
.stage-fine { color: var(--faint); font-size: .88rem; }
.stage-fine b { color: var(--gold); font-weight: 700; }
.stage-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border: 1px solid var(--rule); border-right: 0; }
.stage-stats div { padding: 20px 14px; border-right: 1px solid var(--rule); }
.stage-stats b { display: block; font-family: var(--serif); font-size: 1.75rem; color: var(--gold); line-height: 1.1; }
.stage-stats span { display: block; margin-top: 4px; color: var(--faint); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.stage-art { margin: 44px auto 0; max-width: 900px; }
@media (max-width: 720px) {
  .stage { padding-block: 40px 0; }
  .stage-stats { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .stage-stats div { border-bottom: 1px solid var(--rule); }
}

/* ---------- Table tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { display: grid; grid-template-columns: 188px minmax(0, 1fr); background: var(--card); border: 1px solid var(--rule); transition: border-color .18s, background-color .18s; }
.tile:hover { border-color: var(--rule-hard); background: var(--card-2); }
.tile-pic { display: block; background: var(--sunk); }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; }
.tile-in { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px; }
.tile-kind { color: var(--gold); font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.tile-in h3, .tile-name { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; line-height: 1.16; }
.tile-in h3 a, .tile-name a { color: var(--paper); text-decoration: none; }
.tile-in h3 a:hover, .tile-name a:hover { color: var(--gold); }
.tile-in p { margin: 0; color: var(--soft); font-size: .91rem; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.tile-floor { color: var(--faint); font-size: .78rem; letter-spacing: .04em; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .tile { grid-template-columns: 1fr; }
  .tile-pic { aspect-ratio: 40 / 17; }
}

.picker { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 26px; border: 1px solid var(--rule); }
.picker button { padding: 11px 18px; border: 0; border-right: 1px solid var(--rule); background: none; color: var(--soft); font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.picker button:last-child { border-right: 0; }
.picker button:hover { color: var(--paper); }
.picker button[aria-pressed="true"] { background: var(--ruby); color: #fff; }

/* ---------- Plain lists ---------- */
.truths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.truths li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.truths li:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 28px; }
.truths li:nth-child(even) { padding-left: 28px; }
.truths b { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.truths p { margin: 0; color: var(--soft); font-size: .9rem; }
.truths-no { display: grid; place-items: center; width: 52px; height: 52px; background: rgba(216, 30, 74, .14); color: var(--gold); font-family: var(--serif); font-size: 1.15rem; }
@media (max-width: 760px) {
  .truths { grid-template-columns: 1fr; }
  .truths li:nth-child(odd) { border-right: 0; padding-right: 20px; }
  .truths li:nth-child(even) { padding-left: 0; }
}

.stack { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: sc; }
.stack li { padding: 22px; background: var(--card); border-top: 2px solid var(--ruby); counter-increment: sc; }
.stack li::before { content: counter(sc, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--gold); font-family: var(--serif); font-size: 1.5rem; }
.stack h3 { margin-bottom: 6px; }
.stack p { margin: 0; color: var(--soft); font-size: .92rem; }
@media (max-width: 780px) { .stack { grid-template-columns: 1fr; } }

.yes-list, .no-list { list-style: none; margin: 0; padding: 0; }
.yes-list li, .no-list li { position: relative; padding: 7px 0 7px 30px; color: #e6d9d2; }
.yes-list li::before, .no-list li::before { position: absolute; left: 0; top: 7px; font-weight: 800; font-size: .95rem; }
.yes-list li::before { content: "\2713"; color: var(--jade); }
.no-list li::before { content: "\2715"; color: var(--ruby-lit); }

.pair { display: grid; grid-template-columns: 1.08fr .92fr; gap: 34px; align-items: start; }
.pair-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .pair, .pair-2 { grid-template-columns: 1fr; gap: 24px; } }

.strip-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-block: 0; padding: 34px; background: linear-gradient(110deg, var(--ruby-deep), #2a1018 62%); border: 1px solid var(--rule-hard); }
.strip-cta h2 { margin: 0 0 6px; font-size: 1.55rem; }
.strip-cta p { margin: 0; color: #e7c9c1; }

/* ---------- Ruby packs ---------- */
.deal-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deal { display: flex; flex-direction: column; gap: 5px; padding: 24px 20px; background: var(--card); border: 1px solid var(--rule); }
.deal-nm { font-family: var(--serif); font-size: 1.15rem; }
.deal-amt { color: var(--gold); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.deal-amt small { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.deal-px { margin-bottom: 14px; color: var(--soft); font-size: .95rem; font-weight: 700; }
.deal .b { margin-top: auto; }
@media (max-width: 940px) { .deal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .deal-grid { grid-template-columns: 1fr; } }

/* ---------- Page heads ---------- */
.head-in { padding-block: 44px 24px; border-bottom: 1px solid var(--rule); }
.head-in.is-tight { padding-block: 28px 18px; }
.head-in p { max-width: 64ch; color: var(--soft); }
.trail { margin-bottom: 14px; color: var(--faint); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.trail a { color: var(--soft); text-decoration: none; }
.trail a:hover { color: var(--paper); }
.dateline { color: var(--faint); font-size: .88rem; }

/* ---------- Legal documents (index on the right) ---------- */
.paper-grid { display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 46px; align-items: start; padding-block: 38px 64px; }
.index-nav { position: sticky; top: 20px; padding: 20px; background: var(--card); border: 1px solid var(--rule); font-size: .88rem; }
.index-nav b { display: block; margin-bottom: 10px; color: var(--faint); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.index-nav ol { margin: 0; padding-left: 18px; }
.index-nav li { margin-bottom: 6px; color: var(--faint); }
.index-nav a { color: var(--soft); text-decoration: none; }
.index-nav a:hover { color: var(--paper); }
.body-copy { max-width: 74ch; }
.body-copy h2 { margin-top: 1.8em; font-size: 1.3rem; scroll-margin-top: 24px; }
.body-copy h2:first-of-type { margin-top: 0; }
.body-copy h3 { margin-top: 1.5em; font-size: 1.02rem; }
.body-copy p, .body-copy li { color: #e3d6cf; }
.body-copy ul, .body-copy ol { padding-left: 22px; }
.body-copy li { margin-bottom: 7px; }
.body-copy code { padding: 1px 5px; background: rgba(0, 0, 0, .4); color: var(--gold); font-size: .88em; }
@media (max-width: 920px) {
  .paper-grid { grid-template-columns: 1fr; gap: 26px; }
  .index-nav { position: static; order: -1; }
}

/* ---------- Tables ---------- */
.tbl-box { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { background: rgba(0, 0, 0, .3); color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.pays td:last-child, .pays th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pays tr.is-paid td { background: rgba(224, 176, 98, .16); color: #fff; }

/* ---------- Operator card ---------- */
.dl-op { display: grid; grid-template-columns: max-content 1fr; gap: 9px 22px; margin: 0; }
.dl-op dt { color: var(--faint); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-top: 4px; }
.dl-op dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .dl-op { grid-template-columns: 1fr; gap: 2px; } .dl-op dd { margin-bottom: 10px; } }

/* ---------- Questions ---------- */
.qa-grp { margin-bottom: 34px; }
.qa-grp h2 { font-size: 1.3rem; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { position: relative; padding: 16px 46px 16px 0; font-family: var(--serif); font-size: 1.03rem; font-weight: 700; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; font-family: var(--sans); }
.qa details[open] summary { color: var(--gold); }
.qa details[open] summary::after { content: "\2212"; }
.qa-a { padding: 0 40px 16px 0; color: var(--soft); }
.qa-a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.ask-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; padding-block: 38px 60px; }
.ask-grid aside { display: grid; gap: 18px; }
@media (max-width: 920px) { .ask-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; gap: 18px; }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .pair-row { grid-template-columns: 1fr; } }
.cell label { display: block; margin-bottom: 6px; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cell input, .cell select, .cell textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--rule-hard); border-radius: 2px; background: var(--sunk); color: var(--paper); font: inherit; }
.cell textarea { min-height: 154px; resize: vertical; }
.cell input:focus, .cell select:focus, .cell textarea:focus { outline: none; border-color: var(--gold); }
.cell [aria-invalid="true"] { border-color: var(--ruby-lit); }
.cell small { display: block; margin-top: 5px; color: var(--faint); font-size: .82rem; }
.opt { display: flex; align-items: flex-start; gap: 11px; color: var(--soft); font-size: .91rem; cursor: pointer; }
.opt input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ruby); }
.warn-txt { display: block; margin-top: 5px; color: var(--ruby-lit); font-size: .85rem; font-weight: 600; }
.flash { margin-bottom: 20px; padding: 14px 18px; border-left: 3px solid; }
.flash-ok { border-color: var(--jade); background: rgba(79, 174, 134, .1); }
.flash-no { border-color: var(--ruby-lit); background: rgba(216, 30, 74, .1); }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Baseboard ---------- */
.base { margin-top: 54px; padding-block: 46px 26px; background: var(--sunk); border-top: 1px solid var(--rule-hard); font-size: .9rem; }
.base-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 32px; }
.base h2 { margin-bottom: 14px; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.base ul { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.base a { color: var(--soft); text-decoration: none; }
.base a:hover { color: var(--paper); }
.base-blurb { margin: 14px 0; color: var(--soft); }
.base-op { color: var(--soft); font-style: normal; line-height: 1.85; overflow-wrap: anywhere; }
.base-op b { color: var(--paper); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pill { padding: 3px 9px; border: 1px solid var(--rule); color: var(--faint); font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill-hot { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.base-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--faint); font-size: .84rem; }
.base-legal b { color: var(--soft); }
.base-flag { color: #f7e2c2; font-weight: 700; }
@media (max-width: 940px) { .base-grid { grid-template-columns: 1fr 1fr; } .base-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .base-grid { grid-template-columns: 1fr; } }

/* ---------- Doorway (age check) ---------- */
.door { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; background: rgba(10, 5, 7, .95); overflow-y: auto; }
.door-card { width: 100%; max-width: 460px; padding: 38px 30px; background: var(--card); border: 1px solid var(--rule-hard); text-align: center; }
.door-mark { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 20px; background: var(--ruby); color: #fff; font-size: 1.45rem; font-weight: 800; }
.door-card p { color: var(--soft); }
.door-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 16px; }
.door-fine { margin: 0; font-size: .84rem; }

/* ---------- Cookie notice, sheets, tips ---------- */
.biscuit { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--card); border-top: 2px solid var(--ruby); }
.biscuit > div { max-width: var(--shell); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; width: 100%; }
.biscuit p { flex: 1 1 380px; margin: 0; color: var(--soft); font-size: .88rem; }
.biscuit p b { color: var(--paper); }
.biscuit-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 680px) { .biscuit-acts { width: 100%; } .biscuit-acts .b { flex: 1; } }

.sheet { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 22px; background: rgba(10, 5, 7, .82); overflow-y: auto; }
.sheet-card { width: 100%; max-width: 540px; padding: 30px; background: var(--card); border: 1px solid var(--rule-hard); }
.sheet-card h2 { font-size: 1.35rem; }
.sheet-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.opt-row small { display: block; color: var(--faint); font-size: .83rem; }
.flip { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.flip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.flip i { position: absolute; inset: 0; background: #4a2b33; transition: background .18s; pointer-events: none; }
.flip i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--paper); transition: transform .18s; }
.flip input:checked + i { background: var(--ruby); }
.flip input:checked + i::after { transform: translateX(20px); }
.flip input:disabled + i { opacity: .55; }
.flip input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.sum-list { list-style: none; margin: 16px 0; padding: 16px 18px; background: rgba(0, 0, 0, .32); }
.sum-list li { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; color: var(--soft); }
.sum-list b { color: var(--paper); }

.tips { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 10px; max-width: min(350px, calc(100vw - 36px)); }
.tip { padding: 13px 16px; background: var(--card-2); border-left: 3px solid var(--gold); font-size: .9rem; }
.tip.is-going { opacity: 0; transition: opacity .45s; }

/* =====================================================================
   Table pages
   ===================================================================== */
.felt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; padding-block: 26px 46px; }
.aside-col { display: grid; gap: 18px; }
@media (max-width: 1020px) { .felt-grid { grid-template-columns: 1fr; } }

.purse-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 14px 18px; background: var(--card); border: 1px solid var(--rule); }
.purse-num { color: var(--gold); font-family: var(--serif); font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.purse-num small { display: block; color: var(--faint); font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.purse-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.board { position: relative; min-height: 440px; padding: 26px 22px 20px; background:
  repeating-linear-gradient(135deg, rgba(255, 255, 255, .014) 0 6px, transparent 6px 12px),
  radial-gradient(ellipse at 50% -10%, #3b1420 0%, #240d15 58%, #180810 100%);
  border: 1px solid var(--rule-hard); }
.pad { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.readout { min-height: 1.6em; margin: 16px 0 0; color: var(--soft); text-align: center; font-weight: 600; }
.readout.is-win { color: var(--gold); }
.readout.is-lose { color: var(--ruby-lit); }
.readout.is-note { color: var(--amber); }

.bet { display: inline-flex; align-items: center; gap: 6px; padding: 5px 5px 5px 0; background: rgba(0, 0, 0, .34); border: 1px solid var(--rule); }
.bet-lbl { padding-inline: 13px; color: var(--faint); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bet-key { width: 32px; height: 32px; border: 0; background: rgba(246, 236, 228, .09); color: var(--paper); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.bet-key:hover:not(:disabled) { background: rgba(246, 236, 228, .18); }
.bet-key:disabled { opacity: .35; cursor: not-allowed; }
.bet-val { min-width: 62px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Drums */
.drums { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 440px; margin: 6px auto 0; padding: 12px; background: var(--sunk); border: 2px solid var(--rule-hard); }
.drums::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--ruby); opacity: .8; pointer-events: none; }
.drum { display: grid; grid-template-rows: repeat(3, 1fr); overflow: hidden; background: linear-gradient(#24121a, #3a1c28 50%, #24121a); }
.drum-cell { display: grid; place-items: center; aspect-ratio: 1; padding: 17%; }
.drum-cell svg { width: 100%; height: 100%; }
.drum-cell:first-child, .drum-cell:last-child { opacity: .3; transform: scale(.8); }
.drum.is-turning .drum-cell { filter: blur(1.5px); }
.drums.is-paid { border-color: var(--gold); }

/* Cards */
.seat-lbl { margin: 12px 0 8px; color: var(--faint); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-align: center; text-transform: uppercase; }
.seat-lbl b { margin-left: 8px; color: var(--gold); font-size: .95rem; letter-spacing: 0; }
.seat { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 118px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 80px; height: 114px; padding: 7px 9px; background: #f8f2ea; color: #1b0e13; font-family: var(--serif); font-weight: 700; user-select: none; animation: lay .22s ease-out; }
.card-r { font-size: 1.3rem; line-height: 1; }
.card-s { align-self: flex-end; font-size: 1.9rem; line-height: 1; }
.card-red { color: #c01739; }
.card-back { background: repeating-linear-gradient(45deg, var(--ruby-deep) 0 7px, #40151f 7px 14px); border: 3px solid #f8f2ea; }
.card-back > * { visibility: hidden; }
@keyframes lay { from { opacity: 0; transform: translateY(-12px); } }
@media (max-width: 520px) {
  .card { width: 58px; height: 84px; padding: 5px 6px; }
  .card-r { font-size: 1rem; }
  .card-s { font-size: 1.35rem; }
  .seat { min-height: 88px; gap: 7px; }
}

/* Draw Five */
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; max-width: 530px; margin: 10px auto 0; }
.five-slot { display: flex; flex-direction: column; gap: 7px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.five-slot:disabled { cursor: default; }
.five-slot .card { width: 100%; height: auto; aspect-ratio: 5 / 7; }
.five-keep { padding: 3px 0; color: transparent; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-align: center; }
.five-slot.is-kept .five-keep { background: var(--gold); color: #1b0e13; }
.five-slot.is-kept .card { box-shadow: 0 0 0 2px var(--gold); }
@media (max-width: 520px) { .five { gap: 5px; } }

/* Over & Under */
.ou { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; margin-top: 10px; }
.ou .card { width: 120px; height: 170px; padding: 11px 13px; }
.ou .card-r { font-size: 2rem; }
.ou .card-s { font-size: 3rem; }
.ou-pot { min-width: 150px; text-align: center; }
.ou-pot small { display: block; color: var(--faint); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.ou-pot b { display: block; color: var(--gold); font-family: var(--serif); font-size: 2rem; font-variant-numeric: tabular-nums; }
.ou-pot span { color: var(--soft); font-size: .88rem; }
.ou-trail { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 32px; margin-top: 18px; }
.ou-trail span { display: grid; place-items: center; min-width: 32px; height: 28px; padding: 0 6px; background: #f8f2ea; color: #1b0e13; font-size: .78rem; font-weight: 700; }
.ou-trail span.r { color: #c01739; }

/* Carousel */
.spin-area { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 26px; align-items: center; }
@media (max-width: 800px) { .spin-area { grid-template-columns: 1fr; } }
.spin-box { position: relative; width: min(296px, 76vw); margin: 0 auto; }
.spin-box::before { content: ""; position: absolute; top: -6px; left: 50%; z-index: 2; transform: translateX(-50%); border: 10px solid transparent; border-top: 16px solid var(--gold); }
.spin { display: block; width: 100%; height: auto; transform-origin: 50% 50%; transition: transform 4s cubic-bezier(.14, .72, .12, 1); }
.spin-res { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.spin-res span { display: grid; place-items: center; width: 29%; aspect-ratio: 1; border-radius: 50%; background: var(--sunk); border: 1px solid var(--rule-hard); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.past { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; min-height: 28px; margin-top: 14px; }
.past span { display: grid; place-items: center; width: 28px; height: 28px; font-size: .76rem; font-weight: 700; }
.p-ruby { background: var(--ruby-deep); color: #fff; }
.p-ink { background: #2b1c22; color: #fff; }
.p-zero { background: #7a5b22; color: #fff; }

.grid-bet { display: grid; grid-template-columns: 40px repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, 40px); gap: 3px; }
.cell-bet { position: relative; display: grid; place-items: center; min-width: 0; padding: 0; border: 0; color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; grid-column: var(--c); grid-row: var(--r); }
.cell-bet:hover:not(:disabled) { filter: brightness(1.3); }
.cell-bet:disabled { cursor: default; }
.cell-bet.n-ruby { background: var(--ruby-deep); }
.cell-bet.n-ink { background: #2b1c22; }
.cell-bet.n-zero { background: #7a5b22; grid-column: 1; grid-row: 1 / 4; }
.out-bet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 3px; }
.out-bet.is-six { grid-template-columns: repeat(6, 1fr); }
.out-bet .cell-bet { height: 40px; background: #241820; grid-column: auto; grid-row: auto; font-size: .78rem; }
.out-bet .cell-bet.n-ruby { background: var(--ruby-deep); }
.cell-bet.is-landed { box-shadow: inset 0 0 0 2px var(--gold); }
.chip-dot { position: absolute; top: -6px; right: -4px; z-index: 2; display: grid; place-items: center; min-width: 23px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--gold); color: #1b0e13; font-size: .64rem; font-weight: 800; box-shadow: 0 0 0 2px var(--sunk); pointer-events: none; }
@media (max-width: 660px) {
  .grid-bet { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 34px; }
  .cell-bet { grid-column: var(--mc); grid-row: var(--mr); }
  .cell-bet.n-zero { grid-column: 1 / 4; grid-row: 1; }
  .out-bet.is-six { grid-template-columns: repeat(3, 1fr); }
}

/* Dice Duel */
.bones { display: flex; justify-content: center; gap: 22px; margin: 14px 0 6px; }
.bone { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 92px; height: 92px; padding: 12px; background: #f8f2ea; }
.dot { width: 70%; height: 70%; margin: auto; border-radius: 50%; background: #1b0e13; visibility: hidden; }
.dot.lit { visibility: visible; }
.bone.is-tumbling { animation: tumble .42s linear infinite; }
@keyframes tumble { 25% { transform: rotate(-11deg) translateY(-4px); } 75% { transform: rotate(11deg) translateY(3px); } }
.bones-sum { margin: 8px 0 18px; color: var(--soft); text-align: center; font-weight: 600; }
.bones-sum b { color: var(--gold); font-family: var(--serif); font-size: 1.3rem; }
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 600px; margin: 0 auto; }
@media (max-width: 560px) { .picks { grid-template-columns: repeat(2, 1fr); } .bone { width: 78px; height: 78px; padding: 10px; } }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: block; padding: 12px 8px; background: rgba(0, 0, 0, .3); border: 1px solid var(--rule); text-align: center; }
.pick b { display: block; font-family: var(--serif); font-size: 1.02rem; }
.pick small { color: var(--faint); font-size: .76rem; }
.pick input:checked + span { border-color: var(--ruby); background: rgba(216, 30, 74, .16); }
.pick input:checked + span small { color: var(--soft); }
.pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pick input:disabled + span { opacity: .55; cursor: not-allowed; }

/* Lucky 40 */
.keno { max-width: 560px; margin: 4px auto 0; }
.keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.k-num { aspect-ratio: 1; padding: 0; border: 1px solid var(--rule); background: rgba(0, 0, 0, .3); color: var(--soft); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.k-num:hover:not(:disabled) { border-color: var(--rule-hard); color: var(--paper); }
.k-num:disabled { cursor: default; }
.k-num.is-marked { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.k-num.is-out { border-color: var(--gold); color: var(--gold); }
.k-num.is-strike { background: var(--gold); border-color: var(--gold); color: #1b0e13; }
.keno-out { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; min-height: 30px; margin-top: 16px; }
.k-ball { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #241820; border: 1px solid var(--rule-hard); color: var(--soft); font-size: .78rem; font-weight: 700; }
.k-ball.is-strike { background: var(--gold); border-color: var(--gold); color: #1b0e13; }
.keno-tally { margin: 14px 0 0; color: var(--soft); text-align: center; font-weight: 600; }
.keno-tally b { color: var(--gold); font-family: var(--serif); font-size: 1.25rem; }
@media (max-width: 520px) { .keno-grid { grid-template-columns: repeat(5, 1fr); } }

/* Side column */
.mini { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.mini a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; background: var(--card); color: var(--paper); text-decoration: none; font-size: .92rem; font-weight: 600; }
.mini a:hover { background: var(--card-2); color: var(--gold); }
.mini small { color: var(--faint); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.howto { padding-left: 20px; margin: 0; color: var(--soft); font-size: .92rem; }
.howto li { margin-bottom: 8px; }

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