/* ==========================================================================
   KESTREL'S PERCH (v3) — Cozy Hand-Painted p5.brush Watercolor Booth
   Warm storybook paper, chunky legible fonts, dedicated turntable corner,
   clickable Kestrel companion & big joyful tactile portals!
   ========================================================================== */

:root,
[data-theme="golden"] {
  --paper: #fbf4e6;
  --paper-card: #fffaf0;
  --paper-inset: #efe4ce;
  --ink: #2b1d15;
  --ink-soft: #5f493b;
  --ink-faint: #8c7260;
  --sketch: #3e281c;
  --coral: #d95236;
  --coral-dark: #b63d24;
  --honey: #d8962e;
  --teal: #346f80;
  --shadow-card: 0 12px 28px rgba(46, 26, 12, 0.18), 4px 4px 0 rgba(62, 40, 28, 0.18);
  --shadow-hover: 0 18px 36px rgba(46, 26, 12, 0.24), 6px 6px 0 rgba(217, 82, 54, 0.28);
}

[data-theme="night"] {
  --paper: #f4ead7;
  --paper-card: #fbf4e6;
  --paper-inset: #e5d6bc;
  --ink: #281b15;
  --ink-soft: #5c4639;
  --ink-faint: #846a59;
  --sketch: #382319;
  --coral: #df583b;
  --coral-dark: #ba4027;
  --honey: #d9952a;
  --teal: #2e6578;
  --shadow-card: 0 14px 34px rgba(18, 12, 16, 0.34), 4px 4px 0 rgba(40, 27, 21, 0.25);
  --shadow-hover: 0 20px 42px rgba(18, 12, 16, 0.42), 6px 6px 0 rgba(223, 88, 59, 0.35);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ==========================================================================
   FULL-BLEED HAND-PAINTED WATERCOLOR BACKDROP + LIVE ATMOSPHERE FX
   ========================================================================== */
.booth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #f6efe2;
}

.booth-painting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: opacity 0.65s ease;
}

.painting-golden { opacity: 1; }
.painting-night { opacity: 0; }
[data-theme="night"] .painting-golden { opacity: 0; }
[data-theme="night"] .painting-night { opacity: 1; }

#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   WARM STORYBOOK TOP BAR (Chunky, Big, Friendly!)
   ========================================================================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  gap: 0.85rem;
  pointer-events: none;
}

.top-bar > * { pointer-events: auto; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(8px);
  border: 2.5px solid var(--sketch);
  border-radius: 999px;
  padding: 0.35rem 1.1rem 0.35rem 0.42rem;
  box-shadow: 3px 3px 0 rgba(62, 40, 28, 0.22);
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-badge:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 5px 0 rgba(217, 82, 54, 0.32);
}

.brand-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--coral);
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-words strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-words small {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mood-pill {
  display: inline-flex;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(8px);
  border: 2.5px solid var(--sketch);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.2rem;
  box-shadow: 3px 3px 0 rgba(62, 40, 28, 0.2);
}

.mood-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.mood-btn.active {
  background: var(--sketch);
  color: #fffaf0;
}

.music-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--coral);
  color: #fffaf0;
  border: 2.5px solid var(--sketch);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(62, 40, 28, 0.25);
  transition: transform 0.16s, background 0.2s;
}

.music-pill:hover {
  transform: translate(-1px, -2px);
  background: var(--coral-dark);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq-bars i {
  display: block;
  width: 3px;
  height: 5px;
  background: #fffaf0;
  border-radius: 2px;
}

.music-pill.playing .eq-bars i:nth-child(1) { animation: eq 0.55s ease-in-out infinite alternate; }
.music-pill.playing .eq-bars i:nth-child(2) { animation: eq 0.4s ease-in-out 0.15s infinite alternate; }
.music-pill.playing .eq-bars i:nth-child(3) { animation: eq 0.65s ease-in-out 0.3s infinite alternate; }

@keyframes eq {
  from { height: 4px; }
  to { height: 14px; }
}

/* ==========================================================================
   INTERACTIVE WATERCOLOR STAGE (Kestrel Spot + Dedicated Turntable + Portals)
   ========================================================================== */
.booth-stage-wrap {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  transition: filter 0.3s ease, transform 0.3s ease;
}

body.drawer-open .booth-stage-wrap {
  filter: blur(4px) brightness(0.76);
  transform: scale(0.985);
}

/* 1. Clickable Kestrel-in-Headphones Companion + Playful Speech Bubble */
.kestrel-spot {
  position: absolute;
  right: 11%;
  top: 16%;
  width: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  pointer-events: auto;
}

.speech-bubble {
  position: relative;
  background: rgba(255, 251, 242, 0.96);
  border: 2.5px solid var(--sketch);
  border-radius: 22px;
  padding: 0.85rem 1.15rem;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.24rem;
  line-height: 1.28;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(62, 40, 28, 0.22);
  max-width: 295px;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -13px;
  right: 52px;
  width: 20px;
  height: 20px;
  background: rgba(255, 251, 242, 0.96);
  border-right: 2.5px solid var(--sketch);
  border-bottom: 2.5px solid var(--sketch);
  transform: rotate(45deg);
}

@keyframes popIn {
  from { transform: scale(0.9) translateY(6px); opacity: 0.5; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.kestrel-hit {
  width: 195px;
  height: 250px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.poke-pill {
  background: rgba(255, 250, 240, 0.94);
  border: 2px solid var(--sketch);
  border-radius: 999px;
  padding: 0.28rem 0.82rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(62, 40, 28, 0.24);
  transition: transform 0.18s, background 0.18s, color 0.18s;
}

.kestrel-hit:hover .poke-pill {
  transform: translateY(-3px) rotate(-2deg);
  background: var(--coral);
  color: #fffaf0;
}

/* 2. DEDICATED TURNTABLE CORNER (Left side of walnut counter, under warm lamp!) */
.turntable-corner {
  position: absolute;
  left: 2.4%;
  bottom: 3.6%;
  width: 356px;
  background: rgba(255, 250, 240, 0.93);
  backdrop-filter: blur(8px);
  border: 3px solid var(--sketch);
  border-radius: 24px;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: var(--shadow-card);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.corner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.corner-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.corner-status {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.02rem;
  color: var(--coral);
}

.turntable-deck {
  position: relative;
  height: 158px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(95deg, rgba(255, 224, 178, 0.05) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #6b3f24, #3d2111);
  border: 2.5px solid var(--sketch);
  box-shadow: inset 0 2px 0 rgba(255, 232, 195, 0.22), 0 8px 18px rgba(42, 22, 10, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s;
}

.turntable-deck:hover { transform: translateY(-2px); }

.deck-led {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 220, 175, 0.28);
  border: 1.5px solid rgba(255, 235, 200, 0.4);
  transition: background 0.3s, box-shadow 0.3s;
}

.turntable-deck.playing .deck-led {
  background: #ffaa4c;
  box-shadow: 0 0 12px #ff9233, 0 0 22px rgba(255, 146, 51, 0.8);
}

.vinyl-platter {
  width: 132px;
  height: 132px;
  margin-right: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #1d2233 0%, #121520 35%, #242b40 37%, #11141e 54%, #20273b 72%, #0e1018 94%, #d6aa54 97%, #f5d88e 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-platter.spinning .vinyl-spin {
  animation: spin33 2.4s linear infinite;
}

@keyframes spin33 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-spin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vinyl-center {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #e56242;
}

.vinyl-center img { width: 100%; height: 100%; object-fit: cover; }

.vinyl-pin {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8de, #b78a3d);
}

.arm-pivot {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5da94, #9c6f28);
  border: 2px solid #2b1a10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
}

.arm-rod {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 94px;
  background: linear-gradient(90deg, #f8e2aa, #ad7c2e);
  transform-origin: top center;
  transform: translate(-50%, 0) rotate(-4deg);
  border-radius: 3px;
  transition: transform 0.6s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.arm-rod::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -3.5px;
  width: 12px;
  height: 18px;
  border-radius: 3px;
  background: #e05236;
  transform: rotate(15deg);
}

.turntable-deck.playing .arm-rod {
  transform: translate(-50%, 0) rotate(24deg);
}

.floating-notes {
  position: absolute;
  top: 6px;
  left: 44%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.turntable-deck.playing .floating-notes { opacity: 1; }

.floating-notes span {
  position: absolute;
  color: #ffe294;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  animation: noteRise 2.2s ease-out infinite;
}
.floating-notes span:nth-child(1) { left: -24px; animation-delay: 0s; }
.floating-notes span:nth-child(2) { left: 8px; animation-delay: 0.7s; }
.floating-notes span:nth-child(3) { left: 32px; animation-delay: 1.4s; }

@keyframes noteRise {
  0% { transform: translateY(20px) scale(0.8); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-42px) translateX(12px) scale(1.15); opacity: 0; }
}

.turntable-btns {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.btn-needle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: var(--coral);
  color: #fffaf0;
  border: 2.5px solid var(--sketch);
  border-radius: 999px;
  padding: 0.56rem 1.1rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(62, 40, 28, 0.25);
  transition: transform 0.16s, background 0.18s;
}

.btn-needle:hover {
  transform: translate(-1px, -2px);
  background: var(--coral-dark);
}

.groove-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.groove-chip {
  border: 2px solid var(--sketch);
  background: var(--paper-inset);
  color: var(--ink-soft);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.36rem 0.25rem;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s, color 0.18s;
}

.groove-chip.active {
  background: #f5cd79;
  color: var(--ink);
}

/* 3. FOUR BIG, CHUNKY, PLAYFUL WATERCOLOR-POSTCARD SECTION PORTALS */
.portal-shelf {
  position: absolute;
  left: 398px;
  right: 2.4%;
  bottom: 3.6%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  pointer-events: auto;
}

.portal-card {
  background: rgba(255, 250, 240, 0.95);
  border: 3px solid var(--sketch);
  border-radius: 22px;
  padding: 0.72rem 0.72rem 0.88rem;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-family: inherit;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.2s;
}

.portal-card:hover {
  transform: translateY(-9px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--coral);
}

.portal-card:nth-child(even):hover {
  transform: translateY(-9px) rotate(1deg);
}

.portal-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--sketch);
  background: var(--paper-inset);
}

.portal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portal-card:hover .portal-thumb img { transform: scale(1.06); }

.crate-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e4c8, #e6cfab);
}

.mini-vinyl-disc {
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  right: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, #e05a3e 0 24%, #151822 26%, #242938 60%, #10121a 100%);
  transition: transform 0.35s ease;
}

.portal-card:hover .mini-vinyl-disc { transform: translateX(10px) rotate(18deg); }

.mini-sleeve-cover {
  position: relative;
  z-index: 2;
  width: 62%;
  aspect-ratio: 1;
  margin-right: 18%;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--sketch);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.portal-count {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: var(--coral);
  color: #fffaf0;
  border: 2px solid var(--sketch);
  border-radius: 999px;
  padding: 0.16rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(62, 40, 28, 0.25);
}

.portal-text h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.2rem;
  color: var(--ink);
}

.portal-text p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.12rem;
  line-height: 1.18;
  margin: 0;
  color: var(--ink-soft);
}

/* ==========================================================================
   COZY CREAM WATERCOLOR-PAPER DRAWERS (Warm, Big, Joyful!)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(34, 22, 16, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  left: 50%;
  top: 5.2rem;
  bottom: 1.4rem;
  width: min(1160px, calc(100vw - 2rem));
  transform: translate(-50%, 30px) scale(0.98);
  z-index: 40;
  background: var(--paper);
  border: 3px solid var(--sketch);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(32, 18, 10, 0.38), 8px 8px 0 rgba(62, 40, 28, 0.22);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
  overflow: hidden;
}

.drawer.open {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.8rem;
  background: var(--paper-card);
  border-bottom: 2.5px dashed rgba(62, 40, 28, 0.24);
  gap: 1rem;
  flex-shrink: 0;
}

.drawer-tag {
  display: block;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: var(--coral);
  margin-bottom: 0.1rem;
}

.drawer-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  margin: 0;
  line-height: 1.08;
}

.btn-back {
  border: 2.5px solid var(--sketch);
  background: var(--paper-inset);
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.54rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 rgba(62, 40, 28, 0.18);
  transition: transform 0.16s, background 0.18s, color 0.18s;
}

.btn-back:hover {
  transform: translate(-1px, -2px);
  background: var(--coral);
  color: #fffaf0;
}

.drawer-body {
  padding: 1.5rem 1.8rem 2.2rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 82, 54, 0.45) transparent;
}

.drawer-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 1.45rem;
  max-width: 66ch;
  line-height: 1.5;
}

/* Arcade Cards */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.arcade-card {
  grid-column: span 4;
  background: var(--paper-card);
  border: 2.5px solid var(--sketch);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 0 rgba(62, 40, 28, 0.16);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.arcade-card:nth-child(1),
.arcade-card:nth-child(2) { grid-column: span 6; }
.arcade-card:hover { transform: translateY(-4px); border-color: var(--coral); box-shadow: 6px 6px 0 rgba(217, 82, 54, 0.28); }

.arcade-thumb-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px solid var(--sketch); }
.arcade-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.arcade-card:hover .arcade-thumb-wrap img { transform: scale(1.04); }
.arcade-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255, 250, 240, 0.94); color: var(--ink);
  border: 2px solid var(--sketch); border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.65rem;
}
.arcade-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.arcade-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; margin: 0 0 0.18rem; }
.arcade-sub { font-family: 'Patrick Hand', cursive; font-size: 1.14rem; color: var(--coral); margin: 0 0 0.55rem; }
.arcade-desc { font-size: 0.98rem; color: var(--ink-soft); margin: 0 0 1rem; line-height: 1.45; flex: 1; }
.arcade-cta {
  display: inline-flex; align-self: flex-start;
  background: #f5cd79; color: var(--ink); border: 2px solid var(--sketch);
  border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.9rem; font-weight: 700;
}

/* Record Crate inside Drawer */
.booth-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem; }
.filter-pill {
  border: 2px solid var(--sketch); background: var(--paper-card); color: var(--ink);
  font-family: 'Fredoka', sans-serif; font-size: 0.94rem; font-weight: 600;
  padding: 0.44rem 1rem; border-radius: 999px; cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.filter-pill.active, .filter-pill:hover { background: var(--coral); color: #fffaf0; transform: translateY(-1px); }

.booth-stage {
  display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 1.7rem;
  background: var(--paper-card); border: 2.5px solid var(--sketch); border-radius: 22px;
  padding: 1.4rem; margin-bottom: 1.5rem; align-items: center;
  box-shadow: 4px 4px 0 rgba(62, 40, 28, 0.16);
}
.stage-sleeve-wrap { position: relative; width: 186px; height: 186px; }
.stage-disc {
  position: absolute; top: 6px; right: -34px; width: 174px; height: 174px; border-radius: 50%;
  background: radial-gradient(circle, #e05236 0 24%, #151822 25%, #232838 52%, #0e1017 100%);
  transition: transform 0.35s ease;
}
.booth-stage:hover .stage-disc { transform: translateX(12px) rotate(14deg); }
.stage-sleeve {
  position: relative; z-index: 2; width: 186px; height: 186px; border-radius: 12px;
  overflow: hidden; border: 2.5px solid var(--sketch); box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}
.stage-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-bottom: 0.4rem; }
.score-stamp { background: var(--coral); color: #fffaf0; border: 2px solid var(--sketch); font-size: 0.95rem; font-weight: 700; padding: 0.2rem 0.72rem; border-radius: 999px; }
.stage-tag { font-family: 'Patrick Hand', cursive; font-size: 1.12rem; color: var(--ink-faint); }
.stage-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.78rem; margin: 0 0 0.15rem; line-height: 1.12; }
.stage-artist { font-family: 'Patrick Hand', cursive; font-size: 1.32rem; color: var(--teal); margin: 0 0 0.6rem; }
.stage-highlight { display: inline-block; font-size: 0.9rem; font-weight: 600; background: #fae5b6; border: 1.5px solid var(--sketch); color: var(--ink); padding: 0.28rem 0.78rem; border-radius: 10px; margin-bottom: 0.75rem; }
.stage-review { margin: 0; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.52; max-width: 64ch; }

.crate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1rem; }
.record-tile {
  background: var(--paper-card); border: 2.5px solid var(--sketch); border-radius: 16px;
  padding: 0.68rem; cursor: pointer; text-align: left; color: inherit; font-family: inherit;
  display: flex; flex-direction: column; gap: 0.55rem;
  box-shadow: 3px 3px 0 rgba(62, 40, 28, 0.14); transition: transform 0.18s, border-color 0.18s;
}
.record-tile:hover, .record-tile.active { transform: translateY(-3px); border-color: var(--coral); }
.sleeve-art { width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; border: 2px solid var(--sketch); }
.sleeve-art svg { width: 100%; height: 100%; display: block; }
.record-num { position: absolute; top: 6px; left: 6px; font-size: 0.78rem; font-weight: 700; background: rgba(255,250,240,0.92); color: var(--ink); border: 1.5px solid var(--sketch); padding: 0.1rem 0.44rem; border-radius: 999px; }
.record-score { position: absolute; bottom: 6px; right: 6px; font-size: 0.8rem; font-weight: 700; background: var(--coral); color: #fffaf0; border: 1.5px solid var(--sketch); padding: 0.1rem 0.44rem; border-radius: 999px; }
.record-track { font-weight: 700; font-size: 0.98rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.record-artist { font-family: 'Patrick Hand', cursive; font-size: 1rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Studio Gallery inside Drawer */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery-card {
  background: var(--paper-card); border: 2.5px solid var(--sketch); border-radius: 18px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  box-shadow: 4px 4px 0 rgba(62, 40, 28, 0.16); transition: transform 0.2s, border-color 0.2s;
}
.gallery-card:hover { transform: translateY(-4px); border-color: var(--coral); }
.gallery-img-wrap { aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 2px solid var(--sketch); }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.04); }
.gallery-plaque { padding: 1rem 1.15rem 1.2rem; }
.gallery-num { font-family: 'Patrick Hand', cursive; font-size: 1.05rem; color: var(--coral); }
.gallery-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.28rem; margin: 0.1rem 0 0.22rem; line-height: 1.18; }
.gallery-medium { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* About & Field Notes inside Drawer */
.about-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center;
  background: var(--paper-card); border: 2.5px solid var(--sketch); border-radius: 22px;
  padding: 1.5rem; margin-bottom: 1.4rem; box-shadow: 4px 4px 0 rgba(62, 40, 28, 0.16);
}
.about-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--coral); }
.about-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.65rem; margin: 0 0 0.35rem; }
.pronouns { font-family: 'Patrick Hand', cursive; font-size: 1.2rem; color: var(--teal); font-weight: 400; }
.about-card p { margin: 0 0 0.9rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; max-width: 62ch; }
.about-links { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.link-pill {
  background: var(--coral); color: #fffaf0; border: 2px solid var(--sketch);
  border-radius: 999px; padding: 0.44rem 1.05rem; font-size: 0.94rem; font-weight: 600;
}
.link-pill.secondary { background: #f5cd79; color: var(--ink); }

.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.note-card {
  background: var(--paper-card); border: 2.5px solid var(--sketch); border-radius: 18px;
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem;
  box-shadow: 4px 4px 0 rgba(62, 40, 28, 0.14); transition: transform 0.18s, border-color 0.18s;
}
.note-card:hover { transform: translateY(-3px); border-color: var(--coral); }
.note-tag { font-family: 'Patrick Hand', cursive; font-size: 1.08rem; color: var(--coral); }
.note-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.34rem; margin: 0; line-height: 1.2; }
.note-excerpt { color: var(--ink-soft); font-size: 0.98rem; margin: 0; line-height: 1.45; flex: 1; }
.note-link { font-size: 0.92rem; font-weight: 700; color: var(--teal); margin-top: 0.3rem; }

/* Full-Res Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(34, 22, 16, 0.85);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 1.4rem;
}
.lightbox.open { display: flex; }
.lightbox-panel {
  background: var(--paper); color: var(--ink); border: 3px solid var(--sketch); border-radius: 24px;
  max-width: 1040px; width: 100%; max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr); position: relative;
}
.lightbox-media { background: #1e1612; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lightbox-media img { max-height: 82vh; width: auto; border-radius: 10px; }
.lightbox-info { padding: 1.7rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
.lightbox-info h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.75rem; margin: 0; line-height: 1.15; }
.lb-medium { font-family: 'Patrick Hand', cursive; font-size: 1.15rem; color: var(--teal); }
.lb-blurb { margin: 0; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.5; }
.lightbox-close {
  position: absolute; top: 0.85rem; right: 0.85rem; width: 40px; height: 40px; border-radius: 50%;
  border: 2.5px solid var(--sketch); background: var(--paper-card); color: var(--ink); font-size: 1.35rem; cursor: pointer; z-index: 5;
}
.lb-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.4rem; }
.lb-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

/* ==========================================================================
   RESPONSIVE TABLET & MOBILE (Cozy, Scrollable, Zero Overlap!)
   ========================================================================== */
@media (max-width: 1180px) {
  .turntable-corner { width: 310px; }
  .portal-shelf { left: 344px; gap: 0.75rem; }
  .portal-text h2 { font-size: 1.18rem; }
  .portal-text p { font-size: 1rem; }
}

@media (max-width: 960px) {
  html, body { overflow-y: auto; height: auto; min-height: 100%; }
  .booth-stage-wrap {
    position: relative;
    min-height: 100vh;
    padding: 5.5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    pointer-events: auto;
  }
  .kestrel-spot {
    position: relative;
    right: auto; top: auto;
    width: 100%;
    align-items: center;
  }
  .speech-bubble { max-width: 100%; text-align: center; }
  .speech-bubble::after { display: none; }
  .kestrel-hit { height: auto; width: auto; padding: 0; }
  .turntable-corner {
    position: relative;
    left: auto; bottom: auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .portal-shelf {
    position: relative;
    left: auto; right: auto; bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }
  .arcade-card, .arcade-card:nth-child(1), .arcade-card:nth-child(2) { grid-column: span 12; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-bar { padding: 0.65rem 0.75rem; gap: 0.45rem; }
  .brand-words small { display: none; }
  .brand-words strong { font-size: 1.05rem; }
  .brand-pic { width: 34px; height: 34px; }
  .brand-badge { padding: 0.25rem 0.72rem 0.25rem 0.3rem; gap: 0.45rem; }
  .mood-btn { padding: 0.32rem 0.56rem; font-size: 0.78rem; }
  .music-pill { padding: 0.44rem 0.65rem; }
  #top-music-label { display: none; }
  .drawer { top: 4.3rem; bottom: 0.75rem; width: calc(100vw - 0.9rem); border-radius: 22px; }
  .drawer-head { padding: 0.95rem 1.1rem; }
  .drawer-body { padding: 1.05rem 1.1rem 1.6rem; }
  .booth-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .stage-meta { justify-content: center; }
  .gallery-grid, .notes-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about-links { justify-content: center; }
}
