/* ============ OLAMIX — hi vibe only ============ */
:root {
  --ink: #1E1E1E;
  --white: #fff;
  --purple: #9278D1; --orange: #F9461C; --pink: #FF818D; --yellow: #E4D700;
  --red: #CB0044; --magenta: #B1059D; --amber: #F0AB00; --green: #7AB800;
  --teal: #3AD6C5; --blue: #0018A8; --cyan: #00B0CA;
  --display: 'Poppins', 'Arial Black', system-ui, sans-serif;
  --ui: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --a: var(--orange); --b: var(--pink);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-text-size-adjust: 100%;
}
html.turbo { animation: dotsrun .35s linear infinite; }
@keyframes dotsrun { to { background-position: 22px 22px; } }
html.sludge .wrap > *:not(.stage):not(.props), html.sludge .deck, html.sludge .mixer { filter: saturate(.35) contrast(.9); transition: filter .6s; }

body {
  margin: 0; color: var(--white); font-family: var(--ui);
  min-height: 100svh;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 4px; border-radius: 6px; }
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 960px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  overflow-x: clip;
}

/* ---------- header ---------- */
.head { text-align: center; padding-top: 6px; }
.logo { margin: 0; line-height: 0; }
.logo-btn { display: inline-block; width: min(600px, 92%); }
#logo { width: 100%; height: auto; overflow: visible; transform-origin: 50% 60%; display: block; }
#logo .lg { font-family: var(--display); font-weight: 900; }
#logo.roll { animation: roll 1s cubic-bezier(.5,-0.3,.3,1.3); }
@keyframes roll { to { transform: rotate(360deg); } }
.tagline {
  margin-top: 10px; padding: 8px 14px;
  font-family: var(--ui); font-weight: 500; text-transform: uppercase;
  letter-spacing: .34em; font-size: clamp(11px, 2.8vw, 14px);
  color: var(--tag, var(--teal));
  transition: color .3s;
}

/* ---------- stage layout ---------- */
.stage {
  display: grid; gap: 22px 40px; margin-top: 14px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "deck" "floor" "mixer";
}
@media (min-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr) 250px; grid-template-areas: "deck mixer" "floor floor"; align-items: start; margin-top: 22px; }
}

/* ---------- the deck ---------- */
.deck {
  grid-area: deck; position: relative; aspect-ratio: 1000 / 720;
  margin: 0 3.4% 4.4% 0; container-type: inline-size;
  user-select: none; -webkit-user-select: none;
  --a: var(--orange); --b: var(--pink);
}
.deck svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.deck-top { pointer-events: none; }
.deck-brand { font-family: var(--display); font-weight: 900; font-size: 34px; fill: var(--ink); letter-spacing: -.5px; }
.deck-model { font-family: var(--ui); font-weight: 500; font-size: 17px; fill: #777; letter-spacing: 2.5px; }
.deck-model.small { font-size: 14px; }
.deck-read { font-family: var(--ui); font-weight: 600; font-size: 28px; fill: var(--ink); }

.platter { position: absolute; left: 7.8%; top: 8.0556%; width: 62.4%; aspect-ratio: 1; }
.rim {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, #2a2a2a 0 93.6%, transparent 94%),
    repeating-conic-gradient(#c9c9c9 0 2deg, #2a2a2a 2deg 6deg);
  box-shadow: 0 0 0 2px #1E1E1E;
}
.record {
  position: absolute; inset: 2.564%; border-radius: 50%;
  touch-action: none; cursor: grab;
  transition: transform .26s cubic-bezier(.4,0,.2,1), opacity .26s;
}
.record.grab { cursor: grabbing; }
.record.out { transform: scale(.72) translate(40%, -30%); opacity: 0; }
.record.in { animation: drop .42s cubic-bezier(.2,1.5,.4,1); }
@keyframes drop { from { transform: scale(1.22); opacity: 0; } to { transform: none; opacity: 1; } }
.spin { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.grooves {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, #111 34.4% 35.6%, transparent 36%),
    radial-gradient(circle, transparent 0 66%, #0d0d0d 66.4% 67.4%, transparent 68%),
    repeating-radial-gradient(circle, #161616 0 1.1px, #232323 1.5px 2.6px);
  box-shadow: inset 0 0 0 3px #0c0c0c;
}
.label {
  position: absolute; inset: 31.5%; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 88%, rgba(0,0,0,.18) 88.5% 90%, transparent 90.5%),
    linear-gradient(transparent 0 62%, transparent 62%),
    var(--a);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.label::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: repeating-linear-gradient(-45deg, var(--b) 0 3px, var(--a) 3px 6px);
}
.label .lt {
  font-family: var(--display); font-weight: 900; line-height: 1;
  font-size: max(7px, 2.05cqw); max-width: 78%; letter-spacing: -.01em;
  text-shadow: 1px 1px 0 rgba(0,0,0,.25);
}
.label .hole { width: 7%; aspect-ratio: 1; border-radius: 50%; background: #e9e9e9; box-shadow: 0 0 0 2px rgba(0,0,0,.25); margin: 5% 0; position: relative; z-index: 1; }
.label .la { font: 600 max(5px, 1.05cqw) var(--ui); letter-spacing: .2em; position: relative; z-index: 1; margin-bottom: 14%; }
.sticker {
  position: absolute; left: 50%; top: 2.5%; width: 3.2%; height: 11%;
  transform: translateX(-50%); border-radius: 3px; background: var(--b);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.85);
}
.sheen {
  position: absolute; inset: 2.564%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 25deg, transparent 0deg 18deg, rgba(255,255,255,.13) 38deg, transparent 62deg 198deg, rgba(255,255,255,.10) 218deg, transparent 242deg);
  -webkit-mask: radial-gradient(circle, transparent 0 32%, #000 33%);
          mask: radial-gradient(circle, transparent 0 32%, #000 33%);
}

.startstop {
  position: absolute; left: 3%; top: 84.2%; width: 14%; height: 11.6%;
  background: var(--ink); color: #fff; border-radius: max(5px, 1.2cqw);
  font: 600 max(9px, 2.1cqw) var(--ui); letter-spacing: .14em;
  box-shadow: inset 0 calc(-0.5cqw) 0 rgba(255,255,255,.12);
  transition: background .2s, transform .06s;
}
.startstop:active { transform: translateY(2px); }
.startstop.on { background: var(--a); }
.startstop.nudge { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,70,28,.0); } 50% { box-shadow: 0 0 0 1.2cqw rgba(249,70,28,.35); } }

.fader { position: absolute; left: 90.5%; top: 36.4%; width: 8%; height: 60.8%; touch-action: none; cursor: ns-resize; }
.fader .slot {
  position: absolute; left: 50%; top: 7%; bottom: 7%; width: 12%; transform: translateX(-50%);
  background: var(--ink); border-radius: 99px;
}
.fader::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 7%; bottom: 7%;
  background: repeating-linear-gradient(#bbb 0 1px, transparent 1px 8.3%);
  -webkit-mask: linear-gradient(90deg, #000 0 30%, transparent 30% 70%, #000 70%);
          mask: linear-gradient(90deg, #000 0 30%, transparent 30% 70%, #000 70%);
}
.knob {
  position: absolute; left: 50%; top: 50%; width: 92%; height: 9%;
  transform: translate(-50%, -50%); border-radius: max(3px, .7cqw);
  background: var(--ink); box-shadow: inset 0 -0.6cqw 0 var(--a);
}
.knob::after { content: ''; position: absolute; left: 15%; right: 15%; top: 45%; height: 2px; background: #fff; }

.wine { height: 100%; aspect-ratio: 440 / 1081; flex: 0 1 auto; min-width: 0; cursor: pointer; transform-origin: 50% 100%; will-change: transform; }
.wine img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
/* the props strip: on phones/tablets it tucks up beside the tagline — joint left, wine right */
.props {
  display: flex; justify-content: space-between; align-items: flex-end;
  height: clamp(72px, 19vw, 130px); margin: calc(-1 * clamp(44px, 11vw, 64px)) 0 -4px; padding: 0 1%;
  pointer-events: none; position: relative; z-index: 2;
}
.props > * { pointer-events: auto; }
.props .wine { height: 100%; }
/* the cone: smoulders on its own, smoke drawn on a canvas that floats above the tip */
.cone { position: relative; flex: 0 0 auto; width: clamp(54px, 15vw, 120px); margin-bottom: clamp(10px, 3vw, 22px); cursor: pointer; --rot: 40deg; }
/* lit end first: the stick tilts up to the north-west, pivoting on the mouthpiece; smoke still rises straight up */
.cone .stick { position: relative; display: block; transform: rotate(var(--rot)); transform-origin: 98.5% 50%; }
.cone img { display: block; width: 100%; height: auto; filter: drop-shadow(3.9px 4.6px 8px rgba(0,0,0,.55)); }
.cone .ember { position: absolute; left: 1.5%; top: 18%; width: 7%; height: 70%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,150,40,.95), rgba(255,70,0,.55) 45%, rgba(255,40,0,0) 100%);
  mix-blend-mode: screen; opacity: .35; }
.cone .smoke { position: absolute; pointer-events: none; filter: blur(.6px); }
.drop { width: 7px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #9E0B34; }

/* ---------- extruded stripe shadows (built in JS) ---------- */
.ex { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.ex-host > :not(.ex) { position: relative; }

/* ---------- mixer ---------- */
.mixer { grid-area: mixer; position: relative; padding: 16px 18px 18px; margin: 0 12px 12px 0; color: var(--ink); }
.mixer-head { display: flex; justify-content: space-between; align-items: baseline; }
.mixer h2 { margin: 0; font: 900 30px/1 var(--display); letter-spacing: -.02em; }
.keyhint { font: 500 11px var(--ui); letter-spacing: .2em; color: #888; text-transform: uppercase; }
.pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; margin-top: 12px; }
@media (min-width: 860px) { .pads { grid-template-columns: repeat(2, 1fr); } }
.pad {
  position: relative; height: clamp(62px, 17vw, 84px); margin: 0 7px 7px 0;
  color: #fff; font: 900 clamp(13px, 3.5vw, 17px)/1 var(--display); letter-spacing: -.01em;
}
.pad .lbl { display: flex; height: 100%; align-items: center; justify-content: center; text-align: center; padding: 4px; }
.pad kbd { position: absolute; top: 5px; left: 7px; font: 500 10px var(--ui); opacity: .75; }
.phone {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; text-align: left;
  font: 600 11px/1.25 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: #777;
}
.phone img { width: 58px; height: auto; transform-origin: 50% 85%; }
.phone.ringing img { animation: ring .09s linear infinite; }
@keyframes ring { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@media (hover: none) { .keyhint, .pad kbd { display: none; } }

/* ---------- dance floor ---------- */
.floor {
  grid-area: floor; display: flex; justify-content: center; align-items: flex-end;
  gap: 4%; height: clamp(96px, 25vw, 160px); margin-top: -8px;
}
.dancer { height: 100%; width: auto; min-width: 0; flex: 0 1 auto; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; cursor: pointer; will-change: transform; }
.dancer.t2, .dancer.t3 { display: none; }
@media (min-width: 700px) { .dancer.t2 { display: block; } .floor { gap: 3%; } }
@media (min-width: 1280px) {
  .floor { position: fixed; inset: 0; z-index: 0; height: auto; margin: 0; display: block; pointer-events: none; --g: calc((100vw - 960px) / 2); }
  .dancer, .dancer.t2, .dancer.t3 { display: block; position: absolute; bottom: var(--b); width: calc(var(--g) * var(--w)); height: auto; pointer-events: auto; }
  .dancer.L { left: calc(var(--g) * var(--x)); }
  .dancer.R { right: calc(var(--g) * var(--x)); }
  /* big screens: the props live out in the side margins, wine top right, joint top left */
  .props { display: contents; --g: calc((100vw - 960px) / 2); }
  .props .wine, .props .cone { position: fixed; z-index: 0; top: var(--t); width: calc(var(--g) * var(--w)); height: auto; margin: 0; }
  .props .wine { right: calc(var(--g) * var(--x)); aspect-ratio: auto; }
  .props .wine img { height: auto; }
  .props .cone { left: calc(var(--g) * var(--x)); }
}

/* ---------- crate ---------- */
.crate { margin-top: 30px; }
.crate-head { display: flex; align-items: center; justify-content: space-between; }
.crate h2 { margin: 0; font: 500 13px var(--ui); letter-spacing: .34em; text-transform: uppercase; color: #ccc; }
.vm img { width: 52px; height: auto; display: block; transition: transform .2s; }
.vm:hover img { transform: rotate(-8deg) scale(1.08); }
.sleeves {
  display: flex; gap: 18px; overflow-x: auto; padding: 14px 2px 20px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #555 transparent;
}
.sleeve {
  flex: 0 0 auto; width: clamp(118px, 30vw, 146px); aspect-ratio: 1;
  position: relative; scroll-snap-align: start; text-align: left;
}
.sleeve .disc {
  position: absolute; inset: 5%; border-radius: 50%; z-index: 0;
  background:
    radial-gradient(circle, var(--a) 0 16%, #111 16.5% 17.5%, transparent 18%),
    repeating-radial-gradient(circle, #161616 0 1px, #262626 1.4px 2.4px);
  transition: transform .35s cubic-bezier(.2,1.3,.4,1);
}
.sleeve:hover .disc, .sleeve:focus-visible .disc { transform: translateX(30%) rotate(40deg); }
.sleeve .cover {
  position: absolute; inset: 0; z-index: 1; border-radius: 6px; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: repeating-linear-gradient(45deg, var(--a) 0 7px, var(--b) 7px 14px);
  transition: transform .15s;
}
.sleeve:active .cover { transform: scale(.97); }
.sleeve .t {
  font: 900 clamp(15px, 4.2vw, 19px)/.98 var(--display); letter-spacing: -.01em; color: #fff;
  text-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink);
}
.sleeve .s { font: 600 9px var(--ui); letter-spacing: .26em; text-transform: uppercase; color: #fff; text-shadow: 1px 1px 0 var(--ink); }
.sleeve.on .disc { opacity: 0; }
.sleeve.on .cover::after {
  content: 'ON DECK'; position: absolute; top: 8px; right: -6px; transform: rotate(8deg);
  background: #fff; color: var(--ink); font: 600 9px var(--ui); letter-spacing: .2em; padding: 4px 7px; border-radius: 4px;
}
.sleeve.dnp .cover { background: var(--ink); border: 2px dashed #fff; }
.sleeve.dnp .t { color: #fff; text-shadow: none; }

/* ---------- misc ---------- */
.hints { margin: 6px 0 0; text-align: center; font: 500 12px/1.6 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #999; }
.foot { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font: 500 11px var(--ui); letter-spacing: .24em; text-transform: uppercase; color: #777; }
#secrets.flashy { color: var(--yellow); transition: color .2s; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 180%); max-width: calc(100vw - 32px); width: max-content;
  background: #fff; color: var(--ink); text-align: center;
  font: 600 14px/1.35 var(--ui); padding: 10px 18px; border-radius: 999px;
  box-shadow: 5px 5px 0 var(--toast, var(--orange));
  transition: transform .4s cubic-bezier(.2,1.4,.4,1);
}
.toast.show { transform: translate(-50%, 0); }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 45; opacity: 0; }
.flash.on { animation: flash 1.7s steps(1) forwards; }
@keyframes flash {
  0% { opacity: .22; background: var(--cyan); } 12% { background: var(--magenta); } 24% { background: var(--yellow); }
  36% { background: var(--cyan); } 48% { background: var(--orange); } 60% { background: var(--teal); }
  72% { background: var(--magenta); } 84% { background: var(--blue); } 100% { opacity: 0; }
}

.shake { animation: shake .45s; }
@keyframes shake {
  0%, 100% { transform: none; } 15% { transform: translate(-6px, 3px) rotate(-.6deg); }
  30% { transform: translate(6px, -3px) rotate(.6deg); } 45% { transform: translate(-5px, -2px); }
  60% { transform: translate(5px, 2px); } 80% { transform: translate(-2px, 1px); }
}

.sprite { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; will-change: transform; }
.zep { width: clamp(84px, 13vw, 180px); pointer-events: auto; cursor: pointer; z-index: 41; }
.runner { width: clamp(90px, 15vw, 190px); }
.beam {
  height: 7px; width: 70vw; border-radius: 9px;
  background: repeating-linear-gradient(90deg, var(--green) 0 14px, var(--yellow) 14px 28px);
  box-shadow: 0 0 18px var(--green);
}

.cameo { position: fixed; bottom: 0; z-index: 42; height: min(40vh, 340px); pointer-events: none; transition: transform .6s cubic-bezier(.2,1.25,.4,1); }
.cameo.r { right: 3vw; transform: translateX(140%); }
.cameo.l { left: 3vw; transform: translateX(-140%); }
.cameo.in { transform: none; }
.cameo img { height: 100%; width: auto; display: block; }
.cameo.click { pointer-events: auto; cursor: pointer; }
.cameo .bubble {
  position: absolute; top: -4%; width: max-content; max-width: min(230px, 60vw);
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 18px;
  font: 600 14px/1.3 var(--ui); box-shadow: 4px 4px 0 var(--pink);
}
.cameo.r .bubble { right: 55%; }
.cameo.l .bubble { left: 55%; }
.cameo.alarm { height: min(24vh, 200px); }

html.anaglyph .head, html.anaglyph .deck, html.anaglyph .mixer, html.anaglyph .crate, html.anaglyph .dancer {
  filter: drop-shadow(-4px 0 rgba(255,0,70,.7)) drop-shadow(4px 0 rgba(0,225,255,.7));
}

/* reggae version: a little pill on the deck + red-gold-green echoes on the logo */
.reggae-badge {
  position: absolute; left: 3.6%; top: 14.5%; z-index: 3;
  display: inline-flex; align-items: center; gap: .55em;
  font: 900 max(9px, 1.45cqw)/1 var(--display, 'Poppins'), sans-serif; letter-spacing: .08em;
  color: #FED100; background: #1E1E1E; border-radius: 999px; padding: .55em .9em .5em .7em;
  box-shadow: 0 0 0 2px #1E1E1E, 0 0 0 4px #009A44;
}
.reggae-badge[hidden] { display: none; }
.reggae-badge::before {
  content: ''; width: 1em; height: 1em; border-radius: 50%;
  background: conic-gradient(#CE1126 0 33%, #FED100 0 66%, #009A44 0);
  animation: rbspin 2.4s linear infinite;
}
@keyframes rbspin { to { transform: rotate(360deg); } }
#logo { transition: filter .8s; }
html.dub #logo { filter: drop-shadow(-12px 0 0 rgba(206,17,38,.55)) drop-shadow(-12px 0 0 rgba(254,209,0,.45)) drop-shadow(-12px 0 0 rgba(0,154,68,.4)); }

@media (prefers-reduced-motion: reduce) {
  .shake, html.turbo, #logo.roll, .reggae-badge::before { animation: none; }
  .flash.on { animation-duration: .01s; }
}
