/* store99&c=w2t3: shelf 3-col tall-only (≤900 & height>700|portrait, ≥520); wide/mid shelf 2-col; pills still 3-col on 520–1200 shrink; <520 2-col; hover-ring/loader/title shadows kept */
@font-face {
  font-family: Outfit;
  src: url("/assets/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: #050308;
  overflow: hidden;
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  touch-action: pan-x pan-y;
}

html.no-gpu, html.no-gpu body {
  background-color: #050308;
  background-image: url("/assets/lattice-still.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

@keyframes lattice-hz {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 0, 0.01px); }
}

#lattice {
  pointer-events: none;
  image-rendering: auto;
  width: 100%;
  height: 100%;
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
}

@media (pointer: coarse) {
  html, body {
    overflow: auto;
    height: auto;
    overscroll-behavior: none;
  }
  .app {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
  .stage {
    height: auto;
    min-height: 0;
    overflow: visible;
    -webkit-overflow-scrolling: auto;
  }
  #lattice {
    width: 100vw;
    height: 100lvh;
    transform: translateZ(0);
    animation: lattice-hz 2s linear infinite;
  }
}

html.no-gpu #lattice {
  display: none !important;
}

.app {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  isolation: isolate;
  transform: translateZ(0);
}

:root {
  --glass-fill: rgba(58, 52, 74, 0.78);
}
/* FROST: fill + rim only. No grain. */
.glass,
.nav {
  background-color: var(--glass-fill);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
/* Fill even if HTML class "glass" is missing. */
.nav,
.game-card__info {
  background-color: var(--glass-fill);
}
.nav {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 280px;
  width: 280px;
  align-self: stretch;
  margin: 14px 0 14px 14px;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 16px 0 28px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: none;
}


.nav__top {
  display: contents;
}
.brand { order: 0; }
.pills { order: 1; }
.radio { order: 2; }
.legal { order: 3; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 18px 8px 18px;
  opacity: 1;
  width: auto;
  filter: none;
  animation: none;
  transform: none;
}

.brand__star {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  flex: 0 0 48px;
}

.brand__word {
  height: 26px;
  width: auto;
  max-width: 176px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.pills {
  margin: 4px 0 0;
  /* Top/side inset so first-row pill cyan ring isn’t clipped by overflow or brand above */
  padding: 8px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pill {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  height: 48px;
  width: 100%;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  color: #fff;
  font: 650 16px/1 Outfit, system-ui, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  /* Flat 2026 frosted glass — no emboss, no clipped top sheen, no backdrop-filter. */
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
  overflow: visible;
}

.pill::before {
  content: none;
  display: none;
}

.pill.is-on {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.pill:hover,
.pill:focus-visible {
  outline: none;
  border-color: #c8f4ff;
  background: rgba(255, 255, 255, 0.16);
  /* Cheap cyan ring (no blur/shadow stack that clips). */
  box-shadow: 0 0 0 2px rgba(200, 244, 255, 0.95);
}

.pill.is-on:hover,
.pill.is-on:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: #c8f4ff;
  box-shadow: 0 0 0 2px rgba(200, 244, 255, 0.95);
}

@keyframes pill-spin {
  to { transform: rotate(360deg); }
}

.pill__ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.pill:hover .pill__ico,
.pill:focus-visible .pill__ico {
  animation: pill-spin 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pill__ico svg { display: block; }

.pill__label { position: relative; z-index: 1; white-space: nowrap; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }

.legal {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin: 8px 0 0;
  padding: 12px 16px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font: 500 12px/1.35 Outfit, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  scrollbar-gutter: auto;
  --stage-pad-top: 20px;
  --stage-pad-bot: 28px;
  /* Extra inset so card hover glow (≈7px) on the first row isn’t clipped by overflow */
  padding: var(--stage-pad-top) 34px var(--stage-pad-bot) 30px;
}
.stage::-webkit-scrollbar { width: 8px; }
.stage::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.shelf {
  --gap: 12px;
  --row-gap: 8px;
  width: 100%;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap);
  row-gap: var(--row-gap);
  align-content: start;
  margin: 0;
  pointer-events: auto;
  box-sizing: border-box;
}
.shelf:not(:has(.game-card)) {
  min-height: 100%;
  align-content: center;
}

.shelf__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffffffb0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.game-card,
.game-card:hover,
.game-card:focus-visible {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0 0 1px #ffffff28;
  filter: none !important;
  transition: none !important;
  gap: 0;
  text-align: left;
}

.game-card:hover,
.game-card:focus-visible {
  box-shadow: 0 0 0 2px #c8f4ff, 0 0 0 7px #6ad4ff55;
  outline: none;
}

/* Category settle — opacity + tiny rise only. No blur/filter/will-change/layout. */
@keyframes card-settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes card-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.game-card.is-enter {
  opacity: 0;
  animation: card-settle 280ms ease-out both;
  animation-delay: var(--enter-delay, 0ms);
}

.game-card__info,
.game-card__info.glass {
  flex: 0 0 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  align-content: center;
  align-items: center;
  padding: 0 0.7rem;
  /* Glass cap: frost fill only, no grain. */
  background-color: var(--glass-fill);
  background-image: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  box-shadow: none;
}

.game-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  grid-row: 1 / 3;
  box-shadow: 0 0 0 1px #ffffff22;
}

.game-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 6px #000, 0 0 14px rgba(0,0,0,.95);
  line-height: 1.15;
}

.game-card__tag {
  max-width: none;
  font-size: 0.66rem;
  line-height: 1.25;
  color: #ffffffb0;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.game-card__art,
.game-card__hover,
.game-card__phone {
  box-shadow: none !important;
  transition: none !important;
}

.game-card__art {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #000;
  border-radius: 0;
  display: block;
}

.game-card__hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.game-card:hover .game-card__hover.is-ready,
.game-card:focus-visible .game-card__hover.is-ready {
  opacity: 1;
}

.game-card.is-soon {
  cursor: pointer;
}
.game-card.is-offline {
  cursor: not-allowed;
  opacity: 0.72;
}
html.is-offline a.game-card {
  cursor: not-allowed;
}


.game-card__soon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}

.game-card.is-soon:hover .game-card__soon,
.game-card.is-soon:focus-visible .game-card__soon,
.game-card.is-soon.is-soon-open .game-card__soon {
  opacity: 1;
}

.game-card__soon-glass {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  background: rgba(12, 10, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10);
}

.game-card__soon-glass::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 1px;
  height: 50%;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0));
}



/* Desktop / fine pointer: two rows of cards must fit in the stage with no scrollbar.
   100cqh is the stage content box (padding already excluded). Extra rows (All, 7 games)
   still overflow and scroll. Tiny or coarse viewports keep today’s scroll. */
@media (width > 900px) and (pointer: fine) {
  .stage {
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
    container-type: size;
  }
  .shelf {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-items: start;
    align-content: start;
    grid-auto-rows: auto;
  }
  .game-card {
    min-height: 0;
    height: auto;
    max-height: none;
    width: 100%;
    /* Shrink 16:9 + 48px info together so two rows fit; never stretch media. */
    max-width: min(100%, calc(((100cqh - var(--row-gap)) / 2 - 48px) * 16 / 9));
  }
  .game-card__media {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (width <= 900px) {
  .app {
    flex-direction: column;
  }
  .nav {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    align-self: stretch;
    margin: 12px 12px 0;
    overflow: hidden;
    border-radius: 28px;
    padding: 12px 0 20px;
  }
  .nav__top {
    display: contents;
  }
  .brand {
    flex: 0 0 auto;
    min-width: 0;
    padding: 2px 12px;
    gap: 8px;
  }
  .brand__star {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .brand__word {
    height: 22px;
    max-width: min(220px, 70vw);
  }
  .legal {
    position: relative;
    margin: 8px 0 0;
    padding: 10px 16px 0;
    text-align: center;
    order: 3;
  }
  .stage {
    padding: 16px 18px 24px;
  }
  .shelf {
    width: 100%;
    height: auto;
    /* Truly narrow (<520) stays 2-up; tall mid (≥520 ≤900) forced to 3-col at EOF. Wide stays 2. */
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    --gap: 12px;
    --row-gap: 6px;
  }
  .game-card {
    min-height: 0;
  }
  .pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    position: relative;
    z-index: 2;
    order: 1;
  }
  .pill {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px 0 8px;
    font-size: 12px;
    gap: 6px;
  }
  .pill__label { white-space: nowrap; }
}

/* Mid shrink band: pills 3-col for 520–1200. Shelf NOT forced here — wide mid stays 2-col. */
@media (min-width: 520px) and (max-width: 1200px) {
  .nav .pills,
  .pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Short desktop nav: 3 pills/row when shrinking height. Shelf stays 2-col in wide mode. */
@media (width > 900px) and (height <= 900px) {
  .pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px 12px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
  .pill {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 8px 0 8px;
    font-size: 12px;
    gap: 6px;
  }
  .pill__label { white-space: nowrap; }
  .radio,
  #radio {
    flex: 1 1 auto;
    z-index: auto;
    min-height: 0;
  }
}
@media (width > 900px) and (height <= 720px) {
  .radio,
  #radio {
    flex: 1 1 auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card__hover { display: none !important; }
  .game-card:hover .game-card__soon,
  .game-card:focus-visible .game-card__soon {
    opacity: 1;
  }
  .pill:hover .pill__ico,
  .pill:focus-visible .pill__ico {
    animation: none;
  }
  .game-card.is-enter {
    animation-name: card-fade;
    animation-delay: 0ms;
    transform: none;
  }
}

/* store radio (staging) */
.lattice-loop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  display: none;
}

html.lattice-video .lattice-loop {
  display: block;
}

/* #radio is a BARE HOLE. .nav is the only glass. No second card. */
.radio,
#radio {
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: visible;
  contain: none;
  visibility: hidden;
  align-self: stretch;
  margin: 8px 16px 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
  min-width: 0;
  width: auto;
  /* cascade vars — desktop clears title outline */
  --lmp-fg: #fff;
  --lmp-muted: rgba(255, 255, 255, 0.28);
  --lmp-eq: #c8f4ff;
  --lmp-gain-fill: #fff;
  --lmp-title-shadow: none;
}
#radio.is-ready,
.radio.is-ready,
#radio.lmp.is-ready {
  visibility: visible;
}

/* Defeat UA [hidden]{display:none} so reserved slot does not collapse */
#radio[hidden],
.radio[hidden] {
  visibility: hidden;
}
@media (width > 900px) {
  #radio[hidden],
  .radio[hidden] {
    display: grid;
  }
}
@media (width <= 900px) {
  #radio[hidden],
  .radio[hidden] {
    display: grid;
  }
}

.pills {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  min-height: 0;
}
#radio.glass-panel,
#radio.lmp,
.radio.lmp,
#radio.glass-panel.lmp {
  background: none;
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0;
}

/* Desktop column: leftover under pills; square art SHRINKS into leftover */
@media (width > 900px) {
  #radio,
  #radio.lmp,
  .radio.lmp {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto auto auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    contain: none;
    height: auto;
    max-height: 100%;
    width: auto;
    align-self: stretch;
    z-index: 0;
  }
  #radio .lmp-art {
    grid-row: 1;
    justify-self: center;
    align-self: center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #000;
  }
  #radio .lmp-title {
    grid-row: 2;
    text-align: center;
    font: 650 13px/1.2 Outfit, system-ui, sans-serif;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.2em;
    --lmp-title-shadow: none;
    text-shadow: none;
    -webkit-text-stroke: 0;
  }
  #radio .lmp-controls {
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
    /* Inset so .lmp-btn cyan hover/focus ring (2px + 7px glow) isn’t clipped by ancestors */
    padding: 8px;
    overflow: visible;
  }
  #radio .lmp-btn {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 36px;
  }
  #radio .lmp-gain,
  #radio input.lmp-gain[type="range"] {
    grid-row: 4;
    margin: 8px 0 0;
  }
  #radio .lmp-eq {
    grid-row: 5;
    height: 72px;
    max-height: 72px;
    min-height: 72px;
  }
}

.nav .pills {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
}

@media (width <= 900px) {
  .brand { order: 0; }
  .pills {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    z-index: 2;
  }
  .radio, #radio { order: 2; }
  .legal { order: 3; margin: 8px 0 0; }

  /* Two-line mobile: art+title | controls. Bare hole; nav is glass. */
  #radio,
  #radio.lmp,
  .radio.lmp,
  #radio.glass-panel {
    margin: 8px 12px 0;
    padding: 8px 10px;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: 0 0 auto;
    overflow: visible;
    z-index: 0;
    contain: none;
    min-width: 0;
    width: auto;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: 28px 36px;
    grid-template-areas:
      "art title"
      "controls controls";
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    gap: 4px 8px;
    /* Letter-only title shadow (no plate): soft 1–2px — never fills overflow box. */
    --lmp-title-shadow: 0 1px 1px #000, 0 0 2px rgba(0, 0, 0, 0.85);
  }
  #radio .lmp-art {
    grid-area: art;
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
    z-index: 1;
  }
  #radio .lmp-title {
    grid-area: title;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: left;
    font: 650 12px/1 Outfit, system-ui, sans-serif;
    min-width: 0;
    min-height: 0;
    width: auto;
    max-width: 100%;
    justify-self: start;
    align-self: center;
    padding: 0 !important;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: var(--lmp-title-shadow);
    -webkit-text-stroke: 0;
    paint-order: fill;
    box-shadow: none !important;
    filter: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    border-radius: 0;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #radio .lmp-title::before,
  #radio .lmp-title::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
    border: 0 !important;
  }
  #radio .lmp-eq {
    grid-area: title;
    position: absolute !important;
    inset: 0;
    /* Start a little left of the first title glyph (into column gap). */
    left: -5px;
    right: 0;
    top: 0;
    bottom: 0;
    width: calc(100% + 5px) !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0;
    z-index: 0;
    pointer-events: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transform: none;
    box-shadow: none !important;
    filter: none !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: none !important;
    opacity: 0.55;
  }
  #radio .lmp-controls {
    grid-area: controls;
    display: flex;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 0;
    align-items: center;
    z-index: 1;
    height: 36px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* Side inset only — keep 36px strip; ring fits without growing row */
    padding: 0 8px;
    overflow: visible;
  }
  #radio .lmp-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 36px;
  }
  #radio .lmp-btn svg {
    width: 18px;
    height: 18px;
  }
  #radio .lmp-btn--play {
    width: auto;
    flex: 1 1 0;
  }
  #radio .lmp-btn--play svg {
    width: 20px;
    height: 20px;
  }
  #radio .lmp-btn--mute .icon-speaker {
    width: 18px;
    height: 18px;
  }
  #radio .lmp-gain,
  #radio input.lmp-gain[type="range"] {
    display: none !important;
  }
}

/* Category skip: warm = ~500ms crossfade; cold = fade out then fade in. Opacity only. */
.shelf-ghost {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  margin: 0;
}
.shelf-ghost.is-out {
  opacity: 0;
  transition: opacity 500ms ease;
}
.shelf-ghost.is-out-fast {
  opacity: 0;
  transition: opacity 180ms ease;
}
.shelf.is-cross-in {
  animation: card-fade 500ms ease both;
}
.shelf.is-hold {
  opacity: 0;
}
.shelf.is-cold-in {
  animation: card-fade 280ms ease both;
}

/* Truly narrow only: 2-col shelf+pills */
@media (max-width: 519px) {
  .shelf {
    grid-template-columns: 1fr 1fr !important;
  }
  .nav .pills,
  .pills {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
}

/* === store99 w2t3 EOF: shelf 3-col tall-only; pills keep shrink 3-col; wide shelf 2 === */
/* Pills: width-only 520–1200 still 3-col (no pointer:fine). */
@media (min-width: 520px) and (max-width: 1200px),
       (width >= 520px) and (width <= 1200px) {
  .nav .pills,
  .pills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Shelf: 3-col ONLY in tall/stacked mode (≥520 and ≤900, not a short wide window).
   Matches store tall breakpoint (width ≤ 900) + enough height or portrait.
   Mid-wide / landscape / desktop shelf remains base 1fr 1fr (2-col). */
@media (min-width: 520px) and (max-width: 900px) and (height > 700px),
       (min-width: 520px) and (max-width: 900px) and (orientation: portrait),
       (width >= 520px) and (width <= 900px) and (height > 700px),
       (width >= 520px) and (width <= 900px) and (orientation: portrait) {
  .shelf {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
