/* ============================================================================
   THE OUTFIELD WALL — components
   ========================================================================== */

/* ============================================================ THE TICKER == */
/* Foul-pole yellow. Reserved by law: this bar only ever talks about points. */
.ticker {
  position: relative;
  z-index: 60;
  height: var(--tick-h);
  background: var(--foul);
  color: var(--foul-ink);
  border-bottom: var(--rule) solid var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-run {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-slide 42s linear infinite;
}
.ticker:hover .ticker-run, .ticker:focus-within .ticker-run { animation-play-state: paused; }
@keyframes ticker-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-run { animation: none; padding-left: var(--gutter); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Martian Mono', monospace;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ticker-item b { font-weight: 800; }
.ticker-dot { width: 6px; height: 6px; background: var(--ink); flex: none; }

/* ============================================================= THE HEADER = */
.hdr {
  position: sticky;
  top: 0;
  z-index: 55;
  background: var(--navy);
  color: var(--on-dark);
  border-bottom: var(--rule) solid var(--ink);
}
.hdr-bar {
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: none;
  color: var(--chalk);
}
/* The club logo, unadorned. Its own white keyline carries it on the navy. */
.mark-logo {
  display: block;
  height: 54px;
  width: auto;
  transition: transform .14s var(--ease);
}
.mark:hover .mark-logo { transform: translateY(-1px); }
.mark:active .mark-logo { transform: translateY(1px); }
@media (max-width: 900px) { .mark-logo { height: 42px; } }
.mark-glyph { width: 34px; height: 34px; flex: none; }
.mark-txt {
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
  font-size: 1.22rem;
  line-height: .86;
  letter-spacing: -.005em;
}
.mark-txt span { display: block; color: var(--hop); }
@media (max-width: 480px) { .mark-txt { font-size: 1.05rem; } }

.nav { display: flex; align-items: center; gap: .15rem; }
@media (max-width: 1100px) { .nav { display: none; } }
.nav-a {
  position: relative;
  padding: .5rem .62rem;
  font-weight: 700;
  font-stretch: 88%;
  font-size: .76rem;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--on-navy-2);
  white-space: nowrap;
  transition: color .16s var(--ease);
}
.nav-a::after {
  content: '';
  position: absolute;
  left: .62rem; right: .62rem; bottom: .25rem;
  height: 3px;
  background: var(--hop);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-a:hover, .nav-a:focus-visible, .nav-a[aria-current='page'] { color: var(--chalk); }
.nav-a:hover::after, .nav-a:focus-visible::after, .nav-a[aria-current='page']::after { transform: scaleX(1); }
.nav-a.is-sale { color: #FF9A87; }
.nav-a.is-sale::after { background: var(--enamel); }

.hdr-acts { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.ibtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 42px; height: 42px;
  color: var(--chalk);
  border: 2px solid transparent;
  border-radius: var(--r);
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.ibtn:hover { background: rgba(255,255,255,.1); border-color: var(--hop); }
.ibtn-wide { width: auto; padding-inline: .7rem; }
.ibtn-lbl {
  font-family: 'Martian Mono', monospace;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.pts-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 34px;
  padding: 0 .7rem;
  background: var(--foul);
  color: var(--foul-ink);
  border: 2px solid var(--foul-deep);
  border-radius: var(--r);
  font-family: 'Martian Mono', monospace;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .18s var(--ease-snap);
}
.pts-chip:hover { transform: translateY(-1px); }
.pts-chip.is-bump { animation: pts-bump .5s var(--ease-snap); }
@keyframes pts-bump { 40% { transform: scale(1.16) rotate(-2deg); } }
@media (max-width: 780px) { .pts-chip { display: none; } }

.acct { display: flex; align-items: center; gap: .4rem; }

/* The member chip. Tier colour is the points economy, so the gold tier may
   legitimately wear foul yellow. */
.av {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  background: var(--av-bg, var(--chalk));
  color: var(--av-fg, var(--navy));
  border: var(--rule) solid var(--ink);
  border-bottom-width: calc(var(--rule) + 3px);
  border-bottom-color: var(--av-edge, var(--chalk-3));
  border-radius: var(--r);
  font-weight: 900;
  font-stretch: 78%;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: transform .14s var(--ease);
}
.av:hover { transform: translateY(-1px); }
.av:active { transform: translateY(3px); border-bottom-width: var(--rule); }
/* Not a member yet: a labelled invitation, not an empty box. */
.av-join {
  --av-bg: transparent;
  --av-fg: var(--chalk);
  width: auto;
  padding: 0 .62rem;
  gap: .4rem;
  grid-auto-flow: column;
  border-color: var(--chalk);
  border-bottom-width: var(--rule);
}
.av-join:hover { --av-bg: var(--hop); --av-fg: var(--ink); border-color: var(--ink); }
.av-join:active { transform: none; }
.av-lbl {
  font-family: 'Martian Mono', monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
@media (max-width: 560px) { .av-lbl { display: none; } .av-join { width: 40px; padding: 0; } }
.av-dot {
  position: absolute;
  right: -5px; top: -5px;
  width: 15px; height: 15px;
  background: var(--av-dot, var(--chalk-3));
  border: 2px solid var(--navy);
  border-radius: 50%;
}
.av-tier-silver   { --av-bg: #DCE3E7; --av-fg: #10222E; --av-edge: #9AA7AF; --av-dot: #B9C2C7; }
.av-tier-gold     { --av-bg: var(--foul); --av-fg: var(--foul-ink); --av-edge: var(--foul-deep); --av-dot: var(--foul); }
.av-tier-platinum { --av-bg: var(--sky); --av-fg: var(--ink); --av-edge: var(--sky-deep); --av-dot: var(--sky); }

.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 19px; height: 19px;
  padding: 0 4px;
  display: grid; place-items: center;
  background: var(--hop);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: 'Martian Mono', monospace;
  font-size: .58rem;
  font-weight: 800;
}
.cart-count[hidden] { display: none; }

.burger { display: none; }
@media (max-width: 1100px) { .burger { display: inline-flex; } }

/* mobile drawer nav */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--navy);
  color: var(--on-dark);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s;
}
.mnav.is-open { transform: none; visibility: visible; }
.mnav-hd { display: flex; align-items: center; height: var(--hdr-h); padding-inline: var(--gutter); border-bottom: var(--rule) solid var(--navy-lit); }
.mnav-body { overflow-y: auto; padding: var(--gutter) var(--gutter) 4rem; }
.mnav-a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 2px solid var(--ink-soft);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 1.85rem;
  text-transform: uppercase;
  line-height: 1;
}
.mnav-a { border-bottom-color: var(--navy-lit); }
.mnav-a:active { color: var(--hop); }
.mnav-a .ticket { color: var(--on-navy-3); }

/* ============================================================== THE WALL == */
/* Horizontal run of painted panels — the hero. */
.wall {
  position: relative;
  background: var(--wall-deep);
  border-bottom: var(--rule) solid var(--ink);
}
.wall-run {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.wall-run::-webkit-scrollbar { display: none; }
.wall-run.is-drag { cursor: grabbing; scroll-snap-type: none; }
.wall-panel {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: clamp(500px, 74vh, 780px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: stretch;
  border-right: var(--rule) solid var(--ink);
  overflow: hidden;
  user-select: none;
}
@media (max-width: 900px) {
  .wall-panel { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); min-height: auto; }
}
.wall-copy {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 4.5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(.9rem, 2vw, 1.5rem);
}
.wall-copy h2 {
  font-stretch: 63%;
  text-transform: uppercase;
  font-size: clamp(3rem, 9.2vw, 8.5rem);
  line-height: .8;
  letter-spacing: -.028em;
}
.wall-copy .lede { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 40ch; font-weight: 500; }
.wall-art {
  position: relative;
  overflow: hidden;
  border-left: var(--rule) solid var(--ink);
}
@media (max-width: 900px) { .wall-art { border-left: 0; border-top: var(--rule) solid var(--ink); aspect-ratio: 4/3; } }
.wall-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.wall-panel:hover .wall-art img { transform: scale(1.035); }
.wall-num {
  position: absolute;
  right: clamp(.5rem, 2vw, 2rem);
  bottom: clamp(-.5rem, -1vw, 0rem);
  z-index: 3;
  font-size: clamp(6rem, 15vw, 15rem);
  pointer-events: none;
}
@media (max-width: 900px) { .wall-num { font-size: clamp(4rem, 17vw, 7.5rem); top: auto; bottom: .1rem; right: .5rem; } }

.wall-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  border-top: var(--rule) solid var(--ink);
}
.wall-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: .7rem .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--on-dark-3);
  border-right: 2px solid var(--ink-soft);
  text-align: left;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.wall-tab:last-child { border-right: 0; }
.wall-tab b {
  font-family: 'Martian Mono', monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wall-tab i {
  width: 26px; height: 3px;
  background: currentColor;
  flex: none;
  opacity: .4;
}
.wall-tab:hover { color: var(--chalk); background: var(--ink-soft); }
.wall-tab[aria-selected='true'] { color: var(--chalk); background: var(--wall); }
.wall-tab[aria-selected='true'] i { background: var(--hop); opacity: 1; }
@media (max-width: 640px) { .wall-tab b { display: none; } .wall-tab { justify-content: center; padding: .8rem .4rem; } }

/* =========================================================== PRODUCT CARD = */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(.85rem, 1.6vw, 1.4rem);
}
.grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

.card {
  --p-bg: var(--chalk);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--chalk);
  border: var(--rule) solid var(--ink);
  border-bottom-width: calc(var(--rule) + 5px);
  border-bottom-color: var(--chalk-3);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .18s var(--ease), border-bottom-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); border-bottom-color: var(--hop-deep); }
.card:focus-within { border-bottom-color: var(--royal); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: var(--rule) solid var(--ink);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.card-media .alt {
  position: absolute; inset: 0;
  opacity: 0;
}
.card:hover .card-media .alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.03); }
.card-out .card-media img { filter: saturate(.35) opacity(.62); }

.card-flags {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 2;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: .38rem;
  padding: .72rem .8rem .85rem;
  flex: 1 1 auto;
}
.card-vendor {
  color: var(--fg-3);
  display: flex;
  gap: .45rem;
  align-items: center;
}
.card-vendor .sep { width: 3px; height: 3px; background: currentColor; flex: none; }
.card-title {
  font-weight: 800;
  font-stretch: 86%;
  font-size: .96rem;
  line-height: 1.13;
  letter-spacing: -.012em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card a.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

.card-foot { margin-top: auto; padding-top: .45rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.price { display: flex; align-items: baseline; gap: .42rem; font-weight: 900; font-stretch: 78%; font-size: 1.24rem; letter-spacing: -.02em; }
.price .was { font-size: .82rem; font-weight: 600; font-stretch: 100%; color: var(--fg-3); }
.price-sale { color: var(--enamel-deep); }

.card-swatch { display: flex; gap: 4px; align-items: center; }
.swatch {
  width: 15px; height: 15px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  flex: none;
}

/* size rail on the card — never make a fan hunt for their size */
.card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 0 .8rem .8rem;
  position: relative;
  z-index: 2;
}
.szq-wide { flex: 1 1 auto; padding-inline: .8em; }
.szq {
  min-width: 30px;
  padding: .28em .34em;
  background: var(--chalk-2);
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-family: 'Martian Mono', monospace;
  font-size: .56rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.szq:hover { background: var(--hop); }
/* ghost cell — a sold-out size is drawn, never hidden */
.szq-out {
  background: transparent;
  color: var(--fg-3);
  border-color: var(--chalk-3);
  border-style: dashed;
  cursor: not-allowed;
}
.szq-out:hover { background: transparent; }
.szq-more { border-style: dotted; background: transparent; }

.revdist { max-width: 400px }

/* ================================================================ REVIEWS = */
.stars { display: inline-flex; gap: 1px; color: var(--foul-deep); }
.stars .ico { width: 14px; height: 14px; }
.stars-lg .ico { width: 19px; height: 19px; }
.star-off { color: var(--chalk-3); }
.on-ink .star-off, .on-wall .star-off { color: rgba(255,255,255,.24); }

.rev {
  padding: 1.1rem 0;
  border-bottom: 2px solid var(--chalk-3);
  display: grid;
  gap: .5rem;
}
.rev-hd { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.rev-name { font-weight: 800; font-stretch: 90%; }

.bar-track { height: 10px; background: var(--chalk-3); border: 2px solid var(--ink); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--foul); }

/* ================================================================ FILTERS = */
.filters {
  position: sticky;
  top: calc(var(--hdr-h) + 8px);
  align-self: start;
  max-height: calc(100vh - var(--hdr-h) - 24px);
  overflow-y: auto;
  padding-right: 4px;
}
@media (max-width: 900px) {
  .filters {
    position: fixed;
    inset: 0;
    z-index: 88;
    max-height: none;
    background: var(--chalk);
    padding: 0;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s;
    display: flex;
    flex-direction: column;
  }
  .filters.is-open { transform: none; visibility: visible; }
}
.fgroup { border-bottom: var(--rule) solid var(--ink); padding-block: .95rem; }
.fgroup:first-child { padding-top: 0; }
.fgroup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  font-stretch: 76%;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .ico { transition: transform .2s var(--ease); }
.fgroup[open] > summary .ico { transform: rotate(180deg); }
.fgroup-body { padding-top: .7rem; display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .4em .62em;
  background: var(--chalk);
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-family: 'Martian Mono', monospace;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.chip:hover { background: var(--chalk-2); }
/* selection reads by inversion, never a tint shift */
.chip[aria-pressed='true'] { background: var(--ink); color: var(--chalk); }
.chip[aria-pressed='true'].chip-sale { background: var(--enamel); border-color: var(--enamel-deep); color: #fff; }
.chip-count { opacity: .55; font-weight: 500; }
.chip[aria-pressed='true'] .chip-count { opacity: .7; }
.chip-color .sw { width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 2px; }

.chip-active {
  background: var(--foul);
  border-color: var(--foul-deep);
  color: var(--foul-ink);
}

/* ================================================================= DRAWER = */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 17, 11, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 96;
  width: min(455px, 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--chalk);
  border-left: var(--rule) solid var(--ink);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .36s var(--ease), visibility .36s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-hd {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem var(--pad);
  background: var(--navy);
  color: var(--on-dark);
}
.drawer-hd h2 { font-stretch: 70%; text-transform: uppercase; font-size: 1.5rem; }
.drawer-body { overflow-y: auto; padding: 0 var(--pad); }
.drawer-foot { border-top: var(--rule) solid var(--ink); padding: var(--pad); background: var(--chalk-2); }

.line {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: .85rem;
  padding: 1rem 0;
  border-bottom: 2px solid var(--chalk-3);
}
.line-img {
  aspect-ratio: 1;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
}
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font-weight: 800; font-stretch: 88%; font-size: .88rem; line-height: 1.16; }

.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 2px; background: var(--chalk); }
.qty button {
  width: 30px;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .14s var(--ease);
}
.qty button:hover { background: var(--hop); }
.qty button[disabled] { color: var(--fg-3); cursor: not-allowed; }
.qty button[disabled]:hover { background: transparent; }
.qty output {
  min-width: 34px;
  display: grid;
  place-items: center;
  border-inline: 2px solid var(--ink);
  font-family: 'Martian Mono', monospace;
  font-size: .74rem;
  font-weight: 700;
}

/* free-item progress — foul yellow, because it is a reward */
.reward-meter {
  border: var(--rule) solid var(--ink);
  border-radius: var(--r);
  background: var(--chalk);
  overflow: hidden;
}
.reward-meter-hd {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  background: var(--foul);
  color: var(--foul-ink);
  border-bottom: var(--rule) solid var(--ink);
}
.reward-meter-hd .ico { flex: none; }
/* Fill scales on the compositor; the hatch is a static overlay so it never stretches. */
.meter { height: 16px; background: var(--chalk-2); position: relative; overflow: hidden; }
.meter-fill {
  position: absolute;
  inset: 0;
  background: var(--foul);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform .5s var(--ease);
}
.meter-fill.is-done { background: var(--hop); }
.meter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,.14) 0 7px, transparent 7px 14px);
  pointer-events: none;
}
.meter-marks { position: absolute; inset: 0; display: flex; pointer-events: none; }
.meter-marks span { flex: 1; border-right: 2px solid rgba(5,17,11,.16); }
.meter-marks span:last-child { border-right: 0; }

/* ================================================================== TOAST = */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .85rem;
  background: var(--ink);
  color: var(--chalk);
  border: var(--rule) solid var(--ink);
  border-bottom-width: calc(var(--rule) + 4px);
  border-bottom-color: var(--hop);
  border-radius: var(--r);
  pointer-events: auto;
  animation: toast-in .34s var(--ease-snap);
}
.toast.is-out { animation: toast-out .24s var(--ease) forwards; }
.toast-foul { border-bottom-color: var(--foul); }
.toast img { width: 40px; height: 40px; object-fit: cover; border: 2px solid var(--chalk); flex: none; }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ============================================== THE HOME RUN (the moment) = */
/* Crossing the free-item threshold sends a ball over the wall. */
.homerun {
  position: fixed;
  z-index: 130;
  width: 26px; height: 26px;
  pointer-events: none;
  will-change: transform;
}
.homerun svg { width: 100%; height: 100%; }
.hr-flash {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: calc(var(--tick-h) + var(--hdr-h));
  z-index: 58;
  pointer-events: none;
  background: var(--foul);
  mix-blend-mode: screen;
  opacity: 0;
}
.hr-flash.is-on { animation: hr-flash .9s var(--ease); }
@keyframes hr-flash { 0% { opacity: 0; } 22% { opacity: .78; } 100% { opacity: 0; } }

/* ================================================================= SEARCH = */
.srch {
  position: fixed;
  inset: 0;
  z-index: 97;
  background: var(--navy);
  color: var(--on-dark);
  display: grid;
  grid-template-rows: auto 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s;
}
.srch.is-open { opacity: 1; visibility: visible; }
.srch-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem var(--gutter);
  border-bottom: var(--rule) solid var(--navy-lit);
}
.srch-input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--chalk);
  font-weight: 900;
  font-stretch: 74%;
  font-size: clamp(1.6rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.srch-input:focus { outline: none; }
.srch-input::placeholder { color: var(--on-navy-3); }
.srch-body { overflow-y: auto; padding: var(--gutter) var(--gutter) 4rem; }
.srch-sug { display: flex; flex-wrap: wrap; gap: 6px; }
.srch-sug .chip { background: transparent; color: var(--chalk); border-color: var(--on-dark-3); }
.srch-sug .chip:hover { background: var(--hop); color: var(--ink); border-color: var(--hop); }

.srch-hit {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: .6rem;
  border: 2px solid transparent;
  border-radius: var(--r);
}
.srch-hit:hover, .srch-hit:focus-visible { background: var(--navy-lit); border-color: var(--hop); }
.srch-hit img { width: 62px; height: 62px; object-fit: cover; border: 2px solid var(--chalk); background: #fff; }

/* ================================================================== MODAL = */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(5,17,11,.66); }
.modal-box {
  position: relative;
  width: min(640px, 100%);
  max-height: min(84vh, 720px);
  overflow-y: auto;
  background: var(--chalk);
  border: var(--rule) solid var(--ink);
  border-bottom-width: calc(var(--rule) + var(--edge));
  border-bottom-color: var(--chalk-3);
  border-radius: var(--r);
  transform: translateY(12px);
  transition: transform .28s var(--ease);
}
.modal.is-open .modal-box { transform: none; }
.modal-hd {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  background: var(--navy);
  color: var(--on-dark);
}
.modal-hd h2 { font-stretch: 72%; text-transform: uppercase; font-size: 1.35rem; }

/* =================================================================== TABLE */
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tbl th, .tbl td { padding: .6rem .7rem; text-align: left; border-bottom: 2px solid var(--chalk-3); }
.tbl thead th {
  background: var(--navy);
  color: var(--chalk);
  font-family: 'Martian Mono', monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
.tbl tbody tr:nth-child(even) { background: var(--chalk-2); }
.tbl td.num { font-family: 'Martian Mono', monospace; font-size: .78rem; }

/* ================================================================== FOOTER */
.ftr { background: var(--navy); color: var(--on-dark); }
.ftr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.ftr h3 {
  font-family: 'Martian Mono', monospace;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--hop);
  margin-bottom: .9rem;
}
.ftr-links li + li { margin-top: .45rem; }
.ftr-links a { color: var(--on-navy-2); font-size: .9rem; transition: color .16s var(--ease); }
.ftr-links a:hover { color: var(--chalk); }
.ftr-btm {
  border-top: 2px solid var(--navy-lit);
  padding-block: 1.2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  color: var(--on-navy-3);
}

/* =============================================================== SKELETON = */
.empty {
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad);
  text-align: center;
  border: var(--rule) dashed var(--chalk-3);
  border-radius: var(--r);
}
.empty h3 { font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.4rem); margin-bottom: .6rem; }
