@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0e1011; --ink-2: #15191b; --ink-3: #1d2326; --line: rgba(255,255,255,.13); --line-2: rgba(255,255,255,.22);
  --text: #ecebe6; --dim: #9ea19b; --faint: #6f736e;
  --paper: #f3efe6; --paper-2: #e8e2d4; --paper-ink: #1b1a17; --paper-dim: #6d685c; --paper-line: #d3ccba;
  --amber: #f2b134; --red: #d4402f; --green: #3f9d6a; --blue: #4c8bd6;
  --radius: 6px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font: 14px/1.45 var(--sans); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
kbd { display: inline-block; min-width: 1.65em; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; font: 600 11px/1.5 var(--sans); text-align: center; color: var(--text); background: transparent; }

/* ---------------------------------------------------------------- start / pause screens */
#screen { position: fixed; inset: 0; z-index: 30; display: grid; background: var(--ink); overflow: auto; }
#screen.clear { background: rgba(8,10,11,.74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#screen.gone { display: none; }
.shell { min-height: 100%; display: grid; grid-template-columns: minmax(340px, 480px) 1fr; }
.side { padding: 40px clamp(24px, 4vw, 56px) 32px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; font-size: 15px; }
.brand i { width: 22px; height: 22px; border-radius: 5px; background: var(--amber); display: grid; place-items: center; }
.brand i::before { content: ""; width: 12px; height: 10px; background: var(--ink); clip-path: polygon(0 100%, 0 45%, 28% 45%, 28% 0, 62% 0, 62% 60%, 100% 60%, 100% 100%); }
.side h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -.028em; font-weight: 650; margin: clamp(36px, 9vh, 96px) 0 14px; max-width: 12em; }
.side .lede { color: var(--dim); max-width: 30em; margin: 0 0 28px; font-size: 15px; }
.stepbody { flex: 1; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--dim); font-weight: 500; }
.input { width: 100%; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 12px; font-size: 15px; transition: border-color .12s; }
.input:hover { border-color: rgba(255,255,255,.34); }
.input:focus { outline: none; border-color: var(--amber); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn { appearance: none; cursor: pointer; border: 1px solid var(--line-2); background: transparent; border-radius: var(--radius); padding: 11px 16px; font-weight: 600; font-size: 14px; transition: background .12s, border-color .12s; }
.btn:hover { background: rgba(255,255,255,.07); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #1a1405; }
.btn.primary:hover { background: #f7bf50; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.msg { min-height: 20px; font-size: 13px; color: var(--dim); margin: 10px 0 0; }
.msg.err { color: #ff8b78; }
.recent { margin-top: 26px; }
.recent h3, .sect { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; background: transparent; cursor: pointer; }
.chip:hover { background: rgba(255,255,255,.07); }
.results { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.results button { width: 100%; text-align: left; display: grid; gap: 1px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; cursor: pointer; }
.results button:hover, .results button:focus-visible { border-color: var(--amber); background: rgba(242,177,52,.06); }
.results b { font-weight: 600; font-size: 15px; } .results span { color: var(--dim); font-size: 13px; }
.foot { margin-top: 28px; font-size: 12px; color: var(--faint); max-width: 36em; }
.foot a { text-decoration-color: var(--faint); }
.stage { position: relative; background: var(--paper); min-height: 320px; overflow: hidden; display: grid; place-items: center; }
.stage canvas { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.stage canvas.on { opacity: 1; }
.stage .cap { position: absolute; left: 24px; bottom: 20px; right: 24px; color: var(--paper-ink); display: flex; justify-content: space-between; align-items: end; gap: 16px; pointer-events: none; }
.stage .cap b { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.02em; font-weight: 650; background: rgba(243,239,230,.88); padding: 2px 10px 4px; border-radius: 3px; }
.stage .cap small { font-size: 12px; background: rgba(243,239,230,.88); padding: 2px 8px; border-radius: 3px; color: var(--paper-dim); }
.stage .ph { color: var(--paper-dim); font-size: 13px; letter-spacing: .02em; text-align: center; padding: 24px; max-width: 24em; }
.stage .ph svg { width: 76px; height: 76px; margin-bottom: 10px; stroke: var(--paper-line); fill: none; stroke-width: 2; }
.bar { height: 3px; background: var(--ink-3); border-radius: 2px; overflow: hidden; margin: 14px 0 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .25s ease; }
.stat { color: var(--dim); font-size: 13px; min-height: 20px; }
.legend { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: #cfd1cb; }
.legend li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: baseline; }
.legend .k { display: flex; gap: 4px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 11px; font-size: 13px; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; } .seg button:hover { background: rgba(255,255,255,.07); } .seg button.on { background: var(--text); color: var(--ink); font-weight: 600; }
.pausegrid { display: grid; gap: 18px; margin: 4px 0 24px; }
.pausegrid .lbl { font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#place { position: absolute; left: 16px; top: 16px; background: rgba(14,16,17,.86); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 13px 10px; min-width: 210px; max-width: min(360px, calc(100vw - 230px)); }
#street { font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#where { display: flex; justify-content: space-between; gap: 14px; color: var(--dim); font-size: 12px; margin-top: 2px; }
#where span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#clock { font-variant-numeric: tabular-nums; flex: none; color: var(--text); }
#mapwrap { position: absolute; right: 16px; top: 16px; width: 168px; height: 168px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
#minimap { width: 100%; height: 100%; display: block; }
#north { position: absolute; left: 7px; top: 5px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--dim); }
#cross { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.45); transition: all .12s; }
#cross.on { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 3px; background: transparent; border: 1.5px solid var(--amber); box-shadow: none; }
#card { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); width: min(430px, calc(100vw - 32px)); background: rgba(14,16,17,.92); border: 1px solid var(--line-2); border-radius: var(--radius); display: grid; grid-template-columns: 4px 1fr; overflow: hidden; }
#card .bar4 { background: var(--accent, var(--amber)); }
#card .body { padding: 13px 16px 12px; }
#card .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
#card .title { font-size: 19px; font-weight: 650; letter-spacing: -.015em; margin: 3px 0 1px; }
#card .sub { color: #c4c6c0; font-size: 13.5px; }
#card .meta { margin-top: 11px; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--dim); flex-wrap: wrap; }
#card .meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pip { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); display: inline-block; }
.pip.hit { background: var(--red); border-color: var(--red); }
#card.doomed { border-color: rgba(212,64,47,.65); }
#toasts { position: absolute; left: 16px; bottom: 56px; display: grid; gap: 6px; width: min(380px, calc(100vw - 32px)); }
.toast { background: rgba(14,16,17,.9); border: 1px solid var(--line); border-left: 3px solid var(--dim); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; animation: in .18s ease-out; transition: opacity .4s; }
.toast.good { border-left-color: var(--green); } .toast.bad { border-left-color: var(--red); } .toast.crew { border-left-color: var(--amber); } .toast.info { border-left-color: var(--blue); }
.toast.out { opacity: 0; } .toast b { font-weight: 650; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#keys { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 16px; font-size: 12px; color: var(--dim); transition: opacity .6s; flex-wrap: wrap; max-width: calc(100vw - 340px); }
#keys span { white-space: nowrap; } #keys.faded { opacity: .0; }
#taste { position: absolute; right: 16px; top: 196px; width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 230px); overflow: auto; pointer-events: auto; background: rgba(14,16,17,.94); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; }
#taste h2 { font-size: 15px; margin: 0 0 4px; letter-spacing: -.01em; }
#taste p { color: var(--dim); font-size: 12.5px; margin: 0 0 12px; }
.tbar { display: grid; grid-template-columns: 108px 1fr 44px; gap: 8px; align-items: center; font-size: 12.5px; margin: 5px 0; }
.tbar .track { position: relative; height: 6px; background: var(--ink-3); border-radius: 3px; }
.tbar .track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-2); }
.tbar .fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.tbar .n { text-align: right; color: var(--faint); font-size: 11px; }
#taste .sugg { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
#taste .sugg b { color: var(--text); font-weight: 600; }
#credit { position: fixed; right: 10px; bottom: 6px; z-index: 40; font-size: 10.5px; color: rgba(236,235,230,.62); text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: auto; }
body[data-screen="menu"] #credit { color: #6d685c; text-shadow: none; }
#credit a { text-decoration: none; } #credit a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- booking modal */
#modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(8,10,11,.72); padding: 16px; overflow: auto; }
.sheet { width: min(940px, 100%); background: var(--paper); color: var(--paper-ink); border-radius: 8px; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.sheet .l { background: var(--paper-2); padding: 28px; border-right: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 18px; }
.sheet .r { padding: 28px; display: flex; flex-direction: column; }
.sheet h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
.sheet .sub { color: var(--paper-dim); font-size: 13.5px; margin: 0 0 18px; }
.sheet canvas { width: 100%; aspect-ratio: 2/1; border-radius: 4px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.18); background: #ddd; }
.sheet .where { font-size: 13px; color: var(--paper-dim); line-height: 1.5; }
.sheet .where b { color: var(--paper-ink); font-weight: 600; }
.sheet .field label { color: var(--paper-dim); }
.sheet .input { background: #fff; border-color: var(--paper-line); color: var(--paper-ink); }
.sheet .input:hover { border-color: #b7af9a; } .sheet .input:focus { border-color: #1b1a17; }
.sheet .count { float: right; font-weight: 400; color: #9c9684; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--paper); cursor: pointer; padding: 0; }
.swatches button.on { border-color: var(--paper-ink); }
.sheet .seg { border-color: var(--paper-line); } .sheet .seg button { border-right-color: var(--paper-line); color: var(--paper-ink); } .sheet .seg button:hover { background: rgba(0,0,0,.05); } .sheet .seg button.on { background: var(--paper-ink); color: var(--paper); }
.price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--paper-line); display: flex; align-items: baseline; justify-content: space-between; }
.price b { font-size: 28px; letter-spacing: -.02em; font-weight: 650; } .price span { color: var(--paper-dim); font-size: 13px; }
.sheet .btn { border-color: var(--paper-line); } .sheet .btn:hover { background: rgba(0,0,0,.05); }
.sheet .btn.primary { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); } .sheet .btn.primary:hover { background: #34312a; }
.sheet .actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 12px; }
.sheet .fine { color: var(--paper-dim); font-size: 11.5px; margin: 12px 0 0; }
.sheet .err { color: #b3261e; font-size: 12.5px; margin: 4px 0 0; min-height: 0; }
.sheet .field .input.bad { border-color: #b3261e; }
.sheet .note { background: #fff; border: 1px solid var(--paper-line); border-radius: 6px; padding: 12px 14px; font-size: 13px; color: var(--paper-dim); }
.spin { width: 18px; height: 18px; border: 2px solid var(--paper-line); border-top-color: var(--paper-ink); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; vertical-align: -4px; margin-right: 8px; }
@keyframes sp { to { transform: rotate(360deg); } }
.center-sheet { width: min(460px, 100%); background: var(--paper); color: var(--paper-ink); border-radius: 8px; padding: 30px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.center-sheet h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; font-weight: 650; } .center-sheet p { margin: 0 0 18px; color: var(--paper-dim); }
.center-sheet .btn { border-color: var(--paper-line); } .center-sheet .btn.primary { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .side { border-right: 0; } .stage { min-height: 260px; order: -1; }
  .sheet { grid-template-columns: 1fr; } .sheet .l { border-right: 0; border-bottom: 1px solid var(--paper-line); }
  #keys { display: none; } #mapwrap { width: 120px; height: 120px; } #taste { top: 146px; } #place { max-width: calc(100vw - 160px); min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

#music { position: fixed; left: 16px; bottom: 44px; width: min(300px, calc(100vw - 32px)); z-index: 45; border-radius: 12px; overflow: hidden; background: #121212; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
#music iframe { display: block; border: 0; width: 100%; height: 80px; color-scheme: dark; }
.musicrow { display: flex; gap: 8px; } .musicrow .input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; }
.musicnote { font-size: 12px; color: var(--dim); margin-top: 6px; line-height: 1.45; } .musicnote.err { color: #f08a7c; }
