.home-profile{position:relative;display:flex;align-items:center;justify-content:center;z-index:2;flex:0 0 40px;width:40px;height:40px;min-height:40px;margin:0 4px 0 0;padding:0;border:0;background:none;color:#fff0ca;text-align:left}.home-profile:hover{filter:brightness(1.12)}.chip-portrait{position:relative;width:39px;height:39px;flex-shrink:0;border:1px solid #bba06a;border-radius:9px;background:radial-gradient(#5376a8,#112547)}.chip-portrait>b{position:absolute;bottom:-5px;right:-4px;background:linear-gradient(#fff0a1,#e7ae37);border:1px solid #744815;border-radius:5px;padding:1px 5px;color:#513213;font:13px 'Lilita One',sans-serif;box-shadow:0 1px #070e21}.chip-info{display:none}.chip-info>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:14px 'Lilita One',sans-serif;text-shadow:0 2px #0e203f}.chip-info>span{display:block;font-size:6px;letter-spacing:.6px;margin:3px 0 4px;color:#d2e3fa;font-weight:800}.chip-info>i{display:block;height:4px;background:#0b1932;border-radius:4px;width:100%;overflow:hidden}.chip-info>i>span{display:block;height:100%;background:linear-gradient(#bcf5ff,#49b5f5)}
.top-profile{min-width:30px;height:32px;border:1px solid #e2bc66;border-radius:8px;background:linear-gradient(#ffe99b,#c38d30);box-shadow:inset 0 1px #fff6cc,0 2px #08132c;color:#503213;font:18px 'Lilita One',sans-serif;padding:0 6px}.profile-view{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#476591 transparent;padding-bottom:18px}
.profile-portrait{position:relative;display:inline-grid;place-items:center;border:3px solid #91b9e2;border-radius:24px;background:radial-gradient(ellipse at 50% 35%,#7598c3,#294875 70%);box-shadow:inset 0 2px #d8f3ff,0 0 0 3px #0c2043,0 5px 15px #0006;transform:rotate(-4deg)}.portrait-crown{position:absolute;top:-25px;left:24px;width:50px;height:40px;z-index:2;transform:rotate(4deg);filter:drop-shadow(0 3px #6f3f12)}
.quest-xp{font-size:7px;color:#8ae0ff;padding-left:3px;white-space:nowrap}
.profile-view button:focus-visible,.home-profile:focus-visible,.top-profile:focus-visible{outline:2px solid #9de9ff;outline-offset:3px}.profile-view .primary-button:disabled{opacity:.55}@keyframes xp-fill{from{width:var(--xp-start,0%)}}@keyframes level-pop{from{transform:scale(.65);opacity:0}70%{transform:scale(1.1)}to{transform:scale(1);opacity:1}}
@media(max-width:360px){.top-profile{min-width:26px;height:30px;font-size:16px;padding:0 4px}}

.home-hud>.home-profile .chip-portrait{border:2px solid #bad2ed;box-shadow:inset 0 1px #edf9ff,0 3px #08142c;border-radius:10px}.home-hud>.home-profile .chip-portrait>b{font-size:12px;min-width:15px;text-align:center;padding:2px 4px}.home-hud>.home-profile:after{content:"";position:absolute;inset:-3px}.home-hud{gap:7px}
@media(max-width:360px){.home-hud>.home-profile{flex-basis:34px;width:34px;max-width:34px;height:36px;min-height:36px;margin-right:2px}.home-hud>.home-profile .chip-portrait{width:34px;height:34px}.home-hud{gap:5px}}

/* The Profile screen's backdrop, with a persistent five-button dock. */
.app-shell.profile-mode{position:relative;background:#283155;isolation:isolate;overflow:hidden}.app-shell.profile-mode:before{content:'';position:absolute;inset:-8px;z-index:-1;background:linear-gradient(#1b2d6444,#41306255),url('/assets/menu/home-art.webp') center/cover;filter:blur(4px);opacity:.85}.app-shell.profile-mode>.topbar,.app-shell.profile-mode>.bottom-nav{display:none}.app-shell.profile-mode>main{padding:0;min-height:0;background:transparent}.profile-mode .profile-view{padding:0;scrollbar-width:none}.profile-mode #profile-content{padding-bottom:5px}.profile-art{width:32px;height:34px;display:block;flex-shrink:0;filter:drop-shadow(0 2px 1px #080d27aa)}
/* Profile (owner's pick, design A "arena spotlight"): the picture on a glowing stage with the level star and league
   shield, the league ribbon under the name, glossy stat tiles with the owner's icons, gold-trimmed panels with ribbon
   titles, the Champion's Road as a winding path, hex medals and the favorite fighter's arena banner. */
.pf{padding:0 10px 6px}
.pf-hero{position:relative;height:300px;border-radius:22px;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 50% 45%,#6fb4ff,#2a5fd0 30%,#14286a 70%);box-shadow:0 0 0 2px #081028,inset 0 0 0 2.5px #f0c24e,0 6px 0 2px #081028,0 10px 18px #0007}
.pf-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:url('/assets/menu/courtyard.webp') center 30%/cover;opacity:.35;mix-blend-mode:luminosity}
.pf-rays{position:absolute;inset:0;z-index:-1;background:repeating-conic-gradient(from 0deg at 50% 32%,#ffffff1c 0 9deg,transparent 9deg 22deg);-webkit-mask:radial-gradient(circle at 50% 32%,#000 12%,transparent 55%);mask:radial-gradient(circle at 50% 32%,#000 12%,transparent 55%);animation:pf-spin 40s linear infinite}
.pf-stage{position:absolute;left:50%;top:146px;width:200px;height:46px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,#bfe6ff,#5aa8ff 35%,#1a4fb8 65%,transparent 72%)}
.pf-stage:after{content:'';position:absolute;inset:8px 30px;border-radius:50%;border:3px solid #ffe08a;box-shadow:0 0 18px #ffd34a}
.pf-portrait{position:absolute;left:50%;top:24px;width:140px;height:140px;transform:translateX(-50%);filter:drop-shadow(0 10px 10px #0009)}
.pf-portrait>.portrait-crown{left:46px;top:-14px;width:48px;height:38px;z-index:2}
.pf-level{position:absolute;left:12px;top:12px;display:grid;justify-items:center}
.pf-level small,.pf-ribbon span,.pf-stone,.pf-medal h4,.pf-medal-total b,.pf-medal-tag,.pf-medal-ring>span{font:400 11px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:2.5px #0a1433;paint-order:stroke fill}
.pf-level small{margin-top:-3px;letter-spacing:1px}
.pf-star{position:relative;width:48px;height:48px;display:grid;place-items:center;padding-top:3px;font:400 20px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:3px #0a2a66;paint-order:stroke fill;isolation:isolate}
.pf-star:before{content:'';position:absolute;inset:0;z-index:-1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='0' y2='1'%3E%3Cstop stop-color='%23aee6ff'/%3E%3Cstop offset='.5' stop-color='%233a9cf0'/%3E%3Cstop offset='1' stop-color='%231a5fc8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M23 2l6 13 14 2-10 10 2 15-12-7-12 7 2-15L3 17l14-2z' fill='url(%23g)' stroke='%230a2a66' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;filter:drop-shadow(0 3px #0a1433)}
.pf-league{position:absolute;right:8px;top:8px;width:78px;display:grid;justify-items:center;padding:0;background:none}
.pf-league>.league-art{height:76px}
.pf-league>strong{position:relative;margin-top:-10px;font:400 22px/1 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:4px #0a1433;paint-order:stroke fill;text-shadow:0 3px #0a1433}
.pf-plate{position:absolute;left:0;right:0;bottom:0;padding:22px 14px 14px;background:linear-gradient(#0a143300,#0a1433d0 40%,#0a1433f0)}
.pf-plate .champion-name{display:flex;justify-content:center;align-items:center;gap:8px}
.pf-plate h1{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 30px/1.1 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:4px #0a1433;paint-order:stroke fill;text-shadow:0 3px #0a1433}
.champion-edit{display:grid;place-items:center;min-width:23px;height:24px;padding:3px;flex-shrink:0;background:linear-gradient(#319cff,#0863c9);border:1px solid #78b8ff;border-radius:5px;box-shadow:0 2px #102450;color:white}
.champion-edit svg{width:17px;height:17px}
.pf-ribbon{width:250px;max-width:100%;aspect-ratio:900/236;margin:4px auto 0;display:grid;place-items:center;padding-bottom:7%;background:center/100% 100% no-repeat}
.pf-ribbon span{font-size:15px;letter-spacing:.8px;-webkit-text-stroke-color:#1a0d33}
.pf-tags{display:flex;justify-content:center;gap:6px;margin-top:4px}
.pf-tags>*{display:flex;align-items:center;gap:5px;max-width:50%;padding:3px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-radius:9px;border:1px solid #ffffff2a;background:#ffffff14;font:400 12px 'Lilita One',sans-serif;letter-spacing:.5px;color:#cfe0ff}
.pf-tags svg{width:12px;height:12px;flex-shrink:0;opacity:.75}
.pf-xp,.pf-bar{position:relative;height:20px;margin-top:12px;border-radius:10px;background:#071030;box-shadow:inset 0 2px 3px #000a,0 1px #ffffff22;overflow:hidden}
.pf-xp>i,.pf-bar>i{position:absolute;left:0;top:0;bottom:0;border:2px solid #071030;border-radius:10px;background:linear-gradient(#b8f0ff,#3db8ff 45%,#1a7ee8);box-shadow:inset 0 -2px #0b4fae,inset 0 3px #ffffff77}
.pf-xp>strong,.pf-bar>strong{position:absolute;inset:0;display:grid;place-items:center;font:400 12.5px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:2.5px #0a1433;paint-order:stroke fill}
.pf-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:14px}
.pf-stat{display:grid;justify-items:center;padding:8px 2px;border-radius:16px;background:linear-gradient(#2a4a94,#152656);box-shadow:0 0 0 2px #081028,inset 0 0 0 2px #5f86d8,inset 0 4px 0 2px #ffffff18,0 5px 0 2px #081028}
.pf-stat>img{width:46px;height:40px;object-fit:contain;filter:drop-shadow(0 3px 2px #0008)}
.pf-stat>strong{margin-top:3px;font:400 24px/1 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:4px #0a1433;paint-order:stroke fill;text-shadow:0 3px #0a1433}
.pf-stat>span{margin-top:2px;font:400 10px 'Lilita One',sans-serif;letter-spacing:.8px;color:#a9c4ff;white-space:nowrap}
.pf-panel{position:relative;margin-top:30px;padding:26px 12px 12px;border-radius:20px;background:linear-gradient(#2a4a94,#1a2f68 30%,#131f4a);box-shadow:0 0 0 2px #081028,inset 0 0 0 2.5px #f0c24e,inset 0 0 0 5px #0a1433,inset 0 8px 0 5px #ffffff14,0 6px 0 2px #081028,0 10px 18px #0007}
.pf-banner{position:absolute;left:50%;top:-17px;transform:translateX(-50%);height:36px;min-width:230px;display:grid;place-items:center;margin:0;padding:0 30px;white-space:nowrap;background:linear-gradient(#ffe27a,#ffbe2e 50%,#ea8a10);clip-path:polygon(0 0,100% 0,93% 50%,100% 100%,0 100%,7% 50%);--edge:#6b2c05}
.pf-banner:before{content:'';position:absolute;inset:3px 9px 50%;background:#ffffff40;clip-path:inherit}
.pf-banner span{position:relative;font:400 19px 'Lilita One',sans-serif;letter-spacing:.6px;color:#fff;-webkit-text-stroke:3.5px var(--edge);paint-order:stroke fill;text-shadow:0 2px var(--edge)}
.pf-banner.is-blue{background:linear-gradient(#8fd8ff,#3a9cf0 50%,#1a5fc8);--edge:#0a2a66}
.pf-banner.is-green{background:linear-gradient(#b8ffb0,#4cd860 50%,#1d9a3a);--edge:#0b4a1c}
.pf-more{display:block;margin:10px auto 0;padding:6px 14px;border-radius:10px;background:#0a1433aa;box-shadow:inset 0 0 0 1.5px #5f86d8;font:400 12px 'Lilita One',sans-serif;letter-spacing:.5px;color:#9fdcff}
.pf-claim{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:46px;margin-bottom:10px;border-radius:14px;background:linear-gradient(#b8ffb0,#4cd860 50%,#1d9a3a);box-shadow:inset 0 3px #fff9,inset 0 -4px #0d6a26,0 4px #0b4a1c;font:400 17px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:3px #0b4a1c;paint-order:stroke fill;animation:pf-pulse 1.6s ease-in-out infinite}
.pf-claim>svg{width:26px;height:26px}
/* The road (owner's pick A, 2026-10-30): a moonlit meadow of rolling night hills with fireflies and grass, scenery from
   app.js roadScenery beside the stones, and a sandy path with pebbles (SVG, stretched to the map). */
.pf-map{position:relative;margin:0 -2px;border-radius:14px;overflow:hidden;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22140%22%20height%3D%22150%22%3E%3Cg%20fill%3D%22%23cfffb0%22%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2230%22%20r%3D%221.3%22%20opacity%3D%22.7%22/%3E%3Ccircle%20cx%3D%2296%22%20cy%3D%2270%22%20r%3D%221.6%22%20opacity%3D%22.55%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%22122%22%20r%3D%221.1%22%20opacity%3D%22.6%22/%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2212%22%20r%3D%221%22%20opacity%3D%22.5%22/%3E%3C/g%3E%3Cg%20stroke%3D%22%232f6a62%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M40%2090l-2-5M44%2090v-6M48%2090l2-5%22/%3E%3Cpath%20d%3D%22M110%20130l-2-5M114%20130v-6M118%20130l2-5%22/%3E%3Cpath%20d%3D%22M8%20140l-2-5M12%20140v-6%22/%3E%3C/g%3E%3C/svg%3E") 0 0/140px 150px,url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%20368%22%20preserveAspectRatio%3D%22none%22%3E%0A%3Cpath%20d%3D%22M0%2040%20C40%2020%2070%2070%20120%2050%20S180%2020%20200%2045%20V130%20C150%20110%20110%20150%2060%20125%20S10%20120%200%20135Z%22%20fill%3D%22%23215a66%22/%3E%0A%3Cpath%20d%3D%22M0%20135%20C10%20120%2060%20125%2060%20125%20C110%20150%20150%20110%20200%20130%20V210%20C160%20230%20120%20190%2070%20215%20S20%20200%200%20220Z%22%20fill%3D%22%23183f55%22/%3E%0A%3Cpath%20d%3D%22M0%20220%20C20%20200%2070%20215%2070%20215%20C120%20190%20160%20230%20200%20210%20V300%20C150%20280%20120%20320%2070%20300%20S20%20290%200%20310Z%22%20fill%3D%22%231f5262%22/%3E%0A%3Cpath%20d%3D%22M0%20310%20C20%20290%2070%20300%2070%20300%20C120%20320%20150%20280%20200%20300%20V368%20H0Z%22%20fill%3D%22%23163a52%22/%3E%0A%3Cpath%20d%3D%22M0%200%20H200%20V45%20C180%2020%20120%2050%20120%2050%20C70%2070%2040%2020%200%2040Z%22%20fill%3D%22%23163a52%22/%3E%0A%3Cg%20stroke%3D%22%23347a80%22%20stroke-width%3D%222%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.9%22%3E%0A%3Cpath%20d%3D%22M0%2040%20C40%2020%2070%2070%20120%2050%20S180%2020%20200%2045%22/%3E%3Cpath%20d%3D%22M0%20135%20C10%20120%2060%20125%2060%20125%20C110%20150%20150%20110%20200%20130%22/%3E%0A%3Cpath%20d%3D%22M0%20220%20C20%20200%2070%20215%2070%20215%20C120%20190%20160%20230%20200%20210%22/%3E%3Cpath%20d%3D%22M0%20310%20C20%20290%2070%20300%2070%20300%20C120%20320%20150%20280%20200%20300%22/%3E%3C/g%3E%0A%3C/svg%3E") 0 0/100% 368px,#163a52;box-shadow:inset 0 0 0 2px #0a1433,inset 0 0 26px #050c22,inset 0 6px 14px #0009}
.pf-scenery{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.pf-path{position:absolute;inset:0;width:100%;height:100%}
.pf-path path{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke}
.pf-path path:nth-child(1){stroke:#0a1433;stroke-width:17}
.pf-path path:nth-child(2){stroke:#d9b273;stroke-width:11}
.pf-path path:nth-child(3){stroke:#9c7444;stroke-width:3;stroke-dasharray:3 11}
/* A press keeps the level where it stands (the app-wide button press would replace this transform and drop it down
   and to the right); only the reward bubble squeezes a little. */
.pf-node{position:absolute;width:30px;height:30px;padding:0;background:none}
.pf-node,.pf-node:active:not(:disabled){transform:translate(-50%,-50%)}
.pf-node>.pf-stone{position:absolute;inset:0;z-index:1}
.pf-node:active .pf-bubble{scale:.94}
/* The reward beside its stone, on the side away from the road's swing, with its name under it. */
.pf-node.is-left .pf-bubble{right:calc(100% + 22px)}
.pf-node.is-right .pf-bubble{left:calc(100% + 22px)}
.pf-caption{position:absolute;top:calc(100% + 3px);left:50%;translate:-50% 0;width:max-content;max-width:120px;font:400 13px/1.05 'Lilita One',sans-serif;color:#fff1d0;-webkit-text-stroke:2.5px #0a1433;paint-order:stroke fill;text-align:center}
.pf-node.is-special .pf-caption{color:#f0d4ff}
.pf-node.is-claimed .pf-caption{opacity:.6}
.pf-bubble{transition:scale .1s;position:absolute;top:50%;translate:0 -62%;width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(#3a5bb0,#1a2c66);box-shadow:inset 0 0 0 2px #8fb4ff,inset 0 3px #ffffff33,0 4px #050a1d}
.pf-bubble>svg,.pf-bubble>.avatar-art,.pf-bubble>img{width:38px;height:38px;object-fit:contain}
.pf-node.is-special .pf-bubble{width:60px;height:60px;background:radial-gradient(#9a5ce8,#4a1a9a);box-shadow:inset 0 0 0 2.5px #f0d4ff,0 0 16px #c48bff,0 4px #1d0a40}
.pf-node.is-special .pf-bubble>:not(i,.pf-caption,.pf-road-badge,.pf-road-ticket,.pf-road-chip){width:46px;height:46px}
/* A level's chest, with what else is inside as badges (app.js roadRewardArt). Same weight as the rule above, so after it. */
.pf-node.is-special .pf-bubble>.rw-chest{width:52px;height:52px;object-fit:contain}
.pf-node.is-special .pf-bubble>.pf-road-badge{position:absolute;top:-10px;left:-12px;width:30px;height:30px;border-radius:50%;background:radial-gradient(#5f86e0,#1a2c66);box-shadow:0 0 0 2.5px #ffd24a,0 3px #050a1d;display:grid;place-items:center;overflow:hidden}
.pf-road-badge>*{width:26px;height:26px;object-fit:contain}
.pf-node.is-special .pf-bubble>.pf-road-ticket{position:absolute;top:-8px;right:-14px;width:32px;height:22px;filter:drop-shadow(0 2px #050a1d)}
.pf-road-ticket>.tk-art{width:32px;height:22px}
.pf-node.is-special .pf-bubble>.pf-road-chip{top:auto;bottom:-8px;width:auto;height:auto;font-size:9px;padding:1px 5px;box-shadow:0 0 0 1.5px #fff,0 2px 4px #0008}
.pf-bubble:has(>.pf-road-chip)>.pf-caption{top:calc(100% + 10px)}
/* On the right of the road the badges, READY and the check swap sides, clear of the player's picture on the stone. */
.pf-node.is-right.is-special .pf-bubble>.pf-road-badge{left:auto;right:-12px}.pf-node.is-right.is-special .pf-bubble>.pf-road-ticket{right:auto;left:-2px}
/* The ticket takes the other top corner (owner's ask, 2026-11-02), so READY drops to the bottom there. */
.pf-bubble:has(>.pf-road-ticket)>.pf-ready{top:auto;bottom:2px}
.pf-node.is-right .pf-ready{right:auto;left:-12px;transform:rotate(-8deg)}.pf-node.is-right .pf-check{right:auto;left:-6px}
.pf-node .pf-check{z-index:4}
.pf-claim>.rw-chest{width:34px;height:34px;object-fit:contain}
.pf-node.is-ready .pf-bubble{box-shadow:inset 0 0 0 2.5px #fff3b0,0 0 0 2px #e8a81c,0 0 18px #ffd34a,0 4px #050a1d;animation:pf-bob 1.2s ease-in-out infinite}
.pf-node.is-claimed .pf-bubble>:not(.pf-check,.pf-caption){opacity:.45;filter:grayscale(.5)}
.pf-ready,.pf-check{position:absolute;z-index:1;font-style:normal}
.pf-ready{top:-9px;right:-12px;padding:2px 6px;border-radius:7px;background:linear-gradient(#b8ffb0,#2abc28);box-shadow:0 2px #0b4a1c;transform:rotate(8deg);font:400 10px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:2px #0b4a1c;paint-order:stroke fill}
.pf-check{right:-6px;bottom:-6px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#3fbf2a;border:2px solid #d8ffc4;box-shadow:0 2px #1f6e14;color:#fff}
.pf-check>svg{width:12px;height:12px;stroke-width:4}
.pf-stone{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-size:15px;background:linear-gradient(#cfd6e6,#7a86a6);box-shadow:inset 0 2px #fff,0 3px #0a1433}
.pf-node:not(.is-locked) .pf-stone{background:linear-gradient(#fff3b0,#e8a81c);box-shadow:inset 0 2px #fff,0 3px #5a2a06}
.pf-node.is-you .pf-stone{background:linear-gradient(#8fd8ff,#1a6fe0);box-shadow:inset 0 2px #fff8,0 0 12px #5ab8ff,0 3px #0a1433}
.pf-you{position:absolute;right:-16px;top:-20px;width:30px;height:30px;z-index:1;border-radius:50%;box-shadow:0 0 0 2px #ffd34a,0 0 10px #ffd34a;filter:drop-shadow(0 2px 2px #0009)}
.pf-you.is-start{right:auto;width:44px;height:44px;transform:translate(-50%,-50%)}
.pf-you>b{position:absolute;left:50%;bottom:-14px;transform:translateX(-50%);padding:0 5px;border-radius:5px;background:#ffd34a;font:400 10px 'Lilita One',sans-serif;color:#5a2a06}
.pf-medal-total{display:flex;align-items:center;gap:10px;margin:2px 2px 10px}
.pf-medal-total b{font-size:15px;white-space:nowrap}.pf-medal-total em{font-style:normal;color:#ffd23f}
.pf-medal-total .pf-bar{flex:1;height:16px;margin:0}.pf-medal-total .pf-bar>i{background:linear-gradient(#fff3a0,#ffc531 50%,#e58a12);box-shadow:inset 0 -2px #9a5208,inset 0 3px #ffffff88}
.pf-medals{display:grid;gap:8px}
.pf-medal-tag{margin:4px 4px 0;font-size:10px;letter-spacing:.6px;color:#ffd23f}
.pf-medal{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 10px 6px 6px;border-radius:14px;background:linear-gradient(#21386e,#172b5c);box-shadow:inset 0 0 0 2px #3d63b5,0 3px 0 #081028}
.pf-medal.is-earned{background:linear-gradient(#1f5a4a,#16433a);box-shadow:inset 0 0 0 2px #5fe0a0,0 3px 0 #081028}
.pf-badge{position:relative;width:50px;height:57px}
.am-medal{position:absolute;inset:0;filter:drop-shadow(0 3px 0 #0a1433)}
.am-layer,.am-img{position:absolute}
.am-layer{inset:0;width:100%;height:100%;overflow:visible}
.pf-medal:not(.is-earned) .am-medal{filter:grayscale(.4) brightness(.8) drop-shadow(0 3px 0 #0a1433)}
.pf-medal h4{margin:0;font-size:14px}
.pf-medal p{margin:0 0 4px;font-size:10px;color:#a9c4ff}.pf-medal.is-earned p{color:#a8f0cf}
.pf-medal .pf-bar{height:14px;margin:0}.pf-medal .pf-bar>strong{font-size:9.5px}
.pf-medal.is-earned .pf-bar>i{background:linear-gradient(#eeffaf,#7ac642);box-shadow:inset 0 -2px #3a7a1a}
.pf-medal-ring{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#ffc531 calc(var(--p)*1%),#071030 0);box-shadow:0 0 0 2px #0a1433}
.pf-medal-ring>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#16295a}
.pf-medal-tick{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(#8ff06a,#38a42a);border:2.5px solid #d8ffc4;box-shadow:0 3px #1f6e14;color:#fff}
.pf-medal-tick>svg{width:20px;height:20px;stroke-width:4}
.pf-matches{display:grid;gap:8px}
.pf-match{display:flex;align-items:center;gap:6px;width:100%;height:62px;padding:0 8px 0 0;border-radius:14px;overflow:hidden;text-align:left;background:linear-gradient(90deg,#1f8a4a,#155a3e 40%,#0f2f3a);box-shadow:inset 0 0 0 2px #5df08a,inset 0 3px #ffffff33,0 4px #04140c;--edge:#0b4a1c}
.pf-match.is-lost{background:linear-gradient(90deg,#a8283c,#6a1a32 40%,#2a1430);box-shadow:inset 0 0 0 2px #ff8a9a,inset 0 3px #ffffff33,0 4px #1a040a;--edge:#5a0a18}
.pf-result{align-self:stretch;flex-shrink:0;width:96px;display:grid;align-content:center;padding-left:10px;background:linear-gradient(#5df08a,#22b04c);clip-path:polygon(0 0,100% 0,86% 100%,0 100%)}
.is-lost .pf-result{background:linear-gradient(#ff9aa8,#e2384e)}
.pf-result b{font:400 18px/1 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:3px var(--edge);paint-order:stroke fill}
.pf-result small{margin-top:2px;font:400 10px 'Lilita One',sans-serif;color:var(--edge)}
.pf-squad{flex:1;min-width:0;display:flex;justify-content:center;gap:2px}
.pf-squad>span{width:34px;height:34px;display:grid;place-items:center}
.pf-squad .ball-art{width:52px;height:47px;max-width:none;flex-shrink:0;filter:drop-shadow(0 2px 2px #0008)}
.pf-trophies{display:flex;align-items:center;gap:2px;font:400 14px 'Lilita One',sans-serif;color:#ffd34a;-webkit-text-stroke:2.5px #3a1a04;paint-order:stroke fill;white-space:nowrap}
.pf-trophies>img{width:20px;height:17px;object-fit:contain;filter:drop-shadow(0 1.5px #3a1a04)}
.pf-score{display:flex;align-items:center;gap:4px;padding:2px 8px;border-radius:10px;background:#0a1433aa;font:400 22px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:3px #0a1433;paint-order:stroke fill;white-space:nowrap}
.pf-score small{font-size:10px;color:#ffd34a;-webkit-text-stroke:2px #0a1433}
.pf-empty{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:#0a1433aa;box-shadow:inset 0 0 0 1.5px #4a6ab8}
.pf-empty>.profile-art{width:36px;height:36px}
.pf-empty>div{flex:1}
.pf-empty strong{font:400 14px 'Lilita One',sans-serif;color:#e0ecff}
.pf-empty p{margin:3px 0 0;font-size:11px;line-height:1.35;color:#a9c4ff}
.pf-empty button{height:40px;padding:0 14px;border-radius:12px;background:linear-gradient(#b8ffb0,#4cd860 50%,#1d9a3a);box-shadow:inset 0 3px #fff9,inset 0 -3px #0d6a26,0 3px #0b4a1c;font:400 16px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:3px #0b4a1c;paint-order:stroke fill}
.pf-favorite{position:relative;height:150px;margin-top:24px;padding:16px;border-radius:20px;overflow:hidden;isolation:isolate;background:#14286a 70% 50%/cover no-repeat;box-shadow:0 0 0 2px #081028,inset 0 0 0 2.5px #f0c24e,0 6px 0 2px #081028,0 10px 18px #0007}
.pf-favorite:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0a1433ee,#0a143399 45%,transparent 70%)}
.pf-favorite.is-empty{background-image:url('/assets/menu/courtyard.webp')}
.pf-favorite>small{display:block;font:400 12px 'Lilita One',sans-serif;letter-spacing:1.5px;color:#9fdcff;-webkit-text-stroke:2.5px #0a1433;paint-order:stroke fill}
.pf-favorite>strong{display:block;font:400 34px/1.05 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:4px #0a1433;paint-order:stroke fill;text-shadow:0 3px #0a1433}
.pf-favorite>div{position:absolute;left:14px;bottom:14px;display:flex;gap:8px}
.pf-favorite>div>span{display:grid;padding:5px 10px;border-radius:10px;background:#0a1433cc;box-shadow:inset 0 0 0 1.5px #f0c24e88}
.pf-favorite span small{font:400 10px 'Lilita One',sans-serif;letter-spacing:1px;color:#a9b6d6}
.pf-favorite b{display:flex;align-items:center;gap:4px;font:400 18px 'Lilita One',sans-serif;color:#ffd34a;-webkit-text-stroke:2.5px #3a1a04;paint-order:stroke fill}
.pf-favorite b>img{width:24px;height:22px;object-fit:contain;filter:drop-shadow(0 2px #0a1433)}
.pf-note{margin:12px 0 2px;text-align:center;font-size:11px;color:#c1cff1;text-shadow:0 1px #14223f}
@keyframes pf-spin{to{transform:rotate(360deg)}}
@keyframes pf-bob{50%{transform:translateY(-4px)}}
@keyframes pf-pulse{50%{transform:scale(1.03)}}
.reduce-motion .pf-rays,.reduce-motion .pf-node.is-ready .pf-bubble,.reduce-motion .pf-claim{animation:none}
/* Narrow phones (360 wide and less): smaller stage and tighter rows, so nothing clips. */
@media(max-width:380px){.pf{padding-inline:8px}.pf-hero{height:286px}.pf-portrait{width:128px;height:128px}.pf-stage{top:136px}.pf-plate h1{font-size:26px}.pf-stat>strong{font-size:21px}.pf-stat>span{font-size:9px;letter-spacing:.4px}.pf-stat>img{width:40px;height:35px}.pf-banner{min-width:210px}.pf-banner span{font-size:17px}.pf-bubble{width:46px;height:46px}.pf-node.is-special .pf-bubble{width:52px;height:52px}.pf-node.is-special .pf-bubble>:not(i,.pf-caption,.pf-road-badge,.pf-road-ticket,.pf-road-chip){width:40px;height:40px}.pf-medal h4{font-size:13px}.pf-medal p{font-size:9.5px}.pf-result{width:84px;padding-left:8px}.pf-result b{font-size:16px}.pf-squad>span{width:30px}.pf-squad .ball-art{width:46px;height:42px}.pf-score{font-size:19px;padding-inline:6px}}
.champion-nav{display:none}.app-shell.profile-mode>.champion-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex-shrink:0;gap:3px;padding:4px 3px max(5px,env(safe-area-inset-bottom));background:linear-gradient(#294270,#122445);border-top:2px solid #8ba1c7;box-shadow:0 -4px 12px #0b142a99;z-index:3}.champion-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative;min-width:0;height:51px;gap:0;border:1px solid #7394c0;border-radius:9px;background:linear-gradient(#2b4671,#1a3159);box-shadow:inset 0 1px #bfd7fa33,0 2px #080e22;color:#d8eeff;padding:2px 1px 4px}.champion-nav>button>svg{width:32px;height:31px;filter:drop-shadow(0 2px #07142b)}.champion-nav>button>b{font:10px/1 'Lilita One',sans-serif;letter-spacing:.3px;text-shadow:0 2px #07132b}.champion-nav>button.active{border:2px solid #ffe59c;background:radial-gradient(ellipse at 50% 25%,#e7b43e66,transparent 85%),linear-gradient(#564d3d,#263046);box-shadow:0 0 10px #ffcc5c99,inset 0 0 7px #efb82d44;color:#fff1c0}.champion-nav .menu-illustration{position:static;display:block;height:32px;width:50px;transform:none;max-width:none;filter:drop-shadow(0 2px #07142b)}
.champion-nav button:focus-visible{outline:2px solid #a3eaff;outline-offset:2px}

.champion-nav .menu-illustration{z-index:auto}.champion-nav>button>svg{height:33px;width:35px}

@media(max-width:500px){.champion-nav>button{height:47px}.champion-nav>button>svg{height:30px;width:32px}.champion-nav .menu-illustration{height:29px}}

/* Original supplied navigation artwork with five independent touch targets. */
.app-shell.profile-mode>#champion-nav.image-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:auto;flex-shrink:0;gap:0;padding:0 0 env(safe-area-inset-bottom,0px);margin:0;border:0;background:#102344;box-shadow:none;isolation:isolate}
#champion-nav.image-navigation>.navigation-art{display:block;grid-area:1 / 1 / 2 / 6;width:100%;height:auto;max-width:none;pointer-events:none;user-select:none}
#champion-nav.image-navigation>button{grid-row:1;display:block;position:relative;align-self:stretch;min-width:0;min-height:0;width:100%;height:auto;margin:0;padding:0;border:0;border-radius:13px;background:transparent;box-shadow:none;transform:none;color:transparent;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#champion-nav.image-navigation>button.active{border:0;background:transparent;box-shadow:none}
#champion-nav.image-navigation>button:hover{background:#fff1}
#champion-nav.image-navigation>button:active{background:#00133544}
#champion-nav.image-navigation>button:focus-visible{outline:2px solid #d7f5ff;outline-offset:-4px;background:#b8eaff22}
/* Trophy leagues (assets/leagues: the Blender Champion's medal and a painted ribbon per league). Each league's colours
   (t1 light, t2 main, t3 dark, t5 deepest) tint the Home pill, the pop-up's glow and its road rows. */
.tier-squire{--t1:#e887ff;--t2:#9238e2;--t3:#501586;--t5:#34105f}
.tier-knight{--t1:#ffb3a6;--t2:#d9293f;--t3:#7a0f1e;--t5:#4d0812}
.tier-baron{--t1:#9ff7c4;--t2:#1fa463;--t3:#0b5a35;--t5:#073b22}
.tier-duke{--t1:#a9d0ff;--t2:#2f6fe0;--t3:#163a8a;--t5:#0c2560}
.tier-champion{--t1:#fff3a8;--t2:#e8b21e;--t3:#8a5a06;--t5:#5e3d04}
.tier-legend{--t1:#ffe7a1;--t2:#4a4a5c;--t3:#121219;--t5:#0b0b10}
.league-art{display:block;width:auto;max-width:none;filter:drop-shadow(0 4px 6px #0008)}
/* League pop-up (owner's design): title, the shield on its ribbon, the trophy count, the next league's card and the
   league road. */
#info-dialog.league-mode{width:min(380px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:16px 18px 20px;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;border:3px solid #ffd76a;box-shadow:0 0 0 3px #0b1631,0 0 0 5px #c9922d,0 20px 60px #000c;background:radial-gradient(ellipse 120% 50% at 50% 0%,color-mix(in srgb,var(--t2) 75%,transparent),transparent 72%),linear-gradient(180deg,#1d3a80,#10224d 55%,#0b1838)}
.league-view{display:grid;grid-template-columns:minmax(0,1fr)}
.league-title{display:flex;align-items:center;justify-content:center;gap:10px;margin:2px 34px 0;white-space:nowrap;font:400 clamp(17px,5.6vw,22px)/1 'Lilita One',sans-serif;letter-spacing:1px;color:#fff1d0;-webkit-text-stroke:1.5px #5a2d0c;paint-order:stroke fill;text-shadow:0 2px 0 #5a2d0c}
.league-title:before,.league-title:after{content:'';flex:1;height:2px;background:linear-gradient(90deg,transparent,#e2b553)}
.league-title:after{transform:scaleX(-1)}
@media(max-width:340px){.league-title:before,.league-title:after{display:none}}
.league-hero{position:relative;display:grid;justify-items:center;padding-top:8px}
.league-hero:before{content:'';position:absolute;top:0;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--t1) 55%,transparent),transparent 65%)}
.league-rays{position:absolute;top:-40px;width:300px;height:300px;background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--t1) 40%,transparent) 0 7deg,transparent 7deg 20deg);-webkit-mask:radial-gradient(circle,#000 0 22%,transparent 60%);mask:radial-gradient(circle,#000 0 22%,transparent 60%);animation:league-spin 30s linear infinite;pointer-events:none}
.league-art.is-hero{position:relative;height:132px;animation:league-float 3.2s ease-in-out infinite}
.league-ribbon{position:relative;z-index:1;width:min(300px,86%);aspect-ratio:900/236;margin-top:-30px;display:grid;align-content:start;justify-items:center;padding-top:2%;background:center/100% 100% no-repeat;filter:drop-shadow(0 5px 6px #0009)}
.league-ribbon small{font:400 11px/1 'Lilita One',sans-serif;letter-spacing:1.5px;color:#ffffffd9}
.league-ribbon strong{font:400 clamp(24px,8vw,30px)/1 'Lilita One','Arial Black',sans-serif;letter-spacing:1.5px;color:#fff1d0;-webkit-text-stroke:2px var(--t5);paint-order:stroke fill;text-shadow:0 3px 0 var(--t5)}
/* Keeps the name inside the ribbon band on phones narrower than 375 (the ribbon shrinks faster than 8vw). */
@media(max-width:374px){.league-ribbon strong{font-size:calc(9.5vw - 9.4px)}}
.league-count{justify-self:center;display:flex;align-items:center;gap:8px;margin:6px 0 2px;padding:5px 20px 5px 10px;border-radius:999px;background:#0b1631d9;border:2px solid #d9b25a;box-shadow:0 3px 0 #05091a}
.league-count>img{width:30px;height:auto}
.league-count strong{font:400 32px/1 'Lilita One',sans-serif;color:#ffe36b;text-shadow:0 2px #4a2a05;font-variant-numeric:tabular-nums}
.league-next-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;margin:14px 0;padding:12px 14px;border-radius:16px;background:linear-gradient(#13285f,#0b1a45);border:2px solid #d9b25a;box-shadow:inset 0 1px #ffffff1a,0 3px 0 #05091a}
.league-art.is-next{height:62px}
.league-next-card small{display:block;font:400 11px/1 'Lilita One',sans-serif;letter-spacing:1px;color:#8fc4ff}
.league-next-card>div>b{display:block;margin:2px 0 6px;font:400 20px/1 'Lilita One',sans-serif;color:#fff1d0}
.league-bar{position:relative;height:24px;border-radius:999px;background:#08122a;border:2px solid #d9b25a;box-shadow:inset 0 2px 5px #000b;overflow:hidden}
.league-bar i{display:block;height:100%;border-radius:inherit;background:repeating-linear-gradient(115deg,#ffffff26 0 8px,transparent 8px 16px),linear-gradient(180deg,#ffe36b,#ffb300 55%,#f08c00);box-shadow:inset 0 2px 0 #fff6}
.league-bar b{position:absolute;inset:0;display:grid;place-items:center;font:400 13px 'Lilita One',sans-serif;letter-spacing:.5px;color:#fff;text-shadow:0 1px 2px #000,0 0 3px #000}
.league-next{margin:0 0 16px;text-align:center;font-size:13px;font-weight:700;color:#c9d8f2}
.league-road-title{display:flex;align-items:center;gap:10px;margin:0 0 10px;font:400 16px 'Lilita One',sans-serif;letter-spacing:2.5px;color:#ffe7a1}
.league-road-title:before,.league-road-title:after{content:'';flex:1;height:2px;background:linear-gradient(90deg,transparent,#d9b25a)}
.league-road-title:after{transform:scaleX(-1)}
.league-road{position:relative;list-style:none;margin:0;padding:0;display:grid;gap:8px;isolation:isolate}
.league-road:before{content:'';position:absolute;left:34px;top:26px;bottom:26px;width:4px;border-radius:4px;background:linear-gradient(180deg,#5a6fa3,#ffd76a);z-index:-1}
.league-road li{display:grid;grid-template-columns:54px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:7px 12px 7px 10px;border-radius:14px;border:1.5px solid color-mix(in srgb,var(--t2) 55%,#2a3f6a);background:linear-gradient(90deg,color-mix(in srgb,var(--t3) 60%,#0d1d40),#0d1d40 75%)}
.league-art.is-small{height:48px;justify-self:center}
.league-road-name{display:grid;gap:1px;min-width:0}
.league-road-name b{font:400 19px/1.1 'Lilita One',sans-serif;color:#fff1d0;letter-spacing:.4px}
.league-road-name small{font-size:10px;font-weight:800;letter-spacing:.8px;color:#b9cbef}
.league-road em{font-style:normal;display:grid;place-items:center}
/* The chest each league gives (owner's ask, 2026-11-07), open with a tick once claimed. */
.league-road-chest{position:relative;display:block;width:58px}
.league-road-chest .rw-chest{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 3px #0008)}
.league-road .is-locked .league-road-chest .rw-chest{filter:saturate(.8) brightness(.85) drop-shadow(0 3px 3px #0008)}
.league-road-chest i{position:absolute;right:-4px;bottom:0;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#3fbf2a;border:2px solid #d8ffc4;color:#fff}
.league-road-chest i svg{width:11px;height:11px;stroke-width:4}
.league-road em svg{width:22px;height:22px}
.league-road .is-reached em{color:#7ee08f}
.league-road .is-current{border-color:#ffd76a;box-shadow:0 0 0 2px #ffd76a55,0 0 22px color-mix(in srgb,var(--t2) 70%,transparent)}
.league-road .is-current em{padding:4px 11px 5px;border-radius:999px;background:linear-gradient(180deg,#ffe36b,#ffb300);color:#3a1d05;font:400 13px 'Lilita One',sans-serif;letter-spacing:1px;box-shadow:0 2px 0 #8a4a07}
.league-road .is-locked{background:#0c1a36;border-color:#24365e}
.league-road .is-locked b{color:#8e9dbf}
.league-road .is-locked .league-art{filter:saturate(.75) brightness(.8) drop-shadow(0 3px 4px #0008)}
.league-lock{width:22px;height:auto;opacity:.9}
@keyframes league-spin{to{transform:rotate(360deg)}}
@keyframes league-float{50%{transform:translateY(-6px)}}
.reduce-motion .league-rays,.reduce-motion .league-art.is-hero{animation:none}

/* The Customize panel (the pencil on Profile), in the inbox's blue-and-gold panel: the gold crown breaks through the
   top rim, a live preview card with a slow shine, then name, portraits, frame, title and crown. Everything eases in
   one after another when it opens, choices pop, and locked cards shake when tapped. */
#info-dialog.settings-mode.customize-mode{width:min(372px,calc(100vw - 20px));padding:42px 12px 12px}
#info-dialog.settings-mode.customize-mode[open]{animation:cz-in .4s cubic-bezier(.2,.9,.3,1.15)}
/* The title stays put; only what is under it scrolls, so nothing slides up past the title into the close X's row. */
.cz-scroll{max-height:min(calc(100dvh - 186px),calc(90dvh - 112px));overflow-y:auto;overscroll-behavior:contain;margin:0 -4px;padding:10px 4px 2px;scrollbar-width:thin;scrollbar-color:#ffd76a transparent}
.cz-scroll::-webkit-scrollbar{width:5px}.cz-scroll::-webkit-scrollbar-thumb{border-radius:3px;background:#ffd76a}
.cz-crest{position:absolute;top:-42px;left:50%;width:88px;transform:translateX(-50%);filter:drop-shadow(0 4px 0 #6b3508) drop-shadow(0 6px 8px #0008);pointer-events:none;animation:cz-crest .7s .1s cubic-bezier(.3,1.6,.5,1) both}
.customize-panel h2{margin:0 0 4px;text-align:center;font:400 34px/1 'Lilita One',sans-serif;letter-spacing:1px;color:#fff1d0;-webkit-text-stroke:2px #753414;paint-order:stroke fill;text-shadow:0 2px 0 #b9661c,0 4px 0 #74300f;animation:cz-up .4s .05s both}
/* The live preview. */
.cz-preview{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;padding:16px 14px 14px 18px;border-radius:18px;background:radial-gradient(circle at 18% 45%,#4a82e6,#14306f 55%,#0b1a45);border:2px solid #ffd76a99;box-shadow:inset 0 0 22px #0009,0 4px 0 #0b1631;animation:cz-up .45s .1s both}
/* The shine moves inside its own box (no clipping on the card, so a crown on the portrait can stick out the top). */
.cz-preview:after{content:'';position:absolute;inset:0;border-radius:16px;background:linear-gradient(105deg,transparent 45%,#ffffff26 50%,transparent 55%) no-repeat;background-size:250% 100%;background-position:150% 0;animation:cz-shine 4s 1.2s ease-in-out infinite;pointer-events:none}
.cz-portrait{width:90px;height:90px;border-radius:24px}

.cz-portrait>.portrait-crown{top:-24px;left:21px}
.cz-portrait.is-pop{animation:cz-pop .5s cubic-bezier(.3,1.6,.5,1)}
.cz-who{min-width:0}
.cz-who strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 clamp(18px,6vw,23px)/1.1 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:1.5px #0a1a4a;paint-order:stroke fill;text-shadow:0 2px 0 #0a1a4a}
.cz-ribbon{display:inline-block;margin-top:7px;padding:5px 13px 6px;font:400 12px/1 'Lilita One',sans-serif;letter-spacing:.6px;color:#fff;background:linear-gradient(#6aaeff,#2a62d0);clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,8px 100%,0 50%)}
.cz-ribbon.is-gold{color:#5a2a05;background:linear-gradient(#ffe98f,#f4b91c 60%,#e09a0c)}
.cz-ribbon{white-space:nowrap}
.cz-who .cz-ribbon{max-width:100%;overflow:hidden;vertical-align:top;text-overflow:ellipsis;font-size:min(12px,3.6vw)}
.cz-card .cz-ribbon{margin:0;padding:5px 8px 6px;font-size:min(11px,3.3vw);letter-spacing:.3px}
.cz-who small{display:block;margin-top:7px;font:700 11px var(--sans);color:#b5c9f0}
/* Sections slide up one after another. */
.cz-sec{margin-top:16px;animation:cz-up .45s calc(.14s + var(--i)*.06s) both}
.cz-sec h3{display:flex;align-items:center;gap:8px;margin:0 0 9px;font:400 15px/1 'Lilita One',sans-serif;letter-spacing:.8px;color:#ffe08a;text-shadow:0 2px 0 #3a1a05}
.cz-sec h3:after{content:'';flex:1;height:2px;border-radius:1px;background:linear-gradient(90deg,#e2b553,transparent)}
.cz-sec h3 small{font:700 10px var(--sans);letter-spacing:.3px;color:#9fb8e8;text-shadow:none}
.cz-name{display:flex;gap:8px}
.cz-name input{flex:1;min-width:0;height:48px;padding:0 14px;border-radius:14px;border:2px solid #ffd76a;background:linear-gradient(#071435,#0d2357);font:400 19px 'Lilita One',sans-serif;color:#fff;box-shadow:inset 0 3px 6px #0009;transition:box-shadow .2s,border-color .2s}
.cz-name input:focus{outline:none;border-color:#fff3b0;box-shadow:inset 0 3px 6px #0009,0 0 0 3px #ffd76a55}
.cz-name button,.cz-tile,.cz-card{transition:transform .15s cubic-bezier(.3,1.5,.5,1),box-shadow .2s,border-color .2s,filter .2s}
.cz-name button{height:48px;padding:0 17px;border-radius:14px;font:400 17px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:.8px #1f5a10;paint-order:stroke fill;background:linear-gradient(#8ef05a,#3fbf2a);border:2px solid #c9ff9e;box-shadow:0 4px 0 #1f6e14}
.cz-name button:active{transform:translateY(3px);box-shadow:0 1px 0 #1f6e14}
/* Portraits: owned fighters in glowing tiles, the rest dark with a gold lock. */
.cz-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.cz-tile{position:relative;aspect-ratio:1;padding:0;border-radius:15px;display:grid;place-items:center;background:radial-gradient(circle at 50% 38%,var(--c),#0b1a45 80%);border:2px solid #2f4c95;box-shadow:inset 0 1px #ffffff22,0 3px 0 #071233;animation:cz-tile .42s calc(.24s + var(--n)*.028s) cubic-bezier(.3,1.5,.5,1) both}

.cz-tile:active,.cz-card:active{transform:scale(.93)}
.cz-tile[aria-checked="true"]{border:3px solid #ffd76a;box-shadow:0 0 0 2px #6b3508,0 0 16px #ffc94a,inset 0 1px #ffffff33}

.cz-tile[aria-checked="true"]:after,.cz-card[role="radio"][aria-checked="true"]:after{content:'';position:absolute;right:-6px;top:-6px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 0 #1f6e14;background:#3fbf2a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;animation:cz-check .4s cubic-bezier(.3,1.8,.5,1) both}
.cz-tile.is-locked{background:radial-gradient(circle at 50% 38%,#253a6b,#0a1430 80%);border-color:#24386e}

.cz-lock{position:absolute;right:5px;top:5px;width:20px;height:20px;border-radius:7px;display:grid;place-items:center;color:#5a2a05;background:linear-gradient(#ffe98f,#e09a0c);box-shadow:0 2px 0 #6b3508}
.cz-lock svg{width:13px;height:13px}
/* Frame, title and crown cards. */
.cz-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.cz-card{position:relative;display:grid;justify-items:center;align-content:center;gap:7px;min-height:108px;padding:11px 8px 10px;border-radius:15px;background:linear-gradient(#13285f,#0b1a45);border:2px solid #2c4a90;box-shadow:inset 0 1px #ffffff14,0 3px 0 #071233;color:#fff}
.cz-card[role="radio"][aria-checked="true"]{border-color:#ffd76a;box-shadow:0 0 0 2px #6b3508,0 0 14px #ffc94a99,inset 0 1px #ffffff14}
.cz-card b{font:400 15px/1 'Lilita One',sans-serif}
/* A trail card in the trail picker (Fighters): the trail's Shop picture, cropped to its streak, above the name. A
   locked trail wears a small level badge on its picture, so every card keeps the same height. */
.cz-card.cz-trail{grid-template-columns:minmax(0,1fr);justify-items:stretch;align-content:start;gap:6px;min-height:0;padding:8px 8px 10px;text-align:center}
.cz-trail-art{display:block;aspect-ratio:400/150;border-radius:10px;overflow:hidden;background:#071233}
.cz-trail-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:30% 50%}
.cz-card.cz-trail b{font-size:14px}
.cz-card.cz-trail .cz-lock{top:12px;right:12px;width:auto;padding:0 6px;gap:3px;display:flex;align-items:center;font:400 11px 'Lilita One',sans-serif}
.cz-card.cz-trail.is-locked>.cz-lock{opacity:1;filter:none}
.trail-picker-intro{margin:2px 4px 12px;text-align:center;font:600 12px/1.4 var(--sans);color:#c5d6f5}
.cz-mini{position:relative;width:56px;height:56px;display:grid;place-items:center;border-radius:17px;transform:rotate(-4deg);background:radial-gradient(ellipse at 50% 35%,#7598c3,#294875 70%);border:3px solid #91b9e2;box-shadow:inset 0 2px #d8f3ff,0 0 0 2px #0c2043}

.cz-card.is-locked{background:linear-gradient(#0d1b40,#08122e);border:2px dashed #4f6db5;box-shadow:none}
.cz-card.is-locked>:not(.cz-unlock){opacity:.42;filter:grayscale(.4)}
.cz-unlock{display:grid;justify-items:center;gap:4px;width:100%}
.cz-unlock b{display:flex;align-items:center;gap:4px;font:400 12px/1 'Lilita One',sans-serif;color:#ffe08a}
.cz-unlock b svg{width:12px;height:12px}
.cz-bar{display:block;width:100%;height:8px;border-radius:5px;background:#050d24;box-shadow:inset 0 1px 2px #000;overflow:hidden}
.cz-bar>i{display:block;height:100%;width:calc(var(--p)*100%);border-radius:5px;background:linear-gradient(#ffe98f,#e09a0c);animation:cz-bar .9s .55s cubic-bezier(.2,.8,.3,1) both}
.cz-unlock small{font:700 9.5px var(--sans);color:#9fb8e8}
.cz-crown{grid-template-columns:auto minmax(0,1fr) auto;justify-items:start;gap:12px;min-height:0;width:100%;padding:11px 13px;text-align:left}
.cz-crown>img{width:46px;filter:drop-shadow(0 3px 0 #6b3508)}
.cz-crown>span{display:grid;gap:5px;width:100%}
.cz-crown small{font:700 10px var(--sans);color:#9fb8e8}
.cz-crown .cz-unlock{justify-items:start}
.cz-crown.is-locked{grid-template-columns:auto minmax(0,1fr)}
.cz-card.cz-crown.is-locked>span{opacity:1;filter:none}
.cz-crown.is-locked>span>b{opacity:.45}
.cz-switch{position:relative;width:54px;height:30px;border-radius:15px;background:#071233;border:2px solid #4f6db5;transition:background .25s,border-color .25s}
.cz-switch:after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#7b8fbe;box-shadow:0 2px 0 #0008;transition:transform .3s cubic-bezier(.3,1.6,.5,1),background .25s}
.cz-crown[aria-checked="true"] .cz-switch{background:linear-gradient(#8ef05a,#3fbf2a);border-color:#c9ff9e}
.cz-crown[aria-checked="true"] .cz-switch:after{transform:translateX(24px);background:#fff}
.cz-crown[aria-checked="true"]>img{animation:cz-pop .5s cubic-bezier(.3,1.6,.5,1)}
.cz-note{margin:14px 0 2px;text-align:center;font:600 11px var(--sans);color:#9fb8e8;animation:cz-up .45s .5s both}
.is-shaking{animation:cz-shake .4s ease-in-out}
@keyframes cz-in{from{opacity:0;transform:translateY(24px) scale(.92)}}
@keyframes cz-crest{from{opacity:0;transform:translate(-50%,-30px) scale(.6) rotate(-12deg)}}
@keyframes cz-up{from{opacity:0;transform:translateY(14px)}}
@keyframes cz-tile{from{opacity:0;transform:scale(.6)}}
@keyframes cz-check{from{transform:scale(0) rotate(-40deg)}}
@keyframes cz-pop{0%{transform:rotate(-4deg) scale(.82)}55%{transform:rotate(-4deg) scale(1.1)}100%{transform:rotate(-4deg)}}
@keyframes cz-bar{from{width:0}}
@keyframes cz-shine{0%,70%{background-position:150% 0}100%{background-position:-50% 0}}
@keyframes cz-shake{20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
.reduce-motion .customize-panel *,.reduce-motion .customize-panel,.reduce-motion #info-dialog.customize-mode,.reduce-motion .customize-panel :after{animation:none!important}

/* Profile pictures (avatars.js): a face inside its silver or gold ring, filling whatever box holds it. */
.avatar-art{position:relative;display:block;width:100%;height:100%;aspect-ratio:1/1}
.avatar-art>img{position:absolute;pointer-events:none;-webkit-user-drag:none}
.avatar-art>.avatar-face{left:8%;top:8%;width:84%;height:84%}
.avatar-art>.avatar-ring{inset:0;width:100%;height:100%;filter:drop-shadow(0 2px 2px #0007)}
.cz-tile.is-locked .avatar-face{filter:grayscale(.7) brightness(.7)}
.cz-tile .cz-lock{width:auto;min-width:20px;padding:0 5px;gap:3px;display:flex;align-items:center;font:400 11px 'Lilita One',sans-serif}
/* The ring is the frame now: the old square tile behind the portrait and the Home chip goes away. */
.profile-portrait{border:0;border-radius:50%;background:none;box-shadow:none}
.chip-portrait,.home-hud>.home-profile .chip-portrait{border:0;border-radius:50%;background:none;box-shadow:none}
/* Picture tiles are just the round picture; the chosen one glows gold around its ring. */
.cz-tile,.cz-tile.is-locked{border:0;border-radius:50%;background:none;box-shadow:none}
.cz-tile .avatar-art{width:100%;height:100%;transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.cz-tile[aria-checked="true"]{border:0;box-shadow:0 0 0 3px #ffd76a,0 0 0 5px #6b3508,0 0 16px #ffc94a}
.cz-tile[aria-checked="true"] .avatar-art{transform:scale(1.06)}
.cz-tile[aria-checked="true"]:after{right:-2px;top:-2px}
.cz-tile .cz-lock{right:50%;top:auto;bottom:-4px;transform:translateX(50%);white-space:nowrap}
.cz-mini{background:none;border:0;box-shadow:none;transform:none}
/* Shop looks in the Customize panel (style-shop.js): owned rings and titles join the pairs, and the name colours get
   their own row with a link to the Shop. */
.cz-ribbon.is-shop{background:linear-gradient(#c29bff,#7448d6)}
.cz-name-swatch{display:grid;place-items:center;width:56px;height:56px;font:400 30px/1 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:1.5px #0a1a4a;paint-order:stroke fill;text-shadow:0 2px #0a1a4a}
.cz-shop-link{display:inline-flex;align-items:center;gap:4px;margin-top:8px;padding:6px 10px;border-radius:999px;border:1.5px solid #ffd85a99;background:#0b1a45;color:#ffe48a;font:400 12px/1 'Lilita One',sans-serif;letter-spacing:.3px}
.cz-shop-link svg{width:12px;height:12px}
/* Match detail (a tap on a Recent matches row): the Profile's gold panel with a red or green ribbon on top. */
#info-dialog.match-mode{width:min(372px,calc(100vw - 24px));max-height:calc(100dvh - 40px);padding:34px 12px 14px;overflow:visible;border:3px solid #ffd76a;box-shadow:0 0 0 3px #0b1631,0 0 0 5px #c9922d,0 20px 60px #000c;background:linear-gradient(#2a4a94,#1a2f68 30%,#131f4a)}
#info-dialog.match-mode>.dialog-close{z-index:2;color:#fff;background:#0a1433aa;border-radius:10px;box-shadow:inset 0 0 0 1.5px #ffffff55}
.match-detail{text-align:center}
.md-ribbon{position:absolute;left:50%;top:-22px;transform:translateX(-50%);height:44px;min-width:220px;display:grid;place-items:center;margin:0;padding:0 34px;clip-path:polygon(0 0,100% 0,93% 50%,100% 100%,0 100%,7% 50%);background:linear-gradient(#ff9aa6,#e23a4e 50%,#9a1426);--edge:#5a0a18}
.md-ribbon.is-won{background:linear-gradient(#b8ffb0,#4cd860 50%,#1d9a3a);--edge:#0b4a1c}
.md-ribbon:before{content:'';position:absolute;inset:3px 11px 50%;background:#ffffff40;clip-path:inherit}
.md-ribbon span{position:relative;font:400 27px 'Lilita One',sans-serif;letter-spacing:1px;color:#fff;-webkit-text-stroke:4px var(--edge);paint-order:stroke fill;text-shadow:0 3px var(--edge)}
.md-place{display:block;margin-top:6px;font:400 12px 'Lilita One',sans-serif;letter-spacing:2px;color:#ffd76a}
.md-score{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:4px}
.md-score>div{display:grid;justify-items:center;gap:6px}
.md-score strong,.md-score>i{font:400 52px/1 'Lilita One',sans-serif;font-style:normal;color:#fff;-webkit-text-stroke:4px #0a1433;paint-order:stroke fill;text-shadow:0 3px #0a1433}
.md-score>i{font-size:36px;color:#ffd34a}
.md-score small{font:400 12px 'Lilita One',sans-serif;letter-spacing:1px;color:#a9c4ff}
.md-lights{display:flex;gap:5px}
.md-lights>i{width:12px;height:12px;border-radius:50%;background:#0a1433;box-shadow:inset 0 0 0 2px #6b7aa6}
.md-lights>i.is-on{background:radial-gradient(circle at 35% 30%,#fff6b0,#ffc21a 60%,#b86a06);box-shadow:0 0 6px #ffd34a,inset 0 0 0 1.5px #7a3a04}
.md-team{display:flex;align-items:center;gap:6px;height:86px;margin-top:12px;padding:0 10px;border-radius:16px}
.md-team.is-you{background:linear-gradient(90deg,#2a6ae0,#183a8a 55%,#122a5a);box-shadow:inset 0 0 0 2px #8fc4ff,inset 0 3px #ffffff33,0 4px #050a1d}
.md-team.is-rival{flex-direction:row-reverse;background:linear-gradient(90deg,#122a5a,#6a1a32 45%,#c8324a);box-shadow:inset 0 0 0 2px #ff9aaa,inset 0 3px #ffffff33,0 4px #1a040a}
.md-team>strong{width:58px;flex-shrink:0;font:400 17px/1 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:3px #0a1433;paint-order:stroke fill}
.md-team>div{flex:1;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.md-team span{display:grid;justify-items:center;min-width:0}
.md-team .ball-art{width:70px;height:58px;max-width:100%;filter:drop-shadow(0 3px 2px #0009)}
.md-team b{margin-top:-2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12.5px 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:2.5px #0a1433;paint-order:stroke fill}
.md-vs{position:relative;z-index:1;display:block;width:62px;margin:-16px auto;filter:drop-shadow(0 3px 4px #000a)}
.md-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:16px}
.md-tiles>div{display:grid;justify-items:center;min-width:0;padding:8px 2px 7px;border-radius:14px;background:linear-gradient(#2a4a94,#152656);box-shadow:0 0 0 2px #081028,inset 0 0 0 2px #5f86d8,0 4px 0 2px #081028}
.md-tiles img{width:36px;height:30px;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}
.md-tiles strong{margin-top:3px;font:400 18px/1 'Lilita One',sans-serif;color:#fff;-webkit-text-stroke:3.5px #0a1433;paint-order:stroke fill;white-space:nowrap}
.md-tiles strong.is-down{color:#ff8a9a}.md-tiles strong.is-up{color:#9dff8a}
.md-tiles span{margin-top:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 10px 'Lilita One',sans-serif;letter-spacing:.8px;color:#a9c4ff}
@media(max-height:660px){#info-dialog.match-mode{padding-top:30px}.md-score strong{font-size:42px}.md-team{height:74px;margin-top:10px}.md-team .ball-art{height:48px}.md-tiles{margin-top:12px}.md-tiles img{height:24px}}
