/* =========================================================
   Game-style item tile (decided Oct 31, 2026; mockup in design/card-mockups.html)
   <div class="itile" style="--c:#EE4B36"><div class="bar"></div><div class="digital"></div><div class="spikes"></div>
     <img src="..."><b class="qty">10</b></div>
   Scales with its width (container units), so the same tile works at any size.
   Public copy for jome.gg/dmz/map (item zones Z3, Nov 9); the master is tools/dmz-items/item-tile.css. Keep them the same.
   ========================================================= */
.itile { --c: #9AA3AA; position: relative; aspect-ratio: 1; overflow: hidden; isolation: isolate; container-type: inline-size;
  background: #121619; }
.itile::before { /* dot field in the rarity color, strongest at the top, fading down */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle, var(--c) 0.55cqw, transparent 0.72cqw) 0 0 / 2.7cqw 2.7cqw;
  -webkit-mask: linear-gradient(180deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.12) 100%);
          mask: linear-gradient(180deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.12) 100%); }
.itile::after { /* color wash from the top + inner glow edge */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%);
  box-shadow: inset 0 0 0 0.7cqw color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 8cqw color-mix(in srgb, var(--c) 45%, transparent); }
.itile .bar { position: absolute; left: 0; right: 0; top: 0; height: 4.6cqw; background: var(--c); box-shadow: 0 0 6cqw var(--c); }
.itile .digital { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background:
    repeating-linear-gradient(90deg, var(--c) 0 3.3cqw, transparent 3.3cqw 4.6cqw, var(--c) 4.6cqw 6cqw, transparent 6cqw 10cqw) left bottom / 100% 1cqw no-repeat,
    repeating-linear-gradient(180deg, var(--c) 0 4cqw, transparent 4cqw 6.6cqw, var(--c) 6.6cqw 7.3cqw, transparent 7.3cqw 11.3cqw) left 0 top 4.6cqw / 1cqw calc(100% - 4.6cqw) no-repeat,
    repeating-linear-gradient(180deg, var(--c) 0 4cqw, transparent 4cqw 6.6cqw, var(--c) 6.6cqw 7.3cqw, transparent 7.3cqw 11.3cqw) right 0 top 4.6cqw / 1cqw calc(100% - 4.6cqw) no-repeat; }
.itile .spikes { position: absolute; left: 3.3cqw; right: 3.3cqw; bottom: 1cqw; height: 7.3cqw; opacity: .85;
  background: repeating-linear-gradient(90deg, #fff 0 0.66cqw, transparent 0.66cqw 3cqw, #fff 3cqw 3.3cqw, transparent 3.3cqw 7.6cqw, #fff 7.6cqw 8.3cqw, transparent 8.3cqw 10.3cqw);
  -webkit-mask: linear-gradient(0deg, #000, transparent); mask: linear-gradient(0deg, #000, transparent); }
.itile img { position: absolute; left: 50%; top: 55%; max-width: 80%; max-height: 66%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 3cqw 4.6cqw rgba(0,0,0,.6)); }
.itile .qty { position: absolute; right: 4.6cqw; top: 7.3cqw; font: 700 14.6cqw/1 "Barlow Condensed", system-ui, sans-serif; color: #e9eef0; text-shadow: 0 0.7cqw 2cqw rgba(0,0,0,.6); }
.itile .empty { position: absolute; inset: 22% 18% 16%; display: grid; place-items: center; text-align: center; border: 0.7cqw dashed rgba(255,255,255,.28);
  border-radius: 3cqw; color: rgba(255,255,255,.55); font: 600 9cqw/1.05 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
