/* CLAUDE WAS HERE (PocketCubeCasino, 2026-10-28): the site's look, rebuilt from the user's approved mock-ups (the
   "Pocket Cube Site Mock-ups" design canvas).  His calls, in his words where he gave them:
     - "Get rid of the cursive font, but keep a homey style still" -> Fraunces (a soft serif) for headings, Fredoka
       for everything else; Sacramento is gone from the site.
     - "Add a bit of warm red into the design" -> --red, beside the brass, the wood and the felt.
     - "less text and more visuals ... instructions should be on a separate page" -> pictures on every page, the
       rules of play on /howto.
     - "Make this balance more obvious" -> the cream balance strip under the header.
     - "Put sooz in place of the pocket cube logo" -> img/sooz_logo.png.
   Every behaviour is site.js; this file is only the look. */
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces.ttf") format("truetype"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --felt:      #10311f;
  --felt-deep: #0a2316;
  --felt-lit:  #1d4a31;
  --wood:      #3b2016;
  --wood-dark: #2a160f;
  --wood-lit:  #5a3222;
  --brass:     #d9ae5a;
  --brass-lit: #ffd98a;
  --red:       #b83a2e;
  --cream:     #fbf3e0;
  --paper:     #f2e6cb;
  --paper-lit: #fffaf0;
  --ink:       #150d08;
  --body:      #e8dcc2;
  --dim:       #c9b99a;
  --brown:     #5a3222;
  --win:       #6fd49b;
  --lose:      #ff8a7e;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* CLAUDE WAS HERE (2026-10-29, the user: "when clicking the buttons on the how to play page it should scroll down to
   the section it shouldn't teleport") */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: "Fredoka", system-ui, sans-serif; font-size: 17px; line-height: 1.5; color: var(--cream); background: var(--felt); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brass-lit); }
a:hover { color: var(--cream); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--brass-lit); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }
[hidden] { display: none !important; }

/* ---- the header: Sooz and the name, the tabs, the account */
header.top { background: var(--wood); border-bottom: 3px solid var(--brass); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand img { width: 50px; height: auto; display: block; }   /* (2026-10-29: the whole bow tie now, a little taller) */
.brand span { font-family: var(--serif); font-size: 30px; font-weight: 700; }
nav.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
nav.tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; color: var(--cream); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-decoration: none; }
nav.tabs a:hover { background: rgba(0,0,0,.25); }
nav.tabs a[aria-current="page"] { background: var(--brass); color: var(--ink); }
nav.tabs svg { width: 16px; height: 16px; }
.acct { display: flex; align-items: center; gap: 12px; }
.acct .who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.acct .who svg { width: 20px; height: 20px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #8a6a4a; background: transparent; color: var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 20px; height: 20px; }
.btn-red { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--red); color: var(--cream); font-weight: 600; letter-spacing: .06em; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn-red:hover { color: var(--cream); filter: brightness(1.08); }
.btn-red svg { width: 18px; height: 18px; }
.stripe { height: 4px; background: var(--red); }

/* ---- the balance strip (signed in) */
.purse { background: var(--cream); border-bottom: 3px solid var(--brass); }
.purse .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.bal { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 10px; border-radius: 999px; background: var(--paper-lit); border: 2px solid #c9b48a; color: var(--ink); }
.bal svg { width: 40px; height: 40px; flex: none; }
.bal img.coin { width: 40px; height: 40px; flex: none; }
.bal b { font-size: 30px; font-weight: 700; line-height: 1; }
.bal span { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--brown); }
.bal.total { background: var(--wood); border-color: var(--brass); padding-left: 16px; }
.bal.total span, .bal.total b { color: var(--brass-lit); }

/* ---- the page */
main { flex: 1; width: 100%; }
main > .wrap { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; margin: 0; }
h2 { font-family: var(--serif); font-weight: 700; margin: 0; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .16em; color: var(--brass-lit); }
.lead { margin: 0; font-size: 19px; color: var(--body); max-width: 520px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; }

.btn-brass { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 40px; border-radius: 999px; border: 0; background: var(--brass); color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: .08em; cursor: pointer; text-decoration: none; }
.btn-brass:hover { color: var(--ink); filter: brightness(1.06); }
.btn-brass.big { min-height: 64px; padding: 0 48px; font-size: 22px; letter-spacing: .1em; }
.btn-brass svg { width: 22px; height: 22px; }
.btn-brass[disabled], .btn-red[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid #6b5a3e; background: transparent; color: var(--dim); font-size: 19px; font-weight: 700; letter-spacing: .08em; }

/* panels: felt with a brass edge, or cream paper with a brass edge */
.panel { border: 3px solid var(--brass); border-radius: 18px; background: var(--felt-deep); overflow: hidden; }
.paper { border: 3px solid var(--brass); border-radius: 18px; background: var(--cream); color: var(--ink); }
.paper a { color: var(--brown); }

/* ---- home: the maze */
.hero { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.hero .art { flex: 1 1 520px; min-width: 0; border-radius: 22px; }
.hero .art svg { display: block; width: 100%; height: auto; }
.hero .art { overflow: hidden; }
.hero .art img { display: block; width: 100%; height: auto; }
.hero .copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero .note { font-size: 15px; color: var(--dim); margin: 0; }
/* CLAUDE WAS HERE (2026-10-29, the user: "on the guest home page, you need to enlarge or center the maze image and the
   text beside it because it looks sparse with the empty green below"): the home's hero is centred in the height
   between the header and the footer, a soft table-light pooled behind it; a guest's (the hero is all there is) is
   bigger, the picture taking most of the width */
main.home { display: flex; background: radial-gradient(ellipse 70% 60% at 50% 48%, #1a4a30 0%, rgba(26,74,48,0) 70%); }
main.home > .wrap { justify-content: center; }
main.home.guest > .wrap { max-width: 1560px; padding-top: 40px; padding-bottom: 56px; }
main.home.guest .hero { gap: 28px 56px; }
main.home.guest .hero .art { flex: 1 1 780px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,217,138,.15); }
main.home.guest .hero .copy { flex: 1 1 400px; max-width: 560px; gap: 22px; }
main.home.guest h1 { font-size: clamp(48px, 5.2vw, 92px); }
main.home.guest .lead { font-size: 21px; }
@media (max-width: 1100px) { main.home.guest .hero .copy { max-width: none; } }

/* the display name: a small player pass (2026-10-29: the sign-in page's red stub and felt ticket; the name is
   written on the pass's signature line, not typed into a form box) */
.namepass { display: flex; flex-wrap: wrap; border-radius: 22px; border: 3px solid var(--brass); background: var(--felt-deep); overflow: hidden; }
.namepass .stub { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px 26px; background: var(--red); color: var(--cream); border-right: 3px dashed var(--cream); font-size: 13px; font-weight: 600; letter-spacing: .2em; }
.namepass .stub img { width: 52px; height: auto; }
.namepass form { flex: 1 1 360px; min-width: 0; padding: 22px 30px 16px; display: flex; flex-direction: column; gap: 6px; }
.namepass label { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--brass-lit); }
.namepass .sign { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; }
.namepass input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 2px 4px; border: 0; border-bottom: 2px dashed var(--brass); border-radius: 0; background: transparent; color: var(--cream); font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: .01em; }
.namepass input::placeholder { color: #6f8f7c; font-weight: 500; }
.namepass input:focus { outline: none; border-bottom-style: solid; border-bottom-color: var(--brass-lit); }
.namepass input:focus-visible { outline: none; }
.namepass .btn-brass { min-height: 46px; padding: 0 24px; font-size: 16px; }
.namepass .btn-brass svg { width: 18px; height: 18px; }
.namepass .fine { margin: 2px 0 0; font-size: 14px; color: var(--dim); }
.namepass .msg { color: var(--lose); }
.namepass .msg.ok { color: var(--win); }
.msg { min-height: 1.4em; margin: 0; font-size: 15px; color: var(--lose); width: 100%; }
.msg.ok { color: var(--win); }
.paper .msg { color: var(--red); }
.paper .msg.ok { color: #1f6b43; }

/* ---- sign in: the player pass */
.pass { display: flex; flex-wrap: wrap; border-radius: 22px; border: 3px solid var(--brass); background: var(--felt-deep); overflow: hidden; }
.pass .stub { flex: 1 1 340px; min-width: 0; background: var(--red); color: var(--cream); padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; border-right: 3px dashed var(--cream); }
.pass .stub .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .2em; }
.pass .stub img { width: 54px; height: auto; }
.pass .stub h1 { font-size: 48px; line-height: 1.05; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 10px; font-weight: 600; line-height: 1.25; }
.perks svg { width: 56px; height: 56px; flex: none; }
.pass .serial { margin: auto 0 0; font-size: 14px; letter-spacing: .12em; opacity: .85; }
.pass form { flex: 1 1 440px; min-width: 0; padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg button { min-height: 52px; border-radius: 14px; border: 2px solid var(--brass); background: transparent; color: var(--cream); font-size: 16px; font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--brass); color: var(--ink); }
.pass label { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--brass-lit); margin-top: 6px; }
.pass input { min-height: 54px; padding: 0 18px; border-radius: 14px; border: 2px solid #4d7a5f; background: var(--felt); color: var(--cream); font: inherit; font-size: 19px; }
.pass input::placeholder { color: #8fae9a; }
.pass .btn-brass { margin-top: 10px; min-height: 60px; font-size: 20px; letter-spacing: .1em; }
.pass .fine { margin: 0; font-size: 14px; color: var(--dim); }

/* ---- the casino */
.casino-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.casino-hero { flex: 1 1 560px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 16px 24px; overflow: hidden; }
.casino-hero .sooz { flex: 0 1 380px; min-width: 240px; position: relative; }
.casino-hero .sooz img { display: block; width: 100%; height: auto; }
.casino-hero .sooz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.casino-hero .copy { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.casino-hero h1 { font-size: 56px; }
.casino-hero p { margin: 0; font-size: 18px; color: #4a3a2a; }
.chip-pill { display: inline-flex; align-items: center; gap: 14px; background: var(--cream); color: var(--ink); border-radius: 999px; border: 3px solid var(--brass); padding: 8px 22px 8px 10px; text-decoration: none; }
.chip-pill:hover { color: var(--ink); }
.chip-pill svg { width: 44px; height: 44px; }
.chip-pill b { font-size: 26px; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.game { display: flex; flex-direction: column; }
.game > svg { display: block; width: 100%; height: auto; }
.game .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game h2 { font-size: 34px; }
.game p { margin: 0; color: var(--body); }
.game .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.game .tag { font-size: 12px; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px; background: var(--red); color: var(--cream); }
.game .facts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.game .facts span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.game .facts svg { width: 20px; height: 20px; }
.game .left { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--cream); color: var(--ink); border: 2px solid var(--brass); }
.game .left svg { width: 36px; height: 36px; }
.game .left b { font-size: 30px; line-height: 1; }
.game .left span { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--brown); }
.game .btn-brass, .game .btn-ghost { margin-top: auto; }
.game.soon { border-style: dashed; border-color: #6b5a3e; background: #0d2a1b; }
.game.soon h2 { color: var(--body); }
.game.soon p { color: var(--dim); }
.game .need { margin: 0; font-size: 15px; color: var(--dim); }

/* ---- the chip desk */
.balances { padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.balances .cell { flex: 1 1 240px; display: flex; align-items: center; gap: 16px; background: var(--paper); border-radius: 14px; padding: 16px 20px; }
.balances .cell svg { width: 56px; height: 56px; flex: none; }
.balances .cell img.coin { width: 56px; height: 56px; flex: none; }
.balances .cell b { font-size: 40px; line-height: 1; }
.balances .swap { width: 48px; height: 48px; flex: none; }
.balances .cell.total { background: var(--wood); color: var(--cream); justify-content: space-between; }
.balances .cell.total span { font-size: 13px; letter-spacing: .12em; color: var(--brass-lit); }
.desk { display: flex; flex-wrap: wrap; gap: 32px; }
.desk .panel { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; }
.desk .panel > svg { display: block; width: 100%; height: auto; }
.desk .body { padding: 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.desk h2 { font-size: 32px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amounts button { min-height: 48px; min-width: 76px; padding: 0 16px; border-radius: 999px; border: 2px solid #4d7a5f; background: transparent; color: var(--cream); font-size: 17px; font-weight: 600; cursor: pointer; }
.amounts button[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.amounts button[disabled] { color: #7f9a88; border-color: #2a5a40; cursor: not-allowed; }
.desk .btn-brass svg, .desk .btn-red svg { width: 22px; height: 22px; }
.desk .btn-red img.coin { width: 28px; height: 28px; flex: none; }
.desk .btn-red { min-height: 56px; justify-content: center; font-size: 19px; font-weight: 700; letter-spacing: .08em; margin-top: auto; }
.desk .btn-brass { margin-top: auto; }
.small { font-size: 15px; color: var(--dim); margin: 0; }

/* ---- how to play */
/* CLAUDE WAS HERE (2026-10-29): the chapter buttons are the approved BRASS PLAQUES, direction A2 (the user: "Use
   direction two for the buttons please ... or A2"; the mock-up is the chapter-buttons board on the "Pocket Cube Site
   Mock-ups" canvas): engraved brass nameplates, two screws on the right, each number in a red enamel inlay ringed in
   polished brass.  Hover lifts a plaque, a press pushes it in. */
.chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chapters a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 26px 0 10px; border-radius: 8px;
  background: linear-gradient(180deg, #ffe9ad 0%, #e2b865 38%, #c08f3e 62%, #e0b25e 100%); border: 1px solid #6e4a18;
  box-shadow: inset 0 0 0 3px rgba(255,240,200,.35), inset 0 -2px 0 rgba(90,55,15,.5), 0 3px 0 #5a3a12, 0 8px 14px rgba(0,0,0,.35);
  color: #3b2016; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.15; text-shadow: 0 1px 0 rgba(255,245,215,.7);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.chapters a::before, .chapters a::after { content: ""; position: absolute; right: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(35deg, transparent 42%, rgba(60,30,5,.75) 42% 60%, transparent 60%), radial-gradient(circle at 35% 35%, #fff3cf, #8a6224 70%);
  box-shadow: inset 0 0 0 1px rgba(60,30,5,.5); }
.chapters a::before { top: 7px; }
.chapters a::after { bottom: 7px; }
.chapters a:hover { transform: translateY(-2px); filter: brightness(1.06); color: #3b2016; }
.chapters a:active { transform: translateY(2px); box-shadow: inset 0 0 0 3px rgba(255,240,200,.35), 0 1px 0 #5a3a12, 0 3px 6px rgba(0,0,0,.35); }
.chapters a:focus-visible { outline: 3px solid var(--brass-lit); outline-offset: 3px; }
.chapters a span { width: 46px; height: 46px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 32%, #a3302a 0%, #6e1712 70%, #4a0d0a 100%);
  box-shadow: 0 0 0 3px #f6d58a, 0 0 0 4px #6e4a18, inset 0 2px 4px rgba(0,0,0,.45);
  font-family: var(--serif); font-weight: 800; font-size: 25px; line-height: 1; color: #fff8e6; text-shadow: 0 1px 1px rgba(0,0,0,.5); margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .chapters a { transition: none; } .chapters a:hover, .chapters a:active { transform: none; } }
.chapter { scroll-margin-top: 24px; }
.chapter:focus { outline: none; }
.chapter { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 32px; border-radius: 22px; border: 3px solid var(--brass); }
.chapter.light { background: var(--cream); color: var(--ink); }
.chapter.dark { background: var(--felt-deep); flex-wrap: wrap-reverse; }
.chapter .pic { flex: 0 1 380px; min-width: 260px; }
.chapter .pic svg { display: block; width: 100%; height: auto; }
.chapter .text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.chapter .num { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--red); }
.chapter.dark .num { color: var(--brass-lit); }
.chapter h2 { font-size: 38px; }
.chapter p { margin: 0; font-size: 18px; color: #4a3a2a; }
.chapter.dark p { color: var(--body); }
.chapter ul { margin: 0; padding-left: 22px; font-size: 18px; color: #4a3a2a; }
.chapter ul li + li { margin-top: 4px; }
/* (2026-10-29) a guest's locked teaser in place of the account chapters */
.chapter.locked-teaser { background: linear-gradient(135deg, #2a160f, #3b2016 60%, #22130c); color: var(--cream); border-style: dashed; }
.chapter.locked-teaser p { color: var(--body); }
.chapter.locked-teaser .num { color: var(--brass-lit); }
.lock-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lock-list li { margin: 0 !important; display: flex; flex-direction: column; padding: 10px 14px 10px 40px; border-radius: 12px; border: 1.5px solid rgba(217,174,90,.45); background: rgba(0,0,0,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d9ae5a'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") no-repeat 13px 50% / 16px; color: var(--cream); }
.lock-list li span { font-size: 14px; color: var(--body); }
.chapters a.locked { background: #2a160f; border: 2px dashed #8a6a3a; box-shadow: none; color: #e8dcc2; text-shadow: none; }
.chapters a.locked::before, .chapters a.locked::after { display: none; }
.chapters a.locked:hover { transform: none; filter: none; border-color: var(--brass); color: var(--cream); }
.chapters a.locked span { background: #150d08; box-shadow: 0 0 0 3px #6e4a18, inset 0 2px 5px rgba(0,0,0,.7); color: var(--brass); }
.chapter.dark ul { color: var(--body); }
.keys { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.keys span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; background: var(--felt); border: 2px solid #4d7a5f; color: var(--cream); }
kbd { font-family: inherit; font-weight: 700; padding: 2px 10px; border-radius: 6px; background: var(--cream); color: var(--ink); }
.center { display: flex; justify-content: center; }

/* ---- the long pages: the Official Rules and the Privacy Policy */
main.doc > .wrap { max-width: 860px; gap: 18px; }
main.doc .panel { padding: 28px 32px; overflow: visible; }
.doc h3 { font-family: var(--serif); font-size: 22px; color: var(--brass-lit); margin: 26px 0 6px; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; color: var(--body); }
.doc ul { padding-left: 22px; }
.doc .strong { font-weight: 600; }
.todo { background: var(--red); color: #fff; padding: 0 4px; border-radius: 4px; }   /* a placeholder to fill before launch */

/* ---- the footer */
.stripe.foot-stripe { margin-top: auto; }
footer.foot { background: var(--wood); border-top: 3px solid var(--brass); }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; font-size: 15px; color: var(--body); }
footer.foot nav { display: flex; gap: 20px; }

/* ---- the game itself, over everything */
#frame-wrap { position: fixed; inset: 0; background: #000; display: none; z-index: 50; }
#frame-wrap iframe { border: 0; width: 100%; height: 100%; display: block; position: absolute; left: 0; top: 0; z-index: 1; background: #000; }
/* CLAUDE WAS HERE (2026-10-29): the themed backdrop beside the game (backdrop.js) -- the iframe is sized to the
   game's own shape and centred; the canvas behind it paints the room for the game in it, and a brass bezel frames it */
#frame-wrap .bd { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#frame-wrap .bd canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#frame-wrap .bd-fx { position: absolute; inset: 0; }
#frame-wrap .bd-fx i { position: absolute; display: block; pointer-events: none; }
#frame-wrap .bd-g { position: absolute; inset: 0; transition: opacity 1.5s linear; }
#frame-wrap.bd-side iframe, #frame-wrap.bd-tb iframe { box-shadow: 0 0 0 2px #7a5320, 0 0 0 5px #d9ae5a, 0 0 0 7px #3b2016, 0 0 40px 8px rgba(0,0,0,.6); }
.bd-beacon { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, rgba(255,80,60,.95) 0 25%, rgba(255,80,60,0) 70%); animation: bdBlink 2s steps(1) infinite; }
@keyframes bdBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .1; } }
.bd-beam { width: 70px; height: 140vh; margin-left: -35px; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(220,210,255,.20), rgba(220,210,255,0) 80%); filter: blur(6px); transform: rotate(180deg); animation: bdSweep 9s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes bdSweep { from { transform: rotate(155deg); } to { transform: rotate(205deg); } }
.bd-ember { width: 4px; height: 4px; border-radius: 50%; background: #ffc35a; box-shadow: 0 0 6px 2px rgba(255,140,40,.8); opacity: 0; animation: bdEmber 4s linear infinite; }
@keyframes bdEmber { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(-40px, -55vh); } }
.bd-siren { height: 55%; top: auto; transform: translateY(-50%); opacity: 0; animation: bdSiren 1.2s ease-in-out infinite; }
.bd-siren.red { background: radial-gradient(ellipse at 0% 50%, rgba(255,40,40,.55), rgba(255,40,40,0) 70%); }
.bd-siren.blue { background: radial-gradient(ellipse at 0% 50%, rgba(60,120,255,.55), rgba(60,120,255,0) 70%); animation-delay: .6s; }
@keyframes bdSiren { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.bd-flame { height: 100%; background: linear-gradient(0deg, rgba(255,120,30,.25), rgba(255,120,30,0) 60%); animation: bdFlick 0.9s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes bdFlick { from { opacity: .55; } to { opacity: 1; } }
.bd-glow { width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,140,.45), rgba(255,214,140,0) 70%); animation: bdGlow 3s ease-in-out infinite alternate; mix-blend-mode: screen; }
.bd-glow.big { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
@keyframes bdGlow { from { opacity: .7; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #frame-wrap .bd-fx i { animation: none !important; } .bd-ember { opacity: 0 !important; } }
#frame-wrap .leave { position: absolute; top: 14px; right: 16px; z-index: 2; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--brass); background: rgba(0,0,0,.5); color: var(--cream); font-weight: 600; letter-spacing: .06em; cursor: pointer; }

/* ---- the casino unlocks: Sooz's door clip, once per account */
#unlock { position: fixed; inset: 0; z-index: 60; background: rgba(10, 6, 14, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
#unlock .stage { position: relative; width: min(100%, 1000px, calc((100vh - 48px) * 4 / 3)); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 3px solid var(--brass); background: #000; }
#unlock video, #unlock .endshot { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
#unlock .skip { position: absolute; top: 14px; right: 14px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--brass); background: rgba(0,0,0,.55); color: var(--cream); font-weight: 600; letter-spacing: .06em; cursor: pointer; }
#unlock .done { position: absolute; left: 0; right: 0; top: 0; padding: 26px 22px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: linear-gradient(0deg, transparent, rgba(10,6,14,.85) 40%); opacity: 0; transition: opacity .5s; pointer-events: none; }
#unlock.ended .done { opacity: 1; pointer-events: auto; }
#unlock .done h2 { font-size: clamp(28px, 4vw, 44px); color: var(--brass-lit); text-align: center; }

@media (max-width: 720px) {
  .brand span { font-size: 24px; }
  nav.tabs a { padding: 0 14px; font-size: 14px; }
  .chapters { grid-template-columns: 1fr; }
  .pass .stub { border-right: 0; border-bottom: 3px dashed var(--cream); }
  .purse .wrap { gap: 8px; }
  .bal { padding: 6px 14px 6px 6px; gap: 8px; }
  .bal svg { width: 28px; height: 28px; }
  .bal img.coin { width: 28px; height: 28px; }
  .bal b { font-size: 20px; }
  .bal span { font-size: 11px; }
  .namepass .stub { flex: 1 1 100%; flex-direction: row; justify-content: space-between; padding: 12px 20px; border-right: 0; border-bottom: 3px dashed var(--cream); }
  .namepass .stub img { width: 40px; }
  .namepass form { padding: 18px 20px 12px; }
  .namepass input { font-size: 26px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
