/* =============================================================
   zone-art.css — CSS Art Gallery zone styles
   Zone 3 · Accent #f472b6
   ============================================================= */

/* ── Zone Tokens ────────────────────────────────────────────── */
:root {
  --zone-accent:   #f472b6;
  --zone-accent-2: #a78bfa;
  --zone-accent-3: #38bdf8;
  --zone-glow:     oklch(0.64 0.3 340 / 0.35);
  --zone-surface:  oklch(13% 0.015 265);
}

/* ── Page Shell ─────────────────────────────────────────────── */
.zone-page {
  background: var(--color-base);
  overflow-x: hidden;
}

/* ── Top Nav ────────────────────────────────────────────────── */
.zone-header {
  position: sticky;
  top: 0;
  z-index: var(--z-overlay);
  background: oklch(8% 0.01 265 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.zone-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-md);
}

.nav-back,
.nav-hub {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  transition: color var(--duration-fast) var(--ease-out);
  letter-spacing: 0.02em;
}

.nav-back:hover,
.nav-hub:hover {
  color: var(--zone-accent);
}

.nav-back-arrow {
  font-size: 1.1em;
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav-back:hover .nav-back-arrow {
  transform: translateX(-3px);
}

/* ── Acts ───────────────────────────────────────────────────── */
.act {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.act-label {
  color: var(--zone-accent);
  display: block;
  margin-bottom: var(--space-sm);
}

/* ── Hero Act ───────────────────────────────────────────────── */
.act-hero {
  padding-top: clamp(4rem, 10vw, 8rem);
}

.zone-label-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.zone-symbol {
  color: var(--zone-accent);
  font-size: var(--text-md);
  animation: zone-pulse 3s ease-in-out infinite;
}

@keyframes zone-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.zone-label {
  color: var(--zone-accent);
}

.zone-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--zone-accent) 60%, var(--zone-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.zone-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ── Gallery Grid ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--color-border);
  border: 2px solid var(--color-border);
  max-width: 1200px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.art-frame {
  background: var(--zone-surface);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-slow) var(--ease-out),
              z-index 0ms;
  position: relative;
  overflow: hidden;
}

.art-frame:hover {
  z-index: 2;
  transform: scale(1.03);
  box-shadow: 0 0 0 2px var(--zone-accent), 0 24px 60px var(--zone-glow);
}

.art-canvas {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: oklch(10% 0.01 265);
}

.art-caption {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.art-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
}

.art-technique {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--zone-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* =============================================================
   CSS ART PIECE 1 — GOLDEN HOUR SUNSET
   ============================================================= */
.css-sunset {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #0a0520 0%,
    #1a0840 10%,
    #4a0e5e 25%,
    #8b1a6b 40%,
    #c73060 55%,
    #f07036 70%,
    #f5a623 82%,
    #fce38a 90%,
    #fff9c4 100%
  );
}

.sunset-sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 68%,
    rgba(255, 230, 100, 0.6) 0%,
    rgba(250, 100, 50, 0.3) 30%,
    transparent 70%
  );
}

.sunset-sun {
  position: absolute;
  width: 60px;
  height: 60px;
  bottom: 42%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff9c4 20%, #ffe066 50%, #f5a623 75%, transparent 100%);
  box-shadow:
    0 0 20px 10px rgba(255, 220, 60, 0.8),
    0 0 60px 30px rgba(255, 140, 30, 0.5),
    0 0 100px 60px rgba(250, 80, 30, 0.3);
  animation: sunset-sun-pulse 4s ease-in-out infinite;
}

@keyframes sunset-sun-pulse {
  0%, 100% { box-shadow: 0 0 20px 10px rgba(255,220,60,0.8), 0 0 60px 30px rgba(255,140,30,0.5), 0 0 100px 60px rgba(250,80,30,0.3); }
  50%       { box-shadow: 0 0 30px 15px rgba(255,230,80,0.9), 0 0 80px 40px rgba(255,160,40,0.6), 0 0 130px 80px rgba(250,100,40,0.4); }
}

.sunset-reflection {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 42%;
  background: linear-gradient(180deg, rgba(255,200,50,0.9) 0%, rgba(255,160,30,0.5) 50%, transparent 100%);
  border-radius: 50% 50% 0 0;
}

.sunset-mountain--far {
  position: absolute;
  bottom: 30%;
  left: 0; right: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 130px solid transparent;
  border-bottom: 90px solid #2d1b47;
  margin: 0 auto;
  clip-path: none;
  /* use after for second peak */
}

.sunset-mountain--far::before {
  content: '';
  position: absolute;
  bottom: -90px;
  left: -250px;
  width: 0; height: 0;
  border-left: 160px solid transparent;
  border-right: 140px solid transparent;
  border-bottom: 80px solid #220f3a;
}

.sunset-mountain--far::after {
  content: '';
  position: absolute;
  bottom: -90px;
  right: -270px;
  width: 0; height: 0;
  border-left: 140px solid transparent;
  border-right: 160px solid transparent;
  border-bottom: 75px solid #1a0b2e;
}

.sunset-mountain--near {
  position: absolute;
  bottom: 30%;
  left: 0; right: 0;
  height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 140px solid #12072a;
  margin: 0 auto;
}

.sunset-mountain--near::before {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -260px;
  width: 0; height: 0;
  border-left: 180px solid transparent;
  border-right: 160px solid transparent;
  border-bottom: 120px solid #0e0520;
}

.sunset-mountain--near::after {
  content: '';
  position: absolute;
  bottom: -140px;
  right: -280px;
  width: 0; height: 0;
  border-left: 160px solid transparent;
  border-right: 180px solid transparent;
  border-bottom: 115px solid #0a0318;
}

.sunset-water {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 30%;
  background: linear-gradient(
    180deg,
    #1a0840 0%,
    #0e0520 60%,
    #050210 100%
  );
}

.sunset-ripple {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background: rgba(255, 180, 60, 0.4);
  border-radius: 50%;
  animation: ripple-spread 3s ease-out infinite;
}

.sunset-ripple--1 { bottom: 12%; width: 40px; animation-delay: 0s; }
.sunset-ripple--2 { bottom: 16%; width: 80px; animation-delay: 0.8s; }
.sunset-ripple--3 { bottom: 21%; width: 130px; animation-delay: 1.6s; }

@keyframes ripple-spread {
  0%   { opacity: 0.7; transform: translateX(-50%) scaleX(0.5); }
  100% { opacity: 0;   transform: translateX(-50%) scaleX(1.5); }
}

/* =============================================================
   CSS ART PIECE 2 — GEOMETRIC FOX
   ============================================================= */
.css-fox {
  width: 200px;
  height: 200px;
  position: relative;
}

/* Main head — wide pentagon */
.fox-head {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 90px;
  background: #e8703a;
  clip-path: polygon(50% 0%, 100% 35%, 95% 100%, 5% 100%, 0% 35%);
}

/* Ears — border triangles */
.fox-ear {
  position: absolute;
  top: 16px;
  width: 0; height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 50px solid #e8703a;
}
.fox-ear--left  { left:  36px; transform: rotate(-12deg); }
.fox-ear--right { right: 36px; transform: rotate(12deg); }

.fox-inner-ear {
  position: absolute;
  top: 24px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 28px solid #f4a67a;
}
.fox-inner-ear--left  { left:  48px; transform: rotate(-12deg); }
.fox-inner-ear--right { right: 48px; transform: rotate(12deg); }

/* Face elements */
.fox-face {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 60px;
}

.fox-eye {
  position: absolute;
  top: 10px;
  width: 18px; height: 18px;
  background: #1a0a00;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.fox-eye--left  { left:  12px; }
.fox-eye--right { right: 12px; }

.fox-pupil {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(2px, -2px);
}

.fox-nose {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 7px solid #1a0a00;
}

.fox-whisker {
  position: absolute;
  bottom: 16px;
  height: 1.5px;
  width: 28px;
  background: rgba(0,0,0,0.35);
  border-radius: 2px;
}
.fox-whisker--left  { left:  0; transform: rotate(-5deg); }
.fox-whisker--right { right: 0; transform: rotate(5deg); }

/* Chest / bib */
.fox-chest {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 40px;
  background: #f9e4cc;
  clip-path: polygon(50% 0%, 100% 0%, 90% 100%, 10% 100%, 0% 0%);
}

/* Tail hint */
.fox-tail {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 48px; height: 32px;
  background: #e8703a;
  border-radius: 50% 60% 60% 20%;
  transform: rotate(-20deg);
}

.fox-tail::after {
  content: '';
  position: absolute;
  inset: 4px 4px 4px 10px;
  background: #f9e4cc;
  border-radius: 50% 60% 60% 20%;
}

/* Fox hover — ears perk */
.art-frame:hover .fox-ear--left  { transform: rotate(-20deg) scaleY(1.15); }
.art-frame:hover .fox-ear--right { transform: rotate(20deg)  scaleY(1.15); }
.fox-ear { transition: transform 0.3s var(--ease-out); }

/* =============================================================
   CSS ART PIECE 3 — MORNING RITUAL (COFFEE CUP)
   ============================================================= */
.css-coffee {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Steam lines */
.coffee-steam {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 48px;
}

.steam-line {
  width: 3px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  animation: steam-rise 2.4s ease-in-out infinite;
}

.steam-line--1 { height: 30px; animation-delay: 0s;    animation-duration: 2.2s; }
.steam-line--2 { height: 42px; animation-delay: 0.4s;  animation-duration: 2.6s; }
.steam-line--3 { height: 26px; animation-delay: 0.8s;  animation-duration: 2.0s; }

@keyframes steam-rise {
  0%   { transform: translateY(0)    scaleX(1);   opacity: 0;   }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { transform: translateY(-24px) scaleX(0.6); opacity: 0; }
}

/* Cup */
.coffee-cup {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 72px;
  background: linear-gradient(160deg, #f5f0ea 0%, #e8ddd0 60%, #d4c4b0 100%);
  border-radius: 6px 6px 18px 18px;
  box-shadow:
    inset -4px 0 12px rgba(0,0,0,0.12),
    inset 4px 0 6px rgba(255,255,255,0.5),
    0 4px 20px rgba(0,0,0,0.4);
  overflow: hidden;
}

.coffee-liquid {
  position: absolute;
  top: 12px;
  left: 8px; right: 8px;
  bottom: 0;
  background: linear-gradient(180deg, #3d1c02 0%, #5c2c0a 40%, #3d1c02 100%);
  border-radius: 2px 2px 12px 12px;
}

.coffee-foam {
  position: absolute;
  top: 12px;
  left: 8px; right: 8px;
  height: 14px;
  background:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.9) 0%, transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.8) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.7) 0%, transparent 30%),
    #c8926a;
  border-radius: 2px;
  /* Latte art attempt — heart shape via radial-gradient */
  background:
    radial-gradient(ellipse 28% 40% at 38% 55%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(ellipse 28% 40% at 62% 55%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(ellipse 20% 30% at 50% 70%, rgba(255,255,255,0.85) 0%, transparent 100%),
    #c08b60;
}

.coffee-handle {
  position: absolute;
  right: -18px;
  top: 12px;
  width: 22px; height: 32px;
  border: 6px solid #e8ddd0;
  border-left: none;
  border-radius: 0 16px 16px 0;
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.1);
}

/* Saucer */
.coffee-saucer {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px; height: 16px;
  background: linear-gradient(180deg, #f5f0ea 0%, #e0d4c4 100%);
  border-radius: 50%;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.6);
}

/* Plate / table surface */
.coffee-plate {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 28px;
  background: linear-gradient(180deg, #1e1008 0%, #0a0604 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.05);
}

/* Spoon */
.coffee-spoon {
  position: absolute;
  bottom: 18px;
  right: 22px;
  width: 4px;
  height: 50px;
  background: linear-gradient(180deg, #e0e8f0 0%, #b0bec5 50%, #e0e8f0 100%);
  border-radius: 2px 2px 0 0;
  transform: rotate(12deg);
}

.coffee-spoon::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -4px;
  width: 12px; height: 10px;
  background: linear-gradient(135deg, #dde8f0, #b0bec5);
  border-radius: 50%;
}

/* =============================================================
   CSS ART PIECE 4 — THE WATCHER (EYE)
   @property iris hue animation
   ============================================================= */
@property --iris-hue {
  syntax: '<angle>';
  inherits: false;
  initial-value: 320deg;
}

@property --pupil-size {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 35%;
}

.css-eye {
  width: 220px;
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-outer {
  position: relative;
  width: 180px;
  height: 90px;
}

/* White of eye — almond shape */
.eye-white {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f8f4ff 0%, #e8e0ff 100%);
  border-radius: 50% / 40%;
  clip-path: ellipse(88px 42px at 50% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 8px rgba(100, 60, 140, 0.3),
    0 0 20px rgba(164, 120, 255, 0.4);
  overflow: hidden;
}

/* Iris */
.eye-iris {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    oklch(0.75 0.28 var(--iris-hue)) 0%,
    oklch(0.5  0.28 calc(var(--iris-hue) + 40deg)) 40%,
    oklch(0.25 0.15 calc(var(--iris-hue) + 80deg)) 100%
  );
  animation: iris-hue-shift 6s linear infinite;
  box-shadow: 0 0 12px oklch(0.6 0.3 var(--iris-hue) / 0.8);
}

@keyframes iris-hue-shift {
  to { --iris-hue: 680deg; }
}

/* Iris texture ring */
.eye-iris-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid oklch(0.6 0.2 var(--iris-hue) / 0.4);
  animation: iris-hue-shift 6s linear infinite;
}

.eye-iris-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid oklch(0.7 0.15 var(--iris-hue) / 0.3);
  animation: iris-hue-shift 6s linear infinite;
}

/* Pupil */
.eye-pupil {
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--pupil-size);
  height: var(--pupil-size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a0a2a, #000);
  box-shadow: 0 0 8px rgba(0,0,0,0.8);
  display: flex; align-items: flex-start; justify-content: flex-end;
  animation: pupil-dilate 5s ease-in-out infinite;
}

@keyframes pupil-dilate {
  0%, 100% { --pupil-size: 35%; }
  50%       { --pupil-size: 50%; }
}

/* Specular highlight */
.eye-specular {
  width: 10px; height: 7px;
  background: radial-gradient(circle, rgba(255,255,255,0.95), transparent);
  border-radius: 50%;
  margin: 4px 4px 0 0;
}

/* Eyelid curves */
.eye-lid {
  position: absolute;
  left: 0; right: 0;
  background: oklch(10% 0.01 265);
}

.eye-lid--top {
  top: 0;
  height: 18px;
  clip-path: ellipse(88px 22px at 50% 0%);
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.eye-lid--bottom {
  bottom: 0;
  height: 14px;
  clip-path: ellipse(88px 18px at 50% 100%);
}

/* Lashes */
.eye-lash {
  position: absolute;
  top: 0;
  height: 2px;
  background: oklch(15% 0.01 265);
  border-radius: 2px;
  transform-origin: left center;
}

.eye-lash--1 { width: 20px; left: 28px;  top: 6px;  transform: rotate(-65deg); }
.eye-lash--2 { width: 24px; left: 52px;  top: 3px;  transform: rotate(-80deg); }
.eye-lash--3 { width: 22px; left: 80px;  top: 3px;  transform: rotate(-96deg); }
.eye-lash--4 { width: 20px; left: 106px; top: 5px;  transform: rotate(-110deg); }
.eye-lash--5 { width: 18px; left: 128px; top: 10px; transform: rotate(-125deg); }

/* Blink on hover */
.art-frame:hover .eye-lid--top {
  animation: blink 0.15s ease-out 0.1s 1 forwards;
}

@keyframes blink {
  0%   { clip-path: ellipse(88px 22px at 50% 0%); }
  50%  { clip-path: ellipse(88px 50px at 50% 0%); }
  100% { clip-path: ellipse(88px 22px at 50% 0%); }
}

/* =============================================================
   CSS ART PIECE 5 — ALPINE NIGHT (MOUNTAINS)
   ============================================================= */
.css-mountains {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.mtn-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #010314 0%,
    #020a2a 30%,
    #061438 55%,
    #0d1f50 75%,
    #0a1230 100%
  );
}

/* Stars */
.mtn-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: star-twinkle 3s ease-in-out infinite;
}

.mtn-star--1 { width: 2px; height: 2px; top: 8%;  left: 12%; animation-delay: 0s;    }
.mtn-star--2 { width: 3px; height: 3px; top: 15%; left: 40%; animation-delay: 0.7s;  }
.mtn-star--3 { width: 2px; height: 2px; top: 6%;  left: 65%; animation-delay: 1.4s;  }
.mtn-star--4 { width: 2px; height: 2px; top: 20%; left: 80%; animation-delay: 0.3s;  }
.mtn-star--5 { width: 3px; height: 3px; top: 10%; left: 22%; animation-delay: 1.1s;  box-shadow: 0 0 4px 1px rgba(200,220,255,0.8); }
.mtn-star--6 { width: 2px; height: 2px; top: 18%; left: 55%; animation-delay: 1.8s;  }

@keyframes star-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.2; transform: scale(0.6); }
}

/* Moon */
.mtn-moon {
  position: absolute;
  top: 8%;
  right: 18%;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8d0, #c8c8a8);
  box-shadow:
    0 0 16px 4px rgba(220, 220, 180, 0.6),
    0 0 40px 10px rgba(180, 180, 140, 0.2);
}

.mtn-moon::before {
  content: '';
  position: absolute;
  top: 4px; left: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
}

/* Mountains via border triangles */
.mtn-peak {
  position: absolute;
  bottom: 24%;
  width: 0; height: 0;
  left: 50%;
}

.mtn-peak--3 {
  border-left: 100px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 130px solid #0a1535;
  transform: translateX(-200px);
}

.mtn-peak--2 {
  border-left: 120px solid transparent;
  border-right: 110px solid transparent;
  border-bottom: 160px solid #060e28;
  transform: translateX(60px);
}

.mtn-peak--1 {
  border-left: 140px solid transparent;
  border-right: 130px solid transparent;
  border-bottom: 200px solid #030c22;
  transform: translateX(-70px);
}

/* Snow caps */
.mtn-snow {
  position: absolute;
  bottom: 24%;
  left: 50%;
  width: 0; height: 0;
}

.mtn-snow--2 {
  border-left: 28px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 36px solid rgba(220,230,255,0.9);
  transform: translateX(-172px) translateY(-93px);
}

.mtn-snow--1 {
  border-left: 36px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 48px solid rgba(230,240,255,0.95);
  transform: translateX(-106px) translateY(-151px);
}

/* Ground / foreground */
.mtn-ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24%;
  background: linear-gradient(
    180deg,
    #030e20 0%,
    #020a18 50%,
    #010810 100%
  );
}

/* Pine trees */
.mtn-pine {
  position: absolute;
  bottom: 24%;
  width: 0; height: 0;
}

.mtn-pine--1 {
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 36px solid #061a0f;
  left: 12%;
}
.mtn-pine--1::before {
  content: '';
  position: absolute;
  bottom: -36px; left: -8px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 24px solid #072010;
}

.mtn-pine--2 {
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 48px solid #051506;
  left: 20%;
}
.mtn-pine--2::before {
  content: '';
  position: absolute;
  bottom: -48px; left: -10px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 28px solid #061a08;
}

.mtn-pine--3 {
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 40px solid #072010;
  left: 78%;
}

/* =============================================================
   CSS ART PIECE 6 — SPINNING (VINYL RECORD)
   ============================================================= */
.css-vinyl {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Drop shadow */
.vinyl-shadow {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.6);
  z-index: 0;
}

/* Record disc */
.vinyl-record {
  position: relative;
  z-index: 1;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #111 0deg,
    #1a1a1a 0.5deg,
    #111 1deg,
    #1c1c1c 1.5deg,
    #111 2deg,
    #191919 2.5deg,
    #111 3deg,
    #1e1e1e 3.5deg,
    #111 4deg,
    #1a1a1a 4.5deg,
    #111 5deg
  );
  /* Repeat pattern across full circle */
  background: repeating-conic-gradient(
    #111 0deg,
    #1c1c1c 0.4deg,
    #111 0.8deg
  );
  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.04),
    inset 0 0 4px rgba(255,255,255,0.1);
  animation: vinyl-spin 4s linear infinite;
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Label */
.vinyl-label {
  position: absolute;
  inset: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6 0%, #a78bfa 50%, #38bdf8 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  overflow: hidden;
  animation: vinyl-spin-reverse 4s linear infinite;
}

@keyframes vinyl-spin-reverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.vinyl-label-ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
}

.vinyl-hole {
  position: absolute;
  width: 8px; height: 8px;
  background: oklch(10% 0.01 265);
  border-radius: 50%;
}

.vinyl-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
}

.vinyl-text--top    { top: 14px; }
.vinyl-text--bottom { bottom: 13px; }

/* Tone arm */
.vinyl-arm {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 64px;
  height: 8px;
  background: linear-gradient(90deg, #c0c0c0, #a0a0a0 60%, #888);
  border-radius: 4px;
  transform-origin: right center;
  transform: rotate(-38deg);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.vinyl-arm-head {
  position: absolute;
  left: -6px; top: -3px;
  width: 14px; height: 14px;
  background: linear-gradient(135deg, #d0d0d0, #909090);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.vinyl-arm-needle {
  position: absolute;
  left: -16px; top: 3px;
  width: 14px; height: 2px;
  background: #888;
  border-radius: 0 1px 1px 0;
  transform: rotate(15deg);
}

/* Slow spin on hover */
.art-frame:hover .vinyl-record {
  animation-duration: 1.5s;
}

/* =============================================================
   STORY ACT — Techniques
   ============================================================= */
.act-story {
  background: var(--zone-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.story-intro {
  max-width: 64ch;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.act-story h2 {
  margin-bottom: var(--space-md);
}

/* Techniques grid */
.techniques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 860px) {
  .techniques-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .techniques-grid { grid-template-columns: 1fr; }
}

.technique-card {
  background: oklch(10% 0.01 265);
  padding: var(--space-xl);
  transition: background var(--duration-fast) var(--ease-out);
}

.technique-card:hover {
  background: oklch(12% 0.015 280);
}

.technique-icon {
  width: 48px; height: 48px;
  margin-bottom: var(--space-md);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Mini technique icons */
.icon-gradient-stack {
  width: 100%; height: 100%;
  background:
    linear-gradient(45deg, #f472b6 0%, transparent 50%),
    linear-gradient(135deg, #a78bfa 0%, transparent 50%),
    linear-gradient(225deg, #38bdf8 0%, transparent 50%),
    linear-gradient(315deg, #34d399 0%, transparent 50%);
}

.icon-clip {
  width: 100%; height: 100%;
  background: var(--zone-accent);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.icon-shadow {
  width: 60%; height: 60%;
  background: var(--zone-accent-2);
  border-radius: var(--radius-sm);
  box-shadow:
    8px 8px 0 var(--zone-accent),
    -4px -4px 0 var(--zone-accent-3),
    16px 0px 0 oklch(0.6 0.25 180);
}

.icon-triangle {
  width: 0; height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid var(--zone-accent);
}

.icon-conic {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #f472b6, #a78bfa, #38bdf8, #34d399, #f5a623, #f472b6
  );
}

.icon-property {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    oklch(0.75 0.28 320deg),
    oklch(0.45 0.28 360deg),
    oklch(0.25 0.15 40deg)
  );
  animation: icon-hue 4s linear infinite;
}

@keyframes icon-hue {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.technique-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.technique-card p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

.technique-card code {
  font-family: var(--font-mono);
  color: var(--zone-accent);
  font-size: 0.9em;
}

/* Code Examples */
.code-examples {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.code-example {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: oklch(9% 0.01 265);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: oklch(11% 0.01 265);
}

.code-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  padding: 2px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: color var(--duration-fast), border-color var(--duration-fast);
  position: relative;
}

.copy-btn:hover {
  color: var(--zone-accent);
  border-color: var(--zone-accent);
}

.copy-check {
  display: none;
  color: #4ade80;
}

.copy-btn.copied .copy-text { display: none; }
.copy-btn.copied .copy-check { display: inline; }
.copy-btn.copied { border-color: #4ade80; color: #4ade80; }

.code-block {
  padding: var(--space-lg) var(--space-xl);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin: 0;
}

/* Syntax highlighting tokens */
.tok-selector  { color: #93c5fd; }
.tok-at        { color: #f472b6; }
.tok-brace     { color: var(--color-muted); }
.tok-prop,
.tok-prop-name { color: #7dd3fc; }
.tok-prop-name { color: #7dd3fc; }
.tok-colon     { color: var(--color-muted); }
.tok-value,
.tok-prop-val  { color: #86efac; }
.tok-prop-val  { color: #86efac; }
.tok-semi      { color: var(--color-muted); }
.tok-fn        { color: #fbbf24; }
.tok-paren     { color: var(--color-muted); }
.tok-comma     { color: var(--color-muted); }
.tok-string    { color: #f9a8d4; }

/* =============================================================
   PLAYGROUND ACT
   ============================================================= */
.act-playground {
  background: var(--color-base);
}

.act-playground h2 { margin-bottom: var(--space-md); }
.act-playground .subtitle { max-width: 56ch; margin-bottom: clamp(3rem, 5vw, 4rem); }

.playground-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 760px) {
  .playground-layout { grid-template-columns: 1fr; }
}

/* Toggles */
.playground-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--zone-surface);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
  border-bottom: 1px solid var(--color-border);
  user-select: none;
}

.toggle-row:last-child { border-bottom: none; }

.toggle-row:hover {
  background: oklch(14% 0.018 280);
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

/* Custom toggle switch */
.toggle-track {
  flex-shrink: 0;
  width: 40px; height: 22px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  position: relative;
  transition: background var(--duration-base) var(--ease-out);
}

.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-muted);
  transition: transform var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.toggle-input:checked ~ .toggle-track {
  background: var(--zone-accent);
}

.toggle-input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(18px);
  background: #fff;
}

.toggle-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-step {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--zone-accent);
  letter-spacing: 0.06em;
}

.toggle-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.toggle-code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Stage */
.playground-stage {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.playground-viewport {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: oklch(10% 0.01 265);
  position: relative;
}

.playground-container {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      oklch(14% 0.01 265) 24px,
      oklch(14% 0.01 265) 25px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 24px,
      oklch(14% 0.01 265) 24px,
      oklch(14% 0.01 265) 25px
    );
}

/* The playground div itself — toggled by :has() */
.playground-div {
  width: 100px;
  height: 100px;
  background: oklch(20% 0.01 265);
  transition:
    background      0.5s var(--ease-out),
    clip-path       0.5s var(--ease-out),
    box-shadow      0.5s var(--ease-out),
    border-radius   0.5s var(--ease-out);
}

/* Step 1 — gradient */
.playground-controls:has(#toggle-gradient:checked) ~ .playground-stage .playground-div {
  background: linear-gradient(135deg, #f472b6 0%, #a78bfa 50%, #38bdf8 100%);
}

/* Step 2 — clip-path */
.playground-controls:has(#toggle-clip:checked) ~ .playground-stage .playground-div {
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

/* Step 3 — box-shadow */
.playground-controls:has(#toggle-shadow:checked) ~ .playground-stage .playground-div {
  box-shadow:
    0 20px 60px oklch(0.64 0.3 330 / 0.5),
    0 0 0 2px oklch(0.64 0.3 330 / 0.2);
}

/* Step 4 — border-radius (overrides clip-path visual) */
.playground-controls:has(#toggle-radius:checked) ~ .playground-stage .playground-div {
  clip-path: none;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* Step 4 + step 2 — both active: radius wins */
.playground-controls:has(#toggle-clip:checked):has(#toggle-radius:checked) ~ .playground-stage .playground-div {
  clip-path: none;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* Step 5 — animation */
.playground-controls:has(#toggle-animation:checked) ~ .playground-stage .playground-div {
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1)    rotate(0deg); }
  33%       { transform: scale(1.18) rotate(6deg); }
  66%       { transform: scale(0.9)  rotate(-4deg); }
}

.playground-label-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-xs) var(--space-md);
  background: oklch(8% 0.01 265 / 0.8);
  border-top: 1px solid var(--color-border);
}

.playground-label-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

/* CSS Readout */
.playground-css-readout {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: oklch(9% 0.01 265);
  padding: var(--space-md) var(--space-lg);
  min-height: 5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.readout-line {
  display: flex;
  gap: 0.3em;
  flex-wrap: wrap;
}

.readout-prop {
  color: var(--color-muted);
  font-style: italic;
}

.readout-prop-name { color: #7dd3fc; }
.readout-colon     { color: var(--color-muted); }
.readout-prop-val  { color: #86efac; }

/* =============================================================
   BOTTOM NAV
   ============================================================= */
.zone-nav-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.zone-nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.zone-nav-link:hover {
  color: var(--zone-accent);
  border-color: var(--zone-accent);
}

.zone-nav-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.zone-nav-symbol {
  color: var(--zone-accent);
  font-size: var(--text-xl);
}

.zone-nav-number {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Responsive fine-tuning ─────────────────────────────────── */
@media (max-width: 600px) {
  .art-caption {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .css-fox,
  .css-coffee,
  .css-eye,
  .css-vinyl {
    transform: scale(0.85);
  }
}

/* ── Ambient Aurora (Layer 1 / Task 5) ─────────────────── */
.ambient-bg--aurora::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, var(--zone-color, oklch(0.65 0.18 290)) 30%, transparent 60%);
  animation: ambient-aurora 60s linear infinite;
  opacity: 0.12;
}

/* ── Build a Shape v2 (Layer 2 / Task 10) ───────────────── */
.bas-v2 { padding-block: var(--space-2xl); }
.bas-v2 h2 { margin-block: 0 var(--space-sm); font-size: var(--text-xl, 1.5rem); color: var(--color-text); }
.bas-v2 .subtitle { color: var(--color-muted); margin-block: 0 var(--space-lg); }
.bas-pane {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
.bas-controls {
  background: oklch(0.18 0.02 280 / 0.7);
  padding: 16px;
  border-radius: 12px;
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid oklch(1 0 0 / 0.06);
}
.bas-controls .lab-section {
  border-bottom: 1px solid oklch(1 0 0 / 0.06);
  padding-block: 8px;
}
.bas-controls .lab-section[open] { padding-bottom: 12px; }
.bas-controls .lab-section:last-of-type { border-bottom: none; }
.bas-controls summary {
  cursor: pointer;
  padding: 6px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: oklch(0.85 0.04 290);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  list-style: none;
}
.bas-controls summary::-webkit-details-marker { display: none; }
.bas-controls summary::before { content: '▸ '; transition: transform 200ms ease; display: inline-block; }
.bas-controls .lab-section[open] summary::before { transform: rotate(90deg); }
.bas-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: oklch(0.78 0.04 280);
  margin-block: 6px;
  flex-wrap: wrap;
}
.bas-controls label input[type="range"] { flex: 1; min-width: 80px; }
.bas-controls label input[type="color"] { width: 40px; height: 28px; border: none; padding: 0; background: transparent; cursor: pointer; }
.bas-controls label select { background: oklch(0.22 0.04 280); color: white; border: 1px solid oklch(1 0 0 / 0.1); padding: 4px 6px; border-radius: 4px; font-size: 0.8rem; }
.bas-controls .ctl-val {
  font-family: var(--font-mono, monospace);
  color: oklch(0.85 0.1 290);
  min-width: 32px;
  text-align: right;
  font-size: 0.78rem;
}
.bas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.bas-actions button {
  flex: 1;
  min-width: 80px;
  padding: 6px 10px;
  border-radius: 6px;
  background: oklch(0.22 0.04 280);
  color: white;
  border: 1px solid oklch(1 0 0 / 0.1);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 150ms ease, transform 150ms ease;
}
.bas-actions button:hover { background: oklch(0.28 0.06 290); transform: translateY(-1px); }
.bas-actions button:focus-visible { outline: 2px solid oklch(0.75 0.2 290); outline-offset: 2px; }
.bas-preview-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bas-preview {
  background-image:
    linear-gradient(45deg, oklch(0.15 0.02 280) 25%, transparent 25%),
    linear-gradient(-45deg, oklch(0.15 0.02 280) 25%, transparent 25%);
  background-size: 20px 20px;
  background-color: oklch(0.1 0.02 280);
  min-height: 400px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
#bas-canvas {
  transition: all 200ms ease;
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  border-radius: 20%;
}
.bas-challenge-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: oklch(0.1 0.02 280 / 0.95);
  border-radius: 8px;
  border: 1px solid oklch(0.65 0.22 290 / 0.4);
  backdrop-filter: blur(8px);
}
.bas-challenge-hud[hidden] { display: none; }
.bas-target-shape {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.bas-match-score {
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  color: oklch(0.9 0.05 290);
}
.bas-match-score #bas-match-pct { color: oklch(0.85 0.18 145); font-weight: 700; }
.bas-stars {
  font-size: 1.5rem;
  color: gold;
  margin-left: auto;
}
.bas-challenge-hud button {
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  background: oklch(0.22 0.04 280);
  color: white;
  border: 1px solid oklch(1 0 0 / 0.15);
  font-size: 0.8rem;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.2;
  transition: background 150ms ease, border-color 150ms ease;
}
.bas-challenge-hud button:hover { background: oklch(0.65 0.22 290); border-color: oklch(0.75 0.22 290 / 0.6); }
.bas-challenge-hud button:focus-visible {
  outline: 2px solid oklch(0.78 0.18 290);
  outline-offset: 2px;
}
.bas-challenge-hud #bas-exit-challenge {
  background: oklch(0.18 0.04 30);
  border-color: oklch(1 0 0 / 0.18);
}
.bas-challenge-hud #bas-exit-challenge:hover {
  background: oklch(0.55 0.22 30);
  border-color: oklch(0.65 0.22 30 / 0.7);
}
.bas-css-output {
  background: oklch(0.1 0.02 280);
  color: oklch(0.7 0.18 200);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  max-height: 120px;
  overflow: auto;
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  border: 1px solid oklch(1 0 0 / 0.06);
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 800px) {
  .bas-pane { grid-template-columns: 1fr; }
  .bas-controls { max-height: none; }
  .bas-challenge-hud { flex-wrap: wrap; }
  .bas-stars { margin-left: 0; }
}
