@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: #f4ead9; --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 Serif, serif; color: #9a4a12; }
.lede { max-width: 900px; margin: 10px 0 0; color: #4b463e; } .lede b { color: var(--ink); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 18px !important; height: calc(100vh - 210px); min-height: 560px; max-height: 880px; }
.grill { background: linear-gradient(#3a2a20, #24180f); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 0; box-shadow: 0 12px 30px rgba(60,30,0,.2); }
.bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #f3e6d2; } .bar .lab { color: #c9b49a; margin: 0 6px 0 0; display: inline; }
.pick { display: flex; align-items: center; }
.lab { display: block; font: 700 12px var(--kr); color: var(--mute); margin-bottom: 4px; }
.seg { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 99px; padding: 3px; } .seg button { border: 0; background: none; border-radius: 99px; padding: 5px 12px; font: 700 13px var(--kr); cursor: pointer; color: #e8d9c4; } .seg button.on { background: #fff4e2; color: #2a1a0e; }
.clock { margin-left: auto; font: 700 15px var(--mono); color: #ffcf8a; font-variant-numeric: tabular-nums; }
.molds { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; }
.mold { position: relative; border-radius: 16px; background: radial-gradient(120% 80% at 50% 110%, rgba(255,120,30,.28), rgba(0,0,0,0) 60%), #1b130d; cursor: pointer; display: flex; flex-direction: column; min-height: 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset; }
.mold.sel { box-shadow: 0 0 0 2px #ffcf8a inset; }
.mold canvas { flex: 1; min-height: 0; width: 100%; display: block; }
.mold .num { position: absolute; left: 10px; top: 8px; font: 800 12px var(--kr); color: #c9b49a; }
.mold .mt { position: absolute; right: 10px; top: 7px; font: 700 12px var(--mono); color: #ffcf8a; font-variant-numeric: tabular-nums; }
.mb { display: flex; gap: 6px; padding: 0 10px 10px; justify-content: center; }
.mb button { border: 0; border-radius: 99px; padding: 8px 12px; font: 800 13px var(--kr); cursor: pointer; background: #fff4e2; color: #2a1a0e; white-space: nowrap; } .mb button.alt { background: #e8572a; color: #fff; } .mb button:hover { filter: brightness(1.06); }
.side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.detail { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.dh { display: flex; align-items: baseline; gap: 8px; } .dh b { font: 800 18px var(--kr); } .dh span { font: 600 13px var(--kr); color: var(--mute); }
.xs { height: 190px; } #xs { width: 100%; height: 100%; display: block; }
.faces { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .faces > div { background: #f7f1e7; border-radius: 12px; padding: 8px 10px; position: relative; } .faces b { font: 800 17px var(--sans); font-variant-numeric: tabular-nums; } .faces i { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.12); background: #eee; }
.hint { margin: 0; font: 600 13.5px var(--kr); color: #5b4630; min-height: 2.6em; }
.tray { background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: 0 0 0 1px var(--line); flex: 1; min-height: 150px; display: flex; flex-direction: column; } .th { display: flex; align-items: baseline; gap: 10px; } .th .lab { margin: 0; } .tally { font: 700 13px var(--kr); color: #4b463e; flex: 1; }
#tr { flex: 1; width: 100%; min-height: 0; display: block; }
.link { border: 0; background: none; font: 700 13px var(--kr); color: #9a4a12; text-decoration: underline; cursor: pointer; padding: 0; }
.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: 960px) {
  .top, .intro, .stage, .how, .foot { padding-left: 14px; padding-right: 14px; }
  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; }
  .grill { padding: 10px; border-radius: 16px; } .bar { gap: 8px 12px; } .seg button { padding: 5px 10px; }
  .molds { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 172px; gap: 8px; }
  .mb { padding: 0 6px 8px; gap: 4px; } .mb button { padding: 7px 9px; font-size: 12.5px; }
  .tray { min-height: 170px; } .how { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 520px) { .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; }
.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 .grill { flex: 1; min-height: 0; padding: 10px; } .tall .molds { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); grid-auto-rows: auto; gap: 8px; } .tall .bar { gap: 8px 12px; } .tall .seg button { padding: 5px 10px; }
.tall .side { flex-shrink: 0; display: grid; grid-template-columns: 1fr; gap: 8px; } .tall .detail { padding: 10px 12px; gap: 6px; } .tall .xs { height: 120px; } .tall .faces { grid-template-columns: repeat(4, 1fr); gap: 6px; } .tall .faces b { font-size: 14px; } .tall .faces i { width: 14px; height: 14px; right: 6px; top: 6px; } .tall .hint { display: none; } .tall .tray { min-height: 0; height: 96px; flex: none; padding: 8px 12px; }
.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 .bar .sp { display: none; } .tall .xs { height: 100px; } .tall .tray { height: 84px; } .tall .detail { gap: 5px; } .tall .mb { padding-bottom: 7px; } .tall .mb button { padding: 6px 11px; font-size: 12px; }
.mold .num, .mold .mt { z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
