:root{color-scheme:light;--ink:#272339;--muted:#6c687e;--purple:#6645a0;--active:#6543a6;--soft:#f0ebf8;--line:#e6e3ec;--page:#f6f6fa;--c0:#817895;--c1:#aaaab9;--c2:#49a67b;--c3:#529ed3;--c4:#bd73ef;--c5:#e6b35d;--c6:#ed8b68;--shadow:0 3px 12px #29203c05}
.account-form{display:grid;gap:12px;margin-top:16px}.account-form label{display:grid;gap:4px;font-size:14px;font-weight:600}.account-form input{width:100%;border:1px solid #d7cfe1;padding:10px 12px;border-radius:8px;font-size:16px}.form-error{color:#a33b42;background:#fff1f2;padding:8px;border-radius:6px}.bind-card{padding:24px}.bind-card p{margin:12px 0}.public-row{display:flex;align-items:center;gap:5px}.public-row>button{flex:1}.public-row .tools button{padding:7px}.special-unit{border-left:3px solid #128888!important;background:linear-gradient(100deg,#ecf8f5,white 62%)!important}.unlock-label{display:inline-flex;font-size:12px;font-style:normal;color:#08736e;font-weight:700;background:#e1f5f0;padding:1px 6px;border-radius:5px}.on-board-special:after{content:"◆";position:absolute;top:12%;right:13%;color:#79ffe0;font-size:11px;text-shadow:0 1px 2px #004f49;pointer-events:none;z-index:3}.augment-en{font-weight:650;margin:6px 0}.augment-grade{display:grid;place-items:center;width:43px;height:43px;border-radius:9px;color:#657489;background:#edf0f4;flex-shrink:0}.augment-grade .thumb{width:39px;height:39px}.grade-1{color:#986515;background:#fbefd2}.grade-2{color:#7053aa;background:#f3e8ff}.data-btn span{max-width:115px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-tabs{flex-wrap:wrap}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:"Inter","Microsoft YaHei UI","PingFang SC","Noto Sans SC",system-ui,sans-serif;background:var(--page);line-height:1.55;overflow-wrap:anywhere}button,a,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a88ccd;outline-offset:3px}h1,h2,h3,h4,p{margin:0}svg.ic{flex-shrink:0;vertical-align:middle}button{line-height:1.35}.top{background:#fff;border-bottom:1px solid var(--line)}.top-inner,.container{width:min(1256px,calc(100% - clamp(36px,8vw,116px)));margin:0 auto}.top-inner{min-height:72px;display:flex;align-items:center;gap:48px}
.brand {
  display:inline-flex; flex:none; align-items:center; gap:9px; min-height:44px;
  color:var(--ink); white-space:nowrap;
}
.brand-mark {
  flex:none; position:relative; display:grid; place-items:center; width:40px; height:40px;
  overflow:hidden; border-radius:26%; background:linear-gradient(145deg,#4d3a65,#302540);
  box-shadow:inset 0 0 0 1px #68527c;
}
.brand-mark img { width:100%; height:100%; object-fit:contain; }
.brand-words { display:grid; justify-items:start; gap:2px; }
.brand-name { font-size:21px; font-weight:750; line-height:1.08; letter-spacing:.025em; }
.brand-byline { display:flex; align-items:center; gap:5px; font-size:10.5px; font-weight:500; line-height:1.2; color:#68586d; }
.brand-byline [lang=en] { letter-spacing:.025em; font-variant-numeric:lining-nums; }
.brand-publisher { padding-inline-start:5px; border-inline-start:1px solid #d4c9d7; }
@media (prefers-reduced-motion:no-preference) {
  .brand-mark::after {
    content:""; position:absolute; top:12%; right:13%; width:19%; aspect-ratio:1;
    pointer-events:none; background:#fff7cf;
    clip-path:polygon(50% 0,60% 38%,100% 50%,60% 61%,50% 100%,39% 61%,0 50%,39% 39%);
    animation:brand-glint 6s ease-in-out infinite;
  }
  @keyframes brand-glint {
    0%,25%,100% { opacity:0; transform:scale(.5); }
    12% { opacity:.92; transform:scale(1); }
  }
}
.desktop-nav{align-self:stretch;display:flex;gap:29px}.desktop-nav a,.mobile-nav a{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:600;color:#6d687a;position:relative}.desktop-nav a.active,.mobile-nav a.active{color:var(--active)}.desktop-nav a.active:after{content:"";position:absolute;left:0;right:0;height:3px;bottom:0;border-radius:3px 3px 0 0;background:#7753a9}.data-btn{margin-left:auto;border:1px solid var(--line);background:#fff;display:flex;gap:8px;align-items:center;padding:9px 13px;border-radius:9px;font-weight:600;font-size:14px;color:#5e566f}.mobile-nav{display:none}.container{padding:26px 0 52px}.hero{isolation:isolate;background:#251f46 url('./assets/hero/arena.webp') center 49%/cover no-repeat;color:#fff;border-radius:18px;position:relative;overflow:hidden;min-height:228px;display:flex;align-items:center;box-shadow:0 4px 13px #28203912}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#201b37aa,transparent 68%);z-index:-1}.hero-copy{padding:28px 40px 30px}.season-label{display:flex;align-items:center;gap:9px;color:#f6dc9d;font-size:12px;font-weight:750;letter-spacing:.12em}.season-label i{width:7px;height:7px;transform:rotate(45deg);background:#f1cd84;box-shadow:0 0 9px #e9be8599}.season-label b{display:inline-block;width:17px;height:1px;background:#aa97a6}.hero h1{font-size:clamp(32px,3.5vw,49px);line-height:1.22;letter-spacing:.035em;margin:9px 0 7px;font-weight:820}.hero p{font-size:15px;color:#e3dbef;letter-spacing:.015em}.hero-actions,.tools,.guide-footer{display:flex;align-items:center;gap:9px}.hero-actions{margin-top:20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dedbe6;border-radius:8px;background:white;color:#4b435b;font-size:14px;font-weight:650;padding:9px 14px;min-height:38px;transition:background .15s,border-color .15s}.btn.gold{background:#f4d593;border-color:#f4d593;color:#3c2e29}.btn.ghost{background:#51456890;border-color:#a899ba70;color:#fff}.btn.primary{background:#6847a0;border-color:#6847a0;color:white}.btn.soft,.btn.selected{background:#f0eafa;color:#68469a;border-color:#ddd1ed}.section-head,.line,.page-head,.card-head,.lineup-header,.library-actions,.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head{margin:26px 0 13px}.section-head h2{display:flex;align-items:center;gap:10px;font-size:23px;letter-spacing:.025em}.title-bar{display:inline-block;width:5px;height:21px;border-radius:4px;background:#7954a9}.switch-btn{border-color:transparent;background:transparent;color:#695780;padding-right:1px}.guide-layout{display:grid;grid-template-columns:minmax(0,1.64fr) minmax(0,1fr);gap:17px;align-items:stretch}.card{border:1px solid var(--line);border-radius:15px;background:white;box-shadow:var(--shadow);min-width:0}.lineup{padding:20px 22px 13px}.lineup-header{align-items:flex-start}.lineup-header h2{font-size:25px;line-height:1.32;margin:4px 0 0;letter-spacing:.01em}.guide-meta,.trait-label{display:flex;align-items:center;gap:6px;color:#777083;font-size:13px}.guide-meta span{display:inline-flex;align-items:center;gap:6px}.guide-meta span:first-child{color:#775990;font-weight:600}.guide-meta b{color:#afa6bb}.tools{gap:4px}.icon-btn{height:34px;width:34px;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:8px;color:#7a7387}.is-fav{color:#a6711b}.is-fav svg{fill:#fbe1a4}.guide-tags{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 13px}.tag,.trait-chip,.phase{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;font-size:12px;font-weight:600;background:#f0ebf8;color:#715491;border-radius:5px;line-height:1.5}.tag:nth-child(2){color:#85714c;background:#f7f1e4}.board-surface{--hexclip:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);--hexclip:polygon(50% 0,100% 24%,100% 76%,50% 100%,0 76%,0 24%);position:relative;border-radius:11px;padding:7px 14px 12px;background:radial-gradient(ellipse at 50% 100%,#4b3e62 0%,#342d49 58%,#28243b 100%);overflow:hidden;color:white}.board-surface:before,.board-surface:after{content:"";position:absolute;pointer-events:none;inset:0;background:repeating-linear-gradient(60deg,transparent 0 48px,#b3a0dd08 49px 50px,transparent 51px 73px)}.board-surface:after{transform:scaleX(-1)}.board-orientation{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:7px;color:#c7bdd7;font-size:12px;margin-bottom:4px;letter-spacing:.09em}.board-orientation i{height:1px;width:22px;background:#91819f66}.field{--size:clamp(44px,4.45vw,60px);margin:0 auto;width:calc(var(--size) * 7.5);position:relative;z-index:1}.hex-row{display:flex;gap:2px;align-items:center}.hex-row+.hex-row{margin-top:calc(var(--size) * -.17)}.hex-row:nth-child(even){padding-left:calc(var(--size) * .49)}.hex{width:calc(var(--size) - 2px);height:calc(var(--size) * 1.025);padding:0;flex-shrink:0;position:relative;clip-path:var(--hexclip);display:grid;place-items:center;background:#665b77;isolation:isolate}.hex i{position:absolute;inset:1px;display:block;clip-path:var(--hexclip);background:#443a56;overflow:hidden;font-style:normal}.empty-hex:nth-child(2n) i{background:#40374f}.hex.has-unit{background:var(--ring,#a891bd);z-index:1}.has-unit i{inset:2px}.has-unit img{width:100%;height:100%;object-fit:cover}.has-unit i:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 38%,#16132191 70%,#161321 100%)}.hex span{position:absolute;bottom:12%;left:0;right:0;text-align:center;line-height:1.07;font-size:clamp(9px,1vw,12px);font-weight:700;text-shadow:0 1px 3px #000;color:white;z-index:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.traits{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:11px}.trait-label{font-size:12px;margin-right:3px}.trait-chip{border:1px solid #e9e1f1;color:#71598b;background:#f8f5fb;line-height:1.25}.trait-chip b{font-size:12px;color:#5f4388}.card-head{padding:17px 20px;border-bottom:1px solid #eeebf2}.card-head h3{display:flex;align-items:center;gap:9px;font-size:18px}.symbol{display:inline-grid;place-items:center;color:#8962ad;width:31px;height:31px;border-radius:8px;background:#f1ebf8}.meta,.fine,small{font-size:13px;color:var(--muted)}.gear-list{padding:0 20px}.gear-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 0;border-bottom:1px solid #efedf3}.gear-row:last-child{border:0}.gear-owner{display:flex;align-items:center;gap:8px;min-width:0}.gear-owner strong,.gear-owner small,.choose-list strong,.choose-list small{display:block}.gear-owner strong{font-size:15px;white-space:nowrap}.gear-owner small{font-size:12px}.thumb{display:inline-grid;place-items:center;flex-shrink:0;overflow:hidden;background:linear-gradient(145deg,#625779,#343046);color:white;border-radius:6px}.thumb img{width:100%;height:100%;object-fit:cover}.champ-thumb{width:39px;height:39px;border:2px solid var(--cost);border-radius:8px}.item-thumb{width:34px;height:34px;border:1px solid #dbd0b7;border-radius:7px}.gear-items{display:flex;align-items:flex-start;justify-content:flex-end;gap:3px;min-width:0;width:62%}.gear-items button{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;gap:4px;padding:0 1px;font-weight:500}.gear-items button>span:last-child{font-size:12px;color:#716a7c;line-height:1.25;text-align:center}.stages,.notes{margin-top:17px}.steps{padding:17px 20px 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.step{position:relative}.step:not(:last-child):before{content:"";position:absolute;height:1px;left:49px;right:-12px;top:13px;background:linear-gradient(to right,#d9cde9,#eeeaf4)}.phase{font-size:13px;letter-spacing:.05em;padding:3px 10px;color:#714c9f;background:#f0e8fa}.step h4{font-size:15px;line-height:1.55;margin:8px 0 4px}.step p,.notes p,.dialog-copy,.detail-block p,.item-description{white-space:pre-line;font-size:14px;line-height:1.75;color:#6a6378}.notes p{padding:14px 20px 18px}.guide-footer{justify-content:flex-end;flex-wrap:wrap;margin-top:17px}.empty-state{text-align:center;padding:48px 15px;background:white;border:1px dashed #d5cedf;border-radius:14px;color:#87749b}.empty-state h3{color:var(--ink);margin:10px 0 3px}.empty-state p,.nothing{color:var(--muted);font-size:14px}.empty-state .btn{margin-top:15px}.nothing{padding:15px 0}.page-head{margin:8px 0 24px}.page-head h1{font-size:34px}.eyebrow{font-size:13px;font-weight:700;color:#85679c;letter-spacing:.05em}.filter-bar,.catalog-controls,.cost-filters,.tabs,.portrait-strip,.recipe{display:flex;align-items:center;gap:10px}.filter-bar,.catalog-controls{margin-bottom:19px;justify-content:space-between;flex-wrap:wrap}.searchbox{display:flex;align-items:center;border-radius:9px;border:1px solid var(--line);background:white;gap:8px;padding:8px 11px;color:#827b8d;max-width:100%;width:310px;min-height:40px}.searchbox input{width:100%;border:0;background:none;outline:0;font-size:14px;color:var(--ink)}.searchbox:focus-within{outline:2px solid #c5addf}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:15px}.library-card{padding:18px}.library-card h2 button{padding:2px 0;font-weight:750;font-size:24px;text-align:left}.library-actions{border-top:1px solid var(--line);padding-top:14px;margin-top:15px}.portrait-strip{gap:5px;min-height:40px;flex-wrap:wrap}.portrait-strip .champ-thumb{width:34px;height:34px}.tabs{padding:4px;border-radius:10px;background:#eae6f0;gap:2px}.tabs button,.pill{padding:8px 14px;font-size:14px;font-weight:600;border-radius:7px;color:#756e83}.tabs .selected{background:white;color:#62428c;box-shadow:0 1px 3px #4036501f}.tabs small{color:#8a8197}.cost-filters{margin:0 0 15px;flex-wrap:wrap;gap:7px}.pill{padding:5px 10px;border:1px solid #e2dce8;background:white}.pill.selected{background:#6e4f99;border-color:#6e4f99;color:white}.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(235px,100%),1fr));gap:10px}.catalog-card{display:flex;align-items:center;gap:11px;text-align:left;padding:12px;position:relative}.catalog-card>span:nth-child(2){min-width:0;flex:1}.catalog-card strong,.catalog-card small{display:block}.catalog-card small{line-height:1.5;margin-top:4px;font-size:12px}.catalog-card>b{align-self:flex-start;color:#6d6079;white-space:nowrap;font-size:12px;border-bottom:2px solid var(--cost)}.catalog-unit,.catalog-item{width:48px;height:48px;border:2px solid var(--cost)}.catalog-item{border-color:#cabb9e}.flat{margin-top:5px}.sheet-heading{border-bottom:1px solid var(--line);padding:0 0 11px;margin:0 0 16px}.sheet-heading h2{font-size:21px}#sheet{padding:20px;border:1px solid var(--line);border-radius:16px;width:min(440px,calc(100% - 32px));max-height:82dvh;color:var(--ink);background:#fff;box-shadow:0 18px 80px #22162f55}#sheet::backdrop{background:#21192d75}.detail-intro,.detail-item{display:flex;align-items:center;gap:12px}.big-thumb{width:65px;height:65px;border:2px solid var(--cost);border-radius:11px}.detail-block{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.detail-block h3{font-size:16px;margin-bottom:9px}.detail-item{display:inline-flex;gap:7px;background:#f6f4f9;border-radius:7px;padding:5px 7px;margin:2px;font-size:14px}.detail-item .item-thumb{width:27px;height:27px}.recipe{gap:2px;flex-wrap:wrap}.settings-list,.choose-list{display:grid;gap:8px;margin:16px 0}.settings-list .btn{justify-content:flex-start;padding:12px}.source-list a{color:var(--purple);padding:6px}.choose-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;border:1px solid var(--line);padding:12px;border-radius:8px}.choose-list em{font-size:12px;background:var(--soft);color:var(--purple);border-radius:5px;padding:3px 7px;font-style:normal}.full{width:100%}.fine{margin:12px 0 2px}.storage-issue{background:#fff2d7;padding:12px;border-radius:8px;margin-bottom:12px}#toast{position:fixed;z-index:50;bottom:22px;left:50%;transform:translate(-50%,8px);opacity:0;border-radius:9px;background:#342b44;color:white;padding:10px 16px;max-width:90vw;width:max-content;font-size:14px;pointer-events:none;transition:.15s}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1450px){.hero{min-height:250px}}
.quick-jumps{display:none}.trait-note{font-size:12px;color:#81768c;margin:5px 0 0}.pwa-state{color:#614c7f;background:#f3edf9;border-radius:8px;padding:10px 12px;font-size:14px;margin-bottom:10px}.lineup,.loadout,.stages{scroll-margin-top:12px}
@media(min-width:761px){.hero{background-size:auto 125%;background-position:right 46%;background-color:#211c3b}.hero:before{background:linear-gradient(90deg,#211c3b 0%,#211c3b 20%,#211c3bb3 35%,transparent 55%)}}
@media(max-width:760px){.quick-jumps{display:flex;gap:5px;margin-bottom:9px}.quick-jumps .btn{flex:1;min-height:36px;background:#f0edf5;color:#675979;border:0;font-size:13px}.quick-jumps .ic{height:15px;width:15px}}
@media print{.quick-jumps{display:none!important}}
@media(max-width:1000px){.top-inner,.container{width:calc(100% - 42px)}.top-inner{gap:28px}.desktop-nav{gap:19px}.guide-layout{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.lineup{padding:16px}.card-head{padding:14px 16px}.gear-list{padding:0 13px}.gear-owner{gap:6px}.champ-thumb{width:34px;height:34px}.gear-items{width:62%}.gear-row{padding:17px 0}.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.step:nth-child(2):before{display:none}}
@media(max-width:760px){.top-inner,.container{width:calc(100% - 28px)}.top-inner{min-height:58px}.brand{gap:7px}.brand-mark{width:35px;height:35px}.brand-name{font-size:19px}.brand-byline{font-size:10px}.desktop-nav{display:none}.data-btn{padding:7px 9px;font-size:13px}.container{padding:14px 0 calc(88px + env(safe-area-inset-bottom))}.mobile-nav{display:flex;position:fixed;z-index:10;background:#fffffff7;backdrop-filter:blur(12px);border-top:1px solid #e3deea;bottom:0;left:0;right:0;justify-content:space-around;padding:6px 5px calc(5px + env(safe-area-inset-bottom))}.mobile-nav a{flex:1;flex-direction:column;gap:2px;min-height:43px;justify-content:center;font-size:12px}.mobile-nav a.active:before{content:"";position:absolute;width:45px;top:-7px;height:3px;background:#835fae;border-radius:0 0 3px 3px}.hero{min-height:204px;border-radius:14px;background-position:64% center}.hero-copy{padding:22px}.hero:before{background:linear-gradient(90deg,#211b3beb 0%,#211a3abd 35%,#211a3a1a 74%)}.hero p{font-size:14px;max-width:255px}.hero h1{font-size:34px;margin-top:8px}.hero-actions{margin-top:14px}.hero-actions .btn{font-size:13px;padding:8px 11px}.section-head{margin:19px 0 9px}.section-head h2{font-size:20px}.guide-layout{grid-template-columns:1fr;gap:12px}.field{--size:min(10.7vw,60px)}.board-surface{padding:7px 6px 12px}.hex span{font-size:11px}.gear-list{padding:0 16px}.gear-row{padding:13px 0}.gear-owner strong{font-size:16px}.gear-owner .champ-thumb{width:40px;height:40px}.gear-items{width:66%;max-width:280px}.gear-items button>span:last-child{font-size:12px}.stages,.notes{margin-top:12px}.gear-items .item-thumb{width:34px;height:34px}.lineup-header h2{font-size:23px}.steps{grid-template-columns:1fr;padding:16px;gap:16px}.step{display:grid;grid-template-columns:52px 1fr;align-items:start;gap:9px}.step h4{margin:0 0 3px}.step .phase{justify-content:center}.step:not(:last-child):before{display:block;left:25px;top:28px;bottom:-12px;right:auto;width:1px;height:auto;background:#e8e0ee}.guide-footer{justify-content:flex-start;gap:6px}.guide-footer .btn{font-size:13px}.page-head{margin:3px 0 17px}.page-head h1{font-size:28px}.page-head .btn{font-size:13px}.filter-bar,.catalog-controls{gap:9px}.catalog-controls .searchbox{width:100%}.filter-bar .searchbox{flex:1;min-width:140px}.filter-bar .btn{font-size:13px}.tabs button{padding:7px 11px}.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.catalog-card{padding:8px;flex-wrap:wrap;gap:6px;border-radius:10px}.catalog-unit,.catalog-item{width:38px;height:38px}.catalog-card strong{font-size:14px}.catalog-card small{font-size:12px}.catalog-card>b{display:none}.fine{font-size:13px}#toast{bottom:calc(76px + env(safe-area-inset-bottom))}}
@media(max-width:430px){.hero{background-position:66% center}.hero-copy{padding:17px}.hero p{max-width:175px}.hero-actions{gap:6px}.lineup{padding:14px 11px 12px}.field{--size:min(10.55vw,49px)}.section-head h2{font-size:19px}.hex span{font-size:10px}.gear-items{width:65%}}
@media print{body{background:white;color:#121212}.top,.mobile-nav,.hero,.guide-footer,.tools,.switch-btn,#sheet,#toast,.section-head{display:none!important}.container{width:100%;padding:0}.card{box-shadow:none}.guide-layout{display:block}.loadout,.stages,.notes{margin-top:10px;break-inside:avoid}.card-head{padding:8px 12px}.loadout .gear-list{display:flex;gap:14px}.gear-row{flex:1;display:block;padding:8px 0;border:0}.gear-items{width:auto;margin-top:5px}.steps{grid-template-columns:repeat(2,1fr)}.board-surface,.hex,.phase,.thumb,.step,.trait-chip{print-color-adjust:exact;-webkit-print-color-adjust:exact}.field{--size:42px}.hero-actions,.data-btn{display:none!important}}

/* Compact controls shared by the planner and the guide reader. */
@media (hover:hover) and (pointer:fine) {
 .desktop-nav a:hover,.data-btn:hover,.gear-items button:hover > span:last-child { color:var(--active); }
 .btn:hover,.icon-btn:hover,.catalog-card:hover,.library-card:hover { border-color:#a39bb8; }
}
:root { --ease-native: cubic-bezier(.2,.78,.24,1); }
.formation-progress { min-width:0; margin:.65rem 0 .12rem; color:#332d3b; background:#fcfbfd; border:1px solid #e1dbe6; border-radius:12px; }
.formation-progress > summary { cursor:pointer; padding:.6rem .7rem; font-size:.9rem; }
.formation-progress > summary small { margin-inline-start:.55rem; color:#61596b; font-size:.76rem; }
.formation-choices { position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:0 .65rem .65rem; }
.formation-choices:empty { display:none; }
.formation-trait-choice { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.fg-inactive { --fg-border:#bbb7bd; --fg-fill:#f0eef1; --fg-shield:#726f76; --fg-text:#55515a; }
.fg-bronze { --fg-border:#a56b44; --fg-fill:linear-gradient(155deg,#fff2da,#e7bd96 70%,#f4cfa7); --fg-shield:linear-gradient(150deg,#a96235,#68432e); --fg-text:#58301c; }
.fg-silver { --fg-border:#8194aa; --fg-fill:linear-gradient(155deg,#f6fbff,#ccd8e5 65%,#e2ebf3); --fg-shield:linear-gradient(150deg,#7289a5,#455769); --fg-text:#293f54; }
.fg-gold { --fg-border:#b5851c; --fg-fill:linear-gradient(145deg,#fff6ca,#f6d271 66%,#ffe6a1); --fg-shield:linear-gradient(150deg,#a97815,#74471a); --fg-text:#55360b; }
.fg-special { --fg-border:#9971af; --fg-fill:linear-gradient(145deg,#f3e2fb,#d7b5ec 68%,#ead4f5); --fg-shield:linear-gradient(150deg,#905da9,#56376d); --fg-text:#48215b; }
.fg-prismatic { --fg-border:#7596a8; --fg-fill:linear-gradient(120deg,#b9eee0,#c8e1ff 36%,#e6c5fa 65%,#fce7bd); --fg-shield:linear-gradient(145deg,#276a73,#5e5188 63%,#934a82); --fg-text:#2b4056; }
.formation-chip { display:inline-flex; align-items:center; gap:5px; min-height:39px; padding:3px 8px 3px 4px; border:1px solid var(--fg-border); background:var(--fg-fill); color:var(--fg-text); border-radius:7px; font-size:.82rem; font-weight:650; line-height:1.25; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.formation-chip.fg-inactive { border-style:dashed; }
.formation-chip .formation-icon { width:25px; height:27px; padding:4px; flex:none; border:0; border-radius:0; background:var(--fg-shield); clip-path:polygon(50% 0,97% 23%,97% 73%,50% 100%,3% 73%,3% 23%); }
.formation-chip .formation-icon img { position:static; display:block; width:100%; height:100%; object-fit:contain; filter:brightness(0) invert(1); }
.formation-chip b { font-variant-numeric:tabular-nums; font-size:.78rem; }
.formation-trait-choice:checked + .formation-chip { box-shadow:inset 0 0 0 1.5px var(--fg-text); }
.formation-trait-choice:focus-visible + .formation-chip { outline:2px solid #543b81; outline-offset:2px; }
.formation-effect-body { display:none; width:100%; min-width:0; order:1; padding:10px 12px; margin-top:2px; border-inline-start:4px solid var(--fg-border); border-radius:6px; background:#fff; }
.formation-trait-choice:checked + label + .formation-effect-body { display:block; }
.formation-effect-body header { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.formation-effect-body header strong { font-size:1rem; }
.formation-effect-body header span,.formation-grade { border-radius:4px; padding:2px 7px; color:var(--fg-text); background:var(--fg-fill); font-size:.75rem; font-weight:650; }
.formation-effect-body p { margin:.23rem 0; font-size:.84rem; line-height:1.5; }
.formation-effect-body h4 { margin:.52rem 0 .12rem; font-size:.81rem; font-weight:700; }
.formation-effect-line b { color:#5d4d68; }
.formation-side { padding-inline-start:8px; border-inline-start:2px solid #ded9e3; margin:.32rem 0; }
.formation-side h5 { margin:0; color:#51465d; font-size:.79rem; }
.formation-effect-body .formation-mechanic,.formation-side-note,.formation-members,.formation-extra { color:#61586a; }
.formation-extra { margin-top:.42rem; font-size:.79rem; }
.formation-extra > summary { cursor:pointer; width:fit-content; font-weight:620; }
.formation-progress .formation-members { margin:.45rem 0 0; font-size:.76rem; }
.formation-progress > .formation-members { padding:0 .7rem .6rem; }
@media (pointer:coarse) { .formation-chip { min-height:44px; } }
@media print { .formation-effect-body { display:block; break-inside:avoid; } .formation-chip { print-color-adjust:exact; } }
.unit-stars { display:flex; flex-wrap:wrap; align-items:center; gap:3px; border:0; margin:.55rem 0; padding:0; min-width:0; }
.unit-stars legend { padding:0; margin:0 0 .26rem; color:#665b6f; font-size:.78rem; font-weight:620; }
.unit-stars button { font:inherit; font-size:.83rem; min-height:36px; min-width:43px; border:1px solid #e3dce9; border-radius:7px; background:#fff; color:#564c64; cursor:pointer; }
.unit-stars button[aria-pressed=true] { border-color:#725098; background:#675080; color:#fff; }
.guide-primary-actions { display:flex; flex-wrap:wrap; gap:.42rem; margin:.5rem 0 .85rem; }
.guide-primary-actions .btn { padding:.42rem .68rem; font-size:.86rem; }
.board-surface[data-editable-board] .ge-drag-source > * { opacity:.45; }
.board-surface[data-editable-board] .ge-drop-target { background:#ffdb83; }
.board-surface[data-editable-board] .ge-drop-target > i { inset:3px; }
.board-surface[data-editable-board] .ge-drop-target > i::after { content:""; position:absolute; inset:0; background:#ffe5a333; }
.field .hex { height:calc(var(--size) * 1.12); }
.field .hex-row + .hex-row { margin-top:calc(2px - var(--size) * .27); }

.field .hex.has-unit { clip-path:none; isolation:auto; z-index:auto; background:transparent; pointer-events:none; }
.field .hex.has-unit::before { content:""; position:absolute; inset:0; clip-path:var(--hexclip); background:var(--ring,#a891bd); pointer-events:auto; }
.field .hex.has-unit > i { z-index:1; pointer-events:auto; }
.board-surface[data-editable-board] .hex.has-unit.ge-drop-target { background:transparent; }
.board-surface[data-editable-board] .hex.has-unit.ge-drop-target::before { background:#ffdb83; }
.hex > i > .hex-name,.ge-cell-face > .ge-cell-name { position:absolute; inset:65% 2% auto; transform:translateY(-50%); z-index:2; padding:0; color:#fff; font-size:clamp(7px,1.8vw,9px); line-height:1.05; font-weight:500; letter-spacing:0; text-align:center; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; background:linear-gradient(90deg,transparent,#19152285 18%,#19152285 82%,transparent); text-shadow:0 .6px 1px #17131a; pointer-events:none; }
.hex.has-unit > .board-stars,.ge-filled > .ge-board-stars { position:absolute; inset:1% auto auto 50%; transform:translate(-50%,var(--star-rise,-10%)) scaleX(var(--star-width,1)); z-index:3; width:max-content; padding:0; color:#ffdf45; font:700 clamp(10px,3.2vw,15px)/.9 "Segoe UI Symbol","Apple Symbols",sans-serif; font-variant-emoji:text; letter-spacing:-.04em; white-space:nowrap; -webkit-text-stroke:.65px #713b13; paint-order:stroke fill; text-shadow:0 1px 1px #29172a; pointer-events:none; }
.has-gear-above { --star-rise:calc(-100% - 2.5px); }
.hex.has-unit > .board-stars[data-stars="4"],.ge-filled > .ge-board-stars[data-stars="4"] { --star-width:.84; }
.hex.has-unit > .ge-pips,.ge-filled > .ge-pips { position:absolute; inset:90% 5% auto; transform:translateY(-50%); z-index:4; display:flex; flex-flow:row nowrap; align-items:center; justify-content:center; gap:.75px; padding:0; overflow:visible; line-height:1; pointer-events:none; }
.ge-pips > .ge-board-item,.hex .ge-pips > .ge-board-item { position:relative; inset:auto; display:grid; place-items:center; flex:0 0 min(calc((100% - 1.5px) / 3),20px); width:min(calc((100% - 1.5px) / 3),20px); min-width:0; aspect-ratio:1; overflow:hidden; background:#493b31; box-shadow:0 0 0 .5px #231923; color:#fff0bc; font:500 8px/1 sans-serif; text-shadow:none; pointer-events:auto; }
.ge-pips .ge-board-item img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
.hex.has-unit:has(> .ge-pips) > i > img,.ge-filled:has(> .ge-pips) .ge-cell-picture img { position:absolute; inset:-5% 0 auto; width:100%; height:114%; object-fit:cover; }
@media(max-width:500px) {
 .board-surface { margin-inline:-9px; padding-inline:3px; container-type:inline-size; }
 @supports (width:1cqw) { .board-surface .field { --size:min(13.32cqw,55px); } }
}
.account-welcome { max-width:620px; margin:1rem auto; padding:clamp(22px,5vw,42px); background:#fff; border:1px solid var(--line); border-radius:18px; }
.account-welcome .welcome-icon { display:inline-flex; padding:10px; border-radius:12px; color:#704c96; background:#f1eaf6; }
.account-welcome h2 { margin:.8rem 0 .28rem; font-size:1.35rem; }
.account-welcome p { margin:0 0 1rem; color:var(--muted); }
.account-welcome > div { display:flex; flex-wrap:wrap; gap:.55rem; }
.guide-link-input { width:100%; font:inherit; font-size:16px; border:1px solid var(--line); border-radius:9px; padding:.7rem; color:var(--ink); }
.share-actions { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.8rem; }
.hero-actions { margin-top:1rem; }
:where(a,button,summary,input,select,textarea):focus-visible { outline:3px solid #8860ad; outline-offset:3px; }
:where(.lineup,.loadout,.stages,.guide-augments,.notes) { scroll-margin-top:1rem; }
#sheet { overscroll-behavior:contain; }
#sheet::backdrop { background:rgba(40,31,53,.4); }
@media(prefers-reduced-motion:no-preference) {
 @supports (transition-behavior:allow-discrete) {
   #sheet { opacity:0; transform:translateY(8px); transition:opacity .13s,transform .16s var(--ease-native),display .16s allow-discrete,overlay .16s allow-discrete; }
   #sheet[open] { opacity:1; transform:none; }
   #sheet:not([open]),#sheet:not([open])::backdrop { pointer-events:none; }
   #sheet::backdrop { opacity:0; transition:opacity .13s,display .13s allow-discrete,overlay .13s allow-discrete; }
   #sheet[open]::backdrop { opacity:1; }
   @starting-style { #sheet[open] { opacity:0; transform:translateY(8px); } #sheet[open]::backdrop { opacity:0; } }
 }
}
@media(max-width:760px) {
 .hero { min-height:158px; background-position:64% center; }
 .hero-copy { padding:17px; }
 .hero h1 { margin:.23rem 0 .6rem; font-size:clamp(1.75rem,7.8vw,2.2rem); }
 .hero-actions { flex-wrap:wrap; gap:.4rem; margin:0; }
 .hero-actions .btn { padding:.52rem .55rem; }
 .top-inner { column-gap:clamp(8px,3vw,22px); }
 .top-inner .brand { flex:0 0 auto; }
 .data-btn { min-width:0; min-height:44px; }
 .data-btn svg { flex:none; }
 .data-btn span { min-width:0; max-width:min(32vw,150px); }
 .guide-primary-actions .btn,.quick-jumps .btn,.library-actions .btn,.library-actions .icon-btn,.sheet-heading .icon-btn,.guide-footer .btn,.unit-stars button { min-height:44px; }
 .library-actions .icon-btn,.sheet-heading .icon-btn { min-width:44px; }
 .guide-primary-actions { margin:.4rem 0 .68rem; }
 .mobile-nav { background:rgba(255,255,255,.96); box-shadow:0 -2px 14px #4537500a; }
 .mobile-nav a { min-height:46px; }
 #sheet {
   --sheet-top:max(8px,env(safe-area-inset-top,0px));
   --sheet-bottom:max(8px,env(safe-area-inset-bottom,0px));
   --sheet-left:max(12px,env(safe-area-inset-left,0px));
   --sheet-right:max(12px,env(safe-area-inset-right,0px));
   position:fixed;
   inset:var(--sheet-top) var(--sheet-right) var(--sheet-bottom) var(--sheet-left);
   width:min(440px,calc(100% - var(--sheet-left) - var(--sheet-right)));
   height:fit-content;
   max-width:none;
   max-height:calc(100% - var(--sheet-top) - var(--sheet-bottom));
   margin:auto;
   padding:0;
   overflow:hidden;
 }
 #sheet[open] { display:flex; flex-direction:column; }
 #sheet-body {
   min-height:0;
   overflow-y:auto;
   overscroll-behavior:contain;
   padding:0 16px 16px;
   scroll-padding:66px 0 12px;
 }
 #sheet-body > .sheet-heading {
   position:sticky;
   top:0;
   z-index:1;
   margin-bottom:12px;
   padding:8px 0;
   background:#fff;
 }
 .account-form input:not([type=checkbox]) { min-width:0; width:100%; }
 .account-form .btn { min-height:44px; }
}
@media(max-width:760px) and (max-height:560px) {
 #sheet[open] { animation:none; transition:none; transform:none; }
 .account-form { gap:8px; margin-top:10px; }
}
@media(pointer:coarse) {
 :where(button:not(.ge-cell,.ge-rack-item,.hex),.mobile-nav a,.pocket-guide)[data-touch-pressed] {
   filter:brightness(.94);
 }
}
@media(pointer:coarse) and (prefers-reduced-motion:no-preference) {
 :where(button:not(.ge-cell,.ge-rack-item,.hex),.mobile-nav a,.pocket-guide) {
   transition:scale 150ms var(--ease-native),background-color 100ms ease-out,border-color 100ms ease-out;
 }
 :where(button:not(.ge-cell,.ge-rack-item,.hex):enabled,.mobile-nav a,.pocket-guide):is(:active,[data-touch-pressed]) {
   scale:.975; transition-duration:50ms;
 }
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
.account-form .show-password { display:inline-flex; align-items:center; gap:.5rem; justify-self:start; min-height:36px; font-size:.86rem; font-weight:500; color:#64586f; }
.account-form .show-password input { width:1rem; height:1rem; padding:0; accent-color:#694694; }
@media(max-width:760px) {
 .guide-editor .ge-dialog input,.guide-editor textarea,.guide-editor input[type=text],.guide-editor input[type=search] { font-size:16px; }
}
.rechecking-session { visibility:hidden; }

@media (max-width:760px) {
 body:has(.catalog-controls) .top-inner { min-height:46px; }
 :is(#main,#reader-main):has(.catalog-controls) { padding-top:6px; }
 :is(#main,#reader-main):has(.catalog-controls) .page-head { margin:0 0 6px; min-height:32px; }
 :is(#main,#reader-main):has(.catalog-controls) .page-head > div { display:flex; align-items:baseline; flex-direction:row-reverse; justify-content:flex-end; gap:7px; }
 :is(#main,#reader-main):has(.catalog-controls) .page-head h1 { font-size:20px; line-height:1.25; margin:0; }
 :is(#main,#reader-main):has(.catalog-controls) .page-head .eyebrow { font-size:10px; font-weight:500; }
 :is(#main,#reader-main):has(.catalog-controls) .page-head .btn { min-height:32px; font-size:12px; padding:3px 7px; }
 :is(#main,#reader-main):has(.catalog-controls) .catalog-controls { gap:5px; margin-bottom:3px; }
 :is(#main,#reader-main):has(.catalog-controls) .catalog-tabs { width:100%; flex-wrap:nowrap; padding:2px; }
 :is(#main,#reader-main):has(.catalog-controls) .catalog-tabs button { flex:1; padding:4px 1px; min-height:30px; white-space:nowrap; }
 :is(#main,#reader-main):has(.catalog-controls) .searchbox { padding:3px 8px; min-height:34px; }
 :is(#main,#reader-main):has(.catalog-controls) .searchbox input { font-size:16px; }
 :is(#main,#reader-main) .cost-filters { display:flex; flex-wrap:nowrap; gap:3px; margin:0 0 4px; overflow-x:auto; scrollbar-width:none; padding:1px; }
 :is(#main,#reader-main) .cost-filters::-webkit-scrollbar { display:none; }
 :is(#main,#reader-main) .cost-filters .pill { flex:auto; min-height:32px; padding:3px 2px; font-size:11.5px; line-height:1.2; white-space:nowrap; }
}

#main:has(+ .site-filing) { padding-bottom:0; }
.site-filing { padding:12px 16px 22px; text-align:center; font-size:13px; }
.site-filing a { display:inline-block; padding:6px; color:#55556a; text-underline-offset:3px; }
@media (max-width:760px) {
 .site-filing { padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
}
