*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f2ee;
  --ink: #1a1714;
  --mid: #9a9188;
  --rule: #ddd8d0;
  --playing-bg: #ede6ec;
  --theme-accent: #d4a5a5;
  --theme-light: #e8dfe0;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  min-height: 100vh;
  position: relative;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.7) brightness(1.2);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}

.bg-video.hidden {
  opacity: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 32px 140px;
  background: rgba(245, 242, 238, 0.24);
  transition: --theme-accent 0.4s ease, --theme-light 0.4s ease;
}

.site-title {
  text-align: center;
  font-size: 3rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeDown 0.7s ease 0.1s forwards;
}

.top-nav {
  position: absolute;
  top: 26px; right: 26px;
  display: flex;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  animation: fadeDown 0.7s ease 0.15s forwards;
}

.nav-link {
  font-size: 0.7rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--theme-accent);
  background: none;
  border: 1px solid var(--theme-accent);
  border-radius: 20px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.nav-link:hover { background: var(--theme-accent); color: #f5f2ee; transform: translateY(-1px); }
.nav-link:active { transform: translateY(0) scale(0.96); }

.stream-links {
  display: none;
  justify-content: center;
  gap: 22px;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.3s forwards;
}
.stream-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.stream-links a:hover { color: var(--ink); }

.tracklist { list-style: none; }

.track {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  padding: 16px 10px;
  border-radius: 3px;
  position: relative;
  user-select: none;
  transition: background 0.25s ease;
  opacity: 0;
  transform: translateY(8px);
}
.track:nth-child(1)  { animation: fadeUp 0.5s ease 0.35s forwards; }
.track:nth-child(2)  { animation: fadeUp 0.5s ease 0.42s forwards; }
.track:nth-child(3)  { animation: fadeUp 0.5s ease 0.49s forwards; }
.track:nth-child(4)  { animation: fadeUp 0.5s ease 0.56s forwards; }
.track:nth-child(5)  { animation: fadeUp 0.5s ease 0.63s forwards; }
.track:nth-child(6)  { animation: fadeUp 0.5s ease 0.70s forwards; }
.track:nth-child(7)  { animation: fadeUp 0.5s ease 0.77s forwards; }
.track:nth-child(8)  { animation: fadeUp 0.5s ease 0.84s forwards; }
.track:nth-child(9)  { animation: fadeUp 0.5s ease 0.91s forwards; }
.track:nth-child(10) { animation: fadeUp 0.5s ease 0.98s forwards; }
.track:nth-child(11) { animation: fadeUp 0.5s ease 1.05s forwards; }
.track:nth-child(12) { animation: fadeUp 0.5s ease 1.12s forwards; }

.tracklist li:last-child { border-bottom: 1px solid var(--rule); }
.track:hover { background: #ece7e0; }
.track.playing { background: var(--playing-bg); }

.track-num {
  font-size: 0.68rem;
  color: var(--mid);
  width: 30px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
  font-style: italic;
  transition: color 0.3s;
}
.track.playing .track-num { color: var(--ink); }

.track-icon {
  width: 22px;
  flex-shrink: 0;
  margin-right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.25s;
}
.bars span {
  display: block;
  width: 3px;
  background: var(--ink);
  border-radius: 2px;
}
.bars span:nth-child(1) { height: 8px; }
.bars span:nth-child(2) { height: 12px; }
.bars span:nth-child(3) { height: 6px; }
.track.playing .bars { opacity: 1; }
.track.playing.is-playing .bars span:nth-child(1) { animation: bar 0.7s ease-in-out infinite alternate; }
.track.playing.is-playing .bars span:nth-child(2) { animation: bar 0.5s ease-in-out 0.1s infinite alternate; }
.track.playing.is-playing .bars span:nth-child(3) { animation: bar 0.9s ease-in-out 0.2s infinite alternate; }

.track-title {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: letter-spacing 0.3s, opacity 0.3s;
  opacity: 0.85;
}
.track.playing .track-title { letter-spacing: 0.03em; opacity: 1; }

.track-duration {
  font-size: 0.7rem;
  color: var(--mid);
  font-style: italic;
  margin-left: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.track-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: var(--ink);
  width: 0%;
  transition: width 0.15s linear;
}

/* ── Player bar ── */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  z-index: 100;
}
.player-bar.visible { transform: translateY(0); }

.pb-title {
  flex: 1;
  font-size: 1rem;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 0.9;
}
.pb-title:hover { opacity: 1; }

.pb-btn {
  background: none;
  border: none;
  color: var(--bg);
  cursor: pointer;
  padding: 6px;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
}
.pb-btn:hover { opacity: 1; transform: scale(1.1); }
.pb-btn:active { transform: scale(0.95); }

.pb-playpause {
  background: none;
  border: 1px solid rgba(245,242,238,0.25);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--bg);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.pb-playpause:hover {
  border-color: rgba(245,242,238,0.7);
  background: rgba(245,242,238,0.08);
  transform: scale(1.08);
}
.pb-playpause:active { transform: scale(0.94); }
.pb-playpause svg { width: 14px; height: 14px; fill: var(--bg); }

.pb-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 1px;
  background: #3a3530;
  outline: none;
  cursor: pointer;
  border-radius: 1px;
  flex-shrink: 0;
}
.pb-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px; height: 9px;
  background: var(--bg);
  border-radius: 50%;
  transition: transform 0.15s;
}
.pb-volume:hover::-webkit-slider-thumb { transform: scale(1.4); }

.pb-time {
  font-size: 0.65rem;
  opacity: 0.4;
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}

.pb-art-btn {
  background: none;
  border: 1px solid rgba(245, 242, 238, 0.35);
  border-radius: 3px;
  color: var(--bg);
  cursor: pointer;
  opacity: 0.55;
  padding: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s;
  flex-shrink: 0;
}
.pb-art-btn:hover {
  opacity: 1;
  border-color: rgba(245, 242, 238, 0.7);
  transform: scale(1.08);
}
.pb-art-btn:active { transform: scale(0.94); }

/* ════════════════════════════════
   ALBUM SELECTOR
════════════════════════════════ */
.album-selector {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.25s forwards;
}

.album-btn {
  background: none;
  border: 2px solid var(--theme-accent);
  border-radius: 6px;
  padding: 12px 28px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.album-btn:hover {
  background: rgba(212, 165, 165, 0.1);
  transform: translateY(-2px);
}

.album-btn.active {
  background: var(--theme-accent);
  color: #f5f2ee;
  font-weight: 500;
}

/* ════════════════════════════════
   THEME COLORS
════════════════════════════════ */
html.theme-red {
  --theme-accent: #d4a5a5;
  --theme-light: #e8dfe0;
}

html.theme-blue {
  --theme-accent: #a5c8d4;
  --theme-light: #dce8f0;
}

/* ════════════════════════════════
   LYRIC ART MODAL
════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,8,6,0);
  transition: background 0.45s ease;
  pointer-events: none;
}
.modal-overlay.open {
  background: rgba(10,8,6,0.9);
  pointer-events: all;
}

/* outer frame — handles scale/fade */
.modal {
  position: relative;
  width: min(90vw, 500px);
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.modal-overlay.open .modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* inner image wrapper — this is what parallax moves */
.modal-img-wrap {
  position: absolute;
  /* slightly larger than container so parallax has room */
  inset: -24px;
  will-change: transform;
  transition: transform 0.08s linear;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
  display: block;
}
.modal-overlay.open .modal-img { opacity: 1; }

.modal-placeholder {
  position: absolute;
  inset: 0;
  background: #0d0b09;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: rgba(245,242,238,0.1);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

/* controls gradient bar at bottom */
.modal-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 6;
  padding: 28px 22px 20px;
  background: linear-gradient(transparent, rgba(10,8,6,0.75));
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}
.modal-overlay.open .modal-controls {
  opacity: 1;
  transform: translateY(0);
}

.modal-seek {
  position: absolute;
  top: 0; left: 0; right: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(245,242,238,0.18);
  outline: none;
  cursor: pointer;
}
.modal-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 10px;
  background: #f5f2ee;
  border-radius: 50%;
}

.modal-info { flex: 1; min-width: 0; }
.modal-track-title {
  font-size: 0.88rem;
  font-style: italic;
  color: #f5f2ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.025em;
  opacity: 0.95;
}
.modal-track-time {
  font-size: 0.58rem;
  color: rgba(245,242,238,0.38);
  margin-top: 3px;
  letter-spacing: 0.07em;
}

.modal-btn {
  background: none;
  border: none;
  color: #f5f2ee;
  cursor: pointer;
  padding: 6px;
  opacity: 0.6;
  transition: opacity 0.18s, transform 0.13s;
  display: flex;
  flex-shrink: 0;
}
.modal-btn:hover { opacity: 1; transform: scale(1.12); }
.modal-btn:active { transform: scale(0.9); }

.modal-playpause {
  background: none;
  border: 1px solid rgba(245,242,238,0.3);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #f5f2ee;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.13s, background 0.2s;
}
.modal-playpause:hover {
  border-color: rgba(245,242,238,0.75);
  background: rgba(245,242,238,0.08);
  transform: scale(1.08);
}
.modal-playpause:active { transform: scale(0.92); }
.modal-playpause svg { width: 15px; height: 15px; fill: #f5f2ee; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 7;
  background: rgba(10,8,6,0.45);
  border: 1px solid rgba(245,242,238,0.15);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #f5f2ee;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s ease 0.25s, background 0.2s, transform 0.13s;
}
.modal-overlay.open .modal-close { opacity: 1; }
.modal-close:hover { background: rgba(10,8,6,0.7); transform: scale(1.08); }
.modal-close:active { transform: scale(0.9); }

/* ════════════════════════════════
   LYRICS PANEL (lives inside the square art modal)
════════════════════════════════ */
.lyrics-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: var(--controls-h, 88px);
  z-index: 5;
  background: rgba(10,8,6,0.16);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lyrics-panel.open {
  opacity: 1;
  pointer-events: all;
}

.lyrics-container {
  padding: 0 32px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: opacity 0.22s ease;
}
.lyrics-container::-webkit-scrollbar { display: none; }

.lyric-line {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--theme-accent);
  text-align: center;
  font-style: italic;
  transition: opacity 0.35s ease, filter 0.35s ease, font-weight 0.3s ease, text-shadow 0.3s ease;
}

.lyric-line.active {
  font-weight: 500;
  text-shadow: 0 0 6px var(--theme-accent), 0 0 14px var(--theme-accent);
}

/* ════════════════════════════════
   SHARED "GLASS" MODAL — casino + store
   Same treatment as the lyrics panel: translucent, heavily
   blurred background, with a beveled/embossed edge.
════════════════════════════════ */
.glass-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,8,6,0);
  transition: background 0.45s ease;
  pointer-events: none;
}
.glass-overlay.open { background: rgba(10,8,6,0.75); pointer-events: all; }

.glass-modal {
  position: relative;
  width: min(92vw, 460px);
  max-height: min(88vh, 680px);
  background: rgba(16,13,10,0.38);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
  /* beveled edge: outer rim + inner highlight/shadow ring */
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(245,242,238,0.12),
    inset 0 2px 1px rgba(255,255,255,0.14),
    inset 0 -2px 2px rgba(0,0,0,0.45),
    inset 0 0 40px rgba(0,0,0,0.25),
    0 24px 70px rgba(0,0,0,0.55);
}
.glass-overlay.open .glass-modal { opacity: 1; transform: scale(1) translateY(0); }

.glass-modal .modal-close { position: absolute; top: 14px; right: 14px; z-index: 20; }
.glass-overlay.open .modal-close { opacity: 1; }

/* ════════════════════════════════
   CASINO
════════════════════════════════ */
.leaderboard-strip {
  overflow: hidden;
  border-bottom: 1px solid rgba(245,242,238,0.1);
  background: rgba(0,0,0,0.15);
  padding: 8px 0;
  flex-shrink: 0;
}
.leaderboard-track {
  display: flex;
  width: max-content;
  gap: 30px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  color: var(--theme-accent);
  text-shadow: 0 0 8px rgba(0,0,0,0.4);
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.leaderboard-track span { opacity: 0.9; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.casino-body, .store-body {
  padding: 22px 24px 22px;
  overflow-y: auto;
  color: #f5f2ee;
}

.casino-title {
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 20px;
  color: #f5f2ee;
}

.casino-field {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: none;
  border-bottom: 1px solid rgba(245,242,238,0.25);
  color: #f5f2ee;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  padding: 9px 8px;
  margin-bottom: 14px;
  outline: none;
  border-radius: 3px 3px 0 0;
  transition: border-color 0.2s;
}
.casino-field::placeholder { color: rgba(245,242,238,0.35); }
.casino-field:focus { border-color: var(--theme-accent); }

.casino-btn {
  display: block;
  width: 100%;
  background: var(--theme-accent);
  color: #1a1714;
  border: none;
  border-radius: 22px;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 11px 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -1px 2px rgba(0,0,0,0.2);
  transition: opacity 0.2s, transform 0.15s;
}
.casino-btn:hover { opacity: 0.88; }
.casino-btn:active { transform: scale(0.97); }
.casino-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.casino-btn.small { display: inline-block; width: auto; padding: 8px 18px; font-size: 0.85rem; }

.casino-switch {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(245,242,238,0.5);
}
.casino-switch a { color: var(--theme-accent); cursor: pointer; text-decoration: underline; }

.casino-error {
  color: #e08585;
  font-size: 0.78rem;
  text-align: center;
  margin: -6px 0 14px;
  min-height: 1em;
}

.casino-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.casino-user { font-style: italic; font-size: 0.95rem; opacity: 0.85; }
.casino-logout { background: none; border: none; color: rgba(245,242,238,0.45); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.casino-logout:hover { color: #f5f2ee; }

.casino-balance {
  text-align: center;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--theme-accent);
  text-shadow: 0 0 10px var(--theme-accent);
  margin-bottom: 16px;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.casino-tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.casino-tabs::-webkit-scrollbar { display: none; }
.casino-tab {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(245,242,238,0.15);
  color: rgba(245,242,238,0.6);
  border-radius: 14px;
  padding: 7px 14px;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.76rem;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.casino-tab.active { color: #f5f2ee; border-color: var(--theme-accent); background: rgba(245,242,238,0.08); }

.game-panel { display: none; }
.game-panel.active { display: block; }

.casino-bet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.casino-bet-row span.label { font-size: 0.72rem; color: rgba(245,242,238,0.5); letter-spacing: 0.06em; text-transform: uppercase; }
.casino-chip-btn {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(245,242,238,0.3);
  color: #f5f2ee;
  border-radius: 16px;
  padding: 5px 14px;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.casino-chip-btn.active, .casino-chip-btn:hover { border-color: var(--theme-accent); background: rgba(245,242,238,0.1); }

.casino-message {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  min-height: 1.4em;
  margin-bottom: 14px;
  color: rgba(245,242,238,0.6);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.casino-message.win { color: var(--theme-accent); text-shadow: 0 0 8px var(--theme-accent); }

.slot-reels { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.slot-reel {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(245,242,238,0.15);
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

/* playing cards (blackjack + video poker) */
.card-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.card-label { text-align: center; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,242,238,0.45); margin: 4px 0 6px; }
.playing-card {
  width: 42px; height: 60px;
  background: #f5f2ee;
  color: #1a1714;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.playing-card.red { color: #b23a3a; }
.playing-card.back {
  background: repeating-linear-gradient(45deg, var(--theme-accent), var(--theme-accent) 4px, #1a1714 4px, #1a1714 8px);
}
.action-row { display: flex; gap: 8px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }

.vp-card-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.vp-hold-label { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--theme-accent); opacity: 0; }
.vp-card-wrap.held .vp-hold-label { opacity: 1; }
.vp-card-wrap.held .playing-card { outline: 2px solid var(--theme-accent); }
.vp-paytable {
  font-size: 0.66rem;
  color: rgba(245,242,238,0.4);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.7;
}

/* roulette */
.roulette-result-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.roulette-result {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 600;
  border: 2px solid rgba(245,242,238,0.25);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.roulette-result.red { background: #7a2626; color: #fff; }
.roulette-result.black { background: #16130f; color: #fff; }
.roulette-result.green { background: #1e6b3a; color: #fff; }
.roulette-bets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.roulette-bet-btn {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(245,242,238,0.3);
  color: #f5f2ee;
  border-radius: 14px;
  padding: 5px 12px;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.roulette-bet-btn.active { border-color: var(--theme-accent); background: rgba(245,242,238,0.1); }
.roulette-number-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-bottom: 14px; }
.roulette-num-btn {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(245,242,238,0.15);
  color: #f5f2ee;
  font-size: 0.62rem;
  padding: 5px 0;
  border-radius: 3px;
  cursor: pointer;
}
.roulette-num-btn.active { border-color: var(--theme-accent); background: rgba(245,242,238,0.12); }

/* plinko */
.plinko-board { position: relative; height: 210px; margin-bottom: 16px; background: rgba(0,0,0,0.18); border-radius: 8px; overflow: hidden; }
.plinko-peg { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(245,242,238,0.28); }
.plinko-ball {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--theme-accent);
  box-shadow: 0 0 8px var(--theme-accent);
  transition: left 0.22s ease, top 0.22s ease;
}
.plinko-buckets { display: flex; position: absolute; bottom: 0; left: 0; right: 0; height: 26px; }
.plinko-bucket {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  border-left: 1px solid rgba(245,242,238,0.1);
  color: rgba(245,242,238,0.6);
}

/* keno */
.keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 14px; }
.keno-num-btn {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(245,242,238,0.15);
  color: #f5f2ee;
  font-size: 0.68rem;
  padding: 7px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.keno-num-btn.picked { border-color: var(--theme-accent); background: rgba(245,242,238,0.12); }
.keno-num-btn.hit { background: var(--theme-accent); color: #1a1714; border-color: var(--theme-accent); }
.keno-num-btn.miss { opacity: 0.35; }

/* dice */
.dice-target-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.dice-target-row input[type="range"] { width: 140px; }
.dice-readout { font-style: italic; font-size: 1.4rem; text-align: center; margin-bottom: 10px; color: #f5f2ee; }
.dice-toggle-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }

/* rewards */
.rewards-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.reward-item {
  border: 1px solid rgba(245,242,238,0.15);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.12);
}
.reward-code { font-family: monospace; color: var(--theme-accent); letter-spacing: 0.05em; }
.rewards-empty { text-align: center; font-size: 0.82rem; color: rgba(245,242,238,0.45); font-style: italic; padding: 10px 0; }

.prize-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(16,13,10,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--theme-accent);
  color: #f5f2ee;
  padding: 14px 22px;
  border-radius: 10px;
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(0,0,0,0.5);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.prize-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════
   STORE (Shopify)
════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.product-card {
  border: 1px solid rgba(245,242,238,0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.15);
}
.product-slideshow { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #0d0b09; }
.product-slideshow img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.product-slideshow img.active { opacity: 1; }
.product-info { padding: 10px 12px 4px; }
.product-name { font-style: italic; font-size: 0.85rem; color: #f5f2ee; }
.product-price { font-size: 0.72rem; color: rgba(245,242,238,0.5); margin-top: 2px; }
.product-buy-slot { padding: 8px 12px 12px; }
.product-buy-slot .buy-placeholder {
  font-size: 0.68rem;
  color: rgba(245,242,238,0.4);
  text-align: center;
  border: 1px dashed rgba(245,242,238,0.25);
  border-radius: 20px;
  padding: 7px 0;
}
.store-note {
  font-size: 0.74rem;
  color: rgba(245,242,238,0.45);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}
.store-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.store-tabs .casino-tab { flex: 1; text-align: center; }

@keyframes fadeDown { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes bar { from { height: 4px; } to { height: 14px; } }

@media (max-width: 500px) {
  .page { padding: 60px 20px 130px; }
  .site-title { font-size: 2.2rem; }
  .pb-seek { width: 60px; }
  .pb-time { display: none; }
  .modal { width: 96vw; }
  .product-grid { grid-template-columns: 1fr; }
  .top-nav { position: static; justify-content: center; margin-bottom: 20px; animation: fadeUp 0.5s ease 0.2s forwards; }
}
