/* Case Race additions on top of style.css */
.banner { position: sticky; top: 0; z-index: 5; background: var(--red); color: #fff; text-align: center; padding: 6px; font-family: Elite, monospace; font-size: 14px; }
.banner[hidden] { display: none; }

.home h1 { font-size: 32px; }
.field { display: block; margin-top: 18px; font-family: Bebas, sans-serif; letter-spacing: .08em; color: #b9ab93; font-size: 16px; }
.field input, .field select, .join-row input {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: 18px Georgia, serif; border-radius: 3px;
  border: 2px solid #4a4035; background: var(--night-2); color: var(--paper);
}
.field input:focus, .join-row input:focus, .field select:focus { outline: none; border-color: var(--brass); }
.or { text-align: center; color: #7c705f; margin: 16px 0 4px; font-family: Elite, monospace; }
.join-row { display: flex; gap: 10px; }
.join-row input { margin: 0; text-transform: uppercase; letter-spacing: .3em; font-family: "Courier New", monospace; font-weight: bold; text-align: center; }
.join-row .btn { margin: 0; width: 40%; }
a.btn { text-align: center; text-decoration: none; }

.room-code { text-align: center; margin: 10px 0; }
.room-code span { display: block; font-family: Bebas, sans-serif; letter-spacing: .1em; color: #b9ab93; }
.room-code strong { font-family: "Courier New", monospace; font-size: 56px; letter-spacing: .25em; color: var(--brass); }
#copyLink { display: block; margin: 0 auto; }

.roster { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.roster li { display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); padding: 10px 12px; border-radius: 3px; font-size: 18px; }
.roster .dot, .scores .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.roster .tagx { margin-left: auto; font-family: Elite, monospace; font-size: 12px; color: var(--ink-soft); }
.roster li.away { opacity: .5; }

.timer { font-family: "Courier New", monospace; font-weight: bold; font-size: 20px; color: var(--paper); }
.timer.low { color: #ff6b5e; }
.case-title { font-family: DMSerif, Georgia, serif; font-weight: normal; font-size: 22px; margin: 10px 0 6px; }
.scores { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.scores li { display: flex; align-items: center; gap: 6px; background: var(--night-2); border: 1px solid #3a3229; padding: 3px 8px; border-radius: 12px; font-size: 13px; }
.scores li b { font-family: "Courier New", monospace; }
.scores li.away { opacity: .45; }
.scores li.me { border-color: var(--brass); }
.scores .acc { font-size: 11px; color: var(--brass); }

.words li { border-width: 2px; }
.words li .by { font-family: Georgia, serif; font-weight: normal; font-size: 11px; margin-left: 4px; text-decoration: none; display: inline-block; }

#accuseBox, .you-accused { margin-top: 16px; }
.you-accused { background: var(--paper); color: var(--ink); padding: 12px 14px; border-left: 4px solid var(--red); border-radius: 3px; }
.you-accused[hidden] { display: none; }

.reacts { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.reacts button { background: var(--night-2); border: 1px solid #4a4035; color: var(--paper); border-radius: 18px; padding: 8px 12px; font-size: 15px; min-height: 40px; cursor: pointer; }
.bubble { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: 90px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 18px; border: 2px solid; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.5); animation: rise 2.2s ease-out forwards; pointer-events: none; white-space: nowrap; }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 10px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }

.dlg-actions { display: flex; gap: 10px; }
.dlg-actions .btn { margin-top: 8px; }

.evidence-line { font-family: Elite, monospace; color: var(--red); font-size: 18px; }
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { font-family: Bebas, sans-serif; font-weight: normal; letter-spacing: .08em; color: #b9ab93; text-align: left; padding: 4px 6px; }
.board td { padding: 8px 6px; border-top: 1px solid #3a3229; vertical-align: top; }
.board td.n { text-align: right; font-family: "Courier New", monospace; font-weight: bold; white-space: nowrap; }
.board .ok { color: #7fcf6f; }
.board .bad { color: #ff6b5e; }

.daily-link { display: block; text-decoration: none; background: var(--brass); color: var(--night); border-radius: 4px; padding: 14px 16px; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.daily-link .dl-k { display: block; font-family: Bebas, Impact, sans-serif; letter-spacing: .08em; font-size: 26px; }
.daily-link .dl-t { display: block; font-size: 14px; }

/* ---------------- The Insider ---------------- */
.modes { display: grid; gap: 8px; margin-top: 6px; }
.modes button { text-align: left; background: var(--night-2); color: var(--paper); border: 2px solid #4a4035; border-radius: 4px; padding: 10px 12px; cursor: pointer; font: inherit; }
.modes button b { display: block; font-family: Bebas, sans-serif; font-weight: normal; letter-spacing: .08em; font-size: 20px; }
.modes button span { font-size: 13px; color: #b9ab93; }
.modes button[aria-pressed="true"] { border-color: var(--brass); background: #2b241b; }

.role-card { border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }
.role-card.detective { background: #1f2a33; border: 1px solid #4f8fd0; }
.role-card.insider { background: #3a1714; border: 1px solid var(--red); }
.role-card[hidden] { display: none; }

.locked { color: var(--ink-soft); }
.claims { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.claims span { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.claims .fit { background: #d8ecd2; color: #24521b; }
.claims .nofit { background: #f2d6d2; color: #7a1d14; }
.claim-btns { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.claim-btns button { border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 14px; padding: 6px 12px; font: 600 13px Georgia, serif; min-height: 36px; cursor: pointer; }
.claim-btns button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.vote-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.voters { display: flex; gap: 4px; flex-wrap: wrap; }
.voters i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.3); }
.paper .vote-btn, .dossier .vote-btn { border-color: var(--red); color: var(--red); }
.dossier.voted { border-color: var(--red); }
.arrest { font-family: DMSerif, Georgia, serif; font-size: 20px; margin: 4px 0; }
.unmask-list { display: grid; gap: 8px; }
.unmask-btn { display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border: 2px solid transparent; border-radius: 3px; padding: 12px; font: 18px Georgia, serif; cursor: pointer; text-align: left; }
.unmask-btn .dot { width: 14px; height: 14px; border-radius: 50%; }
.unmask-btn.picked { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,38,30,.35); }
.hint-dark { color: var(--ink-soft); font-size: 14px; }

/* Detective Pass */
.pass-link { display: block; text-align: center; margin: 22px 0 4px; color: var(--brass); font-family: Bebas, sans-serif; letter-spacing: .08em; font-size: 18px; text-decoration: none; }
.pass-badge { display: inline-block; font-family: Bebas, sans-serif; letter-spacing: .08em; font-size: 11px; line-height: 1; padding: 2px 4px 1px; border: 1px solid var(--brass); color: var(--brass); border-radius: 2px; vertical-align: 2px; margin-left: 4px; }
.hint a { color: var(--brass); }
