/* The public-facing shell. The live arena owns its own geometry and controls. */
@font-face{font-family:SSBody;src:url('/table/assets/ss-source-sans-regular.ttf');font-display:swap}
@font-face{font-family:SSBody;src:url('/table/assets/ss-source-sans.ttf');font-weight:600;font-display:swap}
@font-face{font-family:SSHeading;src:url('/table/assets/ss-alegreya-bold.ttf');font-display:swap}
body[data-lobby-surface]:not(.playing-room){--ink:#eee9d9;--muted:#a9b5ac;--gold:#c8b483;--green:#9cd9bd;--line:#b8d2bd26;background:#030706;color:var(--ink);font:16px/1.5 SSBody,Arial,sans-serif;min-width:0;min-height:100dvh;isolation:isolate}
body[data-lobby-surface]:not(.playing-room)::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 75% 0,#173e2d33,transparent 55%);opacity:1}
body[data-lobby-surface]:not(.playing-room) :is(h1,h2,h3){font-family:SSHeading,Georgia,serif;color:var(--ink);letter-spacing:-.02em;text-wrap:balance}
body[data-lobby-surface]:not(.playing-room) h1{font-size:clamp(36px,4.1vw,58px);line-height:1.06;margin:10px 0 18px}
body[data-lobby-surface]:not(.playing-room) h2{font-size:28px;line-height:1.2}
body[data-lobby-surface]:not(.playing-room) p{line-height:1.55}
body[data-lobby-surface] :is(a,button,input,select,summary):focus-visible{outline:2px solid #a6edca;outline-offset:4px}
body[data-lobby-surface] .eyebrow{font:600 11px/1.5 SSBody,sans-serif;letter-spacing:.16em;color:var(--gold)}
body[data-lobby-surface]:not(.playing-room)>header{height:88px;min-height:88px;padding:8px max(24px,calc((100vw - 1200px)/2));gap:24px;display:flex;align-items:center;justify-content:space-between;border:0;background:transparent}
body[data-lobby-surface]:not(.playing-room)>header .brand,body[data-lobby-surface]:not(.playing-room)>header .brand img{width:138px;height:72px;padding:0;margin:0;object-fit:contain;display:block}
body[data-lobby-surface]:not(.playing-room)>header>nav{margin-left:auto;display:flex;align-items:center;gap:12px;padding:0;border:0}
body[data-lobby-surface]:not(.playing-room)>header :is(#connection,#identity){display:none}
body[data-lobby-surface]:not(.playing-room)>header :is(button,a.discord-header,.shell-account-link){font:600 14px/1.3 SSBody,sans-serif;border-radius:4px;min-height:40px;padding:10px 15px;box-shadow:none;margin:0;background:#11271d;color:#c6e5d5;border:1px solid #395d49;white-space:normal;text-decoration:none}
body[data-lobby-surface]:not(.playing-room)>header #report-issue{background:transparent;color:#c0c8bd;border-color:transparent;font-size:13px}
body[data-lobby-surface]:not(.playing-room)>header .match-menu>summary{font:14px SSBody,sans-serif;padding:11px 5px;color:#b5c1b5}
body[data-lobby-surface] .shell-utilities{display:flex;gap:20px;align-items:center;font-size:14px}
body[data-lobby-surface] .shell-utilities>a{color:var(--muted);text-decoration:none}
body[data-lobby-surface] nav.lobby-navigation{padding:0 max(24px,calc((100vw - 1200px)/2));min-height:54px;justify-content:flex-start;gap:32px;background:transparent;border-bottom:1px solid var(--line);font:15px/1.4 SSBody,sans-serif}
body[data-lobby-surface] nav.lobby-navigation>a,body[data-lobby-surface] nav.lobby-navigation>button{padding:15px 0;min-height:54px;margin:0;border-radius:0}
body[data-lobby-surface] nav.lobby-navigation>.active{color:#eee4c8;border-bottom:2px solid var(--gold)}
body[data-lobby-surface]:not(.playing-room) :is(#app,.page,.account-shell){max-width:1248px;width:100%;margin:0 auto;padding:32px 24px 36px;box-sizing:border-box}
body[data-lobby-surface]:not(.playing-room) :is(button,.secondary,.primary){font-family:SSBody,sans-serif}
body[data-lobby-surface]:not(.playing-room) :is(button,.secondary,.primary):not(.play-path){border-radius:4px}
body[data-lobby-surface]:not(.playing-room) :is(.primary,#discord-connect,#save-player-name){font:600 16px/1.3 SSBody,sans-serif;min-height:44px;background:#cbb681;color:#171c15;border:1px solid #d9c592;box-shadow:none;padding:12px 20px}
body[data-lobby-surface]:not(.playing-room) :is(.primary,#discord-connect,#save-player-name):hover:not(:disabled){background:#e2cd98;color:#171c15}
body[data-lobby-surface]:not(.playing-room) .secondary{font:600 15px/1.3 SSBody,sans-serif;min-height:44px;border:1px solid #45634f;background:#102219;box-shadow:none;padding:11px 18px;color:#d0e2d3;margin:0;text-decoration:none}
body[data-lobby-surface]:not(.playing-room) .text-button{font:600 14px/1.4 SSBody,sans-serif;background:none;border:0;box-shadow:none;color:#a8d9be;margin:0;padding:6px 0;text-decoration:none;min-height:32px}
body[data-lobby-surface]:not(.playing-room) .text-button:hover{text-decoration:underline;text-underline-offset:5px}
body[data-lobby-surface] :is(input,select,textarea){font:16px/1.4 SSBody,sans-serif;color:#e9e6d5;background:#080f0b;border:1px solid #4a5b4c;border-radius:4px;min-height:44px;padding:10px 12px;max-width:100%}
body[data-lobby-surface] input[type=checkbox]{min-height:0;width:18px;height:18px;accent-color:#9cd9bd;padding:0}
body[data-lobby-surface] button:disabled{opacity:.48;cursor:not-allowed}
/* One welcome scene, then three unmistakable ways to enter the game. */
body[data-lobby-surface] .arrival-hero{position:relative;display:grid;grid-template-columns:1.12fr 1fr;min-height:330px;gap:24px;align-items:center;isolation:isolate;margin:0 0 24px}
body[data-lobby-surface] .arrival-hero::before{content:'';position:absolute;inset:-32px -24px 0 25%;z-index:-1;background:linear-gradient(90deg,#030706,transparent 60%),linear-gradient(0deg,#030706,transparent 60%),url('/table/assets/thanadar-arena-environment.webp') center/cover;opacity:.27;mask-image:linear-gradient(0deg,transparent,#000 35%,#000 75%,transparent)}
body[data-lobby-surface] .arrival-copy{padding:24px 0;z-index:1}
body[data-lobby-surface] .arrival-copy h1{font-size:clamp(38px,4vw,58px);line-height:1.04;margin:18px 0}
body[data-lobby-surface] .arrival-copy h1 em{font-style:normal;color:#b8d8bd}
body[data-lobby-surface] .arrival-copy>p{font:18px/1.55 SSBody,sans-serif;color:#b8c2b8;max-width:470px;margin:0}
body[data-lobby-surface] .arrival-meta{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:24px;color:#92a697;font-size:12px}
body[data-lobby-surface] .arrival-meta span::before{content:'◆';font-size:6px;margin-right:8px;color:#93c6a4;vertical-align:2px}
body[data-lobby-surface] .arrival-art{position:relative;height:320px;max-width:500px;width:100%;margin-left:auto;isolation:isolate}
body[data-lobby-surface] .arrival-halo{position:absolute;inset:8px 10% 18px;border:1px solid #bba56b38;border-radius:50%;transform:rotate(-18deg);box-shadow:0 0 80px #69936415,inset 0 0 50px #496d5122}
body[data-lobby-surface] .arrival-champion{position:absolute;width:41%;height:245px;object-fit:cover;object-position:center;top:32px;box-shadow:0 10px 35px #0008;border:1px solid #a58d4f52;border-radius:80px 80px 3px 3px;mask-image:linear-gradient(#000 72%,#0008 90%,transparent)}
body[data-lobby-surface] .arrival-left{left:3%;transform:rotate(-9deg);filter:brightness(.73) saturate(.8)}
body[data-lobby-surface] .arrival-right{right:3%;transform:rotate(9deg);filter:brightness(.73) saturate(.8)}
body[data-lobby-surface] .arrival-front{z-index:2;left:29.5%;top:12px;height:280px;border-color:#c1a96888}
body[data-lobby-surface] .arrival-art-caption{position:absolute;bottom:4px;width:100%;text-align:center;color:#b9ae8a;font:11px SSBody,sans-serif;letter-spacing:.3em;text-transform:uppercase;z-index:3}
body[data-lobby-surface] .play-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body[data-lobby-surface] .play-path{display:flex;flex-direction:column;align-items:stretch;min-width:0;text-align:left;text-decoration:none;background:linear-gradient(125deg,#112219aa,#09110e);border:1px solid #a8c2ad33;border-radius:6px;padding:23px 25px;box-shadow:none;color:var(--ink);font:16px SSBody,sans-serif;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
body[data-lobby-surface] .play-path:hover{background:linear-gradient(125deg,#1b3426,#0c1911);border-color:#87b99b;transform:translateY(-3px)}
body[data-lobby-surface] .play-path.path-learn{border-color:#8ca47a77;background:linear-gradient(125deg,#22342599,#0c1610)}
body[data-lobby-surface] .path-top{display:flex;align-items:center;gap:14px;margin-bottom:18px}
body[data-lobby-surface] .path-number{font:27px/1 SSHeading,serif;color:#7b937e}
body[data-lobby-surface] .path-tag{font:600 10px/1.4 SSBody,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#b8c8ac}
body[data-lobby-surface] .play-path h2{font-size:28px;margin:0 0 7px}
body[data-lobby-surface] .play-path p{font:15px/1.45 SSBody,sans-serif;color:#a7b4a8;margin:0 0 20px}
body[data-lobby-surface] .path-action{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid #7fa18226;font:600 14px/1.4 SSBody,sans-serif;color:#d5e6ce}
body[data-lobby-surface] .path-action>span{color:#b9cb9e;font-size:21px}
body[data-lobby-surface] .lobby-underpaths{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 20px;padding:14px 0 24px;font-size:14px;color:#9fae9f}
body[data-lobby-surface] .lobby-underpaths button{margin-left:8px}
body[data-lobby-surface] .lobby-rooms{margin:12px 0 34px;padding-top:26px;border-top:1px solid var(--line)}
body[data-lobby-surface] .lobby-rooms .intro{margin:0 0 20px;display:flex;justify-content:space-between;gap:20px;align-items:center}
body[data-lobby-surface] .lobby-rooms .intro .eyebrow{display:none}
body[data-lobby-surface] .lobby-rooms h2{margin:0;font-size:28px}
body[data-lobby-surface] .lobby-room-hint{margin:0;color:#9eada0;font-size:14px}
body[data-lobby-surface] .lobby-empty{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px dashed #526b514d;border-radius:5px;padding:18px 22px;background:#0d181044;text-align:left}
body[data-lobby-surface] .lobby-empty p,body[data-lobby-surface] .lobby-empty strong{margin:0;font:15px/1.5 SSBody,sans-serif;color:#afbbad}
body[data-lobby-surface] .lobby-empty>strong{color:#e0e3cd}
body[data-lobby-surface] .room-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:16px;margin-top:0}
body[data-lobby-surface] .room-card{border:1px solid var(--line);border-radius:5px;background:#0c1610;padding:22px}
body[data-lobby-surface] .room-card::before{display:none}
body[data-lobby-surface] .room-card h3{font-size:25px;overflow-wrap:anywhere;margin:10px 0}
body[data-lobby-surface] .room-card .facts{font:14px SSBody,sans-serif;color:#adb6a7}
body[data-lobby-surface] .room-card>.actions{margin-top:18px}
body[data-lobby-surface] .returning-player{display:flex;align-items:center;gap:22px;padding:24px 0;border-block:1px solid var(--line)}
body[data-lobby-surface] .returning-player h2{font-size:24px;margin:0 0 4px;overflow-wrap:anywhere}
body[data-lobby-surface] .returning-player p{font-size:14px;color:#a3b1a4;margin:0}
body[data-lobby-surface] .returning-player>a{margin-left:auto;flex-shrink:0}
body[data-lobby-surface] .welcome-emblem{font-size:42px;color:#b2a171;padding:0 10px}
body[data-lobby-surface] .summary-identity{flex:1}
body[data-lobby-surface] .summary-stat{text-align:center;padding:0 16px}
body[data-lobby-surface] .summary-stat strong{display:block;font:26px SSHeading,serif}
body[data-lobby-surface] .summary-stat small{font-size:12px}
body[data-lobby-surface] .arrival-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:24px 0 8px;color:#859b8a;font-size:13px;border:0;background:transparent}
body[data-lobby-surface] .arrival-footer>div{display:flex;gap:24px;flex-wrap:wrap}
body[data-lobby-surface] .arrival-footer a{color:#a3b49f;text-decoration:none}
body[data-lobby-surface]:not(.playing-room) .release-version{position:static;display:block;width:max-content;max-width:calc(100% - 48px);margin:0 auto 24px;background:transparent;font:12px SSBody,sans-serif;border:0;padding:0;color:#92a08c}
/* Profiles keep stats visible at every width; collections have their own rhythm. */
body[data-lobby-surface=profile] .profile-heading{padding:14px 0 30px}
body[data-lobby-surface=profile] .profile-identity h1{font-size:42px;margin:7px 0}
body[data-lobby-surface=profile] .profile-identity .portrait{width:96px;height:96px}
body[data-lobby-surface=profile] .profile-rank strong{font:34px SSHeading,serif}
body[data-lobby-surface=profile] .profile-layout{grid-template-columns:200px minmax(0,1fr);gap:40px;padding-top:28px}
body[data-lobby-surface=profile] .profile-content>nav{gap:10px;flex-wrap:wrap;margin-bottom:25px;padding:0;border-bottom:1px solid var(--line)}
body[data-lobby-surface=profile] .profile-content>nav button{font:15px SSBody,sans-serif;padding:12px 14px;min-height:44px;border-radius:0}
body[data-lobby-surface=profile] .collection-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding:0;border:0}
body[data-lobby-surface=profile] .collection-filters button{font:13px SSBody,sans-serif;min-height:36px;padding:8px 12px;border:1px solid #49604c66;border-radius:20px;background:transparent;color:#a9b8aa}
body[data-lobby-surface=profile] .collection-filters button.active{background:#223c2b;border-color:#739f7d;color:#e0eed9}
body[data-lobby-surface=profile] .reward-grid{gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-lobby-surface=profile] .reward-card{padding:25px 15px 18px;background:linear-gradient(150deg,#112017,#070e0a);border-color:#566e5344;border-radius:6px;min-height:285px}
body[data-lobby-surface=profile] .reward-card.selected{border-color:#8cb69c}
body[data-lobby-surface=profile] .reward-card h3{font-size:24px}
body[data-lobby-surface=profile] .reward-card .badge-label{font-size:10px}
body[data-lobby-surface=profile] .reward-card .unlock-progress{font-size:13px;padding:12px 0 0}
body[data-lobby-surface=profile] .reward-card .secondary{font-size:13px;min-height:38px;padding:8px 14px}
body[data-lobby-surface=profile] .profile-sidebar .side-section{padding:0 0 22px;margin:0 0 22px}
body[data-lobby-surface=profile] .profile-sidebar li{font-size:14px}
body[data-lobby-surface=profile] .champion-table{width:100%;table-layout:fixed}
body[data-lobby-surface=profile] .champion-table th:first-child{width:42%}
body[data-lobby-surface=profile] .champion-table td{overflow-wrap:anywhere}
body[data-lobby-surface] .guest-profile{max-width:760px;margin:28px auto;text-align:center;padding:30px}
body[data-lobby-surface] .guest-profile>.portrait{width:112px;height:112px;margin:0 0 24px}
body[data-lobby-surface] .guest-profile p{color:#adbbae;max-width:470px;margin:16px auto 24px}
body[data-lobby-surface] .guest-profile .actions{justify-content:center}
/* Account and release pages share the same comfortable reading width. */
body[data-lobby-surface] .account-shell{max-width:1008px;padding-top:38px}
body[data-lobby-surface] .account-shell>h1{font-size:46px;margin:10px 0 16px}
body[data-lobby-surface] .account-shell>.intro{font:18px/1.5 SSBody,sans-serif;color:#afbeb1;margin:0}
body[data-lobby-surface] .account-card{padding:28px 32px;margin:28px 0;border:1px solid var(--line);background:linear-gradient(135deg,#13251a88,#08120c);border-radius:6px}
body[data-lobby-surface] .account-card h2{font-size:27px;margin:0 0 18px}
body[data-lobby-surface] #account-status{font:16px/1.6 SSBody,sans-serif;color:#c7d7c8}
body[data-lobby-surface] #player-name-form{display:grid;grid-template-columns:1fr auto;gap:10px 14px;align-items:center}
body[data-lobby-surface] #player-name-form[hidden]{display:none}
body[data-lobby-surface] #player-name-form label,body[data-lobby-surface] #player-name-form p,body[data-lobby-surface] #player-name-form small{grid-column:1/-1;margin:0}
body[data-lobby-surface] #player-name-form button{margin:0}
body[data-lobby-surface] #player-name-form small{font-size:13px;margin-top:4px}
body[data-lobby-surface] .account-shell .community{display:flex;gap:12px 24px;flex-wrap:wrap;align-items:center;padding:6px 0 24px;margin:0}
body[data-lobby-surface] .account-shell .community h2{font-size:25px;margin:0}
body[data-lobby-surface] .account-shell .community p{flex:1;font-size:14px;color:#a6b5a6;min-width:220px;margin:0}
body[data-lobby-surface] .account-shell>nav{font:14px SSBody,sans-serif;border-top:1px solid var(--line);padding:24px 0;gap:18px}
body[data-lobby-surface] .release-list{padding-left:20px;color:#b9c7ba;font:16px/1.6 SSBody,sans-serif}
body[data-lobby-surface] .release-list li{margin:12px 0}
body[data-lobby-surface] .quiet-details,body[data-lobby-surface] .room-advanced{margin-top:22px;border-top:1px solid var(--line);padding-top:15px}
body[data-lobby-surface] summary{cursor:pointer;color:#b8cfb8;font:600 14px/1.5 SSBody,sans-serif;padding:5px 0}
body[data-lobby-surface] .quiet-details p{font-size:14px;color:#a6b9a8}
/* Dialogs and room setup keep the same typography, field spacing and action rhythm. */
body[data-lobby-surface]:not(.playing-room) :is(dialog,#dialog[open],#discord-welcome[open],#hub-dialog[open]){box-sizing:border-box;background:linear-gradient(145deg,#13251b,#07110c)!important;border:1px solid #6e845b;border-top:2px solid #c0ae7b;border-radius:8px;padding:28px;box-shadow:0 24px 100px #000c!important;color:var(--ink);font:16px/1.5 SSBody,sans-serif;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}
body[data-lobby-surface]:not(.playing-room) dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
body[data-lobby-surface]:not(.playing-room) dialog h2{font-size:32px;margin:8px 0 16px}
body[data-lobby-surface]:not(.playing-room) dialog p{color:#b6c5b8;margin:10px 0 18px}
body[data-lobby-surface]:not(.playing-room) :is(dialog,#app) label:not(.check){display:block;font:14px/1.5 SSBody,sans-serif;color:#bdc9b8;margin:12px 0}
body[data-lobby-surface]:not(.playing-room) label :is(input,select,textarea){margin-top:6px}
body[data-lobby-surface]:not(.playing-room) :is(dialog,#app) .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;align-items:center}
body[data-lobby-surface]:not(.playing-room) :is(dialog,#app) .actions button{margin:0;font:600 15px/1.3 SSBody,sans-serif;min-height:44px;padding:11px 17px}
body[data-lobby-surface]:not(.playing-room) .setting-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
body[data-lobby-surface]:not(.playing-room) .waiting-grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:32px;margin-top:28px;align-items:start}
body[data-lobby-surface]:not(.playing-room) .waiting-grid .panel{padding:25px;border-color:var(--line);background:#0e1b12;border-radius:6px}
body[data-lobby-surface]:not(.playing-room) .seat{padding:18px 20px;border:1px solid var(--line);background:#0d1811;border-radius:5px}
body[data-lobby-surface]:not(.playing-room) .seat strong{font:24px SSHeading,serif}
body[data-lobby-surface]:not(.playing-room) .seat small{font:13px/1.5 SSBody,sans-serif}
body[data-lobby-surface]:not(.playing-room) .badge{font:12px SSBody,sans-serif;letter-spacing:0}
body[data-lobby-surface]:not(.playing-room) .spectators{font-size:13px;color:#91a493;margin-top:18px}
body[data-lobby-surface].draft-room .draft-turn{border:1px solid #57785b77;background:linear-gradient(90deg,#1e3d29aa,#0a160e);border-radius:5px;font:25px SSHeading,serif;padding:16px 20px}
body[data-lobby-surface].draft-room .draft-turn small{font:13px/1.5 SSBody,sans-serif;color:#afc2ac}
body[data-lobby-surface].draft-room .order>div{background:#0e1912;border-color:var(--line);padding:14px;border-radius:4px;min-width:0}
body[data-lobby-surface].draft-room .draft-layout .preview{position:sticky;top:20px;max-height:none;overflow:visible;background:linear-gradient(150deg,#19271a,#0c150e);border:1px solid #91a07466;box-shadow:none;border-radius:6px;color:#e1dec7;padding:22px}
body[data-lobby-surface].draft-room .draft-layout .preview :is(h2,strong){color:#e8e0c4}
body[data-lobby-surface].draft-room .draft-layout .preview :is(small,#inspect-sheet){color:#acbba6;font-family:SSBody,sans-serif}
body[data-lobby-surface].draft-room .draft-layout .preview #pick{box-shadow:none;width:100%;margin-top:16px;font-size:16px;background:#cbb681;color:#171c15;min-height:46px}
body[data-lobby-surface].draft-room .draft-layout .preview .eyebrow{color:#c5b580}
body[data-lobby-surface].draft-room .draft-ability{border-color:var(--line)}
body[data-lobby-surface].draft-room .draft-card{border-radius:6px;overflow:hidden;height:192px;border-color:#64735166}
body[data-lobby-surface].draft-room .draft-card strong{font-family:SSHeading,serif;font-size:22px}
body[data-lobby-surface].draft-room .draft-card small{font:12px SSBody,sans-serif}
body[data-lobby-surface] .hub-rankings-dialog .community-ranking{padding:18px;background:#0c1d13;border:1px solid #607b5244;border-radius:5px}
body[data-lobby-surface] .hub-rankings-dialog .community-leader-title{font:20px/1.2 SSHeading,serif;color:#d3bd83;margin:12px 0}
body[data-lobby-surface] .community-standing{font-family:SSBody,sans-serif;padding:9px 0}
body[data-lobby-surface] .ranking-row{padding:14px 0}
body[data-lobby-surface] .hub-rankings-dialog .ranking-row>strong{min-width:0;overflow-wrap:anywhere}
@media(max-width:1000px){
 body[data-lobby-surface] .arrival-copy h1{font-size:44px}
 body[data-lobby-surface] .arrival-art{height:290px}
 body[data-lobby-surface] .arrival-champion{height:220px}
 body[data-lobby-surface] .arrival-front{height:250px}
 body[data-lobby-surface] .play-path{padding:20px}
 body[data-lobby-surface] .play-path h2{font-size:25px}
 body[data-lobby-surface] .summary-stat{padding:0}
 body[data-lobby-surface=profile] .profile-layout{grid-template-columns:170px minmax(0,1fr);gap:24px}
 body[data-lobby-surface=profile] .reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 body[data-lobby-surface]:not(.playing-room)>header{height:78px;min-height:78px;padding:8px 20px;gap:12px}
 body[data-lobby-surface]:not(.playing-room)>header .brand,body[data-lobby-surface]:not(.playing-room)>header .brand img{width:106px;height:62px}
 body[data-lobby-surface] nav.lobby-navigation{gap:5px 22px;padding:0 20px;justify-content:center;min-height:48px}
 body[data-lobby-surface] nav.lobby-navigation>a,body[data-lobby-surface] nav.lobby-navigation>button{font-size:14px;padding:11px 0;min-height:44px}
 body[data-lobby-surface] .arrival-hero{min-height:260px;grid-template-columns:1.3fr 1fr;gap:0;margin-bottom:20px}
 body[data-lobby-surface] .arrival-copy h1{font-size:36px}
 body[data-lobby-surface] .arrival-copy>p{font-size:16px}
 body[data-lobby-surface] .arrival-art{height:235px;opacity:.82}
 body[data-lobby-surface] .arrival-champion{height:175px}
 body[data-lobby-surface] .arrival-front{height:210px}
 body[data-lobby-surface] .arrival-meta{gap:8px;font-size:11px}
 body[data-lobby-surface] .arrival-art-caption{font-size:8px;letter-spacing:.2em}
 body[data-lobby-surface] .play-paths{grid-template-columns:1fr}
 body[data-lobby-surface] .play-path{position:relative;padding:20px 22px}
 body[data-lobby-surface] .path-top{margin-bottom:10px}
 body[data-lobby-surface] .path-number{font-size:21px}
 body[data-lobby-surface] .play-path p{margin-bottom:12px}
 body[data-lobby-surface] .path-action{padding-top:10px}
 body[data-lobby-surface] .returning-player{flex-wrap:wrap;gap:16px}
 body[data-lobby-surface] .returning-player>a{margin-left:0}
 body[data-lobby-surface] .returning-player .summary-identity{min-width:50%}
 body[data-lobby-surface] .welcome-emblem{display:none}
 body[data-lobby-surface] .lobby-empty,body[data-lobby-surface] .lobby-rooms .intro{align-items:flex-start;flex-direction:column;gap:10px}
 body[data-lobby-surface=profile] .profile-layout{display:flex;flex-direction:column;gap:26px}
 body[data-lobby-surface=profile] .profile-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px;order:2}
 body[data-lobby-surface=profile] .profile-sidebar .side-section:last-child{grid-column:1/-1}
 body[data-lobby-surface=profile] .profile-identity h1{font-size:34px}
 body[data-lobby-surface=profile] .profile-content>nav{gap:4px}
 body[data-lobby-surface=profile] .profile-content>nav button{padding:10px;font-size:14px}
 body[data-lobby-surface]:not(.playing-room) .waiting-grid{grid-template-columns:1fr;gap:24px}
 body[data-lobby-surface].draft-room .draft-layout{display:flex;flex-direction:column;gap:22px}
 body[data-lobby-surface].draft-room .draft-layout .preview{position:static;width:100%;max-height:none;display:block}
 body[data-lobby-surface].draft-room .draft-layout .preview .draft-abilities{display:block}
 body[data-lobby-surface].draft-room .draft-layout .preview #pick{max-width:none}
 body[data-lobby-surface] .account-shell>h1{font-size:38px}
}
@media(max-width:480px){
 body[data-lobby-surface]:not(.playing-room)>header{height:auto;min-height:84px;padding:10px 16px}
 body[data-lobby-surface]:not(.playing-room)>header>nav{gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:225px}
 body[data-lobby-surface]:not(.playing-room)>header :is(button,a.discord-header,.shell-account-link){font-size:12px;min-height:36px;padding:8px 10px}
 body[data-lobby-surface]:not(.playing-room)>header #report-issue{font-size:12px;padding:6px}
 body[data-lobby-surface] nav.lobby-navigation{gap:0 17px;padding:0 12px}
 body[data-lobby-surface] nav.lobby-navigation>a,body[data-lobby-surface] nav.lobby-navigation>button{font-size:12px;min-height:40px;padding:10px 0}
 body[data-lobby-surface]:not(.playing-room) :is(#app,.page,.account-shell){padding:24px 18px 32px}
 body[data-lobby-surface] .arrival-hero{display:block;min-height:0;padding:0;margin-bottom:22px}
 body[data-lobby-surface] .arrival-copy{padding:0 0 14px}
 body[data-lobby-surface] .arrival-copy h1{font-size:39px;margin:16px 0}
 body[data-lobby-surface] .arrival-copy>.eyebrow{font-size:9px}
 body[data-lobby-surface] .arrival-copy>p{font-size:16px}
 body[data-lobby-surface] .arrival-art{display:none}
 body[data-lobby-surface] .arrival-hero::before{inset:-24px -18px 0 0;opacity:.32}
 body[data-lobby-surface] .arrival-meta{margin-top:17px;gap:14px}
 body[data-lobby-surface] .play-path{padding:18px 20px}
 body[data-lobby-surface] .path-top{margin-bottom:8px}
 body[data-lobby-surface] .play-path h2{font-size:27px}
 body[data-lobby-surface] .play-path p{font-size:14px}
 body[data-lobby-surface] .lobby-underpaths{padding-bottom:12px;font-size:13px}
 body[data-lobby-surface] .arrival-footer{font-size:12px}
 body[data-lobby-surface] .arrival-footer>div{gap:16px}
 body[data-lobby-surface] .shell-utilities{gap:10px;font-size:13px}
 body[data-lobby-surface] .shell-utilities{flex-wrap:wrap;justify-content:flex-end;max-width:200px}
 body[data-lobby-surface=profile] .profile-identity{gap:18px;padding-left:4px}
 body[data-lobby-surface=profile] .profile-identity .portrait{width:72px;height:72px}
 body[data-lobby-surface=profile] .profile-identity h1{font-size:30px;overflow-wrap:anywhere}
 body[data-lobby-surface=profile] .profile-rank strong{font-size:27px}
 body[data-lobby-surface=profile] .reward-grid{gap:10px}
 body[data-lobby-surface=profile] .reward-card{padding:18px 10px;min-height:270px}
 body[data-lobby-surface=profile] .reward-card .portrait{width:72px;height:72px}
 body[data-lobby-surface=profile] .reward-card h3{font-size:22px}
 body[data-lobby-surface=profile] .reward-card .badge-label{font-size:8px}
 body[data-lobby-surface=profile] .champion-table :is(td,th){padding:12px 5px;font-size:12px}
 body[data-lobby-surface=profile] .champion-table img{display:block;margin:0 0 6px}
 body[data-lobby-surface=profile] .match-row{gap:10px;flex-wrap:wrap;padding:15px}
 body[data-lobby-surface=profile] .match-row .opponent{min-width:100px}
 body[data-lobby-surface] .account-card{padding:22px 18px}
 body[data-lobby-surface] #player-name-form{grid-template-columns:1fr}
 body[data-lobby-surface]:not(.playing-room) :is(dialog,#dialog[open],#discord-welcome[open],#hub-dialog[open]){padding:22px 18px}
 body[data-lobby-surface] .community-rankings{grid-template-columns:1fr;gap:14px}
 body[data-lobby-surface] .rankings-heading{align-items:flex-start}
 body[data-lobby-surface]:not(.playing-room) dialog h2{font-size:28px}
 body[data-lobby-surface] .guest-profile{padding:20px 0}
}
@media(prefers-reduced-motion:reduce){body[data-lobby-surface] .play-path{transition:none}body[data-lobby-surface] .play-path:hover{transform:none}}
.skip-content{position:fixed;left:16px;top:12px;z-index:10000;padding:12px 18px;background:#d8c48c;color:#112217;transform:translateY(-150%);font:600 16px SSBody,sans-serif;border-radius:4px;text-decoration:none}.skip-content:focus{transform:none}
body[data-lobby-surface]:not(.playing-room) :is(#dialog,#discord-welcome,#hub-info-dialog){width:min(600px,calc(100vw - 32px))}
body[data-lobby-surface]:not(.playing-room) #hub-dialog{width:min(660px,calc(100vw - 32px))}
body[data-lobby-surface]:not(.playing-room) #hub-dialog.hub-rankings-dialog{width:min(900px,calc(100vw - 32px))}
body[data-lobby-surface]:not(.playing-room) #dialog.hub-rankings-dialog{width:min(900px,calc(100vw - 32px))}
body[data-lobby-surface]:not(.playing-room) .account-shell{max-width:1008px}
body[data-lobby-surface] .eyebrow{text-transform:uppercase}
body[data-lobby-surface] .guest-profile .actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
body[data-lobby-surface=profile] .profile-content nav.collection-filters{border:0}
body[data-lobby-surface=profile] .profile-content nav.collection-filters button{border-radius:20px;font-size:13px;padding:8px 12px;border:1px solid #49604c66;min-height:36px}
body[data-lobby-surface=profile] .profile-content nav.collection-filters button.active{background:#223c2b;border-color:#739f7d;color:#e0eed9}
body[data-lobby-surface].draft-room .draft-layout .preview .draft-ability small{font-size:14px;line-height:1.45}
body[data-lobby-surface].draft-room .draft-layout .preview .draft-ability>b{font:600 18px SSBody,sans-serif;color:#d5c28c}
body[data-lobby-surface].draft-room #app>h1{font-size:40px;margin:8px 0 18px}
body[data-lobby-surface].draft-room .draft-card{height:175px}
body[data-lobby-surface].draft-room .order{margin:12px 0 20px}
body[data-lobby-surface].draft-room .order>div{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 12px;align-items:center;padding:12px 16px}
body[data-lobby-surface].draft-room .order>div>small:first-child{grid-area:1/1;font:11px SSBody,sans-serif}
body[data-lobby-surface].draft-room .order>div>strong{grid-area:2/1;font:600 17px SSBody,sans-serif}
body[data-lobby-surface].draft-room .order>div>small:nth-child(3){grid-area:1/2;font:11px SSBody,sans-serif;text-align:right}
body[data-lobby-surface].draft-room .order .roster-mini{grid-area:2/2;margin:0;display:flex;justify-content:flex-end}
body[data-lobby-surface].draft-room .order .roster-mini img{width:28px;height:28px}
@media(max-width:760px){
 body[data-lobby-surface].draft-room .draft-layout .preview{position:sticky;bottom:0;top:auto;z-index:5;background:#0b1710f7;box-shadow:0 -10px 35px #000b;padding:14px 18px}
 body[data-lobby-surface].draft-room .draft-layout .preview .draft-abilities{display:none}
 body[data-lobby-surface].draft-room .draft-layout .preview h2{font-size:26px;margin:0}
 body[data-lobby-surface].draft-room .draft-layout .preview #pick{margin-top:10px}
 body[data-lobby-surface].draft-room .draft-card{height:155px}
 body[data-lobby-surface].draft-room .draft-card strong{font-size:19px}
 body[data-lobby-surface].draft-room #app>h1{font-size:34px}
}

/* Secondary controls stay in a predictable Menu on every player page. */
body[data-lobby-surface] .shell-page-menu{position:relative}
body[data-lobby-surface] .shell-page-menu>summary{list-style:none;cursor:pointer;padding:10px 5px;min-height:40px;box-sizing:border-box;font:14px/20px SSBody,sans-serif;color:#bdc8bc}
body[data-lobby-surface] .shell-page-menu>summary::-webkit-details-marker{display:none}
body[data-lobby-surface] .shell-page-menu .match-menu-items{position:absolute;top:calc(100% + 8px);right:0;z-index:1000;display:grid;gap:4px;box-sizing:border-box;width:240px;max-width:calc(100vw - 32px);padding:10px;background:#08130f;border:1px solid #5f7158;border-radius:6px;box-shadow:0 16px 40px #000a}
body[data-lobby-surface] .shell-page-menu:not([open]) .match-menu-items{display:none}
body[data-lobby-surface] .shell-page-menu .match-menu-items :is(a,button){display:block;width:100%;box-sizing:border-box;padding:10px 12px;margin:0;border:0;background:transparent;text-align:left;color:#cfdbcc;text-decoration:none;font:14px/1.4 SSBody,sans-serif;min-height:40px;border-radius:3px}
body[data-lobby-surface] .shell-page-menu .match-menu-items :is(a,button):hover{background:#1a2e22;color:#f1ead7}

body[data-lobby-surface] .rankings-tools{display:flex;align-items:center;gap:14px}
body[data-lobby-surface] .rankings-tools .rankings-close{font-size:24px!important;line-height:1!important;min-width:40px;min-height:40px;padding:6px!important;background:transparent!important;border:0!important;color:#d9e4d8!important}
body[data-lobby-surface] .hub-rankings-dialog .rankings-heading{position:sticky;top:-28px;z-index:1;background:#102016;margin-top:-6px;padding:6px 0 12px}
@media(min-width:701px) and (max-height:800px){
 body[data-lobby-surface] .hub-rankings-dialog .ranking-row{padding:9px 0}
 body[data-lobby-surface] .hub-rankings-dialog .community-ranking{padding:14px}
 body[data-lobby-surface] .hub-rankings-dialog .community-rankings{margin-top:12px;margin-bottom:0}
 body[data-lobby-surface] .hub-rankings-dialog .community-leader-title{font-size:18px;margin:10px 0}
}
@media(max-width:700px){body[data-lobby-surface] .hub-rankings-dialog .rankings-heading{top:-22px}.rankings-tools{gap:4px!important}}

/* Draft: commit the pick above the roster; keep full rules on demand. */
body[data-lobby-surface].draft-room .draft-turn{position:sticky;top:0;z-index:10;padding-right:320px;min-height:82px;box-sizing:border-box;background:#10251af5;backdrop-filter:blur(12px)}
.draft-primary-actions{position:absolute;right:16px;top:12px;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.draft-primary-actions>span{font:12px SSBody,sans-serif;color:#b9c7b6}
body[data-lobby-surface].draft-room .draft-primary-actions button{margin:0;min-width:220px;min-height:44px;font:600 16px SSBody,sans-serif}
body[data-lobby-surface].draft-room .draft-layout .preview .draft-abilities{display:grid;gap:0}
body[data-lobby-surface].draft-room .draft-ability{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:10px;text-align:left;background:none;border:0;border-bottom:1px solid #80916c33;border-radius:0;padding:14px 0;margin:0;width:100%;color:#ede3c9}
body[data-lobby-surface].draft-room .draft-ability img{width:26px;height:26px;margin-top:3px}
body[data-lobby-surface].draft-room .draft-ability strong{font:700 21px/1.1 SSHeading,serif}
body[data-lobby-surface].draft-room .draft-ability-type{display:block;font:11px/1.4 SSBody,sans-serif!important;color:#c7b780!important;margin:4px 0}
.draft-ability-summary{display:block;font:14px/1.45 SSBody,sans-serif;color:#c1ccbb}
body[data-lobby-surface].draft-room .draft-ability>b{font:600 18px SSBody,sans-serif;white-space:nowrap;color:#e4d090}
#draft-ability-tip{position:fixed;z-index:1000;box-sizing:border-box;width:min(420px,calc(100vw - 16px));padding:20px;background:#0e2019;border:1px solid #a0b58a;border-radius:8px;box-shadow:0 16px 55px #000b;color:#e8e2cb;pointer-events:none}
#draft-ability-tip strong{display:block;font:700 24px/1.2 SSHeading,Georgia,serif}#draft-ability-tip small{display:block;color:#ccb981;margin-top:6px}#draft-ability-tip p{white-space:pre-line;font:15px/1.5 SSBody,sans-serif;margin:12px 0 0}
@media(max-width:760px){body[data-lobby-surface].draft-room .draft-turn{padding:14px;font-size:20px}.draft-primary-actions{position:static;align-items:stretch;margin-top:10px}.draft-primary-actions>span{display:none}body[data-lobby-surface].draft-room .draft-layout .preview{position:static;order:-1;width:100%;box-sizing:border-box}body[data-lobby-surface].draft-room .draft-layout .preview .draft-abilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}body[data-lobby-surface].draft-room .draft-ability{grid-template-columns:1fr;gap:4px}body[data-lobby-surface].draft-room .draft-ability img{display:none}.draft-ability-summary{font-size:12px}body[data-lobby-surface].draft-room .draft-ability strong{font-size:18px}}
@media(max-width:480px){body[data-lobby-surface].draft-room .draft-layout .preview .draft-abilities{grid-template-columns:1fr}body[data-lobby-surface].draft-room .draft-ability{grid-template-columns:minmax(0,1fr) auto}.draft-ability-summary{font-size:14px}}

/* Room identities retain the same player picture and title shown in battle. */
.room-player-identity{display:inline-flex;gap:14px;align-items:center;min-width:0;max-width:100%;vertical-align:middle}
.room-player-portrait{width:64px;height:64px;flex:0 0 64px;object-fit:cover;border-radius:50%;border:2px solid #79c9a4;background:#07100c}
.room-player-identity>span{min-width:0;overflow-wrap:anywhere}.room-player-title{display:block;color:#d8c18a;font:13px/1.5 SSBody,sans-serif;letter-spacing:.04em}
.spectators .room-player-identity{margin:12px 20px 0 0}.spectators .room-player-portrait,.order .room-player-portrait{width:44px;height:44px;flex-basis:44px}
.feat-tile-art{display:block;width:112px;height:112px;object-fit:contain;margin:0 auto 14px;border-radius:8px}
.feat-tile-grid .reward-card{border-radius:10px}.feat-tile-art.reward-detail-art{width:180px;height:180px}

.room-ready-state{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin-bottom:18px;border:1px solid #7d7956;background:#172319}.room-ready-state strong{display:block;font:700 24px/1.2 SSHeading,serif}.room-ready-state span{display:block;margin-top:6px;color:#bdc9b6;font:15px/1.4 SSBody,sans-serif}.room-ready-state.needs-ready{border-left:4px solid #e5cb82}.room-ready-state.is-ready{border-left:4px solid #7dc9a6}.room-ready-state button{flex-shrink:0}@media(max-width:650px){.room-ready-state{align-items:stretch;flex-direction:column}.room-ready-state button{width:100%}}

/* Champion identity is always visible on ability feats, including locked tiles. */
.feat-champion{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 0 12px;color:#bee1ce;font:600 14px/1.3 system-ui;text-wrap:balance}
.feat-champion img{width:30px;height:30px;flex:none;border-radius:50%;object-fit:cover;border:1px solid #759a84}
.reward-detail .feat-champion{font-size:18px;margin:12px 0}.reward-detail .feat-champion img{width:42px;height:42px}

/* Ability feats use tile artwork rather than circular portrait rewards. */
.reward-card.ability-feat .feat-art-state{display:block;position:relative;width:112px;margin:0 auto 14px}
.reward-card.ability-feat .feat-art-state .feat-tile-art{margin:0}
.reward-card.ability-feat.locked .feat-tile-art{filter:grayscale(1);opacity:.55}
.reward-card.ability-feat.earned{border-color:#71b695}
.feat-earned-check{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:28px;height:28px;background:#143b29;color:#bdffdb;border:2px solid #8bd6ad;border-radius:50%;font:700 20px/1 SSBody,Arial,sans-serif;box-shadow:0 0 0 3px #030706}
