:root {
  --ink: #0E0E10; --panel: #17171B; --panel2: #26262C; --line: #34343C; --line2: #4A4A55;
  --paper: #F4F1EA; --paper2: #E9E4D8; --yellow: #F5C518; --red: #E8452C;
  --t1: #F4F1EA; --t2: #D9D4C7; --t3: #B8B3A8; --dim: #5A5A66;
  --accent: var(--yellow); --bg: var(--ink);
  --head: 'Anton', Impact, sans-serif; --mono: 'Special Elite', 'Courier New', monospace;
}
body[data-theme="conspiracy"] {
  --bg: #040906; --panel: #0C100E; --panel2: #101814; --line: #2C3631; --line2: #3A4540;
  --accent: #3DFF7A; --red: #FF3B3B; --t1: #E8ECEA; --t2: #C3CBC7; --t3: #98A39D; --dim: #5E6863;
  --head: 'Chakra Petch', 'Arial Black', sans-serif; --mono: 'JetBrains Mono', 'Courier New', monospace;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
body[data-theme="conspiracy"] #app { font-family: 'JetBrains Mono', monospace; }
body[data-theme="conspiracy"] h1 { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 40px; line-height: .95; color: #fff; text-shadow: 3px 0 rgba(255,59,59,.75), -2px 0 rgba(61,255,122,.3); }
body[data-theme="conspiracy"] .btn { background: #101814; border-color: #3A4540; font-family: 'Chakra Petch', sans-serif; font-weight: 700; letter-spacing: 2px; }
body[data-theme="conspiracy"] .btn.primary { background: #101814; color: #3DFF7A; border-color: #3DFF7A; text-shadow: 0 0 12px rgba(61,255,122,.35); box-shadow: 0 0 24px rgba(61,255,122,.2); }
body[data-theme="conspiracy"] .btn.primary::before { content: '> '; }
body[data-theme="conspiracy"] input[type=text], body[data-theme="conspiracy"] textarea { background: #0A110D; color: #fff; border: 2px solid #2C3631; font-family: 'JetBrains Mono', monospace; font-size: 17px; }
body[data-theme="conspiracy"] input:focus, body[data-theme="conspiracy"] textarea:focus { outline: none; border-color: #3DFF7A; }
body[data-theme="conspiracy"] .card, body[data-theme="conspiracy"] .forum-thread { background: rgba(12,16,14,.96); border: 2px solid #2C3631; }
body[data-theme="conspiracy"] .mega { font-family: 'Chakra Petch', sans-serif; font-weight: 700; text-shadow: 0 0 12px rgba(61,255,122,.35); }
body[data-theme="conspiracy"] .step { color: #FF6B6B; }
.cx-bar { display: flex; align-items: center; justify-content: space-between; margin: -4px -20px 0; padding: 0 18px 12px; border-bottom: 2px solid #FF3B3B; }
.cx-bar b { font-family: 'Chakra Petch', sans-serif; font-size: 24px; color: #3DFF7A; letter-spacing: 2px; text-shadow: 3px 0 rgba(255,59,59,.75), -2px 0 rgba(61,255,122,.3); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--t1); font-family: 'Inter', system-ui, sans-serif; }
#app { min-height: 100vh; min-height: 100dvh; padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin: 0 auto; }
button { font: inherit; color: inherit; cursor: pointer; }
.top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--t3); text-transform: uppercase; }
.clock { font-family: 'Anton', sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--accent); }
.clock.urgent { color: var(--red); }
.step { font-size: 13px; font-weight: 600; letter-spacing: 3px; color: var(--t3); text-transform: uppercase; }
h1 { margin: 4px 0 0; font-family: var(--head); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: 1px; }
body[data-theme="conspiracy"] h1 { font-weight: 600; font-size: 32px; letter-spacing: 0; }
.big-title { font-size: 64px; line-height: .9; } .big-title span { color: var(--accent); }
p { margin: 0; line-height: 1.45; }
.lead { font-size: 16px; color: var(--t2); }
.small { font-size: 13px; color: var(--t3); line-height: 1.45; }
.label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--t3); text-transform: uppercase; }
.label .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
input[type=text], textarea { width: 100%; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); padding: 14px 16px; font-family: var(--mono); font-size: 19px; -webkit-appearance: none; }
body[data-theme="conspiracy"] input[type=text], body[data-theme="conspiracy"] textarea { background: var(--panel2); color: var(--t1); border: 1px solid var(--line2); font-size: 17px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.35; }
input:focus, textarea:focus { outline: 3px solid var(--accent); }
.btn { min-height: 60px; width: 100%; border: 2px solid var(--line2); background: transparent; color: var(--t1); font-family: var(--head); font-size: 22px; letter-spacing: 2px; padding: 0 18px; }
body[data-theme="conspiracy"] .btn { font-weight: 600; font-size: 18px; letter-spacing: 0; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-size: 26px; }
.btn.small { min-height: 46px; font-size: 16px; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; }
.btn:disabled { opacity: .4; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.err { color: var(--red); font-weight: 600; min-height: 20px; }
.card { background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.photo { width: 100%; max-height: 42vh; object-fit: contain; background: #000; display: block; }
.chart { background: repeating-linear-gradient(0deg, var(--panel) 0 46px, var(--panel2) 46px 48px); padding: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--panel2); padding: 6px 12px; font-size: 14px; font-weight: 600; }
.chip.me { background: var(--accent); color: var(--ink); } .chip.off { opacity: .45; }
.center { text-align: center; align-items: center; justify-content: center; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.mega { font-family: var(--head); font-size: 56px; line-height: .95; color: var(--accent); }

/* Photos */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; background: var(--panel2); border: 3px solid transparent; padding: 0; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.thumb.sel { border-color: var(--accent); }
.thumb.used img { opacity: .35; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.75); color: #fff; border: 0; font-size: 18px; line-height: 30px; padding: 0; }
.thumb .tag { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; }
.upload { position: relative; display: flex; align-items: center; justify-content: center; min-height: 60px; border: 2px dashed var(--line2); font-weight: 800; font-size: 17px; text-align: center; padding: 10px; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; }
.progress { font-size: 14px; color: var(--accent); font-weight: 600; min-height: 18px; }
.meter { height: 8px; background: var(--panel2); } .meter i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* Cases to vote on */
.case { text-align: left; background: var(--paper); color: var(--ink); border: 4px solid transparent; padding: 10px; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.case img { width: 100%; max-height: 46vh; object-fit: contain; background: #000; display: block; }
.case b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 20px; line-height: 1.1; display: block; }
.case span { font-family: 'Special Elite', monospace; font-size: 14px; line-height: 1.35; display: block; margin-top: 4px; }
.case.mine { opacity: .45; } .case.picked { border-color: var(--red); }
body[data-theme="conspiracy"] .case { background: var(--panel); color: var(--t1); border: 2px solid var(--line); }
body[data-theme="conspiracy"] .case b { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 18px; }
body[data-theme="conspiracy"] .case span { font-family: 'JetBrains Mono', monospace; color: var(--t2); font-size: 13px; }
body[data-theme="conspiracy"] .case.picked { border-color: var(--accent); }
.cat { display: flex; flex-direction: column; gap: 8px; }
.cat h2 { margin: 8px 0 0; font-size: 18px; letter-spacing: 1px; color: var(--accent); }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.board li { display: flex; justify-content: space-between; background: var(--panel); padding: 12px 14px; font-weight: 600; }
.board li.me { outline: 2px solid var(--accent); }
.board b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 20px; letter-spacing: 1px; }
.gain { font-family: 'Anton', sans-serif; font-size: 52px; color: var(--accent); line-height: 1; }
.rule { border-left: 4px solid var(--accent); padding: 8px 12px; font-size: 14px; color: var(--t2); background: var(--panel); }
.rule.red { border-color: var(--red); }
.forum-thread { background: var(--panel); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.forum-thread b { font-size: 19px; } .forum-thread .meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--t3); }
#toast { position: fixed; left: 16px; right: 16px; bottom: 20px; background: var(--red); color: #fff; padding: 14px; font-weight: 600; z-index: 9; text-align: center; }
.conn { position: fixed; top: 0; left: 0; right: 0; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 6px; z-index: 10; }
.cv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cv-btn { min-height: 48px; border: 2px solid #3A4540; background: #0A110D; color: #E8ECEA; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1px; padding: 0 4px; }
.cv-btn.on.funny { background: #3DFF7A; color: #04130A; border-color: #3DFF7A; } .cv-btn.on.believable { background: #E8F5EC; color: #04130A; } .cv-btn.on.unhinged { background: #C4161C; border-color: #FF3B3B; color: #fff; }
.cv-btn:disabled:not(.on) { opacity: .35; }
/* Unhinged Olympics look for joining and the home screen */
body[data-theme="hub"] { --bg: #EFE3C8; --panel: #F6EDD8; --panel2: #E6D6B4; --line: #221D18; --line2: #221D18; --accent: #B83A22; --t1: #221D18; --t2: #3A3229; --t3: #5A4F43; --head: 'League Spartan', 'Arial Black', sans-serif; font-family: 'Barlow Condensed', sans-serif; }
body[data-theme="hub"] #app { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; }
body[data-theme="hub"] h1 { font-family: 'League Spartan', sans-serif; font-weight: 900; letter-spacing: 0; }
body[data-theme="hub"] .big-title span { color: #B83A22; }
body[data-theme="hub"] .lead { font-size: 19px; }
body[data-theme="hub"] input[type=text] { background: #F6EDD8; color: #221D18; border: 3px solid #221D18; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 22px; }
body[data-theme="hub"] input:focus { outline: 3px solid #2D4C8C; }
body[data-theme="hub"] .btn { border: 3px solid #221D18; box-shadow: 4px 4px 0 #221D18; font-family: 'League Spartan', sans-serif; font-weight: 900; letter-spacing: .02em; background: #F6EDD8; color: #221D18; }
body[data-theme="hub"] .btn.primary { background: #B83A22; color: #EFE3C8; }
body[data-theme="hub"] .card { background: #F6EDD8; border: 3px solid #221D18; }
body[data-theme="hub"] .chip { background: #F6EDD8; border: 2px solid #221D18; } body[data-theme="hub"] .chip.me { background: #E2A23B; color: #221D18; }
body[data-theme="hub"] .upload { border-color: #221D18; } body[data-theme="hub"] .progress { color: #236663; } body[data-theme="hub"] .meter i { background: #236663; }
body[data-theme="hub"] .step { color: #5A4F43; }
.uo-word { font-family: 'League Spartan', sans-serif; font-size: 40px; line-height: 1; display: inline-flex; flex-direction: column; gap: 4px; transform: rotate(-3deg); align-self: flex-start; margin: 6px 0 4px 4px; color: #221D18; }
.uo-w1 { font-weight: 900; font-size: 1.1em; text-shadow: .04em .035em 0 #B83A22; }
.uo-w2 { background: #221D18; color: #EFE3C8; font-weight: 800; font-size: .4em; letter-spacing: .42em; padding: .25em 0 .15em .5em; text-align: center; }
/* Intro on phones */
.intro-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.intro-list li { display: flex; gap: 14px; background: var(--panel); padding: 14px; align-items: flex-start; }
.intro-list li > span { flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--bg); font-family: var(--head); font-size: 22px; }
.intro-list b { font-family: var(--head); font-size: 22px; line-height: 1.1; display: block; } .intro-list p { margin-top: 4px; font-size: 16px; color: var(--t2); }
.leader-tools { margin-top: 28px; padding-top: 14px; border-top: 2px dashed var(--line2); display: flex; flex-direction: column; gap: 8px; }
/* Photo previews: show instantly, then ✓ added / failed */
.thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb .tag { left: 0; right: 0; bottom: 0; text-align: center; padding: 4px 2px; font-size: 11px; }
.thumb .tag.ok { background: rgba(35,130,70,.9); }
.thumb .tag.up { background: rgba(0,0,0,.75); }
.thumb.up img { opacity: .6; }
.thumb.fail { border-color: #E8452C; cursor: pointer; } .thumb .tag.bad { background: #E8452C; }
#toast.good { background: #236663; }
.needs { border: 3px solid var(--red); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); }
.needs.ok { border-color: var(--accent); }
.needs-big { font-family: var(--head); font-size: 28px; color: var(--red); line-height: 1; }
/* Trivia Thief phones */
body[data-theme="trivia"] { --bg: #0B0E1C; --panel: #141830; --panel2: #1D2240; --line: #2A2F55; --line2: #3A4070; --accent: #FFC93C; --red: #FF5D73; --t1: #F4F1EA; --t2: #D5D7EA; --t3: #A9ADCB; --head: 'Black Ops One', sans-serif; background-image: linear-gradient(rgba(79,195,247,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(79,195,247,.07) 1px, transparent 1px); background-size: 30px 30px; }
body[data-theme="trivia"] h1, body[data-theme="trivia"] .mega { font-family: 'Black Ops One', sans-serif; font-weight: 400; }
body[data-theme="trivia"] .btn { font-family: 'Black Ops One', sans-serif; border-radius: 6px; }
body[data-theme="trivia"] .btn.primary { box-shadow: 0 5px 0 #9C7A1E; }
.tt-mug { display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: #0B0E1C; font-family: 'Black Ops One', sans-serif; flex-shrink: 0; }
.tt-ptop { display: flex; justify-content: space-between; align-items: center; }
.tt-pme { display: flex; align-items: center; gap: 10px; } .tt-pme b { display: block; font-size: 16px; } .tt-pme span { font-size: 12px; font-weight: 700; color: var(--t3); }
.tt-pclock { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 2px solid var(--accent); border-radius: 4px; padding: 6px 12px; }
.tt-pclock span { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--t3); } .tt-pclock b { font-family: 'Black Ops One', sans-serif; font-size: 22px; color: var(--accent); }
.tt-qcard { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.tt-qcard span { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--t3); } .tt-qcard b { font-size: 20px; line-height: 1.25; }
.tt-opts { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tt-opt { flex: 1; min-height: 72px; display: flex; align-items: center; gap: 14px; color: #0B0E1C; border: none; border-radius: 6px; padding: 0 16px; font-size: 22px; font-weight: 800; text-align: left; }
.tt-shape { width: 44px; height: 44px; border-radius: 50%; background: #0B0E1C; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tt-pbtn { min-height: 90px; border: none; border-radius: 8px; color: #0B0E1C; font-family: 'Black Ops One', sans-serif; font-size: 26px; box-shadow: 0 6px 0 rgba(0,0,0,.4); }
.tt-locked { background: var(--accent); color: #0B0E1C; font-family: 'Black Ops One', sans-serif; font-size: 22px; padding: 6px 14px; border-radius: 4px; }
.tt-targets { display: flex; flex-direction: column; gap: 8px; }
.tt-tgt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; background: linear-gradient(180deg, #262B4E, #171A33); border: 2px solid var(--line2); border-radius: 8px; color: var(--t1); text-align: left; }
.tt-tgt b { flex: 1; font-size: 19px; } .tt-tgt span { font-size: 13px; font-weight: 700; color: var(--t3); }
.tt-tgt:active { border-color: var(--red); }
.gain.neg { color: var(--red); }
/* Mind Meld Duel phones */
body[data-theme="meld"] { --bg: #07080F; --panel: #11131F; --panel2: #1A1D2E; --line: #23263A; --line2: #2A2F47; --accent: #FFE15A; --red: #FF5C7A; --t1: #F2F3F8; --t2: #C9CCDA; --t3: #9AA0B8; --head: 'Unbounded', sans-serif; }
body[data-theme="meld"] h1, body[data-theme="meld"] .mega { font-family: 'Unbounded', sans-serif; font-weight: 900; letter-spacing: 0; }
body[data-theme="meld"] .mega { font-size: 40px; } body[data-theme="meld"] .mega.red { color: var(--red); }
body[data-theme="meld"] .btn { font-family: 'Unbounded', sans-serif; font-weight: 800; border-radius: 18px; letter-spacing: 0; }
body[data-theme="meld"] input[type=text] { background: #11131F; color: #F2F3F8; border: 3px solid #FFE15A; border-radius: 16px; font-family: 'Unbounded', sans-serif; font-size: 24px; text-align: center; }
.mm-pav { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #07080F; font-family: 'Unbounded', sans-serif; font-weight: 800; }
.mm-ppair { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 26px; }
.mm-ppair .a { color: #3BA4FF; } .mm-ppair .b { color: #FF8A2A; } .mm-ppair span { color: #9AA0B8; }
.mm-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mm-bb { min-height: 80px; border-radius: 18px; background: #11131F; border: 2px solid #2A2F47; color: #F2F3F8; font-family: 'Unbounded', sans-serif; font-size: 32px; font-weight: 800; }
.mm-bb.never { font-size: 18px; } .mm-bb:active { background: #FFE15A; color: #07080F; }
.mm-vote { min-height: 110px; border-radius: 22px; font-family: 'Unbounded', sans-serif; font-size: 30px; font-weight: 900; border: 3px solid; }
.mm-vote.legit { background: #0C2A20; border-color: #39E0A0; color: #39E0A0; } .mm-vote.cheap { background: #2E0F17; border-color: #FF5C7A; color: #FF5C7A; } .mm-vote:disabled { opacity: .35; }
/* No orphan words: buttons and headings wrap in balanced lines, text never leaves one word alone on its last line. */
button, h1, h2, h3, .mega, .btn, .step, label, .needs-big { text-wrap: balance; }
p, .lead, .small, .err, li, .rule { text-wrap: pretty; }
/* Yearbook phones */
body[data-theme="yearbook"] { --bg: #EFE6D2; --panel: #FBF6EA; --panel2: #E6D9BE; --line: #A89A80; --line2: #2A2118; --accent: #5B1A1E; --red: #A3261E; --t1: #2A2118; --t2: #3D3326; --t3: #5E4E3A; --head: 'Playfair Display', serif; font-family: 'Libre Caslon Text', serif; }
body[data-theme="yearbook"] #app { font-family: 'Libre Caslon Text', serif; }
body[data-theme="yearbook"] h1, body[data-theme="yearbook"] .mega { font-family: 'Playfair Display', serif; font-weight: 900; letter-spacing: 0; }
body[data-theme="yearbook"] .mega { color: #5B1A1E; font-size: 38px; }
body[data-theme="yearbook"] .step { font-family: 'Special Elite', monospace; letter-spacing: 1px; }
body[data-theme="yearbook"] .btn { font-family: 'Playfair Display', serif; font-weight: 900; border-color: #2A2118; color: #2A2118; }
body[data-theme="yearbook"] .btn.primary { background: #5B1A1E; border-color: #5B1A1E; color: #EFE6D2; box-shadow: 0 4px 0 #3A0F12; }
body[data-theme="yearbook"] textarea { background-color: #FBF6EA; background-image: repeating-linear-gradient(transparent 0 35px, #B9CBE0 35px 36px); font-family: 'Patrick Hand', cursive; font-size: 24px; line-height: 36px; color: #1F3A93; border: 2px solid #2A2118; padding: 0 12px; }
body[data-theme="yearbook"] .card { background: #FBF6EA; border: 2px solid #A89A80; }
.yb-ppic { border: 4px solid #FBF6EA; box-shadow: 0 2px 6px rgba(0,0,0,.25); overflow: hidden; transform: rotate(-3deg); flex-shrink: 0; background-color: #CFC4AE; background-image: radial-gradient(#7E705A 1px, transparent 1.5px); background-size: 6px 6px; }
.yb-pabout { display: flex; align-items: center; gap: 16px; }
.yb-psent { background: #FBF6EA; border: 2px solid #2A2118; padding: 14px 16px; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.yb-pblank { font-family: 'Patrick Hand', cursive; font-size: 23px; color: #1F3A93; border-bottom: 2px solid #1F3A93; }
.yb-pcount { display: flex; justify-content: space-between; font-family: 'Special Elite', monospace; font-size: 13px; color: #5E4E3A; }
.yb-pvote { display: flex; align-items: center; gap: 14px; text-align: left; min-height: 96px; padding: 12px 16px; background-color: #FBF6EA; border: 3px solid #2A2118; box-shadow: 4px 4px 0 #2A2118; color: #1F3A93; }
.yb-pvote b { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 34px; color: #5B1A1E; } .yb-pvote span { font-family: 'Patrick Hand', cursive; font-size: 24px; line-height: 1.25; }
.yb-pvote:active { background: #5B1A1E; } .yb-pvote:active span, .yb-pvote:active b { color: #EFE6D2; }
.yb-psig { align-self: flex-end; font-size: 24px; color: #2A2118; }
.yb-hand { font-family: 'Patrick Hand', cursive; }
.nowrap { white-space: nowrap; }
.upload > span > .nowrap { display: block; font-weight: 600; font-size: 15px; margin-top: 2px; }
a.upload { color: inherit; text-decoration: none; }

/* New step: the screen slides in, and its parts follow one after another. */
#app.ph-in > * { animation: phIn .45s cubic-bezier(.2, .9, .3, 1.1) both; }
#app.ph-in > *:nth-child(2) { animation-delay: 60ms; } #app.ph-in > *:nth-child(3) { animation-delay: 120ms; } #app.ph-in > *:nth-child(4) { animation-delay: 180ms; } #app.ph-in > *:nth-child(n+5) { animation-delay: 240ms; }
@keyframes phIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
button:active, .btn:active { scale: .97; }
@media (prefers-reduced-motion: reduce) { #app.ph-in > * { animation: none; } }

/* Criminal Behavior: who the suspect is (another player). */
.suspect-tag { margin: 10px 0; padding: 12px 16px; border: 2px solid var(--accent, #F5C518); font-weight: 700; letter-spacing: .08em; font-size: 15px; text-align: center; }
.suspect-tag b { display: block; font-size: 30px; letter-spacing: .04em; color: var(--accent, #F5C518); }

/* Leader's "stop the game" options stay folded away until needed. */
details.leader-tools { margin-top: 36px; padding-top: 12px; border-top: 1px dashed var(--line2); display: block; }
details.leader-tools summary { cursor: pointer; color: var(--t3, #999); font-size: 15px; list-style: none; text-align: center; padding: 8px; }
details.leader-tools summary::-webkit-details-marker { display: none; }
details.leader-tools[open] { display: flex; flex-direction: column; gap: 8px; }

.suspect-tag { display: flex; align-items: center; gap: 14px; text-align: left; } .suspect-tag .sus-mug { border: 2px solid currentColor; flex-shrink: 0; }

/* Mind Meld: your partner */
.mm-mate { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 6px; } .mm-mate b { display: block; font-size: 26px; } .mm-mate small { font-size: 14px; opacity: .7; }

.needs-big.ok { color: #2f9e55; }

.watch-note { margin-top: 18px; font-size: 14px; opacity: .8; text-align: center; } .watch-note b { white-space: nowrap; }
