.drift-page { --paper: #f5f1e9; --ink: #302e28; --line: #d7d0c3; --muted: #777164; --accent: #70634f; background: var(--paper); }
.drift-page input { font: inherit; color: inherit; accent-color: var(--ink); }
.drift-page input[type=range] { appearance: none; -webkit-appearance: none; background: transparent; max-width: 100%; }
.drift-page input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--line); }
.drift-page input[type=range]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6.5px; border-radius: 50%; background: var(--ink); }
.drift-page input[type=range]::-moz-range-track { height: 1px; background: var(--line); }
.drift-page input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ink); }
.drift-header, .drift-page main, .drift-footer { width: min(1400px, calc(100% - 96px)); margin: auto; }
.drift-header { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.back, .drift-footer a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 10px; }
.drift-page svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.drift-header img { width: 67px; height: 64px; object-fit: contain; }
.drift-header .private-label { margin-left: auto; margin-right: 42px; }
.drift-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 37px 0 31px; }
.overline { font-size: 8px; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); }
.drift-heading h1 { margin: 10px 0 0; font: 90px/.88 Georgia, serif; font-weight: 400; letter-spacing: -.075em; }
.drift-heading h1 span { color: #9d866c; }
.worlds { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 28px; }
.worlds button { min-height: 44px; padding: 8px 22px; font-size: 11px; border-radius: 24px; transition: background .3s, color .3s; }
.worlds button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.worlds button.is-queued { outline: 1px dashed var(--accent); outline-offset: -4px; }
.sound-field { position: relative; height: clamp(380px, 53vh, 620px); overflow: hidden; isolation: isolate; touch-action: none; cursor: crosshair; border: 1px solid #d4ccbc; background: radial-gradient(ellipse at 50% 44%, #f8f5ec 0%, #ece6d9 70%, #e6dece 100%); }
.sound-field::after { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .13; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.45' filter='url(%23n)'/%3E%3C/svg%3E"); }
#drift-canvas { width: 100%; height: 100%; display: block; pointer-events: none; }
.field-top, .field-bottom { position: absolute; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; pointer-events: none; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; color: #746c5e; }
.field-top { top: 22px; }.field-bottom { bottom: 21px; }
#field-instruction { transition: opacity .4s; }.sound-field.is-playing #field-instruction { opacity: .65; }
.axis { position: absolute; color: #8d8270; pointer-events: none; font: italic 13px Georgia, serif; }
.axis-top { top: 46px; left: 50%; transform: translateX(-50%); }.axis-bottom { bottom: 45px; left: 50%; transform: translateX(-50%); }
.axis-left { top: 50%; left: 24px; transform: translateY(-50%); }.axis-right { top: 50%; right: 24px; transform: translateY(-50%); }
.field-cursor { position: absolute; pointer-events: none; left: 35%; top: 55%; width: 44px; height: 44px; border: 1px solid #77695766; border-radius: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; box-shadow: 0 0 0 5px #f5f1e92b; background: #f5f1e920; transition: width .25s, height .25s; }
.field-cursor i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.sound-field.is-held .field-cursor { width: 58px; height: 58px; border-color: var(--accent); }
#bar-dots { display: flex; gap: 8px; }#bar-dots i { width: 3px; height: 3px; border-radius: 50%; background: #b6a995; }#bar-dots i.active { background: #514537; box-shadow: 0 0 0 3px #b6a99533; }
.performance-controls { display: flex; align-items: center; gap: 18px; padding: 20px 0 14px; border-bottom: 1px solid var(--line); }
.performance-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; font-size: 11px; padding: 9px 19px; }
.performance-controls .play { border: 1px solid var(--ink); border-radius: 26px; min-width: 114px; }
.play[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.performance-controls .lift { border: 1px solid #a79780; border-radius: 26px; min-width: 144px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background .3s, box-shadow .3s; }
.lift[aria-pressed=true] { background: #d7c8ae88; box-shadow: inset 0 0 20px #b6a28a33; }
.lift.is-queued { border-style: dashed; }
.variation-controls { display: flex; gap: 0; }.performance-controls #undo { padding-left: 8px; padding-right: 8px; min-width: 44px; }
.record-controls { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.performance-controls .record-set { border: 1px solid var(--line); border-radius: 26px; font-size: 10px; }
.record-set i { width: 6px; height: 6px; border-radius: 50%; background: #98705b; }
.record-set[aria-pressed=true] { background: #dec8b577; border-color: #98705b; }
#recording-time { font-size: 9px; font-variant-numeric: tabular-nums; min-width: 29px; color: var(--muted); }
.status-line { display: flex; justify-content: space-between; gap: 20px; min-height: 40px; padding: 12px 0; font-size: 9px; color: var(--muted); }
.recording-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 10px; }
#recording-exports { margin-left: auto; }.export-formats { display: flex; gap: 5px; }
.export-formats button { min-height: 44px; min-width: 50px; padding: 8px 13px; border: 1px solid transparent; border-radius: 22px; }
.export-formats button[aria-pressed=true] { border-color: var(--line); background: #e5ded15c; }
#download-set { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); }
.fine-controls { display: flex; align-items: center; gap: 44px; border-top: 1px solid var(--line); padding: 12px 0 22px; margin-top: 5px; }
.fine-controls label { display: flex; align-items: center; gap: 15px; font-size: 9px; color: var(--muted); }
.fine-controls output { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 18px; }
.fine-controls input { width: 140px; min-height: 44px; }.fine-controls button { margin-left: auto; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 10px; }
.drift-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); min-height: 68px; gap: 20px; font-size: 9px; color: var(--muted); }
.drift-footer a { font-size: 9px; }.drift-footer a:last-child { color: var(--ink); }
.skip { position: fixed; top: 15px; left: 15px; transform: translateY(-200%); z-index: 20; padding: 15px; background: var(--paper); }.skip:focus { transform: none; }
@media(min-width:1000px) and (max-height:850px) { .drift-header { height: 72px; }.drift-header img { width: 54px; height: 53px; }.drift-heading { padding: 23px 0; }.drift-heading h1 { font-size: 70px; }.sound-field { height: 390px; }.performance-controls { padding-top: 15px; } }
@media(max-width:800px) { .drift-header, .drift-page main, .drift-footer { width: calc(100% - 48px); }.drift-header { height: 80px; }.drift-heading h1 { font-size: 76px; }.worlds button { padding: 8px 15px; }.performance-controls { gap: 6px; flex-wrap: wrap; }.performance-controls button { padding: 8px 13px; }.performance-controls .play { min-width: 90px; }.performance-controls .lift { min-width: 130px; }.record-controls { gap: 8px; }.fine-controls { gap: 20px; }.fine-controls input { width: 100px; } }
@media(max-width:560px) { .drift-header, .drift-page main, .drift-footer { width: calc(100% - 32px); }.drift-header { height: 68px; }.drift-header img { width: 48px; height: 47px; }.drift-header .private-label { font-size: 7px; margin-right: 20px; }.back { font-size: 9px; gap: 9px; }.drift-heading { align-items: start; flex-direction: column; gap: 22px; padding: 26px 0 20px; }.drift-heading h1 { font-size: 76px; }.overline { font-size: 7px; }.worlds { width: 100%; }.worlds button { flex: 1; font-size: 10px; padding: 8px 10px; }.sound-field { height: 430px; }.field-top, .field-bottom { left: 15px; right: 15px; font-size: 7px; }.axis-left { left: 15px; }.axis-right { right: 15px; }.axis { font-size: 12px; }.performance-controls { display: grid; grid-template-columns: .9fr 1.1fr 1.1fr; gap: 10px 8px; padding-top: 15px; }.performance-controls .play, .performance-controls .lift { min-width: 0; }.performance-controls button { font-size: 10px; gap: 8px; padding: 8px 10px; }.variation-controls { justify-content: end; }.variation-controls #evolve svg { display: none; }.record-controls { grid-column: 1 / -1; justify-content: space-between; margin: 0; }.record-controls .record-set { padding: 4px 0; border: 0; border-radius: 0; }.status-line { gap: 15px; font-size: 8px; }.status-line #lift-help { max-width: 128px; text-align: right; }.fine-controls { flex-wrap: wrap; gap: 0 20px; padding-bottom: 14px; }.fine-controls label { flex: 1; gap: 10px; }.fine-controls input { width: 75px; flex: 1; min-width: 30px; }.fine-controls button { min-height: 44px; font-size: 9px; }.recording-meta { gap: 5px 12px; }.recording-meta #record-status { width: 100%; }#recording-exports { margin-left: 0; }#download-set { margin-left: auto; font-size: 9px; }.drift-footer { gap: 10px; font-size: 8px; }.drift-footer a { font-size: 8px; } }
@media(prefers-reduced-motion:reduce) { .field-cursor, .worlds button, .lift { transition: none; } }

/* The surface carries the depth; its setting stays a quiet instrument control. */
.drift-page .fine-controls { flex-wrap: wrap; gap: 6px 28px; }
.drift-page .fine-controls .depth-control { gap: 12px; }
.drift-page .depth-control output { min-width: 32px; color: var(--muted); }
.drift-page .depth-control input { width: 115px; }
.drift-page .sound-field { background: radial-gradient(ellipse at 42% 33%, #fcfaf4 0%, #eee8dc 66%, #e5ddce 100%); }
.drift-page .sound-field::after { opacity: .08; }
.drift-page .field-cursor { width: 34px; height: 34px; opacity: .65; }
.drift-page .sound-field.is-held .field-cursor { width: 46px; height: 46px; opacity: 1; }
@media(max-width:560px) {
  .drift-page .fine-controls { gap: 2px 20px; }
  .drift-page .fine-controls .depth-control { flex: 1 1 55%; }
  .drift-page .depth-control input { width: auto; max-width: 180px; }
}
