/* Block Runner – Gear, Shop and the item card (design pass 5): glass cards with a rarity frame and a glow that grows
   with the level (Plappy colours), hover lift + tap press, pages instead of scrolling, burn view 3 → 1 */
.gbox { width: min(900px, 100%); height: min(680px, 100%); }
.gbox .win-body.gv { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; padding: 12px 14px 14px; }
.spk { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 99px; border: 1px solid rgba(255,179,71,.45);
  background: radial-gradient(circle at 25% 30%, rgba(255,179,71,.28), rgba(5,7,10,.5) 70%); color: #ffc94a; font: 800 15px var(--disp); white-space: nowrap; }
.win-head .spk i[data-ic] { width: 22px; height: 22px; border-radius: 50%; background: none; box-shadow: none; color: #ffc94a; filter: drop-shadow(0 0 6px rgba(255,179,71,.7)); }
button.spk:hover { border-color: #ffc94a; }
.g-h { display: flex; align-items: center; gap: 8px; margin: 0 !important; font: 700 12px var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.g-h i[data-ic] { width: 20px; height: 20px; color: var(--cyan); display: block; }
.g-h .muted { font: 500 12px var(--body); letter-spacing: 0; text-transform: none; }
.g-h b { font: 800 12px var(--disp); color: var(--void); background: var(--cyan); border-radius: 99px; padding: 1px 8px; letter-spacing: 0; }
.g-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }

/* item card */
.gc, .gs { --rc: var(--c1); position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 10px 6px 8px; border-radius: 16px; color: var(--silver);
  border: 1px solid color-mix(in srgb, var(--rc) 42%, rgba(111,231,255,.08));
  background: radial-gradient(120% 75% at 50% 0%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 72%), linear-gradient(180deg, rgba(26,35,48,.88), rgba(9,13,19,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 6px 16px rgba(0,0,0,.35), 0 0 calc(var(--lv, 1) * 4px - 4px) color-mix(in srgb, var(--rc) 50%, transparent);
  transition: transform .2s cubic-bezier(.2,1.5,.4,1), box-shadow .2s, border-color .2s; animation: gcIn .38s cubic-bezier(.2,1.3,.4,1) backwards; animation-delay: calc(var(--i, 0) * 22ms);
  -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.gc.r1, .gs.r1 { --rc: var(--c1); } .gc.r2, .gs.r2 { --rc: var(--c2); } .gc.r3, .gs.r3 { --rc: var(--c3); } .gc.r4, .gs.r4 { --rc: var(--c4); } .gc.r5, .gs.r5 { --rc: var(--c5); }
.gc-art { position: relative; display: block; width: 100%; max-width: 72px; }
.gc-art img { width: 100%; aspect-ratio: 1; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); transition: transform .25s cubic-bezier(.2,1.5,.4,1); pointer-events: none; }
.gc-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1.2 var(--body); color: var(--white); }
@keyframes gcIn { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@media (hover: hover) {
  .gc:hover, .gs:hover { transform: translateY(-4px); border-color: var(--rc); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 12px 24px rgba(0,0,0,.45), 0 0 22px color-mix(in srgb, var(--rc) 55%, transparent); }
  .gc:hover .gc-art img, .gs:hover .gc-art img { transform: scale(1.09) rotate(-4deg); }
}
.gc:active, .gs:active { transform: scale(.94); transition-duration: .08s; }
.gc:focus-visible, .gs:focus-visible, .gf:focus-visible, .gd-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* epic + mythic breathe, mythic also gets a sheen */
.gc.r4::after, .gc.r5::after, .gs.r4::after, .gs.r5::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 18px 1px var(--rc), inset 0 0 14px color-mix(in srgb, var(--rc) 35%, transparent); opacity: .2; animation: gcPulse 2.6s ease-in-out infinite alternate; }
.gc.r5::before, .gs.r5::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,236,190,.2) 50%, transparent 62%) 0 0 / 260% 100% no-repeat; animation: gcSheen 3.8s linear infinite; }
@keyframes gcPulse { to { opacity: .6; } }
@keyframes gcSheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.gc-cnt { position: absolute; top: 6px; right: 6px; min-width: 24px; padding: 0 6px; border-radius: 99px; background: rgba(5,7,10,.85); border: 1px solid var(--line-2); font: 800 11px/18px var(--disp); color: var(--white); }
.gc-on, .gc-burn { position: absolute; left: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.gc-on { top: 6px; background: var(--teal); color: var(--void); box-shadow: 0 0 10px rgba(46,230,168,.6); }
.gc-burn { top: 6px; background: rgba(255,138,58,.2); border: 1px solid rgba(255,138,58,.7); color: #ff9a4a; animation: flame 1.2s ease-in-out infinite alternate; }
.gc-on + .gc-burn, .gc-burn + .gc-on { top: 32px; }
.gc-on svg, .gc-burn svg { width: 14px; height: 14px; display: block; }
@keyframes flame { to { box-shadow: 0 0 12px rgba(255,138,58,.75); transform: scale(1.08); } }
.gc-price { display: inline-flex; align-items: center; gap: 3px; padding: 1px 9px 1px 5px; border-radius: 99px; background: rgba(255,179,71,.14); border: 1px solid rgba(255,179,71,.4); color: #ffc94a; font: 800 12px var(--disp); }
.gc-price svg { width: 13px; height: 13px; }
.gc.poor { opacity: .55; filter: saturate(.6); }
.gc.on { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(46,230,168,.35), 0 0 18px rgba(46,230,168,.35); }

/* loadout: seven slots, kind badge top left */
.g-load { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.gs { padding-top: 12px; }
.gs-k { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; padding: 3px; border-radius: 8px; background: rgba(5,7,10,.7); color: var(--cyan); border: 1px solid var(--line); }
.gs-k svg { width: 100%; height: 100%; display: block; }

/* kind filter (bag) and kind tabs (shop) */
.g-filter { display: flex; gap: 6px; }
.gf { flex: 1 1 0; min-width: 0; height: 42px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5,7,10,.45); color: var(--silver); transition: background .15s, color .15s, transform .15s; }
.gf svg { width: 20px; height: 20px; flex: none; }
.gf small { font: 700 11px var(--disp); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf:hover { border-color: var(--line-2); color: var(--white); }
.gf:active { transform: scale(.94); }
.gf.on { color: var(--void); border-color: transparent; background: linear-gradient(160deg, var(--cyan), var(--teal)); box-shadow: 0 0 16px rgba(46,230,168,.35); }
.gf.on small { color: var(--void); }
.gf.none { opacity: .45; }
.g-pager { display: flex; align-items: center; gap: 6px; font: 700 12px var(--disp); color: var(--muted); }
.gp { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5,7,10,.5); color: var(--white); display: grid; place-items: center; padding: 0; }
.gp svg { width: 18px; height: 18px; } .gp:disabled { opacity: .3; cursor: default; }

/* bag + shop grid: fills the rest of the window, one page at a time */
.g-grid { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 10px; padding: 8px; margin: -8px; overflow: hidden; }
.g-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
.g-empty svg { width: 34px; height: 34px; flex: none; color: var(--cyan); opacity: .7; }
.g-grid.shop { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.g-grid.shop .gc-art { max-width: 96px; }
.g-shophead { min-width: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; }
.g-shophead .gs-k { position: static; width: 32px; height: 32px; padding: 5px; }
.g-shophead b { font: 800 15px var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.g-shophead span:last-child { font-size: 13px; color: var(--muted); }
.g-foot { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.g-foot i[data-ic] { width: 18px; height: 18px; flex: none; color: #ffc94a; display: block; }

/* item card sheet */
.gsh { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: winIn .18s ease-out; }
.sheet > .gd { position: relative; width: min(460px, 100%); padding: 18px; max-height: 94dvh; overflow: auto; border-color: var(--line-2); animation: boxIn2 .3s cubic-bezier(.2,1.25,.4,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 70px rgba(0,0,0,.6); }
.gd-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5,7,10,.55); color: var(--white); font-size: 16px; z-index: 2; }
.gd-top { --rc: var(--c1); display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: center; padding-right: 30px; }
.gd-top.r2 { --rc: var(--c2); } .gd-top.r3 { --rc: var(--c3); } .gd-top.r4 { --rc: var(--c4); } .gd-top.r5 { --rc: var(--c5); }
.gd-hero { position: relative; width: 124px; aspect-ratio: 1; }
.gd-hero img { position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); animation: gdFloat 3.2s ease-in-out infinite alternate; }
.gd-halo { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 55%, transparent), transparent 66%); opacity: calc(.18 + var(--lv, 1) * .12); }
.gd-top.r5 .gd-halo { background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 50%, transparent) 0 8deg, transparent 8deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: spin 14s linear infinite; opacity: .8; }
@keyframes gdFloat { to { transform: translateY(-5px) rotate(-2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.gd-id h2 { margin: 0 0 6px; font: 800 20px/1.15 var(--disp); letter-spacing: .03em; text-transform: none; color: var(--white); }
.gd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-rar, .gd-kind { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font: 700 11px var(--disp); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.gd-rar { color: var(--rc); border: 1px solid var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 30%, transparent); }
.gd-kind { color: var(--cyan); border: 1px solid var(--line-2); background: rgba(111,231,255,.06); }
.gd-kind svg { width: 14px; height: 14px; }
.gd-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--silver); }
.gd-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gd-st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 10px; background: rgba(5,7,10,.5); border: 1px solid var(--line); }
.gd-st svg { width: 16px; height: 16px; color: var(--cyan); }
.gd-st b { font: 800 13px var(--disp); color: var(--white); } .gd-st small { font-size: 11px; color: var(--muted); }

/* burn view 3 → 1: the copies you have glow, missing ones are ghosts; arrow = flame; the next level on the right */
.gd-burn { --rc: var(--c2); margin-top: 14px; padding: 12px; border-radius: 16px; border: 1px dashed var(--line-2); background: linear-gradient(180deg, rgba(5,7,10,.55), rgba(5,7,10,.35)); }
.gd-burn.r3 { --rc: var(--c3); } .gd-burn.r4 { --rc: var(--c4); } .gd-burn.r5 { --rc: var(--c5); }
.gd-burn.ready { border-style: solid; border-color: rgba(255,138,58,.55); background: radial-gradient(90% 120% at 70% 50%, rgba(255,138,58,.14), transparent 70%), rgba(5,7,10,.5); }
.bn-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.bn-in { width: 50px; aspect-ratio: 1; opacity: .25; filter: grayscale(1) brightness(.8); transition: opacity .2s; }
.bn-in.on { opacity: 1; filter: none; animation: gcIn .4s backwards; animation-delay: calc(var(--j) * 70ms); }
.bn-in img, .bn-out img { width: 100%; height: 100%; display: block; }
.bn-arrow { width: 36px; height: 36px; margin: 0 4px; color: #ff8a3a; filter: drop-shadow(0 0 8px rgba(255,138,58,.6)); }
.bn-arrow svg { width: 100%; height: 100%; display: block; }
.gd-burn:not(.ready) .bn-arrow { color: var(--muted); filter: none; opacity: .6; }
.gd-burn.ready .bn-arrow { animation: flame 1s ease-in-out infinite alternate; }
.bn-out { width: 64px; aspect-ratio: 1; border-radius: 18px; box-shadow: 0 0 22px color-mix(in srgb, var(--rc) 60%, transparent); }
.gd-burn:not(.ready) .bn-out { opacity: .55; box-shadow: none; }
.bn-cap { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.bn-cap b { font: 900 18px var(--disp); color: var(--white); letter-spacing: .04em; }
.bn-to { color: var(--rc); font: 700 11px var(--disp); text-transform: uppercase; letter-spacing: .05em; }
.gd-burn.max { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; border-color: rgba(255,179,71,.5); }
.gd-burn.max svg { grid-row: span 2; width: 34px; height: 34px; color: #ffc94a; }
.gd-burn.max b { font: 800 14px var(--disp); color: #ffc94a; } .gd-burn.max span { font-size: 12px; color: var(--muted); }
.gd-burn.burning .bn-in.on { animation: bnFly .5s ease-in forwards; animation-delay: calc(var(--j) * 60ms); }
.gd-burn.burning .bn-out { animation: bnPop .6s .25s ease-out both; }
@keyframes bnFly { to { transform: translateX(calc((3 - var(--j)) * 52px)) scale(.3); opacity: 0; } }
@keyframes bnPop { 50% { transform: scale(1.3); filter: brightness(2.2); } }
.gd.fresh .gd-hero img { animation: born .8s cubic-bezier(.2,1.5,.4,1), gdFloat 3.2s .8s ease-in-out infinite alternate; }
@keyframes born { from { transform: scale(.3) rotate(-25deg); filter: brightness(3) drop-shadow(0 0 30px #fff); } }

.gd-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.gd-btn { min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 4px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(111,231,255,.06); color: var(--white);
  font: 800 12px var(--disp); letter-spacing: .06em; text-transform: uppercase; transition: transform .15s, box-shadow .15s; }
.gd-btn > svg { width: 22px; height: 22px; }
.gd-btn small { display: inline-flex; align-items: center; gap: 2px; font: 700 11px var(--disp); color: var(--muted); letter-spacing: 0; }
.gd-btn small svg { width: 12px; height: 12px; color: #ffc94a; }
.gd-btn:not(:disabled):not(.is):hover { transform: translateY(-2px); }
.gd-btn:not(:disabled):active { transform: scale(.95); }
.gd-btn.main { border: 0; color: var(--void); background: linear-gradient(160deg, var(--cyan), var(--teal)); box-shadow: 0 6px 20px rgba(46,230,168,.3); }
.gd-btn.main small { color: rgba(5,7,10,.75); } .gd-btn.main small svg { color: var(--void); }
.gd-btn.fire { color: #ffd9b0; border-color: rgba(255,138,58,.6); background: rgba(255,138,58,.12); }
.gd-btn.fire > svg { color: #ff8a3a; }
.gd-btn.is { color: var(--teal); border-style: dashed; cursor: default; }
.gd-btn:disabled { opacity: .38; cursor: default; }
.gd-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.gd-note.err { color: #ffb3bf; }
.gd-slot { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.gd-slot h2 { margin: 0; font-size: 16px; }
.gd-slot .gd-desc { margin-top: 2px; }
.gs-k.big { position: static; flex: none; width: 44px; height: 44px; padding: 8px; border-radius: 14px; }
.gd-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; padding: 4px; }

/* phones */
@media (max-width: 600px) {
  .gbox { height: 100%; }
  .gbox .win-body.gv { gap: 8px; padding: 10px; }
  .g-h .muted { display: none; }
  .g-load { gap: 4px; }
  .gs { padding: 16px 2px 4px; border-radius: 12px; }
  .gs .gc-n { display: none; }
  .gs-k { top: 3px; left: 3px; width: 16px; height: 16px; padding: 2px; border-radius: 5px; }
  .g-filter { gap: 4px; }
  .gf { flex-direction: column; gap: 0; height: 44px; border-radius: 10px; padding: 0 2px; }
  .gf svg { width: 18px; height: 18px; } .gf small { font-size: 10px; }
  .g-filter.kinds .gf small { display: none; }
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 7px; }
  .g-grid.shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-grid.shop .gc-art { max-width: 76px; }
  .gc { padding: 8px 4px 6px; border-radius: 14px; } .gc-n { font-size: 11px; }
  .gc-art { max-width: 58px; }
  .gc-cnt { top: 4px; right: 4px; font-size: 10px; line-height: 16px; min-width: 20px; padding: 0 4px; }
  .gc-on, .gc-burn { left: 4px; top: 4px; width: 18px; height: 18px; } .gc-on + .gc-burn, .gc-burn + .gc-on { top: 25px; }
  .g-shophead { grid-template-columns: auto 1fr; } .g-shophead span:last-child { grid-column: 1 / -1; font-size: 12px; }
  .sheet > .gd { padding: 14px; }
  .gd-top { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .gd-hero { width: 96px; }
  .gd-id h2 { font-size: 17px; }
  .bn-in { width: 42px; } .bn-out { width: 54px; } .bn-arrow { width: 30px; height: 30px; }
  @keyframes bnFly { to { transform: translateX(calc((3 - var(--j)) * 44px)) scale(.3); opacity: 0; } }
}
@media (max-width: 360px) { .gd-top { grid-template-columns: 80px minmax(0, 1fr); } .gd-hero { width: 80px; } .gc-n { font-size: 10px; } }
/* phones held sideways: loadout + bag side by side is too tall, so the loadout gets small and the card sheet goes wide */
@media (max-height: 520px) and (orientation: landscape) {
  .gbox { height: 100%; }
  .gbox .win-body.gv { gap: 6px; padding: 8px 12px; }
  .g-load .gs { padding: 14px 2px 3px; } .g-load .gs .gc-n { display: none; } .g-load .gc-art { max-width: 46px; }
  .gv > .g-h:first-child { display: none; }
  .gf { height: 34px; }
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
  .gc { padding: 6px 4px 4px; } .gc-art { max-width: 46px; }
  .g-grid.shop { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } .g-grid.shop .gc-art { max-width: 56px; }
  .g-foot { display: none; }
  .sheet > .gd { width: min(720px, 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 12px 14px; }
  .sheet > .gd > .gd-top { grid-row: span 3; }
  .sheet > .gd.pick { display: block; }
  .gd-burn { margin-top: 0; } .gd-acts { margin-top: 8px; } .gd-btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .gc, .gs, .gc::after, .gc::before, .gs::after, .gs::before, .gd-hero img, .gd-halo, .gc-burn, .bn-arrow { animation: none !important; } }

/* guide: same glass cards, one tab at a time */
.gtabs .gf { height: 44px; }
.gtabs .gf small { font-size: 12px; }
.gg-pane { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.gg-pane .g-grid { flex: 1 1 0; }
.gg-pg { align-self: center; min-height: 34px; }
.gg-pg:empty { display: none; }
.gg-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.gg-more { align-self: flex-start; font-size: 12px; }
.gg.pics { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gg.shots { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gq { position: relative; margin: 0; display: grid; align-content: start; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26,35,48,.88), rgba(9,13,19,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.35);
  animation: gcIn .38s cubic-bezier(.2,1.3,.4,1) backwards; animation-delay: calc(var(--i, 0) * 40ms); transition: transform .2s cubic-bezier(.2,1.5,.4,1), border-color .2s; }
@media (hover: hover) { .gq:hover { transform: translateY(-3px); border-color: var(--line-2); } }
.gq img { display: block; width: 100%; aspect-ratio: 240 / 130; object-fit: cover; }
.gq.shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.gq figcaption { display: grid; gap: 3px; padding: 9px 11px 11px; font-size: 12.5px; line-height: 1.38; color: var(--silver); }
.gq figcaption b { font: 800 12px var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.gq em { font-style: normal; color: var(--cyan); font-weight: 600; }
.gq-n { position: absolute; top: 8px; left: 8px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 900 13px var(--disp); color: var(--void); background: linear-gradient(160deg, var(--cyan), var(--teal)); box-shadow: 0 0 12px rgba(46,230,168,.5); }
.gq.pots figcaption { padding-top: 42px; gap: 8px; }
.gq.txt figcaption { gap: 6px; }
.pot-bar { display: flex; height: 26px; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.pot-bar i { display: grid; place-items: center; min-width: 0; font: 800 10px var(--disp); color: var(--void); font-style: normal; }
.pot-bar em { font-style: normal; color: inherit; font-weight: 800; }
.ps-p { background: linear-gradient(180deg, #ffd86b, #f0a92b); } .ps-d { background: #6fe7ff; } .ps-w { background: #3fa9ff; } .ps-m { background: #a466ff; } .ps-h { background: #ff5dc8; } .ps-g { background: #8592a8; }
.pot-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); }
.pot-leg span { display: inline-flex; align-items: center; gap: 4px; } .pot-leg b { color: var(--white); font-weight: 700; }
.pot-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.gg.rows { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gx { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26,35,48,.8), rgba(9,13,19,.85)); animation: gcIn .35s backwards; animation-delay: calc(var(--i, 0) * 30ms); }
.gx img { width: 56px; height: 56px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.gx b { display: block; font: 700 13px var(--disp); color: var(--white); letter-spacing: .03em; }
.gx span { font-size: 12.5px; line-height: 1.35; color: var(--silver); }
.gl-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gl { --rc: var(--c1); position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent);
  background: radial-gradient(120% 75% at 50% 0%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 72%), linear-gradient(180deg, rgba(26,35,48,.88), rgba(9,13,19,.92));
  box-shadow: 0 0 calc(var(--lv) * 4px - 4px) color-mix(in srgb, var(--rc) 50%, transparent); animation: gcIn .4s backwards; animation-delay: calc(var(--i) * 50ms); }
.gl.r2 { --rc: var(--c2); } .gl.r3 { --rc: var(--c3); } .gl.r4 { --rc: var(--c4); } .gl.r5 { --rc: var(--c5); }
.gl img { width: 100%; max-width: 80px; aspect-ratio: 1; }
.gl b { font: 900 14px var(--disp); color: var(--rc); } .gl small { font: 700 10px var(--disp); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.gl-sv { display: inline-flex; align-items: center; gap: 2px; font: 800 11px var(--disp); color: #ffc94a; } .gl-sv svg { width: 12px; height: 12px; }
.gl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.gl-f { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5,7,10,.45); font-size: 12.5px; line-height: 1.38; }
.gl-f svg { width: 24px; height: 24px; color: var(--cyan); } .gl-f.burn svg { color: #ff8a3a; } .gl-f b { color: var(--white); }
@media (max-width: 600px) {
  .gtabs .gf { flex-direction: row; gap: 5px; height: 40px; } .gtabs .gf small { font-size: 10px; }
  .gg.pics, .gg.shots { grid-template-columns: 1fr; gap: 8px; }
  .gq { grid-template-columns: 112px 1fr; align-items: center; }
  .gq img { height: 100%; min-height: 78px; aspect-ratio: auto; }
  .gq.shot img { border-bottom: 0; border-right: 1px solid var(--line); object-position: center; }
  .gq.pots, .gq.txt { grid-template-columns: 1fr; }
  .gq.pots figcaption { padding-top: 10px; padding-left: 42px; }
  .gq figcaption { padding: 8px 10px; font-size: 12px; }
  .gg.rows { grid-template-columns: 1fr; gap: 6px; }
  .gx { grid-template-columns: 44px 1fr; padding: 6px 8px 6px 6px; } .gx img { width: 44px; height: 44px; } .gx span { font-size: 12px; }
  .gl-row { gap: 4px; } .gl { padding: 6px 2px; border-radius: 12px; } .gl small { font-size: 8px; } .gl b { font-size: 12px; }
  .gl-facts { gap: 6px; } .gl-f { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 380px) { .gtabs .gf small { display: none; } .gtabs .gf svg { width: 20px; height: 20px; } }
@media (max-height: 520px) and (orientation: landscape) {
  .gg.pics { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gq figcaption span { display: none; } .gq.shot figcaption span, .gq.pots figcaption span, .gq.txt figcaption span { display: block; }
  .gg.shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gq.shot img { display: none; } .gq.pots figcaption, .gq.shot figcaption { padding-top: 40px; }
  .gg-note, .gg-more { display: none; }
  #guidePane .g-shophead span:last-child { display: none; }
  .gl img { max-width: 44px; } .gl small { display: none; } .gl-facts { grid-template-columns: 1fr 1fr; } .gl-f { padding: 6px 8px; font-size: 11px; }
}

/* drag & drop: the card lifts (scale, tilt, deep shadow), the matching slot glows, the others fade; touch-action none so a
   finger drag does not pan the page (the windows never scroll anyway), a tap still opens the card */
#inv .gc, #loadout .gs { touch-action: none; -webkit-touch-callout: none; }
.g-ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; transition: none; }
.g-ghost > .gc { width: 100%; height: 100%; animation: none; transition: transform .22s cubic-bezier(.2,1.5,.4,1), box-shadow .22s, opacity .3s; }
.g-ghost.up > .gc { transform: scale(1.1) rotate(-4deg); border-color: var(--rc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 22px 40px rgba(0,0,0,.6), 0 0 28px color-mix(in srgb, var(--rc) 60%, transparent); }
.g-ghost.up > .gc .gc-art img { transform: scale(1.08); }
.g-ghost.up.near > .gc { transform: scale(.86) rotate(-2deg); }
.g-ghost.in, .g-ghost.back, .g-ghost.away { transition: transform .32s cubic-bezier(.3,1.25,.5,1); }
.g-ghost.in > .gc { transform: scale(.82); box-shadow: 0 0 34px var(--rc); }
.g-ghost.away > .gc { transform: scale(.6) rotate(6deg); opacity: 0; }
.g-ghost.back > .gc { transform: none; }
.g-src { opacity: .28; filter: saturate(.4); transform: scale(.94); transition: opacity .15s, transform .15s; }
.g-dragging .gs.drop-no { opacity: .35; filter: saturate(.3); transform: scale(.94); }
.g-dragging .gs.drop-ok { border-color: var(--teal); animation: slotCall 1s ease-in-out infinite alternate; }
.g-dragging .gs.drop-ok.drop-hover { transform: translateY(-4px) scale(1.08); background: radial-gradient(90% 80% at 50% 40%, rgba(46,230,168,.35), transparent 75%), linear-gradient(180deg, rgba(26,35,48,.9), rgba(9,13,19,.94));
  box-shadow: 0 0 0 2px var(--teal), 0 0 34px rgba(46,230,168,.75); animation: none; }
.g-dragging .gs.drop-no.drop-bad { opacity: .7; border-color: #ff5a6a; box-shadow: 0 0 0 2px rgba(255,90,106,.6), 0 0 18px rgba(255,90,106,.45); }
.g-dragging #inv.drop-ok { border-radius: 18px; outline: 2px dashed rgba(46,230,168,.45); outline-offset: -4px; }
.g-dragging #inv.drop-ok.drop-hover { outline-color: var(--teal); background: radial-gradient(70% 70% at 50% 50%, rgba(46,230,168,.14), transparent 75%); }
@keyframes slotCall { from { box-shadow: 0 0 0 1px rgba(46,230,168,.4), 0 0 10px rgba(46,230,168,.3); } to { box-shadow: 0 0 0 2px rgba(46,230,168,.85), 0 0 26px rgba(46,230,168,.6); } }
.gs.landed { animation: slotLand .6s cubic-bezier(.2,1.6,.4,1); }
.gs.landed::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; border: 2px solid var(--teal); animation: slotRing .7s ease-out forwards; }
.gs.landed-off { animation: slotLand .5s ease-out; }
@keyframes slotLand { 0% { transform: scale(.86); filter: brightness(1.9); } 55% { transform: scale(1.1); } }
@keyframes slotRing { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.gs.shake { animation: slotShake .45s; }
@keyframes slotShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .g-ghost > .gc, .g-ghost.in, .g-ghost.back, .g-ghost.away { transition-duration: .01s; } .gs.landed, .gs.landed::before, .g-dragging .gs.drop-ok { animation: none; } }
