.menu-header-actions { display: flex; align-items: center; gap: 7px; }
.menu-help { width: 44px; padding: 0; }
.glyph-armory::before {
  position: absolute;
  content: "";
  inset: 2px;
  background: currentColor;
  clip-path: polygon(50% 0, 95% 18%, 88% 65%, 50% 100%, 12% 65%, 5% 18%, 50% 0, 50% 24%, 26% 34%, 31% 61%, 50% 77%, 69% 61%, 74% 34%, 50% 24%);
}
#panel[data-kind="armory"] {
  width: min(700px, calc(100% - 24px));
  border-color: #79909a;
  background: linear-gradient(150deg,#203743,#12222d 62%,#0e1a25);
  color: #f8f1e5;
}
.armory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 29px 14px 0;
}
.armory-header h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-size: clamp(1.32rem,5.5vw,2rem);
  overflow-wrap: anywhere;
}
.ash-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  width: fit-content;
  white-space: nowrap;
  border: 1px solid #b48861;
  background: #33281f;
  color: #ffe1a1;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.armory-monster-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #d1e3e6;
  font-size: .85rem;
  font-weight: 750;
}
.armory-monster-select select {
  max-width: 100%;
  min-height: 34px;
  padding: 3px 9px;
  border: 1px solid #677f88;
  border-radius: 7px;
  color: #f2f0e6;
  background: #162833;
  font: inherit;
}
.armory-preview {
  display: grid;
  align-items: center;
  grid-template-columns: clamp(80px, 23vw, 144px) 1fr;
  gap: 12px;
  min-height: 115px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--skin-accent) 47%, #263f49);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at left center, color-mix(in srgb, var(--skin-accent) 26%, #14252f), transparent 58%),
    linear-gradient(150deg,#172b37,#10212b);
}
.armory-preview img { width: 100%; height: clamp(83px,24vw,124px); object-fit: contain; }
.armory-preview.luminous {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.armory-preview.luminous::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 15px;
  top: 50%;
  width: min(42%, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--skin-accent) 43%, transparent), transparent 68%);
  transform: translateY(-50%);
  animation: armory-bloom 3.5s ease-in-out infinite alternate;
}
@keyframes armory-bloom {
  from { opacity: .52; transform: translateY(-50%) scale(.9); }
  to { opacity: .94; transform: translateY(-50%) scale(1.12); }
}
.armory-preview strong { display: block; font-size: clamp(1rem,4.4vw,1.42rem); font-weight: 900; line-height: 1.1; }
.armory-preview span { display: block; margin-top: 4px; color: var(--skin-accent); font-size: .84rem; font-weight: 760; }
.armory-stats { display:flex; flex-wrap:wrap; gap:5px; margin-top: 7px; }
.armory-stats b { padding: 2px 6px; background:#10232d; border:1px solid #54717e; color:#dbedf1; border-radius:5px; font-size:.75rem; font-weight:750; }

.armory-tabs, .gear-slots { display: grid; gap: 6px; }
.armory-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 13px 0 9px; }
.gear-slots { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 8px; }
.armory-tabs button, .gear-slots button, .armory-action {
  min-height: 40px;
  border: 1px solid #58717c;
  border-radius: 8px;
  background: #192e3a;
  color: #def0f1;
  font-size: .86rem;
  font-weight: 850;
  padding: 4px 6px;
}
.armory-tabs button[aria-pressed="true"], .gear-slots button[aria-pressed="true"] {
  color: #ffdeac;
  border-color: #dda669;
  background: linear-gradient(#694933,#44302b);
}
.armory-tabs button:hover, .gear-slots button:hover, .armory-action:hover:not(:disabled) { border-color:#e9bb83; }
.gear-slots small {
  display: block;
  margin-top: 2px;
  color: #d0dadd;
  font-weight: 650;
  font-size: .72rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.armory-choices {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: stretch;
  gap: 8px;
}
.skin-choices { grid-template-columns: repeat(4,minmax(0,1fr)); }
.armory-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #536f7b;
  border-radius: 10px;
  background: #10212c;
}
.armory-item.active { border-color: #d8a877; background: linear-gradient(135deg,#3b302b,#172835 74%); }
.gear-card-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  color: #ffcf91;
  border: 1px solid #966744;
  border-radius: 9px;
  background: linear-gradient(#523a2f,#2c2830);
  font-size: 1.5rem;
}
.armory-item-info h3 { margin: 0; font-size: .98rem; line-height: 1.15; overflow-wrap: anywhere; }
.armory-item-info p { margin: 4px 0 0; color: #bfd0d4; font-size: .81rem; line-height: 1.3; }
.armory-action { grid-column: 1/-1; align-self: end; width: 100%; margin-top: auto; }
.armory-item .armory-action:not(:disabled) { background: linear-gradient(#2a4856,#223a47); }
.armory-item .armory-action:disabled { opacity: .65; cursor: default; }
.armory-item.active .armory-action { color: #ffe0b9; }
.skin-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; text-align: center; }
.skin-thumbnail {
  display: grid;
  justify-items: center;
  width: 100%;
  padding: 4px;
  border: 1px solid #547381;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 28%, color-mix(in srgb,var(--skin-accent) 33%,#192733), #12232e 74%);
  color: #e8f3f1;
}
.skin-thumbnail[aria-pressed="true"], .skin-thumbnail:hover { border-color:var(--skin-accent); }
.skin-thumbnail img { width: 100%; height: clamp(60px,17vw,120px); object-fit: contain; pointer-events: none; }
.skin-thumbnail span { font-size: .73rem; font-weight: 750; }
.armory-notice { margin: 10px 0 0; min-height: 1.2em; color: #d5e1e2; font-size: .83rem; }
@media (max-width: 590px) {
  .skin-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 430px) {
  #panel[data-kind="armory"] { padding: 15px; }
  #panel[data-kind="armory"] #close { position: sticky; top: 0; right: auto; z-index: 3; float: right; margin: 0 0 4px 6px; }
  .armory-item { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 5px; padding: 6px; }
  .gear-card-icon { width: 34px; height: 34px; font-size: 1.1rem; }
  .armory-item-info h3 { font-size: .88rem; }
  .skin-card .armory-action { font-size: .73rem; }
  .armory-header { margin: 0 0 8px; }
}
@media (max-width: 360px) {
  .menu-header { gap: 6px; }
  .menu-header-actions { gap: 4px; }
  .menu-brand { gap: 7px; }
  .menu-brand h1 { font-size: 1.44rem; }
  .menu-insignia { width: 36px; height: 36px; }
  .armory-choices { gap: 5px; }
  .skin-choices { grid-template-columns: 1fr; }
  .skin-card { grid-template-columns: 58px minmax(0, 1fr) 79px; grid-template-rows: auto; text-align: left; }
  .skin-card .armory-action { grid-column: auto; align-self: center; margin: 0; }
  .skin-thumbnail img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .armory-preview.luminous::before { animation:none; }
}

.glyph-shop::before,.glyph-shop::after { position:absolute; content:""; }
.glyph-shop::before { inset:6px 3px 3px; border:2px solid currentColor; border-radius:2px 2px 4px 4px; }
.glyph-shop::after { inset:2px 7px 12px; border:2px solid currentColor; border-radius:6px 6px 0 0; }

#panel[data-kind="shop"] {
  width:min(690px,calc(100% - 24px)); border-color:#b69165;
  background:radial-gradient(ellipse at 18% 0%,#50372d55,transparent 60%),linear-gradient(#22343c,#11202b 65%);
}
#panel[data-kind="shop"] .armory-header { justify-content:space-between; }
.shop-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
.shop-stock { display:grid; gap:7px; }
.shop-card {
  display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:11px; align-items:center;
  padding:8px; border:1px solid #526c79; border-radius:9px;
  background:linear-gradient(120deg,#233845,#142630);
}
.shop-card.owned { border-color:#669c89; }
.shop-item-info h3 { margin:0; font-size:1.01rem; line-height:1.2; overflow-wrap:anywhere; }
.shop-item-info p { margin:3px 0; color:#c8dbde; font-size:.82rem; line-height:1.2; }
.shop-requirement { display:inline-block; font-size:.72rem; font-weight:750; color:#f3d4a6; }
.shop-buy {
  min-height:38px; padding:4px 8px; border-radius:7px; border:1px solid #d3ae7e;
  background:linear-gradient(#49352b,#362820); color:#ffe4b5;
  font-size:.8rem; font-weight:850; white-space:nowrap;
}
.shop-buy:not(:disabled):hover,.shop-buy:not(:disabled):focus-visible { background:#634733; }
.shop-buy:disabled { opacity:.64; cursor:default; }
.shop-buy .item-sprite { --icon-size:20px; }
.gear-card-icon .item-sprite { filter:var(--gear-tint,none); }
.shop-skin-preview {
  width:48px; height:48px; display:grid; padding:0; border:1px solid #647c88; border-radius:8px; background:#17232d;
}
.shop-skin-preview[aria-pressed="true"] { border-color:#ffcc93; }
.shop-skin-preview img { width:100%; height:100%; object-fit:contain; }
.shop-highlight {
  display:flex; align-items:center; gap:12px; margin:0 0 9px; padding:8px 13px;
  border:1px solid var(--skin-accent); border-radius:9px; background:#142731; color:var(--skin-accent);
}
.shop-highlight img { width:65px; height:65px; object-fit:contain; }
.shop-highlight small,.shop-highlight strong { display:block; }
.shop-inventory { margin-top:9px; padding:7px 12px; font-size:.81rem; }
.monster-growth {
  display:grid; grid-template-columns:1fr auto; gap:4px 8px; align-items:baseline; margin:9px 0 12px;
  padding:6px 9px; border:1px solid #775b45; border-radius:7px; background:#302821; color:#ffe2b5;
}
.monster-growth strong { font-size:.83rem; }
.monster-growth small { font-size:.73rem; color:#eed5b2; }
.monster-growth progress,#hero-progress { width:100%; height:6px; border:0; border-radius:6px; accent-color:#eeb678; }
.monster-growth progress { grid-column:1/-1; }
#hero-progress { display:block; margin-top:2px; }
#hero-level,.growth-level-up { color:#ffe1ac; font-weight:800; }
.growth-level-up { margin:0; font-size:.85rem; }

@media(max-width:390px) {
  #panel[data-kind="shop"] { padding:14px; }
  .shop-card { grid-template-columns:40px minmax(0,1fr) auto; gap:6px; padding:6px; }
  .shop-card .gear-card-icon,.shop-skin-preview { width:39px; height:39px; }
  .shop-buy { padding-inline:5px; font-size:.73rem; }
  .shop-buy .item-sprite { --icon-size:16px; }
  .shop-tabs button { padding-inline:3px; font-size:.76rem; }
  .menu-nav button { font-size:.65rem; padding-inline:1px; }
}

.evolution-entry {
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 7px;
  width:100%; text-align:left; padding:7px 8px; border:1px solid #806955;
  border-radius:8px; background:linear-gradient(120deg,#3b2d26,#23323a); color:#ffe1ae;
}
.evolution-entry:hover,.evolution-entry:focus-visible { border-color:#efba7e; }
.evolution-entry strong { font-size:.83rem; }
.evolution-entry small { font-size:.72rem; color:#dde6e7; }
#panel[data-kind="talents"] {
  width:min(960px,calc(100% - 20px)); border-color:#866e51; padding:0;
  background:#0f1a24; color:#f5ebde;
}
#panel[data-kind="talents"] #close { z-index:2; }
.talent-banner {
  isolation:isolate; position:relative; display:grid; align-content:center; gap:10px; min-height:156px;
  padding:22px clamp(16px,4vw,34px); overflow:hidden; border-bottom:1px solid #98744d;
  background:linear-gradient(90deg,#111824fa 5%,#151922df 37%,#261c2990 72%,#131923b0),var(--talent-art) center 48%/cover;
}
.talent-banner h2 { margin:0; color:#fff1d8; font:700 clamp(2rem,6vw,3.15rem)/1 Georgia,serif; }
.talent-banner img {
  position:absolute; z-index:-1; right:clamp(16px,7vw,76px); bottom:-23px; width:clamp(145px,30vw,252px);
  height:180px; object-fit:contain;
}
.talent-banner::before {
  content:""; position:absolute; inset:0; z-index:-2;
  background:radial-gradient(ellipse at 78% 72%,color-mix(in srgb,var(--talent-accent),transparent 58%),transparent 37%);
}
.talent-banner .armory-monster-select { align-self:start; display:flex; flex-wrap:wrap; gap:6px 12px; margin:0; }
.talent-banner select { order:-1; max-width:100%; border-color:#b19974; color:#fff2da; background:#121d29; }
.talent-monster-level { color:#e5ceb0; }
.talent-budget,.talent-footer {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; padding:12px clamp(14px,4vw,30px);
}
.talent-budget { border-bottom:1px solid #67564380; background:#1a222d; }
.talent-budget strong { color:#ffd99d; white-space:nowrap; }
.talent-budget span { margin-inline-start:auto; }
.talent-budget span,.talent-footer span { font-size:.8rem; color:#d2d6dd; }
.talent-budget ol { display:flex; align-items:center; gap:5px; padding:0; margin:0 4px; list-style:none; }
.talent-budget li {
  width:7px; height:7px; transform:rotate(45deg); border:1px solid #75808d; border-radius:2px;
}
.talent-budget li[data-point="free"] { background:#f7ce8a; border-color:#ffe7b7; box-shadow:0 0 10px #ffc77e99; }
.talent-budget li[data-point="spent"] { background:#a8744c; border-color:#f3c28e; }
.talent-layout {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(218px,.46fr); gap:20px;
  padding:19px clamp(14px,4vw,30px) 14px;
}
.talent-tabs,.talent-branch-tabs { display:flex; flex-wrap:wrap; gap:7px; padding:10px clamp(14px,4vw,30px) 0; }
.talent-tabs button,.talent-branch-tabs button { padding:6px 10px; min-height:34px; font-size:.78rem; }
.talent-tabs button[aria-pressed="true"],.talent-branch-tabs button[aria-pressed="true"] { border-color:#ecc18a; color:#ffe0b3; background:#46352d; }
.talent-branch-tabs { display:none; }
.talent-tree {
  position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px;
  min-width:0; padding:14px 3px 7px;
  background:radial-gradient(ellipse at 50% 12%,#303b4c65,transparent 59%);
}
.talent-tree::before {
  content:""; position:absolute; inset:4px 16.65% auto; height:11px;
  border:1px solid #8e755a; border-bottom:0; border-radius:8px 8px 0 0;
}
.talent-tree::after {
  content:""; position:absolute; left:50%; top:0; width:9px; height:9px;
  transform:translateX(-50%) rotate(45deg); background:#f5c785; box-shadow:0 0 14px #f0b06c85;
}
.talent-branch { min-width:0; text-align:center; }
.talent-branch h3 {
  display:flex; align-items:center; justify-content:center; gap:4px; margin:0;
  min-height:31px; font:700 clamp(.83rem,2.2vw,1.13rem)/1.1 Georgia,serif; color:var(--talent-color);
}
.talent-branch h3 .item-sprite { width:20px; height:20px; }
.talent-branch-points { display:block; color:#bfcad4; font-size:.68rem; }
.talent-branch ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; margin:0; list-style:none; }
.talent-branch li[data-tier="2"] { grid-column:1/-1; }
.talent-branch li { position:relative; padding-top:13px; }
.talent-branch li::before {
  content:""; position:absolute; width:1px; height:13px; background:#657589;
  top:0; left:50%; pointer-events:none;
}
.talent-branch li:is([data-state="ready"],[data-invested="true"])::before { background:var(--talent-color); }
.talent-node {
  display:grid; justify-items:center; gap:5px; margin:auto; padding:0 2px 2px; width:100%;
  border:0; background:transparent; color:#dbe0e8;
}
.talent-node strong { font-size:clamp(.68rem,2.3vw,.83rem); text-wrap:balance; }
.talent-gem {
  position:relative; display:grid; place-items:center; width:52px; height:52px; border-radius:50%;
  border:1px solid #768195; background:radial-gradient(ellipse at 50% 20%,#364457,#121c28 75%);
  box-shadow:inset 0 0 0 3px #0c141ebf; transition:transform .15s,border-color .15s;
}
.talent-gem .item-sprite { width:30px; height:30px; }
.talent-gem i {
  position:absolute; right:-3px; bottom:-2px; font-style:normal; line-height:1; font-size:.77rem;
  border-radius:5px; background:#182431; color:var(--talent-color); padding:3px;
}
.talent-gem i:empty { display:none; }
.talent-node[data-capstone="true"] .talent-gem { border-radius:34% 34% 46% 46%; width:55px; height:55px; }
.talent-branch li[data-state="locked"] .talent-gem .item-sprite { opacity:.58; filter:saturate(.45); }
.talent-branch li[data-invested="true"] .talent-gem,.talent-branch li[data-state="ready"] .talent-gem {
  border-color:var(--talent-color); box-shadow:inset 0 0 15px color-mix(in srgb,var(--talent-color),transparent 72%);
}
.talent-node:hover .talent-gem { transform:translateY(-2px); }
.talent-node[aria-pressed="true"] .talent-gem {
  border-color:#fff4d9; outline:2px solid var(--talent-color); outline-offset:3px;
}
.talent-detail {
  position:relative; display:flex; align-items:start; flex-direction:column; gap:8px;
  min-height:265px; padding:15px; border:1px solid color-mix(in srgb,var(--talent-color),#343d50 55%);
  border-radius:13px; background:radial-gradient(ellipse at 38% 0%,color-mix(in srgb,var(--talent-color),transparent 78%),transparent 66%),#1b2634;
}
.talent-emblem {
  display:grid; place-items:center; width:59px; height:59px; margin-bottom:2px; border-radius:16px;
  color:var(--talent-color); border:1px solid currentColor; background:#121c28;
}
.talent-emblem .item-sprite { width:38px; height:38px; }
.talent-detail small { color:var(--talent-color); font-weight:800; }
.talent-detail h3 { margin:0; font:700 clamp(1.24rem,3vw,1.6rem)/1.05 Georgia,serif; }
.talent-detail p { margin:0 0 auto; color:#e2e6eb; font-size:.9rem; line-height:1.45; }
.talent-ranks { display:grid; gap:3px; margin:0 0 auto; color:#e2e6eb; font-size:.84rem; }
.talent-ranks dt { color:var(--talent-color); font-weight:750; }
.talent-ranks dd { margin:0 0 6px; }
.talent-detail button { width:100%; margin-top:8px; }
.talent-detail button:disabled { cursor:default; background:#293544; color:#d1d7de; border-color:#566477; }
.talent-hint { font-size:.76rem; color:#e1cbb2; }
.talent-footer { justify-content:space-between; border-top:1px solid #67564380; }
.talent-tree[data-general="true"] { grid-template-columns:1fr; padding-top:4px; }
.talent-tree[data-general="true"] li::before,.talent-tree[data-general="true"]::before,.talent-tree[data-general="true"]::after { display:none; }
.talent-tree[data-general="true"] ol { row-gap:10px; }
@media(max-width:650px) {
  .talent-banner { min-height:128px; }
  .talent-banner img { right:5px; bottom:-16px; height:142px; }
  .talent-budget span { margin-inline-start:0; }
  .talent-layout { grid-template-columns:1fr; gap:10px; padding-top:12px; }
  .talent-tree { grid-template-columns:1fr; }
  .talent-tree:not([data-general="true"]) .talent-branch[data-viewed="false"] { display:none; }
  .talent-branch-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .talent-branch-tabs button { min-width:0; padding-inline:2px; }
  .talent-budget ol { gap:3px; }
  .talent-budget li { width:6px; height:6px; }
  .talent-detail { min-height:0; }
  .talent-emblem { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  .talent-gem { transition:none; }
  .talent-node:hover .talent-gem { transform:none; }
}
#panel[data-kind="evolutions"] {
  width:min(720px,calc(100% - 24px)); border-color:#b08d61;
  background:linear-gradient(155deg,#292f35,#11232d 66%); --evo-color:#ffac66;
}
.evolution-track {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0 0;
  padding:0; list-style:none;
}
.evolution-card {
  display:grid; grid-template-rows:auto 1fr auto auto; justify-items:center; align-items:center;
  padding:7px 6px 9px; text-align:center; gap:5px; border:1px solid #546d7b; border-radius:9px;
  background:radial-gradient(ellipse at 50% 34%,#344d5a,#182a35 67%);
}
.evolution-card[data-active="true"] { border-color:var(--evo-color); background:radial-gradient(ellipse at 50% 40%,#704931,#21323b 72%); }
.evolution-card img { width:100%; height:clamp(75px,19vw,158px); object-fit:contain; }
.evolution-card[data-locked="true"] img { opacity:.78; }
.evolution-meta { display:grid; justify-items:center; gap:4px; width:100%; }
.evolution-meta strong { width:100%; font-size:clamp(.78rem,2.6vw,1.01rem); line-height:1.1; overflow-wrap:anywhere; }
.evolution-tier { font-size:.67rem; line-height:1; font-weight:850; color:#ffe0ac; background:#453229; padding:4px 6px; border-radius:4px; }
.evolution-card small,.evolution-status { font-size:.7rem; line-height:1.2; }
.evolution-card small { color:#dae5e7; }
.evolution-status { color:#ffdda6; font-weight:750; }
.evolution-card[data-active="true"] .evolution-status { color:#afffe0; }
.evolution-note { margin:11px 0 0; font-size:.82rem; color:#d2e2df; }
.evolution-unlock {
  display:flex; align-items:center; gap:10px; padding:6px 11px; border:1px solid var(--evo-color);
  border-radius:9px; background:radial-gradient(ellipse at 13% 30%,#714538,#22343f 58%);
}
.evolution-unlock img { width:76px; height:76px; object-fit:contain; }
.evolution-unlock small,.evolution-unlock strong,.evolution-unlock span { display:block; line-height:1.2; }
.evolution-unlock small,.evolution-unlock span { font-size:.76rem; }
.evolution-unlock strong { color:#ffe0af; margin-block:4px; }
@media(max-width:390px) {
  #panel[data-kind="evolutions"] { padding:14px; }
  .evolution-track { gap:4px; }
  .evolution-card { padding-inline:3px; }
}

#panel[data-kind="boosters"] {
  width:min(760px,calc(100% - 24px));
  background:radial-gradient(ellipse at 40% 0%,#24473e 0%,transparent 55%),#15232d;
  border-color:#589584;
}
.booster-summary {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px;
  padding:10px; margin-top:9px; border:1px solid #568477; border-radius:10px; background:#172b30;
}
.booster-summary strong,.booster-summary small { display:block; }
.booster-summary strong { color:#b7ffe6; }
.booster-summary small { margin-top:3px; color:#c6d7db; }
.booster-group h3 { margin:18px 0 6px; font-size:1rem; }
.booster-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.booster-card {
  display:grid; grid-template-columns:36px minmax(0,1fr); gap:8px; align-items:start; width:100%;
  padding:9px; border:1px solid #547281; border-radius:9px; color:#ecf3f4; background:#233541; text-align:left;
}
.booster-card[aria-pressed="true"] { border-color:#96e9cc; background:#21453c; }
.booster-card:disabled { color:#c6ced5; background:#1b2731; border-color:#394d59; cursor:default; }
.booster-card strong,.booster-card small,.booster-card b { display:block; }
.booster-card small { margin:3px 0; color:#c6d7db; }
.booster-card b { font-size:.76rem; color:#95ebcf; }
.booster-card:disabled b { color:#ebc591; }
.hunt-move.signature-card { background:linear-gradient(140deg,#3c2b44,#263746); border-color:#b692cc; }
.armory-item-info p { overflow-wrap:anywhere; }
@media(max-width:510px) {
  #panel[data-kind="boosters"] { padding:15px; }
  #panel[data-kind="boosters"] #close { position:sticky;top:0;right:auto;z-index:2;float:right;margin:0 0 4px 6px; }
  .booster-grid { grid-template-columns:1fr; }
  .menu-nav button { font-size:.67rem; }
}

.inventory-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
.boss-gear-sprite {
  background-image: url('./assets/boss-equipment.webp');
  background-size: 400% 500%;
}
.gear-card-icon { border-color: var(--gear-color, #a1bbba69); }
.gear-rarity { color: var(--gear-color); font-size: .78rem; }
.set-bonus {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #88cab46a;
  border-radius: 8px;
  background: #162c31;
  color: #d0e4dc;
  font-size: .85rem;
}
.set-bonus strong { display: inline-block; margin-right: 5px; color: #a3eed6; }
.set-bonus.active { margin-top: 8px; border-color: #7ce3bca6; }
.boss-loot-intro { margin: 1px 0 3px; font-size: .9rem; }
.boss-loot-sets { display: grid; gap: 8px; min-width: 0; }
.boss-loot-set {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #84694f;
  border-radius: 10px;
  background: #17252e;
}
.boss-loot-set summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 6px 11px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(100deg,#233742,#18262f 76%);
}
.boss-loot-set summary::-webkit-details-marker { display: none; }
.boss-loot-set summary:hover { background: #2b3c49; }
.boss-loot-set summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.boss-loot-set summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin: 0 3px 3px 6px;
  flex: none;
  transform: rotate(45deg);
  border-right: 2px solid #f1bf8b;
  border-bottom: 2px solid #f1bf8b;
}
.boss-loot-set[open] summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.boss-loot-set summary .hunter-portrait { flex: none; width: 50px; }
.boss-loot-set summary > span:not(.hunter-portrait) { flex: 1; }
.boss-loot-set summary strong, .boss-loot-set summary small { display: block; line-height: 1.25; }
.boss-loot-set summary strong { color: #ffe1b9; }
.boss-loot-set summary small { margin-top: 3px; color: #cdd9de; font-size: .81rem; }
.boss-loot-set summary b { color: #ffddb3; font-size: .78rem; white-space: nowrap; }
.boss-loot-preview { margin-top: 9px; }
.boss-loot-details { padding: 9px; display: grid; gap: 8px; }
.boss-loot-details > button { justify-self: start; min-height: 44px; padding: 6px 13px; }
.boss-loot-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.boss-loot-items li {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 1px 8px;
  padding: 6px 8px;
  border: 1px solid #556c78;
  border-radius: 8px;
  background: #14212a;
}
.boss-loot-items li[data-match="true"] { border-color: var(--drop-color); }
.boss-loot-items .gear-card-icon { grid-row: span 2; }
.boss-loot-items strong, .boss-loot-items small { display: block; line-height: 1.25; }
.boss-loot-items small { color: var(--gear-color); font-size: .78rem; }
.boss-loot-items p { margin: 2px 0 0; font-size: .8rem; line-height: 1.3; }
.boss-loot-state { grid-column: 2; color: var(--drop-color); font-size: .73rem; }
[data-match="true"] .boss-loot-state { font-weight: 800; }
[data-owned="true"] .boss-loot-state { color: #c7d6d5; }
@media (min-width: 820px) and (orientation: landscape) {
  #panel[data-kind="briefing"] .boss-loot-items { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.boss-choices { grid-template-columns: minmax(0,1fr); }
.gear-card-icon .boss-gear-sprite { --icon-size: 87%; }
@media (min-width: 680px) {
  .boss-loot-sets .boss-loot-items { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.common-gear-sprite {
  background-image: url('./assets/common-equipment.webp');
  background-size: 400% 200%;
}
.gear-card-icon .common-gear-sprite { --icon-size: 87%; }
.armory-empty { grid-column: 1 / -1; margin: 0; color: #ccdfdf; font-size: .88rem; }
