.play-page {
  background: var(--black);
}

.play-hero {
  position: relative;
  min-height: 100svh;
  padding: 118px var(--gutter) 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  grid-template-rows: auto 1fr auto;
  gap: 30px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 76% 36%, rgba(223, 255, 32, .15), transparent 23%),
    linear-gradient(125deg, #090909 0 52%, #171417 52% 100%);
}

.play-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(243, 239, 232, .17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 232, .17) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 112px) clamp(48px, 7vw, 112px);
  pointer-events: none;
}

.play-hero::after {
  content: '';
  position: absolute;
  right: -8vw;
  top: 13vh;
  width: min(54vw, 850px);
  aspect-ratio: 1;
  border: clamp(32px, 5vw, 76px) solid var(--pink);
  border-radius: 50%;
  opacity: .16;
  transform: rotate(-16deg);
  pointer-events: none;
}

.play-hero > * { position: relative; z-index: 1; }

.play-hero__meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.play-hero__type {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  display: grid;
  place-items: center;
  font: 900 clamp(120px, 18vw, 278px)/.64 var(--display);
  letter-spacing: -.09em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(243, 239, 232, .52);
  transform: rotate(-6deg);
}

.play-hero__type span:last-child { color: var(--acid); -webkit-text-stroke: 0; }
.play-hero__type i { position: absolute; color: var(--pink); -webkit-text-stroke: 0; font-style: normal; font-size: .28em; }

.play-hero__copy {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  max-width: 750px;
}

.play-hero__copy h1 {
  margin: clamp(34px, 6vh, 72px) 0 35px;
  font: 900 clamp(100px, 14vw, 212px)/.72 var(--display);
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.play-hero__copy h1 strong { display: block; color: var(--acid); font: inherit; }
.play-hero__copy p { max-width: 610px; margin: 0 0 32px; color: #bcb4b5; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; }
.play-hero__copy > a { width: min(100%, 300px); min-height: 60px; padding: 0 19px; display: flex; justify-content: space-between; align-items: center; color: var(--black); background: var(--cream); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; transition: background .18s, transform .18s; }
.play-hero__copy > a:hover { background: var(--pink); transform: translateY(-3px); }
.play-hero__note { grid-column: 1 / -1; margin: 0; color: #817a7c; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.studio {
  padding: var(--section) var(--gutter);
  color: var(--cream);
  background: #141316;
}

.studio__head {
  margin-bottom: clamp(55px, 8vw, 105px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 50px;
  align-items: end;
}

.studio__head h2 {
  margin: 24px 0 0;
  font-size: clamp(68px, 9.5vw, 150px);
  line-height: .76;
  letter-spacing: -.04em;
}

.studio__head > p { margin: 0 0 8px; color: #b5aeb0; font-size: 15px; line-height: 1.68; }
.studio-rack { max-width: 1540px; margin: 0 auto; }

.machine {
  position: relative;
  padding: clamp(20px, 3vw, 42px);
  color: #17171b;
  background: linear-gradient(115deg, #e4e3dd, #faf8ef 48%, #c7c8c1);
  border: 1px solid #fffef6;
  border-radius: 16px;
  box-shadow: 0 14px 0 #83847e, 0 34px 72px rgba(0, 0, 0, .54);
}

.machine::before,
.machine::after {
  content: '+';
  position: absolute;
  top: 10px;
  color: #777770;
  font: 14px ui-monospace, monospace;
}

.machine::before { left: 13px; }
.machine::after { right: 13px; }

.machine__top {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 38px);
  padding-bottom: 22px;
  border-bottom: 4px solid var(--pink);
}

.machine--bass .machine__top { border-color: #222226; }
.machine__brand { flex: 1; display: flex; gap: 18px; align-items: baseline; }
.machine__brand b { font: 900 clamp(34px, 4vw, 62px)/1 var(--display); letter-spacing: -.06em; }
.machine__brand > span,
.machine__edition { font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.machine__brand small { display: block; font-size: 7px; letter-spacing: .17em; }
.machine__edition { line-height: 1.5; text-align: right; }
.machine__display { min-width: 142px; padding: 11px 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #ff7545; background: #202123; border-radius: 5px; box-shadow: inset 0 2px 7px rgba(0, 0, 0, .75); }
.machine__display span { font-size: 8px; letter-spacing: .1em; }
.machine__display output { font: 21px ui-monospace, monospace; white-space: nowrap; }

.machine__controls { display: grid; gap: clamp(18px, 2.8vw, 42px); align-items: center; margin: 30px 0; }
.machine__controls--drums { grid-template-columns: 1.2fr repeat(3, 1fr); }
.machine label { font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.machine label output { float: right; font: 14px ui-monospace, monospace; letter-spacing: 0; }
.machine input[type='range'] { width: 100%; height: 26px; margin-top: 12px; display: block; accent-color: #202025; cursor: pointer; }
.machine button,
.machine select,
.machine input { color: inherit; }
.machine button { cursor: pointer; }
.machine button:focus-visible,
.machine select:focus-visible,
.machine input:focus-visible { outline: 3px solid #2445ff; outline-offset: 3px; }

.transport {
  min-height: 66px;
  padding: 12px 18px;
  color: #fff !important;
  background: #18181c;
  border: 1px solid #0f0f11;
  border-radius: 6px;
  box-shadow: 0 4px 0 #000;
  font-size: 15px;
  font-weight: 800;
}

.transport[aria-pressed='true'] { color: #111 !important; background: var(--acid); }

.voice-pads {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 25px 0;
  border-top: 1px solid #aaa9a2;
}

.voice-pad {
  position: relative;
  min-height: 104px;
  padding: 16px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #19191d;
  background: #c3c4be;
  border: 1px solid #a0a19a;
  border-bottom: 5px solid #82837d;
  border-radius: 6px;
  transition: transform .12s, background .12s;
}

.voice-pad strong { font-size: 11px; }
.voice-pad[aria-pressed='true'] { background: #fffdf4; border-bottom-color: var(--pink); }
.voice-pad.is-hit { background: var(--pink); transform: translateY(3px); }
.pad-key { position: absolute; top: 8px; left: 10px; color: #585852; font-size: 9px; }
.pad-pattern { max-width: 100%; overflow: hidden; font: 10px ui-monospace, monospace; white-space: nowrap; }

.sequencer-heading {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: #474740;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sequencer-heading b { margin-left: 8px; color: #17171b; font-size: 13px; letter-spacing: 0; }
.sequencer-heading button { padding: 10px 0; border: 0; background: transparent; font-size: 10px; text-decoration: underline; }
.step-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 7px; }

.drum-step,
.bass-step {
  position: relative;
  min-height: 78px;
  padding: 13px 2px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #25251d;
  background: #f7f6ec;
  border: 1px solid #b2b1a9;
  border-bottom: 5px solid #a9a89f;
  border-radius: 5px;
  font: 9px ui-monospace, monospace;
}

.drum-step:nth-child(-n+4) { background: #ec967b; border-bottom-color: #a6533a; }
.drum-step:nth-child(n+5):nth-child(-n+8) { background: #e8be68; border-bottom-color: #a78444; }
.drum-step:nth-child(n+9):nth-child(-n+12) { background: #eee5ac; border-bottom-color: #ada473; }
.step-led { width: 8px; height: 8px; border-radius: 50%; background: #3c3331; box-shadow: inset 0 1px 2px #000; }
.drum-step[aria-pressed='true'] .step-led,
.bass-step:not(.is-rest) .step-led { background: #ff4a1c; box-shadow: 0 0 8px rgba(236, 80, 26, .65); }
.drum-step[aria-pressed='true'] { padding-top: 11px; border-top: 3px solid #17171b; }
.drum-step.is-playing,
.bass-step.is-playing { outline: 3px solid #2445ff; outline-offset: 3px; transform: translateY(-3px); }

.pattern-bar {
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border-top: 1px solid #aaa9a2;
}

.preset-buttons,
.beat-actions,
.mute-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.preset-buttons > span { margin-right: 8px; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.pattern-bar button,
.studio-mutes button,
.bass-modifiers button { padding: 11px 13px; background: rgba(255, 255, 255, .52); border: 1px solid #aaa9a2; border-radius: 4px; font-size: 10px; font-weight: 700; }
.pattern-bar button:hover,
.studio-mutes button:hover,
.bass-modifiers button:hover { background: #fff; }
.beat-actions button,
.mute-controls button { color: #fff; background: #222226; border-color: #222226; }
.beat-actions button:hover,
.mute-controls button:hover { color: #111; background: var(--acid); }

.machine__bottom { padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.machine__bottom p { min-height: 17px; margin: 0; font-size: 10px; line-height: 1.55; }
.machine__bottom > span { font-size: 8px; letter-spacing: .06em; }

.studio-cable { margin: 72px 0 50px; display: flex; align-items: center; justify-content: center; gap: 18px; color: #9c959a; font: 9px ui-monospace, monospace; letter-spacing: .08em; }
.studio-cable i { width: 100px; height: 1px; background: #5c585e; }
.studio-cable span { padding: 8px; border: 1px solid #5c585e; border-radius: 4px; }

.bass-knobs {
  padding: 30px 0 25px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
  border-bottom: 1px solid #aaa9a2;
}

.bass-knob { display: flex; flex-direction: column; align-items: center; gap: 11px; cursor: ns-resize; }
.knob-face {
  position: relative;
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 50%;
  background: repeating-conic-gradient(#2d2d30 0deg 7deg, #161619 7deg 14deg);
  box-shadow: 0 5px 0 #08080b, 0 8px 12px rgba(0, 0, 0, .35), inset 0 0 0 5px #26262a;
  transform: rotate(var(--knob-angle, -30deg));
  touch-action: none;
}
.knob-face::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: linear-gradient(110deg, #454549, #16161a); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .15); }
.knob-face::after { content: ''; position: absolute; top: 5px; left: calc(50% - 1.5px); width: 3px; height: 17px; border-radius: 2px; background: #f4f1e7; }
.bass-knob input { margin: -2px 0 0 !important; height: 18px !important; }
.bass-knob output { float: none !important; font-size: 10px !important; }

.bass-performance { padding: 25px 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: clamp(18px, 2.5vw, 34px); align-items: center; }
.bass-sync { display: grid; grid-template-columns: 9px 1fr; gap: 6px 9px; font: 15px ui-monospace, monospace; }
.bass-sync i { width: 8px; height: 8px; align-self: center; border-radius: 50%; background: var(--pink); }
.bass-sync small { grid-column: 2; font: 8px var(--body); letter-spacing: .08em; }
.wave-select select { width: 100%; margin-top: 10px; padding: 10px 7px; display: block; background: #e9e8e0; border: 1px solid #96978f; border-radius: 3px; font: 11px ui-monospace, monospace; }

.studio-mutes { margin-bottom: 23px; padding: 16px 0; display: flex; align-items: center; gap: 9px; border-top: 1px solid #aaa9a2; border-bottom: 1px solid #aaa9a2; }
.studio-mutes button[aria-pressed='true'] { color: var(--acid); background: #252529; border-color: #252529; }
.studio-mutes > span { margin-left: auto; color: #565650; font-size: 9px; }
.bass-step { min-height: 95px; gap: 8px; }
.bass-step[aria-pressed='true'] { background: #fbb58c; border-color: #b56b45; border-bottom-color: #8b5134; }
.bass-step.is-rest .bass-note { color: #67675f; font-size: 9px; }
.bass-note { font-size: 11px; }
.bass-flags { height: 11px; color: #ad3515; font-size: 10px; }

.bass-editor { margin-top: 25px; padding: 20px; background: #c7c8c2; border: 1px solid #a6a7a0; border-radius: 5px; }
.pitch-heading { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.pitch-heading b { margin-left: 10px; font: 16px ui-monospace, monospace; letter-spacing: 0; }
.pitch-heading select { margin-left: 8px; padding: 6px; background: #eee; border: 1px solid #8c8d86; border-radius: 3px; }
.bass-keyboard { position: relative; height: 104px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; isolation: isolate; }
.bass-key { padding: 0 2px 10px; display: flex; justify-content: center; align-items: end; border-radius: 0 0 4px 4px; font: 10px ui-monospace, monospace; }
.bass-key--white { color: #202024; background: linear-gradient(#fffdf4, #eae8de); border: 1px solid #99988f; border-bottom: 6px solid #99988f; }
.bass-key--black { position: absolute; z-index: 2; top: 0; width: 8%; height: 62%; color: #eee; background: linear-gradient(#37373c, #131317); border: 1px solid #101013; border-bottom: 5px solid #030305; box-shadow: 2px 3px 5px rgba(0, 0, 0, .35); }
.bass-key--black[data-pitch='1'] { left: 8.5%; }
.bass-key--black[data-pitch='3'] { left: 21%; }
.bass-key--black[data-pitch='6'] { left: 46%; }
.bass-key--black[data-pitch='8'] { left: 58.5%; }
.bass-key--black[data-pitch='10'] { left: 71%; }
.bass-key:active { background: var(--pink); transform: translateY(2px); }
.bass-modifiers { margin-top: 18px; display: flex; align-items: center; gap: 9px; }
.bass-modifiers button[aria-pressed='true'] { color: var(--acid); background: #28282c; border-color: #131315; }
.bass-modifiers > span { margin-left: auto; font-size: 9px; line-height: 1.5; }
.share-wrap { margin-top: 20px; }
.share-wrap label { display: block; font-size: 9px; text-transform: uppercase; }
.share-wrap input { width: 100%; padding: 12px; margin-top: 8px; background: #fff; border: 1px solid #97978f; font-size: 12px; }
.machine button:disabled { opacity: .5; cursor: wait; }

.studio__disclaimer { max-width: 920px; margin: 55px auto 0; color: #8f898d; font-size: 10px; line-height: 1.7; text-align: center; }

.play-cta {
  padding: var(--section) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 50px;
  color: var(--black);
  background: var(--acid);
}
.play-cta > .label { grid-column: 1 / -1; }
.play-cta h2 { margin: 0; font-size: clamp(72px, 10vw, 158px); line-height: .76; letter-spacing: -.04em; }
.play-cta h2 strong { color: var(--pink); }
.play-cta > div { align-self: end; }
.play-cta p { margin: 0 0 30px; font-size: 16px; line-height: 1.6; }
.button--dark { color: var(--cream); background: var(--black); }
.button--dark:hover { color: var(--black); background: var(--pink); }
.play-cta > div > a:last-child { display: inline-flex; margin: 25px 0 0 18px; border-bottom: 2px solid; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1180px) {
  .play-hero { grid-template-columns: 1fr; }
  .play-hero__type { grid-column: 1; opacity: .25; justify-self: end; }
  .play-hero__copy { grid-column: 1; }
  .machine__edition { display: none; }
}

@media (max-width: 900px) {
  .studio__head,
  .play-cta { grid-template-columns: 1fr; }
  .studio__head { gap: 28px; }
  .play-cta > .label { grid-column: auto; }
  .machine__controls--drums { grid-template-columns: 1fr 1fr; }
  .voice-pads { grid-template-columns: repeat(3, 1fr); }
  .step-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 11px 6px; }
  .bass-knobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bass-performance { grid-template-columns: 1fr 1fr; }
  .pattern-bar { align-items: flex-start; flex-direction: column; }
  .machine__bottom > span { display: none; }
}

@media (max-width: 600px) {
  .play-hero { padding-top: 98px; min-height: 900px; }
  .play-hero__meta span:last-child { display: none; }
  .play-hero__copy h1 { font-size: clamp(86px, 28vw, 124px); }
  .play-hero__type { font-size: 47vw; opacity: .16; align-self: start; margin-top: 20vh; }
  .studio { padding-left: 14px; padding-right: 14px; }
  .studio__head { padding: 0 7px; }
  .studio__head h2 { font-size: 19vw; }
  .machine { padding: 22px 12px; margin: 0 -3px; border-radius: 9px; box-shadow: 0 9px 0 #83847e, 0 25px 46px rgba(0, 0, 0, .48); }
  .machine__top { gap: 10px; }
  .machine__brand { display: block; }
  .machine__brand b { font-size: 36px; }
  .machine__brand > span { display: block; margin-top: 5px; font-size: 7px; }
  .machine__display { min-width: 114px; padding: 10px; }
  .machine__display output { font-size: 16px; }
  .machine__controls { gap: 20px 16px; }
  .transport { min-height: 62px; font-size: 12px; }
  .voice-pads { gap: 9px; }
  .voice-pad { min-height: 84px; gap: 8px; }
  .voice-pad strong { font-size: 9px; }
  .pad-pattern { font-size: 8px; }
  .sequencer-heading span:nth-child(2) { display: none; }
  .drum-step { min-height: 64px; }
  .bass-step { min-height: 82px; }
  .preset-buttons { width: 100%; }
  .preset-buttons > span { flex-basis: 100%; margin-bottom: 5px; }
  .pattern-bar button { flex: 1; padding: 11px 8px; }
  .mute-controls,
  .beat-actions { width: 100%; }
  .beat-actions button,
  .mute-controls button { flex: 1; }
  .studio-cable { gap: 8px; margin: 52px 0 36px; }
  .studio-cable i { max-width: 68px; }
  .bass-knobs { gap: 23px 15px; }
  .knob-face { width: 50px; height: 50px; }
  .studio-mutes { flex-wrap: wrap; }
  .studio-mutes > span { flex-basis: 100%; margin: 4px 0 0; }
  .bass-editor { padding: 14px 9px; }
  .bass-keyboard { height: 92px; gap: 3px; }
  .bass-key { font-size: 8px; }
  .bass-modifiers { flex-wrap: wrap; gap: 7px; }
  .bass-modifiers button { flex: 1; padding: 12px 8px; }
  .bass-modifiers > span { flex-basis: 100%; margin: 4px 0 0; }
  .studio__disclaimer { padding: 0 10px; }
  .play-cta { gap: 30px; }
  .play-cta h2 { font-size: 21vw; }
  .play-cta > div > a:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .play-hero__type { transform: none; }
}
