/* Style copied from the Canva cards "Who Poisoned the Eggnog?" (design DAHYqiyMMpU) */
:root {
  --bg: #0e1b13; --bg-2: #17271c; --bg-deep: #08130c;
  --gold: #b29362; --gold-2: #c9a86a; --gold-dim: #b28e58;
  --title: #e6cf9f; --cream: #e2d2ad; --muted: #b8ab8f;
  --garnet: #8f2632; --garnet-deep: #5e1520;
  --line: rgba(178,147,98,.55); --line-soft: rgba(178,147,98,.28);
  --serif: "Libre Baskerville", Georgia, serif;
  --display: "Playfair Display", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 16'%3E%3Cg fill='none' stroke='%23b29362' stroke-width='1'%3E%3Cpath d='M22 2l6 6-6 6-6-6z'/%3E%3Cpath d='M22 5l3 3-3 3-3-3z' fill='%23b29362'/%3E%3Cpath d='M1 8c4-4 8-4 12 0M43 8c-4-4-8-4-12 0'/%3E%3C/g%3E%3C/svg%3E");
  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23b29362' stroke-width='1.1'%3E%3Cpath d='M4 56V14c0-6 4-10 10-10h42'/%3E%3Cpath d='M10 56V20c0-6 4-10 10-10h36'/%3E%3Cpath d='M4 4c8 0 14 6 14 14M14 4c0 6 4 10 10 10'/%3E%3Ccircle cx='18' cy='18' r='2.2' fill='%23b29362'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .7 0 0 0 0 .5 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { background: var(--bg-deep); }
html, body { margin: 0; }
body {
  min-height: 100vh; color: var(--cream); font-family: var(--serif); font-size: 16px; line-height: 1.6;
  background: var(--grain), radial-gradient(120% 60% at 50% 0%, var(--bg-2), var(--bg) 55%, var(--bg-deep));
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
/* thin gold page frame with corner ornaments, like every card */
body::before { content: ""; position: fixed; inset: 7px; border: 1px solid var(--line-soft); pointer-events: none; z-index: 20;
  background: var(--corner) top left / 40px no-repeat, var(--corner) top right / 40px no-repeat,
              var(--corner) bottom left / 40px no-repeat, var(--corner) bottom right / 40px no-repeat; }
body::before { -webkit-mask: none; }
#app { max-width: 540px; margin: 0 auto; padding: 0 22px 120px; position: relative; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 .9em; }
.center { text-align: center; }
.gold { color: var(--gold); }
.dim, .muted { color: var(--muted); }
.caps { font-family: var(--serif); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin: 0; line-height: 1.5; }
.caps.strong { font-weight: 700; color: var(--gold-2); margin: 2px 0 20px; }
.title { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--title); font-size: 2.9rem; line-height: 1.05; text-align: center; margin: 14px 0 12px; }
.title.sm { font-size: 2.1rem; }
.name { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--cream); font-size: 2.5rem; line-height: 1.05; text-align: center; margin: 18px 0 10px; }
.name.sm { font-size: 1.5rem; margin: 6px 0 0; }

/* gold dividers */
.rule { display: flex; align-items: center; gap: 10px; margin: 10px auto; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent); }
.rule span { width: 34px; height: 13px; background: var(--orn) center / contain no-repeat; flex: none; }
.rule.thin span { display: none; }
.rule.thin { gap: 0; }
.rule.short { max-width: 62%; }

/* framed boxes */
.frame { position: relative; display: block; width: 100%; text-align: left; color: var(--cream); font: inherit;
  background: rgba(13,23,18,.55); border: 1px solid var(--line); padding: 22px 20px 16px; margin: 0 0 18px; border-radius: 2px; }
.frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line-soft); pointer-events: none; }
.label { display: flex; gap: 10px; align-items: center; font-family: var(--serif); font-weight: 700; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-dim); margin: 6px 0 6px; }
.label i { font-style: normal; color: var(--garnet); font-size: .9rem; letter-spacing: 0; }
.frame .label ~ p { padding-left: 24px; }
.frame p { font-size: .95rem; }

.holly { display: block; width: 92px; height: auto; }
.holly.center { margin: 8px auto; }
.holly.seal { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); z-index: 2; }
.holly.side { width: 110px; flex: none; }

/* buttons */
.btn { display: block; width: 100%; padding: 15px 18px; margin: 12px 0; cursor: pointer; border-radius: 2px;
  font-family: var(--serif); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-2); background: transparent; border: 1px solid var(--line); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--line-soft); }
.btn.primary { color: var(--title); background: linear-gradient(180deg, #7b1f2b, var(--garnet-deep)); border-color: var(--gold);
  box-shadow: inset 0 0 0 3px #6a1a25, inset 0 0 0 4px rgba(201,168,106,.6), 0 8px 24px rgba(0,0,0,.4); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .35; cursor: default; }
.link { background: none; border: 0; color: var(--gold); font-family: var(--serif); font-size: .85rem; letter-spacing: .06em; padding: 12px 0; cursor: pointer; display: block; margin: 8px auto; }
.link.back { margin: 0; }

/* home = the cover card */
.home { margin: 0 -22px; }
.cover { position: relative; height: 58vh; min-height: 340px; background: radial-gradient(80% 70% at 50% 40%, #3a3122, var(--bg)); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--bg)); }
.cover-text { padding: 0 22px 40px; margin-top: -18px; position: relative; text-align: center; }
.cover-text .caps.gold { color: var(--gold); padding: 2px 0; }
.meta { color: var(--muted); font-size: 1.05rem; margin: 10px 0 4px; }
.lying { font-style: italic; color: var(--gold); margin: 6px 0; font-size: .95rem; }
.cover-text .btn:first-of-type { margin-top: 28px; }
.lang { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--gold); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 18px; }
.lang select { background: var(--bg-deep); color: var(--cream); border: 1px solid var(--line); padding: 7px 10px; font-family: var(--serif); font-size: .9rem; letter-spacing: 0; text-transform: none; border-radius: 2px; }

/* forms */
.form { padding-top: 26px; }
.form.center { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
label.caps { display: block; color: var(--gold); margin: 6px 0 16px; }
input { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; text-transform: none;
  color: var(--cream); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 2px; outline: none; }
input:focus { border-color: var(--gold-2); }
.code-input { text-transform: uppercase; letter-spacing: .4em; font-family: var(--display); font-size: 1.6rem; text-align: center; }
.error { color: #e3a2a2; font-size: .9rem; }
.spinner { width: 40px; height: 40px; border: 1px solid var(--line-soft); border-top-color: var(--gold-2); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* lobby */
.lobby { padding-top: 34px; text-align: center; }
.lobby > .muted { font-size: .92rem; }
.code-big { font-family: var(--display); font-style: italic; font-size: 3.6rem; letter-spacing: .25em; padding-left: .25em; color: var(--title); line-height: 1.2; }
.lobby .frame { margin-top: 22px; text-align: left; }
.guests { list-style: none; padding: 0 0 0 24px; margin: 4px 0 10px; }
.guests li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--display); font-style: italic; font-size: 1.2rem; }
.guests li:last-child { border: 0; }
.tag { font-family: var(--serif); font-style: normal; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--title);
  background: var(--garnet); padding: 3px 7px; margin-left: 8px; vertical-align: middle; border-radius: 1px; }
.tag.soft { background: transparent; border: 1px solid var(--line); color: var(--gold); }
.status { color: var(--gold); font-style: italic; font-size: .85rem; }

/* game header and tabs */
.bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; margin: 0 -22px; padding: 16px 26px 12px;
  background: rgba(13,23,18,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.timer { font-family: var(--display); font-style: italic; font-size: 1.25rem; letter-spacing: .02em; color: var(--title); text-transform: none; font-variant-numeric: tabular-nums; }
.timer.late { color: #e3a2a2; }
.tabs { display: flex; margin: 16px 0 22px; border-bottom: 1px solid var(--line-soft); }
.tab { flex: 1; padding: 10px 2px 11px; background: none; border: 0; color: var(--muted); cursor: pointer; position: relative;
  font-family: var(--serif); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.tab.on { color: var(--title); }
.tab.on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--gold); }
.tab i { font-style: normal; display: inline-block; margin-left: 6px; background: var(--garnet); color: var(--title); font-size: .62rem; letter-spacing: 0; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; }
.host-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 22px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg-deep) 35%); }
.host-bar .btn { max-width: 496px; margin: 0 auto; }

/* portraits */
.portrait { position: relative; overflow: hidden; flex: none; background: radial-gradient(80% 80% at 50% 35%, #3b2c20, var(--bg-deep)); }
.portrait::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-style: italic; color: var(--gold); }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.portrait.wide { width: calc(100% + 16px); margin: 0 -8px; aspect-ratio: 1019 / 766; } .portrait.wide::before { font-size: 4rem; }
.portrait.wide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(transparent, rgba(20,35,27,.9)); }
.portrait.thumb { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-soft); } .portrait.thumb::before { font-size: 1.1rem; }
.portrait.thumb.big { width: 110px; height: 110px; margin: 10px auto; } .portrait.thumb.big::before { font-size: 2rem; }
.portrait.card { width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; } .portrait.card::before { font-size: 2rem; }

/* role = character card */
.role { padding-bottom: 6px; }
.quote { padding-bottom: 46px; margin-bottom: 44px; text-align: center; }
.quote::before { inset: 4px; }
blockquote { margin: 10px 0 0; font-style: italic; font-size: 1.02rem; line-height: 1.55; color: var(--cream); }
.facts p { margin-bottom: 1.1em; }
.tasks { list-style: none; margin: 0; padding: 0 0 0 24px; font-size: .92rem; }
.tasks li { margin-bottom: .5em; }
.tasks li.now { color: var(--title); }
.tasks li.now::before { content: "▸ "; color: var(--garnet); }
.tasks li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(178,147,98,.5); }
.secret { cursor: pointer; min-height: 110px; padding: 26px 20px; }
.secret .caps { margin-bottom: 8px; }
.secret.is-killer { background: linear-gradient(180deg, rgba(110,26,37,.9), rgba(60,14,22,.95)); border-color: var(--gold-2); }
.secret.is-killer .label i { color: var(--title); }
.rule-text { font-style: italic; color: var(--gold-2); }

/* story */
.story p { font-size: .98rem; }
.story > p.first::first-letter { font-family: var(--display); float: left; font-size: 3.4em; line-height: .85; padding: 6px 8px 0 0; color: var(--gold-2); font-style: italic; }
.note { margin: 4px 0 16px; }
.hint p { padding-left: 24px; }
.cast { list-style: none; padding: 0; margin: 6px 0 0; }
.cast li { display: flex; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.cast li:last-child { border: 0; }
.cast b { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--cream); }
.cast span { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 2px 0; }
.cast em { font-size: .85rem; color: var(--muted); }
.plain { padding-left: 42px; margin: 4px 0 6px; font-size: .92rem; }
.plain li { margin-bottom: .6em; }
.plain li::marker { color: var(--garnet); }

/* evidence = evidence card */
.evidence { padding: 4px 0 6px; }
.ev-img { margin: 0 0 18px; border-radius: 15% / 12%; overflow: hidden; aspect-ratio: 898 / 1115; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-title { font-size: 2.3rem; color: var(--cream); margin: 8px 0; }
.ev-body { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.ev-text { font-size: 1.02rem; line-height: 1.65; color: var(--cream); margin: 0; flex: 1; }
.evidence:not(:has(.ev-img)) .ev-text { text-align: center; }
.evidence.hand .ev-text { font-family: var(--hand); font-size: 1.75rem; line-height: 1.25; color: var(--title); text-align: center; }
.evidence .tag { margin-left: 6px; }
.sep { margin: 26px 0; }
.empty { text-align: center; color: var(--gold); font-style: italic; margin-top: 50px; }

/* vote */
.vote { padding-top: 26px; }
.suspects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.suspect { background: rgba(13,23,18,.55); border: 1px solid var(--line-soft); padding: 8px 8px 12px; color: var(--cream); cursor: pointer; border-radius: 12px; font-family: var(--serif); }
.suspect b { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.05rem; margin-top: 8px; }
.suspect span { font-size: .78rem; color: var(--muted); }
.suspect.on { border-color: var(--gold-2); box-shadow: 0 0 0 1px var(--gold-2), 0 0 26px rgba(143,38,50,.55); background: rgba(94,21,32,.45); }

/* reveal */
.reveal { padding-top: 26px; }
.reveal .portrait.wide { margin-top: 16px; }
.solution { font-size: 1rem; margin: 0; padding-bottom: 26px; }
.reveal .frame:has(.holly.seal) { margin-bottom: 46px; }
.bar-row { display: grid; grid-template-columns: 1fr 1.1fr 22px; gap: 10px; align-items: center; margin: 8px 0 8px 24px; font-size: .85rem; }
.bar-track { height: 6px; background: var(--line-soft); overflow: hidden; }
.bar-track div { height: 100%; background: var(--gold); }
.bar-row.hit span { color: var(--title); }
.bar-row.hit .bar-track div { background: var(--garnet); }
.reveal .frame > p:last-child { padding-left: 24px; margin-top: 12px; }
.frame p.caps { font-size: .66rem; padding-left: 0; margin-bottom: 4px; }
.holly.seal { bottom: -28px; }
.story p.caps { font-size: .66rem; line-height: 1.7; }
.bar { padding: 18px 54px 12px; }

/* smaller type, less wall of text (21.10 feedback) */
body { font-size: 14.5px; line-height: 1.6; }
.story p { font-size: .9rem; }
.frame p, .facts p { font-size: .88rem; }
blockquote { font-size: .95rem; }
.tasks, .plain { font-size: .86rem; }
.ev-text { font-size: .95rem; }
.title { font-size: 2.5rem; } .title.sm { font-size: 1.8rem; }
.name { font-size: 2.2rem; } .ev-title { font-size: 2rem; }
.story-img { margin: 0 -22px 4px; height: 230px; position: relative; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.story-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, var(--bg)); }
.scene-label { margin: 6px 0 10px; }
.scene-break { margin: 18px 0 10px; }
.qr { width: 190px; margin: 14px auto 6px; background: var(--cream); padding: 8px; border: 1px solid var(--gold); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-soft); }
.qr svg { display: block; width: 100%; height: auto; }
.qr svg path, .qr svg rect[fill="black"] { fill: var(--bg-deep); }
.bar { letter-spacing: .12em; font-size: .66rem; } .bar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ornaments must never touch text (21.10 feedback): no fixed screen frame;
   corner ornaments live inside framed boxes, in padding that text never enters */
body::before { content: none; display: none; }
.frame { padding: 30px 30px 22px; }
.frame::after { content: ""; position: absolute; inset: 3px; pointer-events: none;
  background: var(--corner) top left / 18px no-repeat;
  -webkit-mask: none; }
.frame::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg transform='' fill='none' stroke='%23b29362' stroke-width='2'%3E%3Cpath d='M4 56V14c0-6 4-10 10-10h42'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23b29362'/%3E%3C/g%3E%3C/svg%3E") top left / 16px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg transform='matrix(-1 0 0 1 60 0)' fill='none' stroke='%23b29362' stroke-width='2'%3E%3Cpath d='M4 56V14c0-6 4-10 10-10h42'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23b29362'/%3E%3C/g%3E%3C/svg%3E") top right / 16px no-repeat,
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg transform='matrix(1 0 0 -1 0 60)' fill='none' stroke='%23b29362' stroke-width='2'%3E%3Cpath d='M4 56V14c0-6 4-10 10-10h42'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23b29362'/%3E%3C/g%3E%3C/svg%3E") bottom left / 16px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg transform='matrix(-1 0 0 -1 60 60)' fill='none' stroke='%23b29362' stroke-width='2'%3E%3Cpath d='M4 56V14c0-6 4-10 10-10h42'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23b29362'/%3E%3C/g%3E%3C/svg%3E") bottom right / 16px no-repeat;
}
.frame > .corner { display: none; }
.quote { padding-bottom: 62px; }
.guests .x { float: right; background: none; border: 0; color: var(--gold); font-size: 1.2rem; cursor: pointer; padding: 0 4px; line-height: 1.4; }

/* guidance (after first test game) */
.bar-right { display: flex; align-items: center; gap: 12px; }
.help { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); background: none; color: var(--gold-2);
  font-family: var(--display); font-style: italic; font-size: 1rem; line-height: 1; cursor: pointer; padding: 0; }
.tab { font-size: .6rem; letter-spacing: .14em; }
.now-head { padding-top: 6px; }
.now-head .title { margin-top: 6px; }
.steps { margin: 4px 0 4px; padding-left: 46px; font-size: .9rem; }
.steps li { margin-bottom: .55em; padding-left: 4px; }
.steps li::marker { color: var(--gold); font-family: var(--display); font-style: italic; }
.ask { border-color: var(--gold); background: rgba(94,21,32,.35); }
.ask-text { font-family: var(--display); font-style: italic; font-size: 1.25rem !important; line-height: 1.35; color: var(--title); padding-left: 24px; margin-bottom: .6em; }
.small { font-size: .8rem !important; }
.frame .small { padding-left: 24px; }
.fresh-title { margin: 24px 0 12px; }
.mini-ev h3 { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--cream); margin: 0 0 6px; }
.mini-ev p { margin: 0; }
.mini-ev.hand p { font-family: var(--hand); font-size: 1.45rem !important; line-height: 1.25; color: var(--title); }
.saw { padding-left: 42px; margin: 0 0 1.1em; font-size: .88rem; }
.saw li { margin-bottom: .5em; }
.saw li::marker { color: var(--garnet); }
body.locked { overflow: hidden; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8,19,12,.94); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 22px; overflow-y: auto; }
.ov-card { width: 100%; max-width: 440px; text-align: center; }
.ov-card .title { margin: 14px 0 10px; }
.ov-body { font-size: 1rem; line-height: 1.65; color: var(--cream); margin: 10px 0 18px; }
.dots { display: flex; gap: 8px; justify-content: center; margin: 6px 0 14px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-soft); }
.dots i.on { background: var(--gold-2); }
.secret-line { color: var(--title); font-style: italic; }
.tab { white-space: nowrap; }
.tab i { position: absolute; top: -4px; right: 2px; margin: 0; }
.mission { color: var(--title); font-style: italic; }
.poll { display: grid; gap: 8px; margin-top: 8px; }
.poll-row { display: grid; grid-template-columns: 44px 1fr 70px 18px; gap: 10px; align-items: center; background: none; border: 1px solid transparent;
  border-radius: 30px; padding: 4px 10px 4px 4px; color: var(--cream); font-family: var(--serif); font-size: .85rem; text-align: left; cursor: pointer; }
.poll-row .portrait.thumb { width: 40px; height: 40px; }
.poll-row.on { border-color: var(--gold); background: rgba(94,21,32,.45); }
.poll-row b { color: var(--gold-2); font-weight: 400; text-align: right; }
.access-input { text-transform: uppercase; letter-spacing: .12em; }
.hint-line { display: block; margin-top: 6px; font-size: .78rem; letter-spacing: 0; text-transform: none; color: var(--muted); font-style: italic; }

/* ---------- Death at the Premiere (Riviera 1962): turquoise, navy and gold ---------- */
body.theme-riviera {
  --bg: #0b2b33; --bg-2: #0f3d47; --bg-deep: #061a20;
  --gold: #d8b469; --gold-2: #f0cf85; --gold-dim: #d8b469;
  --title: #f6e3b0; --cream: #f3ead2; --muted: #a9c4c6;
  --garnet: #8f1d2c; --garnet-deep: #6e1220;
  --line: rgba(216,180,105,.55); --line-soft: rgba(216,180,105,.25);
  --display: "Playfair Display", Georgia, serif;
}
.theme-riviera .frame { background: rgba(6,32,38,.6); }
.theme-riviera .title, .theme-riviera .name { font-style: normal; }
.theme-riviera .holly { display: none; }
.picker .pick-card { display: flex; gap: 14px; align-items: center; width: 100%; margin: 0 0 16px; padding: 10px; background: rgba(13,23,18,.55);
  border: 1px solid var(--line); color: var(--cream); font: inherit; text-align: left; border-radius: 3px; cursor: pointer; }
.picker .pick-card img { width: 96px; height: 120px; object-fit: cover; object-position: 50% 10%; border: 1px solid var(--gold); }
.picker .pick-card b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--title); line-height: 1.1; }
.picker .pick-card i { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.rv-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 14px; }
.rv-thumb { background: #f6ecd2; color: #2a2420; border: 0; border-left: 5px solid #8f1d2c; padding: 8px 10px; text-align: left; font: inherit; font-size: .82rem; line-height: 1.3; border-radius: 2px; }
.rv-thumb b { display: block; color: #8f1d2c; font-size: .75rem; letter-spacing: .1em; }
.rv-rolecard { border-radius: 10px; overflow: hidden; background: #0e808c; margin: 14px 0 18px; border: 2px solid #f6d98e; }
.rv-rolecard .portrait.wide { margin: 0; border: 0; }
.rv-rolecard .rib { padding: 6px 18px 16px; text-align: center; color: #fff8e8; border-top: 3px solid #f6d98e; }
.rv-rolecard .rib i { font-family: "Playfair Display", serif; color: #f6d98e; font-size: 1.1rem; }
.rv-rolecard h2 { font-family: "Playfair Display", serif; font-size: 2rem; line-height: 1.05; margin: 2px 0; text-transform: uppercase; letter-spacing: .04em; }
.rv-rolecard .as { color: #f6d98e; font-style: italic; margin: 0 0 8px; }
.rv-rolecard .wear { font-size: .82rem; color: #dff1f2; margin: 0; }
.rv-rolecard .wear b { color: #f6d98e; letter-spacing: .12em; font-size: .72rem; }
.rv-act { position: relative; background: #fbf6ec; color: #2a2420; border-radius: 10px; overflow: hidden; margin: 0 0 18px; border: 2px solid #10233a; }
.rv-act .flap { background: #10233a; color: #f6d98e; text-align: center; padding: 12px 10px 22px; }
.rv-act .flap b { display: block; font-family: "Playfair Display", serif; font-size: 1.6rem; letter-spacing: .12em; }
.rv-act .flap span { font-size: .8rem; color: #e8dcc2; font-style: italic; }
.rv-act.a2 { border-color: #0e808c; } .rv-act.a2 .flap { background: #0e808c; }
.rv-act.a3 { border-color: #8f1d2c; } .rv-act.a3 .flap { background: #8f1d2c; }
.rv-act .in { padding: 14px 16px 12px; }
.rv-act .in p { font-size: .93rem; color: #2a2420; padding-left: 0 !important; }
.rv-act .label { color: #0e808c; } .rv-act .label i { color: #8f1d2c; }
.rv-act.sealed { opacity: .92; } .rv-act.sealed .flap { padding-bottom: 66px; }
.rv-act .wax, .rv-seal { width: 46px; height: 46px; border-radius: 50%; background: #8f1d2c; border: 3px solid #6e1220; color: #f6d98e;
  display: flex; align-items: center; justify-content: center; font-family: "Playfair Display", serif; font-style: italic; font-size: 1.3rem; }
.rv-act .wax { position: absolute; left: 50%; bottom: 10px; margin-left: -23px; }
.rv-seal { margin: 14px auto; }
.rv-mission { background: #10233a; color: #fff8e8; padding: 9px 12px; margin: 10px 0 8px; font-size: .92rem; border-radius: 2px; }
.rv-mission.a2 { background: #0e808c; } .rv-mission.a3 { background: #8f1d2c; }
.rv-mission b { color: #f6d98e; letter-spacing: .12em; font-size: .75rem; }
.rv-truthbox { border: 1.5px dashed #8f1d2c; padding: 8px 10px; font-size: .88rem; margin: 6px 0; }
.rv-truthbox b { color: #8f1d2c; letter-spacing: .1em; font-size: .72rem; }
.rv-tix { background: #f6d98e; border-left: 12px solid #c9a24a; padding: 8px 12px; margin: 8px 0; font-family: var(--hand); font-size: 1.15rem; color: #2a2420; }
.rv-k { font-family: "Playfair Display", serif; color: #8f1d2c; font-size: 1.5rem; text-align: center; margin: 2px 0 8px; }
.rv-truth { width: 100%; background: #8f1d2c; color: #fff; border: 0; padding: 10px; font: inherit; font-size: .9rem; border-radius: 3px; margin-bottom: 8px; }
.rv-list { padding-left: 20px; margin: 4px 0 10px; } .rv-list li { margin: 0 0 6px; font-size: .92rem; }
.rv-francs .fr-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 8px 0; }
.rv-francs .fr-b { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.6rem; }
.rv-francs .fr-n { font-family: "Playfair Display", serif; font-size: 2.6rem; color: var(--title); min-width: 40px; text-align: center; }
.rv-ev .rv-prop { display: block; margin: 10px 0; }
.rv-ev .rv-prop img { width: 100%; display: block; border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.rv-script { text-align: left; max-height: 42vh; overflow: auto; background: rgba(0,0,0,.2); padding: 12px 14px; margin: 8px 0; border: 1px solid var(--line-soft); }
.rv-script p { font-size: .95rem; }

.rv-ev .ev-text { white-space: pre-line; }

/* landing page (before the game list) */
.landing .land-covers { position: relative; height: 46vh; min-height: 300px; max-height: 460px; display: flex; justify-content: center; align-items: center; padding-top: 30px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, #3a3122, transparent 70%); }
.landing .land-covers img { width: 44%; max-width: 210px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border: 1px solid var(--gold); box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.landing .land-covers img:first-child { transform: rotate(-6deg) translateX(14px); }
.landing .land-covers img:last-child { transform: rotate(6deg) translateX(-14px) translateY(10px); z-index: 1; }
.landing .cover-text { margin-top: 6px; }
.land-lead { font-family: var(--display); font-style: italic; color: var(--title); font-size: 1.3rem; line-height: 1.35; margin: 14px 8px 18px; }
.land-points { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 420px; text-align: left; }
.land-points li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.land-points li:last-child { border-bottom: 0; }
.land-points li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 10px; background: var(--orn) center / contain no-repeat; }

/* back button at the top of the start screens */
.topback { position: absolute; top: 16px; left: 18px; z-index: 5; background: rgba(8,19,12,.72); border: 1px solid var(--line); color: var(--gold-2);
  font-family: var(--serif); font-size: .78rem; letter-spacing: .06em; padding: 8px 14px; border-radius: 2px; cursor: pointer; }
.home:not(.picker) { position: relative; }
.topback.inline { position: static; display: inline-block; margin: 18px 0 0 22px; }
