:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f8f8ff;background:#090d19;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 15% 8%,#41227166,transparent 26rem),radial-gradient(circle at 90% 8%,#ff914a22,transparent 24rem),#090d19}
button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:#fdb86b}img{max-width:100%}
.shell{max-width:1160px;margin:auto;padding:22px 22px 70px}.narrow{max-width:740px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:46px}.brand{display:flex;align-items:center;gap:12px;font-weight:950;letter-spacing:.12em;font-size:18px;color:white;text-decoration:none}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:linear-gradient(145deg,#ffac61,#ee6636);color:#16131d;border-radius:11px;box-shadow:0 8px 26px #ff7a3b55}.club-logo{display:none;width:auto;max-width:90px;height:38px;object-fit:contain}.top-meta,.mono,.kicker,.tag,.button,.stat-label,.mini-label{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.top-meta{font-size:12px;color:#a5aabc;letter-spacing:.08em}.kicker{color:#f6a660;font-size:12px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;margin:0 0 12px}
h1,h2,h3,p{margin-top:0}h1{font-size:clamp(43px,8vw,92px);line-height:.95;letter-spacing:-.07em;margin-bottom:22px}h2{font-size:clamp(28px,4vw,46px);letter-spacing:-.045em;margin-bottom:14px}h3{font-size:21px;letter-spacing:-.025em}.lead{font-size:clamp(17px,2vw,22px);line-height:1.5;color:#c2c8d7;max-width:720px}.subtle{color:#a5aabc;line-height:1.55}.tiny{font-size:12px;color:#939baa}.hero{padding:26px 0 36px}.hero .accent,.accent{color:#ffae69}.eyebrow-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.pill,.tag{display:inline-flex;align-items:center;border:1px solid #444a62;border-radius:99px;padding:7px 11px;font-size:11px;letter-spacing:.08em;color:#d6d9e5;background:#ffffff09;text-transform:uppercase}.pill.orange{border-color:#ff985b66;color:#ffc08b;background:#ff985b18}.pill.live:before{content:"";width:7px;height:7px;border-radius:50%;background:#5ff0ad;margin-right:7px;box-shadow:0 0 12px #5ff0ad}
.panel{border:1px solid #ffffff1c;border-radius:24px;background:linear-gradient(145deg,#171c2de8,#121724ed);box-shadow:0 24px 70px #0005;padding:28px}.panel.soft{background:#101522bb}.panel + .panel{margin-top:16px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-title h2,.section-title h3{margin:0}.rule{height:1px;background:#ffffff20;margin:22px 0}
.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:22px}.choice{min-height:96px;text-align:left;border:1px solid #3b435c;background:#1d2438;border-radius:17px;color:white;padding:17px 18px;transition:transform .15s,border-color .15s,background .15s}.choice:hover,.choice.selected{transform:translateY(-2px);border-color:#ffaf6b;background:#3a2b35}.choice strong{display:block;font-size:17px;letter-spacing:.015em}.choice span{display:block;color:#b9bfce;font-size:13px;margin-top:5px;line-height:1.35}.button{border:1px solid #626b86;border-radius:12px;background:#242b42;color:white;font-size:13px;font-weight:850;letter-spacing:.045em;text-decoration:none;padding:14px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .15s,filter .15s}.button:hover{transform:translateY(-1px);filter:brightness(1.13)}.button.primary{color:#17101a;border-color:#ffb774;background:linear-gradient(135deg,#ffd083,#ff8d52);box-shadow:0 7px 25px #ff8c4e33}.button.ghost{background:transparent}.button.danger{border-color:#fd5a77;color:#ffc2cb;background:#5a223333}.button:disabled{opacity:.5;cursor:not-allowed;transform:none}.button.wide{width:100%}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.checkline{display:flex;gap:11px;align-items:flex-start;margin:18px 0;color:#cbd0dd;font-size:13px;line-height:1.5}.checkline input{margin-top:3px;accent-color:#ff9e5c}.notice{background:#272338;border:1px solid #8c6d55;border-radius:14px;padding:14px 16px;color:#f8d8b2;font-size:13px;line-height:1.5}.notice.error{background:#432133;border-color:#cf556e;color:#ffd0d8}.notice.good{background:#16372d;border-color:#4baf80;color:#c1f3d9}.notice + .notice{margin-top:10px}
.camera-wrap{position:relative;overflow:hidden;border-radius:23px;background:#020308;aspect-ratio:4/3;max-height:460px;border:1px solid #68718a}.camera-wrap video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.camera-wrap:after{content:"";position:absolute;inset:12% 23%;border:2px dashed #ffb87799;border-radius:50%;pointer-events:none}.camera-prompt{position:absolute;left:15px;right:15px;bottom:17px;text-align:center;padding:10px;background:#090d19d9;border-radius:10px;font-weight:800}.camera-hint{margin:14px 0;color:#b7bed0;font-size:14px}
.result-header{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:18px}.build-number{font-family:ui-monospace,monospace;font-size:13px;color:#ffad69;letter-spacing:.15em}.result-name{font-size:clamp(32px,7vw,62px);line-height:1;letter-spacing:-.065em;margin:4px 0 14px}.rarity{display:inline-block;padding:8px 13px;border-radius:99px;background:#5b6580;color:#fff;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.rarity.common{background:#38475d}.rarity.rare{background:#264d7f}.rarity.epic{background:#683f9f}.rarity.legendary{background:#9e5727}.rarity.root{background:linear-gradient(120deg,#f88e41,#f9d073);color:#24111a}.class-title{font-size:clamp(32px,6vw,56px);margin:12px 0 22px;letter-spacing:-.055em}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{background:#ffffff0b;border:1px solid #ffffff12;border-radius:14px;padding:12px 13px}.stat-label{color:#aeb6ca;font-size:10px;text-transform:uppercase;letter-spacing:.06em;min-height:24px}.stat-value{font-size:27px;font-weight:950;margin:4px 0}.stat-track{height:5px;background:#ffffff23;border-radius:8px;overflow:hidden}.stat-track i{display:block;height:100%;background:linear-gradient(90deg,#f18d58,#ffd079);border-radius:8px}.result-copy{border-left:2px solid #ffac64;padding-left:15px;margin:18px 0}.result-copy strong{display:block;color:#ffa968;font-family:ui-monospace,monospace;text-transform:uppercase;letter-spacing:.08em;font-size:11px;margin-bottom:7px}.result-copy p{color:#e6e8f0;line-height:1.42;margin:0}.result-side{background:#0c1120;border:1px solid #ffffff19;border-radius:18px;padding:23px}.qr-small{width:150px;height:150px;background:white;border-radius:11px;padding:7px}.claim-line{font-size:13px;color:#b5bed1}.field{margin:12px 0}.field label{display:block;color:#b9c1d1;font-size:12px;font-weight:750;letter-spacing:.05em;text-transform:uppercase;margin-bottom:7px}.field input,.field textarea,.field select{width:100%;border:1px solid #515972;background:#101726;border-radius:11px;color:white;padding:12px 13px;outline:none}.field textarea{min-height:110px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:#ffb072;box-shadow:0 0 0 3px #ffae6b22}.field input[type=number]{font-variant-numeric:tabular-nums}
.screen{max-width:1600px;min-height:100vh;padding:24px}.screen .topbar{margin-bottom:18px}.screen-grid{display:grid;grid-template-columns:minmax(300px,.88fr) minmax(450px,1.12fr);gap:20px}.screen-grid.qr-only{grid-template-columns:1fr}.screen-grid.stats-only{grid-template-columns:1fr}.screen-panel{background:#141a2bdf;border:1px solid #ffffff20;border-radius:24px;padding:26px;min-height:calc(100vh - 125px)}.screen-qr{width:min(48vh,380px);background:white;border-radius:20px;padding:14px;margin:24px auto 14px;display:block}.screen h1{font-size:clamp(38px,5vw,72px)}.screen-counter{font-size:clamp(65px,12vw,160px);line-height:.9;font-weight:1000;letter-spacing:-.09em;color:#ffb374}.screen-counter-label{font-family:ui-monospace,monospace;letter-spacing:.14em;color:#bec4d1;font-size:14px;margin-top:10px}.leader-list{display:grid;gap:9px}.leader-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:12px 14px;background:#ffffff0b;border:1px solid #ffffff12;border-radius:12px}.leader-row b{font-size:15px}.leader-row span{font-family:ui-monospace,monospace;color:#ffba79}.deploy{background:#422b35;border:1px solid #ff9b6455;padding:17px;border-radius:15px;margin-top:18px;font-family:ui-monospace,monospace;color:#ffca96}.deploy.flash{animation:pop .45s ease-out}@keyframes pop{from{transform:scale(.95);filter:brightness(1.8)}to{transform:scale(1);filter:brightness(1)}}
.admin-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.admin-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.stock-table,.weights-table{display:grid;grid-template-columns:1fr 110px;gap:8px;align-items:center}.stock-table input,.weights-table input{width:100%}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.metric{background:#ffffff0b;border-radius:13px;padding:14px}.metric b{display:block;font-size:25px}.metric span{font-size:11px;color:#aeb7c9}.trend{height:140px;display:flex;align-items:end;gap:3px;border-bottom:1px solid #ffffff3a;padding-top:10px}.trend i{flex:1;min-width:2px;background:linear-gradient(#ffca81,#f28052);border-radius:3px 3px 0 0}.login{max-width:420px;margin:7vh auto}.footer{color:#7d879c;font-family:ui-monospace,monospace;font-size:11px;text-align:center;margin-top:35px}.loading{display:flex;align-items:center;justify-content:center;min-height:50vh;font-family:ui-monospace,monospace;color:#ffb878;letter-spacing:.1em}.hidden{display:none!important}
@media(max-width:820px){.grid-2,.grid-3,.admin-layout,.screen-grid{grid-template-columns:1fr}.screen-panel{min-height:auto}.screen{padding:15px}.topbar{margin-bottom:22px}.panel{padding:20px}.screen-qr{width:min(68vw,330px)}.screen-counter{font-size:90px}}
@media(max-width:520px){.shell{padding:17px 16px 55px}.top-meta{font-size:10px}.brand{font-size:15px}.choice-grid{gap:9px}.choice{padding:13px;min-height:88px}.choice strong{font-size:14px}.choice span{font-size:11px}.admin-fields,.metric-row{grid-template-columns:1fr}.result-header{display:block}.result-name{font-size:42px}.camera-wrap{aspect-ratio:3/4}}

/* Student pages: compact, quiet, and readable on a phone. */
body:has(.student-page){background:#f5f3ee;color:#191919}
.student-page{max-width:none;min-height:100vh;background:#f5f3ee;color:#191919;padding:24px clamp(20px,4vw,52px) 34px}
.student-page .topbar{max-width:1100px;margin:0 auto 72px;padding-bottom:18px;border-bottom:1px solid #c9c6bf}
.student-page .brand{color:#191919;font-size:16px;letter-spacing:.02em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800}
.student-page .brand-mark{background:#191919;color:#f5f3ee;box-shadow:none;border-radius:5px;width:30px;height:30px;font-size:14px}
.student-page .top-meta{color:#68645d;font-size:11px}
.student-page .footer{max-width:1100px;margin:80px auto 0;text-align:left;border-top:1px solid #c9c6bf;padding-top:18px;color:#77736b;letter-spacing:.01em}
.student-flow{max-width:650px;margin:0 auto}
.student-flow .step{font:700 11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.15em;color:#c2522e;margin-bottom:18px}
.student-flow h1{font-size:clamp(42px,9vw,68px);line-height:1.02;letter-spacing:-.065em;margin-bottom:14px;font-weight:800}
.student-flow>p:not(.step),.student-flow .place{font-size:16px;line-height:1.5;color:#5c5a55}
.student-flow .choice-grid{gap:10px;margin:31px 0 26px}
.student-flow .choice{min-height:79px;padding:18px 20px;border:1px solid #c6c2b9;border-radius:7px;background:#fff;color:#191919;box-shadow:none;transform:none}
.student-flow .choice strong{font-size:15px;letter-spacing:.01em}
.student-flow .choice:hover{border-color:#191919;transform:none;background:#fff}
.student-flow .choice.selected{border-color:#191919;background:#191919;color:#fff;transform:none}
.student-flow .consent-box{border-top:1px solid #cbc7be;padding-top:18px;margin-top:12px}
.student-flow .consent-box p{color:#69655e;font-size:12px;line-height:1.5;margin-bottom:10px}
.student-flow .checkline{color:#252525;font-size:14px;font-weight:600;margin:12px 0 24px}
.student-flow .checkline input{accent-color:#191919;width:17px;height:17px;margin-top:1px}
.student-page .button{border-radius:6px;border-color:#191919;background:#fff;color:#191919;font-size:14px;font-weight:750;letter-spacing:0;padding:15px 18px;box-shadow:none;transform:none}
.student-page .button.primary{background:#191919;color:#fff;border-color:#191919;box-shadow:none}
.student-page .button:hover{filter:none;background:#e9e6de;transform:none}
.student-page .button.primary:hover{background:#373737}
.student-page .button:disabled{opacity:.45}
.student-page .notice{margin:15px 0;border-radius:6px;background:#fff0e6;color:#713c27;border:1px solid #e1b49b}
.student-page .notice.error{background:#fff0ed;color:#842c29;border-color:#e5aaa2}
.student-flow .place{border-top:1px solid #c9c6bf;border-bottom:1px solid #c9c6bf;margin-top:38px;padding:18px 0;display:grid;gap:8px}
.student-flow .place span{font:700 11px ui-monospace,monospace;letter-spacing:.12em;color:#ad4d2d}
.student-flow .place strong{color:#191919;font-weight:650}
.student-page .camera-wrap{margin:26px 0 22px;border:1px solid #191919;border-radius:7px;background:#111;max-height:490px}
.student-page .camera-wrap:after{border:1px solid #ffffffa0}
.student-page .camera-prompt{background:#191919e8;border-radius:4px;font-size:13px;font-weight:650}
.student-page .result-flow{max-width:1080px}
.student-page .result-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(245px,.6fr);gap:34px;align-items:start}
.student-page .result-card{background:#fff;border:1px solid #c9c6bf;border-radius:8px;padding:clamp(24px,4vw,43px)}
.student-page .result-header{align-items:center;margin-bottom:34px}
.student-page .build-number{color:#55514b;letter-spacing:.04em;font-size:12px}
.student-page .rarity{border-radius:4px;font-size:10px;padding:7px 10px;letter-spacing:.06em}
.student-page .result-name{font-size:clamp(42px,6vw,66px);font-weight:800;color:#191919;letter-spacing:-.06em;margin-bottom:26px;overflow-wrap:anywhere}
.student-page .class-label{font:700 11px ui-monospace,monospace;letter-spacing:.12em;color:#a54628;margin-bottom:5px}
.student-page .class-title{font-size:clamp(30px,4.5vw,47px);color:#191919;margin:0 0 30px;letter-spacing:-.05em}
.student-page .stat-grid{border-top:1px solid #d4d0c8;border-bottom:1px solid #d4d0c8;padding:16px 0;gap:0;grid-template-columns:repeat(4,1fr)}
.student-page .stat{border:0;border-radius:0;background:none;padding:7px 8px 7px 0}
.student-page .stat-label{display:block;color:#77726a;min-height:34px;font-size:10px;letter-spacing:0;text-transform:none}
.student-page .stat-value{display:block;font-size:29px;font-weight:800;color:#191919;margin:0}
.student-page .result-copy{border:0;padding:0;margin:27px 0 0}
.student-page .result-copy strong{font:700 11px ui-monospace,monospace;color:#a54628;letter-spacing:.1em;text-transform:uppercase;margin-bottom:7px}
.student-page .result-copy p{color:#2e2d2b;font-size:16px;line-height:1.45}
.student-page .result-actions{padding-top:0;display:grid;gap:10px}
.student-page .quiet-details{border-top:1px solid #c9c6bf;margin-top:13px;padding-top:17px;color:#333}
.student-page .quiet-details summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between}
.student-page .quiet-details summary:after{content:'+';font-weight:400}
.student-page .quiet-details[open] summary:after{content:'−'}
.student-page .quiet-details p{font-size:13px;color:#69655e;margin:12px 0}
.student-page .qr-small{border:1px solid #d3d0c8;border-radius:4px;padding:5px;margin-top:14px}
.student-page .field label{color:#68645d;font-size:11px}
.student-page .field input{background:#fff;border:1px solid #bdb9b0;border-radius:5px;color:#191919}
.student-page .build-tech{font-size:12px;line-height:1.5;color:#77726a;margin-top:19px}
.volunteer-list{display:grid;gap:7px}.volunteer-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #ffffff18}.volunteer-row .button{font-size:11px;padding:8px 10px}
@media(max-width:760px){.student-page .topbar{margin-bottom:50px}.student-page .result-layout{grid-template-columns:1fr;gap:20px}.student-page .result-actions{grid-template-columns:1fr 1fr}.student-page .result-actions .quiet-details,.student-page .result-actions .build-tech,.student-page .result-actions #message{grid-column:1/-1}}
@media(max-width:520px){.student-page{padding:17px 18px 30px}.student-page .topbar{margin-bottom:40px}.student-page .top-meta{font-size:9px}.student-flow .choice-grid{grid-template-columns:1fr 1fr;gap:8px}.student-flow .choice{min-height:72px;padding:13px}.student-flow .choice strong{font-size:13px}.student-page .result-card{padding:20px}.student-page .result-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:25px}.student-page .stat-grid{grid-template-columns:repeat(2,1fr)}.student-page .stat-label{min-height:20px}.student-page .result-actions{grid-template-columns:1fr}.student-page .result-actions .quiet-details,.student-page .result-actions .build-tech,.student-page .result-actions #message{grid-column:auto}}
