:root{--arcade-mint:#69f5d7;--arcade-lime:#d3ff4e;--orange:#ff6b2b;background:#090c13}body{background:#090c13}#hub{display:block;padding-bottom:90px;background:radial-gradient(ellipse at 90% 0,#22463e33,transparent 55%),#090c13}#hub>aside{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#101620ee;backdrop-filter:blur(18px);border:0;border-top:1px solid #33433f;padding:10px max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));display:block}aside>.brand,aside>.aside-note{display:none}aside nav{display:flex;max-width:700px;margin:auto;gap:8px;justify-content:space-between}aside nav button{flex:1;display:flex;justify-content:center;gap:8px;padding:12px;color:#a3b1c4;border-radius:12px;font-size:20px}aside nav button span{font-size:12px;letter-spacing:1px}aside nav button.selected{border:0;background:#69f5d711;color:var(--arcade-mint)}aside nav button.selected span{color:var(--arcade-mint)}.hub-main{padding:0 clamp(18px,5vw,72px) 30px;margin:auto;max-width:1500px}.topbar{min-height:70px;border-color:#26343c;margin-bottom:28px}.topbar>span{color:#93a2b6;font-weight:700}.topbar button{background:transparent;border-radius:20px;padding:10px 14px}button{border-radius:10px;transition:background .16s,transform .16s}button:active{transform:scale(.97)}button.selected,.primary{background:var(--orange)}button:disabled{cursor:default}h1{letter-spacing:-.035em}.arcade-cover{position:relative;isolation:isolate;padding:28px 0 34px}.arcade-cover h1{font-size:clamp(85px,16vw,204px);font-style:italic;margin:22px 0 12px;line-height:.85;position:relative;z-index:1;max-width:900px}.cover-dot{color:var(--arcade-mint)}.cover-mantra{font:800 clamp(16px,2vw,26px) 'Barlow Condensed',Impact,sans-serif;letter-spacing:5px;color:#edf3fa;margin:20px 0 8px}.cover-intro{color:#a2afbe;font-size:16px}.cover-orbit{position:absolute;right:5%;top:4%;width:240px;height:240px;border:1px solid #6dfdd540;border-radius:50%;z-index:-1;box-shadow:0 0 100px #69f5d711,inset 0 0 80px #69f5d709;transform:rotate(-12deg)}.cover-orbit:after{content:'';position:absolute;inset:-30px;border:1px dashed #697e7655;border-radius:50%}.cover-orbit span{position:absolute;display:grid;place-items:center;width:86px;height:86px;border-radius:50%;background:var(--arcade-lime);color:#121b13;font:900 48px Impact,sans-serif;box-shadow:0 0 35px #d3ff4e3b}.cover-orbit span:first-child{left:-35px;top:20px}.cover-orbit span:nth-child(2){right:-15px;bottom:0;background:var(--orange)}.cover-orbit i{position:absolute;left:85px;top:68px;font-size:70px}.home-actions{display:grid;grid-template-columns:2.4fr 1fr 1fr 1fr;gap:14px;margin-top:35px;position:relative}.home-actions>button{min-height:135px;text-align:left;padding:24px;font:800 32px 'Barlow Condensed',Impact,sans-serif;background:#131c26;border:1px solid #32434d;display:flex;justify-content:space-between;align-items:center}.home-actions>button.primary{background:var(--orange);color:#101720;border:0;font-size:38px}.home-actions>.daily-tile{background:linear-gradient(115deg,#225648,#15342d);border:1px solid #65e6c877;display:flex;flex-direction:column;align-items:start;justify-content:center;gap:8px;box-shadow:0 12px 45px #0004}.daily-tile small{font:800 10px Inter,sans-serif;letter-spacing:1.4px;color:#a4f4db}.daily-tile strong{font-size:35px;color:#fff}.daily-tile>span{font:600 12px Inter,sans-serif;color:#b0d3c7}.home-strip{display:grid;grid-template-columns:1fr 1fr 2fr;border:1px solid #25363a;border-radius:14px;margin:10px 0 20px;background:#11191f;overflow:hidden}.home-strip>div,.home-strip>button{padding:22px;border:0;border-right:1px solid #2b3a3c;border-radius:0;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:transparent;text-align:left}.home-strip small{width:100%;font-size:10px;letter-spacing:2px;color:#7e9b99}.home-strip b{font:900 38px/.95 'Barlow Condensed',Impact,sans-serif}.home-strip span{color:var(--arcade-mint);font-size:11px;font-weight:800}.text-button{background:none;border:0;color:#b0c4cf;text-decoration:underline;padding:8px 0;font-size:13px}#tab-play h1,#tab-ranking h1,#tab-profile h1,#tab-career h1,#tab-challenge h1{font-size:clamp(46px,6vw,82px)}.category-tabs{gap:8px;margin:24px 0;flex-wrap:wrap}.category-tabs button{border-radius:30px;background:#141e27;color:#a5b5c5;font-size:11px;letter-spacing:1px;padding:10px 18px}.category-tabs .selected{color:#081312;background:var(--arcade-mint);border-color:var(--arcade-mint)}.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.catalog-card{position:relative;min-height:178px;padding:22px;overflow:hidden;border-radius:14px;background:linear-gradient(150deg,#1b2933,#101820);border-color:#334048}.catalog-card small{font-size:10px;letter-spacing:1px}.catalog-card h2{font-size:32px;position:relative;margin-top:25px;color:#fff}.catalog-card p{font-size:13px;max-width:240px;line-height:1.4}.catalog-card:before{content:'↗';position:absolute;right:16px;top:16px;font:900 48px 'Barlow Condensed';color:#66e7d333}.catalog-card[data-game=reaction]:before{content:'×4'}.catalog-card[data-game=hands]:before{content:'123'}.catalog-card[data-game=rain]:before{content:'★'}.catalog-card[data-game=iverson-laser]:before{content:'ϟ';color:#ff496e}.catalog-card[data-game=ja-escape]:before{content:'◉';color:#d3ff4e}.catalog-card.selected{background:linear-gradient(145deg,#275946,#16332a);border-color:var(--arcade-mint);color:#fff}.catalog-card.pro-card{border-top-color:#69f5d7}.catalog-card:hover{border-color:#69f5d7}#gameDetails{background:#121c23;border:1px solid #2f404a;border-radius:16px;padding:24px;margin-top:22px}#gameDetails>p{font-size:14px}#unlockGoal{font-size:12px;color:#899ba9}.settings{flex-wrap:wrap;row-gap:14px}.arcade-options{padding:14px 0;border-top:1px solid #293944}.player-card{display:grid;grid-template-columns:110px 1fr 1fr;gap:25px;background:linear-gradient(130deg,#19392f,#141e2b);border:1px solid #6ff3d253;border-radius:20px;padding:32px;margin-bottom:20px}.player-avatar{font-size:70px}.player-card h2{font-size:40px;margin:10px 0}.player-card>div>span{display:block;color:var(--arcade-mint);font-size:12px;margin-top:8px}.rating-number{font:900 66px 'Barlow Condensed',Impact,sans-serif}.player-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.player-facts small{display:block;font-size:10px;letter-spacing:1px}.player-facts b{font:800 25px 'Barlow Condensed',Impact,sans-serif}.best-list>div{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #2e3c46;font-size:13px}.best-list small{display:block;margin-top:4px}.achievement-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:22px}.achievement{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #2b3944;border-radius:12px;background:#101820;color:#6c7a8e}.achievement>span{font-size:26px}.achievement b{font:800 18px 'Barlow Condensed',sans-serif}.achievement small{font-size:9px}.achievement.earned{background:#17392c;color:#baff68;border-color:#6bd49a}.career-path{display:flex;gap:9px;overflow-x:auto;margin:24px 0}.career-path>div{flex:1;min-width:112px;border:1px solid #344049;padding:14px;display:flex;flex-direction:column;border-radius:10px;gap:8px;opacity:.5}.career-path>div.current{border-color:#6ef7d5;background:#153b30;opacity:1}.career-path>div.passed{border-color:#729338;opacity:1}.career-path b{font:800 24px 'Barlow Condensed'}.career-path span{font-size:9px}.career-story{border:1px solid #3c574f;border-radius:18px;padding:30px;background:repeating-linear-gradient(90deg,transparent,transparent 79px,#69f5d70a 80px),linear-gradient(135deg,#153029,#101725);margin-bottom:32px}.career-story h2{font-size:45px}.career-story p{max-width:600px}.trial-goal{display:flex;align-items:center;gap:24px;padding:25px 0}.trial-goal b{font:800 30px 'Barlow Condensed';color:#c9ff6d}.trial-goal span{font-size:12px;color:#9bb1bd}.boss-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.boss-card{text-align:left;padding:20px;background:linear-gradient(130deg,#352133,#151b28);border-color:#684656}.boss-glyph{display:block;font-size:54px;color:#ff8054;margin-bottom:25px}.boss-card h2{font-size:28px}.boss-card small{font-size:9px}.boss-card>span:last-child{font-size:9px;color:#c49fbd}.rank-heading{margin:24px 0;display:flex;gap:10px;flex-direction:column}.rank-heading b{font:800 30px 'Barlow Condensed'}.rank-row{display:flex;gap:20px;align-items:center;background:#121d25;padding:18px;margin:8px 0;border:1px solid #2a3945;border-radius:12px}.rank-row>b:first-child{color:#92a7ba;min-width:22px}.rank-avatar{font-size:30px}.rank-row>div{flex:1}.rank-row small{display:block;color:#8da5b8;font-size:10px;margin-top:6px}.rank-row>b:last-child{font:900 32px 'Barlow Condensed';color:#b5ffa9}.rank-row.you{border-color:#69f5d7;background:#17382e}.incoming-challenge{border:1px solid #6df3ce;border-radius:16px;background:#15332b;padding:24px;margin-bottom:20px}.incoming-challenge>b{font:900 70px 'Barlow Condensed';color:#d3ff4e}#arcadeHud{position:absolute;top:var(--arcade-strip-top,105px);left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));z-index:6;display:flex;align-items:center;gap:12px;pointer-events:none;min-height:24px;color:white;background:#0b14259e;border-radius:8px;padding:5px 10px;font:800 clamp(15px,3.5dvh,24px) 'Barlow Condensed',Impact,sans-serif}#comboHud{color:#d3ff4e}#ghostHud{font-size:16px;color:#67f9d5}#surviveHud{margin-left:auto}#bossHud{margin-left:auto;display:flex;align-items:center;gap:12px}#bossHealth{width:150px;height:12px;accent-color:#ff604f}#arcadeMoment{position:absolute;left:50%;bottom:60px;transform:translateX(-50%);z-index:6;pointer-events:none;color:#d3ff4e;font:900 clamp(25px,5dvh,42px) 'Barlow Condensed',Impact,sans-serif;text-shadow:0 3px 10px #000}#arcadeMoment:empty{display:none}.results-panel{background:radial-gradient(circle at 100% 0,#22584888,transparent 60%),#0c1420f5;border-color:#6af5d74a}.results-panel .eyebrow{color:#69f5d7}.results-panel h1{font-size:clamp(32px,7dvh,64px);margin:8px 0}.result-hero-score{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #33443f;padding:10px 0}.result-hero-score small{font-size:14px;letter-spacing:1px}.result-hero-score b{font:900 clamp(52px,12dvh,105px)/1 'Barlow Condensed',Impact,sans-serif;color:#d3ff4e}.result-rewards{display:flex;gap:20px;align-items:center;color:#67f8d5}.result-rewards b{font:800 30px 'Barlow Condensed'}.result-rewards span{font-size:11px}.trained{font-size:10px;letter-spacing:1px}.results-panel.new-best{box-shadow:0 0 45px #67f8d544}.results-panel.new-best h1{color:#c8ff78;animation:best-breathe 1.2s ease-in-out 3}@keyframes best-breathe{50%{transform:scale(1.02);text-shadow:0 0 20px #6efcd5}}#scoreShare{position:fixed;inset:0;background:#000c;z-index:120;display:grid;place-items:center;padding:20px}#scoreShare section{max-width:480px;max-height:90dvh;overflow:auto;padding:22px;background:#111d28;border:1px solid #5f8f80;border-radius:16px}#shareCanvas{display:block;width:100%;max-height:40dvh;object-fit:contain}#shareLink{overflow-wrap:anywhere;font-size:11px}#downloadScore{display:inline-block;color:#69f5d7;padding:12px;font-size:13px}#scoreShare p:last-child{font-size:12px}#closeScoreShare{float:right}.reduced-effects .hit-reward,.reduced-effects .record,.reduced-effects .new-best h1{animation:none!important}.reduced-effects .target{box-shadow:none!important}.reduced-effects .cover-orbit{box-shadow:none}.reduced-effects *{scroll-behavior:auto!important;transition:none!important}body[data-skin=electric]{--orange:#69f5d7;--arcade-mint:#a3a0ff}body[data-skin=sunset]{--orange:#ff94ab;--arcade-mint:#ffca76}body[data-skin=legend]{--orange:#ffe58e;--arcade-mint:#e9d4ff}#arcadeHud[hidden],#bossHud[hidden],#scoreShare[hidden]{display:none!important}
@media(max-width:1000px){.home-actions{grid-template-columns:2fr 1fr 1fr}.home-actions>.daily-tile{grid-column:1/-1;min-height:110px}.home-actions>button{min-height:95px}.catalog-grid{grid-template-columns:repeat(3,1fr)}.boss-grid{grid-template-columns:repeat(3,1fr)}.player-card{grid-template-columns:90px 1fr}.player-facts{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.achievement-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.topbar{margin-bottom:12px}.topbar>span{font-size:9px;letter-spacing:.5px}.topbar button{font-size:10px}.arcade-cover{padding-top:20px}.cover-orbit{width:130px;height:130px;top:5%;right:9%;opacity:.65}.cover-orbit span{width:55px;height:55px;font-size:29px}.cover-orbit i{font-size:38px;left:40px;top:35px}.cover-mantra{letter-spacing:2px;font-size:16px}.home-actions{gap:9px;margin-top:28px;grid-template-columns:repeat(3,1fr)}.home-actions>button{padding:16px 12px;font-size:24px}.home-actions>button.primary{font-size:28px}.home-strip{grid-template-columns:1fr 1fr}.home-strip>button{grid-column:1/-1;border-top:1px solid #2b3a3c}.home-strip>div,.home-strip>button{padding:16px}.home-strip b{font-size:30px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-card{padding:16px;min-height:170px}.catalog-card h2{font-size:29px}.catalog-card p{font-size:12px}.catalog-card:before{font-size:35px}.player-card{padding:20px;gap:12px;grid-template-columns:70px 1fr}.player-avatar{font-size:50px}.player-card h2{font-size:34px}.player-facts{grid-template-columns:repeat(2,1fr)}.achievement-grid{grid-template-columns:repeat(2,1fr)}.boss-grid{grid-template-columns:repeat(2,1fr)}.career-story{padding:20px}.trial-goal{flex-wrap:wrap;gap:14px}.rank-row{gap:12px;padding:14px}.rank-row strong{font-size:14px}.rank-row>b:last-child{font-size:27px}.results-panel .metric-grid{grid-template-columns:repeat(3,1fr)}aside nav button{flex-direction:column;gap:4px;padding:8px}.settings label{flex-wrap:wrap}}
@media(max-height:460px) and (orientation:landscape){#hub{padding-bottom:70px}.topbar{min-height:50px}.arcade-cover{padding-top:8px}.arcade-cover h1{font-size:112px}.home-actions{grid-template-columns:2.4fr 1fr 1fr 1fr;margin-top:22px}.home-actions>.daily-tile{grid-column:auto}.home-actions>button{min-height:105px}.cover-orbit{width:150px;height:150px}.cover-orbit span{width:60px;height:60px;font-size:36px}.cover-orbit i{font-size:50px;top:35px;left:50px}.catalog-grid{grid-template-columns:repeat(4,1fr)}.results-panel{padding:12px 5%;max-height:94dvh}.results-panel .metric-grid{grid-template-columns:repeat(6,1fr)}.results-panel .metric{padding:6px}.results-panel .metric b{font-size:22px}.results-panel .metric small{font-size:8px}.results-panel .trained{margin:5px}.result-hero-score{padding:3px 0}.result-hero-score b{font-size:52px}.results-panel button{padding:8px 14px;font-size:16px}#viewVideos{font-size:10px}.results-panel #saveState{font-size:10px;margin:6px 0}#arcadeHud{font-size:15px}#ghostHud{font-size:12px}#arcadeMoment{bottom:40px;font-size:26px}}

/* Shared game catalogue palette: reference navy, gold, orange and grey. */
.catalog-grid .catalog-card,.catalog-grid .catalog-card.pro-card,.catalog-grid .catalog-card.selected,.catalog-grid .catalog-card.pro-card.selected{background:linear-gradient(135deg,#172339,#141c2a);border-color:#5470a0;color:#bdc4ce}
.catalog-grid .catalog-card h2,.catalog-grid .catalog-card.pro-card h2{color:#ffe38a}
.catalog-grid .catalog-card small{color:#ffac76}
.catalog-grid .catalog-card p{color:#bdc4ce}
.catalog-grid .catalog-card.selected,.catalog-grid .catalog-card.pro-card.selected{border-color:#ffe38a;box-shadow:0 0 0 1px #ffe38a}
.catalog-grid .catalog-card:hover,.catalog-grid .catalog-card:focus-visible{border-color:#ffe38a}

/* Home actions: keep whole words and give icons their own row on phones. */
#hub .home-actions > button:not(.daily-tile) {
 min-width:0; max-width:100%; white-space:normal;
 overflow-wrap:normal; word-break:normal; hyphens:none;
 line-height:1.12; gap:10px;
}
@media (max-width:600px) {
 #hub .home-actions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 #hub .home-actions > .daily-tile { grid-column:1/-1; min-width:0; }
 #hub .home-actions > button:not(.daily-tile) {
  flex-direction:column; justify-content:center; align-items:center;
  text-align:center; padding:16px 6px; min-height:120px;
  font-size:clamp(17px,5.2vw,26px); letter-spacing:0;
 }
 #hub .home-actions > button:not(.daily-tile) > span {
  flex:0 0 auto; display:block; font-size:26px; line-height:1.1;
 }
 #hub .daily-tile strong { max-width:100%; font-size:clamp(25px,7.5vw,35px); overflow-wrap:normal; }
 #hub .daily-tile small, #hub .daily-tile > span { max-width:100%; white-space:normal; }
 #hub .home-strip > button { min-width:0; flex-wrap:wrap; gap:8px; }
 #hub .home-strip > button b { min-width:0; white-space:normal; overflow-wrap:normal; font-size:clamp(23px,7vw,30px); }
 #hub .topbar, #hub .topbar > div { flex-wrap:wrap; }
 #hub .topbar button { max-width:100%; white-space:normal; overflow-wrap:normal; }
 #hub > aside nav button { min-width:0; flex-direction:column; padding-inline:4px; gap:6px; }
 #hub > aside nav button span { white-space:normal; overflow-wrap:normal; word-break:normal; font-size:clamp(10px,2.8vw,12px); letter-spacing:0; }
}

/* Compact profile controls replace the shared header on every menu screen. */
#hub .profile-tools {display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px;}
#hub .home-actions > .event-preview {grid-column:1/-1;}
#hub .home-strip > .event-preview {grid-column:1/-1;border-top:1px solid #2b3a3c;}
.event-preview {padding:14px 18px;background:#12262b;border:1px solid #335350;border-radius:12px;display:flex;gap:16px;justify-content:space-between;align-items:center;}
.event-preview > div {min-width:0;flex:1;}
.event-preview > button {flex:0 0 auto;color:#69f5d7;font-size:14px;min-height:44px;}
.event-top {list-style:none;padding:0;margin:0;display:grid;gap:6px;}
.event-top li {display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:14px;}
.event-top li span {overflow-wrap:anywhere;}
.event-top li strong {color:#ffe68d;}
.video-save-photos {min-height:48px;background:#26564b;color:#fff;border-color:#69f5d7;}
.video-actions {flex-wrap:wrap;}
@media(max-width:600px){.event-preview{flex-direction:column;align-items:stretch;gap:10px;}.event-preview > button{width:100%;}.profile-tools button{font-size:13px;}}

.video-fullscreen{display:block;min-height:44px;margin:10px 0;} #scoreShare .video-card{padding:8px;} #scoreShare video{width:100%;aspect-ratio:16/9;} .video-expanded{position:fixed!important;inset:0;width:100vw!important;height:100dvh!important;object-fit:contain;background:#000;z-index:9999;}

.video-card:has(.video-expanded) .video-fullscreen{position:fixed;top:12px;right:12px;z-index:10001;background:#111;color:#fff}.video-expanded{z-index:10000}

.rank-arena{background:radial-gradient(ellipse at top,#243557,#0c1321 65%);border:1px solid #435a85;border-radius:28px;padding:24px;overflow:hidden}.rank-hero{text-align:center;padding:16px 12px 30px}.rank-hero h2{font-size:clamp(28px,5vw,48px);color:#ffe396;margin:12px 0}.rank-hero small{letter-spacing:.14em;color:#8fecdc}.rank-crown{display:block;font-size:46px;color:#e7bf65}.rank-hero p{color:#a4b5cd}.rank-podium{display:flex;align-items:flex-end;justify-content:center;gap:12px;margin-bottom:28px}.podium-place{width:30%;min-width:0;text-align:center;border:1px solid #7a8caa;background:linear-gradient(155deg,#35455c,#182131);border-radius:20px 20px 8px 8px;padding:20px 8px 14px;display:flex;flex-direction:column;gap:8px;box-shadow:0 12px 24px #0004}.podium-1{border-color:#edca7d;background:linear-gradient(155deg,#725931,#241c13);padding-top:36px;box-shadow:0 0 30px #c99e4225}.podium-3{border-color:#b5835d;background:linear-gradient(155deg,#614332,#251b17)}.podium-medal{font-size:32px}.podium-avatar{font-size:38px}.podium-place strong{font-size:clamp(14px,2vw,22px);overflow-wrap:anywhere}.podium-place b{color:#ffe394;font-size:clamp(24px,4vw,40px);font-variant-numeric:tabular-nums}.podium-place small{font-size:11px;color:#bdc9d7}.podium-number{margin-top:10px;font-weight:800;color:#dae1ed}.rank-personal{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#143d38;border:1px solid #51bbaa;padding:18px;border-radius:16px;margin-bottom:24px}.rank-personal b{font-size:30px;color:#9cffec;margin-inline-start:auto}.rank-personal small{flex-basis:100%;color:#bfd3d4}.rank-contender{display:flex;gap:14px;align-items:center;padding:18px 12px;border-bottom:1px solid #30405a}.rank-contender>div{flex:1;min-width:0}.rank-contender strong{display:block;overflow-wrap:anywhere}.rank-contender small{display:block;color:#91a4bf;font-size:12px;margin-top:4px}.rank-position{font-size:22px;color:#8297b6;font-variant-numeric:tabular-nums}.rank-value{font-size:26px;color:#ffe49a}.rank-you{background:#18372f;border-radius:12px;border:1px solid #69d9bd}.rank-podium .podium-you{outline:2px solid #75ead4}.notification-settings{padding:18px;border:1px solid #35475c;border-radius:16px;margin-top:20px}.notification-settings label{display:flex;align-items:center;gap:12px}.notification-settings input{width:22px;height:22px}.streak-reward{color:#edc97a}@media(max-width:600px){.rank-arena{padding:14px 8px;border-radius:20px}.rank-podium{gap:6px}.podium-place{width:33%;padding:14px 5px}.podium-1{padding-top:28px}.podium-avatar{font-size:28px}.rank-contender{gap:10px;padding:15px 8px}.rank-value{font-size:22px}.rank-avatar{font-size:24px}.rank-hero{padding-bottom:20px}}

/* Menu, categories and illustrated game selection. */
#tab-home .arcade-cover{display:block;min-height:0;padding:28px clamp(16px,4vw,48px)}
#tab-home .arcade-cover h1{margin-bottom:24px}#tab-home .home-actions{display:grid;grid-template-columns:1fr;gap:10px;max-width:620px;margin:auto}
#tab-home .home-actions button{width:100%;min-width:0;min-height:62px;padding:16px 12px;font-size:clamp(16px,2.5vw,22px);line-height:1.2;white-space:normal;overflow-wrap:break-word;text-align:center;border-radius:12px;color:white;background:#ff6b2b;border:1px solid #ff894f}
#tab-home .home-actions .legend-action{background:#d9aa44;color:#181206;border-color:#f1cb72}#tab-home .home-actions .friends-action{background:#245eab;border-color:#528cdf}
.home-challenges{display:grid;gap:10px;max-width:620px;margin:20px auto 0}.challenge-tile{background:#151d2b;border:1px solid #33445c;border-radius:12px;overflow:hidden}.challenge-tile>button:first-child{width:100%;display:grid;gap:7px;background:transparent;border:0;text-align:left;padding:16px 20px}.challenge-tile strong{font-size:22px}.challenge-tile small{color:#e9b64e;font-size:14px}.challenge-tile span{color:#bbc9da;font-size:14px}.challenge-ranking{background:transparent;border:0;padding:0 20px 12px;font-size:11px;color:#bccce0}
#categoryTabs.mode-square-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:960px;margin:24px auto}#categoryTabs .mode-square{aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:16px;white-space:normal;background:linear-gradient(145deg,#22354f,#131e2e);border:1px solid #4e6b92;border-radius:18px;text-align:center}#categoryTabs .mode-square strong{font-size:clamp(17px,2.8vw,28px);line-height:1.15}#categoryTabs .mode-square small{color:#ffbc69;font-size:15px}#categoryTabs .mode-square:nth-child(2){border-color:#dea843}#categoryTabs .mode-square:nth-child(3){border-color:#46a6bb}#categoryTabs .mode-square:nth-child(4){border-color:#a980de}#categoryTabs .mode-square:nth-child(5){border-color:#58bba2}
#catalogRoot.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}#catalogRoot .game-image-card{padding:0;overflow:hidden;display:block;background:#141e2b;border:1px solid #334963;border-radius:16px;min-width:0;text-align:left}#catalogRoot .game-image-card img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}#catalogRoot .game-card-caption{padding:16px}#catalogRoot .game-card-caption h2{font-size:20px;margin:0 0 8px;line-height:1.2}#catalogRoot .game-card-caption p{font-size:13px;color:#e8b74f;margin:0}
#gameDetails:not([hidden]){position:fixed;inset:0;z-index:90;margin:auto;width:min(580px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 32px);overflow:auto;padding:32px 24px;background:#111c2d;border:1px solid #587296;border-radius:20px;box-shadow:0 0 0 100vmax #000c}#gameDetails .dialog-close{float:right;font-size:28px;line-height:1;padding:4px 12px;background:transparent}.variant-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.variant-choices button{padding:22px 8px;font-size:23px;border-radius:12px}#variantHint{color:#bdcbda;font-size:14px}
@media(max-width:700px){#categoryTabs.mode-square-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#catalogRoot.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#catalogRoot .game-card-caption{padding:12px}#catalogRoot .game-card-caption h2{font-size:16px}#tab-home .arcade-cover h1{font-size:clamp(56px,15vw,100px)}}
@media(max-width:400px){#catalogRoot.catalog-grid{grid-template-columns:1fr}}


/* Selected artwork is painted directly in each button, with a fixed SVG viewport. */
#tab-home .arcade-cover h1{position:relative;z-index:1;max-width:100%;overflow:visible}
#tab-home .nitro-title,#tab-home .basket-title{color:#fff;-webkit-text-stroke:1.4px #d9ad51;paint-order:stroke fill;text-shadow:0 0 14px #d6a74535}
#tab-home .basket-title{-webkit-text-stroke:.85px #d9ad51}#tab-home .cover-orbit{pointer-events:none;z-index:0;opacity:.55}
#tab-home .home-actions{position:relative;z-index:2;max-width:900px;gap:14px}
#tab-home .home-actions .hero-art-action{display:block;position:relative;min-height:0;padding:0;border:0;border-radius:20px;overflow:hidden;background:#080e16;box-shadow:0 5px 18px #0007}
#tab-home .home-actions .hero-art-action>svg{display:block;width:100%;height:auto;max-width:100%}
#tab-home .hero-art-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#tab-home .home-actions .hero-art-action:focus-visible{outline:3px solid white;outline-offset:4px}
@media(max-width:700px){#tab-home .home-actions .hero-art-action{border-radius:14px}#tab-home .nitro-title{-webkit-text-stroke:1.1px #d9ad51}#tab-home .cover-orbit{right:0;top:25px;opacity:.35}}

/* Compact, edge-to-edge home artwork overrides the older mobile button rules. */
#hub #tab-home .home-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
#hub #tab-home .home-actions>button.hero-art-action{display:block;width:100%;min-width:0;min-height:0;height:auto;padding:0;margin:0;border:0;background:transparent;box-shadow:none;line-height:0;border-radius:16px}
#hub #tab-home .home-actions>button.hero-art-action>svg{display:block;width:100%;height:auto;margin:0;padding:0;max-width:100%;vertical-align:top}
@media(max-width:700px){#hub #tab-home .home-actions>button.hero-art-action{border-radius:12px}}

/* Compact header and illustrated timed challenges. */
#hub #tab-home .arcade-cover{padding-top:16px;padding-bottom:18px}#hub #tab-home .home-slogan{font-size:clamp(11px,1.7vw,14px);letter-spacing:1.4px;line-height:1.5;margin-bottom:12px;color:#efaa79}
#hub #tab-home .arcade-cover h1{margin-top:0;margin-bottom:16px}#hub #tab-home .basket-pro-wordmark{margin-top:10px}
#hub #tab-home .home-challenges{max-width:900px;margin-top:16px;gap:10px}
#hub #tab-home .challenge-tile{--challenge-accent:#ff9250;border:1px solid #b86d3c66;background:linear-gradient(125deg,#2b1c18,#111b29);border-radius:14px;overflow:hidden}
#hub #tab-home .weekly-challenge{--challenge-accent:#69baff;background:linear-gradient(125deg,#14283e,#111b29);border-color:#4383b977}
#hub #tab-home .challenge-open{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;width:100%;padding:14px;border:0;background:transparent;text-align:left;color:#fff}
#hub #tab-home .challenge-open>img{display:block;width:100%;height:100%;min-height:105px;max-height:150px;object-fit:cover;border-radius:9px}
#hub #tab-home .challenge-copy{display:grid;gap:5px;min-width:0}#hub #tab-home .challenge-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
#hub #tab-home .challenge-heading small{color:var(--challenge-accent);font-size:13px;font-weight:800;letter-spacing:.2px}#hub #tab-home .challenge-badge{font-size:9px;font-weight:800;color:var(--challenge-accent);padding:3px 6px;border:1px solid currentColor;border-radius:5px;letter-spacing:.5px}
#hub #tab-home .challenge-copy>strong{font:800 clamp(18px,2.8vw,26px)/1.05 'Barlow Condensed',Impact,sans-serif;letter-spacing:.3px;overflow-wrap:break-word;color:white}
#hub #tab-home .challenge-record-label{font-size:11px;color:#aebdce}#hub #tab-home .challenge-copy>b{font:800 23px/1.15 'Barlow Condensed',Impact,sans-serif;color:var(--challenge-accent);letter-spacing:.4px}
#hub #tab-home .challenge-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid #ffffff12;background:#0002}
#hub #tab-home .challenge-clock{display:flex;gap:6px;align-items:center;color:#aebdce;font-size:10px}#hub #tab-home .challenge-clock>span{font-size:9px;color:#aebdce}#hub #tab-home .challenge-clock time{font-variant-numeric:tabular-nums;color:var(--challenge-accent);font-size:12px;font-weight:700}
#hub #tab-home .challenge-ranking{padding:0;font-size:10px;color:#d6e2ee;white-space:nowrap}
#hub #tab-home .home-actions>button.hero-art-action{transition:filter .12s ease,transform .12s ease}
#hub #tab-home .home-actions>button.hero-art-action:active{filter:brightness(1.16);transform:scale(.99)}
#hub #tab-home .play-art::after{content:'';position:absolute;inset:1px;border:1px solid #ffaf64;border-radius:inherit;box-shadow:inset 0 0 9px #ffad6577;pointer-events:none;opacity:0;animation:home-play-spark 18s ease-in-out infinite}
@keyframes home-play-spark{0%,2%,9%,100%{opacity:0}4%{opacity:.65}6%{opacity:.2}}
@media(max-width:400px){#hub #tab-home .challenge-open{grid-template-columns:80px minmax(0,1fr);gap:10px;padding:12px}#hub #tab-home .challenge-heading small{font-size:11px}#hub #tab-home .challenge-copy>b{font-size:21px}#hub #tab-home .challenge-footer{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){#hub #tab-home .play-art::after{animation:none}#hub #tab-home .home-actions>button.hero-art-action{transition:none}#hub #tab-home .home-actions>button.hero-art-action:active{transform:none}}

/* Cinematic square category cards, with live labels and counts. */
#hub #tab-play #categoryTabs.mode-square-grid{gap:14px}
#hub #tab-play #categoryTabs .visual-mode{--mode-accent:#ff873d;position:relative;isolation:isolate;aspect-ratio:1;display:block;padding:0;overflow:hidden;border:1px solid var(--mode-accent);background:#0a111c;border-radius:16px;box-shadow:0 0 14px #ff873d18;text-align:left}
#hub #tab-play #categoryTabs .visual-mode:nth-child(2){--mode-accent:#f5c357}#hub #tab-play #categoryTabs .visual-mode:nth-child(3){--mode-accent:#45d7f5}#hub #tab-play #categoryTabs .visual-mode:nth-child(4){--mode-accent:#c08cff}#hub #tab-play #categoryTabs .visual-mode:nth-child(5){--mode-accent:#48e0b2}
#hub #tab-play #categoryTabs .visual-mode>svg{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
#hub #tab-play #categoryTabs .mode-card-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#070b1200 36%,#070b1255 58%,#070b12f5 100%);pointer-events:none}
#hub #tab-play #categoryTabs .mode-caption{position:absolute;z-index:2;left:14px;right:12px;bottom:14px;display:grid;gap:7px}
#hub #tab-play #categoryTabs .mode-caption strong{font:800 clamp(21px,3vw,34px)/1.02 'Barlow Condensed',Impact,sans-serif;letter-spacing:.3px;color:#fff;white-space:normal;text-shadow:0 2px 5px #000;text-transform:uppercase}
#hub #tab-play #categoryTabs .mode-caption small{justify-self:start;font-size:12px;line-height:1.2;letter-spacing:.3px;color:var(--mode-accent);background:#080e16b3;border:1px solid var(--mode-accent);padding:4px 8px;border-radius:6px}
#hub #tab-play #categoryTabs .visual-mode:hover{filter:brightness(1.08)}#hub #tab-play #categoryTabs .visual-mode:active{filter:brightness(1.16)}#hub #tab-play #categoryTabs .visual-mode:focus-visible{outline:3px solid white;outline-offset:4px}
@media(max-width:700px){#hub #tab-play #categoryTabs.mode-square-grid{gap:12px}#hub #tab-play #categoryTabs .mode-caption{left:11px;right:9px;bottom:11px;gap:6px}#hub #tab-play #categoryTabs .mode-caption strong{font-size:clamp(19px,5.7vw,28px)}#hub #tab-play #categoryTabs .mode-caption small{font-size:11px;padding:3px 7px}}
/* Keep menu headings below translucent phone status bars. */
#hub .hub-main{padding-top:calc(env(safe-area-inset-top,0px) + 12px)}
#hub #tab-home .arcade-cover{padding-top:12px}
#hub #tab-home .home-slogan{position:relative;z-index:1;margin-bottom:18px;max-width:100%;white-space:normal}
#hub #tab-home .arcade-cover h1{font-size:clamp(100px,18vw,190px);line-height:1;margin:0 0 24px;letter-spacing:-.025em}
#hub #tab-home .nitro-title{display:block;width:fit-content;color:#fffdf4;-webkit-text-stroke:2px #efc56c;paint-order:stroke fill;text-shadow:0 2px 0 #9a681f,0 0 18px #e6b44e55,0 6px 20px #0009}
#hub #tab-home .basket-pro-wordmark{font-size:clamp(30px,4.8vw,52px);line-height:1.2;margin-top:8px;letter-spacing:.12em}
#hub #tab-home .basket-title{color:#fffdf4;-webkit-text-stroke:1.2px #efc56c;paint-order:stroke fill;text-shadow:0 0 14px #e6b44e44}
#hub #tab-home .basket-pro-wordmark i{box-shadow:0 0 14px #e6b44e33;border:1px solid #f6d992}
#hub #tab-home .cover-orbit{opacity:.22}
@media(max-width:700px){#hub .hub-main{padding-top:calc(max(44px,env(safe-area-inset-top,0px)) + 10px)}#hub #tab-home .arcade-cover h1{font-size:clamp(76px,24vw,136px)}#hub #tab-home .basket-pro-wordmark{font-size:clamp(27px,8vw,42px)}#hub #tab-home .home-slogan{letter-spacing:1.1px;font-size:clamp(10px,2.8vw,14px)}}

/* A shorter mode header and colored feedback for touch and keyboard activation. */
#hub #tab-play .play-heading{font:800 clamp(36px,9.5vw,72px)/1.05 'Barlow Condensed',Impact,sans-serif;font-style:italic;letter-spacing:-.02em;margin:12px 0 14px;color:#fffdf4}
#hub #tab-play .dribble-rule{margin:0 0 20px;font-size:clamp(15px,3.8vw,21px);line-height:1.4}
#hub #tab-play #categoryTabs .visual-mode{transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}
#hub #tab-play #categoryTabs .visual-mode::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;opacity:0;background:linear-gradient(125deg,transparent 20%,var(--mode-accent) 50%,transparent 80%);box-shadow:inset 0 0 24px var(--mode-accent)}
#hub #tab-play #categoryTabs .visual-mode.mode-pressed{transform:scale(.97);filter:brightness(1.18);box-shadow:0 0 22px var(--mode-accent)}
#hub #tab-play #categoryTabs .visual-mode.mode-pressed::after{animation:mode-touch-flash .22s ease-out both}
@keyframes mode-touch-flash{0%{opacity:0}35%{opacity:.3}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){#hub #tab-play #categoryTabs .visual-mode{transition:none}#hub #tab-play #categoryTabs .visual-mode.mode-pressed{transform:none}#hub #tab-play #categoryTabs .visual-mode.mode-pressed::after{animation:none}}

/* Focused game selection: mode heading, quiet records, and compact controls. */
#hub #tab-play.has-category .play-heading{color:#ff873d;text-transform:uppercase;margin-bottom:6px;font-size:clamp(32px,8.6vw,66px);overflow-wrap:break-word}
#hub #tab-play #playModeCount{margin:0;color:#aebdcd;font-size:14px;line-height:1.4}
#hub #tab-play.has-category #categoryTabs{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 20px}
#hub #tab-play #backCategories{padding:8px 10px;min-height:44px;background:transparent;border:0;border-radius:8px;font-size:13px;letter-spacing:0;color:#bfccd9}
#hub #tab-play .play-settings-trigger{display:flex;align-items:center;gap:6px;padding:8px 10px;min-height:44px;background:#141e27;border:1px solid #33434e;border-radius:9px;font-size:12px;letter-spacing:0;color:#bfccd9}
#hub #tab-play .play-settings-trigger svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
#hub #tab-play #catalogRoot .game-image-card{--mode-accent:#ff873d;position:relative;isolation:isolate;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}
#hub #tab-play #catalogRoot[data-category="LEARNING"] .game-image-card{--mode-accent:#f5c357}#hub #tab-play #catalogRoot[data-category="VISION"] .game-image-card{--mode-accent:#45d7f5}#hub #tab-play #catalogRoot[data-category="PRO REACTION"] .game-image-card{--mode-accent:#c08cff}#hub #tab-play #catalogRoot[data-category="TWO BALL TRAINING"] .game-image-card{--mode-accent:#48e0b2}
#hub #tab-play #catalogRoot .game-image-card::before{content:none}
#hub #tab-play #catalogRoot .game-card-caption{padding:14px;min-height:110px}
#hub #tab-play #catalogRoot .game-card-caption h2{color:#fff;font:800 clamp(18px,3.2vw,26px)/1.1 'Barlow Condensed',Impact,sans-serif;margin:0 0 10px;letter-spacing:.2px}
#hub #tab-play #catalogRoot .game-record-label{display:block;color:#aebdcd;font-size:10px;line-height:1.25}
#hub #tab-play #catalogRoot .game-record-value{margin:4px 0 0;color:#edc46a;font-size:clamp(12px,2.8vw,17px);font-weight:700;line-height:1.35;max-width:none}
#hub #tab-play #catalogRoot .game-image-card::after{content:'';position:absolute;inset:0;z-index:3;border-radius:inherit;pointer-events:none;opacity:0;background:linear-gradient(125deg,transparent 20%,var(--mode-accent) 50%,transparent 80%);box-shadow:inset 0 0 24px var(--mode-accent)}
#hub #tab-play #catalogRoot .game-image-card.mode-pressed{transform:scale(.97);filter:brightness(1.18);box-shadow:0 0 22px var(--mode-accent)}
#hub #tab-play #catalogRoot .game-image-card.mode-pressed::after{animation:mode-touch-flash .22s ease-out both}
#hub #tab-play #catalogRoot .game-image-card:focus-visible{outline:3px solid var(--mode-accent);outline-offset:3px}
#playSettings:not([hidden]){position:fixed;inset:0;margin:auto;width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 64px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;box-sizing:border-box;padding:22px;background:#111c2d;color:#edf3fa;border:1px solid #587296;border-radius:20px}
#playSettings::backdrop{background:#000b;backdrop-filter:blur(4px)}
#playSettings .play-settings-header{display:flex;align-items:start;gap:12px;margin-bottom:18px}
#playSettings .play-settings-header h2{flex:1;font-size:24px;line-height:1.1;margin:0;color:#fff}
#playSettings #closePlaySettings{background:transparent;border:0;font-size:26px;min-width:44px;min-height:44px;padding:4px 10px;line-height:1}
#playSettings .settings{display:grid;gap:16px}#playSettings p{font-size:13px;line-height:1.5;color:#aebdcd}
@media(max-width:400px){#hub #tab-play #catalogRoot .game-card-caption{padding:12px;min-height:100px}}
@media(prefers-reduced-motion:reduce){#hub #tab-play #catalogRoot .game-image-card{transition:none}#hub #tab-play #catalogRoot .game-image-card.mode-pressed{transform:none}#hub #tab-play #catalogRoot .game-image-card.mode-pressed::after{animation:none}}

/* Friends: cinematic actions, compact contacts and separate chat/league views. */
#hub #tab-friends #friendsTitle{font:800 clamp(34px,8vw,66px)/1.04 'Barlow Condensed',Impact,sans-serif;font-style:italic;color:#fff;max-width:900px;margin:12px 0 24px;text-shadow:0 0 18px #1c8aff22}
#hub #tab-friends #socialRoot{max-width:900px;margin:auto}
#hub #tab-friends .friend-hero-actions{display:grid;gap:14px}
#hub #tab-friends .friend-art-card{position:relative;isolation:isolate;display:block;width:100%;aspect-ratio:3/1;padding:0;border:1px solid #398fff;border-radius:18px;overflow:hidden;background:#071424;box-shadow:0 0 18px #268fff25;text-align:left;transition:transform .16s,filter .16s}
#hub #tab-friends .friend-art-card img{position:absolute;left:0;top:0;display:block;width:100%;height:200%;max-width:none;object-fit:fill;z-index:0}
#hub #tab-friends .friend-art-card.join img{top:-100%}
#hub #tab-friends .friend-art-card>span{position:absolute;left:5%;top:50%;transform:translateY(-50%);width:38%;font:800 clamp(26px,7vw,60px)/.98 'Barlow Condensed',Impact,sans-serif;font-style:italic;color:#fff;letter-spacing:-.015em;text-shadow:0 2px 12px #000,0 0 16px #379fff66;z-index:1}
#hub #tab-friends .friend-art-card.join>span{color:#7ae9ff}
#hub #tab-friends .friend-art-card:active{filter:brightness(1.2);transform:scale(.98)}
#hub #tab-friends .friend-art-card:focus-visible{outline:3px solid #a9edff;outline-offset:4px}
#hub #tab-friends .friends-contacts{margin:26px 0 18px;padding:0;border:0;background:transparent}
#hub #tab-friends .friends-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#hub #tab-friends .friends-section-heading h2{font:800 25px/1.1 'Barlow Condensed',Impact,sans-serif;margin:0;color:#fff}
#hub #tab-friends .friends-section-heading button{padding:10px 0;background:transparent;border:0;font-size:12px;color:#74cdff;min-height:44px}
#hub #tab-friends .friend-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #294054}
#hub #tab-friends .friend-avatar{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:linear-gradient(135deg,#225ea6,#162738);border:1px solid #508cb9;border-radius:50%;font-size:19px;font-weight:800;color:#c7f4ff}
#hub #tab-friends .friend-row strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:15px;color:#fff}
#hub #tab-friends .friend-chat-button{width:44px;height:44px;padding:11px;background:transparent;border:1px solid #304a62;border-radius:10px;color:#aad0e8}
#hub #tab-friends .friend-chat-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
#hub #tab-friends .friend-challenge-button,#hub #tab-friends #chatChallenge{padding:10px 13px;background:#1666b2;border:1px solid #419ded;border-radius:10px;color:#fff;min-height:44px;font-size:13px}
#hub #tab-friends .friends-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0}
#hub #tab-friends .friends-empty p{margin:0;color:#aabdd0;font-size:14px}
#hub #tab-friends .friends-empty button{display:none}
#hub #tab-friends .friends-league-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:18px 20px;border:1px solid #345575;border-radius:14px;background:linear-gradient(120deg,#172b43,#0e1928);font:800 22px 'Barlow Condensed',Impact,sans-serif;color:#b9dcff;text-align:left}
#hub #tab-friends .social-back{background:transparent;border:0;padding:8px 0;color:#aebfd0;min-height:44px;font-size:13px;margin-bottom:12px}
#hub #tab-friends #social-chat,#hub #tab-friends .social-leagues{padding:0;border:0;background:transparent;margin:0}
#hub #tab-friends .chat-contact-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}
#hub #tab-friends .chat-contact-heading strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:20px;color:#fff}
#hub #tab-friends .social-messages{height:clamp(220px,40dvh,420px);min-height:0;border:1px solid #284258;border-radius:14px;background:#0a1420;padding:14px}
#hub #tab-friends #chatForm{display:flex;gap:8px;margin-top:12px}
#hub #tab-friends #chatText{flex:1;min-width:0;width:100%;font-size:14px}
#hub #tab-friends #chatForm button{padding:10px 14px;font-size:13px;background:#1666b2;color:#fff}
#hub #tab-friends .chat-tools{display:flex;gap:8px;margin-top:10px}
#hub #tab-friends .chat-tools button{padding:8px 12px;font-size:12px;border:1px solid #34506b;background:transparent;color:#a8c9e7;min-height:44px}
#hub #tab-friends .league-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
#hub #tab-friends .league-entry-actions button{padding:15px 10px;border:1px solid #418cd0;background:#163657;color:#fff}
#hub #tab-friends .league-form{display:grid;gap:14px;border:1px solid #304a64;border-radius:14px;padding:18px;margin-bottom:20px}
#hub #tab-friends .league-form label{display:grid;gap:6px;font-size:13px;color:#b8cfe0}
#hub #tab-friends .league-form input,#hub #tab-friends .league-form select{width:100%;min-width:0;font-size:15px}
#hub #tab-friends .league-form button{justify-self:start;padding:12px 18px}
#hub #tab-friends .league-form p{font-size:12px;margin:0}
#hub #tab-friends .league-list-row{display:grid;grid-template-columns:1fr auto;gap:6px;text-align:left;width:100%;padding:16px;margin-bottom:8px;border:1px solid #314e69;border-radius:12px;background:#132235;color:#fff}
#hub #tab-friends .league-list-row small{grid-column:1;font-size:12px;color:#9eb8ce}.league-list-row>span{grid-column:2;grid-row:1 / 3;align-self:center;color:#76cdff}
#hub #tab-friends .private-league{margin-top:22px;padding:18px;background:#111f30;border:1px solid #325978;border-radius:14px}
#hub #tab-friends .private-league h2{font-size:28px;color:#fff;margin:0 0 10px;overflow-wrap:anywhere}
#hub #tab-friends .private-league>p{color:#71caff;font-size:14px}
#hub #tab-friends .league-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.league-detail-actions button{font-size:12px;padding:10px 12px}
#hub #tab-friends .league-rules{font-size:12px;color:#a9bed1;margin:12px 0}.league-rules summary{padding:10px 0}
#friendInvite{inset:0;width:min(480px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100dvh - 96px);padding:22px;margin:auto;border:1px solid #4c87ba;border-radius:18px;background:#101d2d;color:#fff;overflow:auto}
#friendInvite::backdrop{background:#000b;backdrop-filter:blur(4px)}
#friendInvite .social-dialog-header{display:flex;align-items:start;gap:12px;margin-bottom:18px}
#friendInvite h2{font:800 28px 'Barlow Condensed',Impact,sans-serif;margin:0;flex:1}
#friendInvite #closeFriendInvite{font-size:26px;width:44px;height:44px;padding:0;background:transparent;border:0}
#friendInvite .invite-actions{display:grid;gap:10px}#friendInvite .invite-actions button{padding:13px;font-size:14px}
#friendInvite .primary{background:#176abb;color:#fff}
#friendInvite #inviteStatus{font-size:12px;color:#80d4ff;overflow-wrap:anywhere}
#friendInvite #friendAddForm{margin-top:20px;display:grid;gap:8px;font-size:13px;color:#b9cde1}
#friendInvite .invite-code-row{display:flex;gap:8px}#friendInvite #friendInput{width:100%;min-width:0;font-size:14px}#friendInvite #addFriend{font-size:13px;padding:10px 14px}
#hub #tab-challenge #challengeTitle{font:800 clamp(36px,9vw,66px)/1.04 'Barlow Condensed',Impact,sans-serif;color:#78ceff;margin:16px 0 24px}
#hub #tab-challenge .challenge-grid{display:block;max-width:620px;margin:auto}#hub #tab-challenge .challenge-grid article{background:#112137;border:1px solid #335e85;border-radius:18px;padding:22px}
@media(max-width:600px){#hub #tab-friends .friend-art-card{border-radius:14px}#hub #tab-friends .friend-art-card>span{font-size:clamp(24px,7.8vw,44px)}#hub #tab-friends #friendsTitle{margin-bottom:20px}#hub #tab-friends .friends-empty{padding:12px 0}}
@media(prefers-reduced-motion:reduce){#hub #tab-friends .friend-art-card{transition:none}#hub #tab-friends .friend-art-card:active{transform:none}}

/* Player profile: gold arena card with focused statistics and collectible medals. */
#hub #tab-profile{max-width:900px;margin:auto}
#hub #tab-profile .profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 20px}
#hub #tab-profile .profile-heading h1{font:800 clamp(28px,7vw,48px)/1 'Barlow Condensed',Impact,sans-serif;font-style:italic;margin:0;color:#fff}
#hub #tab-profile #settingsButton{display:grid;place-items:center;padding:10px;width:44px;height:44px;border:1px solid #655635;background:#171c23;border-radius:12px;color:#e8c979}
#hub #tab-profile #settingsButton svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
#hub #tab-profile .cinematic-player-card{position:relative;isolation:isolate;padding:22px;border:1px solid #c39d5566;border-radius:22px;overflow:hidden;background:linear-gradient(110deg,#090e17b8,#090e1766),url('/profile-art/arena.jpg?v=78') center/cover;box-shadow:0 0 26px #cca34812}
#hub #tab-profile .profile-identity{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center;position:relative}
#hub #tab-profile .profile-identity .player-avatar{font-size:36px;width:48px;line-height:1;text-align:center}
#hub #tab-profile .profile-identity small{display:block;font-size:11px;color:#c8c8c1}
#hub #tab-profile .profile-identity h2{font:800 clamp(27px,7vw,42px)/1.1 'Barlow Condensed',Impact,sans-serif;color:white;margin:4px 0;overflow-wrap:anywhere}
#hub #tab-profile .profile-tier{color:#e9c26b;font-size:11px;text-transform:uppercase;letter-spacing:1px}
#hub #tab-profile #editProfilePlayer{grid-column:1 / -1;justify-self:start;font-size:11px;padding:7px 10px;min-height:36px;border:1px solid #b7985766;background:#0b121bb3;color:#e7cf99;border-radius:8px}
#hub #tab-profile .profile-rating{margin:22px 0 16px;display:grid;gap:2px}
#hub #tab-profile .profile-rating small{color:#e9cf91;font-size:11px;letter-spacing:.5px}
#hub #tab-profile .profile-rating b{font:800 clamp(66px,17vw,110px)/.96 'Barlow Condensed',Impact,sans-serif;color:#fffdf1;letter-spacing:-2px;text-shadow:0 0 16px #e7bf4333}
#hub #tab-profile .profile-xp{display:grid;grid-template-columns:1fr auto;gap:7px;color:#f2d78d;font-size:13px;margin-bottom:18px}
#hub #tab-profile .profile-xp small{font-size:10px;color:#c9c5b8}
#hub #tab-profile .profile-xp progress{grid-column:1 / -1;width:100%;height:6px}
#hub #tab-profile .profile-xp small:last-child{grid-column:1 / -1}
#hub #tab-profile progress{appearance:none;-webkit-appearance:none;border:0;background:#ffffff18;border-radius:8px;overflow:hidden;accent-color:#e7bf66}
#hub #tab-profile progress::-webkit-progress-bar{background:#ffffff18;border-radius:8px}#hub #tab-profile progress::-webkit-progress-value{background:linear-gradient(90deg,#b78535,#ffe59c);border-radius:8px}#hub #tab-profile progress::-moz-progress-bar{background:linear-gradient(90deg,#b78535,#ffe59c)}
#hub #tab-profile .profile-key-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:14px;border-top:1px solid #bfa57544}
#hub #tab-profile .profile-key-stats small{display:block;font-size:10px;color:#bfc6cf;margin-bottom:4px}
#hub #tab-profile .profile-key-stats b{display:block;font:800 clamp(20px,5vw,29px)/1.1 'Barlow Condensed',Impact,sans-serif;color:white;white-space:nowrap}
#hub #tab-profile #viewProfileStats{display:block;padding:10px 0 0;min-height:36px;margin-top:8px;border:0;background:transparent;color:#cfbf9d;font-size:11px}
#hub #tab-profile .profile-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 28px}
#hub #tab-profile .profile-shortcuts button{display:flex;align-items:end;min-height:98px;aspect-ratio:1.7;padding:12px;border:1px solid #b49b5655;border-radius:14px;text-align:left;overflow:hidden}
#hub #tab-profile .profile-ranking-art{background:linear-gradient(0deg,#080e17ed,#080e1700),url('/profile-art/arena.jpg?v=78') 85% 40%/cover}
#hub #tab-profile .profile-video-art{background:linear-gradient(0deg,#080e17ed,#080e1700),url('/game-art/pop.webp') center/cover}
#hub #tab-profile .profile-shortcuts span{font:800 clamp(18px,4.8vw,28px)/1.05 'Barlow Condensed',Impact,sans-serif;color:#fff;text-shadow:0 1px 6px #000}
#hub #tab-profile .profile-feature-section{margin-top:26px}
#hub #tab-profile .profile-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
#hub #tab-profile .profile-section-title h2{font:800 clamp(20px,5.6vw,28px)/1.1 'Barlow Condensed',Impact,sans-serif;margin:0;color:#fff}
#hub #tab-profile .profile-section-title button{padding:8px 0;background:transparent;border:0;color:#e6c982;font-size:10px;white-space:nowrap;min-height:36px}
#hub #tab-profile .profile-record{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;width:100%;padding:10px;margin-bottom:9px;border:1px solid #384758;background:#121c2a;border-radius:12px;color:white;min-width:0}
#hub #tab-profile .profile-record img{width:52px;height:52px;object-fit:cover;border-radius:8px}
#hub #tab-profile .profile-record strong{display:block;font:800 18px/1.05 'Barlow Condensed',Impact,sans-serif;color:#fff;margin-bottom:5px;overflow-wrap:anywhere}
#hub #tab-profile .profile-record small{display:block;font-size:10px;color:#a7b7c9}
#hub #tab-profile .profile-record b{color:#edcb7b;font:800 clamp(16px,4vw,23px)/1.1 'Barlow Condensed',Impact,sans-serif;text-align:right;max-width:105px}
#hub #tab-profile .profile-empty{font-size:13px;color:#a7b7c9;margin:12px 0 18px}
#hub #tab-profile #profileMedalPreview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#hub #tab-profile #profileMedalPreview .profile-empty{grid-column:1 / -1}
#hub #tab-profile .profile-medal{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 8px;border:1px solid #36424e;border-radius:14px;background:#131c29;color:#94a3b4;text-align:center;min-width:0}
#hub #tab-profile .profile-medal.earned{border-color:#cc9f4c66;background:radial-gradient(ellipse at top,#5c422633,#111925);color:#f1d394}
#hub #tab-profile .profile-medal strong{font:800 clamp(14px,3.7vw,20px)/1.05 'Barlow Condensed',Impact,sans-serif;overflow-wrap:anywhere}
#hub #tab-profile .profile-medal small{font-size:9px;color:#b0b9c7}
#hub #tab-profile .medal-art{width:64px;height:72px;flex-shrink:0;filter:drop-shadow(0 0 8px #ecbd5533)}
#hub #tab-profile .medal-ribbon{fill:#806124;stroke:#d6a94d;stroke-width:1.5}
#hub #tab-profile .medal-disc{fill:#302512;stroke:#f4d58c;stroke-width:2.5}
#hub #tab-profile .medal-symbol{fill:none;stroke:#f3d48b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#hub #tab-profile .locked{filter:none;opacity:.5}#hub #tab-profile .locked .medal-ribbon,#hub #tab-profile .locked .medal-disc{fill:#182331;stroke:#647a91}#hub #tab-profile .locked .medal-symbol{stroke:#a2b3c5}
#hub #tab-profile .profile-next-goal{position:relative;display:grid;grid-template-columns:1fr auto;gap:7px;padding:14px 16px;width:100%;margin-top:12px;background:#1b2330;border:1px solid #a7813d66;border-radius:12px;text-align:left}
#hub #tab-profile .profile-next-goal small{grid-column:1 / -1;color:#c6a964;font-size:10px;letter-spacing:.4px}
#hub #tab-profile .profile-next-goal strong{grid-column:1 / -1;font-size:14px;color:#eee0c3}
#hub #tab-profile .profile-next-goal progress{width:100%;height:5px;align-self:center}#hub #tab-profile .profile-next-goal span{font-size:10px;color:#c3bfae}
#hub #tab-profile .profile-dialog{inset:0;box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 96px);overflow:auto;margin:auto;padding:22px;background:#111b2b;border:1px solid #997a40;border-radius:18px;color:#eff3fa}
#hub #tab-profile .profile-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}
#hub #tab-profile .profile-dialog-heading{display:flex;align-items:start;gap:12px;margin-bottom:18px}
#hub #tab-profile .profile-dialog-heading h2{flex:1;font:800 28px/1.1 'Barlow Condensed',Impact,sans-serif;margin:0;color:#fff}
#hub #tab-profile .profile-dialog-heading button{width:44px;height:44px;padding:0;border:0;background:transparent;font-size:26px;line-height:1}
#hub #tab-profile #profileEditForm,#hub #tab-profile #profilePreferences{display:grid;gap:16px;max-width:100%}
#hub #tab-profile #profileEditForm label,#hub #tab-profile #profilePreferences label{display:grid;gap:7px;font-size:13px;color:#b6c5d9}
#hub #tab-profile #profilePreferences label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}
#hub #tab-profile #profilePreferences input[type=checkbox]{width:22px;height:22px}
#hub #tab-profile #profileEditForm input,#hub #tab-profile #profileEditForm select,#hub #tab-profile #profilePreferences select{width:100%;min-width:0;font-size:15px}
#hub #tab-profile #profileEditForm button,#hub #tab-profile #profilePreferences button{padding:12px 16px;font-size:14px}
#hub #tab-profile .profile-detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#182638;padding:18px;border-radius:12px}
#hub #tab-profile .profile-detail-stats small{display:block;color:#a5b9cf;font-size:12px;margin-bottom:6px}
#hub #tab-profile .profile-detail-stats b{font:800 26px/1.1 'Barlow Condensed',Impact,sans-serif;color:#efd28c}
#hub #tab-profile #profileStatsBody>p{font-size:13px;line-height:1.5;color:#afbdd0}
#hub #tab-profile .profile-history{margin-top:20px;color:#bdc9d9;font-size:13px}#hub #tab-profile .profile-history summary{padding:14px 0}
#hub #tab-profile #achievements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#hub #tab-profile #profileMedalBody{text-align:center;font-size:14px;line-height:1.5;color:#d9e1ed}
#hub #tab-profile .medal-progress-label{display:grid;gap:10px;margin:18px 0;color:#ead4a2;font-size:12px}
#hub #tab-profile .medal-progress-label progress{height:6px;width:100%}
#hub #tab-profile button:focus-visible{outline:3px solid #f6d990;outline-offset:3px}
@media(max-width:600px){#hub #tab-profile .cinematic-player-card{padding:18px;border-radius:18px}#hub #tab-profile #achievements{grid-template-columns:repeat(2,minmax(0,1fr))}#hub #tab-profile .profile-dialog{padding:18px}#hub #tab-profile .profile-record{grid-template-columns:46px minmax(0,1fr) auto;gap:8px;padding:9px}#hub #tab-profile .profile-record img{width:46px;height:46px}#hub #tab-profile .profile-record b{max-width:85px}}

#hub #tab-profile #appearancePreview{display:block;padding:12px 16px;background:var(--orange);color:#101620;font:800 24px/1 'Barlow Condensed',Impact,sans-serif;border-radius:10px;letter-spacing:1px}

/* Shared menu headings stay in normal flow, below the phone's safe area. */
#hub .hub-main>section{min-width:0;max-width:100%}
#hub h1,#hub h2,#hub h3{max-width:100%;white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.08;overflow:visible}
#hub header{position:static;inset:auto;width:auto;max-width:100%}
#hub .section-screen-title{font:800 clamp(30px,8.6vw,60px)/1.1 'Barlow Condensed',Impact,sans-serif;font-style:italic;letter-spacing:-.025em;color:#fff;margin:12px 0 22px;padding:2px 0;overflow-wrap:anywhere}
#hub #tab-ranking,#hub #tab-dashboard{max-width:900px;margin:auto}
#hub #tab-ranking .filter-row{display:flex;gap:10px;margin:0 0 16px;flex-wrap:wrap}
#hub #tab-ranking .filter-row select{width:100%;max-width:100%;min-width:0;font-size:15px;padding:14px;border:1px solid #3e5572;border-radius:12px;background:#142135}
#hub #tab-ranking #arcadeRankScopes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 18px}
#hub #tab-ranking #arcadeRankScopes button{min-width:0;width:100%;padding:11px 7px;min-height:44px;border:1px solid #364b63;border-radius:10px;font-size:12px;letter-spacing:0;white-space:normal;background:#131f30;color:#afc2d8}
#hub #tab-ranking #arcadeRankScopes button.selected{background:#8d6b30;color:#fff3ce;border-color:#dfbf73}
#hub #tab-ranking>.settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 20px}
#hub #tab-ranking>.settings label,#hub #rankLanguageSettings label{display:grid;gap:7px;font-size:11px;color:#a7bad0;min-width:0}
#hub #tab-ranking>.settings select,#hub #rankLanguageSettings select{min-width:0;width:100%;font-size:13px;padding:12px;border-radius:10px;background:#152236}
#hub #tab-ranking #historyPeriod{grid-column:1 / -1}
#hub #tab-ranking .rank-arena{padding:0;border:1px solid #c49b5266;border-radius:20px;background:linear-gradient(150deg,#1a2334,#0d1625);overflow:hidden}
#hub #tab-ranking .rank-hero{position:relative;isolation:isolate;display:grid;min-height:150px;margin:0;padding:22px;text-align:left;background:#0d1725}
#hub #tab-ranking .rank-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0a111af5,#0a111a55)}
#hub #tab-ranking .rank-hero>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 35%;opacity:.7}
#hub #tab-ranking .rank-hero>div{align-self:end;max-width:95%}
#hub #tab-ranking .rank-hero h2{font:800 clamp(27px,7vw,43px)/1.05 'Barlow Condensed',Impact,sans-serif;margin:8px 0;color:#fff;overflow-wrap:anywhere;text-shadow:0 2px 8px #000}
#hub #tab-ranking .rank-hero small{font-size:10px;color:#ecc976;letter-spacing:.7px}
#hub #tab-ranking .rank-hero p{font-size:11px;color:#b7c9db;margin:6px 0 0}
#hub #tab-ranking .rank-podium{padding:20px 12px 0;gap:8px;margin-bottom:20px}
#hub #tab-ranking .podium-place{width:33%;padding:12px 6px;border-radius:14px;background:linear-gradient(145deg,#26364c,#152237);border-color:#546882;gap:7px}
#hub #tab-ranking .podium-1{padding-top:24px;background:linear-gradient(145deg,#524125,#221d18);border-color:#deb967}
#hub #tab-ranking .podium-3{background:linear-gradient(145deg,#413128,#221b19);border-color:#b08256}
#hub #tab-ranking .podium-avatar{font-size:26px}#hub #tab-ranking .podium-place strong{font-size:clamp(12px,3vw,20px);line-height:1.2;overflow-wrap:anywhere;max-width:100%}
#hub #tab-ranking .podium-place b{font-size:clamp(21px,5vw,34px);line-height:1.1;max-width:100%;overflow-wrap:anywhere;color:#f4dc9d}
#hub #tab-ranking .podium-place small{font-size:9px;color:#a5b7ce}
#hub #tab-ranking .rank-medal{width:38px;height:44px;align-self:center;fill:#775b21;stroke:#f4d489;stroke-width:2}
#hub #tab-ranking .rank-medal text{fill:#fff0c0;stroke:none;font:800 20px 'Barlow Condensed',Impact,sans-serif}
#hub #tab-ranking .medal-2{fill:#3d4b60;stroke:#c6d4e8}#hub #tab-ranking .medal-3{fill:#5b3b27;stroke:#dbac81}
#hub #tab-ranking .rank-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 20px;text-align:center;color:#bacadd;font-size:14px}
#hub #tab-ranking .rank-empty p{margin:0;max-width:260px}
#hub #tab-ranking .rank-personal{position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;width:auto;min-height:0;gap:8px;margin:0 12px 18px;padding:14px;background:#262b32;border:1px solid #cfaf5e66;border-radius:12px;font-size:12px;color:#d9c386}
#hub #tab-ranking .rank-personal b{font-size:clamp(16px,4.5vw,27px);color:#ffe0a0;margin:0;line-height:1.1;overflow-wrap:anywhere;max-width:180px;text-align:right}
#hub #tab-ranking .rank-personal small{grid-column:1 / -1;font-size:11px}
#hub #tab-ranking .rank-list{padding:0 12px 12px}
#hub #tab-ranking .rank-contender{gap:9px;padding:14px 6px;min-width:0}#hub #tab-ranking .rank-contender strong{font-size:14px}
#hub #tab-ranking .rank-contender small{font-size:10px}#hub #tab-ranking .rank-value{font-size:23px;max-width:100px;overflow-wrap:anywhere;text-align:right}
#hub #tab-ranking .rank-you{background:#333020;border-color:#d6b75f}
#hub #tab-dashboard .dashboard-view-tabs{display:flex;gap:10px;margin-bottom:20px}
#hub #tab-dashboard .dashboard-view-tabs button{flex:1;padding:12px;border:1px solid #354b64;border-radius:12px;color:#b7c9dd;background:#142033;font-size:14px}
#hub #tab-dashboard .dashboard-view-tabs button.selected{color:#fff1c8;border-color:#bd9958;background:#443825}
#hub #tab-dashboard .progress-level-card{display:grid;gap:10px;padding:24px;border:1px solid #b6965066;border-radius:20px;background:linear-gradient(100deg,#0c1522d9,#0c152277),url('/profile-art/arena.jpg') center/cover}
#hub #tab-dashboard .progress-level-card>small{color:#d7bc7b;font-size:13px}
#hub #tab-dashboard .progress-level-card>b{font:800 clamp(48px,12vw,86px)/1 'Barlow Condensed',Impact,sans-serif;color:#fff3d5;letter-spacing:-1px}
#hub #tab-dashboard .progress-level-card>b span{font-size:.4em;letter-spacing:1px;color:#d0ac61}
#hub #tab-dashboard .progress-level-card progress{width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;accent-color:#d4ad5e;appearance:none;-webkit-appearance:none}
#hub #tab-dashboard progress::-webkit-progress-bar{background:#ffffff22}#hub #tab-dashboard progress::-webkit-progress-value{background:linear-gradient(90deg,#af853f,#ffe198)}#hub #tab-dashboard progress::-moz-progress-bar{background:linear-gradient(90deg,#af853f,#ffe198)}
#hub #tab-dashboard .progress-level-card>span{font-size:11px;color:#c5c7c5}
#hub #tab-dashboard .progress-stat-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 24px}
#hub #tab-dashboard .progress-stat-strip>div{padding:14px 10px;border:1px solid #34485e;border-radius:12px;background:#152135;min-width:0}
#hub #tab-dashboard .progress-stat-strip small{display:block;font-size:10px;line-height:1.3;color:#9fb3cb;min-height:27px}
#hub #tab-dashboard .progress-stat-strip b{font:800 clamp(20px,5.2vw,32px)/1.1 'Barlow Condensed',Impact,sans-serif;color:#edd08c;white-space:normal;overflow-wrap:anywhere}
#hub #tab-dashboard .progress-section-title h2{font:800 26px/1.1 'Barlow Condensed',Impact,sans-serif;color:#fff;margin:0 0 14px}
#hub #tab-dashboard .progress-run{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #34485e;background:#121e30;border-radius:14px;margin-bottom:10px}
#hub #tab-dashboard .progress-run>img{width:58px;height:58px;object-fit:cover;border-radius:9px}
#hub #tab-dashboard .progress-run strong{display:block;font:800 19px/1.05 'Barlow Condensed',Impact,sans-serif;color:#fff;overflow-wrap:anywhere}
#hub #tab-dashboard .progress-run small{display:block;font-size:10px;color:#9aafc7;margin-top:4px}
#hub #tab-dashboard .progress-run>b{font:800 26px/1 'Barlow Condensed',Impact,sans-serif;color:#e2bf75;text-align:right;max-width:95px;overflow-wrap:anywhere}
#hub #tab-dashboard .run-state{display:block;font-size:9px;color:#ba9e7b;margin-top:5px}#hub #tab-dashboard .run-state.complete{color:#88d4bf}
#hub #tab-dashboard .progress-by-game{margin:24px 0;color:#d7bd7e;font-size:15px}#hub #tab-dashboard .progress-by-game summary{padding:12px 0;cursor:pointer}
#hub #tab-dashboard .progress-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
#hub #tab-dashboard .progress-game{overflow:hidden;border:1px solid #35495f;border-radius:14px;background:#142033;min-width:0}
#hub #tab-dashboard .progress-game img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}
#hub #tab-dashboard .progress-game>div{display:grid;gap:6px;padding:12px}
#hub #tab-dashboard .progress-game strong{font:800 19px/1.05 'Barlow Condensed',Impact,sans-serif;color:#fff;overflow-wrap:anywhere}
#hub #tab-dashboard .progress-game span{font-size:11px;color:#b0c4dc}#hub #tab-dashboard .progress-game small{color:#e2bf75;font-size:11px}
#hub #tab-dashboard .progress-empty{font-size:14px;color:#a9bdd3;padding:16px 0}
#hub #tab-dashboard .video-intro,#hub #tab-dashboard #videoSharingHelp{font-size:13px;color:#a6bbd3;margin:12px 0;line-height:1.4}
#hub #tab-dashboard .video-storage-help{font-size:12px;color:#8ca8c7;margin:10px 0 18px}#hub #tab-dashboard .video-storage-help summary{cursor:pointer;padding:8px 0}
#hub #tab-dashboard .video-storage-help p{font-size:12px;line-height:1.5;margin:8px 0}
#hub #tab-dashboard #recordingList{display:grid;gap:18px}
#hub #tab-dashboard .video-card{position:relative;padding:0;overflow:hidden;border:1px solid #485a70;border-radius:18px;background:linear-gradient(145deg,#1c2d42,#101a29);margin:0;min-width:0}
#hub #tab-dashboard .video-card>video{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;opacity:1;border:0;border-radius:0;background:#080f1b}
#hub #tab-dashboard .video-card>p{padding:0 14px;font-size:12px;color:#c5d2e1;line-height:1.4;overflow-wrap:anywhere}
#hub #tab-dashboard .video-fullscreen{position:absolute;top:10px;right:10px;z-index:2;padding:8px 10px;background:#0a101bcc;border:1px solid #8ba4bb55;border-radius:9px;font-size:10px;color:#dfe9f5;min-height:36px}
#hub #tab-dashboard .video-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0 14px 14px;margin:0;min-width:0}
#hub #tab-dashboard .video-download{grid-column:1 / -1;display:block;text-align:center;padding:11px;border:1px solid #ba975d66;border-radius:10px;background:#3f3426;color:#f1d692;text-decoration:none;font-size:12px}
#hub #tab-dashboard .video-save-photos{grid-column:1 / -1;font-size:12px;padding:10px}
#hub #tab-dashboard .video-social{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;padding:10px 4px;border:1px solid #3a506b;border-radius:10px;background:#152239;color:#cbd9eb}
#hub #tab-dashboard .video-social svg{display:block;flex:0 0 27px;width:27px;height:27px;stroke:none;overflow:visible}
#hub #tab-dashboard .video-social span{font-size:10px;letter-spacing:0;white-space:normal}
@media(max-width:380px){#hub #tab-dashboard .video-social{flex-direction:column}#hub #tab-dashboard .progress-run{grid-template-columns:48px minmax(0,1fr) auto;gap:8px;padding:10px}#hub #tab-dashboard .progress-run>img{width:48px;height:48px}#hub #tab-dashboard .progress-run>b{font-size:23px}}
#hub .hub-main{padding-left:max(clamp(18px,5vw,72px),env(safe-area-inset-left,0px));padding-right:max(clamp(18px,5vw,72px),env(safe-area-inset-right,0px))}
#hub dialog,#hub #gameDetails:not([hidden]){max-height:calc(100dvh - max(64px,env(safe-area-inset-top,0px)) - max(24px,env(safe-area-inset-bottom,0px)))}
/* A fast introduction and compact, accessible explanations. */
.game-preview{background:linear-gradient(145deg,#15283d,#090f1b);border:1px solid #e3b05a55;border-radius:15px;margin:12px 0;overflow:hidden}
.game-preview svg{display:block;width:100%;max-height:125px}.preview-court{stroke:#61728e55;fill:none}.preview-target circle{fill:#ffd173;stroke:#fff0bb;stroke-width:2}.preview-target text{fill:#09121e;font:bold 14px Arial}.preview-target{animation:preview-pulse 2.4s calc(var(--i)*.6s) infinite}.preview-laser{stroke:#ff445c;stroke-width:6;animation:preview-sweep 2.5s infinite alternate}.preview-escape{fill:#65f2d0}.preview-track{fill:#34445a}.preview-zone{fill:#65deb2}.preview-cursor{stroke:#ffe397;stroke-width:5;animation:preview-sweep 2.5s infinite alternate}
@keyframes preview-pulse{0%,20%,100%{opacity:.45}35%,65%{opacity:1}}@keyframes preview-sweep{to{transform:translateX(140px)}}
.camera-checklist{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px auto;max-width:420px}.camera-checklist svg{grid-column:1/-1;max-height:90px;fill:none;stroke:#eed28d;stroke-width:3;width:100%}.camera-checklist span{font-size:11px;padding:8px;border:1px solid #71829a;border-radius:9px;color:#a6b7cb}.camera-checklist .ready{color:#76f2ce;border-color:#76f2ce;background:#183931}.camera-checklist .ready:before{content:'✓ ';font-weight:900}
#results .result-details{max-width:600px;margin:12px auto;text-align:start}#results .result-details summary{cursor:pointer;color:#aabbd1;font-size:13px;padding:9px}#resultNextGoal{color:#ffdc90;text-align:center;font-size:clamp(14px,2vw,20px);margin:8px 0}#results>div:last-child{gap:8px}#results #playAgain{font-size:20px;padding:15px 24px}#results .metric-grid{margin:8px 0}#scoreShare .score-poster{display:block;width:min(100%,420px);height:auto;margin:12px auto;border-radius:14px}#scoreShare section{max-height:calc(100dvh - 40px);overflow:auto}
#hub .ranking-advanced summary{padding:12px 0;color:#9eb1c8;font-size:12px;cursor:pointer}#hub .profile-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}#hub .profile-shortcuts button{min-width:0}#hub .profile-shortcuts span{font-size:clamp(14px,3.8vw,22px);overflow-wrap:anywhere}
.open-challenge{min-height:100dvh;box-sizing:border-box;background:radial-gradient(ellipse at top right,#5e381e,#080d14 65%);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:calc(max(44px,env(safe-area-inset-top)) + 24px) 24px;font-family:Arial;text-align:center}.open-challenge h1{font-size:clamp(30px,8vw,54px);line-height:1.15;max-width:650px;margin:0}.open-challenge a{color:#ffdf97;min-height:44px;display:grid;align-items:center}.open-challenge a.primary{background:#ff8535;color:#08111a;padding:14px 25px;border-radius:12px;font-weight:900;text-decoration:none}.open-challenge small{color:#ffbd71;letter-spacing:2px}
@media(prefers-reduced-motion:reduce){.preview-target,.preview-laser,.preview-cursor{animation:none}}
#court[data-demo="true"]{background:radial-gradient(ellipse at center,#193042,#080d17 75%)}#court[data-demo="true"] #video{display:none}#court[data-demo="true"] #gameSurface{opacity:.2}
#cameraSetup{max-height:calc(100dvh - 24px);overflow-y:auto;box-sizing:border-box}.camera-checklist[hidden]{display:none}#hub .career-archive[hidden]{display:none}
/* NITRO navigation: consistent sports icons and a compact gold accent. */
#hub{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
#hub>aside{background:transparent;border:0;backdrop-filter:none;padding:8px max(12px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));pointer-events:none}
#hub>aside nav{pointer-events:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;max-width:700px;margin:0 auto;padding:4px 6px;background:linear-gradient(135deg,#101a28f5,#080e18f5);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid #ddb97050;border-radius:20px;box-shadow:0 8px 32px #0007,inset 0 1px #ffdf9620}
#hub>aside nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:60px;min-width:0;padding:6px 3px 10px;border:0;border-radius:14px;background:transparent;color:#a8b5c7;box-shadow:none;transition:color .16s,background .16s}
#hub>aside nav button span{font-family:Inter,Arial,sans-serif;font-weight:700;font-size:12px;line-height:1.2;letter-spacing:0;white-space:normal;overflow-wrap:normal;color:inherit}
#hub>aside nav button .nav-icon{display:block;width:26px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s,filter .15s}
#hub>aside nav button[data-tab="play"] .nav-icon{color:#ff9248}.nav-play-mark{fill:currentColor;stroke-width:1}
#hub>aside nav button.selected{color:#ffe0a1;background:radial-gradient(ellipse at center,#d2ac4320,transparent 75%)}
#hub>aside nav button.selected span{color:#ffe0a1}
#hub>aside nav button.selected .nav-icon{filter:drop-shadow(0 0 5px #e4b85e70)}
#hub>aside nav button:after{content:'';position:absolute;bottom:3px;left:50%;width:19px;height:2px;border-radius:3px;background:transparent;transform:translateX(-50%)}
#hub>aside nav button.selected:after{background:#efc679;box-shadow:0 0 7px #efc67960}
#hub>aside nav button[data-tab="play"].selected .nav-icon{color:#ffac62;filter:drop-shadow(0 0 5px #ff853e80)}
#hub>aside nav button:active{transform:none;background:#eec98315}#hub>aside nav button:active .nav-icon{transform:scale(.9);filter:drop-shadow(0 0 6px #efc67980)}
@media(hover:hover){#hub>aside nav button:hover{background:#ffdf9610;color:#ffe0a1}}
@media(max-height:460px) and (orientation:landscape){#hub>aside nav button{min-height:48px;padding-block:4px 7px;gap:3px}#hub>aside nav button .nav-icon{width:22px;height:22px}#hub>aside nav button span{font-size:11px}#hub{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
body.reduced-effects #hub>aside nav button,body.reduced-effects #hub>aside nav button .nav-icon{transition:none}body.reduced-effects #hub>aside nav button:active .nav-icon{transform:none}
@media(prefers-reduced-motion:reduce){#hub>aside nav button,#hub>aside nav button .nav-icon{transition:none}#hub>aside nav button:active .nav-icon{transform:none}}
/* Friends: one invitation, one game, one shared start. */
#hub #tab-friends #friendsTitle,#hub #challengeTitle{font-size:clamp(30px,7.5vw,60px);line-height:1.12;white-space:normal;overflow-wrap:anywhere;padding:4px 3px 8px;margin:12px 0 24px;max-width:100%;}
#hub #tab-friends .friend-invite-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:14px;width:100%;min-height:144px;text-align:start;padding:24px;border:1px solid #ffb865;border-radius:22px;background:linear-gradient(115deg,#ff6c22,#a93309);color:white;box-shadow:0 8px 32px #ff68121c;}
#hub #tab-friends .friend-invite-hero strong{position:relative;z-index:2;max-width:67%;font:900 clamp(27px,6vw,46px)/1.05 'Barlow Condensed',Impact,sans-serif;letter-spacing:.02em;text-shadow:0 2px 8px #702400;}
#hub #tab-friends .friend-invite-hero img{position:absolute;z-index:-1;inset-inline-end:-25px;bottom:-10px;height:190px;width:245px;object-fit:contain;opacity:.85;mask-image:linear-gradient(90deg,transparent,#000 30%);}
.invite-plus{display:grid;place-items:center;flex:0 0 42px;height:42px;border:1px solid #ffddae;border-radius:50%;font-size:32px;line-height:1;}
.friend-entry-links{display:flex;justify-content:space-between;gap:12px;margin:14px 0 26px;flex-wrap:wrap;}.friend-entry-links button{background:#121e2c;border:1px solid #34485e;color:#dae3ef;font-size:13px;padding:12px 16px;min-height:44px;border-radius:12px;}
.friend-notice{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:14px;border:1px solid #c99c50;border-radius:16px;margin-bottom:10px;background:linear-gradient(120deg,#382a16,#132130);}.friend-notice strong{overflow-wrap:anywhere;}.friend-notice small{grid-column:1;color:#c5d2e3;font-size:12px;}.friend-notice button{grid-row:1 / 3;grid-column:2;background:#ff792d;color:#080d15;padding:10px;font-size:13px;min-height:44px;}.friend-notice button:last-child{grid-column:3;background:transparent;color:#c8d7e5;border:1px solid #4f5c6b;}.room-notice{grid-template-columns:56px minmax(0,1fr) auto auto;}.room-notice img{width:56px;height:64px;object-fit:cover;border-radius:8px;grid-row:1/3;}.room-notice small{grid-column:2;}.room-notice button{grid-column:3;}.room-notice button:last-child{grid-column:4;}
#hub #tab-friends .friend-row{min-height:76px;border-radius:16px;border:1px solid #2f4255;padding:12px;margin-bottom:10px;background:linear-gradient(110deg,#192638,#0d1623);}
#hub #tab-friends .friend-challenge-button{background:#ff762d;border:1px solid #ff9b54;color:#10151d;min-height:44px;font-size:15px;border-radius:11px;}
.friend-select{display:flex;gap:8px;flex-wrap:wrap;border:0;padding:0;margin:10px 0 24px;}.friend-select legend{font-size:13px;color:#aebed0;margin-bottom:12px;}.friend-select label{position:relative;display:flex;align-items:center;gap:8px;max-width:100%;padding:10px;border:1px solid #344b66;border-radius:14px;background:#142031;font-size:13px;}.friend-select label:has(input:checked){border-color:#ff9c54;background:#422a1b;}.friend-select input{width:18px;height:18px;accent-color:#ff7a2d;}.friend-select .friend-avatar{width:28px;height:28px;font-size:14px;}.friend-select label>span:last-child{overflow-wrap:anywhere;}
.picker-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;}.picker-heading h2{font:800 clamp(25px,6vw,36px)/1.1 'Barlow Condensed',Impact,sans-serif;margin:0;}.picker-heading>span{font-size:11px;color:#dfbd77;}.friend-access-hint{font-size:12px;color:#b0bfd1;margin:10px 0 18px;line-height:1.5;}
.friend-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}.friend-game{overflow:hidden;min-width:0;border-radius:18px;padding:0;text-align:start;background:#152031;border:1px solid #43516a;color:white;transition:transform .15s;}.friend-game:active{transform:scale(.98);}.friend-game>img{width:100%;aspect-ratio:1.5;object-fit:cover;display:block;}.friend-game.locked{border-color:#6d5938;}.friend-game.locked>img{filter:saturate(.6);}.friend-game-meta{display:block;padding:13px 11px;}.friend-game-meta>strong{display:block;font:800 clamp(19px,4.4vw,28px)/1.1 'Barlow Condensed',Impact,sans-serif;overflow-wrap:anywhere;}.friend-game-meta>small{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;color:#b9cadc;margin-top:10px;}.friend-game-meta b{border:1px solid #d9ad60;border-radius:5px;padding:3px 5px;color:#ffda83;font-size:10px;}.friend-game-meta b.free{border-color:#4ca595;color:#87e9d4;}.friend-game-meta .lock-reason{color:#e7c98d;line-height:1.3;font-size:11px;}
#tab-challenge .challenge-grid{display:block;margin:16px 0;}#challengeCreatePanel:has(#challengeLanguageSettings[hidden]){display:none;}#challengeJoinPanel>label{display:grid;gap:12px;}#challengeJoinPanel input{font-size:24px;text-transform:uppercase;letter-spacing:.12em;width:100%;}#challengeJoinPanel button{width:100%;margin-top:14px;min-height:50px;}
#lobby .room-game-cover{position:relative;overflow:hidden;border:1px solid #976d38;border-radius:20px;height:180px;margin-bottom:20px;background:#0c1420;}.room-game-cover>img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;}.room-game-cover>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:20px;background:linear-gradient(transparent,#080e17f5);}.room-game-cover h2{font:900 32px/1.1 'Barlow Condensed',Impact,sans-serif;color:white;margin:0;}.room-game-cover p{font-size:13px;color:#e7c988;margin:6px 0 0;}
#participants{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0;}.room-player{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:156px;padding:14px 6px;border:1px solid #354963;border-radius:16px;background:linear-gradient(155deg,#1b2b3f,#0e1827);color:#e7eff9;text-align:center;}.room-avatar{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border:1px solid #90764d;border-radius:50%;background:linear-gradient(135deg,#97602e,#242b3c);font:800 25px 'Barlow Condensed',Impact,sans-serif;color:#ffdf9a;}.room-player strong{font-size:14px;overflow-wrap:anywhere;max-width:100%;}.room-player small{font-size:11px;color:#a9bbce;}.room-player.is-ready{border-color:#66d7bb;background:linear-gradient(150deg,#153d35,#102031);}.room-player.is-ready small{color:#84eed3;}.room-player.is-waiting{border-style:dashed;}.room-empty{border-style:dashed;background:#0f1824;}.room-player>button[data-cancel-room-invite]{position:absolute;top:0;right:0;font-size:22px;padding:4px 8px;background:transparent;border:0;}.pro-badge{font-size:10px;color:#ffdf99;}.room-title{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;}.room-title small{display:none;}.room-title #roomCode{font-size:14px;letter-spacing:.1em;color:#a8b8ce;}.room-title button{font-size:13px;min-height:44px;}.lobby-actions{display:flex;flex-wrap:wrap;gap:10px;}.lobby-actions #prepareDuel{flex:1 1 100%;font-size:22px;min-height:56px;background:#ff762d;color:#0b121b;}.lobby-actions button{font-size:13px;padding:12px;}.lobby-actions #voice{margin-inline-start:auto;}#roomStatus{font-size:13px;color:#d8c59c;line-height:1.5;}
.friend-podium{display:flex;align-items:stretch;justify-content:center;gap:12px;flex-wrap:wrap;margin:20px 0;}.podium-player{flex:1 1 110px;max-width:200px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid #445870;border-radius:18px;padding:16px 10px;background:#132133;}.podium-player.leader{border-color:#ffce64;background:linear-gradient(140deg,#6a4b19,#171f2d);box-shadow:0 0 24px #f9ae241a;}.podium-player .podium-place{font-size:20px;color:#ffe196;}.podium-player strong{font-size:16px;overflow-wrap:anywhere;max-width:100%;}.podium-player>b:last-child{font:800 30px 'Barlow Condensed',Impact,sans-serif;color:white;}
#friendInvite #friendInviteBody{display:grid;gap:14px;}#friendInvite #friendInviteBody button{min-height:44px;font-size:14px;}.friend-code{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;}.friend-code strong{letter-spacing:.12em;color:#ffdb92;}#friendAddForm{display:grid;gap:10px;}#friendAddForm input{min-width:0;width:100%;}.friend-invite-name{font:900 38px/1.15 'Barlow Condensed',Impact,sans-serif;margin:8px 0;color:#ffdb92;overflow-wrap:anywhere;}
@media(max-width:540px){#participants{grid-template-columns:repeat(2,minmax(0,1fr));}.room-player{min-height:136px;}.room-notice{grid-template-columns:46px minmax(0,1fr) auto;}.room-notice img{width:46px;}.room-notice button:last-child{grid-column:2;grid-row:3;}.room-notice button{grid-column:3;}.friend-game-grid{gap:10px;}#hub #tab-friends .friend-invite-hero{padding:20px 14px;min-height:130px;}.invite-plus{flex-basis:34px;height:34px;}.friend-game-meta{padding:12px 10px;}}
@media(min-width:900px){.friend-game-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(prefers-reduced-motion:reduce){.friend-game{transition:none;}}
/* Compact friend-game chooser: text tiles never inherit image dimensions. */
#friendGamePicker .friend-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;}
#friendGamePicker .friend-game{display:flex;align-items:center;min-height:106px;height:auto;aspect-ratio:auto;max-width:100%;border-radius:14px;background:linear-gradient(135deg,#19283b,#101a29);}
#friendGamePicker .friend-game-meta{display:block;width:100%;padding:14px 12px;}
#friendGamePicker .friend-game-meta>strong{font-size:clamp(19px,4.6vw,25px);line-height:1.12;overflow-wrap:anywhere;}
#friendGamePicker .friend-game-meta>small{font-size:11px;margin-top:9px;}
#friendGamePicker .friend-game.locked{background:linear-gradient(135deg,#25251f,#121a25);}
#friendGamePicker .friend-game-meta .lock-reason{font-size:10px;margin-top:6px;}
#hub #tab-friends .friend-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px 12px;padding:14px;}
#hub #tab-friends .friend-row>strong{grid-column:2;min-width:0;font-size:17px;}
#hub #tab-friends .friend-row-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
#hub #tab-friends .friend-row-actions button{width:100%;height:auto;min-width:0;min-height:44px;padding:10px 5px;font-size:12px;overflow-wrap:anywhere;}
#hub #tab-friends .friend-row-actions .friend-chat-button{background:#172c40;color:#cae4fa;border-color:#3d6485;}
#hub #tab-friends .friend-remove-button{background:transparent;color:#f0b8b1;border:1px solid #744942;border-radius:10px;}
#hub #tab-friends .friend-remove-confirm{grid-column:1/-1;border-top:1px solid #4d5361;padding-top:8px;}
.friend-remove-confirm>p{font-size:13px;color:#cbd6e5;margin:8px 0 12px;line-height:1.5;overflow-wrap:anywhere;}
.friend-remove-confirm>div{display:flex;gap:8px;flex-wrap:wrap;}
#hub #tab-friends .friend-remove-confirm button{padding:10px 14px;min-height:44px;font-size:13px;}
#hub #tab-friends .friend-remove-confirm [data-confirm-remove]{background:#6b302b;border:1px solid #b96658;color:#fff;}
#hub #tab-friends .friend-remove-confirm [data-cancel-remove]{background:#152336;border:1px solid #3d526d;color:#d5e2f2;}
@media(min-width:900px){#friendGamePicker .friend-game-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:350px){#hub #tab-friends .friend-row-actions{gap:5px;}#hub #tab-friends .friend-row-actions button{font-size:11px;}#friendGamePicker .friend-game-meta{padding:12px 9px;}}
/* Restore the blue Create / Join landing screen from the original Friends design. */
#hub #tab-friends .friend-hero-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;}
#hub #tab-friends .friend-art-card{aspect-ratio:3/1;height:auto;min-height:0;}
#hub #tab-friends .friend-art-card.create{border-color:#75d9ff;box-shadow:0 0 16px #42aaff20;}
#hub #tab-friends .friend-art-card img{position:absolute;width:100%;height:200%;max-width:none;object-fit:fill;}
#hub #tab-friends .friend-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;padding:14px 0;background:transparent;border:0;border-bottom:1px solid #294054;border-radius:0;}
#hub #tab-friends .friend-row>strong{grid-column:2;}
#hub #tab-friends .friend-row-actions{grid-column:3;display:flex;gap:8px;align-items:center;}
#hub #tab-friends .friend-row-actions .friend-chat-button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:44px;padding:10px;background:transparent;border:1px solid #304a62;}
#hub #tab-friends .friend-row-actions .friend-challenge-button{width:auto;padding:10px 14px;background:#1666b2;border:1px solid #419ded;color:#fff;font-size:13px;}
#hub #tab-friends .friend-more{position:relative;flex:0 0 24px;}
#hub #tab-friends .friend-more>summary{display:grid;place-items:center;list-style:none;width:24px;min-height:44px;font-size:24px;color:#aabdd0;cursor:pointer;}
#hub #tab-friends .friend-more>summary::-webkit-details-marker{display:none;}
#hub #tab-friends .friend-more>.friend-remove-button{position:absolute;z-index:3;inset-inline-end:0;top:100%;width:max-content;min-width:96px;background:#192638;padding:12px;box-shadow:0 6px 20px #0008;}
#hub #tab-friends .friend-row .friend-remove-confirm{grid-column:1/-1;}
@media(max-width:350px){#hub #tab-friends .friend-row{grid-template-columns:34px minmax(0,1fr) auto;gap:7px;}#hub #tab-friends .friend-avatar{width:34px;height:34px;flex-basis:34px;font-size:16px;}#hub #tab-friends .friend-row-actions{gap:5px;}#hub #tab-friends .friend-row-actions .friend-challenge-button{padding:10px 8px;font-size:12px;}#hub #tab-friends .friend-row-actions .friend-chat-button{width:38px;flex-basis:38px;}}
/* Quick friends: a clear play action and invitations visible throughout the menus. */
#hub #tab-friends #friendListCount{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 7px;margin-inline-start:6px;border:1px solid #3a5b78;border-radius:20px;color:#abd9ff;font:700 12px system-ui,sans-serif;vertical-align:middle;}
#hub #tab-friends #friendSearch{display:block;width:100%;max-width:100%;padding:12px 14px;min-height:44px;border:1px solid #344d66;border-radius:12px;background:#101d2c;color:#eff7ff;font-size:14px;margin:0 0 12px;}
#hub #tab-friends .friend-row-actions .friend-challenge-button{min-width:72px;}
.friend-target{display:grid;gap:5px;padding:13px 15px;margin:8px 0 16px;border:1px solid #527597;border-radius:14px;background:linear-gradient(120deg,#1a3550,#121e2c);}
.friend-target strong{font-size:18px;color:#d9efff;overflow-wrap:anywhere;}.friend-target span{font-size:12px;color:#aebfd3;line-height:1.5;}
#friendInvite #friendAddForm{border-top:1px solid #35485c;padding-top:16px;margin-top:6px;}#friendInvite #friendAddForm label{font-size:13px;color:#d3dfef;line-height:1.5;}
#hub nav [data-tab="friends"]{position:relative;}.friend-count-badge{position:absolute;top:5px;inset-inline-end:10px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:20px;background:#ff7b2a;color:#0b1320;font:800 11px/1 system-ui,sans-serif;box-shadow:0 0 0 2px #101825;}
#friendInviteAlert{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px;margin:0 0 20px;background:linear-gradient(120deg,#193d5a,#112235);border:1px solid #5686b0;border-radius:15px;box-shadow:0 8px 22px #0003;}
#friendInviteAlert>div{display:grid;flex:1 1 150px;min-width:0;gap:4px;}#friendInviteAlert small{font-size:10px;color:#8ecdf5;letter-spacing:.08em;}#friendInviteAlert strong{font-size:17px;color:white;overflow-wrap:anywhere;}#friendInviteAlert span{font-size:12px;color:#b3c9df;}
#friendInviteAlert button{min-height:44px;padding:10px 13px;font-size:12px;background:#2385d2;border:1px solid #69b5f0;color:#fff;border-radius:10px;}#friendInviteAlert button:last-child{background:transparent;color:#b8c9dc;border-color:#496580;}
body.playing #friendInviteAlert{display:none;}
.friend-extra-choices{margin:0 0 18px;padding:0;border:1px solid #30465f;border-radius:12px;background:#101c2b;}.friend-extra-choices>summary{padding:12px;font-size:12px;color:#a9c8e2;cursor:pointer;min-height:44px;}.friend-extra-choices .friend-select{padding:0 12px 12px;margin:0;}.friend-extra-choices legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
/* Player codes explained with two separate, child-friendly tasks. */
#friendInvite .my-player-code{display:grid;gap:10px;padding:16px;border:1px solid #9f7b39;border-radius:14px;background:linear-gradient(135deg,#302819,#152333);}
#friendInvite #friendInviteBody h3{font:800 clamp(19px,4.7vw,24px)/1.15 'Barlow Condensed',Impact,sans-serif;margin:0;color:#fff;}
#friendInvite .my-player-code p{margin:0;font-size:13px;line-height:1.5;color:#d2dae5;}
#friendInvite #myPlayerCode{display:block;max-width:100%;padding:9px 0;color:#ffdf91;font:800 clamp(22px,6vw,32px)/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.07em;font-variant-numeric:slashed-zero;user-select:all;-webkit-user-select:all;overflow-wrap:anywhere;}
#friendInvite .my-code-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}#friendInvite .my-code-actions button{width:100%;min-height:46px;padding:11px;font-size:14px;border-radius:10px;}
#friendInvite #copyFriendCode{background:transparent;border:1px solid #7f796b;color:#ffe4aa;}
#friendInvite #friendAddForm{display:grid;gap:11px;padding:16px;margin:0;border:1px solid #3b658b;border-radius:14px;background:#101e2e;}
#friendInvite #friendAddForm label{font-size:13px;color:#c3d3e5;line-height:1.5;}#friendInvite #friendInput{min-width:0;width:100%;font-size:16px;padding:12px;}
#friendInvite #addFriend{background:#1c649f;border:1px solid #6bace2;color:#fff;min-height:46px;padding:11px;}
#friendInvite [role="status"],#friendInvite [role="alert"]{font-size:13px;line-height:1.5;color:#d5e5f3;overflow-wrap:anywhere;}
@media(min-width:480px){#friendInvite .my-code-actions{grid-template-columns:1fr 1fr;}}

/* Keep the room's primary action above the floating navigation, including iPhone safe areas. */
#hub #lobby .lobby-actions #prepareDuel{
 position:fixed;z-index:29;
 bottom:calc(104px + env(safe-area-inset-bottom,0px));
 left:max(clamp(18px,5vw,72px),env(safe-area-inset-left,0px));
 right:max(clamp(18px,5vw,72px),env(safe-area-inset-right,0px));
 width:auto;max-width:calc(1400px - 2 * clamp(18px,5vw,72px));margin-inline:auto;
 min-height:56px;white-space:normal;line-height:1.2;
 box-shadow:0 0 0 8px #090e17,0 8px 24px #0008;
}
#hub:has(#tab-challenge:not([hidden]) #lobby:not([hidden])) .hub-main{padding-bottom:120px;}
#lobby .lobby-actions{padding-top:8px;}
#lobby button{scroll-margin-bottom:calc(184px + env(safe-area-inset-bottom,0px));}
@media(max-height:460px) and (orientation:landscape){
 #hub #lobby .lobby-actions #prepareDuel{bottom:calc(84px + env(safe-area-inset-bottom,0px));min-height:44px;padding-block:9px;font-size:20px;}
}

/* Optional, short help stays out of the way until it is needed. */
#hub .friend-instructions{max-width:none;margin:0 0 18px;padding:0;border:1px solid #304d68;border-radius:14px;background:#101d2b;color:#cfdeed;}
#hub .friend-instructions summary{min-height:44px;padding:14px 16px;color:#91d9ff;font-size:14px;font-weight:700;line-height:1.4;}
#hub .friend-instructions ol{padding-inline:38px 18px;margin:0 0 12px;}
#hub .friend-instructions li{padding:5px 0;font-size:14px;line-height:1.6;overflow-wrap:anywhere;}
#hub .friend-instructions p,#hub .friend-instructions small{display:block;margin:12px 16px;font-size:13px;line-height:1.6;}
#hub .friend-instructions small{padding-top:12px;border-top:1px solid #30465c;color:#efcf8b;}
#hub .league-detail-actions #competeLeague{min-height:48px;padding:12px 28px;font-size:20px;}

#hub .league-detail-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
#hub #addLeagueFriends{min-height:48px;padding:12px 16px;border:1px solid #438fc1;background:#173957;color:#b9e6ff;border-radius:12px;font-size:14px;}
#hub .league-friend-picker{margin-top:16px;padding:14px;border:1px solid #345573;border-radius:14px;background:#0d1927;}
#hub .league-friend-picker>p{font-size:13px;line-height:1.5;margin:0 0 12px;}
#hub .league-friend-list{max-height:280px;overflow-y:auto;overscroll-behavior:contain;}
#hub .league-friend-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #2d4358;}
#hub .league-friend-row .friend-avatar{width:34px;height:34px;font-size:16px;}
#hub .league-friend-row strong{font-size:14px;overflow-wrap:anywhere;}
#hub .league-friend-row button{max-width:140px;min-height:44px;padding:10px;font-size:12px;white-space:normal;}
#hub .league-friend-row button:disabled{cursor:default;color:#9edacb;opacity:.75;}
#hub #leagueFindFriends{margin-top:12px;min-height:44px;font-size:13px;background:transparent;color:#98d9ff;border:0;padding:10px 0;}
#hub #leagueFriendStatus:empty{display:none;}

#hub .private-ranks .league-member{position:relative;padding:16px 0;}
#hub .league-member-info{display:flex;justify-content:space-between;align-items:start;gap:14px;}
#hub .league-member-info>span{overflow-wrap:anywhere;min-width:0;}
#hub .league-member-info>b{float:none;font-size:14px;text-align:end;flex-shrink:0;}
#hub .league-remove-button{margin-top:8px;min-height:44px;padding:8px 10px;border:1px solid #a5665f;background:#301e22;color:#ffb9a7;font-size:12px;border-radius:9px;}
#hub .league-remove-confirm{margin:10px 0 0;padding:12px;border:1px solid #a5665f;border-radius:12px;background:#261b24;}
#hub .league-remove-confirm p{margin:0 0 6px;font-size:14px;overflow-wrap:anywhere;}
#hub .league-remove-confirm small{font-size:12px;line-height:1.5;color:#c7d3e3;}
#hub .league-remove-confirm>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
#hub .league-remove-confirm button{min-height:44px;padding:10px 14px;font-size:13px;}
#hub .league-remove-confirm [role=status]:empty{display:none;}

/* Localize only the lettering while preserving the original artwork. */
#tab-home .home-art-title{font-family:'Barlow Condensed',Impact,Arial,sans-serif;font-style:italic;font-weight:900;stroke-width:3px;stroke:currentColor;paint-order:stroke fill;fill:currentColor;color:#fff;filter:drop-shadow(2px 3px 2px #0007)}
#tab-home .legend-art .home-art-title:first-child{color:#ffd340}
#tab-home .friends-art .home-art-title:last-child{color:#4cddff}
#tab-home .hero-art-action[data-original-language=true] [data-clean-plate],#tab-home .hero-art-action[data-original-language=true] [data-localized-art]{display:none}
#tab-home .hero-art-action:not([data-home-ready]) [data-localized-art]{visibility:hidden}
html:is([lang=ar],[lang=hi],[lang=zh],[lang=ja]) #tab-home .home-art-title{font-family:Arial,'Noto Sans',sans-serif;font-style:normal;stroke-width:0}
