:root {
  --night: #14102A; --night-2: #1F1840; --velvet: #5A1626; --velvet-dark: #2E0A14;
  --gold: #E7C98E; --gold-bright: #FFE3A0; --cream: #F7E2B3; --ink: #2A160C;
  --ram: rgba(190, 70, 38, .9); --lion: rgba(44, 86, 138, .9);
  --ui: 'Mulish', ui-sans-serif, system-ui, sans-serif;
  --display: 'Marcellus', Georgia, serif;
  --sw: min(calc(86vw - 120px), calc((100dvh - 350px) * 880 / 330), 1100px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
html, body { margin: 0; min-height: 100%; }
body.ur {
  font-family: var(--ui); color: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, #2A2150, var(--night) 70%, #0B0818);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* velvet curtains framing the theatre */
.curtain { position: fixed; top: 0; bottom: 0; width: 7vw; min-width: 40px; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--velvet-dark) 0, var(--velvet) 18px, #7A2236 30px, var(--velvet) 42px, var(--velvet-dark) 60px);
  box-shadow: inset -20px 0 40px rgba(0, 0, 0, .6); }
.curtain.left { left: 0; border-radius: 0 0 60% 0 / 0 0 12% 0; }
.curtain.right { right: 0; transform: scaleX(-1); border-radius: 0 0 60% 0 / 0 0 12% 0; }
#app { position: relative; z-index: 1; min-height: 100dvh; }

/* ---------- playbills, buttons ---------- */
.playbill { position: relative; color: var(--cream); border-radius: 6px;
  background: radial-gradient(ellipse at 50% 0%, rgba(231, 201, 142, .12), transparent 60%), linear-gradient(#211A45, #17122F);
  border: 1px solid rgba(231, 201, 142, .5); box-shadow: 0 0 0 5px #17122F, 0 0 0 6px rgba(231, 201, 142, .35), 0 18px 40px rgba(0, 0, 0, .5); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; cursor: pointer; min-height: 46px; padding: .5em 1.4em;
  border: 1px solid rgba(231, 201, 142, .6); border-radius: 4px; background: rgba(231, 201, 142, .08); color: var(--cream); font-weight: 700; letter-spacing: .02em;
  transition: background .15s, transform .1s; }
.btn:hover:not(:disabled) { background: rgba(231, 201, 142, .18); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(#F2D08A, #C9973F); color: var(--ink); border-color: #F7E2B3; box-shadow: 0 0 22px rgba(255, 200, 110, .3); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(#FFE0A0, #D8A64C); }
.btn.small { min-height: 36px; font-size: .92rem; padding: .3em 1em; }
.btn.big { font-size: 1.15rem; padding: .6em 1.9em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { cursor: pointer; min-height: 40px; padding: .3em 1.1em; border-radius: 4px; font-weight: 600; color: var(--cream); background: transparent; border: 1px solid rgba(231, 201, 142, .35); }
.chip.on { background: rgba(231, 201, 142, .2); border-color: var(--gold-bright); color: var(--gold-bright); }
input { font: inherit; font-size: 1.05rem; color: var(--cream); min-height: 44px; padding: .4em .9em; width: 100%; border: 1px solid rgba(231, 201, 142, .4); border-radius: 4px; background: rgba(0, 0, 0, .25); }
input:focus { outline: none; border-color: var(--gold-bright); }
.code { font-family: var(--display); letter-spacing: .16em; padding: .02em .45em; border-radius: 3px; background: rgba(231, 201, 142, .18); color: var(--gold-bright); }
.form-error { background: rgba(178, 58, 46, .25); border: 1px solid rgba(255, 140, 120, .5); color: #FFD3C8; padding: .6em 1em; border-radius: 4px; text-align: center; }
.note, .blurb { color: rgba(247, 226, 179, .7); margin: 6px 0 0; }
.blurb { min-height: 2.6em; }
.loading { min-height: 100dvh; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.back { position: absolute; top: 14px; left: calc(7vw + 10px); z-index: 3; color: var(--cream); text-decoration: none; padding: 8px 14px; border-radius: 4px; border: 1px solid rgba(231, 201, 142, .3); }
.back:hover { background: rgba(231, 201, 142, .12); }
.icon { cursor: pointer; min-height: 36px; padding: .2em .9em; border-radius: 4px; background: transparent; border: 1px solid rgba(231, 201, 142, .3); color: var(--cream); font-weight: 600; font-size: .9rem; }
.icon:hover { background: rgba(231, 201, 142, .12); }
.mini { border: 0; cursor: pointer; background: var(--gold); color: var(--ink); border-radius: 3px; font-size: .78rem; padding: .15em .7em; font-weight: 700; }
.tag { font-size: .76rem; border: 1px solid rgba(231, 201, 142, .35); padding: .05em .6em; border-radius: 3px; color: var(--gold); }
.tag.away { color: #FFB4A6; border-color: rgba(255, 140, 120, .5); }

/* puppets used as icons (on the dark playbills they sit on a lit disc) */
.side-puppet, .bill-puppet, .hp, .end-puppet { display: inline-grid; place-items: center; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 45%, #FFE9B8, #F2C478 60%, #C8873F); box-shadow: 0 0 18px rgba(255, 200, 110, .35); }
.side-puppet { width: 52px; height: 52px; } .side-puppet svg { width: 86%; height: auto; mix-blend-mode: multiply; }
.puppet-svg .gel { fill: var(--ram); } .puppet-svg.s1 .gel { fill: var(--lion); }

/* ---------- home & lobby ---------- */
.u-home { min-height: 100dvh; display: grid; place-items: center; padding: 64px calc(7vw + 12px) 40px; }
.home-card { width: min(820px, 100%); padding: 28px clamp(18px, 4vw, 44px); }
.home-logo { margin: 0; display: grid; place-items: center; }
.home-logo .ur-logo { width: min(500px, 100%); height: auto; }
.home-puppets { display: flex; justify-content: center; gap: 24px; margin: 4px 0 6px; }
.hp { width: 92px; height: 92px; } .hp svg { width: 86%; height: auto; mix-blend-mode: multiply; }
.hp.s1 svg { transform: scaleX(-1); }
.home-puppets .hp { animation: sway 3.2s ease-in-out infinite; } .home-puppets .hp.s1 { animation-delay: -1.6s; }
@keyframes sway { 50% { transform: translateY(-4px) rotate(-3deg); } }
.lede { max-width: 58ch; margin: 10px auto 20px; text-align: center; color: rgba(247, 226, 179, .82); line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 4px; max-width: 320px; margin: 0 auto 22px; }
.field span { font-size: .92rem; color: var(--gold); font-weight: 600; }
.choices { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.choice { border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border: 1px solid rgba(231, 201, 142, .22); background: rgba(0, 0, 0, .18); }
.choice h2, .lobby-card h1, .lobby-card h2, .end-card h2 { font-family: var(--display); font-weight: 400; margin: 0; color: var(--gold-bright); }
.choice h2 { font-size: 1.45rem; }
.choice p { margin: 0; color: rgba(247, 226, 179, .72); }
.side-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.side { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid rgba(231, 201, 142, .3); border-radius: 4px; padding: 6px 16px 6px 8px; color: var(--cream); }
.side .side-puppet { grid-row: span 2; }
.side.on { border-color: var(--gold-bright); background: rgba(231, 201, 142, .14); }
.side b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1; }
.side small { color: rgba(247, 226, 179, .7); line-height: 1.1; }
.join { display: flex; gap: 8px; width: 100%; margin-top: 4px; }
.join input { max-width: 130px; text-transform: uppercase; letter-spacing: .2em; }
.u-lobby { min-height: 100dvh; padding: 16px calc(7vw + 12px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lobby-top { width: min(760px, 100%); display: flex; justify-content: space-between; align-items: center; }
.lobby-top a { display: block; width: 240px; } .lobby-top svg { width: 100%; height: auto; }
.lobby-card { width: min(760px, 100%); padding: 26px clamp(16px, 4vw, 36px); }
.lobby-card h1 { font-size: 1.8rem; margin-bottom: 4px; } .lobby-card h2 { font-size: 1.2rem; margin: 18px 0 8px; }
.invite { display: flex; gap: 8px; }
.seats { display: grid; gap: 10px; margin: 20px 0 8px; }
.seat { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 4px; border: 1px solid rgba(231, 201, 142, .22); background: rgba(0, 0, 0, .18); }
.seat.empty { opacity: .75; }
.seat b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--gold-bright); }
.seat small { color: rgba(247, 226, 179, .7); }
.seat .who { font-weight: 600; margin-top: 2px; }
.seat > .btn { margin-left: auto; }
.seat .x { margin-left: auto; border: 1px solid rgba(231, 201, 142, .4); background: transparent; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: #FFB4A6; }
.lobby-row { display: flex; justify-content: center; margin: 8px 0; }
.lobby-card > .btn.big { margin-top: 16px; }

/* ---------- the theatre ---------- */
.ur-game { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 10px calc(7vw + 8px) 96px; }
.u-top { width: 100%; max-width: 1500px; display: flex; align-items: center; gap: 14px; }
.top-logo { width: 210px; flex: none; } .top-logo svg { width: 100%; height: auto; display: block; }
.top-logo .ur-logo text:last-child { display: none; }
.status { margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 44px; padding: 6px 22px;
  border: 1px solid rgba(231, 201, 142, .45); border-radius: 4px; background: rgba(10, 8, 24, .55); }
.status b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--gold-bright); }
.status span { color: rgba(247, 226, 179, .75); }
.meta { display: flex; gap: 8px; align-items: center; flex: none; }
.theatre { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; padding-top: 8px; }
.bills { width: calc(var(--sw) + 72px); max-width: 100%; display: flex; justify-content: space-between; gap: 14px; }

/* the glowing screen */
.screen { position: relative; padding: 22px 26px 16px; border-radius: 6px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(120, 70, 30, .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 70, 30, .05) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 65% 70% at 50% 58%, #FFF0C8 0%, #F8D594 38%, #E6A55A 72%, #A9612B 100%);
  border: 10px solid #2A160C; box-shadow: 0 0 0 2px #4A2A16, 0 0 90px 10px rgba(255, 180, 90, .28), 0 30px 60px rgba(0, 0, 0, .6);
  transition: filter .5s ease; }
.screen.bright { filter: brightness(1.12) saturate(1.08); }
.lamp-flicker { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse 40% 45% at 50% 62%, rgba(255, 250, 220, .9), transparent 70%); animation: flicker 3.7s infinite; }
@keyframes flicker { 0%, 100% { opacity: .75; transform: translate(0, 0); } 18% { opacity: .9; transform: translate(4px, -2px); } 32% { opacity: .68; } 47% { opacity: .95; transform: translate(-3px, 1px); } 63% { opacity: .78; } 81% { opacity: .9; transform: translate(2px, 2px); } }
.stage { position: relative; width: var(--sw); margin: 0 auto; }
.board-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: multiply; }
.layer { position: absolute; inset: 0; }
.layer.flares, .layer.pools, .layer.words { pointer-events: none; }

/* puppets */
.puppet { position: absolute; width: calc(100% * 100 / 880); aspect-ratio: 110 / 100; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: default;
  transition: left .2s ease, top .2s ease, width .2s ease; }
.puppet-inner { display: block; width: 100%; height: 100%; transition: transform .2s ease; }
.puppet-inner svg { width: 100%; height: 100%; display: block; overflow: visible; mix-blend-mode: multiply; filter: blur(.35px); }
.puppet.face-left .puppet-inner { transform: scaleX(-1); }
.puppet.pooled { width: calc(100% * 76 / 880); }
.ur-game.my-move .puppet.legal { cursor: pointer; }
.ur-game.my-move .puppet.legal::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -2%; height: 22%; border-radius: 50%; z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 252, 230, .95), rgba(255, 240, 190, 0) 70%); animation: halo 1.3s ease-in-out infinite; }
.ur-game.my-move .puppet.legal .puppet-inner { animation: ready 1.3s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .45; } }
@keyframes ready { 50% { translate: 0 -5%; } }
.puppet.legal:hover .puppet-inner, .puppet.legal:focus-visible .puppet-inner { translate: 0 -9%; }
.pool-count { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-size: 1.6cqw; color: var(--ink); white-space: nowrap; opacity: .85; }
.stage { container-type: inline-size; }

/* where a move would land */
.target { position: absolute; width: calc(100% * 96 / 880); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(42, 22, 12, .7), 0 0 0 7px rgba(255, 250, 225, .65), 0 0 30px 8px rgba(255, 245, 210, .6); animation: pulse 1s ease-in-out infinite; }
.target em { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); font-style: normal; font-family: var(--display); font-size: 1.7cqw; color: var(--ink); white-space: nowrap; }
.target.cap { box-shadow: 0 0 0 3px rgba(42, 22, 12, .8), 0 0 0 7px rgba(255, 120, 90, .7), 0 0 30px 8px rgba(255, 120, 90, .5); }
.target.ros { box-shadow: 0 0 0 3px rgba(42, 22, 12, .7), 0 0 0 7px rgba(255, 215, 120, .85), 0 0 36px 12px rgba(255, 215, 120, .7); }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.04); } }
.flare { position: absolute; width: calc(100% * 260 / 880); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 245, 200, .95), rgba(255, 210, 110, .55) 35%, transparent 70%); animation: flare 1.5s ease-out forwards; }
@keyframes flare { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }
.word { position: absolute; left: 50%; top: 46%; translate: -50% -50%; font-family: var(--display); font-size: 6cqw; color: rgba(42, 22, 12, .85); white-space: nowrap;
  mix-blend-mode: multiply; filter: blur(.4px); animation: word 1.6s ease-out forwards; }
.word.cap { color: rgba(120, 30, 20, .9); }
@keyframes word { 0% { opacity: 0; transform: scale(1.6); filter: blur(8px); } 20% { opacity: 1; transform: scale(1); filter: blur(.4px); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* dice tray on the screen */
.tray { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 12px; min-height: 76px; }
.dice { display: flex; gap: 14px; padding: 8px 16px; border: 0; background: none; border-radius: 10px; cursor: default; }
.ur-game.my-roll .dice { cursor: pointer; animation: invite 1.4s ease-in-out infinite; }
@keyframes invite { 50% { box-shadow: 0 0 0 2px rgba(42, 22, 12, .35), 0 0 26px 6px rgba(255, 250, 225, .7); } }
.die { display: block; width: 56px; mix-blend-mode: multiply; }
.die svg { width: 100%; height: auto; display: block; overflow: visible; }
.die.tumble { animation: tumble .85s cubic-bezier(.3, .7, .3, 1); }
@keyframes tumble {
  0% { transform: translate(var(--dx), -70px) rotate(var(--spin)) scale(2.1); filter: blur(7px); opacity: .5; }
  60% { transform: translate(0, 4px) rotate(calc(var(--spin) * .1)) scale(1.05); filter: blur(1px); opacity: 1; }
  80% { transform: translate(0, -6px) rotate(0deg) scale(1); }
  100% { transform: none; filter: none; }
}
.roll-result { min-width: 90px; display: flex; flex-direction: column; align-items: center; color: var(--ink); mix-blend-mode: multiply; }
.roll-result b { font-family: var(--display); font-size: 2.8rem; line-height: 1; font-weight: 400; }
.roll-result span { font-size: .9rem; font-weight: 700; opacity: .75; }
.roll-result .prompt { display: none; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; text-align: center; }
.ur-game.my-roll .roll-result .prompt { display: block; }

/* playbills beside the screen */
.bill { flex: 1; max-width: 380px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 8px 14px; border-radius: 4px; text-align: left;
  background: linear-gradient(#211A45, #17122F); border: 1px solid rgba(231, 201, 142, .35); transition: border-color .25s, box-shadow .25s, transform .25s; }
.bill.turn { border-color: var(--gold-bright); box-shadow: 0 0 30px rgba(255, 210, 120, .3); }
.bill.me { flex-direction: row-reverse; text-align: right; }
.bill.me .bill-text { align-items: flex-end; }
.bill-puppet { width: 54px; height: 54px; } .bill-puppet svg { width: 86%; height: auto; mix-blend-mode: multiply; }
.bill.s1 .bill-puppet svg { transform: scaleX(-1); }
.bill.turn .bill-puppet svg { animation: ready 1.3s ease-in-out infinite; }
.bill-text { display: flex; flex-direction: column; line-height: 1.2; }
.bill-text b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--gold-bright); }
.bill-who { font-size: .9rem; color: rgba(247, 226, 179, .75); overflow-wrap: anywhere; }
.bill-home { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 130px; margin: 0 auto; }
.bill-home i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(231, 201, 142, .5); }
.bill-home i.on { background: var(--gold-bright); box-shadow: 0 0 6px rgba(255, 220, 140, .8); }
.bill.s0 .bill-home i.on { background: #F09A6E; } .bill.s1 .bill-home i.on { background: #8DB6E6; }
.bill-home small { width: 100%; font-size: .78rem; color: rgba(247, 226, 179, .65); }
.bill-turn { min-height: 1.2em; font-weight: 700; color: var(--gold-bright); }
.bill-turn:empty { display: none; }
.bill-extra { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }

/* the audience in front of the stage */
.audience { position: fixed; left: 0; right: 0; bottom: -6px; height: 88px; z-index: 5; pointer-events: none; filter: blur(1.5px); opacity: .96;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 90' preserveAspectRatio='none'><g fill='%2307050F'><ellipse cx='30' cy='62' rx='26' ry='30'/><ellipse cx='30' cy='100' rx='46' ry='28'/><ellipse cx='105' cy='58' rx='24' ry='29'/><ellipse cx='105' cy='98' rx='44' ry='28'/><ellipse cx='176' cy='66' rx='27' ry='31'/><ellipse cx='176' cy='104' rx='48' ry='30'/><ellipse cx='252' cy='56' rx='23' ry='27'/><path d='M228 52 Q252 18 276 52Z'/><ellipse cx='252' cy='96' rx='44' ry='28'/><ellipse cx='330' cy='64' rx='26' ry='30'/><ellipse cx='330' cy='102' rx='47' ry='29'/><ellipse cx='405' cy='60' rx='24' ry='29'/><ellipse cx='405' cy='98' rx='44' ry='28'/><ellipse cx='478' cy='67' rx='27' ry='31'/><ellipse cx='478' cy='104' rx='48' ry='30'/><ellipse cx='555' cy='58' rx='25' ry='29'/><ellipse cx='555' cy='98' rx='45' ry='28'/></g></svg>") repeat-x bottom / 600px 88px; }

/* end */
.end-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(6, 4, 14, .6); animation: fadeIn .4s; }
.end-backdrop.late { animation: fadeIn .4s .8s both; }
@keyframes fadeIn { from { opacity: 0; } }
.end-card { width: min(480px, 100%); padding: 26px 28px; text-align: center; }
.end-puppet { width: 110px; height: 110px; margin: -70px auto 6px; display: grid; } .end-puppet svg { width: 86%; height: auto; mix-blend-mode: multiply; animation: sway 2s ease-in-out infinite; }
.end-card h2 { font-size: 2.1rem; }
.end-card p { color: rgba(247, 226, 179, .85); }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

.toasts { position: fixed; z-index: 50; top: 74px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(520px, calc(100vw - 32px)); }
.toast { background: #211A45; color: var(--cream); border: 1px solid rgba(231, 201, 142, .5); padding: 8px 18px; border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); text-align: center; transition: opacity .4s, transform .4s; }
.toast.error { border-color: rgba(255, 140, 120, .7); color: #FFD3C8; }
.toast.out { opacity: 0; transform: translateY(-10px); }
.conn { position: fixed; z-index: 60; bottom: 100px; left: 50%; translate: -50% 0; background: #8E2D23; color: #fff; padding: 6px 16px; border-radius: 4px; }

/* about (static text) */
.about { position: relative; z-index: 1; width: min(800px, calc(100% - 32px - 14vw)); margin: 0 auto 120px; padding: 26px clamp(18px, 4vw, 42px); line-height: 1.65;
  background: linear-gradient(#211A45, #17122F); border: 1px solid rgba(231, 201, 142, .4); border-radius: 4px; color: rgba(247, 226, 179, .9); }
.about h2 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; margin: 1.2em 0 .4em; color: var(--gold-bright); } .about h2:first-child { margin-top: 0; }
.about p, .about li, .about dd { max-width: 68ch; }
.about strong, .about dt { color: var(--cream); }
.about dt { font-weight: 700; margin-top: .8em; } .about dd { margin: .2em 0 0; }
.about a { color: var(--gold-bright); }

/* ---------- phones: the stage stands upright ---------- */
@media (max-width: 760px) {
  :root { --sw: min(calc(100vw - 96px), calc((100dvh - 330px) * 330 / 880)); }
  .curtain { width: 14px; min-width: 0; }
  .ur-game { padding: 8px 18px 90px; }
  .u-top { flex-wrap: wrap; gap: 8px; }
  .top-logo { width: 150px; }
  .status { order: 3; width: 100%; padding: 4px 12px; min-height: 40px; }
  .meta { margin-left: auto; } .meta .code { display: none; }
  .theatre { flex-direction: column; gap: 10px; }
  .screen { padding: 14px 12px 10px; border-width: 7px; }
  .puppet { width: calc(100% * 100 / 330); } .puppet.pooled { width: calc(100% * 76 / 330); }
  .target { width: calc(100% * 96 / 330); } .flare { width: calc(100% * 260 / 330); }
  .target em, .pool-count { font-size: 4.2cqw; } .word { font-size: 13cqw; }
  .die { width: 44px; } .dice { gap: 10px; } .roll-result b { font-size: 2.2rem; }
  .bills { width: 100%; gap: 8px; }
  .bill { padding: 6px 8px; gap: 2px 6px; }
  .bill-puppet { width: 38px; height: 38px; }
  .bill-text b { font-size: 1rem; } .bill-who { font-size: .78rem; }
  .bill-home { max-width: 80px; gap: 3px; } .bill-home i { width: 8px; height: 8px; } .bill-home small { display: none; }
  .bill-turn { font-size: .8rem; } .bill-extra { display: none; }
  .choices { grid-template-columns: 1fr; }
  .u-home, .u-lobby { padding-left: 24px; padding-right: 24px; }
  .back { left: 22px; }
  .about { width: calc(100% - 48px); }
  .audience { height: 64px; background-size: 420px 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
