:root { --paper:#181817; --ink:#f4f0e8; --muted:#a49d91; --line:#393630; --card:#22211e; --accent:#f17353; --accent-dark:#b74432; --soft:#302e29; --shadow:0 16px 40px rgba(0,0,0,.2); }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Manrope,sans-serif; min-height:100vh; transition:background .35s,color .35s; }
.noise { position:fixed; inset:0; pointer-events:none; opacity:.035; z-index:5; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
button,input,select { font:inherit; } button { cursor:pointer; border:0; color:inherit; } .hidden { display:none!important; }
.topbar { height:78px; padding:0 clamp(24px,5vw,72px); display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); position:relative; z-index:2; }.brand { display:flex; gap:9px; align-items:center; text-decoration:none; color:var(--ink); font-size:20px; font-weight:800; letter-spacing:-.06em; }.brand-mark { color:var(--accent); font-size:29px; line-height:0; transform:rotate(-25deg); display:inline-block; }.top-actions { display:flex; align-items:center; gap:18px; }.icon-btn { background:transparent; font-size:21px; color:var(--muted); padding:8px; }.text-btn { background:transparent; color:var(--muted); font-size:12px; font-weight:700; }.primary { background:var(--accent); color:#fff; border-radius:7px; font-weight:800; box-shadow:0 5px 0 var(--accent-dark); transition:.16s; }.primary:hover { transform:translateY(-2px); box-shadow:0 7px 0 var(--accent-dark); }.primary:active { transform:translateY(2px); box-shadow:0 2px 0 var(--accent-dark); }.primary.small { padding:11px 16px; font-size:12px; }.primary span,.secondary span { margin-left:13px; font-size:16px; }.theme-emoji { display:inline-block; font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif; font-style:normal; line-height:1; }
.game-motif { font-size:24px; opacity:.95; }.clock-sub .theme-emoji { font-size:18px; margin-right:5px; vertical-align:-2px; }
.clock.urgent { color:#f0a63e; animation:clock-pulse 1s ease-in-out infinite; }.clock.critical { color:#f0524f; animation:clock-critical .38s ease-in-out infinite alternate; }.game-stage.urgent .active-avatar { box-shadow:0 0 0 3px rgba(240,166,62,.4); }.game-stage.critical .active-avatar { box-shadow:0 0 0 3px rgba(240,82,79,.5); }.clock-sub.urgent { color:#f0a63e; }.clock-sub.critical { color:#f0524f; }.clock-sub.urgent .clock-progress i { background:#f0a63e; }.clock-sub.critical .clock-progress i { background:#f0524f; }
@keyframes clock-pulse { 50% { transform:scale(1.025); } } @keyframes clock-critical { from { transform:translateX(-3px); } to { transform:translateX(3px); } }
.setup-view { max-width:1200px; margin:auto; padding:68px 28px 80px; }.hero { display:grid; grid-template-columns:1.3fr 1fr; grid-template-rows:auto auto; column-gap:80px; margin-bottom:63px; }.eyebrow,.section-kicker { color:var(--accent); text-transform:uppercase; letter-spacing:.14em; font:500 10px 'DM Mono',monospace; }.live-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); display:inline-block; margin-right:6px; box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 15%,transparent); }.hero h1 { font:600 clamp(54px,7.5vw,91px)/.91 Fraunces,serif; letter-spacing:-.065em; margin:19px 0 0; }.hero h1 em { color:var(--accent); font-style:italic; }.hero-copy { align-self:end; max-width:380px; color:var(--muted); line-height:1.65; font-size:14px; margin:8px 0 15px; }.hero-meta { grid-column:1/-1; margin-top:35px; display:flex; align-items:center; gap:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font:10px 'DM Mono',monospace; }.hero-meta>span:first-child { font-size:14px; color:var(--ink); }.meta-rule { height:1px; width:34px; background:var(--line); }
.setup-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:27px 27px 24px; box-shadow:var(--shadow); }.card-heading { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:23px; }.card h2 { font:600 25px Fraunces,serif; letter-spacing:-.04em; margin:7px 0 0; }.count-pill { background:var(--soft); border-radius:20px; color:var(--muted); font:10px 'DM Mono',monospace; padding:7px 10px; margin-top:2px; }.settings-icon,.flow-icon,.palette-icon { color:var(--accent); font-size:23px; }.player-list { display:flex; flex-direction:column; gap:7px; }.player-row { display:grid; grid-template-columns:35px 1fr auto; align-items:center; gap:11px; min-height:45px; border-bottom:1px solid var(--line); }.avatar { height:31px; width:31px; display:grid; place-items:center; background:var(--soft); border-radius:7px; font-size:17px; }.player-name { border:0; background:transparent; color:var(--ink); outline:0; font-weight:700; font-size:13px; width:100%; }.remove-player { background:transparent; color:#b5afa4; opacity:0; font-size:19px; }.player-row:hover .remove-player { opacity:1; }.add-player { margin-top:16px; background:transparent; color:var(--accent); font-size:12px; font-weight:800; padding:4px 0; }.add-player span { font-size:18px; vertical-align:-2px; margin-right:7px; }.field-label { color:var(--muted); text-transform:uppercase; font:10px 'DM Mono',monospace; letter-spacing:.08em; margin-bottom:10px; }.mode-options { border:1px solid var(--line); border-radius:7px; overflow:hidden; }.mode-option { background:transparent; width:100%; min-height:55px; display:flex; align-items:center; gap:11px; border-bottom:1px solid var(--line); text-align:left; padding:9px 13px; }.mode-option:last-child { border:0; }.mode-option.active { background:var(--soft); }.radio { width:13px; height:13px; border:1.5px solid #aaa49a; border-radius:50%; position:relative; }.active .radio { border-color:var(--accent); }.active .radio:after { content:''; position:absolute; inset:3px; border-radius:50%; background:var(--accent); }.mode-option b,.switch-row b,.score-row b { display:block; font-size:12px; }.mode-option small,.switch-row small,.score-row small { display:block; color:var(--muted); font-size:10px; margin-top:2px; }.mode-option strong { margin-left:auto; color:var(--accent); font-size:18px; font-weight:500; }.time-fields { display:flex; gap:12px; margin:19px 0; }.time-fields label { flex:1; font-size:10px; color:var(--muted); font-weight:700; }.time-input { display:flex; align-items:center; margin-top:7px; border:1px solid var(--line); border-radius:6px; padding:0 10px; background:var(--paper); }.time-input input { width:100%; border:0; outline:0; background:transparent; color:var(--ink); padding:10px 0; font:500 18px 'DM Mono',monospace; }.time-input span { color:var(--muted); font:10px 'DM Mono',monospace; }.switch-row,.score-row { display:flex; justify-content:space-between; align-items:center; padding-top:16px; border-top:1px solid var(--line); }.switch-row input,.score-row input { display:none; }.switch { width:34px; height:19px; border-radius:15px; background:#625f58; position:relative; }.switch:after { content:''; position:absolute; background:#fff; height:15px; width:15px; border-radius:50%; top:2px; left:2px; transition:.2s; }.switch-row input:checked+.switch,.score-row input:checked+.switch { background:var(--accent); }.switch-row input:checked+.switch:after,.score-row input:checked+.switch:after { transform:translateX(15px); }.select-label { color:var(--muted); font-size:10px; font-weight:700; display:block; }.select-label select { width:100%; margin-top:8px; padding:11px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); outline:0; font-size:12px; }.order-label { margin-top:22px; }.order-options { display:flex; gap:8px; }.order-option { flex:1; padding:11px 8px; border:1px solid var(--line); border-radius:5px; background:transparent; color:var(--muted); font-size:10px; font-weight:700; }.order-option.active { border-color:var(--accent); color:var(--accent); background:color-mix(in srgb,var(--accent) 7%,transparent); }.order-option span { margin-left:5px; font-size:14px; }.score-row { margin-top:19px; }.themes-card { grid-column:1/-1; }.theme-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:9px; }.theme-tile { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:0; background:transparent; text-align:left; }.theme-swatch { width:100%; aspect-ratio:1.42; border-radius:6px; display:grid; place-items:center; color:#fff; font-size:22px; margin-bottom:7px; border:2px solid transparent; transition:.15s; }.theme-tile.selected .theme-swatch { border-color:var(--accent); box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--accent); }.theme-tile b { font-size:11px; }.theme-tile small { font-size:9px; color:var(--muted); }.default-swatch { background:linear-gradient(135deg,#ee704f,#f2b34c); }.fantasy-swatch { background:linear-gradient(135deg,#4c352c,#a1764c); }.space-swatch { background:linear-gradient(135deg,#181d42,#9a5cc9); }.nature-swatch { background:linear-gradient(135deg,#284d3d,#7f9b50); }.urban-swatch { background:linear-gradient(135deg,#172b35,#46a5ad); }.horror-swatch { background:linear-gradient(135deg,#1b171c,#8b292d); }.exploration-swatch { background:linear-gradient(135deg,#ac885f,#d6bd87); }.launch { display:block; margin:35px 0 0 auto; padding:15px 24px; font-size:12px; }.launch span { margin-left:28px; }
.game-view { min-height:calc(100vh - 78px); max-width:1060px; margin:auto; padding:27px 28px 45px; }.game-topline { display:flex; justify-content:space-between; align-items:center; }.back-btn { background:transparent; color:var(--muted); font-size:11px; font-weight:700; }.game-status { color:var(--muted); text-transform:uppercase; letter-spacing:.1em; font:10px 'DM Mono',monospace; }.status-separator { margin:0 10px; color:var(--line); }.game-stage { text-align:center; max-width:680px; margin:74px auto 52px; }.game-context { display:flex; justify-content:center; gap:18px; align-items:center; }.round-chip { border:1px solid var(--line); border-radius:20px; color:var(--accent); font:9px 'DM Mono',monospace; padding:7px 10px; }.active-player { margin-top:23px; display:flex; align-items:center; justify-content:center; gap:11px; }.active-avatar { width:40px; height:40px; display:grid; place-items:center; background:var(--soft); border-radius:9px; font-size:22px; }.active-player h1 { font:600 29px Fraunces,serif; letter-spacing:-.05em; margin:0; }.turn-marker { font:10px 'DM Mono',monospace; color:var(--accent); margin-left:5px; }.turn-marker span { color:var(--muted); margin-left:4px; }.clock { font:500 clamp(94px,16vw,168px)/1 'DM Mono',monospace; letter-spacing:-.1em; margin:32px 0 17px; }.clock-sub { color:var(--muted); text-transform:uppercase; font:10px 'DM Mono',monospace; letter-spacing:.12em; }.clock-progress { width:100%; height:3px; display:block; margin-top:14px; background:var(--soft); }.clock-progress i { width:100%; height:100%; display:block; background:var(--accent); transition:width 1s linear; }.game-controls { display:flex; justify-content:center; gap:9px; margin-top:32px; }.control { padding:14px 23px; min-width:125px; font-size:11px; }.secondary { background:var(--soft); border:1px solid var(--line); border-radius:7px; font-weight:800; }.keyboard-hint { margin-top:19px; color:var(--muted); font-size:10px; }.keyboard-hint span { display:inline-block; width:25px; }.keyboard-hint kbd { border:1px solid var(--line); border-bottom-width:2px; border-radius:3px; padding:3px 5px; font:9px 'DM Mono',monospace; color:var(--ink); }.next-player-panel { margin:25px auto 0; max-width:420px; padding:15px; border:1px solid var(--line); border-radius:8px; background:var(--card); }.next-player-title { color:var(--muted); text-transform:uppercase; letter-spacing:.1em; font:10px 'DM Mono',monospace; margin-bottom:10px; }.next-player-options { display:flex; gap:7px; flex-wrap:wrap; justify-content:center; }.next-player-option { display:flex; align-items:center; gap:7px; padding:9px 11px; border:1px solid var(--line); border-radius:6px; background:var(--soft); font-size:11px; font-weight:700; }.next-player-option:hover { border-color:var(--accent); color:var(--accent); }.scoreboard { border-top:1px solid var(--line); padding-top:15px; }.scoreboard-head { display:flex; justify-content:space-between; color:var(--muted); text-transform:uppercase; letter-spacing:.1em; font:10px 'DM Mono',monospace; margin-bottom:9px; }.score-row-game { display:grid; grid-template-columns:35px 1fr auto auto; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid var(--line); }.score-row-game.active { background:var(--card); border-radius:6px; color:var(--accent); }.score-name { font-weight:700; font-size:12px; }.score-value { font:500 17px 'DM Mono',monospace; min-width:36px; text-align:right; }.score-actions { display:flex; gap:4px; }.score-actions button { width:24px; height:24px; border-radius:4px; background:var(--soft); color:var(--muted); font-size:16px; }.toast { position:fixed; left:50%; bottom:25px; transform:translate(-50%,20px); opacity:0; pointer-events:none; background:var(--ink); color:var(--paper); padding:11px 15px; border-radius:6px; font-size:11px; transition:.25s; z-index:10; }.toast.show { opacity:1; transform:translate(-50%,0); }
.player-row { grid-template-columns:35px 1fr 25px 18px auto; }.icon-select { width:35px; height:31px; border:0; border-radius:7px; background:var(--soft); color:var(--ink); padding:0 3px; font-size:17px; text-align:center; }.color-picker { width:18px; height:18px; border:0; padding:0; border-radius:50%; background:transparent; cursor:pointer; }.color-picker::-webkit-color-swatch-wrapper { padding:0; }.color-picker::-webkit-color-swatch { border:0; border-radius:50%; }.color-picker::-moz-color-swatch { border:0; border-radius:50%; }
.game-active .topbar { display:none; }.game-active .game-view { min-height:100vh; }
html { -webkit-tap-highlight-color:transparent; } button,select,input { touch-action:manipulation; }.icon-btn,.text-btn,.back-btn,.add-player { min-height:44px; }.remove-player { min-width:44px; min-height:44px; opacity:1; }
@media (max-width:760px) { .topbar { height:65px; padding:0 16px; }.top-actions { gap:8px; }.top-actions .text-btn { display:none; }.top-actions .icon-btn { display:grid; place-items:center; }.setup-view { padding:25px 12px 42px; }.hero { display:block; margin-bottom:27px; }.hero h1 { font-size:clamp(48px,14vw,62px); }.hero-copy { font-size:13px; line-height:1.5; margin-top:18px; }.hero-meta { display:none; }.setup-grid { display:flex; flex-direction:column; gap:12px; }.card { padding:20px 15px 18px; }.card-heading { margin-bottom:18px; }.card h2 { font-size:23px; }.player-row { grid-template-columns:44px minmax(0,1fr) 40px 40px 40px; min-height:56px; gap:4px; }.icon-select { width:40px; height:40px; font-size:18px; }.color-picker { width:34px; height:34px; padding:8px; }.player-name { min-width:0; min-height:44px; font-size:14px; }.remove-player { min-width:40px; min-height:40px; }.mode-option { min-height:64px; }.time-fields { gap:8px; margin:15px 0; }.time-input input { min-height:46px; }.order-options { flex-direction:column; }.order-option { width:100%; min-height:52px; text-align:left; padding-left:14px; }.order-option span { float:right; margin-right:4px; }.theme-grid { grid-template-columns:repeat(3,1fr); gap:18px 8px; }.theme-swatch { aspect-ratio:1.3; margin-bottom:5px; }.theme-tile b { font-size:11px; }.theme-tile small { font-size:9px; }.launch { width:100%; margin-top:22px; }.game-view { padding:20px 12px 32px; min-height:100svh; display:flex; flex-direction:column; }.game-status { font-size:9px; }.game-stage { flex:1; width:100%; margin:clamp(42px,12vh,100px) auto 28px; display:flex; flex-direction:column; justify-content:center; }.active-player { margin-top:18px; }.active-player h1 { font-size:31px; }.clock { margin:clamp(26px,6vh,55px) 0 18px; font-size:clamp(78px,22vw,155px); }.game-controls { width:100%; gap:10px; margin-top:30px; }.control { flex:1; min-height:56px; font-size:12px; }.keyboard-hint { display:none; }.next-player-panel { width:100%; margin-top:22px; padding:16px 10px; }.next-player-options { gap:8px; }.next-player-option { min-height:48px; padding:8px 12px; }.score-row-game { min-height:58px; grid-template-columns:38px 1fr auto auto; padding:7px 8px; gap:10px; }.score-actions { gap:6px; }.score-actions button { width:44px; height:44px; font-size:20px; } }
@media (pointer:coarse) { button,select,input { min-height:48px; }.player-row { grid-template-columns:48px minmax(0,1fr) 48px 48px 48px; min-height:64px; gap:8px; }.icon-select { width:48px; height:48px; font-size:21px; }.player-name { font-size:15px; }.color-picker { width:40px; height:40px; padding:10px; }.topbar { min-height:72px; }.top-actions { gap:10px; }.primary.small { min-height:48px; padding:12px 18px; }.icon-btn,.text-btn,.back-btn { min-width:48px; min-height:48px; }.mode-option { min-height:72px; }.order-option { min-height:56px; font-size:12px; }.add-player { min-height:52px; font-size:13px; }.launch { min-height:58px; padding:16px 28px; font-size:13px; }.score-actions button { width:48px; height:48px; } }
@media (orientation:landscape) and (max-height:700px) { .topbar { height:64px; min-height:64px; }.setup-view { max-width:1440px; padding:28px clamp(28px,5vw,78px) 42px; }.hero { grid-template-columns:1fr 1fr; margin-bottom:34px; align-items:end; }.hero h1 { font-size:clamp(58px,8vw,88px); }.hero-copy { max-width:470px; margin-bottom:0; }.hero-meta { margin-top:24px; display:flex; }.setup-grid { grid-template-columns:1fr 1fr 1fr; display:grid; gap:18px; }.players-card { grid-row:span 2; }.settings-card,.extras-card { min-height:300px; }.themes-card { grid-column:2/-1; }.theme-grid { grid-template-columns:repeat(7,minmax(70px,1fr)); gap:12px; }.theme-swatch { aspect-ratio:1.4; }.launch { margin-top:25px; }.game-view { max-width:1440px; min-height:calc(100svh - 64px); padding:18px clamp(28px,5vw,78px) 28px; }.game-stage { max-width:900px; margin:14px auto 20px; }.active-player { margin-top:12px; }.clock { margin:16px 0 10px; font-size:clamp(92px,22vh,190px); }.game-controls { margin-top:20px; }.keyboard-hint { margin-top:12px; }.scoreboard { max-width:1100px; margin:0 auto; width:100%; } }
@media (min-width:761px) and (max-width:1200px) and (pointer:coarse) { .setup-view { padding-left:32px; padding-right:32px; }.card { padding:30px; }.theme-tile b { font-size:13px; }.theme-tile small { font-size:11px; } }
/* Readability baseline */
.eyebrow,.section-kicker { font-size:14px; letter-spacing:.12em; }.hero-copy { font-size:18px; }.hero-meta { font-size:12px; }
.card h2 { font-size:30px; }.field-label,.select-label,.time-fields label { font-size:13px; }.mode-option b,.switch-row b,.score-row b { font-size:15px; }.mode-option small,.switch-row small,.score-row small { font-size:13px; }.mode-option strong { font-size:23px; }.order-option { font-size:13px; }.theme-tile b { font-size:14px; }.theme-tile small { font-size:12px; }.game-status,.scoreboard-head { font-size:13px; }.clock-sub { font-size:13px; }.keyboard-hint { font-size:13px; }.score-name { font-size:15px; }.score-value { font-size:20px; }.next-player-title { font-size:13px; }.next-player-option { font-size:14px; }.back-btn,.text-btn { font-size:14px; }
@media (max-width:760px) { .eyebrow,.section-kicker { font-size:12px; }.hero-copy { font-size:15px; }.card h2 { font-size:26px; }.field-label,.select-label,.time-fields label { font-size:12px; }.mode-option b,.switch-row b,.score-row b { font-size:14px; }.mode-option small,.switch-row small,.score-row small { font-size:12px; }.theme-tile b { font-size:13px; }.theme-tile small { font-size:11px; }.game-status,.scoreboard-head,.clock-sub { font-size:12px; } }
/* Minimum readable text size */
.top-actions .text-btn,.primary.small,.eyebrow,.section-kicker,.hero-copy,.hero-meta,.count-pill,.field-label,.select-label,.time-fields label,.mode-option b,.switch-row b,.score-row b,.mode-option small,.switch-row small,.score-row small,.time-input span,.order-option,.theme-tile b,.theme-tile small,.game-status,.clock-sub,.control,.keyboard-hint,.keyboard-hint kbd,.turn-marker,.next-player-title,.next-player-option,.scoreboard-head,.score-name,.toast,.back-btn { font-size:16px; }
.count-pill,.hero-meta,.keyboard-hint kbd,.turn-marker { letter-spacing:normal; }
.score-actions { display:flex; flex-wrap:wrap; gap:4px; justify-content:flex-end; }.score-actions button { width:42px; height:42px; min-height:42px; padding:0 2px; border-radius:5px; font-size:16px; }
