@font-face { font-family: 'Gothic A1'; src: url(fonts/gothica1-400.woff2) format('woff2'); font-weight: 400 500; font-display: block; }
@font-face { font-family: 'Gothic A1'; src: url(fonts/gothica1-700.woff2) format('woff2'); font-weight: 600 700; font-display: block; }
@font-face { font-family: 'Gothic A1'; src: url(fonts/gothica1-800.woff2) format('woff2'); font-weight: 800 900; font-display: block; }
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
@font-face { font-family: Serif; src: url(fonts/instrument-italic.woff2) format('woff2'); font-style: italic; font-display: block; }
@font-face { font-family: Mono; src: url(fonts/geistmono.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
:root { --bg: #f3ece0; --ink: #161618; --mute: #8a857c; --line: rgba(0,0,0,.09); --sans: Inter, 'Gothic A1', system-ui, sans-serif; --kr: 'Gothic A1', Inter, system-ui, sans-serif; --mono: Mono, ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 15px/1.5 var(--kr); -webkit-font-smoothing: antialiased; }
a { color: inherit; } [hidden] { display: none !important; } button, input { font: inherit; color: inherit; }
.top, .intro, .stage, .how, .foot { max-width: 1440px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 2px; }
.brand { display: flex; align-items: center; gap: 9px; } .brand b { font: 800 18px var(--kr); letter-spacing: -.03em; } .brand i { font: 500 12px var(--mono); color: var(--mute); font-style: normal; }
.gh { font: 600 14px var(--sans); text-decoration: none; }
.intro { padding-top: 18px; }
h1 { margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; } h1 .q { font: 800 40px/1.15 var(--kr); letter-spacing: -.04em; } h1 em { font: italic 400 30px var(--sans); font-family: Serif, serif; color: #a2340f; }
.lede { max-width: 860px; margin: 10px 0 0; color: #4b463e; } .lede b { color: var(--ink); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; margin-top: 18px !important; height: calc(100vh - 210px); min-height: 520px; max-height: 860px; }
.plate { position: relative; border-radius: 22px; overflow: hidden; background: #7a4c2c; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 30px rgba(60,30,0,.18); transition: transform .9s cubic-bezier(.3,.7,.2,1); }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: none; }
.done { position: absolute; left: 0; right: 0; top: 22px; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; animation: pop .7s cubic-bezier(.2,.9,.3,1.3) both; }
.done b { font: 800 34px var(--kr); color: #fff; letter-spacing: -.03em; text-shadow: 0 2px 10px rgba(40,10,0,.55); } .done span { font: 700 14px var(--kr); color: #fff; background: rgba(40,14,0,.6); padding: 3px 11px; border-radius: 99px; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.9); } to { opacity: 1; transform: none; } }
.side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.lab { display: block; font: 700 12px var(--kr); color: var(--mute); margin-bottom: 4px; }
.meter { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.used { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; } .used .lab { width: 100%; margin: 0; } .used b { font: 800 46px/1 var(--sans); letter-spacing: -.04em; color: #b3150e; font-variant-numeric: tabular-nums; } .used i { font: 700 18px var(--sans); font-style: normal; color: #b3150e; } .used .g { margin-left: auto; font: 700 16px var(--sans); color: #4b463e; font-variant-numeric: tabular-nums; }
.gauge { height: 8px; background: #f1e6d6; border-radius: 99px; overflow: hidden; margin-top: 10px; } .gauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e3261b, #a50f09); border-radius: 99px; }
.spoon { margin: 6px 0 0; font: 600 12.5px var(--kr); color: var(--mute); }
.now { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .now > div { background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 0 0 1px var(--line); } .now b { font: 800 22px var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); flex: 1 1 150px; min-height: 130px; max-height: 260px; } #ch { width: 100%; height: 100%; display: block; }
.pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .pick .lab { margin: 0; width: 52px; } .pick input[type=range] { flex: 1; accent-color: #c1150f; min-width: 120px; } .pick > b { font: 700 13px var(--sans); font-variant-numeric: tabular-nums; width: 66px; text-align: right; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; } .chip { border: 0; border-radius: 99px; padding: 6px 10px; font: 700 13px var(--kr); background: #eadfcd; color: #3d3a34; cursor: pointer; white-space: nowrap; } .chip:hover { background: #e2d4bd; } .chip.on { background: #161618; color: #fff; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.pill { border: 0; border-radius: 99px; padding: 10px 16px; font: 800 14px var(--kr); background: #c1150f; color: #fff; cursor: pointer; } .pill:hover { background: #a8110b; } .pill.ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.12); } .pill.ghost:hover { background: #fbf6ec; } .pill:disabled { opacity: .4; cursor: default; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 34px; padding-bottom: 10px; } .how h3 { margin: 0 0 6px; font: 800 16px var(--kr); } .how p { margin: 0; color: #4b463e; font-size: 14px; }
.foot { padding-top: 18px; padding-bottom: 30px; color: var(--mute); font-size: 13px; }
@media (max-width: 900px) {
  .top, .intro, .stage, .how, .foot { padding-left: 16px; padding-right: 16px; }
  h1 .q { font-size: 28px; } h1 em { font-size: 21px; } .lede { font-size: 14px; }
  .stage { display: flex; flex-direction: column; height: auto; max-height: none; min-height: 0; gap: 12px; }
  .plate { height: 66vw; min-height: 250px; max-height: 520px; border-radius: 16px; }
  .meter { padding: 10px 14px; } .used b { font-size: 36px; } .chart { flex: none; height: 120px; min-height: 0; } .acts { margin-top: 0; grid-template-columns: repeat(4, 1fr); } .acts .pill { padding: 10px 4px; }
  .how { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } .pill { font-size: 13px; } }
body.film { overflow: hidden; } .film .lede, .film .how, .film .foot { display: none; }
.film .top { padding-top: 10px; } .film .intro { padding-top: 4px; } .film h1 .q { font-size: 30px; } .film h1 em { font-size: 22px; }
.film .top, .film .intro { padding-left: 24px; padding-right: 24px; } .film .stage { margin: 12px 24px 0 !important; padding: 0 !important; height: calc(100vh - 104px); max-height: none; }
.tall h1 em { display: none; } .tall h1 .q { font-size: 27px; }
.tall .stage { margin: 10px 12px 0 !important; height: calc(100vh - 86px); display: flex; flex-direction: column; gap: 10px; }
.tall .plate { height: auto; flex: 1; max-height: none; min-height: 0; } .tall .side { gap: 10px; flex-shrink: 0; } .tall .used b { font-size: 34px; } .tall .chart { flex: none; height: 104px; min-height: 0; } .tall .acts { margin-top: 0; grid-template-columns: repeat(4, 1fr); } .tall .acts .pill { padding: 9px 4px; font-size: 13px; } .tall .pick:has(#guides) { display: none; }
.cur { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; width: 0; height: 0; } .cur svg { position: absolute; left: -8px; top: -3px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); } .cur path { fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round; } .cur .closed { display: none; } .cur.down .open { display: none; } .cur.down .closed { display: block; } .cur.hide svg { display: none; }
.cur i { position: absolute; left: 22px; top: 26px; background: #161618; color: #fff; font: 700 13px var(--kr); padding: 5px 10px; border-radius: 99px; white-space: nowrap; font-style: normal; } .cur i:empty { display: none; } .cur.flip i { left: auto; right: 14px; } .cur.up i { top: -34px; }
