*{box-sizing:border-box}html,body{height:100%;width:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{background:var(--tui-void,#000);color:var(--tui-bone,#e7ded1);font-family:"Be Vietnam Pro",system-ui,-apple-system,sans-serif}button,input{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid #e7ded1;outline-offset:1px}.app{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;min-height:0;overflow:hidden;background:#000}.topbar{height:62px;flex:0 0 62px;display:flex;justify-content:space-between;align-items:center;padding:0 22px;border-bottom:1px solid rgba(231,222,209,.25);gap:12px}.brand{display:flex;align-items:baseline;gap:20px;min-width:0;white-space:nowrap}.brand-name{font-weight:850;font-size:19px;letter-spacing:-1.2px}.brand-name span{font-weight:300}.brand-sub{font-family:monospace;font-size:10px;letter-spacing:1.6px;opacity:.68}.head-tools{display:flex;align-items:center;gap:7px;min-width:0}.head-tools button{border:1px solid rgba(231,222,209,.35);background:transparent;min-height:34px;padding:6px 12px;font-size:12px}.cost-filter button[aria-pressed=true],.tab.active{border-color:#e7ded1;background:rgba(231,222,209,.12)}.snapshot{font:11px monospace;opacity:.65;margin-right:12px;white-space:nowrap}.workbench{display:grid;grid-template-columns:clamp(248px,21vw,350px) minmax(0,1fr) clamp(267px,22vw,358px);flex:1;min-height:0;min-width:0;overflow:hidden}.panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:rgb(231 222 209 / .035)}.roster{border-right:1px solid rgba(231,222,209,.2)}.details{border-left:1px solid rgba(231,222,209,.2)}.panel-head{padding:20px 18px 13px;flex:none}.eyebrow{font:11px/1.4 "JetBrains Mono",monospace;letter-spacing:1.4px;color:rgba(231,222,209,.7)}h1,h2{margin:5px 0 16px;font-weight:650;letter-spacing:-.8px}h1{font-size:clamp(21px,2.5vw,34px)}h2{font-size:21px}.faint{font-weight:300;opacity:.32}input[type=search]{width:100%;min-height:38px;background:rgba(231,222,209,.055);border:1px solid rgba(231,222,209,.4);border-radius:0;color:#e7ded1;padding:8px 10px;font-size:13px;outline-offset:0}input::placeholder{color:rgba(231,222,209,.52)}.cost-filter{display:flex;gap:5px;flex-wrap:wrap;margin-top:11px}.cost-filter button{border:1px solid rgba(231,222,209,.35);background:transparent;min-width:32px;height:29px;font:12px monospace}.roster-list{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;padding:8px 13px 20px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;column-gap:7px;row-gap:13px}.roster-list::-webkit-scrollbar,.item-list::-webkit-scrollbar,.traits-inner::-webkit-scrollbar{width:0;display:none}.champ{border:0;background:transparent;padding:0;display:flex;flex-direction:column;gap:5px;align-items:center;min-width:0;position:relative}.portrait-wrap{width:100%;max-width:67px;aspect-ratio:1;background:rgb(231 222 209/.07);border:2px solid var(--rarity,#78848a);position:relative;overflow:hidden}.champ img{height:100%;width:100%;object-fit:cover;display:block}.champ-name{font-size:10px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}.unlock-mark{position:absolute;width:19px;height:19px;right:0;top:0;background:rgba(0,0,0,.72);padding:2px}.boardzone{min-height:0;display:flex;flex-direction:column;padding:22px clamp(15px,2.3vw,40px) 14px;overflow:hidden;gap:0}.board-head{display:flex;justify-content:space-between;align-items:center;flex:0 0 auto}.board-head h1{margin-bottom:15px}.squad-size{display:flex;gap:5px;align-items:baseline;white-space:nowrap}.squad-size strong{font-size:26px;font-weight:400}.squad-size span{font:11px monospace;opacity:.65}.board-backdrop{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;justify-content:center;align-items:center;border:1px solid rgba(231,222,209,.15);background:rgb(231 222 209 / .05);padding:7px 16px;gap:8px}.board-label{font:10px monospace;letter-spacing:1.6px;text-align:center;opacity:.53;flex:0 0 auto}.board-label span{opacity:.8}.hex-board{position:relative;width:min(100%,750px,calc((100dvh - 300px)*2));aspect-ratio:2/1;flex:0 1 auto;min-height:0;touch-action:pan-y}.hex{position:absolute;width:13.333333%;height:30.76923%;padding:0;margin:0;border:0;background:transparent;cursor:pointer;overflow:visible}.hex::before{content:"";position:absolute;inset:1px;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);border:0;background:rgba(231,222,209,.075);outline:0}.hex::after{content:"";position:absolute;inset:0;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:rgba(231,222,209,.12);z-index:-1}.hex.drop-target::before,.hex.armed::before{background:rgba(231,222,209,.18)}.hex.selected::after{background:#e7ded1}.hex-piece{position:absolute;inset:2px;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);overflow:hidden;background:#111;pointer-events:none}.hex-piece img.portrait{height:100%;width:100%;object-fit:cover;display:block}.hex-piece::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 65%,rgba(0,0,0,.85))}.hex-stars{position:absolute;left:0;right:0;top:8%;text-align:center;z-index:2;color:#ffd66b;font-size:clamp(7px,1.05vw,15px);line-height:1;text-shadow:0 1px 4px #000;pointer-events:none}.hex-items{position:absolute;bottom:11%;left:10%;right:10%;z-index:3;display:flex;justify-content:center;gap:1px;pointer-events:none}.hex-items img{min-width:0;width:23%;aspect-ratio:1;border:1px solid #ddd;object-fit:cover;pointer-events:auto;cursor:pointer;-webkit-user-drag:none}.hex-unit-name{position:absolute;bottom:29%;left:8%;right:8%;z-index:2;font-size:clamp(6px,.66vw,10px);font-weight:800;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 1px 3px #000;pointer-events:none}.board-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;flex:none}.board-footer span{font-size:11px;opacity:.72}.controls-note{font-family:monospace;white-space:nowrap}.traits-section{flex:0 0 min(22%,166px);min-height:80px;overflow:hidden;border-top:1px solid rgba(231,222,209,.2);padding-top:10px;display:flex;flex-direction:column;gap:7px}.traits-inner{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:6px;overflow:auto;min-height:0;scrollbar-width:none}.trait-chip{display:flex;gap:6px;align-items:center;padding:4px 7px 4px 4px;border:1px solid rgba(231,222,209,.21);background:rgba(231,222,209,.05);font-size:11px;white-space:nowrap}.trait-chip.active{border-color:rgba(231,222,209,.65)}.trait-chip img{height:23px;width:23px;object-fit:contain}.trait-count{font:600 11px monospace}.muted{opacity:.6;font-size:12px}.details-head{padding-bottom:0}.details-head h2{font-size:18px;letter-spacing:-.5px}.inspector{padding:3px 18px 16px;min-height:105px;border-bottom:1px solid rgba(231,222,209,.2);flex:0 0 auto}.inspector-main{display:flex;align-items:center;gap:12px;margin-bottom:9px}.inspector-portrait{width:63px;aspect-ratio:1;object-fit:cover;border:2px solid var(--rarity)}.inspector-meta strong{display:block;font-size:16px}.inspector-meta small{font-size:11px;opacity:.65}.star-controls{display:flex;gap:5px;align-items:center}.star-controls button,.remove-unit{background:transparent;border:1px solid rgba(231,222,209,.3);font-size:12px;padding:5px 9px;min-height:30px}.star-controls button.active{border-color:#f2ca59;color:#f2ca59}.remove-unit{margin-left:auto}.item-section{padding:15px 18px 5px;display:flex;flex-direction:column;flex:1;min-height:0;gap:9px}.item-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:8px;overflow:auto;min-height:0;flex:1;scrollbar-width:none}.item{border:1px solid rgba(231,222,209,.22);background:rgb(231 222 209 / .05);padding:4px;min-width:0;aspect-ratio:1}.item img{height:100%;width:100%;object-fit:cover}.source-note{padding:9px 18px 14px;font:10px/1.5 monospace;opacity:.55;border-top:1px solid rgba(231,222,209,.14);flex:none}.mobile-tabbar{display:none}
@media(max-width:1250px){.workbench{grid-template-columns:250px minmax(0,1fr) 268px}.roster-list,.item-list{grid-template-columns:repeat(4,minmax(0,1fr))}.controls-note{display:none}.boardzone{padding-left:14px;padding-right:14px}.brand-sub{display:none}}
@media(max-width:850px){.topbar{height:50px;flex-basis:50px;padding:0 9px}.brand-name{font-size:16px}.snapshot{display:none}.head-tools{gap:3px}.head-tools button{padding:5px 8px;min-height:31px;font-size:11px}.head-tools #export{display:none}.mobile-tabbar{display:flex;order:1;position:relative;flex:0 0 34px;width:100%;height:34px;z-index:3;pointer-events:none;justify-content:center;gap:7px;background:#000;border-top:1px solid rgba(231,222,209,.25)}.tab{pointer-events:auto;border:1px solid rgba(231,222,209,.5);background:#0a0a0a;font:11px monospace;padding:7px 14px;height:32px}.workbench{display:flex;flex-direction:column;position:relative;height:100%;min-height:0}.boardzone{flex:1 1 auto;min-height:0;padding:11px 8px 6px;order:0}.board-head h1{font-size:20px;margin-bottom:5px}.board-head .eyebrow{font-size:9px}.board-backdrop{padding:7px 4px;gap:4px}.board-label{font-size:8px}.board-footer{min-height:22px}.board-footer span{font-size:10px}.traits-section{min-height:38px;flex-basis:18%;gap:3px;padding-top:5px}.traits-section .eyebrow{font-size:9px}.trait-chip{padding:2px 5px 2px 2px;font-size:10px}.trait-chip img{height:17px;width:17px}.hex-board{width:min(100%,630px,calc((57dvh - 142px)*2));aspect-ratio:2/1}.hex-unit-name{font-size:7px}.hex-stars{font-size:9px}.panel{height:min(39dvh,324px);flex:0 0 min(39dvh,324px);order:2;border-top:1px solid rgba(231,222,209,.4);border-right:0;border-left:0}.workbench[data-tab-active=roster] .details,.workbench[data-tab-active=details] .roster{display:none}.panel-head{padding:10px 12px 7px}.panel-head h2{display:none}.panel-head .eyebrow{font-size:10px}.panel-head input{min-height:34px}.cost-filter{margin-top:6px}.roster-list{padding:5px 12px 12px;grid-template-columns:repeat(7,minmax(0,1fr));row-gap:9px}.portrait-wrap{border-width:2px}.champ-name{font-size:9px}.unlock-mark{width:14px;height:14px}.details{padding-top:0}.inspector{padding:3px 12px 6px;min-height:auto}.inspector-main{margin-bottom:4px}.inspector-portrait{width:42px}.inspector-meta strong{font-size:13px}.star-controls button{min-height:24px}.equipped{padding:4px 0 0}.equipped button{width:29px;height:29px}.item-section{padding:7px 12px;gap:5px}.item-list{grid-template-columns:repeat(8,minmax(0,1fr))}.source-note{display:none}.details-head{display:none}}
@media(max-width:420px){.head-tools #share{font-size:0}.head-tools #share::after{content:"LINK";font-size:10px}.topbar{gap:3px}.head-tools button{padding:4px 7px}.roster-list{grid-template-columns:repeat(6,minmax(0,1fr))}.item-list{grid-template-columns:repeat(7,minmax(0,1fr))}.hex-board{width:100%;}.board-backdrop{flex:1;}.trait-chip{font-size:9px}}
@media(max-height:630px) and (min-width:851px){.board-head h1{margin-bottom:4px}.boardzone{padding-top:8px}.board-footer{min-height:23px}.traits-section{flex-basis:23%;min-height:45px}.hex-board{width:min(100%,calc((100dvh - 230px)*2))}}
/* TFT-hoho PuzzleBuilder's independent .hb-hex-cell and .hb-unit layering.
   When dragging, hide ONLY the movable .hb-unit, never the persistent hex tile.
   Thus there is exactly one visible champion (the six-sided pointer ghost), with
   the same neutral empty-cell color underneath as every other vacant hex. */
.hb-unit{position:absolute;inset:0;z-index:1;display:block;pointer-events:none}
.hex-drag-source{pointer-events:none!important}
.hex-drag-source > .hb-unit{visibility:hidden!important}
.hex-drag-source.selected::after{background:rgba(231,222,209,.12)!important}
.hex-drag-source::before{background:rgba(231,222,209,.075)!important}
.hex-drag-ghost{position:fixed;top:0;left:0;z-index:99999;pointer-events:none!important;overflow:hidden;will-change:transform;transform-origin:0 0;box-shadow:none!important;filter:none!important;border:0!important;outline:0!important;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0 75%,0 25%);user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.hex-drag-face{position:absolute;inset:2px;overflow:hidden;background:#101010;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.hex-drag-portrait{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none}
.hex-drag-face::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 58%,rgba(0,0,0,.79))}
.hex-drag-stars{position:absolute;top:8%;left:0;right:0;text-align:center;color:#ffd66b;font-size:clamp(9px,.95vw,15px);line-height:1;font-weight:600;text-shadow:0 1px 2px #000}
.hex-drag-name{position:absolute;bottom:30%;left:6%;right:6%;font-size:clamp(8px,.7vw,10px);font-weight:800;text-align:center;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px #000}
.hex-drag-items{position:absolute;bottom:10%;left:10%;right:10%;display:flex;justify-content:center;gap:1px}
.hex-drag-items img{width:24%;aspect-ratio:1;object-fit:cover;border:1px solid rgba(231,222,209,.8);-webkit-user-drag:none}
body.is-hex-dragging{cursor:grabbing!important}
/* Set 19 source: D:/TFT-profile/src/styles/variables.css line 57. */
:root{--tui-unlocked-gradient:linear-gradient(180deg,#b092fe 0%,#d6b5fe 28%,#e3d5fd 65%,#c1e5f3 100%);}
.champ[data-cost="7"] .portrait-wrap{border:0;padding:2px;background:var(--tui-unlocked-gradient);}
.champ[data-cost="7"] .portrait-wrap>img:not(.unlock-mark){width:100%;height:100%;object-fit:cover;}
.hex-piece[data-cost="7"]{background:var(--tui-unlocked-gradient);}
.cost-filter button[data-cost-filter="7"][aria-pressed="true"]{border:0;background:var(--tui-unlocked-gradient);color:#000!important;}
/* Filter controls: three independently named item classes, never a catch-all. */
.item-filter{gap:5px;}
.item-filter button{font-size:11px;white-space:nowrap;}

/* 2-column controls must begin on exactly the same vertical baseline. */
@media (min-width:851px){
 .workbench{grid-template-columns:clamp(248px,22vw,350px) minmax(0,1fr) clamp(248px,22vw,350px);}
 .roster>.panel-head,.details>.panel-head{padding:20px 18px 13px;}
 .details>.panel-head input,.roster>.panel-head input{min-height:38px;}
}
/* Keep both filters within their panel width, without horizontal page scrolling. */
.item-filter{display:flex;flex-wrap:nowrap;gap:4px;min-width:0;}
.item-filter button{flex:1 1 0;min-width:0;padding:0 3px;font-size:clamp(9px,.79vw,11px);white-space:nowrap;}
.item-list{padding:8px 13px 20px;gap:8px;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;align-content:start;}
.item-empty{display:block;grid-column:1/-1;color:rgba(231,222,209,.6);font:12px/1.5 system-ui;padding:12px 0;}
/* Normal item palette: exact screenshot grouping, order and 3+5 paired columns. */
.item-list.normal-groups{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px 4px;align-content:start;}
.item-group{min-width:0;display:flex;flex-direction:column;gap:4px;}
.item-group-title{margin:0;padding:0 0 3px;border-bottom:1px solid rgba(231,222,209,.2);color:#e7ded1;font:600 11px/1.2 system-ui;letter-spacing:0;}
.item-group-grid{display:grid;grid-template-columns:repeat(var(--item-columns),minmax(0,1fr));column-gap:3px;row-gap:7px;align-items:start;}
/* Normal only adds captions; icon geometry and borders belong to the shared item class below. */
.item-name{display:block;width:100%;min-width:0;max-width:100%;font:9px/1.2 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;color:#d9e2ee;}
.item-group-empty{margin:4px 0 5px;color:rgba(231,222,209,.58);font:10px/1.5 system-ui;}
@media(max-width:850px){.item-list.normal-groups{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px 3px;}.item-group-grid{column-gap:2px}.item-name{font-size:8px}}
/* Unit actions are opened via right click; no hidden selected state exists. */
.unit-context-menu{position:fixed;z-index:100000;width:170px;max-width:calc(100dvw - 16px);display:flex;flex-direction:column;border:1px solid rgba(231,222,209,.65);background:#101010;box-shadow:none;border-radius:0;padding:5px;gap:2px;}
.unit-context-menu[hidden]{display:none!important;}
.unit-menu-title{font:11px/1.4 monospace;color:rgba(231,222,209,.7);padding:6px 7px;border-bottom:1px solid rgba(231,222,209,.3);margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.unit-menu-action{width:100%;min-height:34px;border:0;background:transparent;color:#e7ded1;text-align:left;padding:7px 8px;font:12px system-ui;border-radius:0;}
.unit-menu-action:focus-visible{outline:1px solid #e7ded1;outline-offset:-1px;}
.unit-menu-action[disabled]{opacity:.4;cursor:default;}
.unit-menu-action.danger{border-top:1px solid rgba(231,222,209,.18);}
/* Right-click menu follows the supplied 2/3/4-star/remove reference; no hover FX. */
/* TFTISEASY / AFTER HOURS: monochrome controls, bone hairlines, no blue fill,
   no radius, no shadows. The ONLY rank colors belong to canonical game icons. */
.unit-context-menu{width:160px;max-width:calc(100dvw - 16px);padding:5px;background:var(--tui-void);border:1px solid var(--tui-bone-32);border-radius:0;box-shadow:none;gap:0;}
.unit-menu-action{display:flex;align-items:center;gap:11px;min-height:34px;padding:6px 9px;color:var(--tui-bone);background:transparent;border:0;border-left:2px solid transparent;border-radius:0;font:500 12px/1.2 var(--tui-font-body);letter-spacing:0;white-space:nowrap;cursor:pointer;}
.unit-menu-action:focus-visible{background:var(--tui-bone-08);color:var(--tui-bone);}
.unit-menu-action.active{border-left-color:var(--tui-bone);background:var(--tui-bone-04);color:var(--tui-bone);}
.unit-menu-icon{width:18px;height:18px;display:block;flex:none;pointer-events:none;object-fit:contain;}
.unit-menu-action.danger{margin-top:4px;border-top:1px solid var(--tui-bone-16);padding-top:9px;min-height:38px;color:var(--tui-bone-78);}
.unit-menu-action.danger:focus-visible{color:var(--tui-bone);}
@media(max-width:850px){
 .details>.panel-head{padding:10px 12px 7px;}
 .details .item-list{padding:5px 12px 12px;grid-template-columns:repeat(8,minmax(0,1fr));}
 .item-filter button{font-size:10px;}
}
@media(max-width:420px){.details .item-list{grid-template-columns:repeat(7,minmax(0,1fr));}}

/* Set19 builder: one source-owned cost-color ring directly against the clipped portrait. */
.hex-piece{background:var(--unit-cost-color,#808080);}
.hex-piece img.portrait{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);}
.hex-piece::after{inset:3px;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);pointer-events:none;}
.hex.selected::after{background:rgba(231,222,209,.12);}
.hex.has-unit.selected::after{background:rgba(231,222,209,.12);}
/* Exact r06 star geometry: shared.css .pos-stars uses -0.10*hexW and .30*hexW,
   r06 overrides to true #FFD700 with faint black shadow. Query the unit's
   actual inline size instead of viewport guessing. Only the stars overflow;
   the champion portrait remains clipped to its proper six-sided cost ring. */
.hb-unit{container-type:inline-size;overflow:visible;}
.hex.has-unit{z-index:2;}
.hex-stars{position:absolute;top:-10cqw;left:0;right:0;width:100%;z-index:8;display:block;overflow:visible;pointer-events:none;text-align:center;white-space:nowrap;font-family:system-ui,sans-serif;font-weight:400;font-size:30cqw;line-height:1;color:var(--tui-star-silver);text-shadow:0 1px 2px rgba(0,0,0,.8);translate:0 50%;background:transparent!important;border:0!important;box-shadow:none!important;}
.hex-stars[data-stars="3"]{font-size:27cqw;color:var(--tui-star-gold);}
.hex-stars[data-stars="4"]{font-size:23cqw;color:var(--tui-star-emerald);}
/* Slightly larger equipment icons, almost touching the raised, readable existing champion name. */
.hex-items img{width:28%;flex:0 0 28%;}
.hex-unit-name{bottom:31.5%;font-size:clamp(10px,.91vw,13px);color:#f8f8f8;text-shadow:0 1px 3px #000,0 0 2px #000;}
/* Only while an item is actively dragged: restrained halo on the COST ring. */
.hex.item-receiver .hex-piece{filter:drop-shadow(0 0 3px rgba(231,222,209,.65));}
.hex.item-receiver .hex-unit-name{color:#f8f8f8;text-shadow:0 1px 3px #000,0 0 2px #000;}
.hex-drag-name{bottom:31.5%;}
.hex-drag-items img{width:28%;}
@media(max-width:850px){.hex-unit-name{font-size:10px;}}
/* The SVG is a separate corner mark, NEVER a full-sized portrait overlay. */
.champ img.unlock-mark{position:absolute;top:2px;right:2px;width:14px;height:14px;max-width:22%;max-height:22%;padding:0;object-fit:contain;background:rgba(0,0,0,.6);pointer-events:none;z-index:3;}
/* Name-only hover: no image, frame, scale, brightness, shadow or motion change. */
.champ-name{color:rgba(231,222,209,.74);opacity:1;font-size:11px;}
.champ:hover > .champ-name{color:#e7ded1;opacity:1;}
/* The roster owns a visible, restrained scrollbar; the document never scrolls. */
.roster-list{scrollbar-width:thin;scrollbar-color:rgba(231,222,209,.74) rgba(231,222,209,.08);scrollbar-gutter:stable;}
.roster-list::-webkit-scrollbar{display:block;width:7px;}
.roster-list::-webkit-scrollbar-track{background:rgba(231,222,209,.08);}
.roster-list::-webkit-scrollbar-thumb{background:rgba(231,222,209,.74);border:1px solid #000;border-radius:0;}
/* Keep live error/status announcements accessible, without displaying AI helper copy. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;clip-path:inset(50%)!important;}
.board-footer{height:0;min-height:0;overflow:hidden;}
.inspector:empty{min-height:0;padding:0;border-bottom:0;}
@media(max-width:850px){.champ img.unlock-mark{width:12px;height:12px;max-width:23%;max-height:23%;}.champ-name{font-size:10px;}}

/* ONE canonical equipment icon/card for Normal, Radiant and Other. No category-specific border or image sizing. */
.details .item-list{grid-template-columns:repeat(8,minmax(0,1fr));column-gap:3px;}
@media(max-width:850px){.details .item-list{column-gap:2px;}}
.details .item-list .item{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;min-width:0;height:auto;aspect-ratio:auto;padding:1px;border:1px solid var(--tui-bone-24);background:var(--tui-bone-04);border-radius:0;box-shadow:none;}
.details .item-list .item img{box-sizing:border-box;display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;flex:none;}
/* The Save Image action remains available on touch devices too. */
@media(max-width:850px){.head-tools #export{display:inline-flex;align-items:center;justify-content:center;}}
@media(max-width:420px){.head-tools #export{font-size:0}.head-tools #export::after{content:'ẢNH';font-size:10px;}}
/* Pointer ghost retains a clipped hex; separate external r06 star overlay follows its transform. */
.hex-drag-star-overlay{position:fixed;top:0;left:0;z-index:100000;line-height:1;text-align:center;white-space:nowrap;color:var(--tui-star-silver);font-family:system-ui,sans-serif;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.8);pointer-events:none!important;user-select:none;will-change:transform;translate:0 50%;background:transparent!important;border:0!important;box-shadow:none!important;}
.hex-drag-star-overlay[data-stars="3"]{color:var(--tui-star-gold);}
.hex-drag-star-overlay[data-stars="4"]{color:var(--tui-star-emerald);}
/* Trait chip selection means chosen as a search filter, NOT trait activation
   from board thresholds (.trait-chip.active). No glow/scale/hover FX. */
#traits .trait-chip.trait-filter-picked{border-color:var(--tui-bone);background:var(--tui-bone-16);color:var(--tui-bone);}
/* Touch item drag cannot coexist with browser pan on the same icon; visible categories are data-driven and scroll within their own panel. */
@media(max-width:850px){.item{touch-action:none}.panel{height:min(42dvh,320px);flex:0 0 min(42dvh,320px)}.item-list{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.item-section{padding-top:5px;padding-bottom:5px}}

.item-drag-ghost{position:fixed;top:0;left:0;z-index:99999;pointer-events:none!important;will-change:transform;overflow:hidden;box-shadow:none!important;filter:none!important;background:transparent}
.item-drag-portrait{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none}
.hex{touch-action:none}

