/* Nine selectable augment slots, source-owned Set19 /set19 data and icons.
   No external Tactics.tools UI styling. Portrait/board geometry stays intact. */
.board-backdrop{position:relative}
.augment-rail{
 display:grid;grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:38px;
 gap:4px;align-items:center;justify-items:center;
 position:absolute;top:50%;left:5px;right:auto;transform:translateY(-50%);width:54px;
 max-height:360px;z-index:4;
}
.augment-slot-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:38px;flex:none;touch-action:none;}
.augment-balance{display:none;pointer-events:none;}
.augment-slot-wrap.augment-reordering,.augment-picked-wrap.augment-reordering{opacity:.52;}
.augment-slot-wrap.augment-order-target .augment-slot,.augment-picked-wrap.augment-order-target .augment-picked{outline:1px solid var(--tui-bone-60);outline-offset:1px;}
/* UNLOCKED BUTTON SKILL, icon-only variant. Classes and layer order are
   deliberately the canonical .pill > .pill-inner > .icon-wrap > .icon.
   Tier gradient values below are exact from skill/SKILL.md; dark #34383c
   bottom stop, 14px soft pill radius, 1px border and original dark inner. */
.augment-rail .pill.augment-slot,
.augment-rail .pill.augment-rail-add{
 position:relative;display:block;flex:none;
 width:52px;height:38px;padding:1px;border:0;border-radius:14px;
 overflow:hidden;background:var(--augment-tier-border);
 box-shadow:none;filter:none;transform:none;
}
.augment-rail .pill[data-tier="Silver"]{
 --augment-tier-border:linear-gradient(180deg,#aabace 20%,#9fb4ce 50%,#6886a5 80%,#34383c 100%);
}
.augment-rail .pill[data-tier="Gold"]{
 --augment-tier-border:linear-gradient(180deg,#deba31 20%,#e7ba1e 50%,#d69c31 80%,#34383c 100%);
}
.augment-rail .pill[data-tier="Prismatic"]{
 --augment-tier-border:linear-gradient(180deg,#b092fe 0%,#d6b5fe 28%,#e3d5fd 65%,#c1e5f3 85%,#34383c 100%);
}
.augment-rail .pill.augment-rail-add{
 --augment-tier-border:linear-gradient(180deg,var(--tui-bone-64),#34383c 100%);
 color:var(--tui-bone);font:400 19px/1 var(--tui-font-body);
}
.augment-rail .pill .pill-inner{
 position:relative;display:flex;align-items:center;justify-content:center;
 width:100%;height:100%;padding:0;border-radius:inherit;
 background:linear-gradient(150deg,#343537,#121215 45%);
 overflow:hidden;gap:4px;
}
.augment-rail .pill .icon-wrap{
 position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
 width:100%;height:100%;overflow:hidden;mask-image:none;-webkit-mask-image:none;
}
.augment-rail .pill .icon{
 display:block;width:36px;height:36px;margin:0;object-fit:contain;
 pointer-events:none;user-select:none;-webkit-user-drag:none;
}
.augment-rail .pill .augment-add-plus{font:400 19px/1 var(--tui-font-body);color:var(--tui-bone);pointer-events:none}
.augment-rail .pill:focus-visible{outline:2px solid var(--tui-bone);outline-offset:2px}
/* After Hours: compact true-black circle with crisp white hairline border
   and genuine white Reicon Minus. Shared by board and Augment picker. */
.augment-slot-remove,.augment-picked-remove{
 position:absolute;right:-5px;top:-5px;width:15px;height:15px;
 display:flex;align-items:center;justify-content:center;flex:none;
 padding:0;border:1px solid #fff;background:var(--tui-void);color:#fff;
 border-radius:50%;box-shadow:none;z-index:2;line-height:0;
 appearance:none;-webkit-appearance:none;
}
.augment-slot-remove .augment-clear-glyph,.augment-picked-remove .augment-clear-glyph{
 display:block;width:10px;height:10px;flex:none;pointer-events:none;user-select:none;
}
.augment-slot-remove:focus-visible,.augment-picked-remove:focus-visible{
 outline:1px solid var(--tui-bone);outline-offset:2px;
}
.augment-overlay[hidden]{display:none!important}
.augment-overlay{position:fixed;inset:0;background:rgba(0,0,0,.83);z-index:20000;display:flex;align-items:center;justify-content:center;padding:18px;}
.augment-picker{
 width:min(1020px,100%);height:min(760px,92dvh);min-height:220px;
 display:flex;flex-direction:column;gap:11px;overflow:hidden;
 padding:18px 22px;background:var(--tui-void);color:var(--tui-bone);
 border:1px solid var(--tui-bone-32);border-radius:0;box-shadow:none;
}
/* Academy-like gallery structure, with TFTISEASY typography and search behavior. */
.augment-picker > .set19-search-box{width:min(470px,100%);flex:0 0 48px}
.augment-selected-head{font:600 11px/1.3 var(--tui-font-body);color:var(--tui-bone);padding-top:2px}
.augment-selected{
 width:100%;min-height:74px;border:1px solid var(--tui-bone-24);padding:9px 10px;
 display:flex;align-items:center;gap:15px;overflow-x:auto;scrollbar-width:thin;
}
.augment-picked-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:54px;height:54px;flex:0 0 54px;touch-action:none;}
.augment-picked{
 width:54px;height:54px;flex:0 0 54px;padding:4px;
 display:flex;align-items:center;justify-content:center;
 border:0;background:transparent;color:var(--tui-bone-60);
}
.augment-picked img{width:48px;height:48px;object-fit:contain;pointer-events:none}
.augment-picked-add{height:50px;width:50px;flex:none;border:0;background:transparent;color:var(--tui-bone-60);font:400 22px/1 var(--tui-font-body)}
.augment-filter-bar{
 min-width:0;display:flex;align-items:flex-end;justify-content:space-between;gap:14px;
 border-bottom:1px solid var(--tui-bone-24);padding-top:1px;
}
.augment-count{font:10px/1.4 var(--tui-font-mono);color:var(--tui-bone-60);white-space:nowrap;margin:0 0 7px}

.augment-picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.augment-picker-head h2{margin:0;font:650 13px/1.3 var(--tui-font-body);letter-spacing:.025em}
.augment-picker-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.augment-close{border:1px solid var(--tui-bone-24);background:transparent;width:30px;height:30px;font-size:17px;padding:0}
/* Tier filters are ONE shared text navigation strip, not one card per tier. */
.augment-filters{display:flex;flex-wrap:nowrap;gap:17px;min-width:0}
.augment-filter{
 flex:none;min-width:0;padding:7px 0;border:0;border-bottom:2px solid transparent;
 background:transparent;color:var(--tui-bone-60);font:550 11px/1.3 var(--tui-font-body);
 white-space:nowrap;
}
.augment-filter[aria-pressed="true"]{background:transparent;color:var(--tui-bone);border-bottom-color:var(--tui-bone)}
/* HARD NO-SLOP: one continuous gallery grid; no card fill, no border,
   no per-tile tier stripe, no colored left rail or floating badges. */
.augment-list{
 flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;
 scrollbar-color:var(--tui-bone-32) #050505;display:grid;align-content:start;
 grid-template-columns:repeat(8,minmax(0,1fr));column-gap:13px;row-gap:17px;
 padding:9px 6px 8px;
}
.augment-option,.augment-option[data-tier="Silver"],.augment-option[data-tier="Gold"],.augment-option[data-tier="Prismatic"]{
 min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
 gap:6px;padding:5px 2px;min-height:85px;
 background:transparent;border:0;border-radius:0;box-shadow:none;
 text-align:center;position:relative;
}
.augment-option img{display:block;width:55px;height:55px;max-width:100%;flex:none;object-fit:contain;pointer-events:none}
.augment-option-name{
 width:100%;font:650 10px/1.25 var(--tui-font-body);color:var(--tui-bone);
 text-transform:uppercase;overflow-wrap:anywhere;display:-webkit-box;
 -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.augment-option:focus-visible img{outline:1px solid var(--tui-bone);outline-offset:2px}
.augment-option[disabled]{opacity:.37}
.augment-picker-empty{grid-column:1/-1;color:var(--tui-bone-78);font:12px/1.5 var(--tui-font-body);padding:12px}
@media(max-width:1000px) and (min-width:851px){.augment-list{grid-template-columns:repeat(6,minmax(0,1fr))}}
/* On spacious desktops, center the 54px rail in the ACTUAL free space
   between the board frame and the nearest hex. The hex-board is centered
   and up to 750px wide, or shrinks with viewport height; 25% of frame width
   minus 1/4 of the hex-board width minus 27px achieves equal visual gutters.
   A matching empty right rail preserves the board's bilateral balance.
   Below 1700px there is not enough side space for 54px plus both gutters,
   so retain the existing horizontal row instead of overlapping a hex. */
@media(min-width:1700px){
 .board-backdrop{padding-left:16px;padding-right:16px;
  --augment-balanced-inset:calc(25% - 27.5px - min(187.5px, calc((100dvh - 300px) / 2)));
 }
 .augment-rail{left:var(--augment-balanced-inset);right:auto}
 .augment-balance{display:block;position:absolute;top:50%;right:var(--augment-balanced-inset);transform:translateY(-50%);width:54px;height:360px}
}
/* The base board switches its width formula below 630px tall, so the rail
   must use that SAME formula or the icon can overlap the leftmost hex. */
@media(min-width:1700px) and (max-height:630px){
 .board-backdrop{--augment-balanced-inset:calc(25% - 27.5px - calc((100dvh - 230px) / 2))}
}
@media(max-width:1699px){
 .augment-rail{
  position:static;transform:none;width:auto;max-height:none;flex:0 0 auto;
  grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:none;
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;
 }
 .augment-rail .pill.augment-slot,.augment-rail .pill.augment-rail-add,.augment-slot-wrap{width:44px;height:38px}
 .augment-rail .pill .icon{width:34px;height:34px}
 .augment-slot-remove,.augment-picked-remove{width:15px;height:15px;right:-5px;top:-5px}
}
@media(max-width:850px){
 .augment-overlay{padding:7px}
 .augment-picker{width:100%;height:min(92dvh,790px);padding:10px;gap:8px}
 .augment-selected{min-height:56px;max-height:116px;padding:5px 6px;gap:5px;flex-wrap:wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto}
 .augment-picked,.augment-picked-wrap{width:43px;height:43px;flex-basis:43px;padding:3px}
 .augment-picked img{width:39px;height:39px}
 .augment-list{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:6px;row-gap:10px;padding:5px 1px}
 .augment-option{padding:3px 1px;gap:4px;min-height:68px}
 .augment-option img{width:40px;height:40px}
 .augment-option-name{font-size:9px}
 .augment-filter-bar{gap:6px}
 .augment-filters{gap:9px}
 .augment-filter{font-size:10px}
 .augment-rail{gap:4px;max-width:100%;width:100%}
 .augment-rail .pill.augment-slot,.augment-rail .pill.augment-rail-add,.augment-slot-wrap{width:38px;height:34px}
 .augment-rail .pill .icon{width:30px;height:30px}
 .augment-slot-remove,.augment-picked-remove{width:14px;height:14px;right:-4px;top:-4px}
 .board-backdrop{padding-right:4px}
}
@media(max-width:420px){
 .augment-list{grid-template-columns:repeat(4,minmax(0,1fr))}
 .augment-rail .pill.augment-slot,.augment-rail .pill.augment-rail-add,.augment-slot-wrap{width:35px;height:32px}
 .augment-rail .pill .icon{width:29px;height:29px}
 .augment-filters{gap:7px}
 .augment-filter{font-size:9px;padding:7px 0}
 .augment-count{font-size:9px}
}
/* At 320px phones all nine must still form one contained row, never overflow
   beyond the frame or compress the hex board. */
@media(max-width:360px){
 .augment-rail{gap:2px}
 .augment-rail .pill.augment-slot,.augment-rail .pill.augment-rail-add,.augment-slot-wrap{width:29px;height:28px}
 .augment-rail .pill .icon{width:25px;height:25px}
}
