/* Idle Späti — idlespaeti.com
   Colours come from the game: awning orange + cream (MenuKit.AWNING_A/B), price-tag yellow,
   the green SPÄTI sign, and the blue-violet Kiez night of the key art. */

@font-face { font-family: "Bungee"; src: url("/assets/fonts/Bungee-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/JosefinSans-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("/assets/fonts/PermanentMarker-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --night: #1b1a35;
  --night-deep: #121127;
  --night-raised: #26254a;
  --awning: #ed8024;
  --awning-dark: #b85a12;
  --cream: #faebc7;
  --cream-dim: #dbd1b3;
  --neon: #52f08a;
  --tag: #ffd638;
  --brick: #8e3b2b;
  --ink: #1f1a14;
  --wood: #a8642e;
  --wood-dark: #6e3d18;

  --display: "Bungee", "Arial Black", sans-serif;
  --body: "Josefin Sans", "Avenir Next", "Segoe UI", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: var(--measure); }

/* ---------- Awning: the striped Späti awning, used as the page's divider ---------- */
.awning {
  height: 54px;
  background: repeating-linear-gradient(90deg, var(--awning) 0 56px, var(--cream) 56px 112px);
  position: relative;
  box-shadow: inset 0 -10px 14px -10px rgba(0, 0, 0, 0.35);
}
.awning::after { /* scalloped edge */
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 22px;
  background:
    radial-gradient(circle at 28px 0, var(--awning) 27px, transparent 28px) 0 0 / 112px 22px repeat-x,
    radial-gradient(circle at 84px 0, var(--cream) 27px, transparent 28px) 0 0 / 112px 22px repeat-x;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.35));
}

/* ---------- Hero ----------
   Copy first, on the night sky; the key art follows and fades into that sky, so the
   headline never sits on the figures. */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b0a1e 0%, #121329 60%, #16183a 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 6vw, 84px) var(--gutter) 0;
  max-width: 76rem;
  margin: 0 auto;
}
.hero picture { display: block; position: relative; margin-top: clamp(-150px, -9vw, -40px); }
.hero-art {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--cream);
  text-shadow: 0 6px 0 var(--awning-dark), 0 14px 30px rgba(0, 0, 0, 0.55);
}
.hero .lede {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  margin: 14px 0 26px;
  max-width: 30rem;
}
.hero .stores { position: relative; z-index: 3; }

/* Lights on: the shop starts dark and switches on once, like a Späti opening for the night. */
.hero-art { filter: brightness(0.32) saturate(0.55); }
.lights-on .hero-art { animation: lights-on 1.4s steps(1, end) 0.35s forwards; }
@keyframes lights-on {
  0% { filter: brightness(0.32) saturate(0.55); }
  12% { filter: brightness(0.9) saturate(1); }
  18% { filter: brightness(0.4) saturate(0.6); }
  30% { filter: brightness(1) saturate(1.05); }
  36% { filter: brightness(0.55) saturate(0.8); }
  48%, 100% { filter: brightness(1) saturate(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .lights-on .hero-art { animation: none; filter: none; }
}
.no-js .hero-art { filter: none; }

/* ---------- Store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px;
  padding: 10px 22px 8px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.15;
  background: var(--tag);
  color: var(--ink);
  box-shadow: 0 5px 0 #b8901a, 0 10px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.store:active { transform: translateY(4px); box-shadow: 0 1px 0 #b8901a, 0 4px 10px rgba(0, 0, 0, 0.35); }
.store small { display: block; font-weight: 500; font-size: 0.8rem; opacity: 0.8; }
.store svg { width: 26px; height: 26px; flex: none; }
.store.secondary { background: var(--cream); box-shadow: 0 5px 0 var(--cream-dim), 0 10px 22px rgba(0, 0, 0, 0.35); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section-head { max-width: 72rem; margin: 0 auto 40px; }
.section-head p { margin-top: 16px; font-size: 1.2rem; color: var(--cream-dim); }
.wrap { max-width: 72rem; margin: 0 auto; }

/* ---------- Peek: the loupe over a real screenshot ---------- */
.peek { background: var(--night-deep); padding-top: clamp(96px, 12vw, 160px); }
.peek-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); width: fit-content; margin-bottom: 18px; }
.peek-tabs button {
  font: 600 1rem/1 var(--body);
  color: var(--cream-dim);
  background: transparent;
  border: 0; border-radius: 12px;
  padding: 12px 18px 9px;
  cursor: pointer;
}
.peek-tabs button[aria-pressed="true"] { background: var(--awning); color: #fff; box-shadow: inset 0 -3px 0 var(--awning-dark); }
.loupe-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: none;
  touch-action: pan-y;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  aspect-ratio: 16 / 9;
  background: #000;
}
.loupe-stage img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.lens {
  position: absolute;
  width: clamp(150px, 26vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid var(--cream);
  box-shadow: 0 0 0 3px var(--ink), 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(0, 0, 0, 0.35);
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 47%; top: 48%;
}
.lens::after { /* handle */
  content: ""; position: absolute;
  width: 18%; height: 46%;
  left: 88%; top: 80%;
  background: linear-gradient(90deg, var(--wood-dark), var(--wood));
  border-radius: 10px;
  transform: rotate(-45deg);
  transform-origin: top center;
  box-shadow: 0 0 0 3px var(--ink);
}
.peek-note { margin-top: 14px; color: var(--cream-dim); font-size: 1rem; }

/* ---------- Shelf + receipt ---------- */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.shelf {
  background: linear-gradient(180deg, #3a2a3a, #2b2240);
  border-radius: 16px;
  padding: 18px 18px 6px;
  border: 10px solid var(--wood-dark);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45), 0 24px 50px rgba(0, 0, 0, 0.45);
}
.board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  padding: 4px 4px 0;
  margin-bottom: 14px;
  position: relative;
}
.board::after { /* the plank */
  content: ""; position: absolute; left: -18px; right: -18px; bottom: -12px; height: 14px;
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}
.item {
  position: relative;
  background: none; border: 0; padding: 0 0 6px;
  cursor: pointer;
  color: inherit;
}
.item img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.5)); transition: transform 0.15s; }
.item:hover img, .item:focus-visible img { transform: translateY(-6px) rotate(-3deg); }
.item.bought img { animation: grab 0.35s ease-out; }
@keyframes grab { 40% { transform: translateY(-16px) scale(1.12); } }
.tag {
  position: absolute; left: 50%; top: -8px;
  transform: translate(-50%, -100%) rotate(-4deg);
  background: var(--tag);
  color: var(--ink);
  font: 1rem/1.1 var(--marker);
  padding: 6px 10px 5px;
  border-radius: 4px 12px 4px 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 3;
}
.item:hover .tag, .item:focus-visible .tag { opacity: 1; }

.receipt {
  position: sticky; top: 24px;
  background: #fbf8f0;
  color: var(--ink);
  font: 0.95rem/1.5 var(--mono);
  padding: 22px 20px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(1.2deg);
  /* torn bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 12px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 12px repeat-x;
}
.receipt h3 { font-family: var(--display); text-align: center; font-size: 1.4rem; margin-bottom: 2px; }
.receipt .addr { text-align: center; font-size: 0.8rem; margin: 0 0 12px; max-width: none; }
.receipt ol { list-style: none; margin: 0; padding: 10px 0; border-top: 2px dashed #bbb; border-bottom: 2px dashed #bbb; min-height: 7.5em; }
.receipt li { display: flex; justify-content: space-between; gap: 12px; }
.receipt .empty { color: #8a8170; }
.receipt .sum { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-top: 10px; }
.receipt .thanks { text-align: center; margin: 14px 0 0; font-size: 0.85rem; max-width: none; }
.receipt button {
  margin-top: 14px; width: 100%;
  font: 600 0.95rem/1 var(--body);
  border: 2px solid var(--ink); border-radius: 10px;
  background: transparent; color: var(--ink);
  padding: 10px 0 7px; cursor: pointer;
}

/* ---------- Album: customers as polaroid stickers ---------- */
.album { background: linear-gradient(180deg, var(--night) 0%, var(--night-raised) 100%); }
.stickers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 34px 26px;
  max-width: 72rem; margin: 0 auto;
  list-style: none; padding: 0;
}
.sticker {
  background: #fffaf0;
  color: var(--ink);
  padding: 10px 10px 14px;
  border-radius: 3px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--r, -2deg));
  transition: transform 0.2s;
}
.sticker:hover { transform: rotate(0deg) scale(1.04); }
.sticker .photo { background: #d9ecf0; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.sticker.rare .photo { background: radial-gradient(circle at 50% 40%, #fff3b0, #f0c040); }
.sticker img { width: 92%; }
.sticker h3 { font: 1.25rem/1.1 var(--marker); margin: 10px 2px 4px; }
.sticker p { font-size: 0.92rem; line-height: 1.35; margin: 0 2px; color: #4a4236; }
.sticker .rarity { font: 700 0.75rem/1 var(--body); color: #9a6a00; margin: 0 2px 4px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; max-width: 72rem; margin: 0 auto; }
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.feature img { width: 64px; height: 64px; }
.feature h3 { margin: 6px 0 8px; color: var(--tag); }
.feature p { color: var(--cream-dim); margin: 0; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 72rem; margin: 64px auto 0; }
.shots figure { margin: 0; }
.shots img { border-radius: 14px; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.shots figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--cream-dim); }

/* ---------- Open sign / download ---------- */
.open { text-align: center; background: var(--night-deep); }
.open-sign {
  display: inline-block;
  font: 400 clamp(2.4rem, 8vw, 5.5rem)/1 var(--display);
  color: var(--neon);
  padding: 22px 34px 14px;
  border: 5px solid var(--neon);
  border-radius: 18px;
  text-shadow: 0 0 6px var(--neon), 0 0 22px rgba(82, 240, 138, 0.7), 0 0 48px rgba(82, 240, 138, 0.45);
  box-shadow: 0 0 14px rgba(82, 240, 138, 0.6), inset 0 0 14px rgba(82, 240, 138, 0.45);
  margin-bottom: 30px;
}
.open p { margin: 0 auto 30px; font-size: 1.25rem; }
.open .stores { justify-content: center; }
.open .fine { font-size: 0.95rem; color: var(--cream-dim); margin-top: 26px; }

/* ---------- Footer & text pages ---------- */
.footer {
  padding: 36px var(--gutter) 48px;
  background: #0d0c1f;
  color: var(--cream-dim);
  font-size: 0.95rem;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
}
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.page-top { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); }
.page-top a { font-family: var(--display); text-decoration: none; font-size: 1.3rem; }
.legal { max-width: 46rem; margin: 0 auto; padding: 72px var(--gutter) 90px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 16px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 14px; color: var(--tag); }
.legal p, .legal li { color: var(--cream); max-width: none; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .stand { color: var(--cream-dim); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; }
  .receipt { position: static; transform: none; max-width: 360px; }
  .features { grid-template-columns: 1fr; gap: 40px; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero picture { margin-top: 8px; }
  .hero-art { width: 160%; max-width: none; margin-left: -48%; }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .loupe-stage { aspect-ratio: 4 / 3; }
  .stickers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .sticker p { font-size: 0.85rem; }
  .store { width: 100%; justify-content: center; }
}

/* ---------- Ticker: the game's news line ---------- */
.ticker {
  background: #183a26;
  border-bottom: 2px solid #2f6b45;
  color: #c9f5d6;
  font: 600 0.95rem/1 var(--body);
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0 8px;
}
.ticker-track { display: inline-flex; gap: 64px; padding-left: 100%; animation: ticker 70s linear infinite; }
.ticker-track span::before { content: "●"; color: var(--tag); margin-right: 12px; font-size: 0.7em; vertical-align: 0.15em; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-left: var(--gutter); } }

/* ---------- Gameplay clip: a phone that rises over the awning ---------- */
.clip {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: auto minmax(0, 30rem); gap: clamp(32px, 6vw, 96px);
  align-items: center; justify-content: center;
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
  margin-top: -110px;
}
.phone {
  margin: 0;
  width: min(300px, 72vw);
  aspect-ratio: 9 / 16;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(145deg, #2c2b3e, #0d0c18);
  box-shadow: 0 0 0 2px #45445a, 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(237, 128, 36, 0.18);
  position: relative;
  transform: rotate(-3deg);
}
.phone::before { /* camera notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; border-radius: 10px; background: #0d0c18; z-index: 2;
}
.phone-screen { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; display: block; background: #000; }
.clip-copy { padding-top: 110px; }
.clip-copy p { color: var(--cream-dim); font-size: 1.15rem; }
.clip-copy h2 { margin-bottom: 18px; }
.phone-caption { font-size: 0.95rem !important; opacity: 0.8; }
@media (max-width: 800px) {
  .clip { grid-template-columns: 1fr; justify-items: center; margin-top: -60px; }
  .clip-copy { padding-top: 0; }
}

/* ---------- Night shift mini-game ---------- */
.shift { background: radial-gradient(ellipse at 50% 0%, #2a2350 0%, var(--night) 60%); }
.game {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0a18 url("/assets/img/shop_peek_night.webp") center / cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 4px #2f6b45, 0 0 40px rgba(82, 240, 138, 0.25);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.game::before { content: ""; position: absolute; inset: 0; background: rgba(10, 8, 30, 0.42); }
.game-hud {
  position: absolute; z-index: 4; left: 14px; right: 14px; top: 12px;
  display: flex; align-items: center; gap: 10px;
}
.game-score, .game-combo {
  font: 400 1.05rem/1 var(--display);
  padding: 9px 14px 7px;
  border-radius: 12px;
}
.game-score { background: rgba(14, 40, 26, 0.9); border: 2px solid #3d8a58; color: var(--cream); }
.game-combo { background: var(--tag); color: var(--ink); box-shadow: 0 3px 0 #b8901a; }
.game-combo.bump { animation: bump 0.25s ease-out; }
@keyframes bump { 50% { transform: scale(1.25); } }
.game-sound {
  margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid #3d8a58; background: rgba(14, 40, 26, 0.9);
  font-size: 1.1rem; cursor: pointer;
}
.game-sound[aria-pressed="false"] { opacity: 0.55; }
.game-time { position: absolute; z-index: 4; left: 14px; right: 14px; top: 66px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.game-time span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--neon), var(--tag)); transform-origin: left; }
.game-field { position: absolute; inset: 0; z-index: 3; }

.who {
  position: absolute;
  width: clamp(54px, 8vw, 92px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0);
  border: 0; padding: 0; border-radius: 50%;
  background: #d9ecf0;
  cursor: pointer;
  animation: pop-in 0.18s ease-out forwards;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}
.who img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.who.serve { box-shadow: 0 0 0 5px var(--tag), 0 0 24px rgba(255, 214, 56, 0.8); }
.who.thief { box-shadow: 0 0 0 5px #e04a3a, 0 0 26px rgba(224, 74, 58, 0.9); animation: pop-in 0.18s ease-out forwards, shake 0.4s 0.2s infinite; }
.who.thief::after {
  content: "!"; position: absolute; top: -14px; right: -6px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #e04a3a; color: #fff; font: 400 1.1rem/30px var(--display); text-align: center;
}
.who.coin { background: none; box-shadow: none; width: clamp(40px, 5.5vw, 62px); }
.who.coin img { border-radius: 0; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5)); animation: spin 1.2s linear infinite; }
.who.fade { animation: pop-out 0.2s ease-in forwards; pointer-events: none; }
.who .timer { position: absolute; inset: -9px; border-radius: 50%; pointer-events: none; }
@keyframes pop-in { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes pop-out { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(0); opacity: 0; } }
@keyframes shake { 0%, 100% { margin-left: 0; } 25% { margin-left: -3px; } 75% { margin-left: 3px; } }
@keyframes spin { 50% { transform: scaleX(0.35); } }

.float {
  position: absolute; z-index: 5;
  font: 400 clamp(1rem, 2vw, 1.5rem)/1 var(--display);
  color: var(--tag);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  animation: float-up 0.9s ease-out forwards;
}
.float.bad { color: #ff6b5b; }
.float.good { color: var(--neon); }
@keyframes float-up { to { transform: translate(-50%, -160%); opacity: 0; } }

.game-card {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: rgba(10, 8, 30, 0.72);
  backdrop-filter: blur(3px);
  text-align: center; padding: 20px;
}
.game-card[hidden] { display: none; }
.neon-title {
  font: 400 clamp(2rem, 6vw, 4rem)/1 var(--display);
  color: var(--neon);
  text-shadow: 0 0 6px var(--neon), 0 0 22px rgba(82, 240, 138, 0.7), 0 0 48px rgba(82, 240, 138, 0.45);
}
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; padding: 0; margin: 0; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 10px; }
.ring { width: 30px; height: 30px; border-radius: 50%; background: #d9ecf0; }
.ring.gold { box-shadow: 0 0 0 4px var(--tag); }
.ring.red { box-shadow: 0 0 0 4px #e04a3a; }
.game-card .store { border: 0; font: 600 1.1rem/1 var(--body); cursor: pointer; padding: 18px 28px 15px; }
.moons { display: flex; gap: 14px; }
.moons img { width: clamp(56px, 9vw, 96px); height: auto; }
.moons img.off { filter: grayscale(1) brightness(0.45); }
.moons img.on { animation: moon-in 0.4s ease-out backwards; }
.moons img.on:nth-child(2) { animation-delay: 0.25s; }
.moons img.on:nth-child(3) { animation-delay: 0.5s; }
@keyframes moon-in { from { transform: scale(0) rotate(-40deg); } }
.game-result { font-size: 1.2rem; margin: 0; max-width: 30rem; }
.game-result strong { font-family: var(--display); font-weight: 400; color: var(--tag); font-size: 1.6rem; display: block; margin-bottom: 6px; }

/* ---------- Shelf money pop ---------- */
.item .money-pop {
  position: absolute; left: 50%; top: 10%;
  font: 400 1rem/1 var(--display); color: var(--neon);
  -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill;
  pointer-events: none; transform: translate(-50%, 0);
  animation: float-up 0.8s ease-out forwards;
  white-space: nowrap;
}

/* ---------- Album: unknown stickers ---------- */
.album-count { font-family: var(--display); color: var(--tag) !important; font-size: 1.1rem !important; margin-top: 8px !important; }
.sticker.unknown { cursor: pointer; }
.sticker.unknown .photo { background: #3a3550; }
.sticker.unknown img { filter: brightness(0) opacity(0.55); }
.sticker.unknown h3, .sticker.unknown p { color: #8a8170; }
.sticker.revealed { animation: stamp 0.45s ease-out; }
@keyframes stamp { 0% { transform: rotate(var(--r)) scale(1.25); } 60% { transform: rotate(var(--r)) scale(0.95); } }

@media (max-width: 640px) {
  .game { aspect-ratio: 3 / 4; background-size: 230% auto; background-position: 46% 42%; }
  .game-hud { left: 10px; right: 10px; }
  .game-time { left: 10px; right: 10px; top: 62px; }
  .who { width: 64px; }
  .who.coin { width: 46px; }
}
