.duel .audio-toggle{z-index:12;padding:.35rem .6rem;font-size:.75rem;position:absolute;top:6.75rem;right:1.25rem}:root{--bg:#0b0d17;--panel:#14172adb;--line:#a0aadc2e;--text:#ece8dc;--muted:#9aa0bd;--gold:#e8c46a;--good:#8ff0b0;--bad:#ff7b6b;--mono:ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;--serif:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}h1,h2,h3,p{margin:0}button{font:inherit;color:var(--text);border:1px solid var(--line);cursor:pointer;background:#ffffff0f;border-radius:8px;padding:.55rem 1.1rem;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#ffffff1f;border-color:#c8cdf066}button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--gold);border-color:var(--gold);color:#1a1505;font-weight:600}button.primary:hover:not(:disabled){background:#f3d488;border-color:#f3d488}input{font:inherit;color:var(--text);border:1px solid var(--line);background:#0000004d;border-radius:8px;min-width:0;padding:.55rem .75rem}code{font-family:var(--mono)}.page{flex-direction:column;gap:1.25rem;max-width:880px;margin:0 auto;padding:clamp(1.5rem,5vh,4rem) 1.25rem 3rem;display:flex}.masthead h1{font-family:var(--serif);letter-spacing:.02em;color:var(--gold);font-size:clamp(2.6rem,7vw,4.2rem);font-weight:600;line-height:1.1}.masthead.small h1{font-size:2rem}.masthead p{color:var(--muted);max-width:34rem;margin-top:.4rem}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:1.1rem;padding:1.25rem;display:flex}.panel h2,.class-card h2{font-size:1.05rem;font-weight:600}.panel p{color:var(--muted);font-size:.92rem}.field{max-width:16rem;color:var(--muted);flex-direction:column;gap:.3rem;font-size:.85rem;display:flex}.choice{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding-top:1.1rem;display:flex}.row{flex-wrap:wrap;gap:.6rem;display:flex}.row.end{justify-content:flex-end}.error{color:var(--bad)!important}.how-list{color:var(--muted);flex-direction:column;gap:.35rem;margin:0;padding-left:1.1rem;font-size:.92rem;display:flex}.rules summary{cursor:pointer;font-weight:600}.rules[open] summary{margin-bottom:.2rem}.classes{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.9rem;display:grid}.class-card{text-align:left;background:var(--panel);border:1px solid var(--line);border-top:4px solid var(--robe);color:var(--muted);border-radius:14px;flex-direction:column;gap:.45rem;padding:1.1rem;font-size:.9rem;display:flex}.class-card h2{color:var(--text);font-family:var(--serif);font-size:1.35rem}.class-card .suits{color:var(--text)}.class-card.chosen{border-color:var(--gold);border-top-color:var(--robe);background:#e8c46a14}.class-card:disabled{opacity:1}.class-card:disabled:not(.chosen){opacity:.45}.class-spell{border-top:1px solid var(--line);flex-direction:column;gap:.15rem;margin-top:auto;padding-top:.6rem;display:flex}.class-spell span{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem}.class-spell code{color:var(--text);font-size:.85rem}.versus{flex-flow:wrap;align-items:center}.seat{flex-direction:column;flex:240px;gap:.15rem;min-width:0;display:flex}.seat-name{font-weight:600}.seat-class,.seat-status{color:var(--muted);font-size:.88rem}.seat-status.ready{color:var(--good)}.vs{font-family:var(--serif);color:var(--gold);font-size:1.3rem}.invite{gap:.5rem;margin-top:.4rem;display:flex}.invite input{font-family:var(--mono);flex:1;font-size:.8rem}.duel{position:fixed;inset:0;overflow:hidden}.duel-canvas,.hud{position:absolute;inset:0}.hud{pointer-events:none;flex-direction:column;display:flex}.hud button{pointer-events:auto}.topbar{grid-template-columns:1fr auto 1fr;align-items:start;gap:1.5rem;padding:1rem 1.25rem;display:grid}.nameplate{flex-direction:column;gap:.3rem;min-width:0;display:flex}.nameplate.mirrored{align-items:flex-end}.nameplate .who{align-items:baseline;gap:.6rem;display:flex}.nameplate.mirrored .who{flex-direction:row-reverse}.nameplate .name{font-weight:600}.nameplate .class{color:var(--muted);font-size:.82rem}.hp{border:1px solid var(--line);background:#00000080;border-radius:999px;width:min(100%,22rem);height:1.15rem;position:relative;overflow:hidden}.hp-fill{background:linear-gradient(90deg,#c7453f,#e8785a);height:100%;transition:width .25s ease-out}.nameplate.mirrored .hp-fill{margin-left:auto}.hp-text{font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #000;place-items:center;font-size:.75rem;font-weight:600;display:grid;position:absolute;inset:0}.chips{gap:.4rem;min-height:1.3rem;font-size:.75rem;display:flex}.chip{background:#00000080;border:1px solid;border-radius:999px;padding:.05rem .5rem}.chip.bad{color:var(--bad)}.score{align-items:center;gap:.8rem;padding-top:.2rem;display:flex}.timer{font-family:var(--serif);text-align:center;font-variant-numeric:tabular-nums;min-width:5.5rem;color:var(--gold);font-size:1.5rem}.pips{gap:.3rem;display:flex}.pips i{border:1px solid var(--gold);border-radius:50%;width:.7rem;height:.7rem}.pips i.won{background:var(--gold)}.toasts{position:absolute;inset:0}.toast{text-shadow:0 2px 6px #000;font-size:1.5rem;font-weight:700;animation:1.2s ease-out forwards float-up;position:absolute;left:50%}.toast.foe{top:30%}.toast.me{top:70%}.toast.bad{color:var(--bad)}.toast.info{color:#cfd6ff}@keyframes float-up{0%{opacity:0;transform:translate(-50%,.6rem)}15%{opacity:1}to{opacity:0;transform:translate(-50%,-2.6rem)}}.center{flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:.8rem;padding:0 1rem clamp(4.5rem,15vh,9rem);display:flex}.banner{font-family:var(--serif);text-shadow:0 2px 8px #000;font-size:1.5rem;animation:1.2s ease-out forwards banner-in}.banner.perfect{color:var(--gold);font-size:2rem}.banner.good{color:var(--good)}.banner.bad{color:var(--bad)}@keyframes banner-in{0%{opacity:0;transform:scale(.85)}20%{opacity:1;transform:scale(1)}75%{opacity:1}to{opacity:0}}.incantation{text-align:center;background:#0809129e;border-radius:12px;max-width:94vw;padding:.8rem 1.4rem}.incantation .glyphs{font-family:var(--mono);letter-spacing:.06em;white-space:pre-wrap;font-size:clamp(1.4rem,3.1vw,2.7rem);line-height:1.35}.glyph.ok{color:var(--good)}.glyph.bad{color:var(--bad);text-decoration:line-through}.glyph.next{color:#fff;border-bottom:3px solid var(--gold)}.glyph.todo{color:#c9cde6}.glyph.deco{color:#6b7196}.cast-meta,.hint{color:var(--muted);text-shadow:0 1px 4px #000;font-size:.85rem}.cast-meta{margin-top:.3rem}.fogged .glyphs{filter:blur(5px)}.shaking{animation:.12s linear infinite shake}@keyframes shake{0%{transform:translate(3px,-2px)}25%{transform:translate(-3px,2px)}50%{transform:translate(2px,3px)}75%{transform:translate(-2px,-3px)}to{transform:translate(3px,-2px)}}.grimoire{background:linear-gradient(#0000,#080912e0 35%);grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:.7rem 1.25rem .9rem;display:grid}.grimoire-column{flex-direction:column;gap:.2rem;min-width:0;display:flex}.grimoire-column h3{text-transform:uppercase;letter-spacing:.1em;color:var(--el);font-size:.7rem;font-weight:600}.spell{border-left:2px solid var(--el);background:#ffffff0a;border-radius:0 6px 6px 0;justify-content:space-between;align-items:baseline;gap:.6rem;padding:.12rem .5rem;display:flex}.spell .glyphs{font-family:var(--mono);white-space:pre-wrap;font-size:.86rem}.spell .glyph.next{color:var(--el);border-bottom:none;font-weight:700}.spell-name{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.72rem}.spell.cooling{opacity:.4}.spell.active{background:#ffffff24}.overlay{text-align:center;background:#08091273;flex-direction:column;justify-content:center;align-items:center;gap:.6rem;display:flex;position:absolute;inset:0}.overlay.solid{background:#080912cc}.overlay p{color:var(--muted);text-transform:uppercase;letter-spacing:.14em;font-size:.9rem}.overlay strong{font-family:var(--serif);color:var(--gold);font-size:clamp(4rem,14vw,8rem);font-weight:600;line-height:1}.overlay strong.result{font-size:clamp(2.6rem,8vw,5rem)}.overlay .row{margin-top:1rem}@media (width<=720px){.grimoire{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){.shaking,.banner,.toast{animation-duration:10ms}}.lesson{z-index:5;background:#0e1020eb;border:1px solid #e8c46a73;border-radius:12px;width:min(27rem,100vw - 2.5rem);padding:.8rem 1.1rem .95rem;position:fixed;top:5.6rem;left:1.25rem;box-shadow:0 10px 30px #00000073}.lesson header{color:var(--muted);align-items:center;gap:.8rem;font-size:.75rem;display:flex}.lesson-step{text-transform:uppercase;letter-spacing:.1em}.lesson-dots{gap:.3rem;margin-right:auto;display:flex}.lesson-dots i{background:#ffffff29;border-radius:2px;width:1.1rem;height:.22rem}.lesson-dots i.done{background:var(--good)}.lesson-dots i.current{background:var(--gold)}button.link{color:var(--muted);background:0 0;border:none;padding:.1rem .2rem;font-size:.75rem;text-decoration:underline}button.link:hover:not(:disabled){color:var(--text);background:0 0}.lesson-text{animation:.35s ease-out lesson-in}.lesson h2{font-family:var(--serif);color:var(--gold);margin:.35rem 0 .15rem;font-size:1.25rem;font-weight:600}.lesson p{font-size:.95rem}.lesson code{color:#fff;white-space:nowrap;background:#ffffff1a;border-radius:5px;padding:.05rem .35rem}.lesson-note{border-top:1px solid var(--line);color:var(--bad);margin-top:.45rem;padding-top:.45rem}@keyframes lesson-in{0%{opacity:0;transform:translateY(-.4rem)}to{opacity:1;transform:none}}.tutorial-done{z-index:6;position:fixed}.tutorial.finished .duel .overlay{display:none}.ward-hint{border:1px solid var(--el);color:var(--muted);background:#080912c7;border-radius:999px;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:.45rem;padding:.35rem .9rem;font-size:.9rem;display:flex}.ward-hint .incoming{color:var(--el);font-weight:600}.ward-hint code{color:#fff;font-size:1rem}@media (prefers-reduced-motion:reduce){.lesson-text{animation:none}}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.hall-page,.league-page{max-width:1280px;margin:0 auto;padding:1.65rem 2rem 3rem}.hall-topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:2rem;padding-bottom:1.6rem;display:flex}.wordmark{font:600 2rem/1 var(--serif);color:var(--gold);letter-spacing:.015em}.wordmark>span{color:var(--muted);letter-spacing:0;margin-top:.5rem;font:400 .75rem/1.4 system-ui,sans-serif;display:block}.hall-nav{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}.hall-nav>button,.hall-nav>.nav-current{background:0 0;border:0;border-radius:6px;padding:.65rem .9rem;font-size:.88rem}.hall-nav>.nav-current{color:var(--gold);box-shadow:inset 0 -2px var(--gold)}.hall-nav .profile-link{border:1px solid var(--line);align-items:center;gap:.55rem;max-width:24rem;margin-left:.5rem;padding:.4rem .7rem;display:flex}.profile-link>span{text-overflow:ellipsis;white-space:nowrap;max-width:10rem;overflow:hidden}.profile-link>strong{color:var(--gold);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.72rem}.hall-kicker{color:var(--gold);font-size:.85rem;line-height:1.5}.hall-hero{grid-template-columns:minmax(320px,.9fr) minmax(0,1.3fr);align-items:center;gap:1rem;min-height:490px;padding:2.5rem 0 2rem;display:grid;position:relative}.hero-copy{z-index:2;padding:0 0 1.25rem;position:relative}.hero-copy h1{font:500 clamp(3.5rem,6.2vw,5.3rem)/.99 var(--serif);letter-spacing:-.045em;color:var(--text);margin:1rem 0 1.3rem}.hero-description{color:#b8bad1;max-width:24rem;font-size:1rem;line-height:1.65}.hero-actions{flex-wrap:wrap;gap:.75rem;margin-top:1.65rem;display:flex}.hero-actions button{text-align:left;min-height:66px;padding:.8rem 1.1rem;font-size:1rem;line-height:1.3;box-shadow:0 5px 20px #0003}.hero-actions button>span{opacity:.8;margin-top:.35rem;font-size:.72rem;font-weight:400;display:block}.hero-actions .friend-action{background:#191d31;border-color:#555474}.keyboard-note{color:#949bb8;margin-top:1rem;font-size:.75rem;display:block}.keyboard-note>span{margin-right:.2rem;font-size:1rem}.hall-error{border-left:2px solid var(--bad);max-width:27rem;margin-top:1rem;padding-left:.7rem}.hero-cast{isolation:isolate;justify-content:center;align-items:flex-end;gap:0;min-width:0;height:410px;display:flex;position:relative}.hero-cast:before{content:"";z-index:-2;background:radial-gradient(at 50% 62%,#32346199,#0000 65%);border-bottom:1px solid #6c658a44;border-radius:50% 50% 15% 15%;position:absolute;inset:8% 4% 0}.hero-floor{z-index:-1;background:radial-gradient(#dcb96813,#0000 70%);border:1px solid #e8c46a26;border-radius:50%;height:60px;position:absolute;bottom:17px;left:8%;right:4%}.hero-mage{flex-direction:column;flex-shrink:0;align-items:center;width:34%;height:370px;display:flex;position:relative}.hero-mage.duelist{z-index:1;transform:translate(8px,10px)rotate(-5deg)}.hero-mage.archivist{z-index:2;height:410px}.hero-mage.warden{z-index:1;transform:translate(-8px,10px)rotate(5deg)}.hero-mage .class-artwork{width:135%;height:calc(100% - 36px);overflow:visible}.hero-mage-name{font:500 1rem/1.4 var(--serif);color:#d7d3e3;text-shadow:0 1px 6px #000;z-index:3;background:#0b0d17b3;border-radius:20px;margin-top:-.7rem;padding:4px 12px}.class-artwork{isolation:isolate;min-width:0;position:relative;overflow:hidden}.class-artwork img{object-fit:contain;filter:drop-shadow(0 12px 12px #0004);width:100%;height:100%;display:block}.artwork-fallback{height:100%;min-height:120px;color:var(--muted);font-family:var(--serif);flex-direction:column;justify-content:center;align-items:center;gap:1rem;display:flex}.hero-mage .artwork-fallback{background:radial-gradient(#55567522,#0000 65%)}.class-badge{vertical-align:middle;color:#b8b4e4;flex-shrink:0;align-items:center;gap:.55rem;line-height:1;display:inline-flex}.class-badge.duelist{color:#ed9293}.class-badge.archivist{color:#aaa8ff}.class-badge.warden{color:#93d5b0}.class-badge svg{fill:none;stroke:currentColor;stroke-width:2.1px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;width:38px;height:38px}.class-badge .crest-frame{fill:#171b2c;stroke-opacity:.55;stroke-width:1.1px}.class-badge.large svg{stroke-width:1.8px;width:82px;height:82px}.class-badge.with-label{font-size:.82rem}.hall-lower{grid-template-columns:1fr 1fr;gap:1.25rem;display:grid}.hall-panel{border:1px solid var(--line);background:linear-gradient(135deg,#1a1e32,#101421);border-radius:12px;padding:1.5rem;position:relative}.section-heading{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.15rem;display:flex}.section-heading h2{font:500 1.3rem/1.25 var(--serif);color:var(--text)}.section-heading p{color:var(--muted);margin-top:.3rem;font-size:.8rem}.quiet-label{color:var(--muted);font-size:.72rem}.player-panel .field{max-width:none}.player-panel input{background:#0a0d1b99;border-color:#60617b55;width:100%;max-width:25rem}.player-summary{justify-content:space-between;gap:1rem;margin-top:1.1rem;display:flex}.player-summary>div{flex-direction:column;gap:.15rem;display:flex}.player-summary strong{font:500 1.65rem var(--serif);color:var(--gold);font-variant-numeric:tabular-nums}.player-summary span{color:var(--muted);font-size:.72rem}.player-panel>p,.practice-panel>p{color:var(--muted);font-size:.86rem;line-height:1.6}.player-panel>p{margin-top:1rem}.player-panel .league-reward-note{color:#c5be9b;border-top:1px solid var(--line);margin-top:1.2rem;padding-top:.9rem;font-size:.78rem}.scoring-details{color:var(--muted);margin-top:.45rem;font-size:.76rem}.scoring-details summary{cursor:pointer;color:#c1c4d9}.scoring-details p{max-width:60ch;margin-top:.6rem;line-height:1.7}.tutorial-action{justify-content:space-between;align-items:center;gap:1rem;width:100%;min-height:46px;margin-top:1.1rem;display:flex}.tutorial-action span{opacity:.8;font-size:.72rem;font-weight:400}.practice-options{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.65rem;margin-top:1.2rem;padding-top:1rem;font-size:.85rem;display:flex}.practice-options small{width:100%;color:var(--muted);font-size:.72rem}.practice-options button{padding:.5rem .7rem;font-size:.78rem}.hall-rules{border-top:1px solid var(--line);color:var(--muted);max-width:80ch;margin-top:1.4rem;padding:1rem 0;font-size:.85rem}.hall-rules summary{cursor:pointer;color:#c1c4d9}.hall-rules p,.hall-rules ul{margin-top:.8rem;line-height:1.7}.hall-rules p+p{margin-top:.5rem}.league-page{max-width:1100px}.league-heading{justify-content:space-between;align-items:center;gap:1.2rem;padding:2.6rem 0 2rem;display:flex}.league-heading h1,.profile-intro h1{font:500 clamp(2.3rem,5vw,3.3rem)/1.1 var(--serif);letter-spacing:-.025em;margin:.4rem 0 .6rem}.league-heading>div>p:last-child{color:var(--muted);font-size:.92rem}.board-shell{border:1px solid var(--line);background:#101421;border-radius:12px;overflow:hidden}.board-toolbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem 1.5rem;display:flex}.board-toolbar>p{color:var(--muted);font-size:.75rem}.period-picker{background:#080c17;border:1px solid #6a628b44;border-radius:8px;gap:3px;padding:3px;display:flex}.period-picker>button{background:0 0;border:none;padding:.45rem .8rem;font-size:.82rem}.period-picker>button[aria-pressed=true]{color:var(--gold);background:#353044}.table-scroll{overflow:auto}.leaderboard-table{border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums;width:100%}.leaderboard-table thead{color:var(--muted);font-size:.73rem}.leaderboard-table th,.leaderboard-table td{padding:.85rem 1.5rem}.leaderboard-table thead th{border-bottom:1px solid var(--line);font-weight:500}.leaderboard-table tbody tr+tr{border-top:1px solid #9a9ec216}.leaderboard-table tbody th{font-weight:500}.leaderboard-table .number{text-align:right}.rank-cell{width:100px;color:var(--muted)}.board-podium .rank-cell{color:var(--gold);font:500 1.3rem var(--serif)}.board-points{color:var(--gold);font-size:1.1rem}.leaderboard-table tr.is-you{box-shadow:inset 3px 0 var(--gold);background:#c1a6550e}.board-player{align-items:center;gap:.9rem;min-width:150px;display:flex}.board-player>span{overflow-wrap:anywhere}.board-player small{color:var(--gold);border:1px solid #e8c46a44;border-radius:4px;margin-left:.5rem;padding:1px 6px;font-size:.65rem;display:inline-block}.board-player em{color:var(--muted);margin-top:.2rem;font:400 .72rem system-ui,sans-serif;display:block}.unclassed-crest{text-align:center;width:38px;color:var(--muted);font-size:2rem}.your-standing{background:#1c1d2d;border-top:1px solid #e8c46a44;padding:1.1rem 1.5rem}.your-standing>span{color:var(--muted);font-size:.73rem}.your-standing>div{align-items:center;gap:1.2rem;margin-top:.35rem;display:flex}.your-standing strong{font:500 1.35rem var(--serif);color:var(--gold)}.your-standing b{color:var(--gold);font-variant-numeric:tabular-nums;margin-left:auto;font-weight:500}.your-standing p{color:var(--muted);margin-top:.4rem;font-size:.85rem}.board-state{text-align:center;flex-direction:column;align-items:center;gap:.8rem;padding:3rem 1.5rem;display:flex}.board-state h1,.board-state h2{font:500 1.6rem var(--serif)}.board-state p{max-width:45ch;color:var(--muted);font-size:.9rem}.board-state button{margin-top:.3rem}.profile-hero{grid-template-columns:270px minmax(0,1fr);gap:2.5rem;min-height:340px;margin-top:2rem;padding:0 2.5rem 0 0;display:grid;overflow:hidden}.profile-portrait{background:radial-gradient(at 50% 70%,#34305788,#0000 80%);height:100%;min-height:340px}.profile-portrait .class-artwork{height:340px}.profile-intro{padding:2rem 0}.profile-intro>p{color:var(--muted);font-size:.85rem}.profile-intro>small{color:var(--muted);margin-top:1rem;font-size:.72rem;display:block}.profile-points{align-items:baseline;gap:.7rem;margin:1rem 0;display:flex}.profile-points strong{font:500 2.3rem var(--serif);color:var(--gold);font-variant-numeric:tabular-nums}.profile-points span{color:var(--muted);font-size:.85rem}.name-form{align-items:flex-end;gap:.65rem;display:flex}.name-form .field{flex:1;max-width:19rem}.name-form>button{white-space:nowrap}.new-mage-crest{height:100%;color:var(--muted);font-family:var(--serif);flex-direction:column;justify-content:center;align-items:center;gap:1rem;display:flex}.save-status{margin-top:.5rem;font-size:.8rem;color:var(--good)!important}.profile-stats{border:1px solid var(--line);background:#111524;border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:1.25rem 0 1.8rem;display:grid}.profile-stats>div{flex-direction:column;gap:.3rem;padding:1.1rem 1.3rem;display:flex}.profile-stats>div:nth-child(n+4){border-top:1px solid var(--line)}.profile-stats strong{font:500 1.65rem var(--serif);font-variant-numeric:tabular-nums;color:var(--text)}.profile-stats span{color:var(--muted);font-size:.75rem}.match-history{margin:0;padding:0;list-style:none}.match-history>li{border-top:1px solid var(--line);align-items:center;gap:1rem;padding:1rem 0;display:flex}.history-outcome{width:44px;color:var(--muted);flex-shrink:0;font-size:.8rem;font-weight:600}.history-outcome.win{color:var(--good)}.history-outcome.loss{color:#f6a398}.history-opponent{flex:1;min-width:0}.history-opponent strong{overflow-wrap:anywhere;font-size:.9rem;display:block}.history-opponent span{color:var(--muted);margin-top:.2rem;font-size:.73rem;display:block}.history-score{font:500 1.25rem var(--serif);white-space:nowrap}.history-reward{text-align:right;white-space:nowrap}.history-reward strong{color:var(--gold);font-size:.88rem;font-weight:500}.history-reward time{color:var(--muted);margin-top:.25rem;font-size:.69rem;display:block}.history-empty{text-align:center;border-top:1px solid var(--line);padding:2.5rem 1rem}.history-empty h3{font:500 1.4rem var(--serif)}.history-empty p{color:var(--muted);margin-top:.5rem;font-size:.85rem}.lobby-page{max-width:1110px;padding-top:2rem}.lobby-heading-row{justify-content:space-between;align-items:center;gap:1rem;display:flex}.lobby-heading-row .keyboard-note{white-space:nowrap;margin:0}.lobby-page .masthead p{max-width:65ch}.lobby-page .masthead .hall-kicker{color:var(--gold);margin-bottom:.35rem}.lobby-page .classes{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.lobby-page .class-card{gap:.5rem;padding:0 1.25rem 1.25rem;position:relative;overflow:hidden}.lobby-page .class-card .class-artwork{background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--robe) 30%,transparent),transparent 72%);width:calc(100% + 2.5rem);height:230px;margin:0 -1.25rem .3rem}.lobby-page .class-card .class-artwork img{object-position:center top}.lobby-page .class-card.chosen{box-shadow:0 0 0 1px var(--gold),0 10px 35px #0003}.class-choice-heading{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.class-selected{color:var(--muted);white-space:nowrap;font-size:.65rem}.chosen .class-selected{color:var(--gold)}.lobby-page .class-card .suits{font-size:.85rem}.lobby-page .class-card>p:not(.class-spell){font-size:.79rem}.lobby-page .class-spell{margin-top:.6rem;line-height:1.55}.lobby-page .class-spell code{overflow-wrap:anywhere;font-size:.8rem}.lobby-page .class-spell span{font-size:.68rem}.lobby-page .versus{padding:1rem 1.5rem}.seat-identity{align-items:center;gap:.7rem;margin-bottom:.25rem;display:flex}.seat-identity .class-badge svg{width:32px;height:32px}.queue-note{color:var(--muted);margin-top:.35rem;font-size:.8rem}.lobby-page .row.end{z-index:3;background:linear-gradient(#0000,#0b0d17 20%);padding:.8rem 0;position:sticky;bottom:0}.results-card{pointer-events:auto;text-align:center;background:linear-gradient(135deg,#202139,#111522);border:1px solid #c3b37e55;border-radius:14px;width:calc(100vw - 2.5rem);max-width:660px;max-height:calc(100dvh - 2rem);padding:1.65rem 2rem;overflow-y:auto;box-shadow:0 20px 90px #0009}.results-heading>p{color:var(--muted);text-transform:none;letter-spacing:0;font-size:.75rem}.results-heading h1{font:500 clamp(2.7rem,6vw,4rem)/1.1 var(--serif);color:#d5d2e3;margin:.25rem 0}.results-heading h1.won{color:var(--gold)}.results-heading>span{color:var(--muted);font-size:.76rem}.results-versus{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:1rem;margin:1.5rem 0;display:grid}.results-versus>div{flex-direction:column;align-items:center;gap:.35rem;min-width:0;display:flex}.results-versus>div>strong{color:var(--text);overflow-wrap:anywhere;font:600 .9rem/1.4 system-ui,sans-serif}.results-versus>div>span{color:var(--muted);font-size:.7rem}.results-versus .class-badge.large svg{width:62px;height:62px}.results-versus .final-score{font:500 2.6rem var(--serif);color:var(--gold);white-space:nowrap}.final-score>span{color:#6c6d85;padding:0 .35rem}.results-reward{background:#e8c46a0a;border-top:1px solid #e8c46a33;border-bottom:1px solid #e8c46a33;padding:.95rem}.results-reward>strong{font:500 1.2rem var(--serif)!important;color:var(--gold)!important;line-height:1.4!important}.results-reward>p{color:var(--muted);text-transform:none;letter-spacing:0;margin-top:.3rem;font-size:.78rem;line-height:1.55}.results-reward>span{color:#c3ba99;margin-top:.35rem;font-size:.7rem;display:block}.results-reward.unavailable>strong{color:#f6a398!important}.results-stats-wrap{margin-top:1.2rem;overflow:auto}.results-stats{border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:left;width:100%}.results-stats caption{text-align:left;font:500 1rem var(--serif);padding-bottom:.8rem}.results-stats th,.results-stats td{border-bottom:1px solid #9a9ec216;padding:.45rem .3rem;font-size:.78rem;font-weight:400}.results-stats thead th{color:var(--muted);font-size:.7rem}.results-stats td,.results-stats th:not(:first-child){text-align:right}.results-stats tbody th{color:var(--muted);font-weight:400}.results-actions{flex-wrap:wrap;justify-content:center;gap:.6rem;margin-top:1.3rem;display:flex}.results-actions button{min-height:44px;font-size:.82rem}.runback-note{letter-spacing:0!important;text-transform:none!important;color:var(--gold)!important;margin-top:.8rem!important;font-size:.76rem!important}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}@media (width<=1000px){.hall-hero{grid-template-columns:minmax(300px,1fr) 1.1fr}.hero-cast{height:340px}.hero-mage{height:300px}.hero-mage.archivist{height:340px}.hero-copy h1{font-size:4rem}.hero-actions{gap:.5rem}.hero-actions button{font-size:.88rem}.hero-mage-name{font-size:.85rem}.hall-page,.league-page{padding-left:1.4rem;padding-right:1.4rem}}@media (width<=760px){.hall-topbar{flex-direction:column;align-items:flex-start;gap:1rem}.hall-nav{width:100%}.hall-nav .profile-link{margin-left:auto}.hall-hero{flex-direction:column-reverse;align-items:stretch;gap:0;padding-top:1rem;display:flex}.hero-cast{width:100%;max-width:560px;height:290px;margin:auto}.hero-mage{height:260px}.hero-mage.archivist{height:290px}.hero-copy{padding:.7rem 0 1rem}.hero-copy h1{margin:.6rem 0 .8rem;font-size:3.5rem}.hero-copy h1 br{display:none}.hero-description{max-width:40ch}.hero-actions button{flex:1}.hall-lower{grid-template-columns:1fr}.league-heading{flex-direction:column;align-items:flex-start;padding:1.7rem 0}.board-toolbar{flex-wrap:wrap;gap:.65rem;padding:1rem}.leaderboard-table th,.leaderboard-table td{padding:.75rem .8rem}.rank-cell{width:60px}.profile-hero{grid-template-columns:180px minmax(0,1fr);gap:1rem;padding-right:1.2rem}.profile-portrait{min-height:300px}.profile-portrait .class-artwork{height:300px}.profile-intro{padding:1.5rem 0}.name-form{flex-direction:column;align-items:stretch}.name-form .field{max-width:none}.profile-stats strong{font-size:1.4rem}.lobby-page .class-card .class-artwork{height:175px}.lobby-page .class-card{padding:0 .8rem .8rem}.lobby-page .class-card .class-artwork{width:calc(100% + 1.6rem);margin:0 -.8rem}.class-choice-heading{flex-direction:column;align-items:flex-start;gap:.2rem}.lobby-page .class-card h2{font-size:1.15rem}.lobby-heading-row{flex-direction:column;align-items:flex-start}.lobby-page .masthead.small h1{font-size:1.85rem}.history-reward time{font-size:.65rem}.match-history>li{gap:.65rem}}@media (width<=520px){.hall-page,.league-page{padding:1.2rem 1rem 2rem}.wordmark{font-size:1.8rem}.hall-nav>button,.hall-nav>.nav-current{padding:.55rem .65rem}.hall-nav .profile-link{margin-left:0}.profile-link>span{max-width:7rem}.hero-cast{height:245px;overflow-x:clip}.hero-mage{height:220px}.hero-mage.archivist{height:245px}.hero-mage-name{padding:3px 8px;font-size:.75rem}.hero-copy h1{font-size:3rem}.hero-actions{flex-direction:column}.hero-actions button{text-align:center}.hall-panel{padding:1.1rem}.player-summary strong{font-size:1.45rem}.section-heading h2{font-size:1.2rem}.profile-hero{flex-direction:column;gap:0;padding:0 1.2rem 1.2rem;display:flex}.profile-portrait{width:100%;max-width:260px;height:240px;min-height:240px;margin:auto}.profile-portrait .class-artwork{height:240px}.profile-intro{padding:.5rem 0}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-stats>div:nth-child(3){border-top:1px solid var(--line)}.profile-stats>div{padding:1rem}.history-panel .section-heading{flex-direction:column;align-items:flex-start}.match-history .class-badge{display:none}.history-outcome{width:34px}.history-reward time{white-space:normal;max-width:90px}.results-card{padding:1.3rem 1rem}.results-versus{gap:.5rem}.results-versus .final-score{font-size:2.1rem}.results-stats th,.results-stats td{font-size:.73rem}.lobby-page .classes{grid-template-columns:1fr;gap:.6rem}.lobby-page .class-card{border-top-width:1px;border-left:4px solid var(--robe);grid-template-columns:110px minmax(0,1fr);gap:.3rem .8rem;padding:.7rem;display:grid}.lobby-page .class-card .class-artwork{grid-row:1/5;width:110px;height:150px;margin:0}.lobby-page .class-card .class-choice-heading{flex-direction:row;grid-column:2;align-items:center}.lobby-page .class-card>p{grid-column:2}.lobby-page .class-spell{margin-top:.3rem;padding-top:.3rem}.lobby-page .class-card.chosen{border-left-color:var(--robe)}.lobby-page .versus{gap:.8rem}.lobby-page .seat{flex-basis:180px}.lobby-page .vs{display:none}.lobby-page .invite{flex-wrap:wrap}.lobby-page .invite input{flex-basis:100%}.leaderboard-table .board-player{gap:.5rem;min-width:105px}.leaderboard-table .class-badge svg{width:30px;height:30px}.leaderboard-table th,.leaderboard-table td{padding:.65rem .5rem}.board-points{font-size:.95rem}.board-toolbar>p{font-size:.7rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important}.hall-page button,.league-page button,.lobby-page button{transition:none}.hero-mage{transform:none!important}}.score{position:relative}.perfect-chain{color:var(--gold);white-space:nowrap;font-variant-numeric:tabular-nums;background:#171421db;border:1px solid #e8c46a44;border-radius:20px;padding:.15rem .6rem;font-size:.7rem;line-height:1.5;position:absolute;top:calc(100% + .25rem);left:50%;transform:translate(-50%)}.connection-cancel{z-index:20;background:#101421f2;border:1px solid #e8c46a55;border-radius:10px;padding:.45rem;position:fixed;bottom:1.2rem;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #0008}.connection-cancel button{white-space:nowrap;min-height:44px}.friend-series{color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem .8rem;font-size:.8rem;display:flex}.friend-series strong{color:var(--gold);font:500 1.2rem var(--serif);font-variant-numeric:tabular-nums}.friend-series span{font-size:.75rem}.results-heading .results-series{color:var(--gold);margin-top:.25rem;font-size:.72rem;line-height:1.4}.results-card{padding-top:1.35rem;padding-bottom:1.35rem}.results-versus{margin-top:1.1rem;margin-bottom:1.1rem}.results-stats th,.results-stats td{padding-top:.35rem;padding-bottom:.35rem}
