:root{font-family:Inter,"Segoe UI",sans-serif;background:#121212;color:#efe6d2;font-synthesis:none;--gold:#d9a441;--muted:#b9ad95;--line:#383838;--panel:#1c1c1c;--red:#f3aaa0}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}a{color:var(--gold);text-decoration:none}a:hover{text-decoration:underline}button,a,input,select{touch-action:manipulation}button{cursor:pointer}
.topbar{max-width:1240px;margin:auto;padding:27px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}
.brand{display:flex;align-items:center;color:#efe6d2;font-size:23px;font-weight:800;letter-spacing:-1px;white-space:nowrap}.brand:hover{text-decoration:none}.brand>span:not(.brand-icon){color:var(--gold)}.brand-icon{color:var(--gold);font-size:40px;margin-right:13px;line-height:1}.brand small{font-size:10px;letter-spacing:1px;font-weight:500;margin-left:12px;border-left:1px solid var(--line);padding-left:12px;color:var(--muted)}
nav{display:flex;align-items:center;gap:18px;font-size:14px}.account-name{color:var(--muted);max-width:160px;overflow:hidden;text-overflow:ellipsis}
main{max-width:1160px;margin:0 auto;min-height:calc(100dvh - 190px);padding:54px 24px 70px;outline:none}footer{max-width:1160px;margin:auto;border-top:1px solid var(--line);padding:22px 24px;display:flex;gap:16px;justify-content:space-between;font-size:12px;color:var(--muted)}
h1,h2,h3,p{margin-top:0}h1{font-size:clamp(32px,5vw,56px);font-weight:700;line-height:1.05;letter-spacing:-2px;margin-bottom:20px}h2{font-size:23px;letter-spacing:-.6px;margin-bottom:22px}h3{font-size:17px;margin-bottom:12px}.eyebrow{color:var(--gold);font-size:12px;text-transform:uppercase;letter-spacing:2px;font-weight:600;margin-bottom:17px}.muted{color:var(--muted);line-height:1.65}.lead{max-width:560px;font-size:17px}.hero{display:flex;gap:24px;justify-content:space-between;align-items:end;margin-bottom:40px}.hero .btn{flex-shrink:0;margin-bottom:6px}.layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:24px;align-items:start}
.panel{background:var(--panel);border:1px solid var(--line);padding:28px;border-radius:14px;margin-bottom:24px}.panel p:last-child{margin-bottom:0}.empty{border:1px dashed #555044;border-radius:14px;padding:36px;text-align:center;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.card{display:block;border:1px solid var(--line);border-radius:14px;padding:25px;color:#efe6d2;background:var(--panel);transition:border-color .15s}.card:hover{border-color:var(--gold);text-decoration:none}.card h2{margin:20px 0 18px;line-height:1.25;overflow-wrap:anywhere}.card-meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px}
.badge{display:inline-block;padding:6px 10px;border:1px solid #75613c;border-radius:30px;color:var(--gold);font-size:11px;letter-spacing:.4px}.status{font-size:13px;color:var(--muted)}.row{display:flex;align-items:center;gap:12px;justify-content:space-between}.stack{display:flex;flex-direction:column;gap:16px}.btn{border:1px solid var(--gold);border-radius:7px;background:var(--gold);color:#121212;font-weight:650;min-height:44px;padding:11px 19px;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{text-decoration:none;background:#f2c76b}.btn:disabled{opacity:.5;cursor:wait}.btn.secondary{background:transparent;color:#efe6d2;border-color:#756d5e}.btn.secondary:hover{border-color:var(--gold)}.btn.text{border:0;background:none;color:var(--muted);padding:6px;min-height:40px;font-weight:400}.btn.danger{background:none;color:var(--red);border-color:#674540}.btn.small{font-size:12px;min-height:36px;padding:7px 12px}
label{display:block;font-size:13px;color:#efe6d2;margin-bottom:8px}input,select{width:100%;background:#121212;color:#efe6d2;border:1px solid #59564f;border-radius:7px;min-height:46px;padding:11px 13px}input:focus,select:focus{outline:2px solid var(--gold);outline-offset:2px}input::placeholder{color:#a69e8e}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--gold);margin:0;flex-shrink:0}.checkbox{display:flex;gap:10px;align-items:center;margin:4px 0}.field{margin-bottom:19px}.hint{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:7px}.inline-fields{display:grid;grid-template-columns:1fr 110px;gap:16px}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.auth-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:90px;align-items:center;max-width:970px;margin:26px auto}.auth-layout h1{font-size:clamp(42px,5.5vw,68px)}.auth-layout .panel{margin-bottom:0}.auth-art{display:flex;gap:10px;align-items:end;height:75px;margin-top:45px}.auth-art span{background:#383838;width:13px;border-radius:5px}.auth-art span:nth-child(3n){background:var(--gold)}.auth-art span:nth-child(1){height:27px}.auth-art span:nth-child(2){height:49px}.auth-art span:nth-child(3){height:74px}.auth-art span:nth-child(4){height:43px}.auth-art span:nth-child(5){height:62px}.auth-art span:nth-child(6){height:31px}.auth-art span:nth-child(7){height:56px}.auth-art span:nth-child(8){height:75px}.auth-art span:nth-child(9){height:39px}
.alert{padding:14px 18px;border:1px solid #795044;background:#33251f;color:#ffc3b4;border-radius:9px;margin-bottom:24px;line-height:1.5;overflow-wrap:anywhere}.notice{border:1px solid #655c3b;background:#2c2b1f;color:#e9d7a8}.track{display:flex;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}.track:last-child{border-bottom:0}.track-number{color:var(--gold);font-size:12px;flex-shrink:0;width:20px}.track-info{flex:1;min-width:0}.track-info strong{font-size:15px;display:block;overflow-wrap:anywhere}.track-info small{display:block;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.track a{font-size:12px}.progress-item{padding:14px 0;border-bottom:1px solid var(--line)}.progress-item:last-child{border-bottom:0}.progress-item .row{font-size:14px;overflow-wrap:anywhere}progress{appearance:none;width:100%;height:5px;border:0;border-radius:4px;background:#383838;margin-top:12px}progress::-webkit-progress-bar{background:#383838;border-radius:4px}progress::-webkit-progress-value{background:var(--gold);border-radius:4px}progress::-moz-progress-bar{background:var(--gold);border-radius:4px}
.share{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.share input{font-size:12px}.share .row{margin-top:10px}.back{display:inline-flex;min-height:42px;align-items:center;font-size:13px;margin-bottom:20px}.page-title{margin-bottom:32px}.page-title h1{font-size:40px;margin-top:17px;overflow-wrap:anywhere}.loading{color:var(--muted);padding:40px 0}details{border-top:1px solid var(--line);padding-top:20px;margin-top:25px}summary{cursor:pointer;color:var(--muted);font-size:13px;margin-bottom:20px}.invite-item{padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.invite-item small{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:760px){.topbar{padding:18px 20px}.brand{font-size:20px}.brand small{display:none}nav{gap:10px;font-size:12px}.account-name{max-width:90px}main{padding:30px 18px 48px}.layout,.auth-layout{grid-template-columns:1fr;gap:12px}.auth-layout{margin:0;max-width:460px}.auth-layout h1{font-size:43px;letter-spacing:-1.5px}.auth-art{display:none}.auth-layout>section>p.lead{font-size:15px;margin-bottom:22px}.panel{padding:22px}.hero{display:block;margin-bottom:28px}.hero .btn{margin-top:8px}.hero h1{font-size:36px;letter-spacing:-1.3px}.grid{grid-template-columns:1fr}.page-title h1{font-size:33px}.track{gap:10px}.track .btn{padding:7px;min-width:38px}footer{font-size:11px;padding:20px 18px;flex-direction:column;gap:7px}}
audio{display:block;width:100%;max-width:360px;height:36px;margin:12px 0;min-width:0}.search-track{border-top:1px solid var(--line);padding:18px 0}.search-track:first-child{margin-top:24px}.search-track .track-info{padding-right:12px}
.choice-track{border:1px solid var(--line);border-radius:9px;padding:16px;margin:16px 0}.choice-track:has(input:checked),.choice-track.winner{border-color:var(--gold)}.choice-track label{display:flex;align-items:center;gap:14px;cursor:pointer;margin:0}.choice-track input[type=radio]{width:22px;min-height:22px;accent-color:var(--gold);flex-shrink:0}.choice-track input:disabled{cursor:default}.game-player{margin:14px 0 0 36px}.vote-controls{position:static;margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.voter-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.accepted{color:var(--gold)}#game-actions{margin-bottom:28px}@media(max-width:760px){nav{flex-wrap:wrap;justify-content:end;gap:4px 10px}.account-name{display:none}.game-player{margin-left:0}.choice-track{padding:13px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Marshall v2: local fonts, neutral tolex, brass controls and cream lettering. */
@font-face{font-family:Kaushan;src:url('/fonts/kaushan.ttf') format('truetype');font-display:swap}
@font-face{font-family:Oswald;src:url('/fonts/oswald.ttf') format('truetype');font-weight:200 700;font-display:swap}
:root{--cream:#efe6d2;--gold-bright:#f2c76b;--gold-deep:#9e6f22;--success:#9bd47e;--font-display:Oswald,'Arial Narrow',sans-serif;--font-mono:Consolas,monospace;color-scheme:dark}
body{background:radial-gradient(ellipse at 50% 0, #242424 0, transparent 600px),#121212}
.topbar{max-width:none;padding:20px max(24px,calc((100vw - 1112px)/2));background:#181818;border-bottom:1px solid var(--gold-deep);flex-wrap:wrap}
.brand{gap:16px;letter-spacing:0}.brand .wordmark{font-family:Kaushan,cursive;font-size:32px;font-weight:400;color:var(--gold-bright);line-height:1.4}
.brand small{display:block;margin:0;padding:5px 8px;border:1px solid var(--gold-deep);border-radius:4px;color:var(--gold);font:11px var(--font-mono);letter-spacing:1px}
nav a{padding:10px 0;min-height:44px;display:inline-flex;align-items:center;border-bottom:2px solid transparent}
nav a[aria-current=page]{color:var(--cream);border-color:var(--gold)}
h1,h2,h3{font-family:var(--font-display);font-weight:500;letter-spacing:.015em;line-height:1.18;overflow-wrap:anywhere}
h1{font-size:clamp(36px,5vw,56px)}h2{font-size:26px}h3{font-size:20px}
.eyebrow,.badge,.status,.card-meta,.track-number{font-family:var(--font-mono)}
.eyebrow{font-size:11px;letter-spacing:1.8px}
.hero,.page-title{padding:30px;border:1px solid #4b463b;border-radius:12px;background:linear-gradient(115deg,#292722,#1c1c1c 65%);position:relative;overflow:hidden}
.hero::before,.page-title::before{content:'';position:absolute;left:0;top:24px;bottom:24px;width:3px;background:var(--gold)}
.hero p{margin-bottom:0}.page-title h1{margin-bottom:0}
.panel{border-radius:12px;box-shadow:0 8px 24px #0002;border-color:#454139}
.panel>h2:first-child{border-bottom:1px solid #514632;padding-bottom:18px}
.panel .eyebrow{display:flex;align-items:center;gap:12px}
.panel .eyebrow::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,#75613c,transparent)}
.card{border-radius:12px;position:relative;overflow:hidden;background:linear-gradient(145deg,#242424,#1c1c1c);box-shadow:0 6px 18px #0002}
.card::before{content:'';position:absolute;top:0;left:24px;width:36px;height:3px;background:var(--gold-deep)}
.card:hover{background:#262626}.card h2{font-size:28px}.card-meta{font-size:12px;flex-wrap:wrap}
.badge{border-radius:5px;border-color:#75613c;background:#30291b;font-size:11px;line-height:1.5}
.badge.live::before{content:'';display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#ff6a5f;box-shadow:0 0 8px #d8362f80}
.btn{background:linear-gradient(180deg,#e9bb62,#d9a441);color:#211909;border-color:#e9bb62;border-radius:8px;box-shadow:inset 0 1px #ffdf9840;min-height:46px}
.btn:hover{background:var(--gold-bright)}.btn.secondary{background:#222;color:var(--cream);box-shadow:none}.btn.secondary:hover{background:#2b2924}
.btn.text,.btn.danger{box-shadow:none}.btn:disabled{cursor:not-allowed}.btn.small{min-height:44px}
:where(a,button,summary):focus-visible{outline:2px solid var(--gold-bright);outline-offset:4px;border-radius:4px}
input,select{background:#141414;border-radius:8px}input[type=radio]{margin:0}
.auth-layout{max-width:1040px;gap:64px;margin:38px auto}.auth-layout h1{font-size:clamp(42px,5.2vw,64px);letter-spacing:0;line-height:1.18}
.auth-layout>.panel{border-top:3px solid var(--gold);padding:32px}.auth-layout form>.btn{width:100%}
.auth-art{height:100px;gap:6px;padding:18px 24px;border:1px solid #514632;border-radius:10px;width:max-content;max-width:100%;background:repeating-linear-gradient(0deg,#242424 0 1px,#191919 1px 4px);box-shadow:inset 0 2px 8px #0008}
.auth-art span{width:12px;max-height:64px;border-radius:2px;background:repeating-linear-gradient(to top,#a78b51 0 5px,#242424 5px 7px)}
.auth-art span:nth-child(3n){background:repeating-linear-gradient(to top,#e4b357 0 5px,#242424 5px 7px)}
.empty{background:#191919;border-color:#595247;padding:44px 24px}.empty h3{color:var(--cream);font-size:28px}
.row{flex-wrap:wrap}.row>*{min-width:0}.track-info{overflow-wrap:anywhere}
progress{height:7px}progress::-webkit-progress-value{background:linear-gradient(90deg,#9e6f22,#f2c76b)}
.choice-track{background:#161616;border-color:#454139;border-radius:10px;padding:20px;transition:border-color .15s,background .15s}
.choice-track:has(input:checked){background:#30291b;border-color:var(--gold);box-shadow:inset 3px 0 var(--gold)}
.choice-track:has(input:not(:disabled)){cursor:pointer}
.choice-track.winner{border-color:var(--success)}.choice-track label{min-height:44px}
.choice-track .track-info strong{font-size:17px}.game-player{padding-top:12px;border-top:1px solid #383838}
.vote-controls{padding:20px 0 0}.accepted{color:var(--success)}
.podium .track{padding:24px 0}.podium .track-number{font-size:24px;width:48px;height:48px;display:grid;place-items:center;border:1px solid #75613c;border-radius:8px}
.podium .track[data-place="1"] .track-number{background:var(--gold);color:#211909}.podium .track-info strong{font-size:21px}
audio{height:42px;max-width:100%}footer{font-family:var(--font-mono);font-size:11px}
@media(max-width:760px){
  .topbar{padding:14px 18px;gap:10px}.brand .wordmark{font-size:28px}.brand small{font-size:10px}
  nav{width:100%;justify-content:start;gap:8px 20px}nav:empty{display:none}nav .btn{margin-left:auto}
  main{padding:28px 16px 44px}.hero,.page-title{padding:24px}.hero h1{letter-spacing:0;font-size:36px}
  .auth-layout{gap:20px;margin:0 auto}.auth-layout h1{letter-spacing:0;font-size:42px}.auth-layout>.panel{padding:24px}
  .panel{padding:22px 18px}.auth-art{display:none}.card{padding:24px}.choice-track{padding:16px 12px}
  .game-player{margin-left:0}.vote-controls>.btn{width:100%}.inline-fields{grid-template-columns:minmax(0,1fr) 90px}
  .page-title h1{font-size:32px}.form-actions>.btn{flex:1}.track{flex-wrap:wrap}.track-info{min-width:140px}
}
.game-header{padding:14px 18px;margin-bottom:16px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:8px;background:#20201e}
.game-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.game-heading h1{font-size:24px;line-height:1.2;letter-spacing:0;margin:0;min-width:0;overflow-wrap:anywhere}
.game-heading .badge{flex-shrink:0;padding:3px 7px;font-size:10px}
#game-state{display:flex;flex-wrap:wrap;gap:4px 18px}
#game-state>.muted{font-size:13px;line-height:1.5;margin:0}
#game-state>.alert{flex-basis:100%;margin:6px 0 0}
#online-round-progress>.muted{font-size:13px;margin:4px 0 0;line-height:1.5}
.online-participants{margin-top:8px;padding-top:8px}.online-participants summary{margin:0;font-size:13px}.online-participants[open] summary{margin-bottom:8px}.online-participants .row{padding:3px 0;font-size:13px}
.round-summary h2{margin-top:0}.round-summary h3{font-size:18px;margin:20px 0 8px}.round-summary .track{padding:12px 0}.round-summary .badge{white-space:nowrap}.round-set-results{margin:24px 0}.round-set-results>summary,.round-history>summary{cursor:pointer;color:var(--gold)}.round-set{border-top:1px solid var(--line);margin-top:16px}.round-set>div>p{font-size:12px;color:var(--muted);margin:0 0 12px}.round-history{margin-top:24px}.round-history>summary{margin-bottom:16px}
.share .invite-code{font-family:var(--font-mono);font-size:16px;letter-spacing:.5px}.share>.row{margin-bottom:16px}
@media(max-width:480px){.game-header{padding:12px}.game-heading{align-items:start}.game-heading h1{font-size:22px}#game-state{gap:2px 12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
