@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: #efeae1; --ink: #18181a; --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); touch-action: manipulation; }
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 Serif, serif; color: #2f6b4f; }
.lede { max-width: 920px; margin: 10px 0 0; color: #4b463e; } .lede b { color: var(--ink); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; margin-top: 18px !important; height: calc(100vh - 210px); min-height: 600px; max-height: 900px; }
.bench { position: relative; border-radius: 22px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 236px; grid-template-rows: minmax(0, 1fr) auto; gap: 12px 16px; min-height: 0;
  background: radial-gradient(120% 90% at 30% 20%, #d9c3a2, #b99a72 70%, #a4855f); box-shadow: 0 12px 30px rgba(60,40,10,.18), 0 0 0 1px rgba(0,0,0,.06) inset; }
.wellbox { position: relative; min-height: 0; display: grid; place-items: center; grid-row: 1 / 3; }
#well { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.wtag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 15px var(--kr); color: #9a9184; pointer-events: none; transition: opacity .3s; }
.tubes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; overflow: auto; min-height: 0; }
.tube { position: relative; display: flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.78); border-radius: 12px; padding: 6px 8px 6px 6px; cursor: pointer; text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.08); min-width: 0; }
.tube:hover { background: #fff; } .tube:active { transform: translateY(1px); }
.tube i { width: 26px; height: 26px; border-radius: 50% 50% 50% 12%; flex: none; box-shadow: inset 0 -3px 5px rgba(0,0,0,.18), inset 0 2px 3px rgba(255,255,255,.35); }
.tube span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; } .tube b { font: 800 11.5px var(--kr); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tube small { font: 500 10px var(--mono); color: var(--mute); }
.tube em { position: absolute; left: 2px; top: 1px; min-width: 17px; height: 15px; padding: 0 3px; border-radius: 8px; background: #1d1a16; color: #fff; font: 700 9.5px/15px var(--mono); text-align: center; font-style: normal; box-shadow: 0 0 0 1.5px #fff; }
.tall .tube em { left: 0; top: -1px; } .tube em:empty { display: none; }
.tools { display: flex; align-items: center; gap: 10px; } .drops { font: 700 13px var(--kr); color: #3d362c; flex: 1; }
.ghost { border: 0; background: rgba(255,255,255,.75); border-radius: 99px; padding: 7px 13px; font: 700 13px var(--kr); cursor: pointer; } .ghost:hover { background: #fff; }
.side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.card { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.lab { display: block; font: 700 12px var(--kr); color: var(--mute); }
.sw { border-radius: 14px; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); background: #f3f1ec; display: flex; align-items: flex-end; padding: 8px 10px; }
.sw span { font: 700 12px var(--mono); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); line-height: 1.25; } .sw.light span { color: rgba(0,0,0,.65); text-shadow: none; }
.sw2 { display: grid; grid-template-columns: 1fr 96px; gap: 8px; } .sw.big { height: 108px; } .sw.small { height: 108px; } .sw.small span { font: 700 11px var(--kr); }
.rec { font: 700 14px var(--kr); color: #3d362c; min-height: 21px; }
.meter { font: 600 13px var(--kr); color: var(--mute); } .meter b { color: var(--ink); }
.th { display: flex; align-items: center; gap: 8px; } .th .lab { flex: 1; }
.pick { font: 700 12px var(--kr); background: #f1eee8; border-radius: 99px; padding: 4px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pick input[type=color] { width: 18px; height: 18px; border: 0; padding: 0; background: none; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 0; border-radius: 99px; padding: 4px 9px 4px 5px; background: #f1eee8; font: 700 12px var(--kr); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; } .chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); } .chip.on { background: #18181a; color: #fff; }
.tgrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; } .sw.mid { height: 70px; }
.de { display: flex; flex-direction: column; justify-content: center; } .de b { font: 800 26px var(--sans); letter-spacing: -.02em; } .de span { font: 600 12px var(--kr); color: var(--mute); }
.go { border: 0; background: #18181a; color: #fff; border-radius: 12px; padding: 10px; font: 800 14px var(--kr); cursor: pointer; } .go:hover { background: #333; }
.recipes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 0; }
.recipes li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 8px; align-items: center; background: #f7f5f1; border-radius: 12px; padding: 6px 8px; }
.recipes .rs { width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.recipes .rt { font: 700 12px/1.3 var(--kr); color: #3d362c; } .recipes .rt i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; vertical-align: 0; }
.recipes .rd { font: 700 12px var(--mono); color: #6b6357; white-space: nowrap; }
.recipes button { border: 0; background: #18181a; color: #fff; border-radius: 99px; padding: 6px 11px; font: 800 12px var(--kr); cursor: pointer; white-space: nowrap; }
.tgcard { flex: 1; min-height: 0; }
.modal { position: fixed; inset: 0; background: rgba(20,18,15,.55); display: grid; place-items: center; z-index: 50; } .mbox { background: #fff; border-radius: 18px; padding: 14px; width: min(92vw, 720px); display: flex; flex-direction: column; gap: 8px; }
.mh { display: flex; justify-content: space-between; align-items: center; } #pc { width: 100%; max-height: 70vh; object-fit: contain; cursor: crosshair; border-radius: 10px; touch-action: none; } .mbox p { margin: 0; font: 600 13px var(--kr); color: var(--mute); }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px !important; } .how h3 { margin: 0 0 6px; font: 800 16px var(--kr); } .how p { margin: 0; color: #4b463e; font-size: 14px; }
.foot { padding-top: 26px; padding-bottom: 40px; font: 500 13px var(--kr); color: var(--mute); }
@media (max-width: 1100px) { .stage { grid-template-columns: 1fr; height: auto; max-height: none; } .bench { height: 640px; } .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .top, .intro, .stage, .how, .foot { padding-left: 16px; padding-right: 16px; } h1 .q { font-size: 30px; } h1 em { font-size: 22px; }
  .bench { height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 10px; gap: 10px; } .wellbox { grid-row: auto; aspect-ratio: 1; }
  .tubes { grid-template-columns: repeat(3, 1fr); } .tube b { font-size: 11px; } .tube small { display: none; } .how { grid-template-columns: 1fr; }
}
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; min-height: 0; }
.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 .bench { flex: 1; min-height: 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto; padding: 10px; gap: 8px; } .tall .wellbox { grid-row: auto; aspect-ratio: auto; min-height: 0; }
.tall .tubes { grid-template-columns: repeat(4, 1fr); gap: 5px; } .tall .tube { padding: 4px 5px 4px 4px; gap: 5px; } .tall .tube i { width: 20px; height: 20px; } .tall .tube b { font-size: 10.5px; } .tall .tube small { display: none; }
.tall .side { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tall .card { padding: 10px; gap: 6px; } .tall .sw.big, .tall .sw.small { height: 64px; } .tall .sw2 { grid-template-columns: 1fr 70px; } .tall .chips { display: none; } .tall .th .pick { display: none; } .tall .rec { font-size: 12px; } .tall .meter { font-size: 11px; }
.tall .sw.mid { height: 48px; } .tall .de b { font-size: 20px; } .tall .recipes li:nth-child(n+2) { display: none; } .tall .recipes li { grid-template-columns: 26px 1fr auto; padding: 4px 6px; gap: 6px; } .tall .recipes .rs { width: 26px; height: 26px; } .tall .recipes .rd { display: none; } .tall .recipes .rt { font-size: 10.5px; } .tall .tgcard .th { display: none; } .tall .go { padding: 7px; font-size: 13px; } .tall .tgrow { grid-template-columns: 1fr; gap: 4px; }
.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 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; }
.tall .recipes { min-height: 49px; }
