/* Playround: Rounds and decks. Illustrated tarot, phone first. */
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --night: #1a1530; --night-2: #241d40; --night-3: #2f2752;
  --paper: #f3e7cf; --paper-2: #e8d8b6; --ink: #211b35; --muted: #5d5373;
  --gold: #e2a23b; --red: #cf4f2d; --blue: #2d4e93; --lilac: #9a8ec8; --lilac-2: #c4bce3; --teal: #2a857e; --rose: #d9667a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --card-w: min(88vw, 360px);
  --press: 0 3px 0 var(--ink);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse 100% 55% at 50% 0%, #3a2f6b 0%, rgba(58, 47, 107, 0) 70%) no-repeat fixed, var(--night);
  color: var(--paper); font: 16px/1.45 var(--sans); -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.display { font-family: var(--serif); font-weight: 400; }
.art-img, .back-img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* ---------- shell ---------- */
.app { max-width: 440px; margin: 0 auto; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; padding-top: env(safe-area-inset-top); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 6px; min-height: 58px; }
.logo-wrap { margin: 0; }
.logo { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 400 28px/1 var(--serif); letter-spacing: .01em; color: var(--paper); }
.logo:disabled { cursor: default; opacity: 1; }
.logo-mark { display: block; width: 34px; height: 34px; flex: none; margin-left: -3px; }
.players-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; min-height: 40px; cursor: pointer;
  background: var(--night-2); border: 1px solid var(--night-3); border-radius: 999px; color: var(--paper); font-size: 14px;
}
.room-code { font: 400 19px/1 var(--serif); letter-spacing: .14em; color: var(--gold); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(42, 133, 126, .25); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(42, 133, 126, 0); } }

.chips { display: inline-flex; }
.chip {
  display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--ink); border: 1.5px solid var(--ink); font: 700 12px/1 var(--sans);
}
.chips .chip + .chip { margin-left: -7px; }
.chips .chip:nth-child(4n+2), .room-status .chip:nth-child(4n+2), .member-list li:nth-child(4n+2) .chip { background: var(--rose); }
.chips .chip:nth-child(4n+3), .room-status .chip:nth-child(4n+3), .member-list li:nth-child(4n+3) .chip { background: var(--teal); color: var(--paper); }
.chips .chip:nth-child(4n+4), .room-status .chip:nth-child(4n+4), .member-list li:nth-child(4n+4) .chip { background: var(--lilac); }

main { min-height: 0; }
.view { height: 100%; }
.play-view, .view:has(> .lobby) { display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; padding: 4px 0 8px; }
.view:has(> .lobby) { display: flex; justify-content: center; }

.tabs { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; background: rgba(20, 16, 38, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--night-3); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; min-height: 54px; border: 0; background: none; cursor: pointer; color: var(--lilac); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tab[aria-current] { color: var(--gold); }
.tab-icon { width: 24px; height: 24px; }
.tab-icon svg { width: 100%; height: 100%; }

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 18px; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: var(--press);
  font-weight: 650; font-size: 16px; touch-action: manipulation; user-select: none; transition: transform .08s, box-shadow .08s;
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--night-3); box-shadow: none; }
.btn-link { background: none; border: 0; box-shadow: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 550; min-height: 44px; padding: 8px; }
.btn-link.danger { color: var(--rose); }
.btn[aria-pressed="true"] { background: var(--teal); color: var(--paper); }
.icon-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--night-3); background: var(--night-2); color: var(--paper); cursor: pointer; font-size: 15px; }
.icon-btn:disabled { opacity: .35; }
.field {
  width: 100%; min-height: 48px; padding: 12px 14px; font-size: 16px; color: var(--ink);
  background: #fbf4e4; border: 1.5px solid var(--ink); border-radius: 10px;
}
textarea.field { resize: vertical; min-height: 96px; line-height: 1.4; }
.field::placeholder { color: #a197b3; }
select.field { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 13px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }

/* ---------- the tarot card ---------- */
.deck-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--lilac); padding: 0 0 12px; }
.dots { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
ol.dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--night-3); }
ol.dots li.done { background: var(--lilac); }
ol.dots li.now { background: var(--gold); box-shadow: 0 0 0 3px rgba(226, 162, 59, .25); }

.stage { position: relative; width: var(--card-w); height: min(calc(var(--card-w) * 1.62), calc(100dvh - 220px)); min-height: 440px; perspective: 1400px; }
.stack-card { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; transform: translate(calc(var(--k) * 3px), calc(var(--k) * 5px)); filter: brightness(calc(1 - var(--k) * .2)); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.card3d { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .7, .2, 1), opacity .3s; }
.card3d.flipped { transform: rotateY(180deg); }
.card3d.leaving { transform: rotateY(180deg) translateX(115%) rotate(-10deg); opacity: 0; transition: transform .3s ease-in, opacity .3s ease-in; }
.face { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .4); }
.face.back { display: block; width: 100%; cursor: pointer; background: var(--ink); }
.face.front { transform: rotateY(180deg); color: var(--ink); }
.face.front.end { transform: none; }
.drawing { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: rgba(33, 27, 53, .9); color: var(--gold); border: 1px solid var(--gold); font: italic 400 18px/1 var(--serif); }

.card-frame {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 14px 16px 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8.5px var(--ink), inset 0 0 0 11px var(--paper), inset 0 0 0 12px var(--ink);
}
.card-frame::before, .card-frame::after { content: "✦"; position: absolute; top: 4px; color: var(--gold); font-size: 13px; line-height: 1; }
.card-frame::before { left: 5px; } .card-frame::after { right: 5px; }
.card-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 2px 4px 6px; }
.numeral { font: 400 24px/1 var(--serif); letter-spacing: .08em; text-align: center; grid-column: 2; }
.card-app { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-app.right { text-align: right; }
.art { flex: none; height: 24%; min-height: 92px; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.card-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 4px 10px; display: flex; flex-direction: column; gap: 12px; }
.card-body.center { justify-content: center; text-align: center; }
.name-plate { flex: none; display: flex; justify-content: center; padding: 8px 6px 4px; border-top: 1px solid var(--ink); position: relative; }
.name-plate::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--ink); }
.name-plate span { font: 400 21px/1.1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-align: center; }

.ask { margin: 0; font: 400 24px/1.15 var(--serif); }
.ask small { font: italic 400 18px var(--serif); color: var(--muted); }
.ask-big { font-size: 27px; }
.lead { margin: 0; font-size: 15px; color: var(--muted); }
.over { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hint { margin: 0; font: italic 400 19px var(--serif); color: var(--lilac-2); }
.reading { display: flex; align-items: center; gap: 10px; color: var(--muted); font: italic 400 20px/1 var(--serif); }
.reading::before, .reading::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .5; }

.under { display: flex; justify-content: center; align-items: center; gap: 10px; width: var(--card-w); padding-top: 16px; min-height: 66px; }
.under .btn { flex: 1; }
.under .btn-ghost { flex: 0 0 auto; }

.turn-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.room-status { margin-left: auto; display: inline-flex; gap: 3px; }
.room-status .chip { width: 22px; height: 22px; font-size: 10.5px; border-width: 1.2px; }
.room-status .chip.out { background: transparent !important; color: #a197b3; border-style: dashed; border-color: #a197b3; }
.waiting-body { text-align: center; }
.waiting-body .turn-head { text-align: left; margin-bottom: 14%; }
span.dots { display: inline-flex; gap: 5px; }
span.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 1.2s ease-in-out infinite; }
span.dots i:nth-child(2) { animation-delay: .2s; } span.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
span.dots.big { align-self: center; color: var(--muted); }
span.dots.big i { width: 8px; height: 8px; }

.burst { position: absolute; left: 50%; top: 40%; pointer-events: none; }
.burst i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--c); animation: burst .9s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes burst { to { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)); opacity: 0; } }

/* ---------- apps on the card ---------- */
.wheel-wrap { position: relative; width: min(50%, 176px); margin: 2px auto 0; aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 0 rgba(33, 27, 53, .9)); }
.pointer { position: absolute; left: 50%; top: -10px; z-index: 1; width: 22px; height: 26px; transform: translateX(-50%); background: var(--red); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.wheel-result { min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.wheel-result small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.result-word { font-size: 28px; line-height: 1.05; }

.tot { display: flex; flex-direction: column; gap: 8px; }
.tot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.tot-or { font: italic 400 17px var(--serif); color: var(--muted); }
.tot-side, .vote-btn { min-height: 46px; padding: 8px 10px; cursor: pointer; border: 1.5px solid var(--ink); border-radius: 10px; background: #fbf4e4; color: var(--ink); font-weight: 600; font-size: 15px; }
.tot-side[aria-pressed="true"], .vote-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.split { display: flex; flex-direction: column; gap: 4px; }
.split-bar { display: flex; min-height: 58px; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.split-a, .split-b { padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; overflow: hidden; }
.split-a { flex: calc(var(--a) + .01) 1 76px; background: var(--gold); }
.split-b { flex: calc(var(--b) + .01) 1 76px; background: var(--lilac-2); text-align: right; align-items: flex-end; border-left: 1.5px solid var(--ink); }
.split b { font-weight: 650; }
.split .chip { width: 22px; height: 22px; font-size: 10px; }
.badge { align-self: flex-start; font: italic 400 17px/1 var(--serif); color: var(--teal); }

.cloud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px; padding: 6px 0; }
.cloud-word { display: inline-flex; align-items: flex-start; gap: 2px; }
.cloud-word .display { font-size: calc(26px * var(--s)); line-height: 1; }
.cloud-word.italic .display { font-style: italic; }
.cloud-word sup { font-size: 11px; font-weight: 700; color: var(--muted); }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.star-pick { display: flex; justify-content: center; gap: 2px; }
.star-btn { width: 52px; height: 52px; padding: 5px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.star-btn svg { width: 100%; height: 100%; }
.rate-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.big-number { font-size: 56px; line-height: .9; }
.rate-avg .stars svg { width: 24px; height: 24px; }
.rate-list, .answers { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rate-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; font-size: 15px; padding-bottom: 8px; border-bottom: 1px dashed #c9b994; }
.rate-list q { grid-column: 1 / -1; font: italic 400 18px var(--serif); color: var(--muted); }
.answers li { padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fbf4e4; display: flex; flex-direction: column; gap: 2px; }
.answers b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.answers span { font: 400 20px/1.2 var(--serif); }

.awards { display: flex; flex-direction: column; gap: 14px; }
.award { border: 0; margin: 0; padding: 0; }
.award legend { font: 400 21px/1.2 var(--serif); padding: 0 0 6px; }
.vote-row { display: flex; flex-wrap: wrap; gap: 6px; }
.vote-btn { flex: 1 1 28%; }
.winners { display: flex; flex-direction: column; gap: 8px; }
.winner { display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fbf4e4; }
.winner-crown { width: 44px; height: 38px; flex: none; }
.winner-crown svg { width: 100%; height: 100%; display: block; }
.winner small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.winner b { display: block; font: 400 24px/1.1 var(--serif); }
.votes { font-size: 13px; color: var(--muted); }

/* ---------- home and lobby ---------- */
.home, .lobby { width: var(--card-w); display: flex; flex-direction: column; gap: 14px; padding: 6px 0 22px; align-self: start; }
.fan { position: relative; height: 210px; margin: 4px 0 6px; }
.fan .mini { position: absolute; left: 50%; top: 0; width: 112px; transform-origin: 50% 130%; }
.fan .mini:nth-child(1) { transform: translateX(-50%) rotate(-13deg) translateX(-30px); }
.fan .mini:nth-child(2) { transform: translateX(-50%) translateY(-8px); z-index: 1; }
.fan .mini:nth-child(3) { transform: translateX(-50%) rotate(13deg) translateX(30px); }
.home-title { margin: 0; text-align: center; font: 400 40px/1 var(--serif); }
.home-lead { margin: 0 0 4px; text-align: center; color: var(--lilac-2); }
.home label, .here h3, .builder legend, .builder h3, .form-row label { display: block; margin: 0 0 8px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.or { display: flex; align-items: center; gap: 12px; color: var(--lilac); font: italic 400 18px var(--serif); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--night-3); }
.join-row { display: flex; gap: 8px; }
.code-field { text-align: center; text-transform: uppercase; letter-spacing: .35em; font: 400 24px/1 var(--serif); padding-top: 10px; padding-bottom: 10px; }
.code-field::placeholder { letter-spacing: .35em; }
.error { margin: 0; color: var(--rose); font-weight: 600; }
.error:empty { display: none; }

.lobby-code {
  position: relative; padding: 22px 18px 18px; border-radius: 16px; text-align: center; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--paper); box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8.5px var(--ink), inset 0 0 0 11px var(--paper), inset 0 0 0 12px var(--ink), 0 18px 40px rgba(0, 0, 0, .4);
}
.room-code-big { font-size: 64px; line-height: .95; letter-spacing: .16em; margin-right: -.16em; }
.member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.member-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.member-list .chip { width: 32px; height: 32px; font-size: 13px; }
.arrive { animation: arrive .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes arrive { from { transform: translateX(-14px); opacity: 0; } }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--night-3); color: var(--lilac-2); }
.waiting { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--lilac-2); font: italic 400 18px var(--serif); }
.lobby-go { display: flex; flex-direction: column; gap: 4px; }
.lobby > .btn-link { align-self: center; color: var(--lilac-2); }

/* ---------- library ---------- */
#view-library { padding: 8px 18px 24px; overflow-y: auto; }
.lib-head h2 { margin: 6px 0 2px; font: 400 40px/1 var(--serif); }
.lib-head p { margin: 0 0 16px; color: var(--lilac-2); font-size: 14px; }
.lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.lib-item { display: flex; flex-direction: column; gap: 8px; }
.lib-open { display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 12px; }
.mini {
  position: relative; display: flex; flex-direction: column; gap: 5px; aspect-ratio: .6; padding: 10px 10px 6px; border-radius: 12px; color: var(--ink);
  background: var(--paper); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--ink), inset 0 0 0 8px var(--paper), inset 0 0 0 9px var(--ink), 0 10px 24px rgba(0, 0, 0, .35);
}
.mini-num { text-align: center; font: 400 16px/1 var(--serif); letter-spacing: .08em; padding-top: 3px; }
.mini-art { flex: 1; min-height: 0; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; }
.mini .name-plate { padding: 5px 2px 1px; }
.mini .name-plate::before { top: 2px; }
.mini .name-plate span { font-size: 13.5px; letter-spacing: .1em; line-height: 1.05; }
.mini-app { text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 3px; }
.deck-toggle { min-height: 40px; cursor: pointer; border-radius: 999px; border: 1px solid var(--night-3); background: var(--night-2); color: var(--lilac-2); font-weight: 600; font-size: 14px; }
.deck-toggle.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.make { width: 100%; aspect-ratio: .6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; cursor: pointer; border-radius: 12px; border: 1.5px dashed var(--lilac); background: rgba(36, 29, 64, .6); color: var(--paper); }
.make b { font: 400 24px/1.1 var(--serif); }
.make small { color: var(--lilac-2); font-size: 13px; text-align: center; }
.make-plus { font: 400 56px/1 var(--serif); color: var(--gold); }
.foot { text-align: center; color: var(--lilac); margin-top: 18px; }

/* ---------- sheets ---------- */
.sheet {
  width: min(440px, 100vw); max-width: 100vw; max-height: 88dvh; margin: auto auto 0; padding: 0 18px 18px; overflow-y: auto;
  border: 0; border-radius: 20px 20px 0 0; background: var(--night-2); color: var(--paper); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
}
.sheet.full { height: 100dvh; max-height: 100dvh; margin: 0 auto; padding-bottom: 0; border-radius: 0; }
.sheet::backdrop { background: rgba(10, 6, 22, .7); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 10px; background: var(--night-2); }
.sheet-head h2 { margin: 0; font: 400 30px/1 var(--serif); }
.sheet .lead, .sheet .summary, .sheet .note { color: var(--lilac-2); }
.stack { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.note { margin: 0; font-size: 13px; }
.card-detail { display: grid; grid-template-columns: 136px 1fr; gap: 16px; align-items: start; }
.mini-big { width: 136px; }
.detail-copy { display: flex; flex-direction: column; gap: 8px; }
.detail-copy p { margin: 0; }
.app-name { font: 400 24px/1.1 var(--serif); color: var(--gold); }
.summary { font-size: 14px; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.sheet .btn-link { color: var(--paper); }
.sheet .btn-link.danger { color: var(--rose); }

.builder { display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.builder-preview { display: flex; justify-content: center; }
.mini-preview { width: 128px; }
.builder fieldset { border: 0; margin: 0; padding: 0; }
.app-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-bottom: 8px; cursor: pointer; border-radius: 12px; background: var(--night-3); border: 1.5px solid transparent; }
.app-option input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
.app-option b { font: 400 21px/1.1 var(--serif); }
.app-option small { display: block; color: var(--lilac-2); font-size: 13px; margin-top: 2px; }
.app-option:has(input:checked) { border-color: var(--gold); }
.art-row { display: flex; flex-wrap: wrap; gap: 10px; }
.art-option { position: relative; cursor: pointer; }
.art-option input { position: absolute; inset: 0; opacity: 0; }
.art-swatch { display: block; width: 58px; height: 80px; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--ink); outline: 2px solid transparent; outline-offset: 2px; }
.art-option input:checked + .art-swatch { outline-color: var(--gold); }
.art-option input:focus-visible + .art-swatch { outline-color: var(--paper); }
.form-pair { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.app-fields { display: flex; flex-direction: column; gap: 14px; }
.builder-save { position: sticky; bottom: 0; margin: 0 -18px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--night-2); border-top: 1px solid var(--night-3); }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 10; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 650; border: 1.5px solid var(--ink); box-shadow: var(--press);
  transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- desktop ---------- */
@media (min-width: 700px) {
  .app { padding-top: 22px; }
  .sheet:not(.full) { margin: auto; border-radius: 20px; }
  .sheet.full { height: min(92dvh, 900px); margin: auto; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ================= v4 ================= */
.top-right { display: flex; align-items: center; }
.btn-small { min-height: 40px; padding: 7px 14px; font-size: 15px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.center { text-align: center; }
.account-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.chip.big { width: 38px; height: 38px; font-size: 15px; }
.solo-tag { font: italic 400 19px/1 var(--serif); color: var(--gold); }
.close-x { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--night-3); font-size: 13px; }

/* home */
.home-view { padding: 0 18px 32px; }
.home { width: auto; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; padding: 4px 0 0; align-self: auto; }
.home-side { display: flex; flex-direction: column; gap: 18px; }
.home-main { display: flex; flex-direction: column; gap: 30px; }
.hero { padding-top: 6px; }
.home-title { text-align: left; font-size: 44px; }
.home-lead { text-align: left; margin-top: 6px; }
.section-title { margin: 0; font: 400 30px/1.05 var(--serif); color: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.section-head .lead, .join-card .lead { color: var(--lilac-2); font-size: 14px; }
.join-card {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 18px; border-radius: 18px;
  background: linear-gradient(180deg, var(--night-2), rgba(36, 29, 64, .55)); border: 1px solid var(--night-3);
}
.join-card .join-row .btn { flex: none; padding-inline: 22px; }
.form-row label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.deck-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
.deck-tile { position: relative; width: 100%; display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; background: none; color: var(--paper); cursor: pointer; text-align: left; border-radius: 12px; }
.deck-tile-name { font: 400 22px/1.1 var(--serif); margin-top: 10px; }
.deck-tile small { color: var(--lilac-2); font-size: 13px; line-height: 1.3; }
.deck-tile .added { position: absolute; top: 34px; right: 16px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: var(--teal); color: var(--paper); font-size: 11px; font-weight: 700; border: 1.5px solid var(--ink); }
.new-deck { aspect-ratio: auto; min-height: 100%; justify-content: center; align-items: center; text-align: center; padding: 18px 12px; border: 1.5px dashed var(--lilac); background: rgba(36, 29, 64, .6); }
.new-deck .deck-tile-name { margin-top: 0; }
.deck-cover { position: relative; padding: 0 8px 8px 0; }
.deck-cover .mini { position: relative; z-index: 1; }
.deck-cover .mini-num { font: 700 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.deck-under { position: absolute; inset: 8px 0 0 8px; border-radius: 12px; background: var(--paper-2); border: 1.5px solid var(--ink); }
.deck-under.two { inset: 4px 4px 4px 4px; background: #d8c59c; }
.deck-tile:hover .deck-cover .mini, .deck-tile:focus-visible .deck-cover .mini { transform: translateY(-3px); }
.deck-cover .mini { transition: transform .15s; }

/* deck sheet */
.deck-intro { display: grid; grid-template-columns: 124px 1fr; gap: 16px; align-items: start; }
.deck-cover-big { width: 124px; }
.deck-intro .app-name { font-size: 19px; }
.strip-title { margin: 4px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.card-strip { list-style: none; margin: 0 -18px; padding: 2px 18px 14px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.card-strip li { flex: 0 0 104px; scroll-snap-align: start; }
.card-strip .mini .name-plate span { font-size: 11.5px; }
.card-strip .mini-app { font-size: 8.5px; }
.note.center { text-align: center; }
.btn-google { background: #fff; color: #1f1f1f; border-color: var(--ink); }
.g-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #1f1f1f; font: 700 14px/1 var(--sans); }
.account-row { display: flex; gap: 12px; align-items: center; }
.account-row b { display: block; font: 400 24px/1.1 var(--serif); }
.account-row small { color: var(--lilac-2); }

/* lobby */
.lobby { padding-top: 8px; }
.lobby-deck { margin: 0; display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--night-3); }
.lobby-deck span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lobby-deck b { font: 400 22px/1 var(--serif); font-weight: 400; }
.lobby-deck small { margin-left: auto; color: var(--lilac-2); }

/* deck editor and picker */
.edit-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.edit-card { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--night-3); }
.edit-thumb { width: 44px; height: 58px; flex: none; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--ink); }
.edit-copy { flex: 1; min-width: 0; }
.edit-copy b { display: block; font: 400 19px/1.15 var(--serif); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-copy small { color: var(--lilac-2); font-size: 13px; }
.edit-btns { display: flex; gap: 4px; }
.edit-btns .icon-btn { width: 36px; height: 36px; font-size: 14px; }
.edit-cards .empty { padding: 16px; border-radius: 12px; border: 1.5px dashed var(--night-3); color: var(--lilac-2); text-align: center; font-size: 14px; }
.pick-group h3 { margin: 10px 0 12px; font: 400 26px/1 var(--serif); }
.lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.builder-save.two { display: grid; grid-template-columns: auto 1fr; }

/* ---------- new card types ---------- */
.seat-line { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.score-line { margin: 0; text-align: center; font: italic 400 19px/1.2 var(--serif); color: var(--teal); }
.guess-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guess { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fbf4e4; }
.guess-text { font: 400 20px/1.2 var(--serif); }
.guess-who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.guess-who b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.guess-who small, .answers small { font-size: 13px; color: var(--muted); }
small.right { color: var(--teal); font-weight: 700; }
small.wrong { color: var(--red); }
.guess .vote-btn { min-height: 40px; font-size: 14px; flex: 1 1 22%; }
.truth { text-align: center; padding: 6px 0; }
.truth-word { font-size: 40px; line-height: 1; color: var(--red); }
.answers li.marked { position: relative; padding-right: 100px; }
.answers li.ok { background: #e3f1e7; }
.mark-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 650; font-size: 13px; cursor: pointer; }
.mark-btn[aria-pressed="true"] { background: var(--teal); color: var(--paper); }
.answers li.marked > small.right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.verdict { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fbf4e4; text-align: center; }
.verdict.won { background: var(--gold); }
.verdict-word { font-size: 44px; line-height: 1; }
.verdict small { color: var(--ink); font-size: 14px; }
.scale-range { width: 100%; height: 44px; accent-color: var(--red); cursor: pointer; }
.scale-ends { display: flex; justify-content: space-between; gap: 12px; font: italic 400 18px/1.1 var(--serif); color: var(--muted); }
.scale-ends span:last-child { text-align: right; }
.scale-track { position: relative; height: 92px; margin: 8px 12px 0; border-bottom: 2px solid var(--ink); }
.scale-track::before, .scale-track::after { content: ""; position: absolute; bottom: -7px; width: 2px; height: 12px; background: var(--ink); }
.scale-track::before { left: 0; } .scale-track::after { right: 0; }
.scale-chip { position: absolute; left: calc(var(--x) * 100%); bottom: calc(6px + var(--y) * 24px); transform: translateX(-50%); }
.scale-avg { position: absolute; left: calc(var(--x) * 100%); bottom: -12px; width: 0; height: 0; transform: translateX(-50%); border: 9px solid transparent; border-top: 0; border-bottom: 12px solid var(--red); }
.secret { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; border-radius: 12px; background: var(--ink); color: var(--paper); text-align: center; }
.secret small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.secret-word { font-size: 34px; line-height: 1.05; }
.timer { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.timer-face { font-size: 76px; line-height: .9; font-variant-numeric: tabular-nums; }
.timer-label { min-height: 20px; font-weight: 700; color: var(--teal); }
.timer-row { display: flex; gap: 10px; width: 100%; }
.timer-row .btn-gold { flex: 1; }
.timer-row .btn-ghost { color: var(--ink); border-color: var(--ink); }
.ask.center { text-align: center; }
.breath-wrap { display: grid; place-items: center; height: 170px; }
.breath { width: 150px; height: 150px; border-radius: 50%; transform: scale(.55); transition: transform 4s ease-in-out;
  background: radial-gradient(circle at 40% 35%, #fbf4e4, var(--lilac-2) 55%, var(--teal)); border: 2px solid var(--ink); box-shadow: 0 0 0 10px rgba(42, 133, 126, .15), 0 0 0 22px rgba(42, 133, 126, .07); }
.breath-status { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.breath-word { font-size: 34px; line-height: 1; }
.breath-count { color: var(--muted); }
.fortune { font-style: italic; }
.card-body.center { align-items: stretch; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  body.at-home .app { max-width: 1080px; }
  .home { max-width: none; display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; padding-top: 20px; }
  .home-side { position: sticky; top: 24px; }
  .deck-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
}

.chip.c1 { background: var(--rose); } .chip.c2 { background: var(--teal); color: var(--paper); } .chip.c3 { background: var(--lilac); }
.chip.mine { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.card-strip { scroll-padding-inline: 18px; }
.act { gap: 9px; }
.act .secret { padding: 10px 12px; }
.act .secret-word { font-size: 28px; }
.act .timer-face { font-size: 50px; }
.act .timer-label { min-height: 0; }
.act .btn { min-height: 44px; }

/* Rounds history */
.round-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.round-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; cursor: pointer; text-align: left; color: var(--paper);
  border-radius: 14px; border: 1px solid var(--night-3); background: var(--night-2); }
.round-row:hover { border-color: var(--lilac); }
.round-art { width: 42px; height: 56px; flex: none; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--ink); }
.round-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.round-copy b { font: 400 21px/1.1 var(--serif); font-weight: 400; }
.round-copy small { color: var(--lilac-2); font-size: 13px; }
.round-row .chips .chip { width: 24px; height: 24px; font-size: 11px; }
.deck-section > .btn-small { margin-top: 10px; }
.round-meta { margin: 0; color: var(--gold); font-size: 14px; font-weight: 600; }
.member-list.inline { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }
.member-list.inline .chip { width: 26px; height: 26px; font-size: 12px; }
.recap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.recap-card { color: var(--ink); background: var(--paper); border-radius: 14px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink); }
.recap-head { display: flex; gap: 10px; align-items: center; }
.recap-art { width: 34px; height: 46px; flex: none; border-radius: 5px; overflow: hidden; border: 1.5px solid var(--ink); }
.recap-head small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.recap-head b { font: 400 22px/1.1 var(--serif); font-weight: 400; }
.recap-body { display: flex; flex-direction: column; gap: 10px; }
.recap-body .lead { color: var(--muted); }
.recap-line { margin: 0; font: 400 20px/1.25 var(--serif); }
.recap-body .btn-link { display: none; }

.recap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 10px 4px 8px; border-radius: 12px; background: var(--night-3); }
.stat-n { font-size: 34px; line-height: 1; color: var(--gold); }
.stat small { color: var(--lilac-2); font-size: 12px; }
.highlights ul { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(226, 162, 59, .18), rgba(217, 102, 122, .12)); border: 1px solid rgba(226, 162, 59, .45); }
.highlights li { display: flex; gap: 10px; align-items: baseline; font: 400 19px/1.25 var(--serif); }
.hl-icon { flex: none; width: 22px; text-align: center; color: var(--gold); font-family: var(--sans); font-size: 16px; }

/* ================= effects: holofoil and tilt (fx.js) ================= */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.holo { --rx: 0deg; --ry: 0deg; }
.sheen, .glare, .sweep { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; transform: translateZ(2px); }
/* The rainbow foil: colour-dodge brightens the light inks (gold, paper) into shifting colour and leaves the dark ink alone. */
.sheen {
  background-image:
    repeating-linear-gradient(115deg, #ff6f91 0%, #ffc76b 7%, #8cf5b0 14%, #6bc4ff 21%, #b693ff 28%, #ff6f91 35%),
    repeating-linear-gradient(25deg, rgba(255, 255, 255, .0) 0 3px, rgba(255, 255, 255, .22) 3px 4px);
  background-size: 400% 400%, 100% 100%;
  background-position: var(--mx) var(--my), 0 0;
  mix-blend-mode: color-dodge; opacity: .16;
  transition: opacity .35s, background-position .5s cubic-bezier(.2, .8, .2, 1);
  animation: holo-idle 7s ease-in-out infinite;
}
.glare {
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .18) 28%, rgba(20, 10, 40, .35) 95%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .35s;
}
.lit > .sheen, .lit .mini > .sheen { opacity: .3; animation: none; transition: opacity .2s, background-position .06s linear; }
.lit > .glare, .lit .mini > .glare { opacity: .75; }
@keyframes holo-idle { 0%, 100% { --mx: 18%; --my: 26%; } 50% { --mx: 82%; --my: 74%; } }

/* tilt */
.tilter { position: absolute; inset: 0; border-radius: 16px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tilter.lit { transition: transform .08s linear; }
.tilter:not(.is-flipped) .face.back { touch-action: none; }
.tilter.is-flipped { --rx: 0deg !important; --ry: 0deg !important; }
.tilter.is-flipped > .sheen { opacity: 0; animation: none; }
.tilter.is-flipped.lit > .glare { opacity: .28; }
.tilter.rare > .sheen { opacity: .3; }
.tilter.rare.lit > .sheen { opacity: .55; }
.deck-cover.tilt { transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.deck-cover.tilt.lit { transition: transform .08s linear; }
.deck-cover .mini { overflow: hidden; }
.deck-cover .mini > .sheen, .deck-cover .mini > .glare { border-radius: 12px; }
.lobby-code > .sheen { opacity: .1; }
.lobby-code.lit > .sheen { opacity: .3; }

/* foil ink on the card's numeral, title and corner stars */
.face.front .numeral, .face.front .name-plate span, .tilter .card-frame::before, .tilter .card-frame::after {
  background: linear-gradient(100deg, var(--ink) 0 28%, #7b3fa6 38%, #2d5fa3 46%, #24857b 54%, #a8761c 62%, var(--ink) 72% 100%);
  background-size: 260% 100%; background-position: calc(100% - var(--mx)) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tilter .card-frame::before, .tilter .card-frame::after { background-image: linear-gradient(100deg, #e2a23b 0 30%, #ff8fb1 42%, #8fd8ff 52%, #b9f5a0 60%, #e2a23b 72% 100%); }

/* one shine across the card when its reading opens */
.sweep {
  background: linear-gradient(105deg, transparent 38%, rgba(255, 244, 214, .9) 47%, rgba(170, 220, 255, .75) 52%, rgba(255, 170, 210, .5) 55%, transparent 62%);
  background-size: 300% 100%; mix-blend-mode: overlay; animation: sweep 1.2s cubic-bezier(.3, .6, .3, 1) forwards; transform: translateZ(3px);
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* Light cards (deck covers, the end card): overlay keeps the rainbow visible where colour-dodge would wash it out to white. */
.deck-cover .mini > .sheen, .tilter.rare > .sheen { mix-blend-mode: overlay; opacity: .22; }
.deck-cover.lit .mini > .sheen, .tilter.rare.lit > .sheen { opacity: .6; }

/* Turning a card: it lands showing its whole illustration, then the art crops up to its window and the content fades in. */
.face.front .art { transition: height .8s cubic-bezier(.65, 0, .25, 1), min-height .8s cubic-bezier(.65, 0, .25, 1), border-radius .8s; }
.face.front .card-body { transition: opacity .45s ease .4s, transform .45s ease .4s; }
.face.front.intro .art { height: calc(100% - 76px); min-height: 0; border-radius: 4px; }
.face.front.intro .card-body { flex: 0 0 0; overflow: hidden; }
.face.front.intro .art .art-img { object-position: 50% 50% !important; }
.face.front.intro .card-body { opacity: 0; transform: translateY(14px); padding-top: 0; padding-bottom: 0; transition: none; }
.face.front.intro .card-top .card-app { opacity: 0; }
.face.front .card-top .card-app { transition: opacity .4s ease .5s; }
.face.front .art-img { transition: object-position .8s cubic-bezier(.65, 0, .25, 1); }
/* The title plate shows while the card is all art, then folds away with the crop so the content gets the room. */
.face.front:not(.end) .name-plate { max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; opacity: 0; overflow: hidden;
  transition: max-height .8s cubic-bezier(.65, 0, .25, 1), padding .8s cubic-bezier(.65, 0, .25, 1), opacity .4s; }
.face.front.intro:not(.end) .name-plate { max-height: 60px; padding-top: 8px; padding-bottom: 4px; border-top-width: 1px; opacity: 1; transition: none; }

/* pass one phone */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pass-names { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: p; }
.pass-names li { display: flex; gap: 8px; align-items: center; }
.pass-names li::before { counter-increment: p; content: counter(p); width: 22px; flex: none; text-align: center; font: 400 22px/1 var(--serif); color: var(--gold); }
.pass-names .icon-btn { width: 44px; height: 44px; }
.handoff-body { text-align: center; }
.handoff { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.chip.huge { width: 64px; height: 64px; font-size: 26px; border-width: 2px; }
.handoff-name { font-size: 38px; line-height: 1; }

/* ---------- live Rounds: connection and people away ---------- */
.center-home { align-items: center; text-align: center; padding-top: 30vh; }
.live.off { background: var(--lilac); box-shadow: none; animation: none; opacity: .6; }
.chip.away { opacity: .45; }
.away-tag { background: transparent; border: 1px dashed var(--night-3); }
/* a shared recap opened from a link */
.recap-page { max-width: 560px; margin: 0 auto; padding: 8px 18px 40px; display: flex; flex-direction: column; gap: 14px; }
.recap-page .sheet-head { position: static; background: none; padding: 6px 0 0; }
.recap-page h2 { margin: 0; font: 400 38px/1 var(--serif); }
.recap-page .lead { color: var(--lilac-2); }
.share-row { display: flex; gap: 8px; align-items: center; }
.share-row .field { font-size: 14px; min-height: 44px; }
