:root {
    --ink: #efe9df;
    --muted: #a9a1a0;
    --night: #08090d;
    --panel: rgba(24, 24, 30, 0.88);
    --panel-light: #23232b;
    --line: rgba(239, 233, 223, 0.11);
    --blood: #a62635;
    --blood-bright: #d44550;
    --gold: #c6a86a;
    --blue: #6f85b5;
    --radius: 18px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 15%, rgba(92, 37, 49, 0.28), transparent 30rem),
        radial-gradient(circle at 85% 5%, rgba(45, 54, 89, 0.24), transparent 28rem),
        var(--night);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

button, input { font: inherit; }

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: auto;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 1.35rem;
}

.brand-mark { color: var(--blood-bright); font-size: 1.7rem; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.user-name { padding-left: 18px; border-left: 1px solid var(--line); }
.nav-button { border: 0; background: none; color: var(--muted); cursor: pointer; }

.site-main { position: relative; z-index: 1; max-width: 1120px; margin: auto; padding: 64px 28px 90px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin-top: 0; line-height: 1.04; }
h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -.035em; }
h2 { margin-bottom: 6px; font-size: 2rem; }
h3 { margin-bottom: 6px; font-size: 1.4rem; }
p { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; color: white; text-decoration: none; font-weight: 600; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--blood-bright), #8b1d2a); box-shadow: 0 10px 30px rgba(166,38,53,.25); }
.button-secondary, .button-small { border-color: var(--line); background: rgba(255,255,255,.035); }
.button-wide { width: 100%; margin-top: 10px; }
.button-small { min-height: 36px; padding: 7px 12px; font-size: .82rem; }
.button-day { color: #1b1710; background: linear-gradient(135deg, #e2c47e, #a97d32); }
.button-night { background: linear-gradient(135deg, #536999, #283555); }
.button-row, .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.text-link { color: var(--muted); text-align: center; font-size: .9rem; }

.messages { position: relative; z-index: 3; max-width: 1064px; margin: 18px auto -30px; padding: 0 28px; }
.message { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #202129; }
.message-success { border-color: rgba(85, 165, 120, .4); }
.message-error { border-color: rgba(212, 69, 80, .5); }

.auth-shell { min-height: 67vh; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; }
.auth-intro p:last-child { max-width: 480px; font-size: 1.1rem; }
.auth-card { padding: 34px; }
.stacked-form { display: flex; flex-direction: column; gap: 10px; }
.stacked-form label { margin-top: 6px; color: #d8d1ca; font-size: .86rem; font-weight: 600; }
.stacked-form input, .inline-seat-form input { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: #111217; }
.stacked-form input { height: 48px; padding: 0 14px; }
.stacked-form input:focus, .inline-seat-form input:focus { border-color: var(--blood-bright); box-shadow: 0 0 0 3px rgba(212,69,80,.1); }
.form-errors, .errorlist { color: #ff9ca4; font-size: .85rem; }
.errorlist { margin: 0; padding-left: 18px; }

.hero, .game-header { display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.compact-hero { padding-bottom: 62px; }
.compact-hero h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 20px; }
.count-badge { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(34,34,42,.95), rgba(19,19,24,.95)); text-decoration: none; transition: transform .18s, border-color .18s; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(198,168,106,.35); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.role-pill, .status-dot { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.role-pill { padding: 5px 9px; border-radius: 999px; background: rgba(198,168,106,.12); color: var(--gold); }
.role-player { color: #9cb3e6; background: rgba(111,133,181,.15); }
.status-dot { color: var(--muted); }
.status-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #6f747e; }
.status-lobby::before, .status-active::before { background: #65b987; box-shadow: 0 0 10px rgba(101,185,135,.5); }
.game-card > p { min-height: 42px; font-size: .85rem; }
.phase-line { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.empty-state { grid-column: 1 / -1; padding: 55px; text-align: center; }
.empty-symbol { color: var(--blood-bright); font-size: 2.7rem; }

.form-page { display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: center; min-height: 58vh; }
.form-intro h1 { max-width: 620px; }
.feature-form { padding: 34px; }

.game-header { align-items: center; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.game-header h1 { margin-bottom: 8px; font-size: clamp(2.8rem, 5vw, 4.4rem); }
.phase-orb { flex: 0 0 132px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle, rgba(83,105,153,.25), rgba(15,16,22,.9) 68%); box-shadow: 0 0 55px rgba(83,105,153,.15); }
.phase-day { background: radial-gradient(circle, rgba(226,196,126,.3), rgba(28,24,17,.92) 68%); box-shadow: 0 0 55px rgba(226,196,126,.15); }
.phase-icon { font-size: 2rem; color: var(--gold); }
.phase-orb strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; }
.phase-orb small { color: var(--muted); }.phase-started { max-width: 120px; font-size: .67rem; line-height: 1.15; text-align: center; }
.connection-status { margin-top: 5px; color: #777; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.connection-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: currentColor; }
.connection-status.is-connected { color: #65b987; }
.storyteller-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 50px; padding: 24px 28px; }
.invite-code { font-family: ui-monospace, monospace; font-size: 1.3rem; letter-spacing: .13em; color: #fff; }
.phase-controls { padding-left: 28px; border-left: 1px solid var(--line); }
.status-controls { margin-top: 10px; }
.lobby-heading { margin-top: 48px; }
.player-list { display: flex; flex-direction: column; gap: 8px; }
.player-row { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(25,25,31,.74); }
.storyteller-row { border-color: rgba(198,168,106,.22); }
.player-avatar { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #3d3d49, #222229); color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.2rem; }
.player-identity { flex: 1; }
.player-identity h3 { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: .98rem; }
.player-identity span { color: var(--muted); font-size: .78rem; }
.presence-indicator.is-online { color: #65b987; }
.private-character-label { display: block; margin-top: 3px; color: var(--gold) !important; }
.seat-marker { display: flex; flex-direction: column; align-items: center; width: 52px; }
.seat-marker span { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.seat-marker strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.seat-marker.empty strong { color: #666; }
.inline-seat-form { display: flex; gap: 8px; margin-left: 10px; }
.inline-seat-form input { width: 62px; height: 36px; padding: 0 8px; }
.inline-character-form { display: flex; gap: 7px; align-items: center; flex-basis: 100%; margin-left: 56px; }
.inline-character-form select { min-width: 220px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #111217; }
.storyteller-player-controls { display: flex; align-items: center; gap: 4px; }
.icon-button { min-height: 32px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.03); cursor: pointer; font-size: .72rem; }
.icon-button:hover { color: white; border-color: rgba(255,255,255,.25); }
.icon-button.danger { color: #e27a83; }
.storyteller-badge { color: var(--gold); font-size: .76rem; text-transform: uppercase; }
.player-note { display: flex; gap: 18px; margin-top: 28px; padding: 22px; }
.player-note > span { color: var(--blue); }
.player-note h3 { margin-bottom: 2px; font-size: 1.1rem; }
.player-note p { margin: 0; font-size: .86rem; }
.private-role-card { margin-top: 30px; padding: 28px; border-color: rgba(198,168,106,.28); }
.private-role-content { display: flex; align-items: flex-start; gap: 24px; }
.private-role-content img { width: 112px; height: 112px; object-fit: contain; border-radius: 50%; }
.private-role-content h2 { margin: 10px 0 8px; font-size: 2.4rem; }
.ability-text { color: var(--ink); font-size: 1rem; }
.script-assignment, .script-add-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0; padding: 22px 26px; }
.inline-script-form { display: flex; align-items: center; gap: 10px; }
.inline-script-form select { min-width: 230px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #111217; }
.script-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; margin-top: 38px; }
.night-columns { display: flex; flex-direction: column; gap: 16px; }
.night-order { padding: 20px; }
.night-entry { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.night-entry > strong { color: var(--gold); }
.night-entry span { display: flex; flex-direction: column; font-size: .9rem; }
.night-entry small { color: var(--muted); font-size: .7rem; }
.night-entry > div { display: flex; gap: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.grimoire-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.grimoire-seat { padding: 22px; }.grimoire-seat.is-dead { opacity: .72; }
.grimoire-seat-head { display: flex; align-items: center; gap: 14px; }.grimoire-seat-head h2 { margin: 0; font-size: 1.25rem; }
.seat-number { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: Georgia,serif; font-size: 1.3rem; }
.grimoire-character { margin: 18px 0; padding: 16px; border-left: 2px solid var(--blood-bright); background: rgba(255,255,255,.025); }
.grimoire-character h3 { margin: 8px 0 4px; }.grimoire-character p { margin: 0 0 6px; font-size: .88rem; }.grimoire-character small { color: var(--muted); }
.grimoire-form { display: flex; gap: 7px; margin-top: 12px; }.grimoire-form select, .grimoire-form input { min-width: 0; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #111217; }.grimoire-form select { flex: 1.3; }.grimoire-form input { flex: 1; }
.script-metadata-panel { align-items: flex-start; }.script-metadata-form { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; flex: 1; min-width: 0; }.script-metadata-form label { display: grid; gap: 6px; min-width: 0; color: var(--ink); }.script-metadata-form input, .script-metadata-form textarea { box-sizing: border-box; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #111217; }.script-metadata-form textarea { min-height: 94px; resize: vertical; }.script-metadata-form small { color: var(--muted); font-weight: 400; }.script-metadata-rules { grid-column: 1 / -1; }.script-metadata-form .button { justify-self: start; }
.identity-form { flex-wrap: wrap; }.identity-form select { flex: 1 1 150px; }.identity-deception { padding: 7px 9px; border-left: 2px solid var(--gold); color: var(--gold); background: rgba(198,168,106,.08); }
.reminder-list { display: flex; flex-wrap: wrap; gap: 7px; min-height: 31px; margin-top: 16px; }.reminder-token { padding: 6px 9px; border: 1px solid rgba(198,168,106,.4); border-radius: 999px; color: var(--gold); background: rgba(198,168,106,.1); cursor: pointer; }
.seat-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 34px; }
.seat-board-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.seat-board-item strong { color: var(--gold); }.seat-board-item span { color: var(--muted); font-size: .78rem; }
.town-square-heading { margin-top: 48px; }
.role-distribution { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -4px 0 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }.role-distribution-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }.role-distribution-title .button { flex: 0 0 auto; }
.role-counts { display: flex; flex-wrap: wrap; gap: 7px; }.role-count { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; }.role-count strong { margin-right: 3px; color: white; }.role-count-townsfolk { border-color: rgba(90,139,212,.45); }.role-count-outsider { border-color: rgba(74,171,198,.45); }.role-count-minion { border-color: rgba(213,91,111,.45); }.role-count-demon { border-color: rgba(179,39,53,.7); }
.starting-setup { display: grid; grid-template-columns: .72fr 1.28fr; gap: 30px; margin-bottom: 28px; padding: 26px; }.setup-intro h2 { margin-bottom: 8px; }.setup-warning { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 13px; border-left: 3px solid var(--gold); background: rgba(198,168,106,.08); font-size: .78rem; }.setup-warning strong { color: var(--gold); }.setup-warning span { color: var(--muted); }
.character-checklist { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 14px; }.character-check { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #111217; cursor: pointer; }.character-check:has(input:checked) { border-color: var(--gold); background: rgba(198,168,106,.09); }.character-check input { accent-color: var(--blood-bright); }.character-check span,.character-check strong,.character-check small { display: block; min-width: 0; }.character-check strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }.character-check small { color: var(--muted); font-size: .6rem; }
.composition-alert { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; font-size: .75rem; }.composition-alert span { color: var(--muted); }.composition-alert.has-warning { border-color: rgba(226,166,76,.55); background: rgba(226,166,76,.07); }.composition-alert.has-warning strong { color: #efbd72; }.composition-alert.is-matching { border-color: rgba(101,185,135,.55); background: rgba(101,185,135,.07); }.composition-alert.is-matching strong { color: #7ed19f; }
.night-workflow { margin: 28px 0; padding: 26px; }.night-workflow-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.night-bluff-context,.night-perceived-role { padding: 9px 11px; border-left: 3px solid var(--gold); background: rgba(198,168,106,.08); }.night-perceived-role { border-left-color: #759bea; background: rgba(100,139,215,.1); }.night-step-list { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }.night-step { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }.night-step-position { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--gold); background: rgba(198,168,106,.1); font-weight: 700; }.night-step-body > div strong,.night-step-body > div small { display: block; }.night-step-body small { color: var(--muted); font-size: .68rem; }.night-step-body p { margin: 6px 0 0; font-size: .78rem; }.night-step-actions { display: flex; align-items: center; gap: 4px; }.night-step-completed { border-color: rgba(101,185,135,.4); opacity: .68; }.night-step-skipped { border-style: dashed; opacity: .56; }.night-step-dead { border-color: rgba(179,39,53,.45); }.phase-gong-overlay { position: fixed; z-index: 1000; inset: 50% auto auto 50%; padding: 24px 38px; border: 1px solid var(--gold); border-radius: 999px; color: #fff3d8; background: rgba(16,10,12,.95); box-shadow: 0 0 90px rgba(198,168,106,.4); opacity: 0; transform: translate(-50%,-50%) scale(.85); pointer-events: none; transition: opacity .2s,transform .2s; font-family: Georgia,serif; font-size: clamp(1.2rem,4vw,2.2rem); }.phase-gong-overlay.is-visible { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.night-step-game-character { border-color: rgba(198,168,106,.5); background: rgba(198,168,106,.06); }
.night-boundary { display: flex; gap: 10px; align-items: baseline; margin-top: 16px; padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(198,168,106,.08); font-size: .78rem; }
.night-boundary strong { color: var(--gold); }
.night-boundary-dawn { margin-top: 20px; border-left-color: #759bea; background: rgba(100,139,215,.1); }
.demon-bluff-setup { display: grid; grid-template-columns: .65fr 1.35fr; gap: 28px; margin: 28px 0; padding: 26px; }.bluff-in-play { border-color: rgba(226,166,76,.55); }.deliver-bluffs-form { grid-column: 2; }.demon-bluff-card { border-color: rgba(179,39,53,.45); }.bluff-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.bluff-list article { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }.bluff-list h3 { margin: 8px 0 4px; }.bluff-list p { font-size: .78rem; }
.nomination-panel { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin: 28px 0; padding: 24px 26px; border-color: rgba(212,69,80,.35); }.nomination-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; min-width: 480px; }.nomination-form label { color: var(--muted); font-size: .7rem; }.nomination-form select { display: block; width: 100%; height: 38px; margin-top: 3px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #111217; }.nomination-form .override-check { grid-column: 1 / -1; }.nomination-form button { grid-column: 1 / -1; }.clock-seat.is-nominator,.clock-seat.is-nominee,.clock-seat.is-hand-raised { border-color: transparent; box-shadow: none; }.clock-seat.is-current-voter { outline: 0; }.nomination-marker { display: block; color: var(--gold); font-size: .5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.nominee-marker { color: #ff8790; }.vote-marker { color: #82d7a3; }.voter-marker { color: #9dc5ff; }
.town-square { --circle-radius: clamp(230px, 32vw, 365px); --token-size: clamp(64px, 8vw, 92px); position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; width: min(100%, 980px); min-height: 780px; margin: 18px auto 112px; border: 1px solid rgba(198,168,106,.18); border-radius: 50% / 43%; background: radial-gradient(ellipse at center, rgba(110,25,35,.2) 0 18%, rgba(18,19,25,.93) 19% 56%, rgba(8,9,13,.98) 73%); box-shadow: inset 0 0 80px rgba(0,0,0,.62), 0 28px 80px rgba(0,0,0,.3); }
.clock-seat.is-nominator .clock-seat-token { border-color: #e6b95f; box-shadow: 0 0 0 3px rgba(230,185,95,.12), 0 0 18px 7px rgba(230,185,95,.16), 0 0 38px rgba(230,185,95,.12); }.clock-seat.is-nominee .clock-seat-token { border-color: var(--blood-bright); box-shadow: 0 0 0 3px rgba(212,69,80,.12), 0 0 18px 7px rgba(212,69,80,.16), 0 0 38px rgba(212,69,80,.12); }.clock-seat.is-hand-raised .clock-seat-token { border-color: #69bb8b; box-shadow: 0 0 20px rgba(105,187,139,.42); }.clock-seat.is-current-voter .clock-seat-token { outline: 0; }.clock-seat-state .nomination-marker { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid currentColor; border-radius: 50%; color: var(--gold); background: #17130e; box-shadow: 0 2px 8px rgba(0,0,0,.62); font-size: .62rem; font-weight: 800; line-height: 1; }.clock-seat-state .nominee-marker { color: #ff8790; }.clock-seat-state .vote-marker { color: #82d7a3; }.clock-seat-state .voter-marker { color: #9dc5ff; }
.town-square::before { content: ""; position: absolute; inset: 7%; border: 1px dashed rgba(198,168,106,.16); border-radius: 50% / 43%; pointer-events: none; }
.vote-arm { position: absolute; z-index: 0; top: 50%; left: 50%; width: var(--circle-radius); height: 3px; border-radius: 99px; background: linear-gradient(90deg, #d9c178, rgba(217,193,120,.18)); box-shadow: 0 0 14px rgba(217,193,120,.7); opacity: 0; pointer-events: none; transform: rotate(var(--active-arm-angle, -90deg)); transform-origin: 0 50%; transition: transform var(--vote-arm-duration, 560ms) cubic-bezier(.22,.8,.25,1), opacity 180ms ease; }
.town-square.has-active-vote-arm .vote-arm { opacity: 1; }
.nomination-arm { position: absolute; top: 50%; left: 50%; display: block; height: 5px; border-radius: 99px; pointer-events: none; transform-origin: 0 50%; }.has-nomination-arms .nomination-arm-nominator { z-index: 1; width: calc(var(--circle-radius) * .58); background: #6fa9ef; transform: rotate(var(--nominator-arm-angle)); }.has-nomination-arms .nomination-arm-nominee { z-index: 2; width: calc(var(--circle-radius) * .94); background: #d44855; transform: rotate(var(--nominee-arm-angle)); }
.town-square-center { position: absolute; z-index: 3; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; aspect-ratio: 1; border: 1px solid rgba(198,168,106,.3); border-radius: 50%; background: radial-gradient(circle, #292029, #111218 72%); transform: translate(-50%,-50%); box-shadow: 0 0 45px rgba(117,24,35,.28); }
.town-square-center strong { font-family: Georgia,serif; font-size: 1.2rem; }.town-square-center small { color: var(--muted); }.town-square-center .phase-started { font-size: .57rem; }.clockwise-label { margin-top: 6px; color: var(--gold); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.town-vote-controls { position: absolute; z-index: 4; inset: 50% 0 auto; height: 0; }.town-vote-controls form { position: absolute; top: 0; margin: 0; white-space: nowrap; }.town-vote-controls form:first-child { right: calc(50% + 91px); transform: translateY(-50%); }.town-vote-controls form:last-child { left: calc(50% + 91px); transform: translateY(-50%); }.town-vote-controls .button { display: inline-flex; justify-content: center; width: 132px; min-width: 132px; }.town-live-vote-tracker { position: absolute; z-index: 4; top: calc(50% + 92px); left: 50%; width: max-content; max-width: calc(100% - 28px); transform: translateX(-50%); }
.vote-countdown { position: absolute; display: grid; place-items: center; inset: -18px; border-radius: 50%; color: #fff3d8; background: rgba(34,8,12,.88); font-family: Georgia,serif; font-size: 4rem; font-weight: 700; animation: vote-countdown-pulse 1s ease-in-out infinite; }.vote-countdown[hidden] { display: none; } @keyframes vote-countdown-pulse { 0% { transform: scale(.65); opacity: .2; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.12); opacity: .2; } }
.clock-seat { z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; width: var(--token-size); min-width: 0; text-align: center; }
.town-square-storyteller .clock-seat,.town-square:not(.town-square-storyteller) .clock-seat[data-inspect-seat] { cursor: pointer; }.town-square-storyteller .clock-seat:focus-visible .clock-seat-token,.town-square-storyteller .clock-seat.is-selected .clock-seat-token,.town-square:not(.town-square-storyteller) .clock-seat:focus-visible .clock-seat-token,.town-square:not(.town-square-storyteller) .clock-seat.is-selected .clock-seat-token { border-color: var(--gold); outline: 3px solid rgba(198,168,106,.72); outline-offset: 4px; box-shadow: 0 0 32px rgba(198,168,106,.45); }
.town-square.is-positioned .clock-seat { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(var(--seat-angle)) translateY(calc(-1 * var(--circle-radius))) rotate(calc(-1 * var(--seat-angle))); }
.clock-seat-token { position: relative; display: grid; flex: 0 0 var(--token-size); place-items: center; width: var(--token-size); height: var(--token-size); border: 2px solid #767b88; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #515563, #22242b 65%); box-shadow: 0 8px 22px rgba(0,0,0,.48); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.public-traveller-token { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }.clock-seat-token:has(.suspected-token-image) .public-traveller-token { display: none; }
.town-square-storyteller .clock-seat:hover .clock-seat-token,.town-square:not(.town-square-storyteller) .clock-seat[data-inspect-seat]:hover .clock-seat-token { transform: scale(1.06); }.town-square-storyteller .clock-seat:active .clock-seat-token,.town-square:not(.town-square-storyteller) .clock-seat[data-inspect-seat]:active .clock-seat-token { transform: scale(.96); }
.clock-seat-avatar { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; color: #f0e8dd; font-family: Georgia,serif; font-size: clamp(1.1rem, 3.2vw, 1.9rem); }.clock-seat-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }.clock-seat.is-dead .clock-seat-avatar img { filter: grayscale(1); }
.clock-seat-number { position: absolute; z-index: 4; top: -8px; left: -8px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #17130e; border-radius: 50%; color: #17130e; background: var(--gold); font-size: .7rem; font-weight: 800; }
.clock-seat-state { position: absolute; z-index: 5; top: -9px; right: -10px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; width: 42px; }.clock-seat-state:empty { display: none; }
.clock-seat-label { position: relative; width: min(112px, calc(var(--token-size) + 24px)); min-width: 0; }.clock-seat-label strong,.clock-seat-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.clock-seat-label strong { font-size: .78rem; }.clock-seat-label small { color: var(--muted); font-size: .61rem; }.clock-character-name { position: absolute; z-index: 8; bottom: calc(100% + 9px); left: 50%; display: grid; width: max-content; max-width: 132px; padding: 5px 8px; border: 1px solid rgba(198,168,106,.62); border-radius: 7px; color: #fff6dc; background: rgba(18,17,23,.96); box-shadow: 0 5px 14px rgba(0,0,0,.48); font-family: Arial,sans-serif; line-height: 1.12; opacity: 0; overflow-wrap: anywhere; pointer-events: none; text-align: center; transform: translateX(-50%) translateY(4px); transition: opacity .14s ease, transform .14s ease; }.clock-character-name strong { font-size: .78rem; }.clock-character-name small { color: #d9c178; font-size: .62rem; font-weight: 800; letter-spacing: .03em; }.town-square-storyteller .clock-seat:hover .clock-character-name,.town-square-storyteller .clock-seat.is-selected .clock-character-name,.town-square-storyteller .clock-seat:focus-visible .clock-character-name { opacity: 1; transform: translateX(-50%) translateY(0); }
.clock-seat.is-viewer .clock-seat-token { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,168,106,.2), 0 8px 24px rgba(0,0,0,.45); }.clock-seat.is-empty { opacity: .7; }.clock-seat.is-empty .clock-seat-token { border-style: dashed; }.clock-seat.is-dead .clock-seat-token { filter: grayscale(1); }.clock-seat.is-dead .clock-seat-label { opacity: .58; }.clock-seat.is-revealed-role.is-dead .clock-seat-token,.clock-seat.is-revealed-role.is-dead .clock-seat-avatar img { filter: none; }.clock-seat.is-revealed-role.is-dead .clock-seat-label { opacity: 1; }
.death-shroud { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; color: #ff929b; background: rgba(39,4,8,.64); font-size: 1.45rem; }
.clock-reminders { --reminder-size: 58px; --reminder-step: 17px; position: absolute; z-index: 6; top: 50%; left: 50%; width: var(--reminder-size); height: var(--reminder-size); transform: translate(-50%,-50%) rotate(var(--seat-angle)) translateY(calc(var(--token-size) * 1.22)) rotate(calc(-1 * var(--seat-angle))); }.clock-reminder { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: var(--reminder-size); height: var(--reminder-size); padding: 6px; border: 3px solid #24160b; border-radius: 50%; color: #17100a; background: radial-gradient(circle at 37% 27%, #fff8d7 0 10%, #edd292 47%, #bd7833 100%); box-shadow: 0 3px 0 #090807, 0 5px 13px rgba(0,0,0,.62), inset 0 0 0 1px rgba(255,244,189,.82); transform: rotate(var(--seat-angle)) translateY(calc(var(--reminder-index) * var(--reminder-step))) rotate(calc(-1 * var(--seat-angle))); transition: transform .18s ease, box-shadow .18s ease; }.clock-reminder img { width: 42px; height: 42px; object-fit: contain; }.clock-reminder strong { position: absolute; z-index: 2; top: calc(100% + 7px); left: 50%; display: block; width: max-content; max-width: 112px; padding: 5px 7px; border: 1px solid rgba(198,168,106,.55); border-radius: 7px; color: #fff6dc; background: rgba(18,17,23,.96); box-shadow: 0 5px 14px rgba(0,0,0,.48); font-family: Arial,sans-serif; font-size: .72rem; font-weight: 800; line-height: 1.15; opacity: 0; overflow-wrap: anywhere; pointer-events: none; text-align: center; transform: translateX(-50%) translateY(-4px); transition: opacity .14s ease, transform .14s ease; }.clock-reminder:hover strong,.town-square-storyteller .clock-seat:hover .clock-reminder strong,.town-square-storyteller .clock-seat.is-selected .clock-reminder strong { opacity: 1; transform: translateX(-50%) translateY(0); }.clock-reminder:hover { z-index: 3; box-shadow: 0 3px 0 #090807, 0 0 0 3px rgba(224,190,97,.42), 0 5px 13px rgba(0,0,0,.62); }.town-square-storyteller .clock-seat:hover .clock-reminders,.town-square-storyteller .clock-seat.is-selected .clock-reminders { --reminder-step: calc(var(--reminder-size) + 9px); }.clock-reminder.is-custom { background: radial-gradient(circle at 37% 27%, #eff4ff, #92a6c9); }.clock-reminder.is-custom img { width: 44px; height: 44px; }
.clock-reminder img { width: 48px; height: 48px; }.clock-reminder.is-custom img { width: 50px; height: 50px; }.clock-reminder-remove { position: absolute; z-index: 4; top: -8px; right: -8px; display: grid; place-items: center; width: 23px; height: 23px; padding: 0; border: 2px solid #fff0e5; border-radius: 50%; color: white; background: #aa2835; box-shadow: 0 2px 7px rgba(0,0,0,.58); cursor: pointer; font-size: 1rem; font-weight: 900; line-height: 1; opacity: 0; pointer-events: none; transform: scale(.7); transition: opacity .14s ease, transform .14s ease, background .14s ease; }.clock-reminder:hover .clock-reminder-remove,.clock-reminder:focus-within .clock-reminder-remove { opacity: 1; pointer-events: auto; transform: scale(1); }.clock-reminder-remove:hover,.clock-reminder-remove:focus-visible { background: #d54552; outline: 2px solid #ffd0d4; outline-offset: 2px; }
.clock-reminder { z-index: var(--reminder-z); }.clock-reminder img { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%,-50%); }.clock-reminder.is-custom img { width: 50px; height: 50px; }.clock-reminder strong { z-index: 20; }.town-square-storyteller .clock-seat:hover .clock-reminders,.town-square-storyteller .clock-seat.is-selected .clock-reminders { --reminder-step: calc(var(--reminder-size) + 28px); }.clock-reminder-remove { z-index: 30; top: -15px; right: -15px; width: 44px; height: 44px; border: 0; background: transparent; box-shadow: none; font-size: 0; }.clock-reminder-remove::before { width: 29px; height: 29px; border: 2px solid #fff0e5; border-radius: 50%; color: white; background: #aa2835; box-shadow: 0 2px 7px rgba(0,0,0,.58); content: "×"; display: grid; place-items: center; font-size: 1rem; font-weight: 900; line-height: 1; }.clock-reminder-remove:hover::before,.clock-reminder-remove:focus-visible::before { background: #d54552; }.town-square-storyteller .clock-seat.is-selected .clock-reminder-remove { opacity: 1; pointer-events: auto; transform: scale(1); }
.seat-inspector { position: relative; z-index: 4; max-width: 760px; margin: -42px auto 34px; border-color: rgba(198,168,106,.48); box-shadow: 0 18px 48px rgba(0,0,0,.36); }.seat-inspector [data-seat-inspector-content] { display: grid; gap: 12px; }.seat-inspector .grimoire-seat-head { display: flex; align-items: center; gap: 12px; }.seat-inspector .storyteller-player-controls { display: flex; gap: 6px; flex-wrap: wrap; }.seat-inspector .grimoire-character { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }.seat-inspector .grimoire-character.has-character-token { min-height: 52px; padding-left: 76px; }.seat-inspector .grimoire-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; gap: 7px; }.seat-inspector .reminder-list { display: flex; gap: 5px; flex-wrap: wrap; }
.clock-reminder-remove:hover,.clock-reminder-remove:focus-visible { background: transparent; outline: none; }.clock-reminder-remove::before { position: absolute; top: 7px; right: 7px; width: 23px; height: 23px; }.clock-reminder-remove:focus-visible::before { outline: 2px solid #ffd0d4; outline-offset: 2px; }
.private-clock-reminders .clock-reminder.is-removing { opacity: 0; pointer-events: none; transform: rotate(var(--seat-angle)) scale(.72) rotate(calc(-1 * var(--seat-angle))); }
.grimoire-character { position: relative; padding-left: 76px; }.character-token { position: absolute; top: 12px; left: 12px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }.team-good { border-left: 3px solid #68a9ff; }.team-evil { border-left: 3px solid var(--blood-bright); }.reminder-token { display: inline-flex; align-items: center; gap: 5px; }.reminder-token img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.town-square.is-crowded { --token-size: clamp(52px, 6vw, 66px); }.town-square.is-crowded .clock-seat-label strong { font-size: .7rem; }

@media (max-width: 820px) {
    .site-header { align-items: flex-start; }
    .user-name { display: none; }
    .site-main { padding-top: 42px; }
    .auth-shell, .form-page { grid-template-columns: 1fr; gap: 36px; }
    .auth-shell { align-items: start; }
    .game-grid { grid-template-columns: 1fr; }
    .hero, .game-header { align-items: flex-start; flex-direction: column; }
    .phase-orb { align-self: center; }
    .storyteller-strip { grid-template-columns: 1fr; }
    .script-layout { grid-template-columns: 1fr; }
    .grimoire-grid { grid-template-columns: 1fr; }
    .starting-setup { grid-template-columns: 1fr; }.character-checklist { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .demon-bluff-setup { grid-template-columns: 1fr; }.deliver-bluffs-form { grid-column: 1; }
    .nomination-panel { align-items: flex-start; flex-direction: column; }.nomination-form,.day-action-forms { width: 100%; min-width: 0; }
    .town-square { --circle-radius: clamp(205px, 42vw, 305px); --token-size: clamp(58px, 10vw, 76px); min-height: 660px; }
    .town-square-center { width: 120px; }.town-vote-controls form:first-child { right: calc(50% + 70px); }.town-vote-controls form:last-child { left: calc(50% + 70px); }.town-vote-controls .button { padding: 8px 10px; }.town-live-vote-tracker { top: calc(50% + 78px); }
    .script-assignment, .script-add-panel { align-items: flex-start; flex-direction: column; }.script-metadata-form { width: 100%; grid-template-columns: 1fr; }.script-metadata-rules { grid-column: auto; }
    .phase-controls { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
    .site-header { padding: 18px; }
    .brand span:last-child { display: none; }
    .site-main { padding: 34px 18px 70px; }
    .site-nav { gap: 10px; }
    .hero-actions { width: 100%; }
    .hero-actions .button { flex: 1; }
    .player-row { flex-wrap: wrap; }
    .inline-seat-form { width: 100%; margin: 4px 0 0 56px; }
    .role-distribution { align-items: flex-start; flex-direction: column; }.character-checklist { grid-template-columns: 1fr 1fr; }
    .storyteller-strip { gap: 18px; padding: 18px; }.storyteller-strip > *, .phase-controls { min-width: 0; max-width: 100%; }.inline-script-form { flex-wrap: wrap; min-width: 0; }.inline-script-form select { flex: 1 1 0; min-width: 0; }.grimoire-form { flex-wrap: wrap; min-width: 0; max-width: 100%; }.grimoire-form > * { min-width: 0; max-width: 100%; }.grimoire-form label { flex: 1 1 100%; }.grimoire-form textarea { box-sizing: border-box; width: 100%; max-width: 100%; }
    .town-square { --circle-radius: min(43vw, 205px); --token-size: clamp(48px, 14vw, 64px); min-height: min(126vw, 560px); margin-bottom: 72px; }
    .town-square.is-crowded { --token-size: 48px; }.clock-reminders { --reminder-size: 48px; }.clock-reminder img,.clock-reminder.is-custom img { width: 30px; height: 30px; }.clock-seat { gap: 4px; }.clock-seat-label { width: 92px; }.clock-seat-label small { display: none; }.town-square-center { width: 92px; }.town-square-center .phase-icon { font-size: 1.4rem; }.town-square-center strong { font-size: .9rem; }.clockwise-label { font-size: .48rem; }.town-vote-controls form:first-child { right: calc(50% + 54px); }.town-vote-controls form:last-child { left: calc(50% + 54px); }.town-vote-controls .button { width: 122px; min-width: 0; padding: 7px 8px; font-size: .75rem; }.town-live-vote-tracker { top: calc(50% + 64px); font-size: .68rem; }.clock-seat-number { width: 21px; height: 21px; font-size: .62rem; }
}

.site-footer {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: .75rem;
    gap: 10px;
    justify-content: center;
    padding: 0 18px 24px;
}

.site-footer img { height: 32px; width: auto; }

.clock-seat-token { position: relative; }
.live-hand-marker { position: absolute; z-index: 5; right: -12px; top: -14px; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #c9f5d7; border-radius: 50%; background: #17613b; box-shadow: 0 0 14px rgba(105,215,150,.9); font-size: 1rem; line-height: 1; animation: raised-hand-pop .18s ease-out; } @keyframes raised-hand-pop { from { transform: scale(.45); } to { transform: scale(1); } }
.live-vote-tracker { margin: 0; padding: 9px 12px; border: 1px solid rgba(105,215,150,.38); border-radius: 9px; color: #c9f5d7; background: rgba(23,97,59,.18); font-size: .8rem; }.live-vote-tracker strong { color: #fff3d8; font-size: 1.1em; }.live-vote-tracker span { color: var(--muted); }
.ghost-vote-icon { position: absolute; right: -7px; bottom: -7px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #9dc5ff; border-radius: 50%; color: #dcecff; background: #182239; box-shadow: 0 0 10px rgba(157,197,255,.7); font-size: .7rem; }
.clock-seat.is-current-voter { outline: 0; box-shadow: none; }.clock-seat.is-current-voter .clock-seat-token { outline: 0; border-color: rgba(244,248,255,.78); box-shadow: 0 0 0 4px rgba(235,243,255,.18), 0 0 20px 8px rgba(214,229,255,.2), 0 0 42px rgba(214,229,255,.14); }.on-block-marker { position: absolute; z-index: 7; top: 50%; left: 50%; display: grid; place-items: center; width: 70%; aspect-ratio: 1; border-radius: 50%; color: rgba(255,255,255,.86); background: rgba(18,18,23,.2); font-size: clamp(2.1rem,5vw,3.4rem); line-height: 1; text-shadow: 0 2px 7px rgba(0,0,0,.8); transform: translate(-50%,-50%); pointer-events: none; }.clock-seat.is-on-block .clock-seat-token { border-color: rgba(255,255,255,.68); box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 0 22px rgba(255,255,255,.18); }
.clock-seat.is-on-block .clock-seat-token { border-color: rgba(181,185,193,.58); box-shadow: 0 0 0 3px rgba(174,179,188,.1), 0 0 18px rgba(174,179,188,.13); }.clock-seat.is-on-block.is-current-voter .clock-seat-token { border-color: rgba(244,248,255,.88); box-shadow: 0 0 0 4px rgba(235,243,255,.22), 0 0 20px 8px rgba(214,229,255,.24), 0 0 42px rgba(214,229,255,.16); }
.game-reference, .deduction-panel { margin: 28px 0; padding: 24px; }.script-reference-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; }.script-reference-list article, .deduction-list form { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }.script-reference-list small { display: block; color: var(--gold); margin-top: 3px; }.script-reference-list p { margin: 9px 0; font-size: .85rem; }.private-reference { border-left: 3px solid var(--blood-bright); padding-left: 8px; }.script-reference-control { display: grid; gap: 10px; margin-top: 12px; }.script-reference-modal { width: min(920px, calc(100vw - 32px)); max-height: min(82vh, 760px); box-sizing: border-box; padding: 28px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; color: var(--ink); border: 1px solid rgba(198,168,106,.55); border-radius: 14px; background: #15151b; box-shadow: 0 26px 80px rgba(0,0,0,.6); }.script-reference-modal::backdrop { background: rgba(4,5,9,.76); backdrop-filter: blur(3px); }.script-reference-modal-close { position: absolute; top: 10px; right: 10px; margin: 0; }.script-reference-modal .script-reference-content { padding-right: 34px; }.deduction-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 18px; }.deduction-list form { display: grid; gap: 8px; }.deduction-list select, .deduction-list textarea { width: 100%; box-sizing: border-box; margin-top: 4px; }.deduction-list textarea { min-height: 74px; resize: vertical; }.reveal-seat-form { margin-top: 3px; }.clock-character-name.is-revealed { opacity: 1; transform: translateX(-50%) translateY(0); border-color: #79c69a; }.phase-orb .status-finished { animation: none; }
.workspace-drawer summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }.workspace-drawer summary::-webkit-details-marker { display: none; }.workspace-drawer summary .eyebrow,.workspace-drawer summary strong { display: block; }.workspace-drawer[open] summary { margin-bottom: 20px; }
.nomination-opening-panel { display: block; }.nomination-opening-panel > div:first-child { margin-bottom: 18px; }.day-action-forms { display: grid; gap: 20px; width: min(100%, 1080px); }.nomination-opening-panel .nomination-form { min-width: 0; width: 100%; }.special-vote-action { padding-top: 18px; border-top: 1px solid var(--line); }.nomination-panel .special-vote-control summary { max-width: 1080px; }.nomination-panel .special-vote-control .grimoire-form { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(190px, .9fr) minmax(200px, 1fr) auto; align-items: end; max-width: 1080px; }.nomination-panel .special-vote-control .grimoire-form label { display: grid; gap: 6px; color: var(--ink); }.nomination-panel .special-vote-control .grimoire-form input,.nomination-panel .special-vote-control .grimoire-form select { box-sizing: border-box; width: 100%; }.nomination-panel .special-vote-control .grimoire-form .muted { margin: 0 0 8px; }.nomination-panel .special-vote-control .grimoire-form .button { min-width: 156px; white-space: nowrap; }
.script-reference-group { margin: 22px 0; }.script-reference-group h3 { color: var(--gold); font-family: Georgia,serif; }.reference-token { float: left; width: 48px; height: 48px; margin: 0 10px 7px 0; border-radius: 50%; object-fit: cover; }.private-clock-reminders .clock-reminder { border-color: #466dca; background: radial-gradient(circle at 37% 27%, #e9f1ff, #7696d9); }.player-seat-inspector { border-color: rgba(108,145,220,.58); }.result-reveal-control { margin: 12px 0; padding: 10px; border: 1px solid rgba(112,200,145,.45); border-radius: 8px; background: rgba(48,118,72,.14); }.clock-seat.is-revealed-role .clock-seat-token { border-color: #79c69a; box-shadow: 0 0 22px rgba(121,198,154,.46); }
.active-game-context { padding: 16px; border: 1px solid rgba(198,168,106,.45); border-radius: 10px; background: rgba(198,168,106,.06); }.active-game-rule small { display: block; color: var(--muted); }
.special-vote-label { position: absolute; z-index: 3; top: calc(50% - 155px); left: 50%; width: min(260px, 70vw); margin: 0; padding: 8px 12px; border: 1px solid rgba(198,168,106,.65); border-radius: 10px; color: #fff3d8; background: rgba(18,13,18,.92); text-align: center; transform: translateX(-50%); font-weight: 700; }.special-vote-label small { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; }body:has([data-active-special-vote]) form[action*="/execution/mark/"] { display: none; }
.edition-logo { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }.script-reference-heading { display: flex; align-items: center; gap: 14px; }.edition-logo-large { width: 72px; height: 72px; }
.town-square:not(.town-square-storyteller) .clock-seat:hover .clock-character-name.is-suspected,.town-square:not(.town-square-storyteller) .clock-seat.is-selected .clock-character-name.is-suspected,.town-square:not(.town-square-storyteller) .clock-seat:focus-visible .clock-character-name.is-suspected { opacity: 1; border-color: #648bd7; color: #dce9ff; transform: translateX(-50%) translateY(0); }.town-square:not(.town-square-storyteller) .clock-seat.is-selected .clock-reminders,.town-square:not(.town-square-storyteller) .clock-seat:hover .clock-reminders { --reminder-step: calc(var(--reminder-size) + 28px); }.town-square:not(.town-square-storyteller) .clock-seat.is-selected .clock-reminder-remove { opacity: 1; pointer-events: auto; transform: scale(1); }.suspected-token-image { opacity: .78; filter: saturate(.72) brightness(.92); }.town-square:not(.town-square-storyteller) .clock-seat:has(.suspected-token-image) .clock-seat-token { border-color: #648bd7; box-shadow: 0 0 16px rgba(100,139,215,.42); }
.town-square:not(.town-square-storyteller) .clock-seat:hover .clock-reminder strong,.town-square:not(.town-square-storyteller) .clock-seat.is-selected .clock-reminder strong,.town-square:not(.town-square-storyteller) .clock-seat:focus-visible .clock-reminder strong { opacity: 1; transform: translateX(-50%) translateY(0); }.town-square:not(.town-square-storyteller) .clock-reminder:hover,.town-square:not(.town-square-storyteller) .clock-reminder:focus-within { z-index: 1000; }
.night-step-body > div { display: flex; align-items: center; gap: 8px; }.night-step-body > div small { flex-basis: 100%; }.night-character-token { width: 38px; height: 38px; border: 1px solid rgba(112,151,229,.7); border-radius: 50%; object-fit: cover; }.night-bluff-context { margin-top: 18px; border-left: 0; }.night-bluff-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 9px; }.night-bluff-list article { min-height: 58px; padding: 10px; border: 1px solid rgba(198,168,106,.3); border-radius: 9px; background: rgba(255,255,255,.025); }.night-bluff-list img { float: left; width: 42px; height: 42px; margin: 0 8px 4px 0; border-radius: 50%; object-fit: cover; }.night-bluff-list strong { display: block; color: var(--gold); }.night-bluff-list p { margin: 5px 0 0; font-size: .72rem; }
.demon-bluff-reference { margin: 28px 0; padding: 22px; }.demon-bluff-reference h2 { margin: 3px 0; }
.audit-history { margin: 18px 0; }.audit-history-list { display: grid; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }.audit-history-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }.audit-history-list strong { font-size: .86rem; }.audit-history-list small { color: var(--muted); font-size: .72rem; text-align: right; }
.player-seat-inspector .grimoire-form { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }.player-seat-inspector .private-reminder-form { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }.player-seat-inspector .private-reminder-form label { min-width: 0; }.player-seat-inspector .private-reminder-form select,.player-seat-inspector .private-reminder-form input { box-sizing: border-box; width: 100%; }.private-reminder-or { color: var(--muted); text-align: center; }
[data-private-reminder-noscript] article { min-width: 0; }[data-private-reminder-noscript] .private-reminder-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }[data-private-reminder-noscript] .private-reminder-form label { display: grid; min-width: 0; gap: 6px; }[data-private-reminder-noscript] .private-reminder-form select,[data-private-reminder-noscript] .private-reminder-form input { box-sizing: border-box; width: 100%; }
.player-suspected-character { border-left-color: #648bd7; }.player-suspected-character .role-pill { color: #dce9ff; background: rgba(100,139,215,.16); }
.suspected-alignment-controls { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; padding: 0; border: 0; }.suspected-alignment-controls legend { width: 100%; margin-bottom: 3px; color: var(--muted); font-size: .78rem; }.suspected-alignment-option { position: relative; cursor: pointer; }.suspected-alignment-option input { position: absolute; opacity: 0; }.suspected-alignment-option span { display: inline-block; min-width: 62px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; text-align: center; font-size: .78rem; }.suspected-alignment-option.is-good span { border-color: rgba(100,139,215,.7); color: #dce9ff; }.suspected-alignment-option.is-evil span { border-color: rgba(211,81,92,.72); color: #ffdce0; }.suspected-alignment-option input:checked + span { box-shadow: 0 0 0 2px currentColor, 0 0 13px currentColor; }.suspected-alignment-option input:focus-visible + span { outline: 2px solid #fff3d8; outline-offset: 2px; }
.suspected-alignment-marker { position: absolute; z-index: 7; bottom: -10px; left: -10px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 50%; background: #16161e; font-size: .68rem; font-weight: 800; }.clock-seat.is-suspected-good .suspected-alignment-marker { color: #8db4ff; box-shadow: 0 0 11px rgba(100,139,215,.72); }.clock-seat.is-suspected-evil .suspected-alignment-marker { color: #ff9ca6; box-shadow: 0 0 11px rgba(211,81,92,.72); }.town-square:not(.town-square-storyteller) .clock-seat.is-suspected-good .clock-seat-token { border-color: #648bd7; box-shadow: 0 0 16px rgba(100,139,215,.4); }.town-square:not(.town-square-storyteller) .clock-seat.is-suspected-evil .clock-seat-token { border-color: #d3515c; box-shadow: 0 0 16px rgba(211,81,92,.4); }
@media (max-width: 640px) { .player-seat-inspector .private-reminder-form { grid-template-columns: 1fr auto; }.player-seat-inspector .private-reminder-form label:nth-of-type(2),.player-seat-inspector .private-reminder-form button { grid-column: span 2; }.player-seat-inspector .private-reminder-form button { justify-self: start; }[data-private-reminder-noscript] .private-reminder-form { grid-template-columns: minmax(0, 1fr); }[data-private-reminder-noscript] .private-reminder-form button { justify-self: start; } }
@media (prefers-reduced-motion: no-preference) { .town-square-center strong { animation: winner-fade .7s ease-out; } } @keyframes winner-fade { from { opacity: .2; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
