@import url('/widgets-theme.css');
/* Surface and accent tokens shared with every embedded view. */
:root[data-theme]{
 --hue:#6945cb;--bright:#bba5ff;--button:#7351d8;
 --on-primary:white;--primary:var(--button);--purple:var(--primary);
 --accent-soft:color-mix(in srgb,var(--accent) 12%,var(--surface));
 --accent-edge:color-mix(in srgb,var(--accent) 42%,var(--line));
 --tint:color-mix(in srgb,var(--primary) 5%,var(--surface));
 --panel:var(--surface);--bg:var(--canvas);
 --focus:0 0 0 3px color-mix(in srgb,var(--accent) 17%,transparent);
 color:var(--text);background:var(--canvas);accent-color:var(--primary)
}
:root[data-accent=blue]{--hue:#145ebc;--bright:#85c1ff;--button:#1b66c8}
:root[data-accent=jade]{--hue:#007469;--bright:#67dfc2;--button:#007d70}
:root[data-accent=rose]{--hue:#b52560;--bright:#ff99bc;--button:#c02966}
:root[data-accent=orange]{--hue:#a14b05;--bright:#ffc073;--button:#b2530a}
:root[data-theme=light]{
 color-scheme:light;--canvas:#f4f6fb;--surface:#fff;--surface2:#f7f8fc;--surface3:#eceef6;--text:#202339;--muted:#60677e;--line:#dce0ec;
 --accent:var(--hue);--soft-text:#454c64;--warning:#965008;--error:#b32d4b;--ok:#087457;--star:#ae6500;
 --shadow:0 4px 16px #1d285808,0 1px 3px #1d285805;--float-shadow:0 14px 54px #25355b24,0 3px 12px #25355b0c
}
:root[data-theme=dark]{
 color-scheme:dark;--canvas:#141827;--surface:#202537;--surface2:#282e43;--surface3:#323950;--text:#f5f6ff;--muted:#b1bad1;--line:#394058;
 --accent:var(--bright);--soft-text:#d6daea;--warning:#ffd190;--error:#ff9dad;--ok:#65dfb3;--star:#ffce64;
 --shadow:0 4px 20px #070b1b1a;--float-shadow:0 18px 60px #06081666,0 3px 14px #06081622
}
:root[data-theme],:root[data-theme] *{scrollbar-color:color-mix(in srgb,var(--muted) 48%,transparent) transparent}
:root[data-theme] ::selection{background:var(--primary);color:white}
:root[data-theme] :focus-visible{outline-color:var(--accent)}
.appRoot{background:radial-gradient(ellipse 90% 540px at 46% -150px,color-mix(in srgb,var(--primary) 12%,transparent),transparent),var(--canvas);color:var(--text)}
.appRoot .top{background:color-mix(in srgb,var(--surface) 95%,transparent);border-color:var(--line);box-shadow:0 1px 5px #18213d05}
.appRoot .brand,.appRoot nav button.active{color:var(--text)}
.appRoot nav button{color:var(--muted)}
.appRoot nav button:hover,.appRoot nav button.active{color:var(--accent)}
.appRoot nav button.active:after{background:var(--accent)}
.appRoot .topRight .setting,.appRoot #appearance{background:var(--surface2);color:var(--soft-text);border:1px solid var(--line)}
.appRoot .topRight .setting:hover,.appRoot #appearance:hover{background:var(--accent-soft);color:var(--accent)}
.appRoot #account,.appRoot .guestNotice{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-edge)}
.appRoot #account.member{background:transparent;color:var(--text)}
.appRoot .avatar{background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 70%,white),var(--primary) 75%);color:white}
.appRoot .banner{color:white;box-shadow:var(--shadow)}
.appRoot .btn:not(.glass,.primary,.violet),.appRoot .plain,.appRoot .chip{background:var(--surface2);color:var(--soft-text);border-color:var(--line)}
.appRoot .btn.violet{background:var(--primary);color:var(--on-primary)}
.appRoot .icon{color:var(--muted)}
.appRoot .icon:hover,.appRoot .plain:hover,.appRoot .chip:hover,.appRoot .pick:hover,.appRoot .btn:not(.glass,.primary,.violet):hover{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-edge)}
.appRoot .active:is(.plain,.chip,.pick),.appRoot .tag,.appRoot #quickSearch button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent-edge)}
.appRoot .sectionHead h2 small,.appRoot #quickSearch button{color:var(--muted);background:var(--surface3)}
.appRoot .team,.appRoot .find{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
.appRoot .find{color:var(--muted)}
.appRoot .team:hover,.appRoot .team:focus-within{background:var(--surface);border-color:var(--accent-edge);box-shadow:0 6px 24px color-mix(in srgb,var(--primary) 10%,transparent)}
.appRoot .unit span,.appRoot .pick span,.appRoot .loadout .more{color:var(--soft-text)}
.appRoot .team .loadout,.appRoot kbd,.appRoot .empty{border-color:var(--line)}
.appRoot .reason,.appRoot a:not(.brand),.appRoot .textBtn{color:var(--accent)}
.appRoot #saved{color:var(--soft-text);border-color:var(--line);background:var(--surface)}
.appRoot #saved svg,.appRoot .star.active{color:var(--star)}
.appRoot input:not([type=checkbox],[type=radio],[type=file]),.appRoot select,.appRoot .phoneInput{
 color:var(--text);background:var(--surface2);border-color:var(--line)
}
.appRoot #filters .find input,.appRoot #guideQuery,.appRoot .phoneInput input{color:var(--text);background:transparent;border:0;box-shadow:none}
.appRoot input::placeholder,.appRoot textarea::placeholder{color:var(--muted);opacity:1}
.appRoot .find:focus-within,.appRoot .phoneInput:focus-within,.appRoot input:not([type=checkbox]):focus{border-color:var(--accent);box-shadow:var(--focus)}
.appRoot dialog{color:var(--text);background:var(--surface);border-color:var(--line);box-shadow:var(--float-shadow)}
[data-theme=light] .appRoot dialog::backdrop{background:#26304c54;backdrop-filter:blur(5px)}
.appRoot .modalHead,.appRoot .thinkRow,.appRoot .phoneInput span{border-color:var(--line)}
.appRoot .pickBar{background:var(--surface)}
.appRoot .pick.active{box-shadow:inset 0 0 0 1px var(--accent-edge)}
.appRoot .authIntro,.appRoot .profileHero{color:var(--text);background:linear-gradient(112deg,var(--accent-soft),var(--tint));border-color:var(--accent-edge)}
.appRoot .authIntro p,.appRoot .profileHero p,.appRoot .migration p,.appRoot .phoneInput span{color:var(--soft-text)}
.appRoot .authSwitch,.appRoot .migration code{background:var(--surface2)}
.appRoot .authSwitch button[aria-pressed=true],.appRoot #getCode{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-edge)}
.appRoot .online{color:var(--ok)}
.appRoot #authFeedback{color:var(--accent)}
.appRoot .feedback{color:var(--warning)}
.appRoot #authFeedback.bad,.appRoot .danger,.appRoot .textBtn.danger{color:var(--error)}
.appRoot input[role=switch]:checked{background:var(--primary)}
.appRoot #toast{color:var(--text);background:var(--surface);border-color:var(--accent-edge);box-shadow:var(--float-shadow)}
.appRoot .dot{background:#14b889}
.appRoot #sync.warn .dot{background:#e99030}
.appRoot .btn:hover:not(:disabled),.appRoot button:hover:not(:disabled),.appRoot a:hover{filter:none}
.appRoot .btn.violet:hover:not(:disabled){background:color-mix(in srgb,var(--primary) 90%,black)}
.appRoot .btn.primary:hover{background:#ffda89}
.appRoot .banner .glass:hover{background:#393250ed}
.appRoot .topRight{gap:11px}
#appearance{position:relative;width:38px;height:38px;border-radius:12px}
#appearance i{position:absolute;width:10px;height:10px;right:2px;bottom:2px;border-radius:50%;background:var(--primary);border:1.5px solid var(--surface)}
#lookPanel{position:fixed;inset:auto;margin:0;width:min(302px,calc(100vw - 24px));padding:18px 19px 20px;border:1px solid var(--line);border-radius:19px;background:var(--surface);color:var(--text);box-shadow:var(--float-shadow)}
.lookModes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:13px}
.lookModes button{display:grid;justify-items:center;gap:6px;font-size:13px;padding:12px 3px 9px;color:var(--muted);background:var(--surface2);border:1px solid var(--line);border-radius:11px}
.lookModes button[aria-pressed=true],.lookModes button:hover{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-edge)}
.lookModes button[aria-pressed=true]{box-shadow:inset 0 0 0 .5px var(--accent);font-weight:650}
.lookLabel{display:flex;justify-content:space-between;font-size:14px;font-weight:600;margin:19px 0 13px}
.lookLabel small{font-size:13px;font-weight:400;color:var(--muted)}
.lookColors{display:flex;align-items:center;justify-content:space-between;padding:0 4px}
.lookColors button{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--swatch);color:white}
.lookColors button svg{visibility:hidden}
.lookColors button[aria-pressed=true]{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--swatch)}
.lookColors button[aria-pressed=true] svg{visibility:visible}
.prefLooks{margin:16px 0;padding:15px 18px;border-radius:14px;border:1px solid var(--line)}
.prefLooks summary{cursor:pointer;font-size:15px}
@media(max-width:1040px){.appRoot .topRight{gap:7px}}
@media(max-width:650px){#appearance{width:34px;height:34px}.appRoot .topRight{gap:5px}}
@media(max-width:400px){.appRoot #sync{padding:4px}.appRoot .topRight{gap:4px}.appRoot #account{padding:0 7px}.appRoot #account>svg{display:none}}
@media(max-width:335px){.appRoot #sync{display:none}.appRoot .brand{gap:4px;letter-spacing:0}}
/* Stable controls over an independently rotating illustration. */
.appRoot .banner{background:var(--art-bg,#28213d);transition:background-color .55s;isolation:isolate;touch-action:pan-y pinch-zoom}
.appRoot .banner:before{display:none}
#artLayers{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none}
#artLayers img{position:absolute;width:max(87%,620px);max-width:none;height:100%;left:71%;top:0;transform:translateX(calc(-1 * var(--fx)));object-position:center var(--fy);opacity:0;transition:opacity .65s ease;object-fit:cover}
#artLayers img.current{opacity:1}
.appRoot .banner:after{background:linear-gradient(90deg,var(--art-bg) 0%,var(--art-bg) 33%,transparent 64%),linear-gradient(0deg,#0e10255c,transparent 40%);pointer-events:none}
#artBar{position:absolute;right:21px;bottom:17px;display:flex;align-items:center;gap:0;padding:3px 5px;border:1px solid #fff4;border-radius:30px;background:#121326ac;color:white;backdrop-filter:blur(12px)}
#artBar button{width:30px;height:30px;display:grid;place-items:center;color:white;padding:0;border-radius:18px}
#artBar button:hover{background:#ffffff24}
#artBar svg{width:16px;height:16px}
#artBar [data-step="-1"] svg{transform:rotate(180deg)}
#artBar .artDot{width:19px}
.artDot:after{content:"";width:6px;height:6px;background:#ffffff91;border-radius:6px}
#artBar .artDot[aria-pressed=true]{width:29px}
.artDot[aria-pressed=true]:after{width:22px;background:#ffda79}
#artBar .featuredHero{width:auto;padding:0 10px;font-size:12px;font-weight:600}
.appRoot #quickSearch button{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);background:var(--surface);padding:4px 12px 4px 4px}
#quickSearch button img{width:26px;height:26px;border-radius:50%}
.appRoot #quickSearch button:hover{border-color:var(--accent-edge);color:var(--accent)}
.teamStats{display:flex;flex-wrap:wrap;gap:7px 16px;font-size:12px;color:var(--muted);margin-top:10px;font-variant-numeric:tabular-nums}
.teamStats b{color:var(--text)}
.appRoot .team .loadout .more{color:var(--accent);font-weight:600}
.appRoot .team .title:hover{color:var(--accent)}
.appRoot .team .star:hover{background:var(--surface3)}
.appRoot #modal.wide{max-height:95dvh}
#modal.wide #modalBody:has(>iframe){padding:8px 14px;min-height:0;display:flex}
#modal.wide #modalBody:has(>.pickBar){display:block}
.guideTools #author{max-width:none}
#modal.wide iframe{height:min(76dvh,820px);min-height:0}
@media(max-width:820px){
 #artLayers img{left:76%;width:620px}
 .appRoot .banner:after{background:linear-gradient(90deg,var(--art-bg) 0%,color-mix(in srgb,var(--art-bg) 88%,transparent) 35%,transparent 75%),linear-gradient(0deg,#10122a73,transparent 40%)}
 #artBar{right:12px;bottom:11px}
}
@media(max-width:680px){
 .appRoot .banner{padding-bottom:63px}
 #artLayers img{left:79%;width:560px}
 .appRoot .banner:after{background:linear-gradient(90deg,var(--art-bg),color-mix(in srgb,var(--art-bg) 82%,transparent) 37%,transparent 78%),linear-gradient(0deg,#10122ae0,transparent 58%)}
 #artBar{left:12px;right:12px;bottom:8px;background:none;border:0;backdrop-filter:none;padding:0}
 #artBar .featuredHero{margin-right:auto;padding-left:5px;text-shadow:0 1px 5px #000}
 #artBar button{height:38px;width:34px}
 #artBar .artDot{width:24px}
 #modal.wide #modalBody:has(>iframe){padding:4px}
 #quickSearch:not([hidden]){flex-wrap:nowrap;overflow:auto;white-space:nowrap;scrollbar-width:thin;padding-bottom:5px}
}
@media(prefers-reduced-motion:reduce){#artLayers img,.appRoot .banner,.storyCover>img{transition:none}}
/* Shared appearance controls and non-interactive, mouse-only stardust. */
#lookPanel{overflow:auto;overscroll-behavior:contain}
.motionModes{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:3px;background:var(--surface2);border:1px solid var(--line);padding:3px;border-radius:12px}
.motionModes button{padding:8px 2px;border-radius:9px;color:var(--muted);font-size:13px}
.motionModes button[aria-pressed=true]{color:white;background:var(--primary);font-weight:600}
.trailChoice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:14px;padding:13px 2px 0;text-align:left;color:var(--text);font-size:14px;font-weight:600;border-top:1px solid var(--line)}
.trailChoice small{display:block;margin-top:3px;font-size:11px;font-weight:400;color:var(--muted)}
.trailChoice>i{flex:none;width:35px;height:20px;padding:3px;background:var(--muted);border-radius:22px}
.trailChoice>i:before{content:'';display:block;height:14px;width:14px;background:white;border-radius:50%}
.trailChoice[aria-checked=true]>i{background:var(--primary)}
.trailChoice[aria-checked=true]>i:before{transform:translateX(15px)}
[data-card-motion=on] .trailChoice>i:before{transition:transform .16s ease}
.cursorDust{position:fixed;inset:0;z-index:2147483646;pointer-events:none!important;overflow:clip;contain:strict;user-select:none}
.cursorDust[hidden],[data-stardust=off] .cursorDust{display:none!important}
.cursorDust>i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;opacity:0;pointer-events:none;background:var(--accent);clip-path:polygon(50% 0,64% 36%,100% 50%,64% 64%,50% 100%,36% 64%,0 50%,36% 36%)}
.cursorDust>i:nth-child(3n){background:#f7b84b}
.cursorDust>i:nth-child(3n+2){width:4px;height:4px;background:#27bfc8;border-radius:50%;clip-path:none}
.cursorDust>i:first-child{width:3px;height:3px;top:-1px;left:-1px;border-radius:50%;clip-path:none;background:var(--accent);box-shadow:0 0 3px 1px #fff9,0 0 7px 2px var(--bright);transition:opacity .18s ease,transform .055s linear}
.cursorDust>i.lit{opacity:.92;transition:transform .055s linear}
