:root {
  color-scheme: dark;
  --bg: #101719;
  --panel: #182124;
  --line: #2c373b;
  --text: #f0f3ed;
  --muted: #a0afad;
  --accent: #a9cffa;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a, input { touch-action: manipulation; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
a:hover { color: var(--accent); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button.button { border: 0; cursor: pointer; font-family: inherit; }
button.button:disabled { cursor: wait; opacity: .65; }
.site-header, main, footer { width: min(1160px, calc(100% - 80px)); margin: auto; }
.site-header { height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 750; font-size: 22px; letter-spacing: -.8px; display: inline-flex; align-items: center; }
.mark { width: 40px; height: 40px; margin-right: 10px; border-radius: 7px; }
.domain { font-weight: 400; color: var(--muted); }
nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
nav a { white-space: nowrap; }
.nav-open { border: 1px solid #526173; border-radius: 5px; padding: 11px 16px; }
.nav-open span { margin-left: 25px; }

body:has(.landing-ocean) { isolation: isolate; }
.landing-ocean { position: fixed; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .35; }
.landing-ocean[hidden] { display: none; }
.hero { padding-top: 82px; }
.hero-copy { max-width: 620px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
h1 { font-size: clamp(42px, 4.4vw, 62px); font-weight: 550; letter-spacing: -.045em; line-height: 1.08; margin: 0 0 25px; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 26px; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
h3 { font-size: 19px; font-weight: 500; }
.intro { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 550px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.button { font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border-radius: 5px; padding: 15px 20px; transition: background .15s; }
.primary { background: var(--accent); color: #16212d; }
.primary:hover { color: #16212d; background: #c4dfff; }
.secondary { border: 1px solid #596a7c; }
.text-link { font-size: 13px; border-bottom: 1px solid #596a7c; padding: 7px 0; display: inline-block; }
.text-link span { margin-left: 13px; }
.footnote { font-size: 12px; color: var(--muted); margin-top: 20px; line-height: 1.8; }
.origin { border-left: 1px solid #526173; padding-left: 32px; }
.origin .eyebrow { margin-bottom: 16px; }
.origin h2 { font-size: 22px; margin: 0 0 18px; }
.origin blockquote { margin: 0; }
.origin blockquote p { font-size: 17px; line-height: 1.85; color: var(--muted); margin: 0 0 15px; }
.origin blockquote p:last-child { margin-bottom: 0; }

.multiplayer { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; padding: 46px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.multiplayer .eyebrow { margin-bottom: 16px; }
.multiplayer h2 { font-size: 34px; margin: 0; max-width: 350px; }
.multiplayer-copy > p { font-size: 15px; color: var(--muted); line-height: 1.8; margin: 0 0 16px; }
.multiplayer-copy > .footnote { font-size: 12px; margin: 20px 0 0; }
.section-links { display: flex; gap: 25px; flex-wrap: wrap; }
.examples { padding: 55px 0 65px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { font-size: 30px; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.example-card { border: 1px solid var(--line); border-radius: 5px; padding: 22px; background: var(--panel); transition: border-color .15s; }
.example-card:hover { border-color: #93b4da; color: var(--text); }
.waveform { display: flex; align-items: center; justify-content: center; gap: 4px; height: 100%; color: var(--accent); }
.waveform i { flex: 1; max-width: 5px; height: var(--bar); border-radius: 3px; background: currentColor; opacity: .65; }
.track-art { height: 90px; margin-bottom: 24px; }
.track-art-1 .waveform { color: #c6b4e0; }
.track-art-2 .waveform { color: #d9be89; }
.example-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 25px 0 12px; }
.example-card h3 { font-size: 20px; letter-spacing: -.02em; margin: 0; }
.example-card h3 span { float: right; color: var(--muted); margin-left: 8px; }

footer { display: flex; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 12px; }
footer .wordmark { font-size: 15px; color: var(--text); }
footer > div { display: flex; gap: 24px; }
.information, .share-page { max-width: 810px; margin: 70px auto 100px; min-height: 55vh; }
.information h1 { font-size: 48px; }
.information p { color: var(--muted); line-height: 1.8; }
.information .intro { max-width: 680px; }
.guide { list-style: none; padding: 0; margin: 40px 0; }
.guide li { border-top: 1px solid var(--line); padding: 20px 0; }
.guide h2 { font-size: 22px; margin: 0 0 10px; }
.guide li p { font-size: 14px; margin: 0; }
.guide-multiplayer { margin-top: 65px; padding-top: 35px; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.guide-multiplayer .eyebrow { margin-bottom: 12px; }
.guide-multiplayer > h2 { margin-top: 0; }
.info-panel { border: 1px solid var(--line); background: var(--panel); padding: 24px 30px; border-radius: 5px; margin: 24px 0; }
.info-panel h2, .info-panel h3 { margin-top: 0; }
.info-panel p { font-size: 14px; }
code { font-size: .9em; color: var(--text); overflow-wrap: anywhere; }
.roadmap-row { display: flex; gap: 25px; border-top: 1px solid var(--line); padding: 30px 0; }
.roadmap-row h2 { margin: 0 0 8px; }
.roadmap-row p { margin: 0; }
.pill { align-self: start; flex: none; border: 1px solid #638551; border-radius: 99px; font-size: 10px; padding: 5px 10px; color: #c2ef98; }
.pill.future { color: var(--muted); border-color: var(--line); }
.share-page { text-align: center; max-width: 850px; padding-top: 35px; }
.share-page h1 { overflow-wrap: anywhere; }
.song-artist { color: var(--muted); font-size: 18px; overflow-wrap: anywhere; margin: 12px 0; }
.song-description { max-width: 620px; margin: 20px auto; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.share-page .intro { margin: 20px auto 28px; max-width: 620px; }
.share-wave { height: 105px; max-width: 440px; margin: 0 auto 30px; }
.snapshot-stats { display: flex; justify-content: center; gap: 26px; font-size: 12px; color: var(--muted); margin-bottom: 32px; }
.snapshot-player { margin: 28px auto; }
.share-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.play-button { display: grid; place-items: center; flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #16212d; cursor: pointer; transition: background .15s; }
.play-button:hover { background: #c4dfff; }
.play-button:disabled { cursor: wait; }
.play-button svg { width: 25px; height: 25px; fill: currentColor; }
.play-icon { margin-left: 2px; }
.play-button .pause-icon, .play-button .loading-icon { display: none; }
[data-state="playing"] .play-icon, [data-state="loading"] .play-icon { display: none; }
[data-state="playing"] .pause-icon { display: block; }
[data-state="loading"] .loading-icon { display: block; width: 23px; height: 23px; border: 2px solid #16212d40; border-top-color: currentColor; border-radius: 50%; animation: spin .85s linear infinite; }
[data-state="unsupported"] .play-button { opacity: .5; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-status { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 15px 0 0; }
.snapshot-player:not([data-state="error"]):not([data-state="unsupported"]) .player-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.snapshot-player[data-state="error"] .player-status { color: #f4ac9e; }

@media (max-width: 1050px) {
  .site-header, main, footer { width: calc(100% - 48px); }
  .hero { gap: 45px; padding: 60px 0; }
  .multiplayer { gap: 45px; }
  .hero-actions { gap: 18px; }
  .example-card { padding: 18px; }
}

@media (max-width: 760px) {
  .site-header, main, footer { width: calc(100% - 36px); }
  .site-header { height: 78px; }
  nav { gap: 17px; }
  nav > a:not(.nav-open) { display: none; }
  .hero { grid-template-columns: 1fr; padding: 45px 0; gap: 36px; }
  .hero h1 { font-size: clamp(42px, 8vw, 58px); }
  .intro { font-size: 16px; }
  .origin { padding-left: 22px; }
  .origin blockquote p { font-size: 16px; }
  .multiplayer { grid-template-columns: 1fr; gap: 22px; padding: 35px 0; }
  .multiplayer h2 { font-size: 30px; max-width: none; }
  .section-links { gap: 12px 25px; }
  .examples { padding: 40px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .example-grid { grid-template-columns: 1fr; gap: 14px; }
  .track-art { height: 65px; }
  .example-meta { margin: 0 0 16px; }
  footer { flex-wrap: wrap; justify-content: flex-start; gap: 18px; }
  footer > div { flex-basis: 100%; gap: 22px; }
  .information, .share-page { margin: 45px auto 65px; }
  .information h1 { font-size: 39px; }
  .info-panel { padding: 22px; }
  .roadmap-row { gap: 16px; }
  .share-page { padding-top: 0; }
  .share-actions { gap: 10px; }
  .share-actions .button { padding: 15px 12px; font-size: 12px; }
  .play-button { width: 46px; height: 46px; }
}

@media (max-width: 390px) {
  .button { padding: 15px 17px; }
  .nav-open { padding: 9px; }
  .nav-open span { margin-left: 9px; }
  .snapshot-stats { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .loading-icon { animation-duration: 2s !important; }
}
