@font-face { font-family: "Grot"; src: url(/fonts/space-grotesk-500.woff2) format("woff2"); font-weight: 500; font-display: swap }
@font-face { font-family: "Grot"; src: url(/fonts/space-grotesk-700.woff2) format("woff2"); font-weight: 700; font-display: swap }
@font-face { font-family: "Serif"; src: url(/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: "Serif"; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap }

:root {
  --field: #0f6b56;        /* jade: the one colour of the game */
  --field2: #16846b;
  --deep: #0a4d3e;
  --deeper: #063328;
  --night: #02201a;
  --cream: #fff4e0;
  --ink: #10231d;
  --coral: #ff5d73;        /* the button colour: you can act here */
  --coral2: #ff8494;
  --sun: #ffd23f;          /* points */
  --dim: rgba(255, 244, 224, .72);
  --u: 1vh;
}
* { box-sizing: border-box }
html, body { margin: 0; min-height: 100%; background: var(--field); color: var(--cream); font-family: "Grot", system-ui, sans-serif; font-weight: 500 }
body { -webkit-tap-highlight-color: transparent; background: radial-gradient(120% 80% at 50% 0%, var(--field2), var(--field) 55%, var(--deep)) fixed }
button, input, textarea { font: inherit; color: inherit }
[hidden] { display: none !important }
a { color: inherit }

/* ---- shared pieces --------------------------------------------------------------------------------- */
.btn { display: block; width: 100%; border: 2.5px solid var(--ink); background: var(--coral); color: var(--ink); font-weight: 700; font-size: 20px; padding: 15px 18px; border-radius: 14px; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s; text-align: center; text-decoration: none; letter-spacing: -0.01em }
.btn:active:not(:disabled) { transform: translateY(4px) scale(.99); box-shadow: 0 1px 0 var(--ink) }
.btn:disabled { opacity: .45; cursor: default }
.btn.cream { background: var(--cream) }
.btn.ink { background: var(--ink); color: var(--cream); border-color: var(--night); box-shadow: 0 5px 0 var(--night) }
.btn.ghost { background: transparent; color: var(--cream); border: 2px solid rgba(255,244,224,.55); box-shadow: none; font-size: 17px; padding: 12px 16px }
.btn.small { font-size: 16px; padding: 10px 14px; width: auto; display: inline-block; box-shadow: 0 3px 0 var(--ink) }
.btn:focus-visible, .chipbtn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px }
.link { background: none; border: 0; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; cursor: pointer; padding: 8px 4px; font-size: 16px }

.chip { display: inline-flex; align-items: center; gap: .4em; background: var(--c, var(--cream)); color: var(--k, var(--ink)); border-radius: 999px; padding: .28em .85em .28em .4em; font-weight: 700; white-space: nowrap;
  border: 2px solid var(--ink); animation: pop .35s cubic-bezier(.3,1.6,.5,1) both }
.chip .dot { width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--ink); opacity: .85 }
.chip .score { background: var(--ink); color: var(--c, var(--cream)); border-radius: 999px; padding: 0 .5em; min-width: 1.6em; text-align: center }
.chip.away { opacity: .45 }
.chip.done::after { content: "✓"; font-weight: 700 }

.card { background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); padding: 18px }
.serif { font-family: "Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.01em }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim) }
.card .eyebrow { color: #4c6158 }
.netmark { position: fixed; right: 12px; bottom: 12px; background: var(--ink); color: var(--cream); padding: 6px 12px; border-radius: 999px; font-size: 14px; z-index: 50 }

@keyframes pop { from { transform: scale(.5); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes rise { from { transform: translateY(18px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes swing { 0% { transform: rotate(-9deg) } 50% { transform: rotate(6deg) } 100% { transform: rotate(0) } }
@keyframes shake { 0%,100% { transform: none } 25% { transform: translateX(-7px) } 75% { transform: translateX(7px) } }
.shake { animation: shake .3s }
.rise { animation: rise .45s cubic-bezier(.2,1.2,.4,1) both }

/* ---- the phone column (daily and party phone) --------------------------------------------------------- */
.wrap { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: max(14px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px }
.bar .logo { height: 36px; width: auto; display: block }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.22); border: 2px solid rgba(255,244,224,.35); color: var(--cream); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 16px; cursor: pointer; min-height: 44px }
.screen { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-top: 10px }
.grow { flex: 1 }

/* today's category, big */
.today { text-align: left; padding: 6px 0 2px }
.today .cat { font-family: "Serif", Georgia, serif; font-size: clamp(54px, 17vw, 96px); line-height: .92; margin: 6px 0 4px; letter-spacing: -0.02em; overflow-wrap: anywhere; text-shadow: 0 4px 0 var(--deeper) }
.today .q { font-size: 21px; font-weight: 700; margin: 6px 0 0 }
.tag2 { display: inline-block; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 1px 8px; font-weight: 700; font-size: 13px; letter-spacing: .06em; margin-left: 6px; vertical-align: 2px }

.form { display: flex; flex-direction: column; gap: 12px }
.fieldset label { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin: 0 2px 6px }
.fieldset label .count { opacity: .7; font-weight: 500 }
.input { width: 100%; background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; padding: 14px 15px; font-size: 19px; font-weight: 500; box-shadow: inset 0 3px 0 rgba(16,35,29,.08); resize: none; line-height: 1.3 }
.input::placeholder { color: #7d8a84 }
textarea.input { min-height: 84px }
.err { color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; font-weight: 700 }
.row { display: flex; gap: 10px; align-items: center }
.row > .btn { flex: 1 }
.row > .btn.small { flex: none }
.center { text-align: center }

/* match: you and N others */
.match { text-align: center; padding: 26px 18px }
.match .big { font-family: "Serif", Georgia, serif; font-size: clamp(36px, 10vw, 54px); line-height: 1; margin: 10px 0 }
.match .others { font-size: 22px; font-weight: 700; margin-top: 10px }
.match .others b { background: var(--coral); border: 2px solid var(--ink); border-radius: 8px; padding: 0 8px }

/* the vote card */
.deck { position: relative; touch-action: pan-y }
.vcard { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 340px; padding: 22px 20px 18px; transition: transform .25s cubic-bezier(.2,1.2,.4,1), opacity .25s }
.vcard .title { font-family: "Serif", Georgia, serif; font-size: clamp(34px, 9.5vw, 50px); line-height: 1; margin: 0 }
.vcard .why { font-family: "Serif", Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.2; margin: 0; flex: 1; color: #24392f }
.vcard .why::before { content: "“" } .vcard .why::after { content: "”" }
.vcard .more { align-self: flex-start; background: none; border: 0; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; font-size: 16px; cursor: pointer }
.vcard .count { font-size: 14px; color: #4c6158; font-weight: 700 }
.up { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink); border-radius: 14px; font-weight: 700; font-size: 21px; padding: 14px; cursor: pointer; box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .15s }
.up .arrow { font-size: 24px; line-height: 1; transition: transform .2s cubic-bezier(.3,1.8,.5,1) }
.up.on { background: var(--coral) }
.up.on .arrow { transform: translateY(-3px) scale(1.25) }
.up:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink) }
.vcard.out-l { transform: translateX(-120%) rotate(-8deg); opacity: 0 }
.vcard.out-r { transform: translateX(120%) rotate(8deg); opacity: 0 }
.vcard.in { animation: rise .35s cubic-bezier(.2,1.2,.4,1) both }
.pips { display: flex; justify-content: center; gap: 6px; margin: 4px 0 }
.pips i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,244,224,.35) }
.pips i.on { background: var(--cream) }
.burst { position: fixed; pointer-events: none; z-index: 40; font-size: 22px; font-weight: 700; color: var(--ink) }

/* done */
.done { text-align: center; padding: 22px 16px }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px }
.stat { background: rgba(0,0,0,.2); border: 2px solid rgba(255,244,224,.25); border-radius: 14px; padding: 12px; text-align: center }
.stat b { display: block; font-size: 34px; line-height: 1.05 }
.stat span { font-size: 14px; opacity: .85 }
.clock { font-variant-numeric: tabular-nums; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1 }

/* results */
.result .winner { font-family: "Serif", Georgia, serif; font-size: clamp(38px, 11vw, 60px); line-height: .98; margin: 8px 0 10px }
.result blockquote { margin: 0 0 12px; font-family: "Serif", Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.2; color: #24392f }
.result .nums { font-weight: 700; font-size: 16px }
.top5 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.top5 li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: rgba(0,0,0,.2); border-radius: 12px; padding: 10px 12px; border: 2px solid transparent }
.top5 li.mine { border-color: var(--sun) }
.top5 .rk { font-weight: 700; opacity: .8 }
.top5 .t { font-family: "Serif", Georgia, serif; font-size: 21px; line-height: 1.05 }
.top5 .v { font-weight: 700; white-space: nowrap }
.mine-line { background: var(--deeper); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px }
.mine-line .pts { color: var(--sun); font-weight: 700; font-size: 22px }

/* sheets (profile, save) */
.sheet { position: fixed; inset: 0; z-index: 30; background: var(--deep); overflow-y: auto; animation: rise .3s both }
.sheet .wrap { min-height: 100%; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.hist li { background: rgba(0,0,0,.22); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px }
.hist .d { font-size: 13px; opacity: .8; grid-column: 1 / -1 }
.hist .m { font-family: "Serif", Georgia, serif; font-size: 21px; line-height: 1.05 }
.hist .p { font-weight: 700; color: var(--sun); align-self: center }
.foot { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; margin-top: 18px; font-size: 15px }
.foot a { color: var(--dim); text-underline-offset: 3px }
#shelf { margin-top: 22px; min-height: 10px }

/* ---- party phone ------------------------------------------------------------------------------------ */
.hostbox { display: flex; flex-direction: column; gap: 14px }
.hostbox h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; display: flex; justify-content: space-between; align-items: baseline }
.hostbox h3 .n { text-transform: none; letter-spacing: 0; font-size: 15px; opacity: 1 }
.hostbox h3 .n.low { color: var(--sun) }
.toggles { display: flex; flex-wrap: wrap; gap: 8px }
.tog { border: 2px solid var(--ink); background: rgba(0,0,0,.18); color: var(--cream); border-color: rgba(255,244,224,.4); border-radius: 999px; padding: 9px 13px; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 44px }
.tog.on { background: var(--cream); color: var(--ink); border-color: var(--ink) }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: rgba(0,0,0,.2); border-radius: 14px; padding: 5px }
.seg button { border: 0; background: transparent; color: var(--cream); border-radius: 10px; padding: 11px 6px; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 44px }
.seg button.on { background: var(--cream); color: var(--ink) }
.stepper { display: flex; align-items: center; gap: 10px }
.stepper .val { min-width: 92px; text-align: center; font-weight: 700; font-size: 20px }
.stepper button { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); font-size: 24px; font-weight: 700; cursor: pointer }
.mycats { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px }
.mycats li { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.2); border-radius: 10px; padding: 6px 6px 6px 12px }
.mycats li span { flex: 1; font-weight: 700 }
.mycats li em { font-style: normal; font-size: 13px; opacity: .75 }
.mycats li button { border: 0; background: transparent; color: var(--cream); font-size: 20px; width: 40px; height: 40px; cursor: pointer }
.players { display: flex; flex-wrap: wrap; gap: 8px }
.choice { text-align: left; font-family: "Serif", Georgia, serif; font-size: 32px; line-height: 1; padding: 20px 18px; font-weight: 400 }
.choice small { display: block; font-family: "Grot", system-ui; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; opacity: .7; font-weight: 700 }
.timerbar { height: 8px; border-radius: 999px; background: rgba(0,0,0,.25); overflow: hidden }
.timerbar i { display: block; height: 100%; background: var(--cream); transform-origin: left }
.timerbar.low i { background: var(--sun) }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; padding: 13px 14px; box-shadow: 0 4px 0 var(--ink); font-family: "Serif", Georgia, serif; font-size: 24px; line-height: 1.05; cursor: pointer; min-height: 56px }
.opt .k { flex: none; font-family: "Grot", system-ui; font-weight: 700; font-size: 16px; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--cream); display: grid; place-items: center }
.opt .x { margin-left: auto; font-family: "Grot", system-ui; font-size: 15px; font-weight: 700; white-space: nowrap }
.opt.mine { opacity: .45; box-shadow: none; cursor: default }
.opt.picked { background: var(--coral) }
.opt.top { background: var(--sun) }
.bigmsg { font-family: "Serif", Georgia, serif; font-size: clamp(40px, 12vw, 64px); line-height: .98; margin: 6px 0 }
.lead { font-size: 20px; font-weight: 700; margin: 0 }
.lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.lb li { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.2); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 19px }
.lb li .s { margin-left: auto; color: var(--sun) }
.lb li.win { background: var(--cream); color: var(--ink) }
.lb li.win .s { color: var(--ink) }

/* ---- TV --------------------------------------------------------------------------------------------- */
body.tv { overflow: hidden; font-size: calc(var(--u) * 2.4) }
.tvroot { position: fixed; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; padding: calc(var(--u) * 3) calc(var(--u) * 4.5) }
.tvtop { grid-row: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: calc(var(--u) * 9) }
.tvtop .logo { height: calc(var(--u) * 6.5); width: auto }
.roundtag { font-weight: 700; font-size: calc(var(--u) * 3); background: var(--deeper); padding: .25em .9em; border-radius: 999px; white-space: nowrap }
.cornerqr { justify-self: end }
.cornerqr .join { display: flex; align-items: center; gap: .6em; color: var(--cream); text-decoration: none }
.cornerqr .qr { width: calc(var(--u) * 9); height: calc(var(--u) * 9); border-radius: .4em }
.cornerqr .addr { font-weight: 700; font-size: calc(var(--u) * 2.4) }
.tvtimer { grid-row: 2; height: calc(var(--u) * 1.1); margin: calc(var(--u) * 1.2) 0; border-radius: 999px; background: rgba(0,0,0,.2); overflow: hidden; opacity: 0; transition: opacity .3s }
.tvtimer.on { opacity: 1 }
.tvtimer i { display: block; height: 100%; background: var(--cream); transform-origin: left }
.tvtimer.low i { background: var(--sun) }
.tvchips { grid-row: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--u) * 1.2); font-size: calc(var(--u) * 2.6); padding-top: calc(var(--u) * 1.5) }
.tvchips .chip.author { outline: .18em solid var(--sun); outline-offset: .12em }
.stage { grid-row: 3; position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center }
.tvcat { font-family: "Serif", Georgia, serif; font-size: calc(var(--u) * 15); line-height: .9; margin: 0; text-shadow: 0 .05em 0 var(--deeper); letter-spacing: -0.02em; max-width: 92vw }
.tvq { font-size: calc(var(--u) * 4.4); font-weight: 700; margin: calc(var(--u) * 2) 0 0 }
.tvsub { font-size: calc(var(--u) * 3.4); font-weight: 700; opacity: .92; margin: calc(var(--u) * 1.5) 0 0 }
.tvchoices { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 2.4); width: 100%; margin-top: calc(var(--u) * 4) }
.tvchoices .card { font-family: "Serif", Georgia, serif; font-size: calc(var(--u) * 5.4); line-height: 1; padding: calc(var(--u) * 4) calc(var(--u) * 2.5); animation: rise .5s cubic-bezier(.2,1.2,.4,1) both }
.tvchoices .card:nth-child(2) { animation-delay: .12s } .tvchoices .card:nth-child(3) { animation-delay: .24s }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(var(--u) * 46), 1fr)); gap: calc(var(--u) * 1.8); width: 100%; align-content: center }
.board.many { grid-template-columns: repeat(auto-fit, minmax(calc(var(--u) * 36), 1fr)) }
.bcard { position: relative; display: flex; align-items: center; gap: calc(var(--u) * 1.6); text-align: left; padding: calc(var(--u) * 2) calc(var(--u) * 2.2); animation: rise .45s cubic-bezier(.2,1.2,.4,1) both }
.bcard .k { flex: none; width: 1.5em; height: 1.5em; border-radius: .3em; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: calc(var(--u) * 3) }
.bcard .t { font-family: "Serif", Georgia, serif; font-size: calc(var(--u) * 4.4); line-height: 1 }
.bcard .n { margin-left: auto; font-weight: 700; font-size: calc(var(--u) * 2.4); white-space: nowrap; opacity: .7 }
.bcard .votes { flex: none; white-space: nowrap; margin-left: auto; font-weight: 700; font-size: calc(var(--u) * 5); color: var(--ink); background: var(--sun); border: .1em solid var(--ink); border-radius: .3em; padding: 0 .35em; animation: pop .4s cubic-bezier(.3,1.8,.5,1) both }
.bcard .who { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .5em; font-size: calc(var(--u) * 2.2); animation: rise .4s both }
.bcard.top { background: var(--sun); transform: scale(1.03) }
.bcard .body { display: flex; flex-direction: column; min-width: 0 }
.bcard.hidden { visibility: hidden }
.banner { font-family: "Serif", Georgia, serif; font-size: calc(var(--u) * 11); line-height: .95; margin: 0; animation: swing .6s cubic-bezier(.3,1.6,.5,1) both }
.tvlb { list-style: none; margin: calc(var(--u) * 2) 0 0; padding: 0; display: grid; gap: calc(var(--u) * 1.2); width: min(90vw, calc(var(--u) * 90)) }
.tvlb li { display: flex; align-items: center; gap: .7em; background: rgba(0,0,0,.22); border-radius: .5em; padding: .45em .8em; font-size: calc(var(--u) * 3.6); font-weight: 700; animation: rise .4s both }
.tvlb li .s { margin-left: auto; color: var(--sun) }
.tvlb li.win { background: var(--cream); color: var(--ink) }
.tvlb li.win .s { color: var(--ink) }
.recap { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--u) * 40), 1fr)); gap: calc(var(--u) * 1) calc(var(--u) * 3); width: 100%; text-align: left; margin-top: calc(var(--u) * 3); font-size: calc(var(--u) * 2.3) }
.recap div b { display: block; font-family: "Serif", Georgia, serif; font-weight: 400; font-size: calc(var(--u) * 3.2); line-height: 1 }
.recap div span { opacity: .8; font-weight: 700 }
.twocol { display: grid; grid-template-columns: 1fr 1.4fr; gap: calc(var(--u) * 5); width: 100%; align-items: center }

/* TV landing: name, QR, a moving preview, the verb, More games. Nothing else. */
.landing { display: grid; grid-template-columns: 1fr 1.25fr; gap: calc(var(--u) * 6); align-items: center; width: 100%; height: 100% }
.landing .left { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 2.5) }
.landing .logo { width: min(100%, calc(var(--u) * 62)); height: auto }
.landing .qr { width: calc(var(--u) * 30); height: calc(var(--u) * 30); border-radius: calc(var(--u) * 1.4); box-shadow: 0 calc(var(--u) * .8) 0 var(--ink); border: calc(var(--u) * .4) solid var(--ink) }
.landing .join { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 1.2); color: var(--cream); text-decoration: none }
.landing .addr { font-size: calc(var(--u) * 3); font-weight: 700 }
.landing .verb { font-size: calc(var(--u) * 5); font-weight: 700; margin: 0 }
.landing .seated { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--u) * 1); font-size: calc(var(--u) * 2.6); min-height: calc(var(--u) * 5) }
.preview { position: relative; height: calc(var(--u) * 74); border-radius: calc(var(--u) * 2.4); background: var(--deeper); border: calc(var(--u) * .5) solid var(--ink); box-shadow: 0 calc(var(--u) * 1) 0 var(--ink); overflow: hidden; padding: calc(var(--u) * 4); display: flex; flex-direction: column; gap: calc(var(--u) * 1.6); text-align: left }
.preview .pc { font-family: "Serif", Georgia, serif; font-size: calc(var(--u) * 8); line-height: .9; margin: 0 0 calc(var(--u) * 1) }
.preview .pcard { display: flex; align-items: center; gap: calc(var(--u) * 1.4); padding: calc(var(--u) * 2.6) calc(var(--u) * 2.4); font-family: "Serif", Georgia, serif; font-size: calc(var(--u) * 4.6); line-height: 1; opacity: 0; transform: translateY(calc(var(--u) * 3)) }
.preview .pcard .v { margin-left: auto; font-family: "Grot", system-ui; font-weight: 700; font-size: calc(var(--u) * 3); background: var(--sun); border: .1em solid var(--ink); border-radius: .3em; padding: 0 .35em; opacity: 0; transform: scale(.4) }
.preview .pcard.on { opacity: 1; transform: none; transition: opacity .4s, transform .5s cubic-bezier(.2,1.3,.4,1) }
.preview .pcard .v.on { opacity: 1; transform: none; transition: opacity .3s, transform .4s cubic-bezier(.3,1.8,.5,1) }
.preview .pcard.win { background: var(--sun); transition: background .4s }
.backlink { position: fixed; left: calc(var(--u) * 3); bottom: calc(var(--u) * 2.5); color: var(--cream); font-weight: 700; font-size: calc(var(--u) * 2.6); text-decoration: none; padding: .3em .7em; border-radius: 999px; background: rgba(0,0,0,.25); z-index: 15 }
.backlink:focus { outline: .15em solid var(--sun) }
.soundbtn { position: fixed; right: calc(var(--u) * 2); bottom: calc(var(--u) * 2); border: 0; background: var(--ink); color: var(--cream); font-weight: 700; padding: .5em 1em; border-radius: 999px; font-size: calc(var(--u) * 2.2); z-index: 20 }
.rest, .leave { position: fixed; inset: 0; background: rgba(2,32,26,.93); display: grid; place-content: center; text-align: center; font-size: calc(var(--u) * 4); font-weight: 700; z-index: 60 }
.leavebox { background: var(--field); border: .12em solid var(--ink); border-radius: .5em; padding: 1em 1.4em; box-shadow: 0 .2em 0 var(--ink) }
.leavebox h2 { margin: 0 0 .7em; font-family: "Serif", Georgia, serif; font-weight: 400; font-size: 1.6em }
.leavebtns { display: flex; gap: .6em; justify-content: center }
.leavebtn { font: inherit; font-size: .8em; border: .1em solid var(--ink); border-radius: .4em; padding: .4em 1em; background: var(--cream); color: var(--ink); cursor: pointer }
.leavebtn:focus, .leavebtn.on { background: var(--coral); outline: .12em solid var(--sun) }
@media (max-aspect-ratio: 17/10) { body.tv { --u: 0.59vw } }
