/* store234 — shared tokens + chrome. Orientation lives in store-wide / store-tall. */
@font-face {
  font-family: Outfit;
  src: url("/assets/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --glass-fill: rgba(58, 52, 74, 0.78);
  --lmp-fg: #fff;
  --lmp-muted: rgba(255, 255, 255, 0.28);
  --lmp-eq: #c8f4ff;
  --lmp-gain-fill: #fff;
  --lmp-title-shadow: none;
}

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");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

@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;
}

.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;
}

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

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

/* Glass: fill + rim only. No grain. */
.glass,
.nav,
.store-tile__info {
  background-color: var(--glass-fill);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.nav {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  margin: 0;
  padding: 16px 0 28px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: none;
}

.nav__top {
  display: contents;
}

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

.brand__star {
  display: none;
  width: 0;
  height: 0;
  flex: 0 0 0;
  margin: 0;
  padding: 0;
}

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

.pills {
  position: relative;
  z-index: 2;
  margin: 4px 0 0;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.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;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
  overflow: visible;
  box-sizing: border-box;
  min-width: 0;
}

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

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

.pill:hover,
.pill:focus-visible {
  outline: none;
  border-color: #c8f4ff;
  background: rgba(255, 255, 255, 0.16);
  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: visible;
  text-overflow: clip;
  text-align: left;
}

@media (hover: none), (pointer: coarse) {
  .pill:hover,
  .pill:focus,
  .pill:focus-visible,
  .pill:active {
    box-shadow: none;
  }
}

.legal {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  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;
  pointer-events: none;
}

/* #radio is a bare hole — .nav is the only glass frame */
.radio,
#radio,
#radio.lmp,
#radio.glass-panel,
.radio.lmp {
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  overflow: visible;
  contain: none;
  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;
  visibility: hidden;
}

#radio.is-ready,
.radio.is-ready,
#radio.lmp.is-ready {
  visibility: visible;
}

#radio[hidden],
.radio[hidden] {
  visibility: hidden;
  display: grid;
}

#radio .lmp-art-slot {
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  min-width: 0;
}

#radio .lmp-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#radio .lmp-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font: 650 13px/1.2 Outfit, system-ui, sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: var(--lmp-title-shadow);
  background: transparent;
  border: 0;
  min-width: 0;
}

#radio .lmp-title::before,
#radio .lmp-title::after {
  content: none;
  display: none;
}

#radio .lmp-seek,
#radio input.lmp-seek[type="range"],
#radio .lmp-gain,
#radio input.lmp-gain[type="range"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

#radio .lmp-times {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font: 500 11px/1 system-ui, sans-serif;
  opacity: 0.7;
  padding: 0 1px;
}

#radio .lmp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
  overflow: visible;
}

#radio .lmp-btn {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

#radio .lmp-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}

#radio .lmp-btn--play svg {
  width: 32px;
  height: 32px;
}

#radio .lmp-btn .icon-pause {
  display: none;
}

#radio .lmp-btn.is-playing .icon-play,
#radio .lmp-btn[aria-label="Pause"] .icon-play {
  display: none;
}

#radio .lmp-btn.is-playing .icon-pause,
#radio .lmp-btn[aria-label="Pause"] .icon-pause {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  #radio .lmp-btn:hover,
  #radio .lmp-btn:focus-visible {
    box-shadow: 0 0 0 2px #c8f4ff, 0 0 0 7px #6ad4ff55;
    outline: none;
  }
}

@media (hover: none), (pointer: coarse) {
  #radio .lmp-btn:hover,
  #radio .lmp-btn:focus,
  #radio .lmp-btn:focus-visible,
  #radio .lmp-btn:active {
    box-shadow: none;
    outline: none;
  }
}

#radio .lmp-vol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 4px 0;
}

#radio .lmp-vol-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  opacity: 0.85;
  color: #fff;
}

#radio .lmp-vol-ico svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

#radio .lmp-eq,
#radio canvas.lmp-eq,
#radio canvas[data-lmp="eq"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#radio .lmp-audio,
#radio audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

#radio .store-eq-bars {
  display: none;
  pointer-events: none;
}

/* Stage + shelf + tiles (visual; column counts live in orient sheets) */
.store-stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 20px 28px 28px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.store-stage::-webkit-scrollbar { width: 8px; }
.store-stage::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.store-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 4px;
  box-sizing: border-box;
  align-content: start;
  align-items: start;
  justify-items: stretch;
  pointer-events: auto;
}

.store-shelf:not(:has(.store-tile)) {
  min-height: 40vh;
  align-content: center;
}

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

@keyframes card-settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.store-tile,
a.store-tile,
article.store-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: min-content;
  max-height: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0 0 1px #ffffff28;
  filter: none;
  transform: none;
  align-self: start;
  gap: 0;
  text-align: left;
  grid-column: auto;
  grid-row: auto;
}

.store-tile:hover,
.store-tile:focus-visible {
  box-shadow: 0 0 0 2px #c8f4ff, 0 0 0 7px #6ad4ff55;
  outline: none;
  z-index: 1;
}

.store-tile.is-enter {
  opacity: 0;
  animation: card-settle 280ms ease-out both;
  animation-delay: var(--enter-delay, 0ms);
}

.store-tile__info,
.store-tile__info.glass {
  flex: 0 0 48px;
  height: 48px;
  min-height: 48px;
  max-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;
  background-color: var(--glass-fill);
  background-image: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px 18px 0 0;
  box-shadow: none;
  box-sizing: border-box;
}

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

.store-tile__title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  /* letter-level halo only — no soft blob that reads as a rectangle */
  text-shadow: 0 1px 1px #000, 0 0 1.5px #000;
  background: transparent;
  box-shadow: none;
  filter: none;
  line-height: 1.15;
}

.store-tile__tag {
  max-width: none;
  font-size: 0.66rem;
  line-height: 1.25;
  color: #ffffffb0;
  text-shadow: 0 1px 1px #000;
  background: transparent;
  box-shadow: none;
  filter: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.store-tile__art,
.store-tile__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: none;
}

.store-tile__hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

.store-tile:hover .store-tile__hover.is-ready,
.store-tile:focus-visible .store-tile__hover.is-ready {
  opacity: 1;
}

.store-tile.is-soon {
  cursor: pointer;
}

.store-tile.is-offline {
  opacity: 0.55;
  pointer-events: none;
}

html.is-offline a.store-tile {
  opacity: 0.55;
  pointer-events: none;
}

.store-tile__soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.store-tile.is-soon:hover .store-tile__soon,
.store-tile.is-soon:focus-visible .store-tile__soon,
.store-tile.is-soon.is-soon-open .store-tile__soon {
  opacity: 1;
}

.store-tile__soon-glass {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 650;
  font-size: 1.05rem;
  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);
}

/* Unreleased lightbox */
html.has-soon-modal {
  overflow: hidden;
}

.soon-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(16px, 3vw);
  cursor: pointer;
  background: rgba(6, 8, 18, 0.72);
}

.soon-modal[hidden] {
  display: none;
}

.soon-modal__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: min(92dvh, 920px);
  overflow: auto;
  border-radius: 22px;
  padding: 14px;
  background: rgba(16, 14, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.soon-modal__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a12;
}

.soon-modal__art,
.soon-modal__hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soon-modal__hover {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.soon-modal__hover.is-ready {
  opacity: 1;
}

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

.soon-modal__badge-glass {
  padding: 10px 18px;
  border-radius: 999px;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 650;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(12, 10, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.soon-modal__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 4px 6px 2px;
}

.soon-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
}

.soon-modal__title {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.soon-modal__tag {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

@media (max-width: 700px) {
  .soon-modal__panel {
    width: 100%;
    padding: 10px;
    border-radius: 16px;
  }
  .soon-modal__icon {
    width: 52px;
    height: 52px;
  }
  .soon-modal__title {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-tile.is-enter,
  .pill:hover .pill__ico,
  .pill:focus-visible .pill__ico,
  #radio .store-eq-bars.is-on > span {
    animation: none;
  }
  .store-tile.is-enter {
    opacity: 1;
    transform: none;
  }
}

/* store251: audio stay hidden; NO global #legal ~ * (it broke tall) */
html.ionic-store #radio audio,
html.ionic-store audio.lmp-audio {
  display: none;
  width: 0;
  height: 0;
  appearance: none;
}

/* === store250: title letter shadows; never nuke tile thumbs === */
.store-tile__title,
.store-tile__tag {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-text-stroke: 0;
}
.store-tile__title {
  text-shadow: 0 1px 1px #000, 0 0 1.5px #000;
}
.store-tile__info,
.store-tile__info.glass {
  /* keep glass bar; do not cast a drop-shadow rect around titles */
  filter: none;
  box-shadow: none;
}

/* === store254: no ghost art-slot / broken art under © === */
html.ionic-store .lmp-art-slot {
  display: contents;
}
html.ionic-store .store-stage .lmp-art-slot,
html.ionic-store .store-stage > img.lmp-art,
html.ionic-store .store-stage canvas.lmp-eq,
html.ionic-store .store-stage audio,
html.ionic-store .app > .lmp-art-slot,
html.ionic-store .app > img.lmp-art,
html.ionic-store .app > canvas.lmp-eq {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -99999px !important;
}

/* === store255: hide legacy Latis #app game shell (core.min Je) === */
html.ionic-store #app,
html.ionic-store #play-row,
html.ionic-store #radio-cover,
html.ionic-store #wordmark,
html.ionic-store #radio-eq-wrap,
html.ionic-store #radio-eq,
html.ionic-store #mount,
html.ionic-store #hit,
html.ionic-store #bg-mount,
html.ionic-store #fps-hud {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -99999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
