/* Fonts served by the site itself (no Google Fonts: no visitor address goes to Google). Latin and Latin Extended only.
   Barlow, Jura and Quantico are under the SIL Open Font License 1.1 (assets/fonts/OFL.txt). */
/* Barlow 400 italic, latin-ext */
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Barlow 400 italic, latin */
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Barlow 400, latin-ext */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Barlow 400, latin */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Barlow 500, latin-ext */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Barlow 500, latin */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Barlow 600, latin-ext */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Barlow 600, latin */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Jura 400, latin-ext */
@font-face { font-family: "Jura"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jura-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Jura 400, latin */
@font-face { font-family: "Jura"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jura-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Quantico 400, latin */
@font-face { font-family: "Quantico"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/quantico-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Quantico 700, latin */
@font-face { font-family: "Quantico"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/quantico-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root{color-scheme:dark;--prose:"Barlow",system-ui,sans-serif;--side-line:#cf142447;--side-hover:#cf142426;--side-on:#cf142438;--u:min(1px,100cqi/360);--bg:#0b0b0c;--panel:#161617;--line:#2e2e31;--txt:#ececee;--mute:#9a9aa0;--acc:#7c7c84;--red:#cf1424;
--bar-blue:linear-gradient(90deg,#08367a,#19c4ff,#08367a);--bar-red:linear-gradient(90deg,#7d0e0e,#ff5a5a,#7d0e0e);--bar-gold:linear-gradient(90deg,#7a4a08,#ffc400,#7a4a08);--edge-blue:linear-gradient(90deg,#1368ff,#45e6ff,#1368ff);--edge-red:linear-gradient(90deg,#ff2020,#ffb0a8,#ff2020);--edge-gold:linear-gradient(90deg,#ff9d00,#fff06a,#ff9d00)}
*{box-sizing:border-box;margin:0}
/* Text that make-embeds writes for crawlers; app.js replaces it. Shown only if JS has not run after 4 s */
.prerender{visibility:hidden;animation:prerender-show 0s 4s forwards}
@keyframes prerender-show{to{visibility:visible}}
html{scrollbar-gutter:stable}
/* Scrollbars: square red thumb on the dark background, thinner inside panels */
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:var(--bg)}
::-webkit-scrollbar-thumb{background:var(--red);background-clip:padding-box;border:3px solid #0000;min-height:40px}
::-webkit-scrollbar-thumb:hover{background:#ff4d4d;background-clip:padding-box}
::-webkit-scrollbar-thumb:active{background:#8d1111;background-clip:padding-box}
:is(#side,.comp,.desc,.fx)::-webkit-scrollbar{width:8px;height:8px}
:is(#side,.comp,.desc,.fx)::-webkit-scrollbar-track{background:#0000}
:is(#side,.comp,.desc,.fx)::-webkit-scrollbar-thumb{border-width:2px}
/* Firefox has no ::-webkit-scrollbar. Chrome drops those rules if it sees scrollbar-color, so keep this guarded */
@supports not selector(::-webkit-scrollbar){
html{scrollbar-color:var(--red) var(--bg)}
#side,.comp,.desc,.fx{scrollbar-width:thin;scrollbar-color:var(--red) #0000}
}
body{font-family:"Quantico",system-ui,sans-serif;background:var(--bg);color:var(--txt);display:flex;min-height:100vh}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
#side{display:flex;flex-direction:column;width:280px;flex:none;background:#110c0d;border-right:1px solid var(--side-line);padding:24px 14px;position:sticky;top:0;height:100vh;overflow:auto}
.logo{display:flex;flex:none;align-items:center;justify-content:center;gap:10px;font-size:38px;line-height:1;font-weight:800;color:var(--red);padding:0 10px 24px}
.logo img{height:1.3em;width:auto;flex:none;margin:-.15em 0}
.logo .logo-wordmark{width:180px;height:auto;max-width:100%;object-fit:contain;margin:0}
nav a,nav button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;background:none;color:var(--txt);font-family:inherit;font-size:16px;font-weight:700;border-radius:4px;cursor:pointer;text-align:left}
nav a,nav button{transition:background-color .15s}
nav a:hover,nav button:hover{background:var(--side-hover)}
nav a.on{background:var(--side-on);box-shadow:inset 3px 0 0 var(--red);color:#fff}
#side :focus-visible{outline-color:var(--red)}
.ico{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
/* Constructs, Memories, Weapons, Weapon Resonance and C.U.B.s use drawn art instead of a stroke. As a mask, the art keeps the colour of the link, like the icons drawn in index.html.
   Each is an <svg> with a <rect> filled with the link colour, never a background: browsers with a forced dark mode (Samsung Internet, Chrome) darken backgrounds and leave fills alone */
.ico-art{-webkit-mask:var(--art) center/contain no-repeat;mask:var(--art) center/contain no-repeat;fill:currentColor;stroke:none}
.ico-constructs{--art:url(assets-web/icons/constructs.webp?v=3)}
/* Teams */
.ico-teams{--art:url(assets-web/icons/teams.webp?v=2)}
.ico-energy{--art:url(assets-web/icons/energy.webp)}
.ico-effect{--art:url(assets-web/icons/effect.webp)}
.ico-builder{--art:url(assets-web/icons/builder.webp)}
.ico-planner{--art:url(assets-web/icons/planner.webp)}
.ico-timeline{--art:url(assets-web/icons/timeline.webp)}
.ico-updates{--art:url(assets-web/icons/updates.webp)}
.ico-cubs{--art:url(assets-web/icons/cubs.webp?v=2)}
.ico-resonance{--art:url(assets-web/icons/resonance.webp?v=2)}
.ico-classes{--art:url(assets-web/classes/Attacker.webp)}
.ico-memories{--art:url(assets-web/icons/memories.webp?v=2)}
.ico-weapons{--art:url(assets-web/icons/weapons.webp?v=4)}
/* Game modes: the white icons of the game, also used by the Planner */
.ico-warzone{--art:url(assets-web/icons/warzone.webp)}
.ico-ppc{--art:url(assets-web/calculator/mode-ppc.webp)}
.ico-clash{--art:url(assets-web/calculator/mode-clash.webp)}
.ico-nrp{--art:url(assets-web/calculator/mode-nrp.webp?v=2)}
.ico-one-time{--art:url(assets-web/icons/one-time.webp)}
/* Menu icons of the game (atlas/uimain on Huaxu) */
.ico-box{--art:url(assets-web/icons/game/box.webp)}
.ico-book{--art:url(assets-web/icons/game/book.webp?v=2)}
.ico-person{--art:url(assets-web/icons/game/person.webp)}
.ico-events{--art:url(assets-web/icons/events.webp)}
/* gameIcon() in app.js: the same art inline with text */
.gi{display:inline-block;flex:none;width:1.15em;height:1.15em;margin-right:.45em;vertical-align:-.2em;-webkit-mask:var(--art) center/contain no-repeat;mask:var(--art) center/contain no-repeat;fill:currentColor}
.gi-book{--art:url(assets-web/icons/game/book.webp?v=2)}
.gi-chat{--art:url(assets-web/icons/game/chat.webp)}
.gi-people{--art:url(assets-web/icons/game/people.webp)}
.gi-download{--art:url(assets-web/icons/game/download.webp)}
.gi-help{--art:url(assets-web/icons/game/help.webp)}
.gi-refresh{--art:url(assets-web/icons/game/refresh.webp)}
.gi-shuffle{--art:url(assets-web/icons/game/shuffle.webp)}
.gi-cart{--art:url(assets-web/icons/game/cart.webp)}
.gi-like{--art:url(assets-web/icons/game/like.webp)}
.ed-swap .gi{margin:0}
.calc-rc-price:has([data-rc-price]:empty){display:none}
nav button i{margin-left:auto;font-style:normal;transition:transform .2s}
/* Teams, Assets and Game Modes: the name opens the page of the group, the arrow beside it only opens or shuts the list */
.nav-group{position:relative}
nav .nav-head{padding-right:46px}
nav .nav-caret{position:absolute;top:0;right:0;bottom:0;width:42px;padding:0;justify-content:center}
nav .nav-caret i{margin:0}
nav button[aria-expanded=true] i{transform:rotate(180deg)}
#teamsMenu{padding-left:10px}
#teamsMenu .sub{margin:0;padding:9px 12px;font-size:14px;color:#dcdce0}
#teamsMenu .sub[aria-expanded=true] i{transform:rotate(180deg)}
.subList{margin:0 0 6px 12px;border-left:2px solid var(--side-line)}
.subList a{justify-content:flex-start;align-items:center;gap:8px;padding:7px 12px 7px 16px;font-weight:400;font-size:14px;color:#dcdce0;border-radius:0 4px 4px 0}
.subList img{width:22px;height:22px;flex:none;object-fit:contain}
.subEmpty{padding:7px 12px 7px 16px;font-size:13px;color:var(--mute)}
#main{--pad:32px;flex:1;min-width:0;padding:var(--pad);display:flex;flex-direction:column}#main>.page,#main>.site-foot{width:100%}#main>.page{margin-bottom:56px}
/* The box around each page (route() in app.js): centered once the screen is wider than the page. The width follows the
   widest block of the page, so text pages center as a column and a 1920px screen keeps the full width */
.page{max-width:var(--page-w,1800px);margin-inline:auto}
.page[data-page=timeline],.page[data-page=calculator]{--page-w:1640px}
.page:is([data-page=updates],[data-page=credits]){--page-w:900px}
.page:is([data-page=privacy],[data-page=account]){--page-w:760px}
.page:is([data-page=modes],[data-page=one-time]){--page-w:1280px}
/* Notice at the bottom of every page, aligned with the page box */
.site-foot{max-width:1800px;margin:auto auto 0;padding-top:20px;border-top:1px solid var(--line)}
.foot-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 28px}
.foot-logo{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:.04em;color:var(--txt);text-decoration:none}
.foot-logo img{width:36px;height:36px;object-fit:contain}
.foot-links{display:flex;flex-wrap:wrap;gap:8px 24px}
.foot-links a{font-size:14px;color:var(--mute);text-decoration:none}
.foot-links a:hover,.foot-links a:focus-visible{color:var(--txt)}
.site-foot .legal{max-width:none;margin-top:14px;font-size:12px}
@media (max-width:700px){.foot-row{flex-direction:column;align-items:flex-start}.foot-links{gap:8px 18px}}
#menuBtn{display:none}
.wpn-detail:not(:has(img)){grid-template-columns:minmax(0,1fr)}
.wpn-detail>.slot:not(:has(img)){display:none}
@media(hover:none){nav a:hover,nav button:hover{background:none}nav a.on:hover{background:var(--side-on)}}
#sheet{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;background:#000000a6}
#sheet[hidden]{display:none}
.sheet-panel{position:relative;width:100%;max-height:70dvh;overflow-y:auto;padding:18px 16px calc(18px + env(safe-area-inset-bottom));background:var(--panel);border-top:2px solid var(--red);border-radius:4px 4px 0 0}
.sheet-panel h2{padding-right:44px;font-size:17px;font-weight:700}
.sheet-panel p{margin-top:8px;font-family:var(--prose);font-size:15px;line-height:1.55;color:#dcdaf0;white-space:pre-line}
.sheet-close{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;background:none;color:var(--txt);font-size:26px;cursor:pointer}
.sheet-link{display:block;margin-top:14px;padding:12px;background:#d8d8dc;border-radius:4px;color:#0b0b0c;font-size:14px;font-weight:700;text-align:center}
.sheet-link[hidden]{display:none}
h1{font-size:34px;font-weight:800}
.sub{color:var(--mute);margin:6px 0 26px}
/* Prose (page intros, notes, help) uses Barlow, which reads easier than Quantico in long lines; titles, labels and numbers stay in Quantico */
p.sub{max-width:70ch;font-family:var(--prose);font-size:16px;line-height:1.55}
@media(max-width:760px){p.sub{font-size:15px}}
/* The category of a page, small above its title */
.hero{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:12px;height:230px;min-height:230px}
.hero-tx,.hero-art{position:relative;overflow:hidden;background:#101012;border-bottom:2px solid var(--red);clip-path:polygon(0 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%)}
.hero-tx{z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;width:auto;padding:18px 24px 16px}
.hero-art{grid-column:2;transform:translateZ(0);width:auto;height:100%}
.hero-art::before,.hero-art::after{content:"";position:absolute;top:0;bottom:0;z-index:1;width:100px;pointer-events:none}
.hero-art::before{left:0;background:linear-gradient(90deg,#101012,transparent)}
.hero-art::after{right:0;background:linear-gradient(270deg,#101012,transparent)}
.hero-art{touch-action:pan-y;cursor:grab}
.hero-art.dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}
.hero-track{display:flex;width:max-content;height:100%;will-change:transform}
.hero-track a{position:relative;flex:none;width:170px;margin-right:6px;overflow:hidden;clip-path:inset(1px);transform:skewX(-12deg)}
/* Dimmed by a dark layer, not by filter: Firefox draws a filter on these moving, skewed images as a dark box cut off at its own edges */
.hero-track a::after{content:"";position:absolute;inset:0;background:#000;opacity:.3;transition:opacity .25s;pointer-events:none}
.hero-track a:hover::after,.hero-track a:focus-visible::after{opacity:0}
.hero-track img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%;transform:skewX(12deg) scale(1.3);transition:transform .25s}
.hero-track a:hover img,.hero-track a:focus-visible img{transform:skewX(12deg) scale(1.55)}
.hero-name{position:absolute;z-index:1;left:-30px;right:-30px;bottom:0;padding:26px 34px 10px;background:linear-gradient(0deg,#000d,#0000);font-size:12px;font-weight:700;text-align:center;transform:skewX(12deg);opacity:0;transition:opacity .2s}
.hero-track a:hover .hero-name,.hero-track a:focus-visible .hero-name{opacity:1}
.hero-mark{position:relative;display:block;flex:none;width:96px;aspect-ratio:1;margin:0 0 6px;padding:0;border:0;background:none;filter:drop-shadow(0 0 12px #ec384b57);cursor:pointer}
.hero-mark{user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.hero-mark img{display:block;width:100%;height:100%;object-fit:contain;animation:hero-float 5s ease-in-out infinite;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;pointer-events:none}
.hero-mark.pop{animation:hero-pop .45s ease-in-out}
@keyframes hero-pop{50%{transform:scale(.88)}}
@keyframes hero-float{50%{transform:translateY(-7px)}}
.hero-splash{display:-webkit-box;height:calc(6.2em + 4px);flex:none;max-width:560px;margin:-2px -8px;padding:2px 8px;overflow:hidden;color:#e0e0e5;font-family:"Jura",sans-serif;font-size:clamp(12px,1.2vw,15px);font-style:italic;line-height:1.55;text-shadow:0 1px 8px #000;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4}
.hero-splash span{opacity:0;animation:splash-write 50ms ease-out both}
@keyframes splash-write{to{opacity:1}}
/* 6-column grid: rows of 3, and a short last row stretches to fill the width */
.home-grid{display:grid;grid-template-columns:150px repeat(6,minmax(0,1fr));grid-template-rows:repeat(3,auto);grid-auto-flow:column;gap:12px;margin-top:24px}
.home-label{display:flex;align-items:center;font-size:13px;font-weight:700;line-height:1.3;letter-spacing:.1em;text-transform:uppercase;color:#ff4d59}
/* Links under the team grid: neutral on purpose, so the colored energy and effect tiles stay the first thing on the page */
.home-links{display:grid;gap:10px}
.home-links.tools{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-links.data{grid-template-columns:repeat(5,minmax(0,1fr))}
.home-link{display:flex;align-items:center;gap:12px;min-width:0;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:4px;transition:border-color .15s,background-color .15s}
.home-link:hover,.home-link:focus-visible{border-color:var(--red);background:#1c1516}
.home-links.data .home-link{flex-direction:column;gap:8px;text-align:center}
.hl-art{flex:none;display:grid;place-items:center;width:44px;height:44px;color:var(--red)}
.hl-art .ico{width:37px;height:37px;stroke-width:1.25}
.hl-tx{display:grid;gap:2px;min-width:0}
.hl-tx b{font-size:14px;font-weight:700}
.hl-tx small{font-size:12px;line-height:1.35;color:var(--mute)}
.tile-gap{display:grid;place-items:center;min-height:88px;border:1px dashed #ffffff0f;color:#ffffff80;font-size:12px;font-weight:600}
.tile{--cut:14px;position:relative;display:flex;align-items:center;gap:14px;min-height:88px;padding:16px 18px;overflow:hidden;background:linear-gradient(100deg,color-mix(in srgb,var(--c) 20%,transparent),transparent 72%),var(--panel);border-left:3px solid var(--c);clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%);transition:filter .2s,transform .2s}
.tile:hover,.tile:focus-visible{filter:brightness(1.25);transform:translateY(-2px)}
.tile:focus-visible{outline-offset:-3px}
.t-bg{position:absolute;right:-14px;top:50%;width:112px;height:112px;background:var(--c);-webkit-mask:var(--art) center/contain no-repeat;mask:var(--art) center/contain no-repeat;opacity:.14;transform:translateY(-50%) rotate(-10deg);transition:opacity .2s,transform .3s;pointer-events:none}
.tile:hover .t-bg{opacity:.26;transform:translateY(-50%) rotate(-4deg) scale(1.08)}
.t-ic{flex:none;width:40px;height:40px;filter:drop-shadow(0 0 9px var(--c))}
.home-grid .tile{flex-direction:column;justify-content:center;gap:8px;padding:14px 6px;text-align:center}
.home-grid .t-tx b{font-size:15px}
.t-ic img{display:block;width:100%;height:100%;object-fit:contain}
.t-tx{position:relative;display:grid;gap:3px;min-width:0}
.t-tx b{font-size:17px;font-weight:700}
.t-tx small{font-size:12px;color:color-mix(in srgb,var(--c) 55%,#fff)}
.t-new{position:absolute;top:6px;right:6px;padding:2px 9px 2px 7px;background:var(--red);color:#fff;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.06em;text-transform:uppercase;clip-path:polygon(0 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%)}
.tile.none{background:linear-gradient(100deg,color-mix(in srgb,var(--c) 7%,transparent),transparent 72%),var(--panel);border-left-color:color-mix(in srgb,var(--c) 45%,#333)}
.tile.none .t-ic{filter:none;opacity:.7}
.tile.none b{color:#c9c9ce}
.tile.none small{color:var(--mute)}
h2.grp{display:flex;align-items:center;gap:12px;font-size:14px;margin:30px 0 14px;color:#ff4d59;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
h2.grp::after{content:"";flex:1;height:1px;background:var(--line)}
.picker{max-width:1100px;display:grid;gap:10px;margin-bottom:22px}
.bsearch{display:flex;align-items:center;gap:10px;padding:0 14px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.bsearch:focus-within{border-color:#8a8a92}
.bsearch input{flex:1;min-width:0;height:44px;background:none;border:0;outline:0;color:var(--txt);font:14px "Quantico"}
.bsearch input::placeholder{color:var(--mute)}
.blist{display:grid;gap:6px}
/* Sort, Posted since and the search, above a list of builds */
.bfilters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.bfilter{display:grid;gap:4px;min-width:0}
.bfilter>span:first-child{font:700 10px "Quantico";letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.bfilter select{height:46px;min-width:150px;padding:0 10px;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 14px "Quantico";color-scheme:dark;cursor:pointer}
.bfilter select:hover,.bfilter select:focus{border-color:#8a8a92;outline:0}
.bfilter-search{flex:1 1 240px}
@media(max-width:560px){.bfilter:not(.bfilter-search){flex:1 1 140px}.bfilter select{width:100%;min-width:0;font-size:16px}}
/* Author page title: the space the stats line under it used to leave */
.user-head{margin-bottom:22px}
/* Tabs that split a list of builds by team page (author pages): uppercase labels, the open one underlined, as on overframe.gg */
.ltabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin-top:6px;border-bottom:1px solid var(--line)}
.ltabs button{flex:none;display:flex;align-items:center;gap:8px;padding:10px 16px 12px;background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;color:var(--mute);font:700 14px "Quantico";letter-spacing:.04em;text-transform:uppercase;cursor:pointer;transition:color .15s,border-color .15s}
.ltabs button:hover,.ltabs button:focus-visible{color:var(--txt);outline:0}
.ltabs button.on{color:var(--txt);border-bottom-color:var(--red)}
.ltabs .chip-icon,.ltabs .chip-icon img{width:20px;height:20px}
.ltabs button:not(.on) .chip-icon{opacity:.6}
/* Too many tabs for one row: icons only (fitListTabs in app.js) */
.ltabs.icons .ltab-name{display:none}
.ltabs.icons button{padding:10px 12px 12px}
.ltabs.icons .chip-icon,.ltabs.icons .chip-icon img{width:24px;height:24px}
/* "Characters on this page", below the build list */
.page-chars{max-width:1100px}
.page-chars-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.page-chars-list a{display:grid;gap:6px;justify-items:center;padding:8px 6px;background:var(--panel);border:1px solid var(--line);border-radius:4px;font-size:11px;font-weight:600;line-height:1.25;text-align:center;color:var(--txt)}
.page-chars-list a:hover{border-color:#5a5a62;background:rgba(255,255,255,.06)}
.page-chars-list .slot{width:56px;height:56px;border-radius:4px}
.brow{position:relative;display:flex;align-items:stretch;gap:14px;width:100%;padding:0 14px 0 0;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:inherit;text-align:left;cursor:pointer;overflow:hidden}
.brow[hidden]{display:none}
.brow:hover{border-color:#5a5a62;background:rgba(255,255,255,.06)}
/* The hover mark on the left edge sits above the portrait, so the portrait can fill the row up to the border */
.brow::before{content:"";position:absolute;z-index:1;inset:0 auto 0 0;width:3px;background:#d8d8dc;opacity:0;transition:opacity .15s}
.brow:hover::before{opacity:1}
.brow:focus-visible{outline:2px solid #d8d8dc;outline-offset:2px}
.build-tags{margin:10px 0 18px}
/* A community team's guide, below its cards: Guide and Comments tabs over one panel (guideHtml in app.js). Videos are buttons until played */
/* The site's own look: the red top edge of the Team Builder panels, pill tabs on a dark strip, headings marked by a red bar */
/* Team Effects: the box under the cards of a team (team pages and Team Builder), teamEffectsHtml() in editor.js */
.team-fx{margin:28px 0 0;max-width:1100px;padding:14px 18px 18px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--c1,var(--red))}
.team-fx-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.team-fx-head h2{font:700 20px "Quantico";color:#fff}
.fx-legend{display:flex;flex-wrap:wrap;gap:6px}
.team-fx-sub{margin:4px 0 14px;font:13px var(--prose);color:var(--mute)}
.fx-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fx-people{grid-column:1/-1}
.fx-part{min-width:0;padding:10px 12px 12px;background:var(--bg);border:1px solid var(--line);border-radius:4px}
.fx-part h3{margin-bottom:8px;font:700 13px "Quantico";color:#fff;letter-spacing:.1em;text-transform:uppercase}
.fx-enemy h3{color:#ff8a8a}
.fx-part .empty{font-size:13px}
.fx-stats{display:grid;gap:4px;padding:0;list-style:none}
.fx-stat-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;padding:5px 8px;border:1px solid var(--line);border-radius:4px;background:var(--panel)}
.fx-stat-row.fx-draft{border-style:dashed}
.fx-stat{font:600 13px var(--prose);color:var(--txt)}
.fx-stat small{color:var(--mute);font-size:11px}
.fx-vals{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.fx-max{margin-left:3px;font-size:10px;opacity:.8}
.fx-v{display:inline-block;min-width:44px;padding:2px 8px;border:1px solid;border-radius:4px;font:700 12px "Quantico";text-align:center;cursor:default}
.fx-passive{color:#8fd3ff;border-color:#8fd3ff66;background:#8fd3ff14}
.fx-active{color:#ffb35a;border-color:#ffb35a66;background:#ffb35a14}

.fx-char-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fx-char{min-width:0;padding:8px;border:1px solid var(--line);border-top:3px solid var(--slot,#5a5a62);border-radius:4px}
.fx-char.ed-blue{--slot:#19c4ff}.fx-char.ed-red{--slot:#ff5a5a}.fx-char.ed-gold{--slot:#ffc400}
.fx-char-name{display:flex;align-items:center;gap:8px;margin-bottom:8px;font:700 13px "Quantico";color:#fff;overflow-wrap:anywhere}
.fx-char-name img{width:28px;height:28px;border-radius:50%;object-fit:cover;border:2px solid var(--slot,#5a5a62)}
@media (max-width:900px){.fx-parts,.fx-char-grid{grid-template-columns:minmax(0,1fr)}}
.guide-box{margin:36px 0 0;max-width:1100px}
.guide-tabs{display:flex;gap:6px;padding:8px;background:var(--bg);border:1px solid var(--line);border-top:3px solid var(--red);border-bottom:0}
.guide-tab{min-height:34px;padding:0 16px;background:transparent;border:1px solid var(--line);border-radius:4px;color:var(--mute);font:600 13px "Quantico";cursor:pointer}
.guide-tab:hover{border-color:#fff;color:#fff}
.guide-tab.on{background:#cf142433;border-color:var(--red);color:#fff}
.guide-panel{padding:20px 24px 24px;background:var(--panel);border:1px solid var(--line)}
.guide-eyebrow{margin:0 0 2px;color:var(--red);font:700 11px "Quantico";letter-spacing:.14em;text-transform:uppercase}
.guide-title{margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line);font:700 26px "Quantico";color:#fff;overflow-wrap:anywhere}
.guide-body{font:15px/1.6 var(--prose);color:var(--txt);overflow-wrap:anywhere}
.guide-body>*{margin:0 0 14px}
.guide-body>:last-child{margin-bottom:0}
.guide-body h3{margin-top:24px;padding-left:10px;border-left:3px solid var(--red);font:700 20px/1.2 "Quantico";color:#fff}
.guide-body h4{margin-top:18px;font:700 16px "Quantico";color:#ff6b75}
.guide-body :is(ul,ol){padding-left:22px}
.guide-body li+li{margin-top:4px}
.guide-body li::marker{color:var(--red)}
.guide-body blockquote{padding:8px 12px;background:var(--bg);border:1px solid var(--line);border-left:3px solid var(--red);border-radius:0 4px 4px 0;color:#c9c9ce}
.guide-body code{padding:1px 5px;background:var(--bg);border:1px solid var(--line);border-radius:3px;font:13px ui-monospace,Consolas,monospace}
.guide-body hr{border:0;border-top:1px solid var(--line)}
.guide-comments .comments{margin:0;max-width:none}
.guide-comments .comments>h2{display:none}
.yt-box{position:relative;width:100%;max-width:494px;aspect-ratio:16/9;background:#000;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.yt-facade{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:8px;width:100%;padding:16px;background:radial-gradient(circle at 50% 45%,#1d1d20,#050506 75%);border:0;color:var(--txt);cursor:pointer;text-align:center}
.yt-thumb{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;opacity:.55}
.yt-facade{isolation:isolate}
.yt-facade b{font:700 16px "Quantico"}
.yt-facade small{font-size:12px;color:var(--mute)}
.yt-play{width:68px;height:48px}
.yt-play path{fill:#212121;fill-opacity:.85;transition:fill .15s,fill-opacity .15s}
.yt-play .yt-arrow{fill:#fff;fill-opacity:1}
.yt-facade:is(:hover,:focus-visible) .yt-play path:not(.yt-arrow){fill:var(--red);fill-opacity:1}
.yt-facade:focus-visible{outline:2px solid var(--red);outline-offset:-2px}
.yt-frame{position:absolute;inset:0;width:100%;height:100%;border:0}
.guide-img img{display:block;max-width:100%;max-height:520px;height:auto;background:#000;border:1px solid var(--line);border-radius:4px}
.guide-img-gone{display:inline-block;padding:10px 14px;border:1px dashed var(--line);border-radius:4px;color:var(--mute);font-size:13px}
/* The captain's portrait fills the full height of the row, however tall its text gets, with a line between it and the text */
.brow{min-height:134px}
.brow-art{flex:none;align-self:stretch;width:88px;min-height:76px;background:rgba(0,0,0,.3);border-right:1px solid var(--line)}
.brow-art img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;display:block}
.brow-tx{flex:1 1 0;display:grid;align-content:center;gap:4px;min-width:0;padding:8px 0}
.brow-tx b{font:700 16px "Quantico";overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brow-sub{margin-top:-2px;font-size:13px;color:#c4c4ca;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brow-by{font-size:12px;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brow-tx small{font-size:13px;color:var(--mute)}
.brow-tx em{font-style:normal;color:#c4c4ca}
.brow-tags{display:flex;flex-wrap:wrap;gap:5px}
.brow-tags:empty{display:none}
/* Where a page sits (Teams > Energy > Fire > Vera): arrow-shaped steps, the page background showing between them as a thin chevron */
.crumbs{display:flex;flex-wrap:wrap;row-gap:4px;margin-bottom:14px;font:700 11px "Quantico";letter-spacing:.1em;text-transform:uppercase}
.crumbs>*{--n:9px;max-width:28ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 16px 7px calc(var(--n) + 10px);background:#1f2129;color:#8f94a8;
  clip-path:polygon(0 0,calc(100% - var(--n)) 0,100% 50%,calc(100% - var(--n)) 100%,0 100%,var(--n) 50%)}
.crumbs>*+*{margin-left:-6px}
.crumbs>:first-child{padding-left:12px;border-radius:4px 0 0 4px;clip-path:polygon(0 0,calc(100% - var(--n)) 0,100% 50%,calc(100% - var(--n)) 100%,0 100%)}
.crumbs>:last-child{padding-right:12px;border-radius:0 4px 4px 0;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,var(--n) 50%)}
.crumbs>a:hover{background:#2a2d38;color:var(--txt)}
.crumbs>:last-child:not(:first-child){color:#c6cad8}
/* The author of a team, which opens their page */
.by-user{color:#c4c4ca;cursor:pointer}
.by-user:hover{color:var(--txt);text-decoration:underline}
.brow-tags i{padding:2px 7px;background:rgba(255,255,255,.08);border-radius:3px;font:700 10px "Quantico";font-style:normal;letter-spacing:.06em;text-transform:uppercase;color:#c4c4ca}
.brow-tags i.new{background:var(--red);color:#fff}
/* The first tags of a community team (costTags): its patch number, green for the current patch and turning yellow as it
   gets older (--h, versionHue in app.js), and what it costs in green */
.brow-tags i.tag-ver{background:hsl(var(--h,120) 45% 28%);color:hsl(var(--h,120) 75% 85%)}
.brow-tags i.tag-cost{background:#2f4a2a;color:#cfe8c4;text-transform:none}
/* Fixed widths, so these three line up from row to row; the users' own tags follow at their own width */
.brow-tags i.tag-ver,.brow-tags i.tag-cost{text-align:center}
.brow-tags i.tag-ver{min-width:3.4em}
.brow-tags i.tag-bc{min-width:7.6em}
.brow-tags i.tag-res{min-width:9.1em}
/* A team's page: its patch, Black Cards, Trade Vouchers and weapon resonances as plain text, each with its icon (buildCost) */
.bcost{display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0 16px;font-size:14px;color:var(--txt)}
.bcost-item{display:inline-flex;align-items:center;gap:6px}
.bcost-item img{width:20px;height:20px;object-fit:contain}
.bcost a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.bcost-collab{flex-basis:100%;padding:6px 10px;border-left:3px solid #c9a227;background:#2b2412;color:#f0dca0;font:13px var(--prose)}
/* The two teammates at the right end of a row, so a team can be found by its faces */
.brow-mates{margin-left:auto;align-self:center;padding-left:8px}
@media(max-width:420px){.brow-mates .slot{width:36px;height:36px}}
#tip{position:fixed;z-index:30;max-width:340px;padding:6px 10px;background:#000000f0;border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 12px "Quantico";pointer-events:none}
#tip b{display:block}
#tip p{margin-top:4px;font-weight:400;line-height:1.45;color:#dcdaf0;white-space:pre-line}
#tip p>span,#sheet p>span{display:block}
#tip p>span+span,#sheet p>span+span{margin-top:.9em}
#tip p>.on,#sheet p>.on{color:#fff;font-weight:700;padding-left:8px;border-left:3px solid var(--red);background:#cf142426}
#tip p>.on::before,#sheet p>.on::before{content:"ACTIVE · ";color:#ffd34d;font-size:.85em;letter-spacing:.06em}
.notice{display:flex;align-items:center;margin:calc(-1*var(--pad)) calc(-1*var(--pad)) 20px;padding:8px 14px;background:#eecf22;border-bottom:2px solid #a8901a;color:#1c1602;font-family:var(--prose);font-size:15px;font-weight:500;line-height:1.4}
.slot.named{padding:3px;color:#dcdaf0;font-size:10px;line-height:1.2;text-align:center}
.mem .slot.named{padding:2px 0 0 3px;font-size:8px;writing-mode:vertical-rl;place-items:end start}
.mem .slot.named .n{padding-left:3px;background:none;clip-path:none;writing-mode:horizontal-tb}
/* Cards share the width of the panel. --u is 1px on a card of 360px or more and shrinks with narrower cards, so all of its fixed sizes shrink together */
.comp{display:flex;align-items:stretch;padding:15px 0;view-transition-name:comp}
.comp-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px}
.tool{padding:8px 14px;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 13px "Quantico";cursor:pointer}
.tool:hover{background:#4a4a4f}
.tool:disabled{opacity:.6;cursor:wait}
::view-transition-group(root),::view-transition-old(root),::view-transition-new(root){animation-duration:.45s}
::view-transition-old(comp){animation:comp-out .45s ease both}
::view-transition-new(comp){animation:comp-in .45s ease both}
@keyframes comp-out{to{opacity:0;transform:translateY(48px)}}
@keyframes comp-in{from{opacity:0;transform:translateY(-48px)}}
/* The menu gets its own layer so the sliding cards pass under it instead of over it. It shows the new state at once, without fading */
#side{view-transition-name:side}
::view-transition-group(side){z-index:1;animation:none}
::view-transition-old(side){display:none}
::view-transition-new(side){animation:none}
.card{container-type:inline-size;flex:1 1 0;min-width:0;position:relative;background:var(--cp);border:1px solid #ffffff14}
.cin{padding:calc(18*var(--u)) calc(14*var(--u)) calc(26*var(--u))}
/* The bars sit outside the card, touching its border. Each one is two layers, so its edge also follows the ramps: the bar shows through as the edge, and ::before is the fill */
.bar{position:absolute;left:-1px;right:-1px;height:calc(15*var(--u))}
.bar::before{content:"";position:absolute;inset:2px}
.bar-top{bottom:calc(100% + 1px)}.bar-bot{top:calc(100% + 1px)}
.c-blue .bar{background:var(--edge-blue)}.c-red .bar{background:var(--edge-red)}.c-gold .bar{background:var(--edge-gold)}
.c-blue .bar::before{background:var(--bar-blue)}.c-red .bar::before{background:var(--bar-red)}.c-gold .bar::before{background:var(--bar-gold)}
/* The outer ends of the team's bars flare out into the panel's margin */
.comp .c-blue .bar{left:calc(-16*var(--u) - 1px);right:0}
.comp .c-blue .bar-top{clip-path:polygon(0 0,100% 0,100% 100%,calc(16*var(--u)) 100%)}
.comp .c-blue .bar-bot{clip-path:polygon(calc(16*var(--u)) 0,100% 0,100% 100%,0 100%)}
.comp .c-blue .bar-top::before{clip-path:polygon(3px 0,100% 0,100% 100%,calc(12*var(--u) + 3px) 100%)}
.comp .c-blue .bar-bot::before{clip-path:polygon(calc(12*var(--u) + 3px) 0,100% 0,100% 100%,3px 100%)}
.comp .c-gold .bar{right:calc(-16*var(--u) - 1px)}
.comp .c-gold .bar-top{clip-path:polygon(0 0,100% 0,calc(100% - 16*var(--u)) 100%,0 100%)}
.comp .c-gold .bar-bot{clip-path:polygon(0 0,calc(100% - 16*var(--u)) 0,100% 100%,0 100%)}
.comp .c-gold .bar-top::before{clip-path:polygon(0 0,calc(100% - 3px) 0,calc(100% - 12*var(--u) - 3px) 100%,0 100%)}
.comp .c-gold .bar-bot::before{clip-path:polygon(0 0,calc(100% - 12*var(--u) - 3px) 0,calc(100% - 3px) 100%,0 100%)}
/* Card widths have fractions of a pixel: the red bar covers the seam, so the blue one can never round into it */
.comp .c-red .bar{left:-2px}
.comp .c-red{border-color:#0000}
.card h3{text-align:center;font-size:calc(20*var(--u));font-weight:600;margin-bottom:calc(10*var(--u))}
.card h3 a:hover{text-decoration:underline}
.top{display:grid;grid-template-columns:1fr auto 1fr;gap:calc(14*var(--u));align-items:center;margin-bottom:calc(16*var(--u))}
.sym{width:100%;max-width:calc(60*var(--u));aspect-ratio:1;justify-self:center}
.portrait{width:calc(112*var(--u));height:calc(112*var(--u));border:1px solid #ffffff55}
.rank{width:100%;max-width:calc(80*var(--u));justify-self:center}
/* "Leap" badge at the foot of the portrait: the character plays with their Leap Skills (a switch in the Team Builder) */
.leap{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:inline-flex;align-items:center;gap:.45em;padding:.2em .7em .2em .6em;background:linear-gradient(#ffc93c,#f29a12);color:#2a1400;font:700 calc(11*var(--u))/1.2 "Quantico",sans-serif;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;box-shadow:0 0 0 1px #0f0f10}
.leap::before{content:"";width:.55em;height:.55em;background:currentColor;transform:rotate(45deg)}
.rank img{display:block;width:100%;height:auto;filter:drop-shadow(0 1px 2px #0009)}
.sym:has(img){background:none;border:0}
.sym img,.wp img{object-fit:contain}
.box{background:#ffffff0d;padding:calc(10*var(--u));margin-bottom:calc(12*var(--u));display:flex;gap:calc(10*var(--u))}
/* Memories are always a 3x2 grid: beside the weapon and the matrix, and above them on small screens */
.mem{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;gap:calc(5*var(--u));flex:1.2 1 0;min-width:0;padding:calc(6*var(--u));border:1px solid #ffffff30;background-image:linear-gradient(135deg,transparent 77%,#ffffff24 77%,#ffffff14 100%);background-clip:padding-box}
.mem .slot{aspect-ratio:5/7;border:2px solid #000}
.mem img,.mt-art img{transform:scale(1.07)}
:is(.mem,.mt-art) img[data-full$=".webp"]{transform:scale(1.34)}
.wp{display:grid;gap:calc(6*var(--u));width:24%}
.wp .slot{aspect-ratio:1}
.wp .slot:last-child{aspect-ratio:3/2;container-type:inline-size}
.mxw{flex:1;min-width:0;display:grid;grid-template-rows:auto 1fr;gap:calc(10*var(--u))}
.mx{display:grid;grid-template-columns:repeat(3,1fr);gap:calc(8*var(--u))}
.mx .slot,.kit .cell .slot{aspect-ratio:1}
.cell{display:grid;gap:2px;min-width:0;text-align:center;font-size:calc(11*var(--u));font-weight:700}
.res{display:grid;grid-auto-flow:column;grid-template-rows:auto auto auto;grid-template-columns:1fr 1fr;align-content:center;justify-items:center;gap:2px 4px;padding:calc(4*var(--u));background:#0000002b;font-size:calc(12*var(--u));font-weight:700}
.res .slot{width:100%;max-width:calc(58*var(--u));aspect-ratio:1;background:#00000033;border:0}
.res img{object-fit:contain}
.res-name{max-width:100%;min-height:2.3em;font-size:calc(11*var(--u));font-weight:600;line-height:1.15;color:#d8e2ea;text-align:center;overflow-wrap:normal;word-break:normal;hyphens:none}
.ed-live .res-name{display:none}
.kit{display:grid;grid-template-columns:1.2fr repeat(6,1fr);gap:calc(9*var(--u))}
.slot{position:relative;display:grid;place-items:center;background:#0000004b;border:1px solid #ffffff30;color:#ffffff80;font-size:11px;overflow:hidden}
.slot img{width:100%;height:100%;object-fit:cover;display:block}
.wp .slot,.mx .slot,.kit .slot{background-image:linear-gradient(135deg,transparent 71%,#ffffff1f 71%,#ffffff0f 100%);background-clip:padding-box}
.slot .stars{position:absolute;left:0;bottom:0;height:auto;transform:none}
/* Uniframe memories are cut-out art: no box around them, only the icon (the border stays transparent so the size does not change) */
.slot:has(>img[data-full*="/memories/uniframe/"]){background:none;border-color:transparent}
.wh-bar{position:absolute;top:0;left:0;right:0;line-height:0}
.slot .wh-bar img{height:auto}
/* Starts after the stripes on the left of the bar */
.wh-bar b{position:absolute;inset:0 0 0 20.5%;display:grid;place-items:center;color:#fff;font:700 8cqw/1 "Quantico";white-space:nowrap}
.slot .n{position:absolute;right:0;bottom:0;padding:1px 3px 0 8px;background:#000000b3;clip-path:polygon(8px 0,100% 0,100% 100%,0 100%);color:#fff;font-size:max(8px,calc(10*var(--u)));font-weight:700}
.desc{text-align:justify;font-size:calc(13*var(--u));line-height:1.5;color:#dcdaf0;background:#ffffff0d;padding:calc(12*var(--u));height:calc(240*var(--u));overflow-y:auto}
p.desc{white-space:pre-line;text-align:left}
.md-notes{text-align:left;overflow-wrap:anywhere}
.md-notes>*{margin:0 0 .6em}
.md-notes>:last-child{margin-bottom:0}
.md-notes :is(h3,h4){font:700 1.1em "Quantico";color:#ff6b75}
.md-notes :is(ul,ol){padding-left:1.5em}
.md-notes li::marker{color:var(--red)}
.md-notes blockquote{padding:.3em .7em;border-left:3px solid var(--red);background:#00000033;color:#c9c9ce}
.md-notes code{padding:0 4px;background:#00000040;border-radius:3px;font:.92em ui-monospace,Consolas,monospace}
.md-notes hr{border:0;border-top:1px solid #ffffff26}
/* Notes and Rotation tabs of a card: together they take the height of the text box, so all the cards stay level */
.note-tabs{display:flex;gap:calc(4*var(--u));height:calc(30*var(--u))}
.note-tabs button{flex:1;padding:0;background:#ffffff0d;border:0;border-bottom:2px solid #0000;color:#dcdaf0;font:600 calc(12*var(--u)) "Quantico";cursor:pointer}
.note-tabs button:hover{background:#ffffff1f}
.note-tabs button.on{border-color:var(--c1);color:#fff}
.notes .desc{height:calc(210*var(--u))}
.rotation{text-align:left}
.rotation h4{margin:calc(10*var(--u)) 0 calc(4*var(--u));color:var(--c1);font-size:calc(13*var(--u))}
.rotation ol{margin:0;padding:0;list-style:none;counter-reset:step}
.rotation li{display:grid;grid-template-columns:calc(18*var(--u)) 1fr;column-gap:calc(4*var(--u));margin-bottom:calc(3*var(--u));counter-increment:step}
.rotation li::before{content:counter(step) ".";grid-row:1/span 2}
/* The icon has its own column, so the text of every step starts at the same place */
.rot-line{grid-column:2;display:grid;grid-template-columns:calc(20*var(--u)) 1fr;column-gap:calc(6*var(--u));align-items:start}
.rot-line img{width:calc(20*var(--u));height:calc(20*var(--u));object-fit:contain}
.rot-line span{grid-column:2}
.rot-order,.rot-note,.rot-source{font-size:calc(12*var(--u));color:#b9b7cc}
.rot-note{margin-top:calc(4*var(--u))}
.rot-source{display:block;margin-top:calc(10*var(--u));text-decoration:underline}
.tags{position:absolute;left:0;right:0;bottom:-1px;display:flex;justify-content:center;gap:4px;z-index:2}
.tag{position:relative;isolation:isolate;font:800 calc(12*var(--u))/1 "Quantico";letter-spacing:.16em;padding:calc(6*var(--u)) calc(28*var(--u));text-shadow:1px 1px 0 #0009,-1px 1px 0 #0009,1px -1px 0 #0009,-1px -1px 0 #0009;clip-path:polygon(calc(12*var(--u)) 0,calc(100% - 12*var(--u)) 0,100% 100%,0 100%)}
.tag::before{content:"";position:absolute;inset:2px;z-index:-1;clip-path:polygon(calc(11*var(--u)) 0,calc(100% - 11*var(--u)) 0,calc(100% - 1px) 100%,1px 100%)}
.tag.starter{background:#b4b4b9;color:#fff}.tag.starter::before{background:linear-gradient(#4b4b50,#2b2b2f)}
.tag.captain{background:#24dc64;color:#dcffe7}.tag.captain::before{background:linear-gradient(#0f8a3c,#0a5a28)}
.comp .card{cursor:pointer;transition:transform .2s,filter .2s,opacity .18s}
.comp .card:hover{transform:translateY(-4px);filter:brightness(1.06)}
.comp .card:active{transform:translateY(-1px) scale(.985);transition-duration:.08s}
/* Faded, not hidden at once: the enlarged card has no text box, so the one on the page leaves softly */
.comp.focused .card{opacity:0}
html.locked{overflow:hidden}
.stage{position:fixed;inset:0;z-index:20;overflow:hidden}
/* The blur stays fixed and only this layer fades: animating the blur itself drops frames */
.stage::before{content:"";position:absolute;inset:0;background:#050608d9;backdrop-filter:blur(6px);opacity:0;transition:opacity .4s}
.stage.open::before{opacity:1}
.stage.closing{pointer-events:none}
.stage.closing::before{transition-duration:.36s}
.fcard{position:absolute;left:50%;top:50%;flex:none;z-index:3;will-change:transform;transition:transform .5s cubic-bezier(.2,.85,.25,1.03),filter .4s,box-shadow .5s}
.stage.closing .fcard{transition:transform .36s cubic-bezier(.4,0,.2,1),filter .36s}
.stage.open .fcard.side{transition-delay:.05s}
.fcard .desc:empty{display:none}
/* The text box leaves the card and opens beside it, only on the card in the center */
.fcard.extended :is(.notes,.cin>.desc){--u:var(--panel-u);position:absolute;left:100%;top:-1px;bottom:-1px;width:var(--panel);height:auto;padding:calc(16*var(--u));background:var(--cp);border:1px solid #ffffff14;opacity:0;visibility:hidden;transform:translateX(-28px);transition:opacity .12s,visibility .12s,transform .12s}
.fcard.extended .notes{display:flex;flex-direction:column;gap:calc(8*var(--u))}
.fcard.extended .notes .desc{flex:1;height:auto;min-height:0}
.stage.open .fcard.extended:not(.side) :is(.notes,.cin>.desc){opacity:1;visibility:visible;transform:none;transition:opacity .3s .16s,visibility 0s .16s,transform .4s .16s cubic-bezier(.2,.85,.25,1)}
/* A keyframe and not a transition: the card has only just been created, so a transition here never starts */
.stage.open .fcard.extended:not(.side) .bar{right:calc(-1px - var(--panel));animation:bar-open .4s .16s cubic-bezier(.2,.85,.25,1) backwards}
@keyframes bar-open{from{right:-1px}}
/* Under the close button, to stay off the panel on smaller screens */
.stage:has(.extended) .export{top:68px;right:16px}
.stage:not(.open):not(.closing) .fcard{transition:none}
.stage.open .fcard:not(.side){box-shadow:0 24px 80px #000c}
.fcard.side{z-index:1;cursor:pointer;filter:brightness(.5) saturate(.7)}
.fcard.side:hover,.fcard.side:focus-visible{filter:brightness(.85)}
.ctl{position:absolute;z-index:4;width:44px;height:44px;display:grid;place-items:center;padding:0;background:#000000a6;border:1px solid #ffffff40;border-radius:50%;color:#fff;font:700 24px/1 "Quantico",sans-serif;cursor:pointer;opacity:0;transition:opacity .3s,background-color .2s}
.stage.open .ctl{opacity:1}
.ctl:hover{background:#ffffff33}
.close{top:16px;right:16px}
.ctl.export{top:16px;right:70px;width:auto;padding:0 16px;border-radius:4px;font-size:14px}
.ctl.export:disabled{cursor:wait}
.prev,.next{top:50%;margin-top:-22px}
.prev{left:16px}.next{right:16px}
.assets{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:start}
.atabs{display:grid;gap:6px;position:sticky;top:20px}
.atabs a{padding:9px 14px;background:var(--panel);border:1px solid var(--line);border-radius:4px;font-size:14px;font-weight:600}
.atabs a{display:flex;align-items:center;gap:8px}
.atabs a .chip-icon{width:22px;height:22px}.atabs a .chip-icon img{width:22px;height:22px}
.atabs a.on .chip-icon img{filter:invert(1)}
.sortbar.star-filter{flex-wrap:wrap}
.sortbar.star-filter .tool{min-width:64px;padding:6px 14px;font-size:13px}
.star-filter .tool .star{margin-left:3px;color:var(--s,#ffc400);font-weight:400}
.star-filter .star.s2{--s:#70b771}.star-filter .star.s3{--s:#0a8ed0}.star-filter .star.s4{--s:#ff68ca}.star-filter .star.s5{--s:#ff8b00}.star-filter .star.s6{--s:#ff5719}
.star-filter .tool.on .star{filter:brightness(.8) saturate(1.4)}
.star-filter .tool.on{background:#d8d8dc;border-color:#d8d8dc;color:#0b0b0c}
.atabs a:hover{background:#4a4a4f}
.atabs a.on{background:#d8d8dc;border-color:#d8d8dc;color:#0b0b0c}
.mtable{width:100%;table-layout:fixed;border-collapse:collapse;background:var(--panel)}
.mtable th{position:sticky;top:0;z-index:1;width:92px;padding:0;background:#222224;border-bottom:1px solid #5a5a60}
.mtable th:first-child{width:auto}
.mtable th button{position:relative;display:flex;align-items:center;justify-content:flex-end;width:100%;min-height:44px;padding:0 14px;border:0;background:none;color:var(--txt);font:700 13px "Quantico";cursor:pointer}
.mtable th:first-child button{justify-content:flex-start}
.mtable th button:hover{background:#4a4a4f}
.mtable th button:focus-visible{outline-offset:-2px}
.mtable th button i{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:10px;font-size:10px;font-style:normal;text-align:center;line-height:1}
.mtable tbody tr{position:relative;border-bottom:1px solid var(--line)}
.mtable tbody tr:hover{background:#222224;box-shadow:inset 3px 0 0 var(--red)}
.mtable{border:1px solid var(--line)}
.mtable td{padding:6px 14px;font-size:15px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.mtable td:first-child{padding-left:10px;text-align:left}
.mt-name{display:flex;align-items:center;gap:12px;min-width:0}
.mt-name>div:last-child{min-width:0}
.mtable th.txt,.mtable td.txt{width:150px;text-align:left}
.mtable th.txt:not(:has(button)){padding:0 14px;font:700 13px "Quantico"}
.mtable th.txt button{justify-content:flex-start}
.mtable th.txt button i{position:static;transform:none;margin-left:6px}
.mtable th.rel,.mtable td.rel{width:190px}
.mtable td.txt{font-size:14px;font-weight:600}
.mtable td a{position:relative;z-index:1;text-decoration:underline}
.mt-name .mob{display:none}
.mt-art{flex:none;width:50px}
.mt-art .slot{aspect-ratio:5/7;border:2px solid #000}
.mt-art.wpn-art,.mt-art.cub-art{width:84px}
@media(max-width:560px){.mt-art.wpn-art,.mt-art.cub-art{width:64px}}
/* Same border as the icons of the Weapon Resonance page */
.mt-art:is(.wpn-art,.cub-art) .slot{border:1px solid #ffffff30}
.mt-art.wpn-art .slot{aspect-ratio:1}
.mt-art.wpn-art img{transform:none;object-fit:contain}
.mt-art.wpn-art .stars{height:auto}
.mt-art.cub-art .slot{aspect-ratio:5/6}
.mt-art.cub-art img{transform:none}
.sortbar{display:flex;align-items:center;gap:10px;margin-bottom:10px;padding:8px 14px;background:var(--panel);border:1px solid var(--line);border-radius:4px;font-size:13px;color:var(--mute)}
.sortbar span{font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.sortbar .tool{flex:0 0 auto;padding:5px 12px;font-size:12px}
.sortbar .tool i{display:inline-block;min-width:1em;margin-left:5px;font-size:10px;font-style:normal;opacity:.7}
.tool.on{background:#d8d8dc;border-color:#d8d8dc;color:#0b0b0c}
.tool.on:hover{background:#d8d8dc}
.filters{display:grid;margin-bottom:22px;background:var(--panel);border:1px solid var(--line);border-radius:4px;overflow:hidden}
.filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:6px}
.filter-bar .tool{margin-bottom:0}
/* The filters start closed behind this button on every screen, so the constructs show first */
.filters:not(.open){display:none}
.filter-toggle{display:block;padding:8px 14px;background:#1c1c1e;border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 13px "Quantico"}
.filter-toggle:hover{background:#2a2a2e;border-color:#5a5a62}
.filter-toggle[aria-expanded="true"]{background:#2a2a2e;border-color:var(--red);color:var(--red)}
.filter-bar .tool[data-empty]{opacity:0;pointer-events:none;user-select:none}
.filter{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:12px;padding:10px 14px}
.filter+.filter{border-top:1px solid var(--line)}
.filter>span{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.filter-bar-tools{display:flex;flex-wrap:wrap;gap:7px}
.tool.chip{--c:#0000;border-left:3px solid var(--c);display:inline-flex;align-items:center;gap:7px;padding:6px 11px 6px 12px;font-size:12.5px;border-radius:4px;border:1px solid var(--line);background:var(--panel);color:var(--txt);font:600 12px "Quantico"}
.tool.chip:hover{background:#222224;border-color:#5a5a62}
.tool.chip.on{background:#26262a;border-color:#d8d8dc;color:#fff}
.tool.chip.on[style*="--c"]{background:color-mix(in srgb, var(--c) 22%, #000);border-color:var(--c);color:#fff}
.tool.chip.on[style*="--c"]:hover{background:color-mix(in srgb, var(--c) 30%, #000)}
.chip-n{margin-left:2px;padding:0 6px;background:#ffffff14;border-radius:4px;font-size:10.5px;font-weight:600;color:var(--mute)}
.tool.chip.on .chip-n{background:#ffffff26;color:#fff}
.chip-icon{display:grid;place-items:center;width:24px;height:24px;flex:0 0 auto}
.chip-icon img{width:24px;height:24px;object-fit:contain}
.chip-icon b{font-size:18px;line-height:1}
.mt-name a{display:block;overflow-wrap:anywhere}
.mt-name small a{display:inline;position:relative;z-index:1;text-decoration:underline}
.mt-name small a::after{content:none}
.used{max-width:1000px;margin-top:22px}
.used h2{margin-bottom:10px;font-size:16px;font-weight:700}
.used-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:8px}
.used-list a{display:flex;align-items:center;gap:10px;min-width:0;padding:8px;background:var(--panel);border:1px solid var(--line)}
/* Weapon page: the other weapons of the same type, as icons */
.wpn-kin{display:flex;flex-wrap:wrap;gap:8px}
.wpn-kin a .slot{transition:border-color .2s}
.wpn-kin a:hover .slot{border-color:var(--red)}
.used-list a:hover{background:#222224;border-color:#5a5a60}
.used-list img{flex:none;width:44px;height:44px;object-fit:cover}
.used-list b{display:block;font-size:14px}
.used-list small{display:block;margin-top:2px;font-size:12px;color:var(--mute)}
.site-search{margin-bottom:10px}
#searchBox{width:100%;padding:9px 12px;background:#0b0809;border:1px solid var(--side-line);border-radius:4px;color:var(--txt);font:600 14px "Quantico"}
#searchBox::placeholder{color:var(--mute)}
#searchBox:focus{outline:0;border-color:var(--red)}
#searchResults:not([hidden]){display:grid;gap:2px;margin-top:6px}
nav a.sr{justify-content:flex-start;align-items:center;gap:10px;padding:6px 8px;font-size:14px;font-weight:400}
.sr img,.sr-art{flex:none;width:34px;height:34px;object-fit:cover}
.sr-art{background:#ffffff14}
.sr b{display:block;font-weight:700;line-height:1.2}
.sr small{display:block;margin-top:1px;font-size:11px;color:var(--mute)}
.sr-none{padding:6px 8px;font-size:13px;color:var(--mute)}
#sideNav{display:flex;flex-direction:column;flex:1 0 auto}
.nav-foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--side-line)}
.contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:start;gap:14px;max-width:900px}
.contact-card{padding:20px 22px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
/* Patch History: the Full notes and Summary tabs, above the server tabs */
.ph-views{display:flex;gap:4px;margin:6px 0 14px;border-bottom:1px solid var(--line)}
.ph-views a{margin-bottom:-1px;padding:9px 16px;border-bottom:2px solid #0000;color:var(--mute);font:600 14px "Quantico";text-decoration:none}
.ph-views a:hover{color:#fff}
.ph-views a.on{border-color:var(--red);color:#fff}
/* Patch History, Summary tab (data/roadmap-data.js) */
.hist-tabs{margin:4px 0 14px}
.hist-intro{max-width:900px;margin-bottom:14px;font-family:var(--prose);font-size:15px;line-height:1.6;color:#dcdaf0}
.hist-miles{max-width:900px;margin-bottom:18px;padding:14px 18px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
.hist-miles>summary{cursor:pointer;font:700 13px "Quantico";letter-spacing:.14em;text-transform:uppercase;color:#fff}
.hist-miles ol{display:grid;gap:6px;margin-top:10px;list-style:none}
.hist-miles li{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;font-family:var(--prose);font-size:14px;line-height:1.45;color:#dcdaf0}
.hist-miles time{font-size:12px;color:var(--mute)}
.hist-list{display:grid;gap:14px;max-width:900px}
.hist-patch{padding:16px 20px;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--red)}
.hist-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}
.hist-head time{font-size:12px;color:var(--mute)}
.hist-head h2{font-size:20px;font-weight:800;line-height:1.25}
.hist-tag{padding:1px 8px;border:1px solid var(--red);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.hist-frames{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hist-frame{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 10px 4px 4px;background:#ffffff0d;border:1px solid var(--line);color:#fff;text-decoration:none}
.hist-frame:hover{background:#ffffff1a}
.hist-frame img{width:44px;height:44px;object-fit:cover}
.hist-frame span{font-size:13px;font-weight:700;line-height:1.2}
.hist-frame small{display:block;margin-top:2px;font-size:11px;font-weight:400;color:var(--mute)}
.hist-frame .tl-free{position:static;display:inline-block;margin-left:6px;vertical-align:1px}
.hist-notes{margin-top:10px;padding-left:18px;font-family:var(--prose);font-size:15px;line-height:1.55;color:#dcdaf0}
.hist-notes li{margin:4px 0;overflow-wrap:anywhere}
.hist-notes b{color:#fff}
.hist-notes a{color:#fff;text-decoration:underline}
@media (max-width:760px){.hist-miles li{grid-template-columns:1fr;gap:2px}}
/* Patch History (data/patch-history.js): each patch opens into the embeds of its update note, as in the Discord channel */
.ph-langs{margin:-4px 0 14px}
.ph-list{display:grid;gap:10px;max-width:900px}
.ph-patch{background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--red)}
.ph-patch>summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:14px 20px;cursor:pointer;list-style:none}
.ph-patch>summary::-webkit-details-marker{display:none}
.ph-patch>summary::after{content:"+";font:700 18px "Quantico";color:var(--mute)}
/* The title takes the free space, so the Integrated / Summary only tags line up in one column beside the + */
.ph-patch>summary>h2{margin-right:auto}
.ph-patch[open]>summary::after{content:"−"}
.ph-patch>summary:hover h2{text-decoration:underline}
.ph-patch time{font-size:12px;color:var(--mute);flex:none;width:136px}
@media (max-width:760px){.ph-patch time{width:auto}}
.ph-thumb{flex:none;align-self:center;width:216px;margin-right:4px;border:1px solid var(--line)}
.ph-thumb img{display:block;width:100%;height:auto}
.ph-patch[open] .ph-thumb{display:none}
.ph-banner{display:block;margin-bottom:12px}
.ph-banner img{display:block;width:100%;height:auto;border:1px solid var(--line)}
.ph-patch h2{font-size:19px;font-weight:800;line-height:1.25}
.ph-empty{border-left-color:var(--line)}
.ph-missing{padding:1px 8px;border:1px solid var(--line);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.ph-body{padding:0 20px}
.ph-patch[open] .ph-body{padding-bottom:18px}
.ph-notice,.ph-none{margin-bottom:12px;font-family:var(--prose);font-size:14px;line-height:1.5;color:var(--mute)}
.ph-none a{color:#fff;text-decoration:underline}
.ph-embeds{display:grid;gap:10px}
.ph-embed{min-width:0;padding:12px 16px 14px;background:#ffffff08;border-left:4px solid var(--red);border-radius:4px;font-family:var(--prose);font-size:15px;line-height:1.55;color:#dcdaf0;overflow-wrap:anywhere}
.ph-embed h3{margin-bottom:6px;font:700 15px "Quantico";letter-spacing:.06em;color:#fff}
.ph-embed h4{margin:12px 0 4px;font-size:15px;font-weight:700;color:#fff}
.ph-embed h4:first-child{margin-top:0}
.ph-embed p,.ph-embed ul,.ph-embed blockquote{margin:6px 0}
.ph-embed ul{padding-left:20px}
.ph-embed li{margin:2px 0}
.ph-embed b{color:#fff}
.ph-embed .ph-small{font-size:13px;color:var(--mute)}
.ph-embed a{color:#8ab4ff}
.ph-embed blockquote{padding-left:10px;border-left:3px solid #ffffff33}
.ph-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 18px;margin-top:8px}
.ph-field h4{margin-top:0}
.ph-embeds[lang="zh-CN"] .ph-embed{font-family:var(--prose),"Microsoft YaHei","PingFang SC",sans-serif}
@media (max-width:760px){.ph-thumb{width:144px}.ph-patch>summary{padding:12px 14px}.ph-body{padding:0 12px}.ph-embed{padding:10px 12px 12px}}
.upd-list{display:grid;gap:16px;max-width:900px}
.upd{padding:20px 22px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
.upd a{color:#fff;text-decoration:underline}
.upd-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:12px;color:var(--mute)}
.upd-type{padding:2px 8px;border:1px solid var(--red);font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff}
.upd h2{margin-top:10px;font-size:22px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.upd-sum{margin-top:6px;font-family:var(--prose);font-size:16px;line-height:1.5;color:#dcdaf0}
.upd-post>summary,.upd-sec>summary{cursor:pointer;list-style:none}
.upd-post>summary::-webkit-details-marker,.upd-sec>summary::-webkit-details-marker{display:none}
.upd-post>summary{margin:-20px -22px;padding:20px 22px}
.upd-post[open]>summary{margin-bottom:-10px}
.upd-post>summary:hover .upd-toggle{color:#fff}
.upd-toggle{display:flex;align-items:center;gap:6px;margin-left:auto;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#c4c4ca}
.upd-toggle::before{content:"▸";color:var(--red)}
.upd-post[open] .upd-toggle::before{content:"▾"}
.upd-less,.upd-post[open] .upd-more{display:none}
.upd-post[open] .upd-less{display:inline}
.upd-body{margin-top:10px;font-family:var(--prose);font-size:15px;line-height:1.65;color:#dcdaf0}
.upd-body p{margin:10px 0}
.upd-body b{color:#fff}
.upd-body h4{margin:16px 0 6px;font-family:"Quantico";font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#fff}
.upd-body ul{margin:8px 0 12px;padding-left:22px;list-style:none}
.upd-body li{position:relative;margin:6px 0;overflow-wrap:anywhere}
.upd-body li::before{content:"";position:absolute;left:-16px;top:.7em;width:5px;height:5px;background:var(--red);transform:rotate(45deg)}
.upd-body li ul{margin:6px 0 4px;padding-left:24px}
.upd-body li li{color:#bdbbd0}
.upd-body li li::before{width:4px;height:4px;background:none;border:1px solid var(--mute)}
.upd-body hr{margin:14px 0;border:0;border-top:1px solid var(--line)}
.upd-body code{padding:1px 5px;background:rgba(255,255,255,.08);font-size:13px}
.upd-sec{margin-top:8px;border:1px solid var(--line);background:rgba(255,255,255,.02)}
.upd-sec>summary{display:flex;gap:10px;padding:12px 14px;font-family:"Quantico";font-size:15px;font-weight:700;line-height:1.35;color:#fff}
.upd-sec>summary:hover{background:rgba(255,255,255,.04)}
.upd-sec>summary::before{content:"▸";flex:none;color:var(--red)}
.upd-sec[open]>summary{border-bottom:1px solid var(--line)}
.upd-sec[open]>summary::before{content:"▾"}
.upd-sec-body{padding:2px 16px 12px 36px}
.upd-sec-body>:first-child{margin-top:10px}
.legal{max-width:70ch;margin-top:14px;font-family:var(--prose);font-size:13px;line-height:1.5;color:var(--mute)}
.credits-page{display:flex;flex-direction:column;min-height:calc(100vh - 2*var(--pad))}
.made-with{width:100%;max-width:900px;margin:auto auto 0;padding-top:40px;text-align:center}
.made-with ul{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:14px 28px;margin:12px 0 0;padding:0;list-style:none}
.made-with li{display:flex;flex-direction:column;align-items:center;gap:6px;width:60px;font-size:11px;line-height:1.3;color:var(--mute)}
.made-with img{display:block;width:48px;height:48px;object-fit:contain}
.contact-label{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.contact-name{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px}
.contact-name .tool{margin-left:auto}
.contact-gap{margin-top:20px}
.contact-name strong.contact-mail{font-size:18px}
.contact-name strong{font-size:26px;overflow-wrap:anywhere}
.contact-card ul{display:grid;gap:10px;margin-top:14px;padding:0;list-style:none;font-family:var(--prose);font-size:15px;line-height:1.5;color:#dcdaf0}
.contact-card a{color:#fff;text-decoration:underline}
.contact-card li{display:flex;align-items:center;gap:12px;min-width:0}
.credit-art{display:grid;place-items:center;flex:none;width:60px;height:60px;overflow:hidden;background:var(--side-on);border-radius:50%;color:#fff;font-size:22px;font-weight:700}
.credit-body{flex:1;min-width:0}
.credit-name{display:flex;align-items:center;gap:10px;min-height:32px}
.credit-desc{display:block;margin-top:2px;text-align:justify}
.contact-card a.contact-kofi.icon-only.credit-kofi{flex:0 0 32px;width:32px;height:32px;min-height:32px;margin:0 0 0 auto;padding:0;justify-content:center}
.credit-kofi img{width:18px;height:18px}
.contact-card a.credit-kofi+a.credit-kofi{margin-left:6px}
.credit-art img{width:100%;height:100%;object-fit:cover}
.credit-art.big{width:72px;height:72px}
.contact-card a.contact-kofi{display:flex;align-items:center;gap:10px;width:200px;max-width:100%;margin-top:10px;padding:6px 12px;font-size:12px;text-decoration:none}
.contact-links{display:flex;align-items:center;gap:8px;margin-top:10px}
.contact-name + .contact-links{margin-top:16px}
.contact-links a.contact-kofi{margin-top:0;flex:1 1 0;width:auto;min-height:48px;padding:10px 16px;font-size:14px;justify-content:center}
.contact-card a.contact-kofi.icon-only{flex:0 0 48px;width:48px;padding:10px}
.contact-links .contact-kofi img{flex:0 0 24px;width:24px;height:24px}
.contact-kofi img{flex:0 0 18px;width:18px;height:18px;object-fit:contain}
/* BC calculator */
#calc{max-width:1640px}
#calc input[type=number],#calc input[type=date],#calc select{width:100%;min-width:0;height:36px;padding:0 10px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 15px "Quantico";color-scheme:dark}
#calc select{cursor:pointer}
.calc-card{padding:16px 18px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
.calc-title{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-bottom:16px}
.calc-title .sub{margin-bottom:0}
.calc-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}
.calc-tabs{display:flex;gap:8px}
/* The tabs stay in the same corner on both tabs: the bar only exists on Planner, so it sits on its own row below the title */
@media(min-width:761px){.calc-top{margin-left:auto}.calc-bar{flex:1 1 100%;justify-content:flex-end}}
.calc-bar{display:flex;flex-wrap:wrap;gap:6px 28px;padding:6px 14px;background:#0f0f10;border:1px solid var(--line);border-bottom:2px solid var(--red)}
.calc-bar[hidden]{display:none}
.calc-bar-item{display:flex;align-items:center;gap:10px;min-width:0}
.calc-bar-item .calc-icon{width:34px;height:34px}
.calc-bar-item output{display:block;font-size:16px;font-weight:700}
.calc-bar-item output.short{color:#ff6b6b}
.calc-bar-item small{display:block;font-size:11px;color:var(--mute)}
.calc-icon{display:block;flex:none;width:44px;height:44px}
.calc-icon img{display:block;width:100%;height:100%;object-fit:contain}
.calc-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.calc-head>div{flex:1 1 260px;min-width:0}
.calc-head h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:20px}
.calc-head p{margin-top:3px;font-size:13px;color:var(--mute)}
.calc-head a{color:var(--txt);text-decoration:underline}
.calc-tag{padding:2px 7px;background:var(--side-on);border-radius:3px;color:#fff;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.calc-tag.guess{background:#3a3a40}
.calc-label{margin:14px 0 6px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.calc-hint{margin:-2px 0 8px;font-family:var(--prose);font-size:13px;line-height:1.5;color:var(--mute)}
.calc-left{list-style:none;padding:0;display:grid;gap:2px}
.calc-left li{display:flex;align-items:center;gap:6px}
.calc-left .calc-icon{width:18px;height:18px}
.calc-check{display:flex;align-items:flex-start;gap:9px;font-size:14px;cursor:pointer}
.calc-check input{flex:none;width:18px;height:18px;margin-top:1px;accent-color:var(--red)}
.calc-check small{display:block;margin-top:2px;font-size:12px;color:var(--mute)}
.calc-check.has-icon .calc-icon{width:26px;height:26px;margin-top:-3px}
/* The board: starting balance, the patches in the middle with a step button at each side, and what every patch leaves.
   Wide screens fit it in one view; the final balance column scrolls inside itself */
.calc-board{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.calc-center{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
.calc-side-nav{display:none;flex-direction:column;align-items:center;justify-content:center;gap:12px;align-self:center;height:260px;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);cursor:pointer}
.calc-side-nav span{font:700 24px/1 "Quantico"}
.calc-final-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.calc-final-head .tool{flex:none}
.calc-side-nav small{writing-mode:vertical-rl;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.calc-side-nav[data-belt=prev] small{transform:rotate(180deg)}
.calc-side-nav:hover:not(:disabled){background:#2a2a2e}
.calc-side-nav:disabled{opacity:.3;cursor:default}
/* Starting balance: Black Cards across the top, the other six in pairs */
.calc-money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}
.calc-coin{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:4px 6px;min-width:0;padding:5px 7px;background:#0f0f10;border:1px solid var(--line);border-radius:4px}
.calc-coin:first-child{grid-column:1/-1}
/* Icon and name share the top row, so the box below gets the full width for six digits and the spin arrows */
.calc-coin .calc-icon{width:28px;height:28px}
.calc-coin input{grid-column:1/-1}
.calc-coin small{min-width:0;font-size:11px;line-height:1.2;color:var(--mute);overflow-wrap:anywhere}
#calc .calc-coin input{height:30px;padding:0 6px;font-size:14px}
.calc-owned{display:grid;gap:6px}
.calc-own{display:grid;grid-template-columns:minmax(0,1fr) 122px;align-items:center;gap:6px;font-size:12px;color:#dcdce0}
.calc-own small{display:block;font-size:11px;color:var(--mute)}
#calc .calc-own input{height:32px;padding:0 6px;font-size:13px}
.calc-own.level{grid-template-columns:minmax(0,1fr) 76px}
.calc-own-checks{display:flex;flex-wrap:wrap;gap:6px 16px;padding:2px 0}
.calc-own-checks .calc-check{font-size:13px}
.calc-checks{display:grid;gap:8px;margin-top:14px}
.calc-warzone{margin-top:14px}.calc-warzone>span{display:flex;align-items:center;gap:6px}.calc-warzone select{width:100%}
.calc-clear,.calc-events-open{width:100%;margin-top:14px}
.calc-clear{background:var(--red);border-color:var(--red);color:#fff}
.calc-clear:hover{background:#a10f1c;border-color:#a10f1c}
.calc-events-open+.calc-clear{margin-top:8px}
/* Events List: a modal on wide screens, a full-width sheet on phones */
.calc-events{margin:auto;width:min(620px,calc(100vw - 32px));max-height:min(80dvh,720px);padding:18px 16px;background:var(--panel);color:var(--txt);border:1px solid var(--line);border-top:2px solid var(--red);border-radius:4px;overflow-y:auto}
.calc-events::backdrop{background:rgba(0,0,0,.65)}
.calc-ev-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.calc-ev-head h2{font-size:18px;font-weight:700}
.calc-ev-patch{margin-top:16px}
.calc-ev-patch h3{font-size:14px}
.calc-ev-patch h3 small{font-size:12px;font-weight:400;color:var(--mute)}
.calc-ev-group{margin:10px 0 6px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.calc-ev{display:flex;align-items:center;gap:9px;padding:6px 0;border-top:1px solid var(--line);font-size:14px}
.calc-ev small{display:block;margin-top:2px;font-size:12px;color:var(--mute)}
.calc-ev-state{display:flex;flex:none;gap:4px}
.calc-ev-state button{height:28px;padding:0 10px;background:transparent;border:1px solid var(--line);border-radius:4px;color:var(--mute);font:600 12px "Quantico",sans-serif;cursor:pointer}
.calc-ev-state button:hover{color:var(--txt)}
.calc-ev-state button[aria-pressed=true]{background:var(--red);border-color:var(--red);color:#fff}
.calc-ev-state button:disabled{opacity:.4;cursor:not-allowed}
.calc-ev-state button:disabled:hover{color:var(--mute)}
.calc-ev.ended > span:first-child{opacity:.6}
.calc-ev-state button[data-ev-set=skip][aria-pressed=true]{background:#3a3a3f;border-color:#6a6a72}
.calc-ev>span:first-of-type{flex:1;min-width:0}
.calc-ev-gains{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px 10px}
.calc-ev-gain{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#dcdce0}
.calc-ev-gain .calc-icon{width:22px;height:22px}
@media (max-width:760px){
  .calc-events{width:100%;max-width:none;margin:auto 0 0;max-height:85dvh;border-radius:4px 4px 0 0}
  .calc-ev{flex-wrap:wrap}
  .calc-ev>span:first-of-type{flex-basis:calc(100% - 130px)}
  .calc-ev-gains{order:3;flex-basis:100%;justify-content:flex-start}
}
/* The patch belt: a rail with a draggable thumb on top, and stops riding a striped track. The mouse can also drag or wheel it */
.calc-stage{container:calc-stage/inline-size;min-width:0}
.calc-rail{display:grid;grid-template-columns:24px minmax(0,1fr) 24px;align-items:center;gap:6px}
.calc-rail.full>*{visibility:hidden}
.calc-rail-step{height:24px;padding:0;background:none;border:0;color:var(--red);font:700 22px/1 "Quantico";cursor:pointer}
.calc-rail-step:disabled{opacity:.25;cursor:default}
.calc-rail-track{position:relative;height:14px;cursor:pointer}
.calc-rail-track::before{content:"";position:absolute;left:0;right:0;top:6px;height:2px;background:#2a2a2e}
.calc-rail-thumb{position:absolute;top:4px;height:6px;border-radius:3px;background:var(--red);cursor:grab}
.calc-belt{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;touch-action:pan-x pan-y;cursor:grab}
.calc-belt::-webkit-scrollbar{display:none}
.calc-belt.dragging{scroll-snap-type:none;cursor:grabbing}
.calc-belt.dragging,.calc-rail{user-select:none;-webkit-user-select:none}
.calc-track{position:relative;display:flex;gap:10px;width:max-content;padding:14px 4px 16px}
.calc-track::before{content:"";position:absolute;left:0;right:0;top:calc(50% - 4px);height:10px;background:repeating-linear-gradient(115deg,#26262a 0 8px,#141416 8px 16px);border-block:1px solid var(--line)}
.calc-stop{position:relative;flex:none;display:grid;align-content:start;gap:3px;width:138px;padding:8px 10px;background:var(--panel);border:1px solid var(--line);border-top:3px solid #4a4a4f;border-radius:4px;color:var(--txt);font:inherit;text-align:left;cursor:pointer;scroll-snap-align:center;transition:transform .15s,border-color .15s,background .15s}
.calc-belt.dragging .calc-stop{cursor:grabbing}
.calc-stop:hover{border-top-color:var(--mute)}
.calc-stop.guess{border-style:dashed;border-top-style:solid}
.calc-stop.collab{border-top-color:var(--side-on)}
.calc-stop[aria-selected=true]{background:#1c1c1e;border-color:var(--red);transform:translateY(-4px)}
.calc-stop[aria-selected=true]::after{content:"";position:absolute;left:50%;top:100%;margin:1px 0 0 -8px;border:8px solid #0000;border-bottom:0;border-top-color:var(--red)}
.calc-stop-top{min-width:0}
.calc-stop-top b{display:-webkit-box;min-height:2.5em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:14px;line-height:1.25}
.calc-stop-top .calc-tag{position:absolute;top:-10px;right:8px;padding:1px 5px;font-size:9px}
.calc-stop small{font-size:11px;color:var(--mute)}
.calc-stop-bc{display:flex;align-items:center;gap:6px;margin-top:2px;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.calc-stop-bc .calc-icon{width:26px;height:26px}
.calc-stop-bc .short{color:#ff6b6b}
/* The picked patch: its income in a row under the belt, then passes and spending side by side when there is room */
.calc-patch{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:4px;padding-top:12px;border-top:1px solid var(--line)}
.calc-patch[hidden]{display:none}
.calc-income{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.calc-income>small{margin-right:10px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.calc-gain{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:64px;min-width:0;padding:6px 2px;background:#0f0f10;border:1px solid var(--line);border-radius:4px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.calc-gain .calc-icon{width:36px;height:36px}
.calc-patch .calc-head{justify-content:center;text-align:center}
.calc-patch .calc-head h3,.calc-patch .calc-meta{justify-content:center}
.calc-side{display:flex;flex-direction:column;min-width:0}
.calc-side>.calc-label:first-child{margin-top:4px}
.calc-patch-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:auto;padding-top:20px}
.calc-clear-patch{padding:7px 12px;font-size:12px;border-color:var(--red);color:#ff6b6b}
.calc-clear-patch:hover{background:var(--red);color:#fff}
.calc-meta{display:flex;flex-wrap:wrap;gap:0 12px}
.calc-meta span:empty{display:none}
.calc-copy{padding:7px 12px;font-size:12px}
.calc-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:0 16px}
.calc-passes{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.calc-lvl-row{display:grid;gap:6px 24px;margin-top:2px}
.calc-lvl-row .calc-level{margin-top:8px}
.calc-lvl-row .calc-rc-row{margin-top:8px}
.calc-cols{margin-top:4px}
.calc-patch .calc-fold{margin-top:6px;padding-top:12px;border-top:1px solid var(--line)}
.calc-cols.solo{grid-template-columns:minmax(0,1fr)}
.calc-cols.solo .calc-side{max-width:520px;width:100%;margin:0 auto}
.calc-incleft>.calc-label:first-child{margin-top:4px}
.calc-incleft .calc-events-open{width:auto;margin-top:6px}
.calc-passes[hidden]{display:none}
.calc-fold{display:flex;align-items:center;gap:6px;width:100%;padding:0;background:none;border:0;font-family:inherit;text-align:left;cursor:pointer}
.calc-fold:hover{color:var(--txt)}
.calc-fold .calc-icon,.calc-label.has-icon .calc-icon{width:20px;height:20px}
.calc-incleft .calc-label.has-icon .calc-icon{width:26px;height:26px}
.calc-incleft>.calc-label:first-child,.calc-side>.calc-label:first-child{margin-bottom:12px}
.calc-label.has-icon{display:flex;align-items:center;gap:6px}
.calc-fold small{font-size:inherit;font-weight:600;letter-spacing:.06em;text-transform:none;color:var(--mute)}
.calc-fold>span[aria-hidden]{margin-left:auto;font-size:13px;transition:transform .15s}
.calc-fold[aria-expanded="false"]>span[aria-hidden]{transform:rotate(-90deg)}
.calc-pass{display:grid;grid-template-columns:34px minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:3px 8px;min-width:0;padding:4px 8px;background:#0f0f10;border:1px solid var(--line);border-radius:4px;color:#dcdce0;cursor:pointer}
.calc-pass .calc-icon{width:34px;height:34px}
.calc-pass-tx{min-width:0}
.calc-pass-tx b{display:block;font-size:13px;line-height:1.2}
.calc-pass-tx b small{font-size:11px;font-weight:400;color:var(--mute);white-space:nowrap}
.calc-legend{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:3px;font-size:11px;font-weight:700;color:#cfcfd4}
.calc-legend-part{display:flex;align-items:flex-start;gap:0 6px;min-width:0;padding:2px 0}
.calc-legend-part+.calc-legend-part{border-top:1px solid var(--line)}
.calc-rewards{display:flex;flex-direction:column;gap:1px}
.calc-legend i{line-height:16px}
.calc-legend i{flex:none;min-width:58px;font-style:normal;font-weight:400;color:var(--mute)}
.calc-reward{display:inline-flex;align-items:center;gap:3px;line-height:16px;font-variant-numeric:tabular-nums}
.calc-mini{display:block;width:20px;height:20px}
.calc-mini img{display:block;width:100%;height:100%;object-fit:contain}
#calc .calc-pass select{width:52px;height:32px;padding:0 6px}
.calc-pass input[type=checkbox]{justify-self:end;width:20px;height:20px;margin:0 8px;accent-color:var(--red)}
.calc-pass-own{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:3px;border-top:1px solid var(--line);font-size:12px;color:var(--mute)}
#calc .calc-pass-own input{width:108px;height:26px;padding:0 5px;font-size:12px}
.calc-fields{display:grid;gap:8px}
.calc-field{display:grid;align-content:start;gap:4px;min-width:0;font-size:13px;color:#dcdce0}
.calc-field small{font-size:11px;color:var(--mute)}
.calc-patch .calc-field{grid-template-columns:minmax(0,1fr) minmax(108px,136px);align-items:center;gap:2px 8px}
.calc-fname{min-width:0}
.calc-patch .calc-field .calc-fname small{display:block;margin-top:1px;line-height:1.3}
.calc-ctl{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0}
.calc-field.has-researched .calc-ctl{grid-template-columns:62px 136px;justify-content:end}
#calc .calc-researched{height:34px;padding:0 2px;text-align:center;font-size:12px;appearance:textfield;-moz-appearance:textfield}
#calc .calc-researched.fate{font-size:11px}
#calc .calc-researched:disabled{opacity:.45;cursor:not-allowed}
.calc-researched::-webkit-inner-spin-button,.calc-researched::-webkit-outer-spin-button{display:none}
.calc-patch .calc-field.has-researched{grid-template-columns:minmax(0,1fr) auto}
.calc-patch .calc-fname.has-fate{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center}
.calc-fate{grid-row:1/span 2;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--mute);cursor:pointer}
.calc-fate input{margin:0}
.calc-has-fate .calc-name,.calc-fname.has-fate .calc-name,.calc-fname.has-fate small{grid-column:2}
.calc-step{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:4px}
.calc-step button{height:34px;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:700 18px "Quantico";cursor:pointer}
.calc-step button:hover{background:#4a4a4f}
#calc .calc-step input{height:34px;padding:0 2px;text-align:center;appearance:textfield;-moz-appearance:textfield}
.calc-step input::-webkit-inner-spin-button,.calc-step input::-webkit-outer-spin-button{display:none}
.calc-rc-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:12px}
.calc-rc-row b{font-size:14px}
.calc-rc-row small{font-size:11px;color:var(--mute)}
.calc-rc{display:flex;align-items:center;gap:8px;padding:2px 12px 2px 6px;background:#0f0f10;border:1px solid var(--line);border-radius:4px;font-size:17px;font-weight:700}
.calc-rc .calc-icon{width:30px;height:30px}
@container calc-stage (min-width:440px){.calc-passes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container calc-stage (min-width:700px){.calc-passes{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container calc-stage (min-width:600px){
  .calc-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .calc-lvl-row{grid-template-columns:minmax(220px,1fr) minmax(0,auto);align-items:center;gap:6px 24px}
}
/* Final balance: one row per patch, the picked one outlined */
.calc-final{display:flex;flex-direction:column;min-width:0}
.calc-final h3{margin-bottom:0;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute);text-align:center}
.calc-final-list{display:flex;flex-direction:column;gap:6px;max-height:70vh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--red) #0000}
.calc-final-row{flex:none;min-width:410px;display:grid;gap:6px;width:100%;padding:8px;background:#0f0f10;border:1px solid var(--line);border-radius:4px;color:var(--txt);font:inherit;text-align:center;cursor:pointer}
.calc-final-row:hover{border-color:var(--mute)}
.calc-final-row[aria-current=true]{background:#1c1c1e;border-color:var(--red)}
.calc-final-row>b{font-size:14px}
.calc-final-coins{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
/* Dividers between the coins; the first of each line of four has none, and with seven in a line only the first */
.calc-final-coin{min-height:26px;padding-inline:3px;border-left:1px solid var(--line);display:flex;align-items:center;justify-content:center;min-width:0;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.calc-final-coin output[data-left=bc]{color:#fbbc04}.calc-final-coin output[data-left=limited]{color:#ff9900}.calc-final-coin output[data-left=weapon]{color:#ea4335}.calc-final-coin output[data-left=cub]{color:#00deca}.calc-final-coin output[data-left=construct]{color:#4285f4}.calc-final-coin output[data-left=voucher]{color:#fcf7cc}.calc-final-coin output[data-left=shard]{color:#eb5b07}
.calc-final-coin:first-child{border-left:0}
.calc-final-coin output{min-width:0;white-space:nowrap}
.calc-final-icons{flex:none;position:sticky;top:0;z-index:1;min-width:410px;padding:6px 9px;background:var(--panel);border-bottom:1px solid var(--line)}
.calc-final-icons .calc-icon{width:25px;height:25px}
.calc-final-coin output.short[data-left]{color:#ff6b6b}
.calc-notes{display:grid;gap:0 24px}
.calc-more>summary{display:flex;align-items:center;gap:8px;margin:26px 0 12px;font-size:14px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#c4c4ca;cursor:pointer;list-style:none}
.calc-more>summary::-webkit-details-marker{display:none}
.calc-more>summary::before{content:"▸";color:var(--mute)}
.calc-more[open]>summary::before{content:"▾"}
.calc-pull{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.calc-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.calc-quick .tool{flex:1 1 72px;min-height:40px}
.calc-odds{display:grid;gap:10px;margin-top:14px}
.calc-hero{--tone:#ff6b6b;display:grid;gap:6px;min-width:0;padding:16px;background:#0f0f10;border:1px solid var(--line);border-left:3px solid var(--tone);border-radius:4px}
.calc-hero.low{--tone:#ff6b6b}.calc-hero.mid{--tone:#e6bd52}.calc-hero.high{--tone:#6fcf8e}
.calc-hero>small{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.calc-hero>b{font-size:clamp(36px,12vw,60px);line-height:1;color:var(--tone);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.calc-meter{height:10px;background:#26262a;border-radius:4px;overflow:hidden}
.calc-meter span{display:block;height:100%;background:var(--tone);border-radius:4px;transition:width .25s}
.calc-meter-note{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;font-size:12px;color:var(--mute)}
.calc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:8px}
.calc-stat{display:grid;align-content:start;gap:4px;min-width:0;padding:12px;background:#0f0f10;border:1px solid var(--line);border-radius:4px}
.calc-stat b{font-size:22px;line-height:1.15;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){.calc-meter span{transition:none}}
.calc-stat small{font-size:12px;line-height:1.3;color:var(--mute)}
.calc-info{display:grid;gap:14px}
.calc-info>div{padding-left:12px;border-left:2px solid var(--red)}
.calc-info dt{font-size:14px;font-weight:700}
.calc-info dd{margin:3px 0 0;font-family:var(--prose);font-size:14px;line-height:1.55;color:var(--mute)}
.calc-info a{color:var(--txt);text-decoration:underline}
.calc-text{font-family:var(--prose);font-size:14px;line-height:1.55;color:var(--mute)}
.calc-margins{display:grid;gap:6px;margin:12px 0}
.calc-margin{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:10px;padding:8px 10px;background:#0f0f10;border:1px solid var(--line);border-left:3px solid var(--tone);border-radius:4px;font-size:13px;line-height:1.35}
.calc-margin b{font-size:16px;color:var(--tone)}
.calc-margin.low{--tone:#6fcf8e}.calc-margin.mid{--tone:#e6bd52}.calc-margin.high{--tone:#ff6b6b}
.calc-pull-page{display:grid;gap:14px;max-width:960px;margin-inline:auto}
.calc-pull-page[hidden]{display:none}
@media(max-width:760px){#calc{padding-bottom:64px}.calc-bar{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:5;flex-wrap:nowrap;gap:12px;margin:0;padding:6px 14px calc(6px + env(safe-area-inset-bottom));border-width:2px 0 0;border-top-color:var(--red);border-bottom:0}.calc-bar-item .calc-icon{width:26px;height:26px}.calc-bar-item{flex:1;gap:6px}.calc-bar-item output{font-size:15px}.calc-bar-item small{font-size:10px;line-height:1.2}}
/* Middle widths: balance and patches side by side, the final balance under them in columns */
@media(min-width:1000px){
  .calc-board{grid-template-columns:268px minmax(0,1fr)}
  .calc-center{grid-template-columns:30px minmax(0,1fr) 30px}
  .calc-side-nav{display:flex}
  .calc-final{grid-column:1/-1}
  .calc-final-list{width:100%;max-width:640px;margin-inline:auto}
  .calc-notes{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
}
/* Wide screens: three columns, as tall as the balance or the patch, whichever is taller */
@media(min-width:1400px){
  .calc-board{grid-template-columns:300px minmax(0,1fr) 284px;gap:12px}
  .calc-final{grid-column:auto}
  .calc-final-list{flex:1 1 0;max-height:none;contain:size;padding-right:4px}
}
@media(min-width:1700px){.calc-board{grid-template-columns:310px minmax(0,1fr) 420px}}
@media(max-width:560px){.calc-card{padding:14px}.calc-own{grid-template-columns:minmax(0,1fr) 140px}.calc-track{gap:8px}.calc-stop{width:128px}.calc-patch .calc-field{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.calc-copy,.calc-clear-patch{width:100%}.calc-stat b{font-size:20px}.calc-hero{padding:14px}#calc input[type=number],#calc input[type=date],#calc select{font-size:16px}}
.mt-name a::after{content:"";position:absolute;inset:0}
.mt-name small{display:block;margin-top:2px;font-size:12px;font-weight:400;color:var(--mute)}
.agrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px}
.acard{display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--panel);border:1px solid var(--line);border-radius:4px;transition:transform .2s,border-color .2s,box-shadow .2s}
.acard:hover{transform:translateY(-2px);border-color:#5a5a62;box-shadow:0 10px 28px #000a}
.acard .slot{flex:none;width:56px;height:56px;border-radius:4px;border:1px solid #ffffff30;overflow:hidden;background:#00000033}
.acard .slot img{width:100%;height:100%;object-fit:cover;display:block}
.acard h3{margin:0 0 3px;font-size:16px;font-weight:700;letter-spacing:.02em}
.acard p{margin:0;font-size:12.5px;color:var(--mute);line-height:1.4}
a.acard{display:block}
a.slot:hover{border-color:#fff}
.backs{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:12px}
.backs .crumbs{margin-bottom:0}
.back-build{padding:7px 12px;background:#d8d8dc;border-radius:4px;color:#0b0b0c;font-size:13px;font-weight:700}
.detail{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:20px;align-items:start;max-width:1000px}
.detail.solo{grid-template-columns:minmax(0,1fr)}
.wpn-detail{grid-template-columns:minmax(0,220px) minmax(0,1fr)}
.wpn-detail .slot{aspect-ratio:1}
.wpn-detail img{object-fit:contain}
.detail .fx{padding:16px;background:var(--panel);border:1px solid var(--line)}
.detail .fx h2{font-size:14px;font-weight:700;color:#fff}
.detail .fx h2:not(:first-child){margin-top:14px}
.detail .fx p,.skills .fx p{margin-top:4px;font-size:14px;line-height:1.6;color:#dcdaf0}
.detail .fx .note{font-family:var(--prose);font-size:13px;line-height:1.5;color:var(--mute)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:8px;margin-bottom:12px}
.stats div{padding:8px 10px;background:#ffffff0d;border-left:2px solid var(--red)}
.stats dt{font-size:12px;font-weight:700;color:var(--mute)}
.stats dd{margin:2px 0 0;font-size:20px;font-weight:700}
.sub a{text-decoration:underline}
.cub-skill{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:start}
.cub-skill+.cub-skill{margin-top:14px}
.cub-skill .slot{aspect-ratio:1}
.cub-skill[hidden]{display:none}
/* Weapon page: the Harmonization levels, numbered like the game; level 2 holds the Harmony skill */
.wh-levels{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.wh-levels>li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:start}
.wh-lv{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--side-line);border-radius:50%;background:var(--side-hover);color:var(--txt);font:700 12px "Quantico"}
.wh-levels>li>div>h3{margin:3px 0 2px;font-size:14px;font-weight:700;color:#fff}
.wh-levels>li>div>p{margin:0;font-size:13px;line-height:1.5;color:var(--mute)}
.wh-levels .cub-skill{margin-top:12px;padding:12px;background:#ffffff08;border:1px solid var(--line);border-radius:4px}
/* Weapon page: the Harmony skill, set apart from the weapon's own effect */
.detail .fx h2.wh-head{margin:20px 0 12px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.el-tabs{display:flex;gap:6px;margin-bottom:12px}
.el-tab{all:unset;box-sizing:border-box;width:44px;cursor:pointer;opacity:.55;border-radius:4px;outline:2px solid transparent;outline-offset:1px}
.el-tab:hover{opacity:.85}
.el-tab.on{opacity:1;outline-color:var(--red)}
.el-tab:focus-visible{outline-color:currentColor}
.el-tab .slot{aspect-ratio:1}
.skills{display:grid;gap:12px;max-width:1000px}
.skills .fx{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:start;padding:16px;background:var(--panel);border:1px solid var(--line)}
.skills .slot{aspect-ratio:1}
.skills h2{margin-top:2px;font-size:16px;font-weight:700}
.skills .fx p{white-space:pre-line}
.skills .fx .kind{margin:0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.char-detail{grid-template-columns:minmax(0,220px) minmax(0,1fr)}
.char-detail>.slot{aspect-ratio:1}
.char-links{display:grid;gap:10px}
.builds{display:grid;gap:10px;max-width:1000px}
a.build{display:flex;align-items:center;justify-content:space-between;gap:14px}
.build h3{margin-top:2px}
.b-tx{min-width:0}
.build .b-mem{margin-top:6px;color:var(--txt)}
.b-mates{display:flex;flex:none;gap:6px}
.b-mates .slot{width:48px;height:48px}
a.wpn{display:grid;grid-template-columns:96px minmax(0,1fr);gap:0 12px;align-items:center;align-content:start}
.wpn .slot{aspect-ratio:1}
.wpn h3{margin-top:0}
.wpn img{object-fit:contain}
.empty{color:var(--mute);padding:40px;border:1px dashed var(--line);text-align:center}
a.empty-link{display:block;text-decoration:none;transition:border-color .15s,background .15s,color .15s}
a.empty-link u{color:#fff}
a.empty-link:hover{border-color:var(--red);background:#ffffff08;color:var(--txt)}
/* Sliding cards: with less room than this three cards no longer fit at a readable size, so they keep their size and go side by
   side, one in the center and the next ones peeking. It reads the room left by the side menu, not the window.
   The swipe is the browser's scroll snap. Keep in sync with isSliding in app.js */
.pager{display:none}
#compBox{container:comp/inline-size}
@container comp (max-width:959px){
.comp{--w:calc(100cqi + 2*var(--pad));--cw:min(var(--w) - 52px,440px);position:relative;align-items:flex-start;gap:12px;margin-inline:calc(-1*var(--pad));padding-inline:calc((var(--w) - var(--cw))/2);overflow:auto hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;transition:height .25s}
.comp::-webkit-scrollbar{display:none}
.card{--u:1px;flex:0 0 var(--cw);scroll-snap-align:center;scroll-snap-stop:always}
.comp .card{cursor:default;transition:opacity .25s,transform .25s}
.comp .card:hover,.comp .card:active{transform:none;filter:none}
.comp .card.peek{opacity:.55;transform:scale(.96);cursor:pointer}
.comp .card .bar{left:-1px;right:-1px;clip-path:none}
.comp .card .bar::before{clip-path:none}
.card .mem .slot.named{padding:0;font-size:9px;writing-mode:horizontal-tb;place-items:center}
.desc,.notes .desc{height:auto}
.desc:empty{display:none}
.pager{position:sticky;top:0;z-index:5;display:flex;gap:6px;margin-top:10px;padding:6px 0;backdrop-filter:blur(6px)}
.pager button{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:4px 6px;background:var(--panel);border:1px solid var(--line);border-bottom:2px solid var(--pg,var(--line));border-radius:4px;color:var(--mute);font:600 13px "Quantico";cursor:pointer;transition:color .2s,background-color .2s}
.pager button[aria-current=true]{background:#262628;color:var(--txt)}
.pager img{flex:none;width:30px;height:30px;object-fit:cover;border-radius:2px}
.pager span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pager .pg-step{flex:0 0 44px;font-size:22px;line-height:1}
.pg-blue{--pg:#2a8cff}.pg-red{--pg:#e0303a}.pg-gold{--pg:#e6ad1e}
}
@media(hover:none){.pager .pg-step{display:none}}
/* Side menu on desktop: a rail of icons that opens over the page while in use, or pinned open with the same layout. The negative margin keeps the room it takes
   in the page the same, so nothing moves. Each link clips its own text, which starts right after the rail. See isRail in app.js */
.site-search{position:relative}
.search-ico,#pinBtn{display:none}
#langBtn{display:flex;margin-top:2px;font-size:14px;font-weight:400;color:var(--mute)}
#langBtn b{font-weight:400}
#langBtn b.on{font-weight:700;color:var(--txt)}
/* Credits and Privacy: rarely used, so quieter than Updates */
.nav-minor{font-size:14px;font-weight:400;color:var(--mute)}
/* A group whose page is open but whose list is shut still shows where you are */
.nav-group:has(+[hidden] a.on) .nav-head,.sub:has(+[hidden] a.on){background:var(--side-on);box-shadow:inset 3px 0 0 var(--red);color:#fff}
@media(min-width:761px) and (hover:hover){
#pinBtn{display:flex;margin-top:2px;font-size:14px;font-weight:400;color:var(--mute)}
#pinBtn[aria-pressed=true]{color:var(--txt)}
#pinBtn .pin-track{fill:none;stroke:currentColor}
#pinBtn .pin-knob{fill:currentColor}
#pinBtn.pin-anim .pin-track{transition:fill .3s,stroke .3s}
#pinBtn.pin-anim .pin-knob{transition:transform .3s cubic-bezier(.5,1.7,.5,1),fill .3s}
#pinBtn[aria-pressed=true] .pin-track{fill:#cf142440;stroke:var(--red)}
#pinBtn[aria-pressed=true] .pin-knob{transform:translateX(9.5px);fill:var(--red)}
#side{padding-inline:10px}
#side:not(.pinned){z-index:15;width:64px;overflow:hidden auto;transition:width .3s cubic-bezier(.4,0,.2,1),margin-right .3s cubic-bezier(.4,0,.2,1),box-shadow .3s cubic-bezier(.4,0,.2,1)}
#side.wide:not(.pinned){width:280px;margin-right:-216px;box-shadow:16px 0 40px #000a}
/* Only the closed rail hides its bar. Any other scrollbar-width here would make Chrome drop the themed ::-webkit-scrollbar */
#side:not(.pinned,.wide){scrollbar-width:none}
/* Room around the wordmark so its hover glow is not cut by the logo box */
#side .logo{justify-content:flex-start;gap:12px;padding:16px 16px 40px;margin:-16px -16px -16px;overflow:visible}
#side .logo .logo-icon{width:44px;height:44px;margin:0;object-fit:contain}
#side .logo .logo-wordmark{max-width:none;width:168px;filter:drop-shadow(0 0 10px #ff35354d);transition:opacity .15s ease,filter .2s ease;transition-delay:0s}
#side .logo:hover .logo-wordmark{filter:drop-shadow(0 0 14px #ff353590)}
#side:not(.wide,.pinned) .logo .logo-wordmark{opacity:0}
#side.wide:not(.pinned) .logo .logo-wordmark{transition-delay:.14s}
#side nav :is(a:not(.sr),button){gap:12px;overflow:hidden;white-space:nowrap}
/* Slightly larger icons; the padding shrinks to match so each stays centred in the 44px the rail leaves inside */
#side .ico{width:24px;height:24px}
#side nav>:is(a,button),#side .nav-head,#side .nav-foot>*{padding-inline:10px}
#side .nav-head{padding-right:46px}
#side .subList :is(.ico,img){width:26px;height:26px}
#side .search-ico{display:block;position:absolute;left:10px;top:8px;color:var(--mute);pointer-events:none}
#side #searchBox{padding-left:44px}
/* Closed, the box is only as wide as the icon */
#side:not(.pinned,.wide) #searchBox{padding-inline:0;color:#0000}
#side:not(.pinned,.wide) #searchBox::placeholder{color:#0000}
/* Open groups stay in the rail as a column of icons, each on the same line as when the menu is open */
#side:not(.pinned) :is(#teamsMenu,.subList,.subList a){transition:padding .3s cubic-bezier(.4,0,.2,1),margin .3s cubic-bezier(.4,0,.2,1)}
.subList .ico{width:24px;height:24px}
#side .subEmpty{overflow:hidden;white-space:nowrap}
#side:not(.pinned,.wide) #teamsMenu{padding-left:0}
#side:not(.pinned,.wide) .subList{margin-left:0;border-left-color:#0000}
#side:not(.pinned,.wide) .subList a{padding-left:9px}
#side:not(.pinned,.wide) .subEmpty{color:#0000}
/* In the closed rail the arrow would sit on the icon */
#side:not(.pinned,.wide) .nav-caret{visibility:hidden}
#side:not(.pinned,.wide) .nav-head{padding-right:10px}
}
@media(max-width:760px),(hover:none) and (max-height:500px){.assets,.detail{grid-template-columns:minmax(0,1fr)}.atabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:static}body{flex-direction:column}#main{--pad:18px}
#side{width:100%;height:auto;position:sticky;top:0;z-index:10;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 14px;border-right:0;border-bottom:1px solid var(--side-line);overflow:visible}
.logo{padding:0;font-size:24px}.logo .logo-wordmark{width:7.2em}
#menuBtn{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:4px;background:none;color:var(--txt);font-size:24px;cursor:pointer}
#side nav{display:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 61px);overflow-y:auto;padding:8px 14px 14px;background:#110c0d;border-bottom:1px solid var(--side-line)}
#side.open nav{display:block}
.nav-foot{margin-top:12px}
.contact{grid-template-columns:minmax(0,1fr)}
.filter-toggle{display:block}
.filters{display:none}
.filters.open{display:grid}
.filter{grid-template-columns:minmax(0,1fr);gap:6px}
.mtable th{top:61px}
.brow-art{width:76px;min-height:72px}
.brow-tx b{font-size:15px;white-space:normal}
.b-mates .slot{width:48px;height:48px}
.pager{top:61px}
.box:not(.kit){flex-wrap:wrap}
/* The margins fill the row, so the weapon always goes below the box */
.mem{flex:0 0 min(100%,calc(222*var(--u)));margin-inline:max(0px,calc(50% - 111*var(--u)))}
.wp{width:30%}
.hero{grid-template-columns:minmax(0,1fr);grid-template-rows:210px 150px;height:auto;min-height:0;gap:10px}.hero-tx{padding:12px 20px 6px}.hero-mark{width:86px}.hero-splash{max-width:430px;height:calc(7.75em + 4px);-webkit-line-clamp:5;line-clamp:5}.hero-art{grid-column:1;grid-row:2}.hero-track a{width:130px}h1{font-size:28px}}
@media(max-width:1000px){.home-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-flow:row;gap:8px}.home-label{justify-content:center;font-size:11px;letter-spacing:.04em;text-align:center}.tile-gap{min-height:0}.home-links.tools{grid-template-columns:minmax(0,1fr)}.home-links.data{grid-template-columns:repeat(2,minmax(0,1fr))}.home-links.data a:first-child{grid-column:1/-1}.home-links.data .home-link{flex-direction:row;gap:12px;text-align:left}}
/* Home on wide screens: Tools, Game data and Game Modes as three equal columns of rows, all in view at once.
   The columns share one height; the three Tools rows stretch to it and keep their descriptions */
@media(min-width:1001px){
  .home-dir{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:32px}
  .home-col{display:flex;flex-direction:column;min-width:0}
  .home-dir h2.grp{margin:0 0 12px}
  .home-dir .home-links,.home-dir .home-links.data{flex:1;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:6px}
  .home-dir .home-link,.home-dir .home-links.data .home-link{flex-direction:row;gap:12px;padding:8px 12px;text-align:left}
  .home-dir .hl-art{width:36px;height:36px}.home-dir .hl-art .ico{width:30px;height:30px}.home-dir .home-links.modes .hl-img img{width:32px;height:32px}
  .home-dir .hl-tx b{font-size:14px}
  .home-dir .home-link::after{content:"›";margin-left:auto;padding-left:8px;color:var(--mute);font-size:20px;line-height:1;transition:color .15s,transform .15s}
  .home-dir .home-link:hover::after,.home-dir .home-link:focus-visible::after{color:var(--red);transform:translateX(3px)}
}
/* Phones: shorter hero and team tiles, and the Tools, Game data and Game Modes links become small icon tiles, so they show up without a long scroll */
@media(max-width:560px){
  .hero{grid-template-rows:176px 132px}.hero-mark{width:70px}.hero-splash{height:calc(6.2em + 4px);-webkit-line-clamp:4;line-clamp:4}.hero-track a{width:112px}
  .home-grid{margin-top:16px;gap:6px}.home-grid .tile{min-height:72px;padding:10px 4px;gap:5px}.home-grid .t-ic{width:32px;height:32px}.home-grid .t-tx b{font-size:13px}.home-grid .t-tx small{font-size:11px}.tile-gap{min-height:72px}
  h2.grp{margin:22px 0 10px;font-size:12px}
  .home-links{gap:6px}
  .home-links .home-link,.home-links.data .home-link{flex-direction:column;justify-content:center;gap:5px;padding:10px 4px;text-align:center}
  .home-links .hl-art{width:34px;height:34px}.home-links .hl-art .ico{width:30px;height:30px}.home-links.modes .hl-img img{width:32px;height:32px}
  .home-links .hl-tx b{font-size:12px;line-height:1.25}.home-links .hl-tx small{font-size:11px}
  .home-links.tools{grid-template-columns:repeat(3,minmax(0,1fr))}.home-links.tools .hl-tx small{display:none}
  .home-links.data{grid-template-columns:repeat(6,minmax(0,1fr))}.home-links.data .home-link{grid-column:span 2}
  .home-links.data:not(.modes) a:nth-child(n+4){grid-column:span 3}
  .home-links.data:not(.modes) a:first-child{grid-column:span 2}
  .home-links.modes{grid-template-columns:repeat(2,minmax(0,1fr))}.home-links.modes .home-link{grid-column:auto;flex-direction:row;justify-content:flex-start;gap:10px;padding:8px 10px;text-align:left}
}
/* Each row of the Assets tables is a card, and the header row is a strip of sort buttons. The cards sit in a grid that has one column on phones */
.mt-name .mob{display:inline}.mt-name .desk,.mtable .wide{display:none}
.mtable{display:block;background:none;border:0}
.mtable tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px;background:none}
.mtable thead{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px;padding:8px 10px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.mtable thead::before{content:"Sort by";margin-right:4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.mtable thead tr{display:contents}
/* Phones: the controls of the Assets tables take less height. Sort on one line that scrolls, the search full width,
   and the element tabs as one strip of chips that scrolls sideways */
@media(max-width:760px){
.mtable thead{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.mtable thead::before{flex:none}
.mtable th{flex:none}
.tbl .tb-search{max-width:none}
.sortbar.star-filter{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.sortbar.star-filter .tool{min-width:0;flex:none}
.atabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.atabs a{flex:none;padding:8px 12px}
}
.mtable th,.mtable th:first-child,.mtable th.rel{display:block;position:static;width:auto;background:none;border:0}
.mtable th button,.mtable th:first-child button,.mtable th.txt button{display:inline-flex;position:static;justify-content:center;gap:4px;width:auto;min-height:36px;padding:0 12px;background:#1c1c1e;border:1px solid var(--line);border-radius:4px;font-size:12px}
.mtable th[aria-sort=ascending] button,.mtable th[aria-sort=descending] button{background:#d8d8dc;border-color:#d8d8dc;color:#0b0b0c}
.mtable th button i,.mtable th.txt button i{position:static;transform:none;width:auto;min-width:8px;font-size:9px}
.mtable tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 8px;align-content:start;padding:10px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.mtable tbody tr:hover{background:#1c1c1f}
.mtable td,.mtable td:first-child{display:block;min-width:0;padding:0;text-align:left}
.mtable td:first-child,.mtable td.rel{grid-column:1/-1}
.mtable td[data-label]:not(.rel){padding:5px 8px;background:#1a1a1d;border-radius:4px;font-size:14px;text-align:center}
.mtable td[data-label]:not(.rel)::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;letter-spacing:.08em;color:var(--mute)}
.mtable td.rel{width:auto;padding:0;font-size:12px;color:var(--mute)}
.mtable td.rel::before{content:"Release: ";font-weight:700;letter-spacing:.04em}
/* The whole card opens the page: the name link stretches over it (.mt-name a::after), and the owner links inside stay clickable on top */
.mtable .mt-name>div>a{position:static}
.mtable tbody tr{cursor:pointer}
.mtable tbody tr:has(.mt-name>div>a:focus-visible){outline:2px solid #d8d8dc}
.mt-name{gap:12px}
.mt-name small{font-size:12px}
.mt-art{width:56px}
.mt-art.wpn-art,.mt-art.cub-art{width:72px}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.pin-knob,.hero-mark,.hero-mark img,.hero-splash span,.fcard .bar,.pc-live-dot::before{animation:none!important}.hero-splash span{opacity:1}}
.notice span{flex:1}
.notice-x{flex:none;margin-left:12px;padding:0 6px;border:0;background:none;color:inherit;font-size:22px;line-height:1;cursor:pointer}
.notice-x:hover{opacity:.65}
/* From this width the notice fits on one line, inside the empty space at the top of #main, so it moves nothing below it */
@media(min-width:1440px){#main{position:relative}#noticeBox{position:absolute;inset:0 0 auto}.notice{height:30px;margin:0;padding:0 14px;font-size:13px}}
@media(min-width:1520px){.notice{font-size:14px}}
@media(min-width:1590px){.notice{font-size:15px}}
/* Meta timeline */
#timeline{max-width:1640px}
.tl-summary{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px;margin-bottom:12px}
.tl-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tl-rank{min-width:0;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.tl-records{align-content:start;grid-template-columns:minmax(0,1fr)}
.tl-rank h3,.tl-soonbox h3{margin:8px 0 6px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.tl-seg{display:flex;flex-wrap:wrap;gap:4px}
.tl-seg .tool{padding:4px 10px;font-size:12px}
.tl-soonbox{padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.tl-soonbox h3{margin-top:0}
.tl-soonlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px}
.tl-soon{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px;background:#0f0f10;border:1px solid var(--line);border-radius:3px;font-size:12px}
.tl-soon>img{width:40px;height:40px;object-fit:cover}
.tl-soon span{min-width:0}
.tl-soon b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-soon small{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:400;color:var(--mute)}
.tl-soon small img{width:16px;height:16px;object-fit:contain}
.tl-soon em{font-style:normal;font-weight:700;text-align:right;white-space:nowrap}
.tl-soon em small{display:block;text-align:right}
.tl-soon.late em{color:#e6bd52}
.tl-soon.empty{display:block;min-height:50px;padding:4px 8px;background:transparent;border-style:dashed;font-size:11px;color:var(--mute)}
.tl-soon.empty:empty{visibility:hidden}
#timeline .calc-tabs{flex-wrap:wrap}
.tl-server{display:flex;gap:8px;margin-left:auto}
.tl-soonbox h3{display:flex;align-items:center;gap:8px}
.tl-more{padding:2px 0;background:none;border:0;font:inherit;font-size:12px;font-weight:600;letter-spacing:normal;text-transform:none;color:var(--mute);cursor:pointer}
.tl-more:hover{color:var(--txt);text-decoration:underline}
.tl-rank>.tl-more{margin-top:6px}
.tl-rank ol.all{max-height:calc(10 * 34px + 9 * 4px);overflow-y:auto;padding-right:4px}
.tl-rank ol{min-height:calc(6 * 34px + 5 * 4px)}
.tl-average.dim{opacity:.35}
.tl-averages summary{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);cursor:pointer}
.tl-averages[open] summary{margin-bottom:12px}
.tl-rank ol{display:grid;align-content:start;gap:4px;margin:0;padding:0;counter-reset:rank;list-style:none}
.tl-rank li{display:grid;grid-template-columns:16px 34px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:34px;font-size:13px;counter-increment:rank}
.tl-rank li::before{content:counter(rank);font-weight:700;color:var(--mute)}
.tl-rank li:first-child::before{color:var(--red)}
.tl-rank li img{display:block;width:34px;height:34px;padding:0;object-fit:cover;background:#0f0f10;border:1px solid var(--line)}
.tl-rank li img[data-full*="energy-type"],.tl-rank li img[data-full*="effects"]{padding:6px;object-fit:contain}
.tl-rank b{overflow:hidden;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.tl-rank em{font-style:normal;font-weight:700;white-space:nowrap}
.tl-rank li:first-child em{color:#fff}
.tl-rank li:not(:first-child) em{color:var(--mute)}
.tl-averages{align-content:start;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.tl-average+.tl-average{margin-top:14px}
.tl-average{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:4px 8px;align-items:center;font-size:13px}
.tl-average img{width:24px;height:24px;object-fit:contain}
.tl-average small{display:block;font-size:11px;color:var(--mute)}
.tl-average b{font-size:15px}
.tl-average i{grid-column:1/-1;display:block;height:4px;background:var(--red);border-radius:2px}
/* "How replacement works": four blocks in a grid, the rule across the top with the class lines drawn as icons */
.tl-help{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin:0 0 18px}
.tl-help-block.tall{grid-row:span 2}
.tl-help-block{min-width:0;padding:14px 16px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.tl-help-block.wide{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px 24px;align-items:center}
.tl-help-block.wide>h3{grid-column:1/-1}
.tl-help-block h3{margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--red)}
.tl-rule{margin:0;font-family:var(--prose);font-size:15px;line-height:1.6;color:var(--txt)}
.tl-help-lines{display:grid;gap:6px}
.tl-help-lines>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tl-help-role{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 6px;background:#0000004b;border:1px solid var(--line);border-radius:4px;font-size:13px;font-weight:700}
.tl-help-role img{width:20px;height:20px;object-fit:contain}
.tl-help-arrow{color:var(--red);font-weight:700}
.tl-notes{display:grid;gap:8px;margin:0;padding-left:16px;list-style:none;font-family:var(--prose);font-size:14px;line-height:1.55;color:var(--mute)}
.tl-notes li{position:relative}
.tl-notes li::before{content:"";position:absolute;left:-14px;top:.65em;width:5px;height:5px;background:var(--red);transform:rotate(45deg)}
.tl-notes a{color:var(--txt);text-decoration:underline}
@media(max-width:900px){.tl-help{grid-template-columns:1fr}.tl-help-block.wide{grid-template-columns:1fr}.tl-help-block.tall{grid-row:auto}}
@media(max-width:480px){.tl-help-block{padding:12px}.tl-help-lines>div{gap:4px}.tl-help-role{gap:4px;padding:3px 7px 3px 4px;font-size:12px}.tl-help-role img{width:16px;height:16px}}
.tl-chart{--lab:132px;display:grid;gap:10px;width:calc(var(--lab) + (100% - var(--lab)) * var(--z,1))}
.tl-scroll.zoomed{overflow-x:auto;padding-bottom:8px;cursor:grab}
.tl-scroll.dragging{cursor:grabbing;user-select:none}
.tl-scroll.dragging .tl-reign{pointer-events:none}
.tl-scroll.zoomed .tl-years{position:static}
.tl-scroll.zoomed .tl-row>:first-child{position:sticky;left:0;z-index:5;background:var(--panel)}
.tl-scroll.zoomed .tl-years>:first-child,.tl-scroll.zoomed .tl-marks>:first-child{background:var(--bg)}
.tl-scroll.zoomed .tl-group h2{position:sticky;left:14px;width:max-content;z-index:5}
.tl-row{display:grid;grid-template-columns:var(--lab) minmax(0,1fr);align-items:center;min-height:46px}
.tl-role{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mute)}
.tl-role img{width:20px;height:20px;object-fit:contain}
.tl-track{position:relative;height:46px;margin-right:46px}
.tl-track>i{position:absolute;top:0;bottom:0;width:1px;background:var(--line)}
.tl-track>i.mark{background:#e6bd5259}
.tl-track>i.mo{background:#2e2e3180}
.tl-years b.mo{font-size:10px;font-weight:400}
.tl-marks{min-height:36px}
.tl-marks .tl-track{height:36px}
.tl-marks b{position:absolute;top:2px;transform:translateX(-50%);padding:0 4px;background:var(--bg);font-size:10px;font-weight:400;color:#e6bd52;white-space:nowrap}
.tl-marks b.low{top:18px}
.tl-free{position:absolute;left:-2px;bottom:-3px;z-index:2;padding:0 3px;background:#6fcf8e;border-radius:2px;color:#0b0b0c;font:700 9px/12px "Quantico";text-transform:uppercase}
.tl-item .tl-free{position:static;display:inline-block;margin-left:6px;vertical-align:1px}
.tl-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:12px}
.tl-filters{display:flex;flex-wrap:wrap;gap:4px}
.tl-tools .tool.ico{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0}
.tl-tools .tool.ico img{width:22px;height:22px;object-fit:contain}
.tl-opts{margin-bottom:10px}
#timeline .calc-tabs{margin-bottom:16px}
#timeline .tog::before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--mute)}
#timeline .tog.collab::before{background:#7aa8ff}
#timeline .tog.vanguard::before{background:#c084fc}
#timeline .tog.place::before{background:#6fcf8e}
#timeline .tog.practical::before{background:#ff9f43}
.tl-zoom{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.tl-zoom b{min-width:28px;text-align:center}
.tl-zoom .tool:disabled{opacity:.4;cursor:default}
.tl-collab{background:#7aa8ff}
.tl-prac{left:auto;right:-2px;background:#e6bd52;font-style:normal}
.tl-item .tl-prac,.tl-soon .tl-prac{position:static;display:inline-block;margin-left:6px;vertical-align:1px}
.tl-chips{display:flex;flex-wrap:wrap;gap:4px}
.tl-chips span{padding:2px 6px;background:#0f0f10;border:1px solid var(--line);border-radius:3px;font-size:11px;color:#e6bd52}
.tl-watch{grid-column:1/-1}
.tl-watch ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}
.tl-watch li:not(:first-child) em{color:var(--txt)}
.tl-group:has(.tl-reign[data-line=Attacker]:hover) .tl-reign:not([data-line=Attacker]),.tl-group:has(.tl-reign[data-line=Tank]:hover) .tl-reign:not([data-line=Tank]),.tl-group:has(.tl-reign[data-line=Support]:hover) .tl-reign:not([data-line=Support]),.tl-group:has(.tl-reign[data-line=Annihilator]:hover) .tl-reign:not([data-line=Annihilator]),.tl-group:has(.tl-reign[data-line=Observer]:hover) .tl-reign:not([data-line=Observer]){opacity:.3}
.tl-link{position:absolute;top:41px;z-index:2;width:2px;margin-left:-1px;background:var(--c)}
.tl-link::before{content:"";position:absolute;left:-3px;top:-3px;width:8px;height:8px;background:var(--c);border-radius:50%}
.tl-role em{font-style:normal;color:var(--mute)}
.tl-years{min-height:22px;position:sticky;top:0;z-index:4;background:var(--bg)}
.tl-years .tl-track{height:22px}
.tl-years b{position:absolute;top:3px;transform:translateX(-50%);font-size:12px;color:var(--mute)}
.tl-group{padding:8px 12px;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--c)}
.tl-group h2{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-size:15px;color:color-mix(in srgb,var(--c) 70%,#fff)}
.tl-group h2 img{width:22px;height:22px;object-fit:contain}
.tl-reign{position:absolute;top:5px;height:36px;min-width:40px;background:color-mix(in srgb,var(--c) 24%,transparent);border-left:2px solid var(--c);color:var(--txt)}
.tl-reign.now{background:linear-gradient(90deg,color-mix(in srgb,var(--c) 50%,transparent),color-mix(in srgb,var(--c) 18%,transparent))}
.tl-reign.short{z-index:1}
.tl-reign:hover{z-index:3;background:color-mix(in srgb,var(--c) 45%,transparent)}
.tl-reign img{position:absolute;left:-2px;top:0;width:36px;height:36px;object-fit:cover;background:#0f0f10;border:1px solid var(--c)}
.tl-reign:hover img{z-index:3}
.tl-reign span{position:absolute;left:42px;right:2px;top:3px;overflow:hidden;font-size:12px;font-weight:700;line-height:1.25;white-space:nowrap}
.tl-reign small{display:block;overflow:hidden;font-size:10px;font-weight:400;text-overflow:ellipsis;color:#d6d6da}
.tl-list{display:none;gap:8px}
.tl-fold{background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--c)}
.tl-fold summary{display:flex;align-items:center;gap:8px;padding:10px 12px;font-weight:700;color:color-mix(in srgb,var(--c) 70%,#fff);cursor:pointer}
.tl-fold summary img{width:22px;height:22px;object-fit:contain}
.tl-lane{display:flex;align-items:center;gap:6px;padding:8px 12px 4px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.tl-lane img{width:18px;height:18px;object-fit:contain}
.tl-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 12px;color:var(--txt)}
.tl-item>img{width:36px;height:36px;object-fit:cover;border:1px solid var(--line)}
.tl-item.now>img{border-color:var(--c)}
.tl-item b{display:block;font-size:13px}
.tl-item small{display:block;font-size:11px;color:var(--mute)}
.tl-by{color:var(--c)!important}
.tl-item em{font-size:12px;font-style:normal;font-weight:700;white-space:nowrap}
.tl-item.now em{color:var(--c)}
@media(max-width:1000px){.tl-summary{grid-template-columns:minmax(0,1fr)}.tl-chart{--lab:96px}.tl-reign span{display:none}}
@media(max-width:760px){.tl-scroll,.tl-zoom{display:none}.tl-list{display:grid}.tl-records,.tl-watch ol{grid-template-columns:minmax(0,1fr)}.tl-tools [data-tl-now]{margin-left:0}}
/* Small phones: the watch value drops under the name, so names stay whole */
@media(max-width:400px){.tl-watch li{grid-template-columns:16px 34px minmax(0,1fr);gap:0 8px}.tl-watch li::before{grid-row:span 2}.tl-watch li img{grid-row:span 2}.tl-watch li em{grid-column:3;font-size:12px}}
/* 404.html */
.lost{align-items:center;justify-content:center;text-align:center}
.lost main{flex:none}
.lost .tool{display:inline-block;text-decoration:none}
/* Team Builder (/editor): one panel for the team, one per slot in the slot's bar color */
.ed{display:grid;gap:16px}
.ed fieldset{min-width:0;padding:14px 18px 18px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
.ed legend{float:left;width:100%;padding:0;margin-bottom:12px;font-size:15px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.ed .ed-blue{border-top-color:#19c4ff}
.ed .ed-red{border-top-color:#ff5a5a}
.ed .ed-gold{border-top-color:#ffc400}
.ed-grid{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ed .ed-team{border-radius:4px;box-shadow:0 10px 24px #0003}
/* The Team box. On a phone, one column: name, tags, battle positions, rotation. On a wider screen the name and the three
   battle positions share the first line, each position with its label inside the box; the tags follow, then the rotation */
.ed-team-layout{clear:both;display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.ed-team-name{display:grid;gap:8px;min-width:0}
.ed .ed-team-name input[name]{height:44px;font-size:19px;font-weight:700}
.ed-team-block{display:grid;gap:8px;min-width:0}
.ed-team-block>.ed-team-heading,.ed-team-name>.ed-team-heading{margin:0}
/* Leader, Starter and Focus: a row of round buttons, one per position (edRolesBody) */
.ed-role{background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:8px 10px}
.ed-role-picks{display:flex;align-items:center;gap:8px}
.ed-role-pick{--slot:#9a9aa0;position:relative;display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;cursor:pointer;opacity:.5;transition:opacity .15s,box-shadow .15s}
.ed-role-pick.ed-blue{--slot:#19c4ff}.ed-role-pick.ed-red{--slot:#ff5a5a}.ed-role-pick.ed-gold{--slot:#ffc400}
.ed-role-pick input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.ed-role-pick img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:50%;pointer-events:none}
.ed-role-pick:hover{opacity:.85}
.ed-role-pick:has(input:checked){opacity:1;box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--slot)}
.ed-role-pick:has(input:focus-visible){outline:2px solid #fff;outline-offset:4px}
.ed-role-pick.ed-empty{background:#000;border-radius:50%}
.ed-role-pick.ed-empty img{object-fit:contain;transform:scale(1.25)}
.ed-role-pick:has(.ed-role-auto){width:auto;padding:0 9px;border-radius:4px;border:1px solid var(--line)}
.ed-role-auto{font:700 11px "Quantico";color:#e8e8ec;pointer-events:none}
.ed-team-rotation{grid-column:1/-1;padding-top:16px;border-top:1px solid var(--line)}
@media(min-width:761px){
  .ed-team-layout{grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,220px));gap:16px 10px}
  .ed-team-name{grid-row:1;grid-column:1}
  .ed-team-name>.ed-team-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ed .ed-team-name input[name]{height:52px}
  .ed .ed-team-roles{display:contents}
  .ed-team-roles>.ed-team-heading{display:none}
  .ed-team-roles .ed-field{grid-row:1;position:relative;gap:0}
  .ed-team-roles .ed-field>span{position:absolute;top:7px;left:12px;color:var(--mute);font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;pointer-events:none}
  .ed .ed-team-roles .ed-role{display:flex;align-items:center;justify-content:space-between;gap:8px;height:52px;padding:0 10px 0 12px}
  .ed-team-roles .ed-role>span{position:static}
  .ed-team-roles .ed-role-picks{gap:6px}
  .ed-team-roles .ed-role-pick{width:32px;height:32px}
  .ed-team-roles .ed-role-pick:has(.ed-role-auto){width:auto}
  .ed .ed-team-sub{grid-row:2;grid-column:1/-1;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:14px}
  .ed .ed-team-sub input{width:100%;max-width:760px}
  .ed-team-tags{grid-row:3;grid-column:1/-1;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:14px}
  .ed-team-tags>.ed-team-heading,.ed-team-sub>.ed-team-heading{grid-column:auto}
  .ed-team-rotation{grid-row:4}
}
/* The tag field: chips and a typing box inside one input-like box, with the suggestions in a list that floats under it */
.ed-tag-field{position:relative;min-width:0;max-width:760px}
.ed-team-tags .ed-tags{min-height:44px;padding:6px;background:var(--bg);border:1px solid var(--line);border-radius:4px;gap:6px;cursor:text}
.ed-team-tags .ed-tags:focus-within{border-color:#ffffff73}
.ed-tag-chip{display:inline-flex;align-items:center;gap:2px;height:30px;padding:0 4px 0 12px;background:#cf142433;border:1px solid var(--red);border-radius:4px;color:#fff;font:600 13px "Quantico";cursor:default}
.ed-tag-chip button{display:grid;place-items:center;width:22px;height:22px;padding:0;background:none;border:0;border-radius:50%;color:#fff;font-size:16px;line-height:1;cursor:pointer}
.ed-tag-chip button:hover{background:#ffffff26}
.ed .ed-tags .ed-tag-input{flex:1 1 160px;width:auto;height:30px;padding:0 6px;background:none;border:0}
.ed .ed-tags .ed-tag-input:focus{outline:none}
.ed-tag-full{padding:0 6px;color:var(--mute);font-size:12px}
.ed-tag-list{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;max-height:300px;overflow:auto;margin:0;padding:4px;list-style:none;background:#1c1c1f;border:1px solid var(--line);border-radius:4px;box-shadow:0 12px 30px #000b}
.ed-tag-list[hidden]{display:none}
.ed-tag-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:4px;color:#dcdce0;font:600 14px "Quantico";cursor:pointer}
.ed-tag-option small{color:var(--mute);font-size:12px;white-space:nowrap}
.ed-tag-option b{color:#fff}
.ed-tag-option.on,.ed-tag-option:hover{background:#cf142433;color:#fff}
/* "Team guide" below the cards, a panel like the Team box: Write/Preview pills and the formatting buttons over the text */
.ed-guide{margin-top:28px;padding:14px 18px 18px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
.ed-guide-head{margin-bottom:12px}
.ed-guide-title{margin:0;font-size:15px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.ed-guide-head p{margin:4px 0 0;color:var(--mute);font-size:13px}
.md-editor{border:1px solid var(--line);border-left:2px solid var(--red);border-radius:4px;overflow:hidden;background:var(--bg)}
.md-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;background:var(--bg);border-bottom:1px solid var(--line)}
.md-mode{min-height:30px;padding:0 14px;background:transparent;border:1px solid var(--line);border-radius:4px;color:#dcdce0;font:600 12px "Quantico";cursor:pointer}
.md-mode:hover{border-color:#fff;color:#fff}
.md-mode.on{background:#cf142433;border-color:var(--red);color:#fff}
.md-tools{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-left:14px}
.md-tools.off{opacity:.35;pointer-events:none}
.md-sep{width:14px}
.md-tool{display:grid;place-items:center;width:30px;height:30px;padding:0;background:none;border:0;border-radius:4px;color:#dcdce0;cursor:pointer}
.md-tool:hover,.md-tool:focus-visible{background:#ffffff14}
.md-tool svg{width:15px;height:15px;fill:currentColor}
.md-tool .md-yt{width:22px;height:16px;fill:#e62117}
.md-glyph{font:700 16px Georgia,"Times New Roman",serif}
.ed .md-editor textarea.md-text{display:block;height:auto;min-height:320px;padding:12px 14px;border:0;border-radius:0;background:#121214;font:15px/1.55 var(--prose)}
.ed .md-editor .md-text[hidden]{display:none}
.md-preview{min-height:320px;padding:14px 16px;background:#121214}
.ed .md-notes-editor textarea.md-text,.md-notes-editor .md-preview{min-height:225px}
.md-notes-editor .md-preview{font-size:14px;line-height:1.5;color:#dcdaf0}
.md-notes-editor .md-tools{margin-left:6px}
.ed-guide>.ed-hint{margin-top:8px}
.ed-tags,.ed-page-options,.ed-order-adds,.ed-order-line,.ed-order-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ed-order-tool{padding:7px 14px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:#dcdce0;font:600 12px "Quantico";cursor:pointer}
.ed-order-tool:hover:not(:disabled),.ed-page-option:hover,.ed-order-add:hover:not(:disabled){border-color:#fff;color:#fff}
.ed-page-option.on{background:#cf142433;border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red);color:#fff}
.ed-order-tool:disabled,.ed-order-add:disabled{opacity:.4;cursor:default}
.ed-page-groups{display:flex;flex-wrap:wrap;gap:12px 22px}
.ed-page-group{display:grid;gap:5px;min-width:0}
.ed-page-group>small{color:var(--mute);font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.ed-page-option,.ed-order-add{display:grid;justify-items:center;gap:3px;width:68px;padding:6px 4px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:#dcdce0;font:600 10px/1.2 "Quantico";cursor:pointer}
.ed-page-option img{width:34px;height:34px;object-fit:contain}
.ed-order-add img{width:44px;height:44px;object-fit:cover;object-position:top;border-radius:50%}
.ed-order-empty{display:grid;place-items:center;width:44px;height:44px;border:1px dashed var(--line);border-radius:50%;font-size:20px;color:var(--mute)}
.ed-order-line{min-height:62px;padding:8px;background:var(--bg);border:1px solid var(--line);border-radius:4px}
.ed-order-hint{color:var(--mute);font-size:12px}
.ed-order-arrow{color:var(--mute);font-style:normal}
.ed-order-chip{position:relative;display:grid;justify-items:center;gap:2px;width:60px;padding:4px;background:#0000004b;border:1px solid var(--line);border-radius:4px;color:#fff;font:600 10px "Quantico";cursor:pointer}
.ed-order-chip:hover{border-color:var(--red)}
.ed-order-chip img{width:40px;height:40px;object-fit:cover;object-position:top;border-radius:50%}
.ed-order-chip b{position:absolute;top:2px;left:4px;font-size:10px;color:var(--mute)}
.ed-order-chip span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-order-bar{margin-top:8px}
.ed-order-label{color:var(--mute);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.ed .ed-order-add{display:inline-flex;align-items:center;gap:7px;width:auto;height:34px;padding:0 12px 0 3px;border-radius:4px;border-left:3px solid var(--slot);font-size:12px}
.ed .ed-order-add.ed-blue{--slot:#19c4ff}.ed .ed-order-add.ed-red{--slot:#ff5a5a}.ed .ed-order-add.ed-gold{--slot:#ffc400}
.ed .ed-order-add img,.ed .ed-order-add .ed-order-empty{width:26px;height:26px;font-size:14px}
.ed-order-adds{gap:6px}
.ed-order-bar .ed-order-tool:first-of-type{margin-left:auto}
.ed-team-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ed-team-fields>.ed-field.wide{grid-column:1/-1}
.ed-team-roles{grid-column:1/-1;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px;padding-top:16px;border-top:1px solid var(--line)}

.ed-team-heading{grid-column:1/-1;margin:0 0 2px;color:var(--mute);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.ed-field{display:grid;align-content:start;gap:5px;min-width:0;font-size:13px;color:#dcdce0}
.ed-field.wide,.ed-grid>.wide,.ed-hint{grid-column:1/-1}
.ed :is(select,input:not([type=radio]),textarea){width:100%;min-width:0;height:38px;padding:0 10px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 14px "Quantico"}
.ed select{cursor:pointer}
.ed textarea{height:auto;min-height:225px;padding:8px 10px;resize:vertical;font-weight:400;line-height:1.4}
.ed ::placeholder{color:#6c6c72}
.ed-hint{color:var(--mute);font-size:13px}
/* the cards and their inline equipment pickers */
.ed-studio{display:block}
.ed-work{min-width:0;display:grid;gap:14px}
.ed-work .ed-tools{margin-top:0}
#edStage{position:relative}
.ed-picker{position:absolute;z-index:20;display:grid;grid-template-columns:minmax(0,1fr) 30px;grid-template-rows:auto 38px minmax(0,1fr);gap:8px;padding:10px;background:var(--panel);border:1px solid var(--line);box-shadow:0 6px 24px #000b;max-height:min(70vh,500px)}
.ed-picker[hidden]{display:none}
.ed-picker-head{display:grid;align-content:center;gap:2px;min-width:0;color:var(--txt)}
.ed-picker-head strong{font-size:12px}
.ed-picker-head small{font-size:10px;color:var(--mute)}
.ed-picker>input{grid-column:1/-1}
.ed-picker-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:6px;min-height:0;max-height:min(52vh,360px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--red) #0000}
.ed-picker-option[hidden]{display:none}
.ed-picker-more{grid-column:1/-1;padding:7px;background:#0000004b;border:1px dashed #ffffff40;color:var(--txt);font:600 11px/1.2 "Quantico";cursor:pointer}
.ed-picker-more[hidden]{display:none}
.ed-picker-more:hover,.ed-picker-more:focus-visible{border-color:#fff;outline:1px solid #ffffff80;outline-offset:-2px}
.ed-picker-option{position:relative;min-width:0;display:grid;grid-template-rows:44px minmax(24px,auto);align-content:start;justify-items:center;gap:4px;padding:4px;background:#0000004b;border:1px solid var(--line);color:#dcdce0;font:600 9px/1.2 "Quantico";text-align:center;cursor:pointer}
.ed-picker-option:hover,.ed-picker-option:focus-visible{border-color:#fff;outline:2px solid #ffffff80;outline-offset:-2px;color:#fff}
.ed-picker-option.on{background:#cf142433;border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red);color:#fff}
.ed-picker-option.on::after{content:"✓";position:absolute;top:2px;right:2px;display:grid;place-items:center;width:14px;height:14px;background:var(--red);border-radius:50%;color:#fff;font:700 9px/1 "Quantico"}
.ed-picker-option img{display:block;width:100%;height:44px;object-fit:contain}
.ed-picker-option>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ed-picker-noart{display:grid;place-items:center;width:34px;height:34px;align-self:center;border:1px solid var(--line);border-radius:50%;font:400 24px/1 "Quantico";color:var(--mute)}
.ed-picker-close{align-self:start;width:30px;height:30px;background:var(--bg);border:1px solid var(--line);color:var(--txt);cursor:pointer}
.ed-picker-empty{grid-column:1/-1;margin:4px 0;color:var(--mute);font-size:12px}
.ed-picker-empty[hidden]{display:none}
/* the cards as drop targets */
.ed-live .desc:empty{display:none}
/* The card itself does nothing in the editor: only its slots, tags and buttons show the hand */
.ed-live .card{transition:opacity .18s;cursor:default}
/* The name always takes two lines, so the card keeps its height whichever construct is picked */
.ed-live .card h3{display:flex;align-items:center;justify-content:center;height:2.4em;line-height:1.2;overflow:hidden}
.ed-live .sym{max-width:calc(70*var(--u))}
.ed-live .portrait{width:calc(130*var(--u));height:calc(130*var(--u))}
.ed-live .rank{max-width:calc(92*var(--u))}
/* The Leap switch sits where the badge goes, over the portrait's foot; off, it shows only as an outline */
.ed-live .top{position:relative}
.ed-live .ed-leap{z-index:3;min-height:24px;font-size:max(11px,calc(12*var(--u)));border:0;cursor:pointer}
.ed-live .ed-leap.off{background:#0f0f10d9;color:#ffb636b3;box-shadow:inset 0 0 0 1px #ffb63680}
.ed-live .ed-leap.off::before{background:none;box-shadow:inset 0 0 0 1px currentColor}
.ed-live .ed-leap:hover{filter:brightness(1.2)}
.ed-live .ed-leap:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.ed-live .card:hover,.ed-live .card:active{transform:none;filter:none}
.ed-live .card{-webkit-user-select:none;user-select:none}
.ed-live .tag[data-ed-role]{cursor:grab}
.ed-live .tag[data-ed-role]:active{cursor:grabbing}
/* Mouse dragging: the icon's own spot empties, a full-strength copy follows the pointer, and where it can land is outlined */
.ed-live .ed-drag-origin{visibility:hidden}
.ed-ghost{position:fixed;z-index:1000;margin:0;pointer-events:none;box-shadow:0 10px 26px #000c;outline:2px solid #fff;outline-offset:1px}
.ed-ghost.back{transition:transform .2s ease-out}
.ed-dragging,.ed-dragging *{cursor:grabbing!important;-webkit-user-select:none!important;user-select:none!important}
.ed-live .card.ed-drop-on{outline:2px dashed #fff;outline-offset:3px}
.ed-live .slot.ed-drop-on{z-index:2;outline:2px dashed #fff;outline-offset:1px}
/* Swapping positions: a round button on the edge two cards share; on phones, arrows at the sides of the card's name */
.ed-swap{position:absolute;top:calc(144*var(--u));right:0;z-index:4;display:grid;place-items:center;width:32px;height:32px;padding:0;background:#0f0f10;border:1px solid #ffffff66;border-radius:50%;color:#fff;font:700 16px/1 "Quantico";cursor:pointer;transform:translate(50%,-50%);transition:background .12s,border-color .12s}
.ed-swap:hover,.ed-swap:focus-visible{background:var(--red);border-color:#fff}
.ed-move{display:none}
.ed-sliding .ed-swap{display:none}
.ed-sliding .ed-move{display:block}
.ed-move button{position:absolute;top:calc(42*var(--u) - 17px);z-index:4;display:grid;place-items:center;width:34px;height:34px;padding:0;background:#0f0f10;border:1px solid #ffffff55;border-radius:4px;color:#fff;font:700 22px/1 "Quantico";cursor:pointer}
.ed-move .ed-move-left{left:6px}
.ed-move .ed-move-right{right:6px}
.ed-picker-option.fit{border-color:#7aa7ff80}
.ed-picker-option.fit .ed-badge{background:#2b4c86;color:#fff}
.ed-picker-option.fit img{margin-top:9px;height:35px}
.ed-live [data-ed-drop]{position:relative;cursor:pointer;transition:outline-color .12s,filter .12s}
.ed-live [data-ed-drop]:hover,.ed-live [data-ed-drop]:focus-visible{z-index:2;outline:2px solid #ffffffa6;outline-offset:1px;filter:brightness(1.25)}
.ed-live [data-ed-drop]:focus-visible{outline-color:var(--red);box-shadow:0 0 0 2px #000}
.ed-live .ed-cub-skill-selected{outline:2px solid var(--red);outline-offset:1px;z-index:2}
/* Press and hold on a touch screen greys a C.U.B. skill out: the icon fades while the finger stays, and the phone's own image menu stays shut */
.ed-live [data-ed-cub-skill-index]{-webkit-touch-callout:none}
/* The bar for a picked C.U.B. skill floats just under its row, so picking one doesn't push the card taller */
.ed-live .kit{position:relative}
.ed-live .ed-cub-actions{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 4px);display:flex;align-items:center;gap:6px;padding:6px;background:#1c1c1f;border:1px solid var(--red);border-radius:4px;box-shadow:0 6px 18px #000b}
.ed-live .ed-cub-actions span{flex:1;min-width:0;font-size:11px;line-height:1.25;color:var(--mute)}
.ed-live .ed-cub-actions button{min-height:36px;padding:0 12px;background:#2a2a30;border:1px solid #ffffff50;border-radius:4px;color:#fff;font:700 12px "Quantico";cursor:pointer}
.ed-live .ed-cub-actions button[data-ed-cub-action=off]{background:var(--red);border-color:var(--red)}
.ed-live .ed-cub-actions button:hover,.ed-live .ed-cub-actions button:focus-visible{filter:brightness(1.2);outline:1px solid #fff}
.ed-live [data-ed-cub-skill-index].ed-holding{filter:brightness(.6);transform:scale(.92);transition:filter .45s linear,transform .45s linear}
.ed-live .ed-memory-group{flex:1.2 1 0;min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:4px}
.ed-live .mem{width:100%;min-width:0;min-height:0;flex:1;margin:0}
.ed-live .ed-memory-resonance-button{width:100%;min-height:30px;padding:4px 8px;background:#17171b;border:1px solid #ffffff50;border-left:3px solid #55b7ff;color:var(--txt);font:700 10px "Quantico";letter-spacing:.06em;text-align:left;cursor:pointer}
.ed-live .ed-memory-resonance-button:hover,.ed-live .ed-memory-resonance-button:focus-visible,.ed-live .ed-memory-resonance-button[aria-expanded=true]{background:#292930;border-color:#fff;outline:1px solid #ffffff80;outline-offset:-2px}
.ed-res-menu{grid-template-columns:minmax(0,1fr) 30px;grid-template-rows:auto minmax(0,1fr);max-height:min(88vh,680px)}
.ed-res-menu.has-options{grid-template-rows:auto minmax(0,1fr) minmax(0,auto)}
.ed-res-menu-list{grid-column:1/-1;display:grid;align-content:start;gap:3px;min-height:0;max-height:min(56vh,400px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--red) #0000}
/* Compact rows: the side is named once in the column heads, so all six slots fit without scrolling while the options are open */
.ed-res-menu.has-options .ed-res-menu-list{max-height:none}
.ed-res-menu-cols{position:sticky;top:0;z-index:1;display:grid;grid-template-columns:52px repeat(2,minmax(0,1fr));gap:4px;padding:2px 3px 3px;background:var(--panel)}
.ed-res-menu-cols small{padding-left:8px;font:700 10px/1.2 "Quantico";letter-spacing:.08em}
.ed-res-menu-cols small:nth-child(2){color:#55b7ff}
.ed-res-menu-cols small:nth-child(3){color:#ffc400}
.ed-res-menu-row{display:grid;grid-template-columns:52px repeat(2,minmax(0,1fr));align-items:center;gap:4px;padding:2px;background:#0000004b;border:1px solid var(--line)}
.ed-res-menu-row>strong{font-size:12px}
.ed-res-menu-row>button{min-width:0;min-height:40px;display:grid;align-content:center;gap:2px;padding:2px 8px;background:#17171b;border:1px solid #ffffff30;color:var(--txt);font:600 11px/1.2 "Quantico";text-align:left;overflow-wrap:anywhere;cursor:pointer}
.ed-res-menu-row>button[aria-pressed=true]{background:#292930;border-color:#fff;box-shadow:inset 0 0 0 1px var(--red)}
.ed-res-menu-row>button:first-of-type{border-left:3px solid #55b7ff}
.ed-res-menu-row>button:last-of-type{border-left:3px solid #ffc400}
.ed-res-menu-row>button:hover,.ed-res-menu-row>button:focus-visible{background:#35353d;border-color:#fff;outline:1px solid #ffffff80;outline-offset:-2px}
.ed-res-menu-row>button small{font-size:9px;color:var(--mute);letter-spacing:.06em}
.ed-res-menu-options{grid-column:1/-1;display:grid;gap:6px;min-height:0}
.ed-res-menu-choice-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;font-size:13px}
.ed-res-menu-options>.ed-picker-options{max-height:min(30vh,220px);grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
.ed-res-menu-options .ed-picker-option{font-size:11px}
.ed-res-menu-options .ed-picker-option>small{color:var(--mute);font:600 10px/1.2 "Quantico"}
#exportPreview{position:fixed;inset:0;z-index:45;display:grid;place-items:center;padding:16px;background:#000000cc}
.xp-panel{display:grid;gap:10px;width:min(1100px,100%);max-height:100%;overflow:auto;padding:16px;background:var(--panel);border:1px solid var(--line);border-top:2px solid var(--red)}
.xp-panel h2{font-size:16px}
.xp-field{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:13px;color:var(--mute)}
.xp-field select{min-width:200px;max-width:100%;height:36px;padding:0 10px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 15px "Quantico";color-scheme:dark;cursor:pointer}
@media(max-width:560px){.xp-field select{flex:1;font-size:16px}}
.xp-frame{min-height:0;overflow:auto;background:#000}
.xp-frame canvas{display:block;width:100%;height:auto}
.xp-meta{color:var(--mute);font-size:12px;overflow-wrap:anywhere}
.xp-status{min-height:1.4em;font-size:13px;color:var(--txt)}
.xp-actions{display:flex;flex-wrap:wrap;gap:8px}
.kit>.cell.off .slot{filter:grayscale(1) brightness(.55);opacity:.7}
.wh-arrows{position:absolute;top:6%;right:6%;width:13%;display:flex;flex-direction:column;filter:drop-shadow(0 0 2px #000c);pointer-events:none}.wh-arrows img{display:block;width:100%;height:auto}.wh-arrows img+img{margin-top:-30%}
.ed-picker-option .stars{position:absolute;left:4px;width:calc(100% - 8px);top:calc(4px + 44px - 7px);height:auto;pointer-events:none}
.ed-picker-option.hot{border-color:#ffc400;background:#ffc40018}
.ed-badge{position:absolute;top:0;left:0;right:0;z-index:1;padding:1px 2px;background:#ffc400;color:#000;font:700 8px/1.3 "Quantico";font-style:normal;text-transform:uppercase;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ed-picker-option.hot img{margin-top:9px;height:35px}
/* "Apply to all 6": a toggle the size of a button, red when on, so it reads as a choice and not as a footnote */
.ed .ed-res-menu .ed-res-menu-all input[type=checkbox],.ed-res-menu .ed-res-menu-all input[type=checkbox]{flex:none;width:18px;height:18px;min-width:18px;padding:0;margin:0;accent-color:var(--red);cursor:pointer}
.ed-res-menu-all{flex:none;white-space:nowrap;display:flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;background:#17171b;border:1px solid #ffffff40;font:700 13px/1.2 "Quantico";letter-spacing:.02em;color:var(--txt);cursor:pointer;user-select:none;transition:background .15s,border-color .15s}
.ed-res-menu-all:hover,.ed-res-menu-all:focus-within{background:#25252b;border-color:#fff}
.ed-res-menu-all:has(input:checked){background:#5a141c;border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
@media(max-width:600px){.ed-res-menu-all{flex:1 1 100%;justify-content:center;min-height:44px}}
.ed-res-chip.faint{opacity:.55}
.ed-res-chip{display:flex;align-items:center;gap:8px;min-width:0}
.ed-res-chip img{flex:none;width:34px;height:34px;object-fit:contain}
.ed-live .res{grid-template-columns:minmax(0,1fr);grid-template-rows:1fr 1fr;grid-auto-flow:row;align-items:center;gap:4px}
.ed-live .ed-res-total{display:grid;gap:2px;min-width:0;text-align:center;line-height:1.15}
.ed-live .ed-res-total small{font-size:calc(9*var(--u));color:var(--mute)}
.ed-live .ed-res-total span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:calc(9*var(--u))}
#edDetail{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
.ed-detail-fields{clear:both;display:grid;gap:12px}
@media(min-width:981px){.ed-studio #edStage{--pad:0px}}
@media(min-width:981px){#edDetail{grid-template-columns:repeat(3,minmax(0,1fr))}}
.ed-tools{flex-wrap:wrap;align-items:center;gap:8px}
.ed-tools .tool:disabled{cursor:default}
/* Bots fill in every field they find; people never see this one */
.ed-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media(max-width:760px){.ed-team-layout{grid-template-columns:minmax(0,1fr)}.ed-team-roles{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.ed fieldset{padding:12px 12px 14px}.ed-team-fields,.ed-team-roles{grid-template-columns:minmax(0,1fr)}.ed-team-fields>.ed-field.wide{grid-column:auto}.ed :is(select,input:not([type=radio]),textarea){font-size:16px}}
@media(max-width:600px){#edDetail{display:flex;grid-template-columns:1fr;gap:12px;padding-inline:max(0px,calc((100% - var(--ed-slide-width,84%))/2));overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}#edDetail::-webkit-scrollbar{display:none}.ed-detail{flex:0 0 var(--ed-slide-width,84%);scroll-snap-align:center;scroll-snap-stop:always}.ed-live .ed-memory-group{flex:0 0 min(100%,222px);margin-inline:max(0px,calc(50% - 111px))}.ed-res-menu-row{grid-template-columns:minmax(58px,.55fr) repeat(2,minmax(0,1fr));gap:4px}.ed-res-menu-row>button{min-height:42px;padding:4px;font-size:10px}}

/* ---------- construct page ---------- */
/* .acard .slot img is taller than .slot .stars, so the star bar covered the weapon art of the cards */
.acard .slot .stars{height:auto}
.cx-page{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:28px;align-items:start;margin-top:14px;position:relative;isolation:isolate}
/* Phylotree frames: the faction emblem, faded in the middle of the page like the game's character screen (PHYLOTREE in assets-data.js) */
.cx-page>.cx-phylo{position:absolute;z-index:-1;top:-50px;left:50%;width:min(640px,100%);height:auto;transform:translateX(-50%);opacity:.15;pointer-events:none;user-select:none}
@media(max-width:900px){.cx-page>.cx-phylo{width:min(480px,100%)}}
.cx-side{display:grid;gap:12px;min-width:0;position:sticky;top:20px}
.cx-side>.slot{aspect-ratio:1}
.cx-main{min-width:0}
.cx-main>h2.grp:first-child{margin-top:0}
.cx-attrs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cx-attr{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:4px;min-width:0}
.cx-attr .chip-icon{width:34px;height:34px}
.cx-attr .chip-icon img{width:34px;height:34px}
.cx-attr .chip-icon b{font-size:26px}
.cx-attr small{display:block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.cx-attr span{font-weight:700}
/* Next to the portrait on tablets a tile is about 120px wide: smaller icon and padding so "Glaciation" stays inside */
.cx-attr>div{min-width:0;overflow-wrap:anywhere}
.cx-attrs{container-type:inline-size}
@container (max-width:340px){.cx-attr{gap:7px;padding:8px}.cx-attr .chip-icon,.cx-attr .chip-icon img{width:24px;height:24px}.cx-attr .chip-icon b{font-size:20px}.cx-attr span{font-size:14px}}
.cx-gear{display:grid;gap:10px}
/* The C.U.B. card is a link (a.wpn, with the 96px column of the weapon list): same 56px icon column as the weapon type card */
.cx-gear a.wpn{grid-template-columns:56px minmax(0,1fr);gap:0 14px}
/* The memory card: the 5:7 piece and zoom of an equipped memory (.mem .slot) */
.cx-mem .slot{height:auto;aspect-ratio:5/7;border:2px solid #000}
.cx-mem .slot img{object-fit:cover;transform:scale(1.07)}
.cx-mem .slot img[data-full$=".webp"]{transform:scale(1.34)}
.cx-related{padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.cx-related small{display:block;margin-bottom:8px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.cx-related>div{display:flex;flex-wrap:wrap;gap:8px}
.cx-related .slot{width:56px;height:56px;border-radius:4px;transition:border-color .2s}
.cx-related .slot:hover{border-color:var(--red)}
/* Links to the element and Effect pages of Teams */
/* Character picker on top of a construct page: one portrait per character, the current one in red */
.cpk{position:relative;margin:28px 0 0;padding:10px 40px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.cpk-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 4px}
.cpk.closed .cpk-grid{display:none}
.cpk.closed{padding-block:6px;min-height:34px}
.cpk-toggle{position:absolute;top:6px;right:6px;width:28px;height:28px;display:grid;place-items:center;background:none;border:1px solid var(--line);border-radius:4px;color:var(--mute);cursor:pointer;font-size:12px}
.cpk-toggle:hover{color:var(--txt);border-color:#5a5a62}
.cpk.closed .cpk-toggle span{display:inline-block;transform:rotate(180deg)}
.cpk-item{display:flex;flex-direction:column;align-items:center;gap:3px;width:84px;color:var(--mute)}
.cpk-item .slot{width:76px;height:76px;border-radius:4px;border:2px solid transparent;transition:border-color .2s}
.cpk-item .slot img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
/* Long names ("BLACK★ROCK SHOOTER") wrap instead of being cut */
.cpk-name{width:calc(100% + 12px);font-size:11px;font-weight:700;line-height:1.2;text-align:center;overflow-wrap:break-word}
.cpk-item:hover .slot{border-color:#5a5a62}
.cpk-item:hover{color:var(--txt)}
.cpk-item.on .slot{border-color:var(--red);box-shadow:0 0 0 1px var(--red),0 0 12px #e0303080}
@media(max-width:760px){.cpk{padding:10px 8px 10px}.cpk-grid{padding-top:26px}.cpk-item{width:64px}.cpk-item .slot{width:58px;height:58px}.cpk-name{font-size:10px}}
/* Basic combo: steps (icon over its caption) joined by arrows, each row of the game's tip card on its own line */
.cx-combo{display:grid;gap:14px;padding:16px 18px;background:var(--panel);border:1px solid var(--line)}
.cb-row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 8px}
.cb-step{display:grid;justify-items:center;gap:6px;max-width:116px}
.cb-icon{position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#000;border:1px solid var(--line)}
.cb-icon img{width:44px;height:44px;object-fit:contain}
.cb-icon.wide{width:116px;border-radius:0}
.cb-icon.wide img{width:100px}
.cb-n{position:absolute;right:-6px;bottom:-4px;padding:0 4px;font-size:11px;line-height:16px;color:var(--txt);background:var(--red)}
.cb-step figcaption{font-size:12px;line-height:1.3;color:var(--mute);text-align:center}
.cb-join{display:grid;justify-items:center;align-content:start;gap:2px;min-height:52px;padding-top:16px;max-width:120px}
.cb-join:has(small){padding-top:0;align-content:center}
.cb-join b{font-size:18px;line-height:1;color:var(--acc)}
.cb-join small{font-size:11px;line-height:1.25;color:var(--mute);text-align:center}
.cb-note{margin-top:-6px;font-size:12px;color:var(--mute)}
.cx-tabs{display:flex;flex-wrap:wrap;gap:8px}
/* Like the game's skill screen: the icons of the tab in a column on the left, every skill of the tab open and full width on the right */
.cx-skills{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:start;margin-top:12px}
.cx-sk-rail{position:sticky;top:20px;display:grid;gap:12px}
/* Each icon with the type of its skill below it */
.cx-sk-rail button{display:grid;justify-items:center;gap:5px;width:72px;padding:0;background:none;border:0;font:inherit;color:var(--mute);cursor:pointer}
.cx-sk-rail .ic{position:relative;display:grid;place-items:center;width:56px;height:56px;background:var(--panel);border:1px solid var(--line);transition:border-color .2s}
.cx-sk-rail .ic img{width:100%;height:100%;object-fit:contain}
.cx-sk-rail small{font-size:10px;font-weight:700;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;text-align:center}
.cx-sk-rail button:hover .ic,.cx-sk-rail button:focus-visible .ic{border-color:var(--red)}
.cx-sk-rail button.on small{color:var(--txt)}
/* The marked icon gets the corner brackets of the game */
.cx-sk-rail button.on .ic::before,.cx-sk-rail button.on .ic::after{content:"";position:absolute;width:10px;height:10px;border:2px solid #fff;pointer-events:none}
.cx-sk-rail button.on .ic::before{top:-6px;left:-6px;border-right:0;border-bottom:0}
.cx-sk-rail button.on .ic::after{right:-6px;bottom:-6px;border-left:0;border-top:0}
.cx-sk-list{min-width:0}
.cx-skill{margin-bottom:12px;padding:16px 20px;background:var(--panel);border:1px solid var(--line);scroll-margin-top:16px}
.cx-sk-top{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px;align-items:center}
.cx-sk-top .slot{aspect-ratio:1}
.cx-level{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--mute)}
.cx-level b{min-width:2ch;color:var(--txt);text-align:right}
.cx-level input{width:110px;accent-color:var(--red)}
/* A narrow skill card (tablets, where the side column takes room) puts the level slider on its own row, as phones do */
.cx-skill{container-type:inline-size}
@container (max-width:440px){.cx-sk-top{grid-template-columns:56px minmax(0,1fr);gap:12px}.cx-sk-top .cx-level{grid-column:1/-1}}
.cx-skill .kind{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.cx-skill h3{font-size:20px}
.cx-sk-body{margin-top:10px;font-size:14px;line-height:1.55;color:#dcdaf0}
.cx-sk-body h4{margin-top:10px;font-size:14px;color:#fff}
.cx-sk-body h4:first-child{margin-top:0}
/* Icons of a skill's moves (BETA_PREVIEW textIcons): before a heading, or small inside a line */
.sk-icons{display:inline-flex;gap:4px;vertical-align:middle;margin-right:6px}
.sk-icons img{width:30px;height:30px;object-fit:contain}
.cx-sk-body h4 .sk-icons img{width:56px;height:56px}
.cx-sk-body h4.sk-icon-head{display:flex;align-items:center}
/* A skill whose card shows more than one icon (BETA_PREVIEW headIcons) */
.cx-sk-icons{display:flex;gap:6px}
.cx-sk-top:has(.cx-sk-icons){grid-template-columns:auto minmax(0,1fr) auto}
.cx-sk-icons .slot{width:72px;aspect-ratio:1}
@container (max-width:440px){.cx-sk-top:has(.cx-sk-icons){grid-template-columns:auto minmax(0,1fr)}.cx-sk-icons .slot{width:56px}}
.cx-sk-body .cond{display:inline-block;margin-left:8px;padding:1px 7px;border:1px solid var(--line);border-radius:3px;font-size:12px;font-weight:600;color:var(--mute)}
.cx-sk-body p,.cx-sk-body ul{margin-top:3px}
/* Beta skills (BETA_PREVIEW): the warning above them, the Chinese names and the equipment seen on the test server */
.beta-note{margin-bottom:16px;padding:12px 16px;background:var(--panel);border:1px solid var(--line);border-left:4px solid #eecf22;font-family:var(--prose);font-size:14px;line-height:1.45;color:#dcdaf0}
.beta-note b{color:#eecf22}
.beta-note p+p{margin-top:4px}
.beta-note .beta-src{color:var(--mute);font-size:13px}
.beta-note a{color:inherit;text-decoration:underline}
.cx-sk-list>.beta-note{margin-bottom:12px}
.beta-changes{margin-top:10px;padding:8px 12px;border-left:3px solid #eecf22;background:rgba(238,207,34,.06);font-family:var(--prose);font-size:13px;line-height:1.45;color:#dcdaf0}
.beta-changes b{color:#eecf22}
.beta-changes p+ul+p{margin-top:8px}
.beta-changes ul{margin:4px 0 0;padding:0;list-style:none}
.beta-changes li+li{margin-top:3px}
.beta-changes li{display:flex;align-items:flex-start;gap:6px}
.beta-kind{flex:none;min-width:58px;margin-top:1px;padding:0 5px;border-radius:3px;font-size:11px;font-weight:700;line-height:1.5;text-align:center;color:#111;background:#eecf22}
.beta-kind.new{background:#5fd68a}
.beta-kind.removed{background:#c9c6d6}
.beta-kind.fixed{background:#7fb4ff}
/* The exact part of a skill text a beta version changed (yellow) or added (green) */
.beta-mark{color:inherit;padding:0 1px;border-radius:2px;background:rgba(238,207,34,.16);box-shadow:inset 0 -2px 0 #eecf22}
.beta-mark.new{background:rgba(95,214,138,.14);box-shadow:inset 0 -2px 0 #5fd68a}
/* The number of a change's note: after its highlight in the text, and before the note */
.beta-n{display:inline-block;min-width:15px;margin-left:2px;padding:0 3px;border-radius:3px;background:#eecf22;color:#111;font-family:var(--prose);font-size:10px;font-weight:700;line-height:1.45;text-align:center;vertical-align:super}
.beta-n.new{background:#5fd68a}
.beta-n.removed{background:#c9c6d6}
.beta-n.fixed{background:#7fb4ff}
.beta-changes .beta-n{flex:none;margin:1px 0 0;font-size:11px;vertical-align:baseline}
button.beta-n{border:0;cursor:pointer}
button.beta-n:hover,button.beta-n:focus-visible{outline:1px solid #fff;outline-offset:1px}
.beta-changes li{margin:0 -4px;padding:1px 4px;border-radius:3px}
.beta-changes li.flash{animation:beta-flash 1.8s ease-out}
@keyframes beta-flash{0%,30%,60%{background:rgba(238,207,34,.22)}15%,45%,100%{background:transparent}}
@media(prefers-reduced-motion:reduce){.beta-changes li.flash{animation:none;background:rgba(238,207,34,.16)}}
.cn{margin-left:4px;font-size:.8em;font-weight:500;color:var(--mute);white-space:nowrap}
.beta-gear{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.beta-item{display:block}
.beta-item:hover{transform:none;border-color:var(--line);box-shadow:none}
.beta-item .kind{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.beta-item .effect{margin-top:6px;font-size:13.5px;line-height:1.5;color:#dcdaf0}
.beta-item .effect ul{padding-left:18px}
.cx-sk-body ul{padding-left:18px}
.cx-sk-body .sv{color:#ff6b6b;font-weight:700}
@media(max-width:900px){.cx-page{grid-template-columns:minmax(0,1fr)}.cx-side{position:static;grid-template-columns:minmax(0,160px) minmax(0,1fr);align-items:start}.cx-side>.slot{grid-row:span 2}.cx-gear{grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.cx-related{grid-column:1/-1}}
@media(max-width:560px){.cx-side{grid-template-columns:minmax(0,1fr)}.cx-side>.slot{grid-row:auto;max-width:220px}.cx-skills{grid-template-columns:minmax(0,1fr)}.cx-sk-rail{position:static;display:flex;flex-wrap:wrap;gap:10px}.cx-sk-rail button{width:60px}.cx-sk-rail .ic{width:44px;height:44px}.cx-sk-rail small{font-size:9px}.cx-skill{padding:14px 16px}.cx-sk-top{grid-template-columns:56px minmax(0,1fr);gap:12px}.cx-sk-top .cx-level{grid-column:1/-1}}
@media(max-width:760px){.cx-skill{scroll-margin-top:72px}} /* below the sticky top bar of phones */

/* skill text like the game: values and terms in red, the condition of a skill name in blue, "- " lines without bullets */
.cx-sk-body .hl{color:#ff6549;font-weight:600}
.cx-sk-body h4{font-weight:700}
.cx-sk-body .cond{display:inline;margin:0;padding:0;border:0;font-size:inherit;font-weight:700;color:#4aa3ff}
/* Tips on skill text: rank costs on "Unlocked at SS3 Rank", and red names of other skills, which also go to them on a click */
.cx-sk-body .cond[data-tip],.cx-sk-body .sk-ref{text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:3px}
.cx-sk-body .cond[data-tip]{cursor:help}
.cx-sk-body .sk-ref{cursor:pointer}
.cx-sk-body .sk-ref:hover{color:#ff8a73}
.cx-skill.flash{animation:sk-flash 1.6s ease-out}
@keyframes sk-flash{from{box-shadow:0 0 0 2px #ff6549}to{box-shadow:0 0 0 2px transparent}}
@media(prefers-reduced-motion:reduce){.cx-skill.flash{animation:none}}
.cx-sk-body .sep{color:#fff}
.cx-sk-body ul{padding-left:0;list-style:none}
.cx-sk-body li{padding-left:12px;text-indent:-12px}
.cx-sk-body li::before{content:"- ";color:var(--mute)}

/* /constructs: search, count and richer cards */
.cx-search{flex:1 1 200px;max-width:320px;min-height:34px;padding:6px 12px;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 13px "Quantico"}
.cx-search:focus{outline:none;border-color:#d8d8dc}
.wtype{display:inline-block;width:100%;height:100%;background:#e5e5e5;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
.wtype-card .slot{display:grid;place-items:center;padding:3px}
.cx-wtype{display:flex;align-items:center;gap:6px}
.cx-wtype .wtype{flex:none;width:16px;height:16px}
.wtype-head{display:flex;align-items:center;gap:10px}
.wtype-head .wtype{width:44px;height:44px;flex:none}
.tb-search{display:block;width:100%;max-width:320px;margin:0 0 12px}
.cx-count{margin:0 0 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}

.tl-role{align-items:flex-start;padding-top:2px}
.tl-role img{margin-top:2px}
.tl-rname{display:grid;gap:1px;line-height:1.25}
.tl-next{display:block;font-size:10px;color:#e6bd52;white-space:nowrap}
.tl-next.late{color:var(--red)}
.tl-lane .tl-next{margin-left:auto;font-size:11px;letter-spacing:0;text-transform:none}
.cub-skill:not(:has(.slot)){grid-template-columns:minmax(0,1fr)}

/* Search boxes: the browser's blue clear button becomes a thin cross in the site's colors */
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:14px;height:14px;margin:0 0 0 8px;cursor:pointer;opacity:.65;
  background:linear-gradient(45deg,#0000 43%,var(--mute) 43% 57%,#0000 57%),linear-gradient(-45deg,#0000 43%,var(--mute) 43% 57%,#0000 57%)}
input[type=search]::-webkit-search-cancel-button:hover{opacity:1;background:linear-gradient(45deg,#0000 43%,var(--red) 43% 57%,#0000 57%),linear-gradient(-45deg,#0000 43%,var(--red) 43% 57%,#0000 57%)}

/* Constructs filters: Element across the top, then Class and Rank on the left with Effect on the right. Each chip is a tile: icon over text, count in the corner */
/* Compact: one row per group, icon-only chips (the name is in the tooltip), count in the corner */
.filters{grid-template-columns:minmax(0,1fr)}
.filter{grid-template-columns:70px minmax(0,1fr);align-items:center;gap:10px;padding:8px 14px}
.filter-bar-tools{display:flex;flex-wrap:wrap;gap:6px}
.filter-bar-tools .tool.chip{position:relative;justify-content:center;width:auto;min-width:40px;height:40px;margin:0;padding:0 8px;border-left-width:1px;border-bottom:2px solid var(--c);border-radius:4px;font-size:12px;line-height:1}
.filter-bar-tools .chip-icon,.filter-bar-tools .chip-icon img{width:24px;height:24px}
.filter-bar-tools .chip-icon b{font-size:20px}
.filter-bar-tools .chip-n{position:absolute;top:1px;right:2px;margin:0;padding:0 3px;font-size:9px;line-height:1.3}
@media(max-width:560px){.filter{grid-template-columns:minmax(0,1fr);gap:4px;padding:8px 12px}.filter-bar-tools{gap:5px}.filter-bar-tools .tool.chip{min-width:38px;height:38px;padding:0 6px}}

/* Constructs gallery: a section per class, a tile per construct */
.cx-class{margin:0 0 22px}
.cx-class h2{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:17px;letter-spacing:.06em;text-transform:uppercase}
.cx-class h2 .chip-icon,.cx-class h2 .chip-icon img{width:30px;height:30px}
.cx-class h2 small{padding:1px 8px;background:#ffffff14;border-radius:4px;font-size:11px;color:var(--mute)}
.ctiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:10px}
a.ctile{position:relative;display:block;overflow:hidden;border:1px solid var(--line);border-bottom:0;border-radius:4px;background:#111}
a.ctile:hover{border-color:color-mix(in srgb,var(--c) 60%,#fff0);transform:translateY(-2px)}
.ctile .slot{aspect-ratio:1/1.1;border:0;border-radius:0}
.ctile .slot img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;filter:brightness(.8);transition:filter .15s}
.ctile:hover .slot img{filter:none}
.ct-top{position:absolute;top:5px;left:5px;display:flex;flex-direction:column;gap:4px}
.ct-fx{position:absolute;top:5px;right:5px}
.ct-b{display:grid;place-items:center;width:26px;height:26px;background:#000000a6;border:1px solid #ffffff2b;border-radius:50%}
.ct-b .chip-icon,.ct-b .chip-icon img{width:18px;height:18px}
.ct-b .chip-icon b{font-size:14px}
.ct-name{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:center;min-height:42px;padding:12px 6px 5px;background:linear-gradient(#0000,#000000d9 60%);box-shadow:inset 0 -3px 0 color-mix(in srgb,var(--c) 70%,#0000);text-align:center;text-shadow:0 1px 3px #000}
.ct-name b{overflow:hidden;font-size:13px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.ct-name small{overflow:hidden;font-size:11px;line-height:1.15;color:#ffffffd9;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:560px){.ctiles{grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px}.ct-name b{font-size:12px}}

/* Effect texts on the Assets detail pages: a line per sentence, values and game terms in red like the skills */
.effect{display:grid;gap:8px;margin-top:6px}
.detail .fx .effect p{margin:0}
.effect ul{display:grid;gap:6px;margin:0;padding:0 0 0 14px;list-style:none;font-size:14px;line-height:1.6;color:#dcdaf0}
.effect li{padding-left:12px;text-indent:-12px}
.effect li::before{content:"- ";color:var(--mute)}
.effect .hl{color:#ff6549;font-weight:600}
/* Blue text of the game (conditions, rank requirements), from the [b] marks of tools/fetch-colors.mjs */
.cx-sk-body .hlb,.effect .hlb{color:#4aa3ff;font-weight:600}
.cub-skill .effect{margin-top:4px}

/* Team Builder intro: one tip per line */
.ed-help-box{margin:-4px 0 18px;padding:12px 18px 14px;background:var(--panel);border:1px solid var(--line);border-left:2px solid var(--red);border-radius:4px}
.ed-help-box[hidden]{display:none}
.ed-drafts p{margin:0;color:var(--mute);font-size:14px}
.ed-drafts a{color:var(--txt);text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:3px}
.ed-draft-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.ed-draft-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:8px 0;border-bottom:1px solid var(--line)}
.ed-draft-list li:last-child{border-bottom:0}
.ed-draft-list li[aria-current=true] .ed-draft-name b::after{content:"●";margin-left:8px;color:var(--red);font-size:10px;vertical-align:middle}
.ed-draft-name{display:grid;gap:2px;min-width:0}
.ed-draft-name b{overflow-wrap:anywhere;font-weight:600}
.ed-draft-name small{color:var(--mute);font-size:12px}
.ed-draft-actions{display:flex;gap:6px}
.ed-help{display:grid;gap:8px 28px;margin:0;padding:0 0 0 30px;list-style:none;counter-reset:ed-help;font-family:var(--prose);font-size:15px;line-height:1.5;color:#c4c4ca}
.ed-help li{position:relative;counter-increment:ed-help}
.ed-help b{color:#fff;font-weight:700}
.ed-help li::before{content:counter(ed-help);position:absolute;left:-30px;top:.1em;display:grid;place-items:center;width:20px;height:20px;background:var(--red);border-radius:3px;color:#fff;font:700 12px/1 "Quantico"}
/* two columns read top to bottom: 1 to 4 on the left, 5 to 8 on the right (4 rows for the 8 steps of ED_HELP in editor.js) */
@media(min-width:1100px){.ed-help{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,auto);grid-auto-flow:column}}
.ed-page-option{grid-template-rows:34px 2.4em;align-content:start;height:76px}
.ed-page-option>span{display:grid;align-items:center;overflow:hidden}
/* Team Builder step 2: title and actions on one line, the chosen page and the how-to under the title.
   The publish box floats under the header (position:absolute), so the Turnstile widget never moves the page */
.ed-head{position:relative;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 24px;margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid var(--line)}
.ed-head-title{display:grid;gap:8px;min-width:0}
.ed-head h1{margin:0;line-height:1}
.ed-head-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.ed-head-page{display:flex;align-items:center;gap:12px;min-width:0}
.ed-head-page img{width:40px;height:40px;object-fit:contain}
.ed-head-page>span{display:grid;line-height:1.2}
.ed-head-page small{color:var(--mute);font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.ed-head-page b{font-size:19px}
.ed-head-page .ed-pill{margin-left:6px;height:42px;padding:0 18px;font-size:14px}
.ed-link{padding:2px 0;background:none;border:0;color:var(--mute);font:600 13px "Quantico";cursor:pointer;text-decoration:underline;text-decoration-color:#9a9aa055;text-underline-offset:3px;transition:color .15s}
.ed-link:hover{color:#fff;text-decoration-color:var(--red)}
.ed-link[aria-expanded=true]{color:var(--txt)}
/* bottom-aligned with the page row under the title; -2px centers the 46px Publish on that 42px row (Change sets its height) */
.ed-head-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:-2px}
.ed-head-sep{width:1px;height:30px;margin:0 6px;background:var(--line)}
.ed-head-actions .ed-pill{height:42px;padding:0 18px;font-size:14px}
.ed-head-actions .ed-pill-icon img{width:18px;height:18px}
.ed-cta{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 34px;background:var(--red);border:1px solid var(--red);border-radius:4px;color:#fff;font:700 16px "Quantico";letter-spacing:.02em;cursor:pointer;box-shadow:0 4px 14px #cf142440;transition:background .15s,box-shadow .15s}
.ed-cta:hover:not(:disabled){background:#e3192b;box-shadow:0 4px 18px #cf142466}
.ed-cta:disabled{opacity:.45;cursor:default;box-shadow:none}
.ed-captcha{position:fixed;z-index:61;left:50%;bottom:84px;min-width:300px;max-width:92vw;display:none;gap:10px;justify-items:center;padding:14px 18px;background:#1c1c1f;border:1px solid var(--line);border-top:3px solid var(--red);border-radius:4px;box-shadow:0 14px 36px #000c;transform:translateX(-50%)}
.ed-captcha.on{display:grid}
.ed-captcha p{margin:0;color:var(--txt);font:600 13px "Quantico"}
@media(max-width:760px){.ed-head{gap:12px}.ed-head-actions{width:100%;margin-bottom:0}.ed-head-actions .ed-cta{margin-left:auto}.ed-head-sep{display:none}}
@media(max-width:560px){.ed-head h1{font-size:28px}.ed-head-actions .ed-pill{flex:1 1 0;padding:0 8px;font-size:13px}.ed-head-actions .ed-cta{flex:1 1 100%;order:-1;margin:0}}
.ed-pill{padding:5px 11px;background:none;border:1px solid var(--line);border-radius:4px;color:var(--mute);font:600 12px "Quantico";cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.ed-pill-icon{display:inline-flex;align-items:center;gap:6px}
.ed-pill-icon img{width:15px;height:15px;object-fit:contain;opacity:.75;transition:opacity .15s}
.ed-pill-icon:hover:not(:disabled) img{opacity:1}
.ed-pill:hover:not(:disabled){border-color:#fff;color:#fff}
.ed-pill:disabled{opacity:.45;cursor:default}
.ed-pill-danger:hover:not(:disabled){background:#cf142426;border-color:var(--red)}
/* header pills sit on the page's element-tinted background: a dark fill and a light border keep them readable on any tint, still below Publish */
.ed-head .ed-pill{background:#0000006b;border-color:#ffffff40;color:#e8e8ec}
.ed-head .ed-pill:hover:not(:disabled){background:#000000a0;border-color:#fff;color:#fff}
.ed-head .ed-pill-danger:hover:not(:disabled){background:#cf142440;border-color:var(--red)}
/* Team Builder step 1: the element or Effect of the team, with bigger buttons */
.ed-choose{display:grid;gap:10px;padding:20px 22px 22px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
.ed-choose h2{font-size:20px}
.ed-choose .sub{margin:0 0 6px}
.ed-page-step{gap:18px 30px}
.ed-page-step .ed-page-option{width:92px;height:100px;grid-template-rows:48px 2.4em;padding:10px 6px;font-size:12px}
.ed-page-step .ed-page-option img{width:48px;height:48px}
@media(max-width:560px){.ed-choose{padding:14px}.ed-page-step .ed-page-option{width:72px;height:86px;grid-template-rows:38px 2.4em;font-size:10px}.ed-page-step .ed-page-option img{width:38px;height:38px}}
.ed-order-chip:not(:has(img)){width:auto;min-width:56px;padding:15px 10px 5px}
.ed-status{position:fixed;z-index:60;left:50%;bottom:20px;transform:translate(-50%,12px);width:max-content;max-width:min(92vw,560px);padding:12px 18px;background:#1c1c1f;border:1px solid var(--red);border-left-width:4px;border-radius:4px;box-shadow:0 8px 28px #000c;color:#fff;font:600 14px/1.4 "Quantico";overflow-wrap:anywhere;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,transform .2s,visibility 0s .2s}
.ed-status.on{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .2s,transform .2s}
@media(max-width:560px){.ed-page-option{width:56px;height:64px;grid-template-rows:28px 2.2em;font-size:9px}.ed-page-option img{width:28px;height:28px}.ed-page-groups{gap:8px 14px}.ed-page-options{gap:6px}.ed-status{bottom:12px}}

.calc-level{grid-template-columns:auto 76px;justify-content:start;gap:14px;margin-top:10px}
/* Narrow phones (Mobile S/M): stack each income icon over its number and let the pass legend wrap, so nothing spills out of its box */
@media(max-width:400px){.calc-gain{flex-direction:column;gap:2px;padding:6px 2px}.calc-gain .calc-icon{width:34px;height:34px}.calc-legend-part{flex-wrap:wrap;white-space:normal}.calc-legend-part:first-child{min-width:0}.calc-pass-own{flex-direction:column;align-items:stretch;gap:4px}#calc .calc-pass-own input{width:100%}}
/* Rotation builder of a position: tabs, move buttons, turns and steps. The detail cards are narrow, so everything wraps */
.ed-tabs{clear:both;display:flex;gap:4px;margin:0 0 12px}
.ed-tabs button{flex:1;min-height:36px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:#dcdce0;font:600 12px "Quantico";cursor:pointer}
.ed-tabs button:hover{border-color:#fff;color:#fff}
.ed-tabs button.on{background:#cf142433;border-color:var(--red);color:#fff}
.ed-rot{display:grid;gap:12px;min-width:0}
.ed-rot-palette{position:sticky;top:0;z-index:2;display:grid;gap:6px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.ed-rot-group{display:grid;gap:4px}
.ed-rot-group>small{color:var(--mute);font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.ed-rot-group>div{display:flex;flex-wrap:wrap;gap:6px}
.ed-rot-move{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 10px 4px 6px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:#dcdce0;font:600 11px "Quantico";cursor:pointer}
.ed-rot-move:hover{border-color:#fff;color:#fff}
.ed-rot-move img{width:30px;height:30px;object-fit:contain}
.ed-rot-glyph{display:grid;place-items:center;width:30px;height:30px;border:1px dashed var(--line);border-radius:50%;color:var(--mute);font-size:16px}
.ed-rot-free{display:flex;gap:6px}
.ed-rot-free input{flex:1;min-width:0}
.ed-rot-turns{display:grid;gap:10px}
.ed-rot-turn{display:grid;gap:6px;padding:8px;background:var(--bg);border:1px solid var(--line);border-radius:4px}
.ed-rot-turn.on{border-color:var(--red)}
.ed-rot-turn-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ed-rot-turn-head>span{flex:1;color:var(--mute);font-size:12px}
.ed-rot-name{flex:1;min-width:90px;font-weight:700}
.ed-rot-turn ol{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.ed-rot-step{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px;background:#0000004b;border-radius:4px}
.ed-rot-step>b{width:16px;color:var(--mute);font-size:11px;text-align:right}
.ed-rot-step>img{width:24px;height:24px;object-fit:contain}
.ed-rot-text{flex:1;min-width:80px;font-size:12px;color:#fff}
.ed-rot-tools{display:flex;gap:3px;margin-left:auto}
.ed-rot-btn{min-width:32px;min-height:32px;padding:0 6px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:#dcdce0;font:600 11px "Quantico";cursor:pointer}
.ed-rot-btn:hover:not(:disabled){border-color:#fff;color:#fff}
.ed-rot-btn:disabled{opacity:.35;cursor:default}
.ed-rot-btn[aria-pressed=true]{background:#cf142433;border-color:var(--red);color:#fff}
.ed-rot-actions{display:flex;flex-wrap:wrap;gap:6px}
.ed-rot-clear:hover{border-color:var(--red);color:#fff}
.ed-rot-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ed-rot-preview{--u:1px;padding:10px;background:var(--bg);border:1px solid var(--line);border-radius:4px;font-size:13px}
.ed-rot-preview h3{margin:0 0 4px;color:var(--mute);font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.ed-rot-text-edit summary{cursor:pointer;color:var(--mute);font-size:12px}
.ed-rot-text-edit .ed-field{margin-top:8px}
@media(max-width:600px){.ed-rot-palette{position:static}.ed-rot-group>div{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.ed-rot-move{flex:0 0 auto}.ed-rot-tools{flex:1 0 100%;justify-content:flex-end}}
@media(min-width:601px){.ed-rot-palette{display:flex;flex-wrap:wrap;gap:4px;padding:6px}.ed-rot-group{display:contents}.ed-rot-group>small{display:none}.ed-rot-group>div{display:contents}.ed-rot-move{min-height:34px;gap:4px;padding:2px 8px 2px 4px;font-size:10px}.ed-rot-move img,.ed-rot-glyph{width:24px;height:24px}}

/* Full portrait arts on a memory page */
.mem-arts{margin-top:24px}
.mem-arts-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:960px}
.mem-art-col{display:flex;flex-direction:column;align-items:center;gap:10px;padding-bottom:10px;background:#0000004b;border:1px solid #ffffff30}
.mem-art-head{align-self:stretch;margin:0;padding:8px;background:#8e0f2a;color:#fff;font-weight:700;text-align:center}
.mem-art-col .mt-art{width:110px}
.mem-art-col>img{width:100%;height:auto;display:block}
@media(max-width:600px){.mem-arts-list{grid-template-columns:1fr}}
.mem-art-col>img{cursor:zoom-in}
.art-zoom{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:16px;background:#000000e6;cursor:zoom-out}
.art-zoom img{max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);object-fit:contain}
.art-zoom button{position:absolute;top:10px;right:14px;width:40px;height:40px;border:0;background:#00000080;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.art-zoom .prev,.art-zoom .next{top:50%;transform:translateY(-50%);width:48px;height:64px;font-size:40px}
.art-zoom .prev{left:10px;right:auto}
.art-zoom .next{right:10px}
/* Damage calculator on a construct page. Bars: Energy hits in the site red, Effect hits in blue (validated pair on --panel) */
.dmg{--dmg-energy:#cf1424;--dmg-effect:#3b8ee8;container-type:inline-size;display:grid;gap:14px;margin:12px 0 24px;padding:16px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
.dmg-note,.dmg-ref{font-size:13px;line-height:1.5;color:var(--mute)}
.dmg-seg{display:inline-flex;flex-wrap:wrap;gap:0;justify-self:start;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.dmg-seg .tool{border:0;border-radius:0;background:transparent}
.dmg-seg .tool+.tool{border-left:1px solid var(--line)}
.dmg-seg .tool:hover{background:#222224}
.dmg-seg .tool.on{background:#d8d8dc;color:#0b0b0c}
.dmg-mode .tool{padding:9px 16px;font-size:14px}
.dmg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.dmg-field{display:grid;gap:4px;min-width:0;font-size:12px;color:var(--mute)}
.dmg-field.wide{grid-column:span 2}
.dmg :is(select,input[type=number]){width:100%;min-width:0;height:36px;padding:0 10px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 14px "Quantico";color-scheme:dark}
.dmg :is(select,input[type=number]):focus-visible{outline:2px solid var(--red);outline-offset:1px}
.dmg select{cursor:pointer}
.dmg select:disabled{opacity:.5;cursor:default}
.dmg-more{border:1px solid var(--line);border-radius:4px;background:rgba(255,255,255,.015)}
.dmg-more>summary{display:flex;align-items:center;gap:10px;padding:11px 14px;font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.dmg-more>summary::-webkit-details-marker{display:none}
.dmg-more>summary::before{content:"";width:8px;height:8px;border-right:2px solid var(--mute);border-bottom:2px solid var(--mute);transform:rotate(-45deg);transition:transform .15s}
.dmg-more[open]>summary::before{transform:rotate(45deg)}
.dmg-more>summary:hover{background:rgba(255,255,255,.03)}
.dmg-more>summary small{margin-left:auto;white-space:nowrap;padding:2px 9px;border-radius:4px;background:#ffffff14;font-size:12px;font-weight:600;color:var(--mute)}
.dmg-more[open]>summary{border-bottom:1px solid var(--line)}
.dmg-tune{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:12px;padding:12px}
.dmg-box{min-width:0;padding:12px;background:var(--bg);border:1px solid var(--line);border-radius:4px}
.dmg-box-wide{grid-column:1/-1}
.dmg-box h4{display:flex;align-items:baseline;gap:10px;margin-bottom:10px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--txt)}
.dmg-box h4 small{margin-left:auto;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--mute)}
.dmg-lv{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dmg-box .dmg-lv{margin-bottom:8px}
.dmg-lv-name{font-size:12px;font-weight:600;color:var(--mute);white-space:nowrap}
.dmg-lv.changed .dmg-lv-name{color:var(--txt)}
.dmg-lv.changed input[type=number]{border-color:#d8d8dc88}
.dmg-step{display:grid;grid-template-columns:28px 44px 28px;gap:4px}
.dmg-step .tool{padding:0;height:28px;font-size:16px;line-height:1}
.dmg .dmg-step input[type=number]{height:28px;padding:0 2px;text-align:center;appearance:textfield;-moz-appearance:textfield}
.dmg-step input::-webkit-inner-spin-button,.dmg-step input::-webkit-outer-spin-button{display:none}
.dmg-togs{display:grid;gap:6px}
.dmg-tog{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:4px;background:var(--panel);cursor:pointer;transition:border-color .15s,background .15s}
.dmg-tog:hover{border-color:#4a4a50}
.dmg-tog.on{border-color:#cf142488;background:color-mix(in srgb,var(--red) 9%,var(--panel))}
.dmg-tog input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.dmg-sw{position:relative;width:36px;height:20px;border-radius:4px;background:#3a3a3f;transition:background .15s}
.dmg-sw::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#d8d8dc;transition:transform .15s}
.dmg-tog.on .dmg-sw{background:var(--red)}
.dmg-tog.on .dmg-sw::after{transform:translateX(16px);background:#fff}
.dmg-tog input:focus-visible+.dmg-sw{outline:2px solid #fff;outline-offset:2px}
.dmg-tog-text{min-width:0;display:grid;gap:2px}
.dmg-tog-text b{font-size:13px;line-height:1.3}
.dmg-tog-text small{font-size:12px;line-height:1.4;color:var(--mute)}
.dmg-tog.on .dmg-tog-text small{color:#c9c9cf}
.dmg-badge{align-self:start;padding:2px 7px;border:1px solid var(--line);border-radius:4px;font:700 11px "Quantico";color:var(--mute);white-space:nowrap}
.dmg-tog.locked{cursor:not-allowed;opacity:.55}
.dmg-tog.locked:hover{border-color:var(--line)}
.dmg-badge.locked{border-color:transparent;background:#ffffff10}
.dmg-tune-foot{display:flex;justify-content:flex-end}
/* Settings and results: one column, two once the panel is wide enough (the settings then stay in view while the list scrolls) */
.dmg-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.dmg-set,.dmg-out{display:grid;gap:12px;min-width:0;align-content:start}
.dmg-set .dmg-mode{display:flex;justify-self:stretch}
.dmg-set .dmg-mode .tool{flex:1 1 auto}
@container (min-width:720px){.dmg-layout{grid-template-columns:minmax(0,390px) minmax(0,1fr)}
  .dmg-set{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scrollbar-width:thin;scrollbar-gutter:stable}}
/* The buffs inside "Class, weapon, memories and team": one column of sections split by a line, not boxes inside a box */
.dmg-set .dmg-tune{grid-template-columns:minmax(0,1fr);gap:0;padding:0 12px}
.dmg-more .dmg-box{padding:12px 0;background:none;border:0;border-radius:0}
.dmg-more .dmg-box+.dmg-box{border-top:1px solid var(--line)}
/* Rank effects: what the chosen rank turns on, and dimmed, what a higher rank adds */
.dmg-ranks{display:grid;gap:4px;margin:0;padding:0;list-style:none;font-size:12px;line-height:1.4}
.dmg-ranks li{border-radius:4px}
.dmg-ranks li.on{color:var(--txt);background:rgba(255,255,255,.025)}
.dmg-ranks summary,.dmg-rank-plain{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px;list-style:none;cursor:pointer}
.dmg-rank-plain{grid-template-columns:auto minmax(0,1fr);cursor:default}
.dmg-ranks summary::-webkit-details-marker{display:none}
.dmg-ranks summary:hover{background:rgba(255,255,255,.04)}
.dmg-ranks summary b{font-size:12.5px}
.dmg-ranks summary::after{content:"";width:7px;height:7px;margin:0 4px;border-right:2px solid var(--mute);border-bottom:2px solid var(--mute);transform:rotate(45deg);transition:transform .15s}
.dmg-ranks details[open]>summary::after{transform:rotate(225deg)}
.dmg-ranks summary{grid-template-columns:auto minmax(0,1fr) auto auto}
.dmg-ranks summary:not(:has(.dmg-in)){grid-template-columns:auto minmax(0,1fr) auto}
.dmg-ranks summary b small{margin-left:4px;font-weight:600;color:var(--mute)}
.dmg-in{padding:1px 6px;border-radius:3px;background:#ffffff14;font:700 10px "Quantico";letter-spacing:.06em;color:var(--txt)}
.cx-sk-body.dmg-rank-text{margin:0;padding:0 8px 8px;font-size:12.5px;line-height:1.5}
.dmg-ranks li.on .dmg-badge{border-color:var(--red);color:#fff;background:color-mix(in srgb,var(--red) 30%,transparent)}
.dmg-ranks li.locked{color:var(--mute);opacity:.6}
#dmgEmpty{padding:16px}
.dmg-ranks-none{font-size:12px;color:var(--mute)}
/* One box per skill: icon, name and level, the skill's conditions, then its hits */
.dmg-skills{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:10px;align-items:start}
.dmg-sk .dmg-row>summary{padding:7px 10px;gap:3px 10px}
.dmg-sk .dmg-name{font-size:13px}
.dmg-sk .dmg-val{font-size:15px}
.dmg-sk .dmg-tog-text b{font-size:12.5px}
.dmg-sk{display:grid;gap:8px;min-width:0;padding:10px;background:var(--bg);border:1px solid var(--line);border-radius:4px}
.dmg-sk[hidden]{display:none}
.dmg-sk-head{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px}
.dmg-sk-head .slot{width:36px;aspect-ratio:1}
.dmg-sk-head b{font-size:14px;letter-spacing:.04em;text-transform:uppercase}
.dmg-sk.fixed .dmg-sk-head{grid-template-columns:minmax(0,1fr)}
.dmg-sk .dmg-tog{padding:7px 10px}
.dmg-sk .dmg-rows:empty{display:none}
.dmg-rows:not(.with-icon) .dmg-row>summary{grid-template-columns:minmax(0,1fr) auto}
.dmg-rows:not(.with-icon) .dmg-bar{grid-column:1/-1}
/* The calculator's tab, beside the skill tabs */
.cx-tabs .dmg-tab{background:var(--red);border-color:var(--red);color:#fff}
.cx-tabs .dmg-tab:hover{background:#e01b2c}
.cx-tabs .dmg-tab.on{background:var(--red);border-color:#fff;color:#fff;box-shadow:0 0 0 1px #fff}
.dmg-tune-foot .tool{padding:7px 14px;font-size:12px}
.dmg-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:12px;padding-top:4px;border-top:1px solid var(--line)}
.dmg-stats{display:flex;flex-wrap:wrap;gap:8px 22px;padding-top:10px}
.dmg-stat{display:grid;gap:2px}
.dmg-stat small{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.dmg-stat b{font:700 16px "Quantico";font-variant-numeric:tabular-nums}
.dmg-sort .tool{padding:6px 12px;font-size:12px}
.dmg-rows{display:grid;gap:6px}
.dmg-row{background:rgba(255,255,255,.02);border:1px solid var(--line);border-radius:4px}
.dmg-row[open]{border-color:#4a4a50}
.dmg-row>summary{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:9px 12px;list-style:none;cursor:pointer}
.dmg-row>summary::-webkit-details-marker{display:none}
.dmg-row>summary:hover{background:rgba(255,255,255,.03)}
.dmg-row .slot{grid-row:span 2;width:40px;aspect-ratio:1}
.dmg-fx-icon{display:grid;place-items:center;padding:6px}
.dmg-fx-icon :is(img,svg){width:100%;height:100%;object-fit:contain}
.dmg-name{min-width:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.dmg-name small{display:block;margin-top:2px;font-size:12px;font-weight:400;color:var(--mute)}
.dmg-val{font:700 16px "Quantico";color:#fff;font-variant-numeric:tabular-nums;text-align:right}
.dmg-bar{grid-column:2/-1;height:6px;border-radius:0 4px 4px 0;background:linear-gradient(90deg,var(--dmg-energy) var(--w),transparent var(--w))}
.dmg-row.fx-hit .dmg-bar{background:linear-gradient(90deg,var(--dmg-effect) var(--w),transparent var(--w))}
.dmg-factors{display:grid;gap:5px;margin:0 12px;padding:10px 0 12px 52px;border-top:1px solid var(--line);font-size:13px;list-style:none}
.dmg-factors li{display:flex;justify-content:space-between;gap:12px;color:var(--mute)}
.dmg-factors b{color:var(--txt);font-weight:600;font-variant-numeric:tabular-nums}
.dmg-factors .dmg-total{margin-top:3px;padding-top:6px;border-top:1px dashed var(--line);color:var(--txt);font-weight:600}
.dmg-assumed{padding-left:18px;font-size:12px;line-height:1.5;color:var(--mute)}
@media(max-width:560px){.dmg{padding:14px 12px}.dmg-field.wide{grid-column:1/-1}.dmg-factors{padding-left:0}.dmg-mode{justify-self:stretch}.dmg-mode .tool{flex:1}}
@media(max-width:560px){.dmg-tune{padding:8px;gap:8px}.dmg-box{padding:10px}.dmg-sk{padding:8px}.dmg-tog{grid-template-columns:36px minmax(0,1fr)}.dmg-tog .dmg-badge{grid-column:2;justify-self:start}}

/* Accounts: the box in the side menu, the build buttons, /account, the report form and /admin */
/* Last item of the menu, like the account icon at the bottom of other sidebars */
.nav-account{margin-top:2px}
.nav-account:empty{display:none}
.nav-account img{width:24px;height:24px;flex:none;object-fit:contain}
/* The Sign in page: a list of the ways to log in, each a full-width button */
.signin-card{max-width:460px}
.signin-options{display:grid;gap:8px;margin:16px 0}
.signin-option{display:flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:8px 16px;background:#5865f2;border:1px solid #7983f5;border-radius:4px;color:#fff;font:700 15px "Quantico";text-decoration:none;transition:background .15s}
.signin-option:hover{background:#4752c4}
.signin-option img{width:22px;height:22px;object-fit:contain}
.account-me span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-actions{display:contents}
/* A build page's title, with the like button at its right */
.build-head{display:flex;align-items:flex-start;gap:16px}
.build-head-tx{flex:1;min-width:0}
.build-head-acts{flex:none;display:flex;gap:8px;padding-top:4px}
/* Author page: teams and likes at the right of the title, in the look of the like count of each row (.brow-votes) */
.user-head{align-items:center}
.user-head h1{margin:0}
.user-stats{gap:0;padding-top:0}
.user-stat:first-child{border-left:0}
.like-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:64px;height:40px;padding:0 14px;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:700 16px "Quantico";text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
.like-btn:hover{background:#2a2a2e;border-color:#8a8a92}
.like-btn .gi{width:20px;height:20px;margin:0}
.like-btn.on{background:var(--red);border-color:var(--red);color:#fff}
.like-btn.on:hover{background:#e0263a}
.like-btn:disabled{opacity:.6;cursor:wait}
/* Dislike: the like icon upside down, no count. Pressed in grey, so it doesn't read as the red like */
.dislike-btn{min-width:0}
.dislike-btn .gi,.adm-dislikes .gi{transform:scaleY(-1)}
.dislike-btn.on{background:#4a4a52;border-color:#8a8a92;color:#fff}
.dislike-btn.on:hover{background:#56565e}
/* Delete stands apart from the other buttons, in red, so it is not pressed by mistake for Edit */
.comp-tools .ed-danger{margin-left:20px;background:#2a0f13;color:#ff8a94;border-color:#8a2a34}
.comp-tools .ed-danger:hover,.comp-tools .ed-danger:focus-visible{background:#5a141c;color:#fff;border-color:var(--red)}
/* The likes of a row, at its right end */
.brow-votes{flex:none;display:grid;align-content:center;justify-items:end;gap:2px;min-width:64px;padding-left:14px;border-left:1px solid var(--line)}
.brow-votes small{font:700 10px "Quantico";letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.brow-votes b{display:flex;align-items:center;font:700 22px "Quantico";line-height:1}
.brow-votes .gi{width:16px;height:16px;margin-right:6px;color:var(--mute)}
@media(max-width:560px){.build-head{gap:10px}.like-btn{min-width:56px;height:36px;padding:0 10px;font-size:15px}.brow-votes{min-width:44px;padding-left:10px}.brow-votes small{display:none}.brow-votes b{font-size:17px}.brow-votes .gi{width:13px;height:13px;margin-right:4px}.user-stat small{display:block}}
/* Phones: the teammates' portraits give their room to the name; the row still names them ("with X and Y") */
@media(max-width:480px){.brow .brow-mates{display:none}}
.empty a,.privacy-page a,.account-card a:not(.tool,.signin-option){color:#fff;text-decoration:underline}
.account-card{max-width:760px;margin-bottom:16px;padding:20px 22px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red);font-family:var(--prose);font-size:15px;line-height:1.55}
.account-card h2{margin-bottom:10px;font-size:18px}
.account-who{display:flex;align-items:center;gap:14px}
.account-who strong{display:block;font:700 20px "Quantico"}
.account-who small{color:var(--mute)}
.account-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.account-buttons .ed-danger{background:none;color:#ff8a94;border-color:#6b2a30}
.account-teams{display:grid;gap:8px;padding:0;list-style:none}
.account-teams small{color:var(--mute)}
.report-box{width:min(460px,calc(100vw - 32px));padding:22px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red);color:var(--txt)}
.report-box::backdrop{background:#000b}
.report-box h2{font-size:20px}
.report-reasons{display:grid;gap:8px;margin:4px 0 16px;font-family:var(--prose);font-size:15px}
.report-reasons label{display:flex;align-items:center;gap:8px;cursor:pointer}
.report-box textarea{width:100%;padding:8px;background:var(--bg);border:1px solid var(--line);color:var(--txt);font:15px var(--prose);resize:vertical}
.report-status{min-height:1.4em;margin:10px 0;color:#dcdce0;font-family:var(--prose)}
.report-buttons{display:flex;justify-content:flex-end;gap:8px}
.report-box .ed-primary{background:var(--red);border-color:var(--red);color:#fff}
.privacy-page{max-width:820px;counter-reset:priv;font-family:var(--prose);font-size:16px;line-height:1.65;color:#dcdce0}
.privacy-page>.sub{margin-bottom:22px}
.privacy-page section{counter-increment:priv;margin:0 0 14px;padding:16px 20px 18px;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--red)}
.privacy-page h2{display:flex;align-items:baseline;gap:12px;margin:0 0 10px;font:700 19px "Quantico";color:#fff}
.privacy-page h2::before{content:counter(priv,decimal-leading-zero);color:var(--red);font-size:15px;letter-spacing:.08em}
.privacy-page p+p{margin-top:10px}
.privacy-page section p{position:relative;padding-left:16px}
.privacy-page section p::before{content:"";position:absolute;left:0;top:.7em;width:5px;height:5px;background:var(--red)}
.privacy-page>.sub:last-child{margin:20px 0 0;font-size:14px}
@media (max-width:600px){.privacy-page{font-size:15px}.privacy-page section{padding:14px 14px 16px}}
.adm-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;min-height:70px;margin:14px 0 16px}
.adm-tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:11px 14px;background:var(--panel);border:1px solid var(--line);border-left:3px solid #5a5a62;border-radius:4px;color:var(--txt);text-align:left;cursor:pointer}
.adm-tile:hover{background:#222224;border-color:#5a5a62}
.adm-tile b{font:700 24px/1.1 "Quantico"}
.adm-tile small{color:var(--mute);font:13px var(--prose)}
.adm-tile.bad{border-left-color:var(--red)}
.adm-tile.bad b{color:#ff8a94}
.adm-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.adm-tabs .tool{display:inline-flex;align-items:center;gap:7px}
.adm-badge{min-width:20px;padding:0 6px;border-radius:4px;background:#ffffff1f;font-size:11.5px;line-height:18px;text-align:center}
.tool.on .adm-badge{background:#0b0b0c26}
.adm-badge.bad,.tool.on .adm-badge.bad{background:var(--red);color:#fff}
.adm-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:10px 12px;background:#ffffff08;border:1px solid var(--line);border-radius:4px}
.adm-field{display:flex;flex-direction:column;gap:3px;color:var(--mute);font:12px var(--prose)}
.adm-field select,.adm-field input{padding:7px 10px;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:14px var(--prose)}
.adm-search{flex:1 1 220px}
.adm-message{min-height:1.4em;margin:8px 0;color:#ffd75a;font-family:var(--prose)}
.adm-list{display:grid;margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.adm-row{background:var(--panel);border-top:1px solid var(--line);font-family:var(--prose);font-size:14px;line-height:1.45}
.adm-row:first-child{border-top:0}
.adm-row.open{background:#202023}
.adm-row a{color:#fff;text-decoration:underline;text-decoration-color:#ffffff59}
.adm-row a:hover{text-decoration-color:#fff}
.adm-line{display:flex;align-items:center;gap:12px;min-width:0;padding:8px 12px}
[data-adm-line]{cursor:pointer}
[data-adm-line]:hover{background:#ffffff08}
.adm-toggle{flex:none;width:26px;height:26px;padding:0;background:none;border:1px solid var(--line);border-radius:4px;color:var(--mute);font-size:15px;line-height:1;cursor:pointer;transition:transform .15s}
.adm-row.open .adm-toggle{transform:rotate(90deg);color:var(--txt)}
.adm-faces{display:flex;flex:none;gap:3px}
.adm-faces img,.adm-face-blank{display:block;width:38px;height:38px;object-fit:cover;object-position:top;background:#0b0b0c;border:1px solid var(--line);border-radius:3px}
.adm-main{flex:1 1 160px;min-width:0}
.adm-main strong{display:block;overflow:hidden;font:700 15px "Quantico";text-overflow:ellipsis;white-space:nowrap}
.adm-main small{display:block;color:var(--mute);font-size:12.5px}
.adm-main .gi{margin:0 3px 0 0;vertical-align:-2px}
.adm-id{color:var(--mute);font-weight:400}
.adm-tag{padding:1px 7px;border-radius:4px;background:#ffffff1a;font:600 11.5px var(--prose);font-style:normal;color:var(--txt)}
.adm-tag.bad{background:#3a1418;color:#ffb3ba}
.adm-tag.good{background:#123323;color:#9be8bf}
.adm-count{flex:none;padding:2px 9px;border:1px solid #6b2a30;border-radius:4px;background:#3a1418;color:#ffb3ba;font:600 12px "Quantico"}
.adm-actions{display:flex;flex-wrap:wrap;gap:6px}
.adm-actions:empty{display:none}
.adm-line>.adm-actions{flex:none;justify-content:flex-end}
.adm-actions .tool{padding:6px 11px;font-size:12.5px}
.adm-actions .ed-danger{background:none;color:#ff8a94;border-color:#6b2a30}
.adm-more{display:grid;gap:8px;padding:2px 12px 12px 50px}
.adm-reports{margin:0;padding:8px 12px 8px 28px;background:#3a1418;border-left:3px solid var(--red);color:#ffd0d4}
.adm-chars{color:#dcdce0}
.adm-texts{display:grid;gap:6px;max-height:280px;overflow:auto;padding:8px 12px;background:#0b0b0c66;border-left:3px solid var(--line)}
.adm-texts p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.adm-none{color:var(--mute)}
.adm-ugrid{display:grid;grid-template-columns:minmax(0,1fr) 64px 72px 110px 110px 396px;gap:16px}
.adm-ugrid>.adm-actions{justify-content:flex-end}
.adm-cell{display:flex;flex-direction:column;font-size:13px}
.adm-cell small{color:var(--mute);font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.adm-cell b{font-weight:600}
.adm-cell b.bad{color:#ff8a94}
/* The buttons of an account keep their place from row to row: Their teams, Reports, Ban or Unban, Make admin or Remove admin.
   A button the account doesn't get leaves its slot empty */
.adm-uacts{display:grid;grid-template-columns:100px 84px 72px 118px;gap:6px}
.adm-uacts .tool{grid-row:1;width:100%;text-align:center;white-space:nowrap}
.adm-s1{grid-column:1}.adm-s2{grid-column:2}.adm-s3{grid-column:3}.adm-s4{grid-column:4}
/* The reports of an account, opened under its row */
.adm-users .adm-more{padding-left:12px}
.adm-rh{display:flex;align-items:center;gap:8px;margin:6px 0 0;font:700 13px "Quantico";letter-spacing:.04em;text-transform:uppercase;color:var(--mute)}
.adm-rlist{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.adm-rrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;background:var(--bg);border:1px solid var(--line);border-radius:4px}
.adm-rrow>div{min-width:0}
.adm-rrow strong{font:700 14px "Quantico"}
.adm-rrow p{margin:2px 0;overflow-wrap:anywhere}
.adm-rrow small{display:block;color:var(--mute);font-size:12.5px}
.adm-rrow .tool{flex:none;padding:6px 11px;font-size:12.5px}
.adm-rrow .ed-danger,.adm-users .adm-more .ed-danger{background:none;color:#ff8a94;border-color:#6b2a30}
.adm-lgrid{display:grid;grid-template-columns:160px minmax(80px,170px) 120px minmax(0,1fr);gap:12px}
.adm-lgrid small{color:var(--mute)}
.adm-act{justify-self:start;padding:1px 8px;border-radius:4px;background:#ffffff1a;font:600 12px "Quantico"}
.adm-act.bad{background:#3a1418;color:#ffb3ba}
.adm-act.good{background:#123323;color:#9be8bf}
.adm-link{padding:0;background:none;border:0;color:#fff;font:inherit;text-decoration:underline;text-decoration-color:#ffffff59;cursor:pointer}
.adm-foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:10px;color:var(--mute);font:13px var(--prose)}
@media (max-width:760px){
  .adm-line{flex-wrap:wrap}
  .adm-line{gap:8px 10px}
  .adm-faces img,.adm-face-blank{width:30px;height:30px}
  .adm-main{flex:1 1 0}
  .adm-line>.adm-actions{justify-content:flex-start;width:100%}
  .adm-more{padding-left:12px}
  .adm-ugrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
  .adm-ugrid>.adm-main,.adm-ugrid>.adm-actions{grid-column:1/-1}
  .adm-lgrid{grid-template-columns:auto minmax(0,1fr);gap:4px 10px}
  .adm-ugrid>.adm-actions{justify-content:flex-start;padding-left:0}
  /* Two by two: Their teams and Reports above, Ban and the admin button below */
  .adm-uacts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .adm-uacts .adm-s3{grid-column:1;grid-row:2}
  .adm-uacts .adm-s4{grid-column:2;grid-row:2}
  .adm-rrow{flex-direction:column;align-items:stretch}
  .adm-uacts .tool{padding-block:9px}
}
/* Comments under a community team */
.comments{margin-top:32px;max-width:720px;margin-inline:auto}
.comments h2{font-size:20px;margin-bottom:12px}
.cm-form textarea{width:100%;padding:8px;background:var(--bg);border:1px solid var(--line);color:var(--txt);font:15px var(--prose);resize:vertical}
.cm-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.cm-status{font-size:13px;color:var(--mute)}
.cm-login{margin-bottom:12px;color:var(--mute)}
.cm-list{list-style:none;padding:0;margin-top:16px;display:grid;gap:10px}
.cm{padding:10px 12px;background:var(--panel);border:1px solid var(--line)}
.cm-head{display:flex;align-items:baseline;gap:10px;font-size:13px;color:var(--mute)}
.cm-head b{color:var(--txt);font-size:14px}
.cm-del{margin-left:auto;padding:0;border:0;background:none;color:var(--mute);font:inherit;cursor:pointer}
.cm-del:hover{color:#ff4d4d}
.cm p{margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--prose);font-size:15px;line-height:1.45}
/* The site-wide bar (#noticeBox): red text on a dark slate, apart from the page background */
#noticeBox .notice{background:#22242d;border-bottom:2px solid var(--red);color:#ff5a5a}
.calc-label-hint{margin-left:8px;text-transform:none;letter-spacing:0;font-weight:400;color:var(--mute)}
.calc-cost-icons{display:inline-flex;align-items:center;gap:2px;vertical-align:middle}
.calc-cost-icons .calc-mini{width:14px;height:14px}
/* Meta timeline: Leaps (◆ on the chart, numbers at the top) */
.tl-leapbox{padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.tl-leapbox h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.tl-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.tl-stat{padding:6px 8px;background:#0f0f10;border:1px solid var(--line);border-radius:3px}
.tl-stat small{display:block;font-size:11px;color:var(--mute)}
.tl-stat b{font-size:16px;white-space:nowrap}
.tl-stat:first-child b{color:#ffc93c}
.tl-leap-ico{display:inline-block;width:9px;height:9px;background:#ffc93c;transform:rotate(45deg)}
/* An unrotated box on the day of the Leap: a diamond at the top and a thin line down the lane */
.tl-track>.tl-leap{position:absolute;top:0;bottom:0;z-index:4;width:11px;margin-left:-5px;cursor:help}
.tl-track>.tl-leap::before{content:"";position:absolute;left:1px;top:1px;width:9px;height:9px;background:#ffc93c;border:1px solid #0f0f10;box-sizing:border-box;transform:rotate(45deg)}
.tl-track>.tl-leap::after{content:"";position:absolute;left:5px;top:10px;bottom:4px;width:1px;background:#ffc93c80}
.tl-track>.tl-leap.soon::before{background:#0f0f10;border-color:#ffc93c}
.tl-leapby{color:#ffc93c!important}
/* Meta timeline ranking: what the Leap tab measures on the left, the order on the right */
.tl-rank-opts{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-top:6px}
.tl-rank-opts .tool{padding:2px 8px;font-size:11px}
.tl-stat>small+b+small{margin-top:2px;font-size:10px;line-height:1.3}
.tl-stat.tl-next-leap b{color:#ffc93c}
.tl-stat.tl-late{border-color:#e6bd5280}
.tl-stat.tl-late b,.tl-stat.tl-late b+small{color:#e6bd52}
.tl-rank li b small{display:block;overflow:hidden;font-size:11px;font-weight:400;text-overflow:ellipsis;color:var(--mute)}
/* Meta timeline: a replacement already announced, with its real date instead of an estimate */
.tl-soon .tl-ok{position:static;display:inline-block;margin-left:6px;vertical-align:1px;font-style:normal}
.tl-soon.ok em{color:#6fcf8e}
.tl-next.ok{color:#6fcf8e}
/* A class retired by the next step of its line (S-Rank): grey, at the end of the list */
.tl-average.retired{opacity:.45;filter:grayscale(1)}
.tl-average.retired i{background:var(--mute)}
.tl-classtabs{margin-bottom:12px}
.tl-average.late b,.tl-average.late small{color:#e6bd52}
.tl-average.late i{background:#e6bd52}

/* ---------- Game modes (/modes) and One-Time Rewards (/one-time) ---------- */
h2.grp a{color:inherit}
h2.grp a:hover{color:#fff}
.home-links.modes .hl-img img{width:40px;height:40px;object-fit:contain}
/* A mode whose page is not out yet: greyed, no link, no hover, no arrow */
.home-link.soon{cursor:default;opacity:.5}
.home-link.soon .hl-img img{filter:grayscale(1)}
.home-link.soon:hover{border-color:var(--line);background:var(--panel)}
.home-dir .home-link.soon::after{content:none}
.mode-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px}
.mode-tile{display:flex;gap:16px;align-items:flex-start;padding:18px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red);transition:border-color .15s,background-color .15s}
.mode-tile:hover,.mode-tile:focus-visible{border-color:var(--red);background:#1c1516}
.mode-tile-art{flex:none;display:grid;place-items:center;width:56px;height:56px}
.mode-tile-art img{max-width:100%;max-height:100%;object-fit:contain}
.mode-tile-tx{display:grid;gap:6px;min-width:0}
.mode-tile-tx b{font-size:18px;font-weight:800}
.mode-tile-tx small{font-family:var(--prose);font-size:15px;line-height:1.45;color:#c9c8d4}
.mode-tile-round{font-size:12px;letter-spacing:.04em;color:var(--mute)}
.mode-head{position:relative;display:flex;align-items:center;gap:20px;min-height:150px;padding:24px;overflow:hidden;background:linear-gradient(100deg,#2a0d10,var(--panel) 70%);border:1px solid var(--line);border-top:3px solid var(--red)}
.mode-banner{position:absolute;inset:0;pointer-events:none}
.mode-banner img{width:100%;height:100%;object-fit:cover;opacity:.32;-webkit-mask:linear-gradient(90deg,#0000 15%,#000 70%);mask:linear-gradient(90deg,#0000 15%,#000 70%)}
.mode-head-art{position:relative;flex:none;display:grid;place-items:center;width:84px;height:84px}
.mode-head-art img{max-width:100%;max-height:100%;object-fit:contain}
.mode-head-tx{position:relative;display:grid;gap:6px;min-width:0}
.mode-head-tx p{max-width:70ch;font-family:var(--prose);font-size:16px;line-height:1.5;color:#dcdaf0}
.mode-back{justify-self:start;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.mode-back::before{content:"‹ "}
.mode-back:hover{color:#fff}
.mode-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1px;margin:12px 0 0;background:var(--line);border:1px solid var(--line)}
.mode-facts>div{padding:12px 16px;background:var(--panel)}
.mode-facts dt{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.mode-facts dd{margin:4px 0 0;font-family:var(--prose);font-size:15px;line-height:1.45}
.mode-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,460px),1fr));gap:12px;align-items:start}
.mode-card{padding:18px 20px;background:var(--panel);border:1px solid var(--line);font-family:var(--prose);font-size:15px;line-height:1.6;color:#dcdaf0}
.mode-card h2{margin-bottom:6px;font-family:"Quantico";font-size:15px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#fff}
.mode-card p{margin:8px 0}
.mode-card b{color:#fff}
.mode-card ul{margin:8px 0;padding-left:20px;list-style:none}
.mode-card li{position:relative;margin:5px 0;overflow-wrap:anywhere}
.mode-card li::before{content:"";position:absolute;left:-15px;top:.68em;width:5px;height:5px;background:var(--red);transform:rotate(45deg)}
.mode-card h4{margin:16px 0 4px;padding-top:12px;border-top:1px solid var(--line);font:700 12.5px "Quantico";letter-spacing:.08em;text-transform:uppercase;color:var(--red)}
.mode-card h2+h4{margin-top:6px;padding-top:0;border-top:0}
.mode-card ul ul{margin:3px 0 2px;padding-left:18px}
.mode-card ul ul li{margin:2px 0;color:#c9c8d4}
.mode-card ul ul li::before{left:-13px;top:.72em;width:4px;height:4px;background:var(--mute)}
.mode-card a,.mode-src a{color:#fff;text-decoration:underline}
.mode-src{margin-top:14px;font-size:12.5px;color:var(--mute)}
.mode-note{margin-bottom:12px;font-family:var(--prose);font-size:15px;line-height:1.5;color:#c9c8d4}
.wz-filter{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.wz-filter img{width:18px;height:18px;object-fit:contain}
.wz-h{margin:4px 0 8px;font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.wz-h~.wz-h{margin-top:20px}
.wz-waves{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:8px;margin-top:8px}
.wz-wave{padding:9px 11px;background:var(--panel);border:1px solid var(--line)}
.wz-wave b{font-size:14px;font-weight:800}
.wz-wave small{font-size:11.5px;color:var(--mute)}
.wz-wave p{margin-top:3px;font-family:var(--prose);font-size:13px;line-height:1.4;color:#dcdaf0}
.wz-zones{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:8px}
.wz-zone{display:grid;align-content:start;gap:4px;padding:9px 11px;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--c)}
.wz-zone-top{display:flex;align-items:center;gap:7px;min-width:0}
.wz-zone-top img{flex:none;width:18px;height:18px;object-fit:contain}
.wz-zone-top b{font-size:14px;font-weight:800}
.wz-zone-top small{margin-left:auto;padding:1px 6px;border:1px solid var(--line);border-radius:3px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);white-space:nowrap}
.wz-zone p{font-family:var(--prose);font-size:13px;line-height:1.4;color:#dcdaf0}
.wz-since{font-size:11.5px;color:var(--mute)}
.wz-since a,.wz-meta a,.mode-note a{color:inherit;text-decoration:underline;text-decoration-color:var(--line)}
.wz-since a:hover,.wz-meta a:hover{color:#fff}
.wz-zones+.mode-note{margin-top:8px}
.wz-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:8px}
.wz-sup{display:flex;gap:10px;padding:9px 10px;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--c)}
.wz-face{flex:none;width:44px;height:44px;overflow:hidden;background:#0d0d0f;border:1px solid var(--line)}
.wz-face img{width:100%;height:100%;object-fit:cover}
.wz-tx{display:grid;align-content:start;gap:2px;min-width:0}
.wz-sup-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.wz-sup-top b{font-size:14px;font-weight:800}
.wz-meta{font-size:12px;color:var(--mute)}
.wz-tx p{margin-top:2px;font-family:var(--prose);font-size:13px;line-height:1.4;color:#dcdaf0}
.wz-total{flex:none;display:grid;gap:2px;justify-items:start}
.wz-total span{display:inline-flex;align-items:center;gap:5px;padding:1px 7px 1px 3px;background:color-mix(in srgb,var(--c) 16%,transparent);border-radius:3px;font-size:11px;font-weight:700;white-space:nowrap}
.wz-total img{width:14px;height:14px;object-fit:contain}
.wz-old{margin-top:10px}
.wz-old summary{cursor:pointer;padding:6px 0;font-size:13px;font-weight:700;color:var(--mute)}
.wz-old summary:hover{color:#fff}
.wz-old[open] summary{margin-bottom:8px}
.ppc-h{margin:16px 0 8px;font:700 12.5px "Quantico";letter-spacing:.1em;text-transform:uppercase;color:#c4c4ca}
.ppc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:10px}
.ppc-card{display:flex;gap:12px;padding:8px;background:var(--panel);border:1px solid var(--line)}
.ppc-card-art{flex:none;width:84px;height:140px;overflow:hidden;background:#0d0d0f}
.ppc-card-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.ppc-card-tx{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;flex:1;padding-top:2px}
.ppc-card-side{flex:none;display:flex;flex-direction:column;gap:6px;width:84px}
.ppc-card-side .ppc-weak{justify-content:center;padding:2px 4px;font-size:11px;text-align:center}
.ppc-card-name{max-width:100%;font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Same frame on every card: the Trait takes at least six lines and the effect two, and the stats sit at the bottom with five rows of room, so the cards of a row line up */
.ppc-trait{width:100%;min-height:calc(13px * 1.45 * 6);font-family:var(--prose);font-size:13px;line-height:1.45;color:#c9c8d4}
.ppc-effect{width:100%;min-height:calc(13px * 1.4 * 2);font-family:var(--prose);font-size:13px;line-height:1.4;color:#fff}
.ppc-ix-week{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}
.ppc-ix-affixes{flex:1;min-width:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px}
/* subgrid: name, text, "Modules" and the module list line up across the three cards */
.ppc-ix-affix{display:grid;grid-row:span var(--rows);grid-template-rows:subgrid;row-gap:8px;align-content:start;padding:10px;background:var(--panel);border:1px solid var(--line)}
.ppc-ix-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ppc-ix-head>img,.ppc-ix-head>picture{flex:none;width:34px;height:34px;padding:3px;background:#0d0d0f;border:1px solid var(--line)}
.ppc-ix-head>picture img{width:100%;height:100%}
.ppc-ix-head>b{flex:1;min-width:0;font:700 14px "Quantico";color:#fff}
.ppc-ix-affix p{margin:0;font-family:var(--prose);font-size:13px;line-height:1.45;color:#c9c8d4}
.ppc-ix-affix h4{margin:2px 0 0;font:700 11.5px "Quantico";letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.ppc-ix-affix h4 small{margin-left:4px;font:700 12px var(--prose);letter-spacing:0;text-transform:none;color:#7fc4ff}
.ppc-ix-affix ul{display:contents}
.ppc-ix-affix li{display:flex;align-items:center;gap:8px;font-family:var(--prose);font-size:12.5px;line-height:1.35;color:#c9c8d4}
.ppc-ix-affix li>img,.ppc-ix-affix li>picture{flex:none;width:26px;height:26px}
.ppc-ix-affix li>picture img{width:100%;height:100%}
.ppc-ix-affix li span{flex:1}
.ppc-ix-affix li b{flex:none;font:700 12px "Quantico";color:#7fc4ff}
.ppc-ix-pool{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.ppc-ix-boss{display:flex;flex-direction:column;align-items:center;gap:6px;width:96px;margin:0;padding:6px;background:var(--panel);border:1px solid var(--line)}
.ppc-ix-boss.on{border-color:color-mix(in srgb,var(--red) 60%,var(--line));background:color-mix(in srgb,var(--red) 10%,var(--panel))}
.ppc-ix-boss figcaption{font:700 12px "Quantico";line-height:1.25;text-align:center;color:#fff}
.ppc-ix-boss figcaption small{display:block;font:600 10.5px var(--prose);color:var(--mute)}
.ppc-ix-boss.big{flex:none;width:auto}
.ppc-ix-boss.big .ppc-card-art{width:120px;height:200px}
@media (max-width:600px){.ppc-ix-week{flex-direction:column}.ppc-ix-boss.big{flex-direction:row;width:100%}.ppc-ix-boss.big .ppc-card-art{width:84px;height:140px}.ppc-ix-boss{width:84px}}
.ppc-note{width:100%;font-family:var(--prose);font-size:12px;font-style:italic;line-height:1.4;color:#e6bd52}
.ppc-stats{display:grid;grid-template-columns:48px 1fr;grid-auto-rows:18px;align-content:start;gap:0 10px;width:100%;min-height:calc(18px * 5 + 7px);margin-top:auto;padding-top:6px;border-top:1px solid var(--line);font-size:12px;line-height:18px}
.ppc-stats div{display:contents}
.ppc-stats dt{font:700 10.5px/18px "Quantico";letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.ppc-stats dd{font-variant-numeric:tabular-nums;color:#dcdaf0;white-space:nowrap}
.ppc-rewards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,370px),1fr));gap:6px}
.ppc-rewards.ach{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}
.ppc-ms{display:flex;align-items:center;gap:10px;padding:6px 10px;background:var(--panel);border:1px solid var(--line)}
.ppc-ms>b{flex:none;width:92px;font:700 14px "Quantico";font-variant-numeric:tabular-nums;color:#fff}
.ppc-rewards.ach .ppc-ms>b{width:auto;min-width:0;flex:1}
.ppc-rewards.ach .nrp-items{flex-wrap:nowrap}
.ppc-ms>b small{display:block;font:600 10.5px var(--prose);color:var(--mute)}
.ppc-ms.on{border-color:color-mix(in srgb,var(--red) 60%,var(--line));background:color-mix(in srgb,var(--red) 10%,var(--panel))}
.ppc-ms.on>b small{color:#fff}
.ppc-ms .nrp-items{gap:4px}
.ppc-ms .nrp-item{width:40px}
.ppc-ms .nrp-item .nrp-ico{width:38px;height:38px}
.ppc-ms .nrp-item b{font-size:11px}
.ppc-ms .nrp-ico.tx{font-size:8px}
@media (max-width:600px){.ppc-ms{gap:6px;padding:6px 8px}.ppc-ms>b{width:68px;font-size:12.5px}.ppc-ms .nrp-items{gap:3px}.ppc-ms .nrp-item{width:36px}.ppc-ms .nrp-item .nrp-ico{width:34px;height:34px}.ppc-ms .nrp-item b{font-size:10px}}
@media (max-width:600px){.ppc-rewards tbody th{width:80px;padding:10px 4px 10px 10px;font-size:13px}.ppc-rewards td{padding:8px 6px 8px 2px}.ppc-rewards .nrp-items{gap:4px}.ppc-rewards .nrp-item{width:44px}.ppc-rewards .nrp-item .nrp-ico{width:42px;height:42px}}
.ppc-times{display:flex;flex-wrap:wrap;gap:10px 18px}
.ppc-result small{display:block;margin-top:4px;font-size:14px;color:#c9c8d4}
.ppc-result small b{font-size:15px}
.ppc-shop{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px}
.ppc-shop-card{display:flex;flex-direction:column;padding:14px 16px;background:var(--panel);border:1px solid var(--line);font-family:var(--prose);font-size:14px;line-height:1.5;color:#dcdaf0}
.ppc-shop-top{display:flex;align-items:flex-start;gap:10px;min-height:64px;margin-bottom:4px}
.ppc-shop-top .nrp-ico{width:44px;height:44px;background:#0d0d0f;border:1px solid var(--line)}
.ppc-shop-top .nrp-ico.rank img{padding:6px}
/* The rank art shares one canvas, but the letters differ: S fills 223px of its 235px height, shifted left; A only 188px, near the top.
   These even them out in the 32px box */
.ppc-shop-top .r-S img{transform:translateX(1.6px)}
.ppc-shop-top .r-A img{transform:translateY(2.3px) scale(1.19)}
.ppc-shop-top b{display:block;font:700 14px "Quantico";letter-spacing:.06em;text-transform:uppercase;color:#fff}
.ppc-shop-top small{font-size:12.5px;color:var(--mute)}
.ppc-shop-card ul{margin:0;padding-left:0;list-style:none}
.ppc-shop-card li{display:grid;grid-template-columns:96px auto;align-items:center;min-height:26px;margin:2px 0}
.ppc-shop-card li>span:last-child{display:flex;align-items:center;gap:5px}
.ppc-shop-card p{margin-top:6px}
.ppc-shop-card li.ppc-shop-total{margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
/* The notes sit at the bottom of every card, on the same line across the row */
.ppc-shop-foot{margin-top:auto;padding-top:10px}
.ppc-shop-note{font-size:12.5px;color:var(--mute)}
.ppc-price{display:inline-flex;align-items:center;gap:3px;font:700 14px/1 "Quantico";color:#fff}
.ppc-price img{width:20px;height:20px;object-fit:contain}
.ppc-affix{font-family:"Quantico";font-size:12px;font-weight:700;color:#fff}
.ppc-weak{--c:#7c7c84;display:inline-flex;align-items:center;gap:5px;padding:2px 8px 2px 4px;background:color-mix(in srgb,var(--c) 18%,transparent);border:1px solid color-mix(in srgb,var(--c) 55%,transparent);border-radius:3px;font-size:12px;font-weight:700;color:#fff}
.ppc-weak img{width:18px;height:18px;object-fit:contain}
.ppc-weak.none{padding-left:8px;color:var(--mute)}
.ppc-tabs{flex-wrap:wrap;margin-bottom:12px}
.ppc-tabs small{font-size:10.5px;font-weight:600;opacity:.75}
.ppc-time{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px}
.ppc-time input{width:110px;padding:8px 10px;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font:600 15px "Quantico"}
.ppc-time input:focus-visible{outline:2px solid var(--red);outline-offset:1px}
.ppc-result{min-height:1.5em;margin:10px 0 12px;font-family:var(--prose);font-size:16px;color:#dcdaf0}
.ppc-result b{color:#fff;font-size:18px}
.ppc-table{max-width:520px;max-height:420px;overflow:auto;background:var(--panel);border:1px solid var(--line);overscroll-behavior:contain}
.ppc-table table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.ppc-table th{position:sticky;top:0;padding:8px 12px;background:#1f1f21;font-size:11px;font-weight:800;letter-spacing:.1em;text-align:right;text-transform:uppercase;color:var(--mute)}
.ppc-table td{padding:5px 12px;text-align:right;border-top:1px solid #222225}
.ppc-table :is(th,td):first-child{text-align:left}
.ppc-table td:last-child{color:var(--mute)}
.ppc-table tr.on td{background:var(--side-on);color:#fff}
/* Norman Revival Plan */
.nrp-nav{position:sticky;top:0;z-index:6;display:flex;gap:6px;overflow-x:auto;margin:0 0 14px;padding:7px 0;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(6px);scrollbar-width:none}
.nrp-nav button{flex:none;padding:5px 11px;background:var(--panel);border:1px solid var(--line);color:#c9c8d4;font:700 11.5px "Quantico";letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.nrp-nav button:hover{color:#fff;border-color:#5a5a62}
.nrp-sec{margin-top:22px;scroll-margin-top:52px}
.nrp-sec>.grp{margin-bottom:10px}
/* Rule cards side by side end at the same line */
#nrp-rules .mode-cards{align-items:stretch}
.nrp-card{min-width:0;padding:11px 13px;background:var(--panel);border:1px solid var(--line)}
.nrp-h{margin-bottom:8px;font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.nrp-h-ico{display:flex;align-items:center;gap:6px}
.nrp-h-ico img{width:18px;height:18px;object-fit:contain}
.nrp-fine{margin-top:8px;font-family:var(--prose);font-size:13px;line-height:1.4;color:#a9a8b4}
.nrp-fine b{color:#fff}
.nrp-ico{position:relative;display:block;flex:none;width:40px;height:40px;overflow:hidden}
.nrp-ico img{display:block;width:100%;height:100%;object-fit:contain}
.nrp-ico img.stars{position:absolute;left:0;bottom:0;height:auto;object-fit:fill}
.nrp-ico.tx{display:grid;place-items:center;padding:2px;font-size:9px;font-weight:700;line-height:1.1;text-align:center;color:#c9c8d4}
.nrp-items{display:flex;flex-wrap:wrap;gap:6px}
.nrp-item{display:grid;justify-items:center;gap:2px;width:52px}
.nrp-item .nrp-ico{width:48px;height:48px;background:#0d0d0f;border:1px solid var(--line)}
.nrp-item b{font:700 12px "Quantico";font-variant-numeric:tabular-nums;color:#fff}
.nrp-pips{display:inline-flex;gap:4px;padding:0 2px}
.nrp-pips i{width:7px;height:7px;background:#d8d8dc;transform:rotate(45deg)}
.nrp-tag{padding:1px 7px;border:1px solid var(--line);font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
/* Overview */
.nrp-over{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px}
.nrp-battle{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
.nrp-battle button{display:grid;gap:1px;padding:7px 10px;background:#0d0d0f;border:1px solid var(--line);color:var(--mute);font:inherit;text-align:left;cursor:pointer}
.nrp-battle button:hover{border-color:#5a5a62}
.nrp-battle b{font:700 13.5px "Quantico";color:var(--txt)}
.nrp-battle small{font-size:11.5px}
.nrp-battle .on{background:color-mix(in srgb,var(--red) 16%,#0d0d0f);border-color:var(--red)}
.nrp-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.nrp-stat{display:flex;align-items:center;gap:9px;min-width:0;padding:6px 9px;background:#0d0d0f;border:1px solid var(--line)}
.nrp-stat b{display:block;font:700 17px "Quantico";font-variant-numeric:tabular-nums;color:#fff}
.nrp-stat span{display:block;font-size:11.5px;line-height:1.25;color:var(--mute)}
.nrp-steps{display:grid;gap:8px;padding:0;list-style:none;counter-reset:nrp}
.nrp-steps li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;font-family:var(--prose);font-size:14px;line-height:1.4;color:#c9c8d4;counter-increment:nrp}
.nrp-steps li::before{content:counter(nrp,decimal-leading-zero);padding-top:1px;font:700 12.5px "Quantico";color:var(--red)}
.nrp-steps b{color:#fff}
/* Mines */
.nrp-route{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:6px;margin-bottom:10px}
.nrp-stop{display:grid;gap:2px;justify-items:start;min-width:0;padding:7px 10px;background:var(--panel);border:1px solid var(--line);border-top:3px solid #3a3a3f;color:var(--mute);font:inherit;text-align:left;cursor:pointer}
.nrp-stop:hover{border-color:#5a5a62;border-top-color:#8a8a92}
.nrp-stop.on{background:color-mix(in srgb,var(--red) 12%,var(--panel));border-color:var(--red)}
.nrp-stop-n{font:700 10.5px "Quantico";color:var(--red)}
.nrp-stop b{font:700 14px "Quantico";color:#fff}
.nrp-stop-meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;font-size:11.5px}
.nrp-stop-meta small{white-space:nowrap}
.nrp-mine{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr);gap:10px}
/* Both columns end at the same line: Perfect Tactics grows down to the bottom of the Electricity box, or the box down to it */
.nrp-mine-main{display:flex;flex-direction:column}
.nrp-mine-main>.nrp-pt{flex:1;align-content:start}
.nrp-mine-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.nrp-mine-top h3{font:700 17px "Quantico";color:#fff}
.nrp-map{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);align-items:center}
.nrp-links{display:grid;gap:8px}
.nrp-arrow{position:relative;align-self:stretch}
.nrp-arrow::before{content:"";position:absolute;left:0;right:50%;top:25%;bottom:25%;border:1px solid #5a5a62;border-left:0}
.nrp-arrow::after{content:"";position:absolute;left:50%;right:1px;top:50%;border-top:1px solid #5a5a62}
.nrp-node{min-width:0;padding:9px 11px;background:var(--panel);border:1px solid var(--line)}
.nrp-node.deep{background:#1c1516;border-color:color-mix(in srgb,var(--red) 55%,var(--line))}
.nrp-node-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.nrp-kind{font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.nrp-node.deep .nrp-kind{color:#ff6b76}
.nrp-node h4{margin:2px 0 4px;font:700 14.5px "Quantico";color:#fff}
.nrp-affix{display:flex;align-items:flex-start;gap:8px;font-family:var(--prose);font-size:13px;line-height:1.4;color:#c9c8d4}
.nrp-affix>img,.nrp-affix>picture{flex:none;width:34px;height:34px;padding:3px;background:#0d0d0f;border:1px solid var(--line)}
.nrp-affix>picture img{width:100%;height:100%}
.nrp-affix p{margin:0}
.nrp-affix+.nrp-affix{margin-top:5px}
.nrp-affix b{display:inline-block;margin-right:6px;padding:0 6px;background:#ffffff14;font:700 11.5px "Quantico";color:#fff}
.nrp-carry{margin-top:6px;font-size:11px;color:var(--mute)}
.nrp-side{display:grid;gap:10px}
.nrp-gauge{position:relative;height:9px;margin:4px 0 4px;background:#0d0d0f;border:1px solid var(--line)}
.nrp-gauge-fill{position:absolute;left:0;top:0;bottom:0;width:var(--w);background:linear-gradient(90deg,#2f8f4a,#8fd85a)}
.nrp-gauge i{position:absolute;top:-4px;bottom:-4px;left:var(--at);width:2px;margin-left:-1px;background:#fff}
.nrp-gauge-scale{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px;font-size:11.5px;color:var(--mute)}
.nrp-rows{display:grid;gap:8px}
.nrp-row{display:grid;gap:5px;padding-top:8px;border-top:1px solid #26262a}
.nrp-row-h{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:#dcdaf0}
.nrp-row-h img{width:16px;height:16px;object-fit:contain}
.nrp-bp{font:700 22px "Quantico";color:#fff}
.nrp-bp small{font-size:12px;color:var(--mute)}
.nrp-pt{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;align-items:center;margin-top:10px}
.nrp-pt .nrp-fine{margin:0}
.nrp-pt .nrp-h{margin-bottom:2px}
.nrp-pt-tx{grid-column:1/-1;padding:7px 9px;background:#0d0d0f;border-left:2px solid var(--red);font-family:var(--prose);font-size:13px;line-height:1.45;color:#dcdaf0}
/* Rewards */
.nrp-table{overflow-x:auto;background:var(--panel);border:1px solid var(--line)}
.nrp-table table{width:100%;border-collapse:collapse;font-size:13.5px;font-variant-numeric:tabular-nums}
.nrp-table th{padding:6px 8px;background:#1f1f21;font-size:11px;font-weight:800;letter-spacing:.08em;text-align:right;text-transform:uppercase;color:var(--mute);vertical-align:middle}
.nrp-table th .nrp-ico{width:34px;height:34px;margin:0 auto}
/* Rewards: every item column is centred, the icon over its numbers */
.nrp-table:not(.nrp-evo) :is(th,td):not(:first-child){text-align:center}
/* ...and all of equal width, whatever the numbers (Tantalum Ore has the longest); it scrolls sideways when narrow */
.nrp-table:not(.nrp-evo) table{table-layout:fixed;min-width:860px}
.nrp-table:not(.nrp-evo) :is(th,td):first-child{width:210px}
.nrp-table th .nrp-ico.tx{width:auto;max-width:72px;height:auto;font-size:10px}
.nrp-table td{padding:6px 8px;text-align:right;white-space:nowrap;border-top:1px solid #222225}
.nrp-table :is(th,td):first-child{position:sticky;left:0;text-align:left;background:inherit}
.nrp-table td:first-child{background:var(--panel);font-weight:700}
.nrp-table td.zero{color:#4a4a50}
.nrp-table tfoot td{background:#1c1516;border-top:1px solid #5a5a62;font-weight:800;color:#fff}
/* Site Bonus */
.nrp-sites{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.nrp-site{display:flex;align-items:center;gap:11px;min-width:0;padding:10px 12px;background:var(--panel);border:1px solid var(--line)}
.nrp-site>img,.nrp-site>picture{flex:none;width:44px;height:44px;padding:5px;object-fit:contain;background:#0d0d0f;border:1px solid var(--line)}
.nrp-site>picture img{width:100%;height:100%;object-fit:contain}
.nrp-site>div{display:grid;min-width:0}
.nrp-site h3{font:700 11px "Quantico";letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.nrp-site b{font:700 20px "Quantico";line-height:1.15;color:#fff}
.nrp-site small{font-size:12px;color:#c9c8d4}
@media(max-width:1100px){.nrp-sites{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.nrp-sites{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Energy Fields */
.nrp-fields{display:grid;grid-template-columns:200px minmax(0,1fr);gap:10px}
/* The six buttons share the height of the Field box, so the list ends where the box ends */
.nrp-flist{display:grid;grid-auto-rows:1fr;gap:4px}
.nrp-fbtn{display:flex;align-items:center;gap:9px;min-width:0;padding:6px 9px;background:var(--panel);border:1px solid var(--line);border-left:3px solid transparent;color:#c9c8d4;font:700 13px "Quantico";text-align:left;cursor:pointer}
.nrp-fbtn:hover{color:#fff;border-color:#5a5a62}
.nrp-fbtn.on{background:#222225;border-color:var(--line);border-left-color:var(--red);color:#fff}
.nrp-fbtn img{flex:none;width:26px;height:26px;object-fit:contain}
.nrp-fdetail{min-width:0;padding:12px 14px;background:var(--panel);border:1px solid var(--line)}
/* Every Field is a layer of the stack; the layers share rows (subgrid), so the head, the title and the Modules sit at the
   same height whichever Field is picked */
.nrp-fdetail>.nrp-stack{grid-template-rows:repeat(3,auto)}
.nrp-fdetail>.nrp-stack>.nrp-layer{grid-row:1/-1;display:grid;grid-template-rows:subgrid}
.nrp-fhead{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.nrp-fhead img{flex:none;width:52px;height:52px;object-fit:contain}
.nrp-fhead h3{font:700 17px "Quantico";color:#fff}
.nrp-fhead p{margin-top:2px;font-family:var(--prose);font-size:14px;line-height:1.4;color:#dcdaf0}
.nrp-mods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.nrp-mod{min-width:0;padding:8px 10px;background:#0d0d0f;border:1px solid var(--line)}
.nrp-mod-top{display:flex;flex-direction:column;align-items:center;gap:5px;margin-bottom:8px;text-align:center}
.nrp-mod-top img{flex:none;width:44px;height:44px;object-fit:contain}
.nrp-mod-top b{font:700 13px "Quantico";color:#fff}
.nrp-mod p{font-family:var(--prose);font-size:13px;line-height:1.4;color:#c9c8d4}
/* Ore Shop */
.nrp-shop{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,3fr);gap:10px}
.nrp-price{display:inline-flex;align-items:center;gap:5px;font:700 15px "Quantico";font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap}
.nrp-price img{width:24px;height:24px;object-fit:contain}
.nrp-full{margin-left:6px;font-weight:700;letter-spacing:0;text-transform:none}
.nrp-ladder{display:grid;gap:6px}
.nrp-ladder{max-width:560px}
.nrp-step{display:grid;grid-template-columns:96px minmax(40px,1fr) 64px 100px;align-items:center;gap:10px;font-size:13px}
.nrp-step-n{font-weight:700;color:#dcdaf0;font-variant-numeric:tabular-nums}
.nrp-step-bar{position:relative;height:8px;background:#0d0d0f;border:1px solid var(--line)}
.nrp-step-bar i{position:absolute;left:0;top:0;bottom:0;width:var(--w);background:#3b7bd6}
.nrp-off{white-space:nowrap;justify-self:start;padding:1px 6px;background:color-mix(in srgb,var(--red) 28%,transparent);font:700 11.5px "Quantico";color:#fff}
.nrp-off.unknown{background:none;padding:0;font-family:inherit;font-weight:600;color:var(--mute)}
.nrp-off.none{background:#3a3a3f}
.nrp-step .nrp-price{justify-self:end}
.nrp-evo-h{margin-top:0}
/* Every version of a box in one grid cell: the box keeps the size of the largest, only the chosen one shows */
.nrp-stack{display:grid}
.nrp-stack>.nrp-layer{grid-area:1/1;min-width:0}
.nrp-layer[aria-hidden]{visibility:hidden}
.nrp-stop:disabled{opacity:.35;cursor:not-allowed}
.nrp-stop:disabled:hover{border-color:var(--line);border-top-color:#3a3a3f}
.nrp-evo-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,440px);gap:10px;margin-top:14px}
/* The evolve table grows down to the bottom of the Calculator (its rows share the extra height) */
.nrp-evo-grid>div:first-child{display:flex;flex-direction:column}
.nrp-evo-grid>div:first-child>.nrp-stack{flex:1}
.nrp-evo-grid .nrp-layer{display:flex;flex-direction:column}
.nrp-evo-grid .nrp-evo{flex:1}
.nrp-evo-grid .nrp-evo table{height:100%}
.nrp-calc{display:grid;gap:9px}
.nrp-calc-in{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--mute)}
.nrp-calc-in span{flex:1}
.nrp-calc-in input{width:150px;padding:6px 9px;background:#0d0d0f;border:1px solid var(--line);color:#fff;font:700 15px "Quantico";font-variant-numeric:tabular-nums;text-align:right}
.nrp-calc-in input:focus-visible{outline:2px solid var(--red);outline-offset:1px}
.nrp-calc-out{overflow-x:auto;border:1px solid var(--line)}
.nrp-calc-out table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.nrp-calc-out th{padding:6px 8px;background:#0d0d0f;border-bottom:1px solid var(--line);font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--mute);text-align:right;white-space:nowrap}
.nrp-calc-out td{padding:6px 8px;border-top:1px solid var(--line);font:700 13.5px "Quantico";color:#fff;text-align:right;white-space:nowrap}
.nrp-calc-out th:first-child,.nrp-calc-out td:first-child{text-align:left}
.nrp-calc-out .nrp-price img{width:16px;height:16px}
.nrp-calc-out .zero,.nrp-calc-n b{color:var(--mute)}
.nrp-calc-out tr.ok td{background:color-mix(in srgb,var(--red) 12%,transparent)}
.nrp-calc-out tr.ok .nrp-calc-n b{color:#fff;font-size:15px}
.nrp-evo .zero{color:var(--mute)}
.nrp-evo td .nrp-price{font-size:13.5px}
.nrp-evo td .nrp-price img{width:20px;height:20px}
.nrp-rank img{display:block;height:22px;width:auto}
@media(max-width:1100px){.nrp-mine{grid-template-columns:minmax(0,1fr)}.nrp-side{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start}}
@media(max-width:760px){
  .nrp-calc-out th,.nrp-calc-out td{padding:6px 5px}
  .nrp-calc-out th{font-size:9.5px;letter-spacing:.02em;white-space:normal}
  .nrp-nav{position:static}
  .nrp-over,.nrp-shop,.nrp-fields,.nrp-evo-grid{grid-template-columns:minmax(0,1fr)}
  .nrp-route{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nrp-map{grid-template-columns:minmax(0,1fr)}
  .nrp-arrow{height:18px}
  .nrp-arrow::before{display:none}
  .nrp-arrow::after{left:50%;right:auto;top:0;bottom:0;border-top:0;border-left:1px solid #5a5a62}
  .nrp-flist{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nrp-fbtn{flex-direction:column;gap:3px;padding:6px 4px;border-left-width:1px;border-bottom:3px solid transparent;font-size:11.5px;text-align:center}
  .nrp-fbtn.on{border-left-color:var(--line);border-bottom-color:var(--red)}
  .nrp-fdetail>.nrp-stack{grid-template-rows:repeat(5,auto)}
  .nrp-mods{grid-template-columns:minmax(0,1fr);grid-row:span 3;grid-template-rows:subgrid}
  .nrp-step{grid-template-columns:auto minmax(30px,1fr) auto auto;gap:7px}
  .nrp-pt{grid-template-columns:minmax(0,1fr)}
}
.ot-totals{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:6px;padding:12px 16px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--red)}
.ot-label{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
#otTotals{display:flex;flex-wrap:wrap;gap:8px 18px}
#otTotals .ot-coin{font-size:17px}
.ot-coin{display:inline-flex;align-items:center;gap:5px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.ot-coin img{width:22px;height:22px;object-fit:contain}
.ot-coin small{font-weight:500;color:var(--mute)}
.ot-none{font-size:12px;color:var(--mute)}
.ot-sets{display:grid;gap:8px}
.ot-set{background:var(--panel);border:1px solid var(--line)}
.ot-set>summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:12px 16px;cursor:pointer;list-style:none}
.ot-set>summary::-webkit-details-marker{display:none}
.ot-title{font-size:16px;font-weight:800}
.ot-title::before{content:"▸";margin-right:8px;color:var(--red)}
.ot-set[open] .ot-title::before{content:"▾"}
.ot-prog{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-left:auto;font-size:13px}
.ot-count{padding:1px 8px;background:#ffffff12;border-radius:4px;font-size:12px;font-weight:700;color:#c4c4ca}
.ot-body{padding:0 16px 14px}
.ot-mark{margin-bottom:8px}
.ot-items{display:grid;padding:0;grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));gap:4px 16px;list-style:none}
.ot-item{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 8px;border-radius:4px;cursor:pointer}
.ot-item:hover{background:#ffffff08}
.ot-item input{flex:none;width:18px;height:18px;accent-color:var(--red)}
.ot-name{display:grid;flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere}
.ot-name small{font-size:12px;color:var(--mute)}
.ot-gain{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 10px;font-size:13px}
.ot-item:has(input:checked) .ot-name{color:var(--mute);text-decoration:line-through}
.ot-item:has(input:checked) .ot-gain{opacity:.45}
@media(max-width:760px){.mode-head{flex-direction:column;align-items:flex-start;gap:12px;padding:18px}.mode-head-art{width:60px;height:60px}.mode-head h1{font-size:28px}.ot-prog{flex-basis:100%;margin-left:0}.ot-totals{position:static}.ppc-table{max-width:none;max-height:360px}}
/* Classes page (/assets/classes) and the class card of a construct page, which links to it */
a.cx-attr{color:inherit;transition:border-color .2s}
a.cx-attr:hover{border-color:var(--red)}
.cls-list{display:grid;gap:14px}
.cls{padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:4px;scroll-margin-top:16px}
.cls:target{border-color:var(--red)}
.cls-head{display:flex;align-items:center;gap:14px}
.cls-head .chip-icon,.cls-head .chip-icon img{width:48px;height:48px}
.cls-head h2{margin:0 0 4px;font-size:20px}
.cls-head p{margin:0;color:var(--mute);line-height:1.5}
.cls small{display:block;margin:14px 0 8px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.cls-frames{display:flex;flex-wrap:wrap;gap:8px}
.cls-frames .slot{width:56px;height:56px;border-radius:4px;transition:border-color .2s}
.cls-frames .slot:hover{border-color:var(--red)}
@media(max-width:760px){.cls{scroll-margin-top:72px}}
.cls-mech{margin-top:14px;padding:12px 14px;background:#0000002e;border:1px solid var(--line);border-radius:4px}
.cls-mech h3{margin:0 0 6px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.cls-mech p{margin:0 0 6px;line-height:1.55}
.cls-role{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.cls-role:first-of-type{border-top:0;padding-top:0}
.cls-role .effect{flex:1;min-width:0}
.cls-roles{display:flex;gap:4px;flex:none;min-width:28px}
.cls-roles .chip-icon,.cls-roles .chip-icon img{width:28px;height:28px}
.cls .cls-mech small{margin:8px 0 0;text-transform:none;letter-spacing:0;font-weight:400}
.cls-mech small a{color:var(--txt);text-decoration:underline}
/* Under the title of a Teams page: the game's text for the Energy or Effect, and what changes its damage */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.type-info{display:grid;gap:12px;margin:0 0 22px;max-width:900px}
.ti-text{margin:0;color:var(--mute);line-height:1.6}
.ti-pairs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.ti-pairs small{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.ti-link{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 6px;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--txt);font-size:13px;font-weight:700}
.ti-link:hover{border-color:#5a5a62}
.ti-link .chip-icon,.ti-link .chip-icon img{width:20px;height:20px}
.ti-rule{padding:12px 14px;background:var(--panel);border:1px solid var(--line);border-radius:4px}
.ti-rule h2{margin:0 0 6px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.ti-rule p{margin:0 0 4px;font-size:14px;line-height:1.5}
.ti-rule>small{display:block;margin-top:8px;font-size:12px;color:var(--mute)}
.ti-factors{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.ti-factors li{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:4px;font-size:12.5px;font-weight:700}
.ti-factors .on{background:#3d8bff1f;color:#cfe0ff}
.ti-factors .on b{color:#5aa0ff}
.ti-factors .off{background:#ffffff0a;color:var(--mute);text-decoration:line-through}

/* Patch card of the home: the patch running now, its resets and income, its frame and the next patch (homePatch in app.js) */
.pcards{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:10px;margin-top:18px}
.pcard{position:relative;overflow:hidden;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:14px 16px}
.pc-now{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,175px);grid-template-areas:"head ends" "times times" "income income";column-gap:12px;align-items:start}
.pc-now>:not(.pc-bg){position:relative;z-index:1}
.pc-ends{grid-area:ends;align-self:center;display:grid}
/* Warzone and Phantom Pain Cage side by side: in three columns the weekly reset goes last, in two it keeps its place */
.pc-time.pc-weekly{order:1}
.pc-head{grid-area:head;min-width:0}
.pc-kicker{display:block;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#ff4d59}
.pc-name{margin:3px 0 2px;font-size:20px;font-weight:800;line-height:1.15}
.pc-ver{display:inline-block;margin-left:4px;padding:1px 6px;font-size:11.5px;font-weight:700;vertical-align:3px;color:#ff8a92;background:#cf14241f;border:1px solid #cf142466;border-radius:4px}
.pc-span{margin:0;color:var(--mute);font:500 13px var(--prose)}
.pc-times{grid-area:times;display:grid;grid-auto-rows:1fr;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
/* Text starts at the top so every title lines up across a row, with or without a rewards line; the icon stays centred */
.pc-time{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:6px 9px;background:#0e0e0f;border:1px solid var(--line);border-radius:4px;color:inherit;text-decoration:none;transition:border-color .15s}
a.pc-time:hover,a.pc-time:focus-visible{border-color:var(--red)}
.pc-time.main{background:#1c1516;border-color:#cf142466}
.pc-time-art{flex:0 0 28px;align-self:center;display:flex;justify-content:center}.pc-time-art img{display:block;width:24px;height:24px;object-fit:contain}
/* The Warzone emblem is wide and thin, so at 24px it reads smaller than the other mode icons */
.pc-time-art img[src*="warzone"]{width:28px;height:28px}
.pc-time-tx{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.pc-time small{font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-time b{font-size:17.4px;font-variant-numeric:tabular-nums;color:#fff}
.pc-time time{font:500 11.5px var(--prose);color:#c4c4ca;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-pay{display:flex;flex-wrap:wrap;gap:1px 8px;margin-top:3px;font:600 11.5px var(--prose);color:#e6e6ea;font-variant-numeric:tabular-nums}
.pc-pay span{display:inline-flex;align-items:center;gap:4px;line-height:18.4px}
.pc-pay img{display:block;flex:0 0 18.4px;width:18.4px;height:18.4px;object-fit:contain;object-position:center}
.pc-time.pc-due{background:#1e1808;border-color:#e0a21a}
a.pc-time.pc-due:hover,a.pc-time.pc-due:focus-visible{border-color:#ffc14d}
.pc-time-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 8px}
.pc-alert{font:700 10.5px var(--prose);font-style:normal;line-height:1.25;color:#ffc14d}
.pc-income{grid-area:income;margin-top:12px}
.pc-sub{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin:0 0 6px;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.pc-sub a{color:var(--txt);letter-spacing:.02em;text-transform:none;font-size:11.5px}
.pc-sub a:hover{color:#ff4d59}
.pc-coins{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px}
.pc-coin{display:flex;align-items:center;gap:7px;min-width:0;padding:5px 7px;background:#0e0e0f;border:1px solid var(--line);border-radius:4px}
.pc-coin img{flex:0 0 auto;width:24px;height:24px;object-fit:contain}
.pc-coin span{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.pc-coin b{font-size:13.5px;font-variant-numeric:tabular-nums}
.pc-coin small{font:500 10.5px var(--prose);color:var(--mute);white-space:nowrap}
.pc-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.pc-frame{position:relative;display:flex;flex:1 1 0;min-height:96px;overflow:hidden;padding:11px 14px;background:linear-gradient(90deg,var(--panel) 40%,color-mix(in srgb,var(--c) 28%,var(--panel)));border:1px solid var(--line);border-radius:6px;color:inherit;text-decoration:none;transition:border-color .15s}
.pc-frame:hover,.pc-frame:focus-visible{border-color:var(--c)}
.pc-frame-tx{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:4px;max-width:64%}
.pc-frame b{font-size:16px;line-height:1.15}.pc-frame b span{color:#c4c4ca;font-weight:600}
.pc-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.pc-badge{display:inline-flex;align-items:center;gap:4px;padding:1px 7px 1px 3px;font-size:11px;background:#0b0b0cb3;border:1px solid var(--line);border-radius:4px}
.pc-badge .chip-icon,.pc-badge .chip-icon img{width:16px;height:16px}
.pc-frame-art{position:absolute;top:0;right:0;bottom:0;width:50%}
.pc-frame-art img{width:100%;height:100%;object-fit:cover;object-position:50% 14%;-webkit-mask-image:linear-gradient(90deg,#0000,#000 40%);mask-image:linear-gradient(90deg,#0000,#000 40%)}
.pc-frame.pc-portrait .pc-frame-art img{object-position:50% 35%}
.pc-next{flex:1 0 auto;min-height:96px;display:flex;align-items:center}
.pc-bg{position:absolute;inset:0}
.pc-bg img{width:100%;height:100%;object-fit:cover;object-position:60% 40%}
.pc-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#161617f2 30%,#16161766 75%,#16161733)}
.pc-next .pc-head{position:relative;z-index:1}
.pc-in{font:700 13px "Quantico";color:#fff;font-variant-numeric:tabular-nums}
.pc-nc{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin-top:8px;padding-top:8px;border-top:1px solid #ffffff1f;color:inherit;text-decoration:none}
.pc-nc .pc-kicker{flex:0 0 100%}
.pc-nc b{font-size:15px;line-height:1.15}.pc-nc b span{color:#c4c4ca;font-weight:600}
.pc-nc .pc-badges{margin-top:0}
.pc-nc:hover b,.pc-nc:focus-visible b{text-decoration:underline}
/* The preview livestream of the next patch (patchLive): countdown, LIVE NOW badge, replay */
.pc-live{margin:8px 0 0;padding-top:8px;border-top:1px solid #ffffff1f;font:500 12px var(--prose);color:var(--mute);line-height:1.6}
.pc-live b{font:700 13px "Quantico";color:#fff;font-variant-numeric:tabular-nums}
.pc-live time{color:#d8d8dc}
.pc-live a{color:#fff;font-weight:600;white-space:nowrap;text-decoration:none;margin-left:4px}
.pc-live a:hover{text-decoration:underline}
.pc-yt{width:17px;height:12px;margin-right:5px;fill:#e62117;vertical-align:-1px}
.pc-live.on{color:#fff}
.pc-live-dot{display:inline-flex;align-items:center;gap:6px;margin-right:8px;padding:1px 8px;border-radius:3px;background:var(--red);color:#fff;font:700 11px "Quantico";letter-spacing:.06em}
.pc-live-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:live-dot 1.2s ease-in-out infinite}
@keyframes live-dot{50%{opacity:.25}}
@media(max-width:1200px){.pc-times{grid-template-columns:repeat(2,minmax(0,1fr))}.pc-time.pc-weekly{order:0}}
@media(max-width:1000px){.pcards{grid-template-columns:minmax(0,1fr)}.pc-times{grid-template-columns:repeat(3,minmax(0,1fr))}.pc-time.pc-weekly{order:1}}
@media(max-width:700px){
  .pcard{padding:14px}
  .pc-now{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "ends" "times" "income"}
  .pc-ends{margin-top:8px}.pc-time.pc-weekly{order:0}
  .pc-name{font-size:18px}
  .pc-times{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:8px}
  .pc-time{padding:4px 7px;gap:6px}.pc-time-art{flex-basis:22px}.pc-time-art img{width:20px;height:20px}
  .pc-time b{font-size:16.2px}
  .pc-time small{font-size:9px;letter-spacing:.05em}
  .pc-pay{margin-top:1px}
  .pc-income{margin-top:8px}
  .pc-coins{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .pc-coin{gap:5px;padding:4px 5px}.pc-coin img{width:20px;height:20px}
  .pc-coin b{font-size:12.5px}.pc-coin small{font-size:10px}
  /* Patch construct and next patch cards */
  .pc-side{gap:8px}
  .pc-frame{flex:0 0 auto;min-height:80px;padding:8px 12px}
  .pc-frame-tx{gap:2px}.pc-frame b{font-size:15px}
  .pc-badges{gap:4px;margin-top:2px}
  .pc-badge{padding:0 6px 0 3px;font-size:10.5px}
  .pc-next{min-height:0}
  .pc-nc{margin-top:6px;padding-top:6px}.pc-nc b{font-size:14px}
  .pc-live{margin-top:6px;padding-top:6px;font-size:11.5px;line-height:1.5}
  .pc-live b{font-size:12.5px}
}
/* The current patch's art sits behind a larger card, so it is dimmed more to keep the text readable */
.pc-now .pc-bg img{object-position:50% 32%}
.pc-now .pc-bg::after{background:linear-gradient(90deg,#161617e6 20%,#16161799 60%,#16161766)}
/* Next patch art: enlarged and shifted up, so the character shows and the logos at the top and the title at the bottom of the art are cropped out */
.pc-next .pc-bg img{height:240%;position:relative;top:-60%;object-position:62% 0}
.pc-next .pc-bg::after{background:linear-gradient(90deg,#161617f5 0,#161617d9 38%,#16161799 70%,#16161780)}
