#valytics { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); grid-template-areas: "intro map read" "legal legal legal"; gap: 32px clamp(24px, 3vw, 48px); align-items: center; background: var(--night); color: var(--on-night); }
#valytics .intro { grid-area: intro; align-self: start; }
#valytics .intro .status, #valytics .intro .details { color: var(--on-night-muted); }

/* Riot's minimap as a mask: recoloured floor, outlined by four 2 px drop-shadows. */
#valytics .map { grid-area: map; position: relative; aspect-ratio: 1; }
#valytics .floor { position: absolute; inset: 0; background: var(--floor); -webkit-mask: url(/assets/img/valorant/ascent.png) center / contain no-repeat; mask: url(/assets/img/valorant/ascent.png) center / contain no-repeat; }
#valytics .outline { position: absolute; inset: 0; filter: drop-shadow(2px 0 0 var(--edge)) drop-shadow(-2px 0 0 var(--edge)) drop-shadow(0 2px 0 var(--edge)) drop-shadow(0 -2px 0 var(--edge)); }
#valytics .detail { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.22; mix-blend-mode: screen; }
#valytics svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#valytics .site { font-size: 64px; font-weight: 500; fill: oklch(100% 0 0 / 0.18); }

#valytics .pos { cursor: pointer; outline: none; }
#valytics .pos .hit { fill: transparent; }
#valytics .pos .tk, #valytics .pos .ring { transform-box: fill-box; transform-origin: center; }
#valytics .pos .tk { transition: transform 100ms var(--ease-out); }
#valytics .pos:active .tk { transform: scale(0.95); }
#valytics .pos .ring { fill: oklch(100% 0 0 / 0.7); transition: fill 160ms ease, transform 220ms var(--ease-out); }
#valytics .pos .well { fill: var(--night-raised); }
#valytics .pos .pct { font-size: 24px; font-weight: 500; fill: var(--on-night); font-variant-numeric: tabular-nums; stroke: var(--night); stroke-width: 6px; paint-order: stroke; stroke-linejoin: round; transition: fill 160ms ease; }
#valytics .pos:focus-visible .hit { stroke: var(--on-night); stroke-width: 3px; }
#valytics .pos[aria-pressed="true"] .ring { fill: var(--amber); transform: scale(1.1); }
#valytics .pos[aria-pressed="true"] .pct { fill: var(--amber); }
@media (hover: hover) and (pointer: fine) { #valytics .pos:hover .ring { fill: oklch(100% 0 0 / 0.95); } }

#valytics .read { grid-area: read; }
#valytics .swap { transition: opacity 140ms var(--ease-out), filter 140ms var(--ease-out); }
#valytics .read.swapping .swap { opacity: 0; filter: blur(4px); transition-duration: 90ms; }
#valytics .where { font-size: 26px; font-weight: 500; line-height: 1.15; }
#valytics .who, #valytics .meta { color: var(--on-night-muted); font-size: 15px; }
#valytics .who { margin-top: 4px; }
#valytics .big { margin-top: 30px; font-size: clamp(64px, 6vw, 88px); font-weight: 300; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
#valytics .of { margin-top: 10px; font-size: 17px; }
#valytics .meta { margin-top: 22px; line-height: 1.6; }
#valytics .mock { margin-top: 26px; font-size: 13px; color: var(--on-night-muted); }

#valytics :focus-visible { outline-color: var(--on-night); }
#valytics .spots-row { display: none; }
#valytics .legal { grid-area: legal; max-width: 72ch; margin-inline: auto; font-size: 12px; line-height: 1.5; text-align: center; color: var(--on-night-muted); }

@media (max-width: 1023px) {
  #valytics { grid-template-columns: 1fr; grid-template-areas: "intro" "map" "row" "read" "legal"; }
  #valytics .spots-row { grid-area: row; display: flex; flex-wrap: wrap; gap: 8px; }
  #valytics .spots-row button { min-height: 44px; padding-inline: 16px; border: 0; border-radius: 22px; background: var(--night-raised); color: var(--on-night); font-size: 15px; cursor: pointer; transition: scale 160ms var(--ease-out); }
  #valytics .spots-row button:active { scale: 0.97; }
  #valytics .spots-row button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  #valytics .pos[aria-pressed="true"] .ring { transform: none; }
}
