@charset "UTF-8";

:root {
  color-scheme: dark;
  --forest: #202720;
  --deep: #161c18;
  --panel: #2a3028;
  --cream: #f1e8d7;
  --muted: #b2b6a8;
  --quiet: #939b8d;
  --amber: #d9b77c;
  --line: #ffffff13;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--forest); color: var(--cream); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; background: none; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.app-shell { max-width: 1512px; padding: 0 5.2% 126px; margin: 0 auto; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 37px; letter-spacing: -1.8px; display: inline-flex; align-items: center; line-height: 1; }
.brand-icon { display: grid; place-items: center; margin-right: 13px; width: 41px; height: 41px; border: 1px solid #d9b77c45; border-radius: 50%; color: var(--amber); }
.brand-icon svg { width: 23px; height: 23px; }
.brand-dot { color: var(--amber); }
.header-note { color: var(--quiet); font-size: 12px; padding-right: 42px; }
.about-button { display: inline-flex; gap: 9px; align-items: center; color: var(--muted); padding: 10px 0 10px 10px; font-size: 12px; }
.about-button svg { width: 17px; height: 17px; }
.about-button:hover { color: var(--cream); }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 33px 0 29px; }
h1 { font-family: var(--serif); font-size: clamp(28px, 2.85vw, 43px); font-weight: 400; line-height: 1.2; letter-spacing: -1.1px; margin: 0 0 12px; }
.welcome p { color: var(--muted); font-size: 13px; margin: 0; }
.instrumental { color: var(--quiet); font-size: 11px; display: flex; gap: 8px; align-items: center; }
.instrumental svg { width: 16px; height: 16px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 25px; }
.listening-space { min-width: 0; }
.cafe-scene { --scene-position: .5; position: relative; height: 429px; min-height: 350px; overflow: hidden; border-radius: 13px; background: #352e24; isolation: isolate; }
.scene-art { height: 100%; width: 100%; position: absolute; object-fit: cover; object-position: calc(var(--scene-position) * 100%) center; z-index: -3; }
.scene-animation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0c130d32 0%, transparent 38%, #090e0bb3 100%); z-index: -1; pointer-events: none; }
.scene-top { display: flex; justify-content: space-between; align-items: center; padding: 21px 23px; }
.scene-controls { display: flex; align-items: center; gap: 8px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 6px; height: 37px; padding: 0 10px; border-radius: 8px; font-size: 10px; }
.motion-toggle svg { width: 15px; height: 15px; }
.scene-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; padding: 9px 12px; border-radius: 30px; background: #1b211cb5; backdrop-filter: blur(8px); color: #eee8dd; }
.status-dot { width: 6px; height: 6px; background: #b8c1a5; border-radius: 50%; }
.is-playing .status-dot { background: #c8d6a8; box-shadow: 0 0 10px #c8d6a844; }
.icon-button { display: inline-grid; place-items: center; width: 37px; height: 37px; padding: 8px; border-radius: 8px; }
.icon-button:hover { background: #ffffff0c; }
.glass-button { background: #1b211ca6; border: 1px solid #ffffff18; backdrop-filter: blur(8px); }
.glass-button:hover { background: #31392ece; }
.glass-button svg { width: 17px; height: 17px; }
.scene-caption { position: absolute; left: 30px; bottom: 32px; }
.scene-location { color: #e3cead; font-size: 11px; }
.scene-caption h2 { margin: 7px 0 9px; font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -.8px; }
.scene-caption p { color: #e2d6c2bd; font-size: 12px; margin: 0; }
.scene-play { position: absolute; right: 27px; bottom: 41px; display: flex; align-items: center; gap: 8px; border: 1px solid #f1e8d73d; background: #f1e8d70e; backdrop-filter: blur(10px); padding: 12px 18px 12px 12px; border-radius: 30px; font-size: 12px; }
.scene-play:hover { background: #f1e8d723; }
.scene-play svg { width: 22px; height: 22px; }
.scene-corner { display: none; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 14px; gap: 10px; }
.section-heading h2 { font-size: 13px; font-weight: 500; margin: 0; }
.section-heading > span { font-size: 10px; color: var(--quiet); }
.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.mood { display: flex; align-items: center; gap: 11px; padding: 13px 10px; border: 1px solid #ffffff0f; border-radius: 9px; text-align: left; position: relative; min-height: 76px; background: #ffffff02; }
.mood:hover { background: #ffffff05; border-color: #d9b77c55; }
.mood.active { background: #d9b77c0b; border-color: #d9b77c75; }
.mood-art { display: grid; place-items: center; width: 41px; height: 44px; border-radius: 6px; flex-shrink: 0; }
.mood-art svg { width: 23px; height: 23px; }
.mood-art-cafe { color: #e8ca96; background: #6a5236; }
.mood-art-rain { color: #c0d2c9; background: #465b54; }
.mood-art-night { color: #d0bfd5; background: #514758; }
.mood-art-honey { color: #e3cc9b; background: #60553a; }
.mood-art-blue { color: #b9d1d8; background: #3e535b; }
.mood-copy { min-width: 0; }
.mood-copy strong { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.mood-copy > span { display: block; color: var(--quiet); font-size: 9px; white-space: nowrap; }
.separator { opacity: .5; margin: 0 2px; }
.mood-check { position: absolute; right: 8px; top: 8px; color: var(--amber); display: none; }
.mood-check svg { width: 10px; height: 10px; }
.mood.active .mood-check { display: block; }
.sidebar { display: flex; flex-direction: column; gap: 17px; }
.ambience-panel { background: var(--panel); padding: 23px 23px 17px; border-radius: 13px; border: 1px solid #ffffff07; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-heading h2 { font-size: 14px; font-weight: 500; margin: 0; }
.panel-description { color: var(--quiet); font-size: 11px; margin: 9px 0 23px; }
.tiny-lines { display: flex; gap: 3px; align-items: center; color: var(--quiet); }
.tiny-lines i { display: block; width: 2px; height: 10px; background: currentColor; border-radius: 5px; }
.tiny-lines i:nth-child(2) { height: 16px; }
.tiny-lines i:nth-child(3) { height: 7px; }
.sound-row + .sound-row { margin-top: 16px; }
.sound-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.sound-toggle { display: flex; align-items: center; gap: 11px; padding: 0; font-size: 12px; }
.sound-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #ffffff06; color: var(--quiet); }
.sound-icon svg { width: 18px; height: 18px; }
.sound-toggle[aria-pressed="true"] .sound-icon { color: var(--amber); background: #d9b77c11; }
output { font-variant-numeric: tabular-nums; }
.sound-top output { color: var(--quiet); font-size: 10px; }
input[type="range"] { --fill: 0%; display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 20px; margin: 0; border: 0; cursor: pointer; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 5px; background: linear-gradient(to right, var(--amber) var(--fill), #ffffff1b var(--fill)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 5px; background: #ffffff1b; }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--amber); border-radius: 5px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border-radius: 50%; background: var(--amber); border: 0; }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--amber); }
.ambience-note { display: block; color: var(--quiet); font-size: 10px; margin-top: 12px; }
.timer-panel { border: 1px solid #b2b6a821; border-radius: 13px; padding: 22px 23px 18px; position: relative; overflow: hidden; }
.timer-icon { width: 17px; height: 17px; color: var(--quiet); }
.timer-presets { display: flex; justify-content: center; margin-top: 20px; gap: 4px; }
.timer-presets button { padding: 6px 12px; color: var(--quiet); font-size: 10px; border-radius: 5px; }
.timer-presets button[aria-pressed="true"] { background: #ffffff0b; color: var(--cream); }
.timer-display { font-family: var(--serif); font-size: 52px; line-height: 1.25; font-variant-numeric: tabular-nums; text-align: center; margin-top: 10px; letter-spacing: 1px; }
.timer-caption { color: var(--quiet); text-align: center; font-size: 10px; margin: 5px 0 18px; }
.timer-actions { display: flex; justify-content: center; align-items: center; gap: 7px; }
.timer-start { background: #d9b77c14; border: 1px solid #d9b77c20; color: #e4c894; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 6px 10px; border-radius: 6px; font-size: 10px; flex: 1; }
.timer-start:hover { background: #d9b77c22; }
.timer-start svg { width: 17px; height: 17px; }
.timer-reset { width: 32px; height: 32px; color: var(--quiet); }
.timer-reset svg { width: 16px; height: 16px; }
.timer-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; }
.timer-progress span { display: block; height: 100%; width: 0; background: var(--amber); }
.page-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; color: #9aa38f; font-size: 10px; }
kbd { font-family: inherit; font-size: 9px; border: 1px solid #ffffff26; border-radius: 4px; padding: 3px 5px; color: var(--muted); margin-right: 4px; }
.player { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #181f1bf5; border-top: 1px solid #b2b6a820; backdrop-filter: blur(16px); padding: 19px 5.2% 20px; }
.player-inner { display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 30px; max-width: 1354px; margin: auto; }
.now-playing { display: flex; gap: 14px; align-items: center; min-width: 0; }
.record { position: relative; width: 51px; height: 51px; flex-shrink: 0; border-radius: 50%; background: repeating-radial-gradient(circle at center, #141814 0px, #141814 2px, #30352b 3px, #141814 4px); box-shadow: 0 1px 8px #0004; display: grid; place-items: center; animation: rotate-record 16s linear infinite; animation-play-state: paused; }
.record-label { border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; background: var(--amber); color: #51442f; }
.record-label svg { width: 13px; height: 13px; }
.is-playing .record { animation-play-state: running; }
.track-copy { min-width: 0; }
.track-copy strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.track-copy > span { display: block; font-size: 10px; color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transport { display: flex; align-items: center; gap: 12px; }
.transport-skip { color: var(--muted); }
.transport-skip svg { width: 20px; height: 20px; }
.play-button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #2b3024; }
.play-button:hover { background: #e7c78f; }
.play-button svg { width: 26px; height: 26px; }
.playback-time { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; width: 33px; margin-left: 4px; }
.loop-label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--quiet); }
.loop-label > span { font-size: 22px; line-height: 1; }
.player-settings { display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: var(--muted); }
.player-settings .icon-button svg { width: 18px; height: 18px; }
.player-divider { height: 22px; width: 1px; background: var(--line); margin: 0 3px; }
.player-settings input { width: 87px; }
.player-settings output { color: var(--quiet); width: 30px; font-size: 10px; text-align: right; }
.playback-progress { position: absolute; top: -1px; left: 0; width: 100%; height: 1px; }
.playback-progress > span { display: block; height: 100%; width: 0; background: #d9b77c80; }
.toast { position: fixed; z-index: 50; bottom: 111px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 40px); width: max-content; padding: 13px 21px; background: #e7d9bd; color: #292f26; font-size: 12px; line-height: 1.5; border-radius: 9px; box-shadow: 0 6px 20px #0003; }
dialog { border: 1px solid #ffffff1a; color: var(--cream); background: var(--forest); width: min(520px, calc(100% - 32px)); padding: 35px; border-radius: 16px; max-height: 85dvh; }
dialog::backdrop { background: #080e0bb5; backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 15px; right: 15px; color: var(--muted); }
.about-cup { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: #d9b77c12; color: var(--amber); }
dialog h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 18px 0 12px; }
dialog h3 { font-size: 14px; font-weight: 500; margin: 25px 0 5px; }
dialog p { color: var(--muted); line-height: 1.8; font-size: 12px; }
.keyboard-help { display: flex; flex-wrap: wrap; gap: 15px; margin: 23px 0; color: var(--muted); font-size: 10px; }
.dialog-download { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #d9b77c55; border-radius: 6px; color: var(--amber); font-size: 12px; }
.dialog-download svg { width: 17px; height: 17px; }
dialog .about-footnote { border-top: 1px solid var(--line); padding-top: 15px; color: var(--quiet); font-size: 10px; margin-bottom: 0; }
.exit-focus { position: fixed; top: 24px; right: 24px; z-index: 35; align-items: center; gap: 10px; background: #182119d9; border: 1px solid #ffffff25; border-radius: 30px; font-size: 12px; padding: 10px 17px; }
.exit-focus:not([hidden]) { display: flex; }
.exit-focus svg { width: 17px; height: 17px; }
body.focus-mode { overflow: hidden; }
.focus-mode .cafe-scene { position: fixed; inset: 0 0 90px; height: auto; border-radius: 0; z-index: 25; }
.focus-mode .scene-art { object-fit: cover; }
.focus-mode .scene-play, .focus-mode .scene-status, .focus-mode #focus-mode { display: none; }
.focus-mode .scene-top { position: absolute; top: 24px; left: 24px; padding: 0; }
.focus-mode .scene-caption { left: 6%; bottom: 8%; }
.focus-mode .scene-caption h2 { font-size: clamp(36px, 5vw, 70px); }
.focus-mode .player { z-index: 30; }
.noscript { position: fixed; inset: auto 20px 120px; background: var(--cream); color: var(--deep); padding: 20px; z-index: 100; }
.is-loading .play-button { animation: breathe 1s ease-in-out infinite; }
@keyframes rotate-record { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .55; } }
@media (min-width: 1450px) {
  .cafe-scene { height: 490px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; }
  .ambience-panel { padding: 26px 26px 22px; }
  .sound-row + .sound-row { margin-top: 22px; }
  .timer-panel { padding: 24px 26px; }
  .timer-display { font-size: 59px; }
  .mood { padding: 16px 12px; gap: 13px; }
  .mood-copy strong { font-size: 13px; }
  .mood-copy > span { font-size: 10px; }
}
@media (max-width: 1100px) {
  .app-shell { padding-left: 4%; padding-right: 4%; }
  .workspace { grid-template-columns: minmax(0, 1fr) 252px; gap: 19px; }
  .ambience-panel, .timer-panel { padding-left: 18px; padding-right: 18px; }
  .moods { gap: 8px; }
  .mood { gap: 8px; padding: 12px 8px; }
  .mood-art { width: 30px; height: 37px; }
  .mood-art svg { width: 18px; height: 18px; }
  .mood-copy strong { font-size: 11px; }
  .mood-copy > span { font-size: 8px; }
  .player { padding-left: 4%; padding-right: 4%; }
  .player-inner { gap: 10px; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); }
  .transport { gap: 5px; }
  .loop-label { display: none; }
  .player-settings { gap: 3px; }
  .player-settings input { width: 65px; }
}
@media (max-width: 820px) {
  .site-header { height: 80px; }
  .header-note { display: none; }
  .welcome { padding-top: 28px; }
  .instrumental { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .cafe-scene { height: 430px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .ambience-panel { padding: 22px; }
  .timer-panel { padding: 22px; }
  .timer-presets { margin-top: 30px; }
  .timer-display { font-size: 62px; margin-top: 18px; }
  .timer-actions { margin-top: 25px; }
  .mood { gap: 11px; padding: 13px 12px; }
  .mood-art { width: 40px; height: 42px; }
  .mood-copy strong { font-size: 12px; }
  .mood-copy > span { font-size: 9px; }
  .mood-section { margin-bottom: 3px; }
  .player-inner { grid-template-columns: minmax(150px, 1fr) auto auto; gap: 14px; }
  .playback-time, .player-divider, .player-settings output, #download-track { display: none; }
  .player-settings input { width: 70px; }
  .track-copy > span { max-width: 170px; }
}
@media (max-width: 560px) {
  .app-shell { padding: 0 20px 150px; }
  .site-header { height: 77px; }
  .brand { font-size: 33px; }
  .brand-icon { width: 36px; height: 36px; }
  .brand-icon svg { width: 21px; height: 21px; }
  .about-button { font-size: 11px; gap: 6px; }
  .welcome { padding: 29px 0 24px; }
  h1 { font-size: 29px; letter-spacing: -.8px; margin-bottom: 10px; }
  .welcome p { font-size: 11px; line-height: 1.8; max-width: 280px; }
  .cafe-scene { height: 370px; min-height: 320px; border-radius: 11px; }
  .cafe-scene { --scene-position: .62; }
  .motion-toggle { width: 37px; padding: 0; justify-content: center; }
  .motion-toggle span { display: none; }
  .scene-top { padding: 16px; }
  .scene-caption { left: 21px; bottom: 82px; }
  .scene-caption h2 { font-size: 31px; }
  .scene-play { left: 20px; right: auto; bottom: 21px; padding: 8px 16px 8px 10px; }
  .scene-caption p { font-size: 11px; }
  .section-heading { margin: 23px 0 13px; }
  .section-heading h2 { font-size: 12px; }
  .section-heading > span { display: none; }
  .moods { grid-template-columns: 1fr; gap: 9px; }
  .mood { min-height: 64px; padding: 10px 13px; gap: 14px; border-radius: 8px; }
  .mood-copy strong { font-size: 12px; margin-bottom: 4px; }
  .mood-copy > span { font-size: 10px; }
  .mood-art { width: 38px; height: 39px; }
  .mood-check { right: 17px; top: 25px; }
  .mood-check svg { width: 13px; height: 13px; }
  .sidebar { grid-template-columns: 1fr; gap: 16px; margin-top: 6px; }
  .ambience-panel { padding: 23px; }
  .ambience-note { margin-top: 15px; }
  .timer-panel { padding: 23px; }
  .timer-presets { margin-top: 20px; }
  .timer-display { font-size: 57px; margin-top: 12px; }
  .timer-actions { margin-top: 17px; }
  .timer-start { font-size: 12px; min-height: 40px; }
  .page-footer { justify-content: center; font-size: 10px; margin-top: 26px; }
  .page-footer > span:last-child { display: none; }
  .player { padding: 15px 18px calc(15px + env(safe-area-inset-bottom)); }
  .player-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .record { width: 39px; height: 39px; }
  .record-label { width: 19px; height: 19px; }
  .now-playing { gap: 10px; }
  .track-copy strong { font-size: 12px; margin-bottom: 5px; }
  .track-copy > span { font-size: 9px; max-width: 133px; }
  .transport { gap: 3px; }
  .transport-skip { width: 30px; }
  #previous-track { display: none; }
  .play-button { width: 42px; height: 42px; }
  .play-button svg { width: 24px; height: 24px; }
  .player-settings { grid-column: 1 / -1; justify-content: flex-end; gap: 10px; margin-top: 4px; }
  .player-settings input { display: block; width: 90px; }
  .player-settings #download-track { display: inline-grid; margin-right: auto; }
  .player-settings output { display: block; }
  .player-settings .icon-button { width: 29px; padding: 5px; }
  .toast { bottom: 132px; }
  .focus-mode .cafe-scene { bottom: calc(112px + env(safe-area-inset-bottom)); }
  .focus-mode .scene-caption { bottom: 8%; }
  .exit-focus { top: 18px; right: 18px; font-size: 11px; }
  .focus-mode .scene-top { top: 18px; left: 18px; }
  .exit-focus kbd { display: none; }
  dialog { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
