@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: #efece6; --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; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; word-break: keep-all; }
h1 .q { font: 800 42px/1.08 var(--kr); letter-spacing: -.045em; } h1 em { font: italic 400 27px/1.1 Serif, serif; letter-spacing: -.02em; color: #4d4943; }
.lede { margin: 10px 0 0; max-width: 860px; color: #4d4943; word-break: keep-all; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 40px; } .how h3 { margin: 0 0 6px; font: 800 15px var(--kr); } .how p { margin: 0; font-size: 14px; color: #4d4943; word-break: keep-all; }
.foot { padding-top: 26px; padding-bottom: 90px; font: 400 12.5px var(--sans); color: var(--mute); }
.toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -20px); opacity: 0; background: var(--ink); color: #fff; font: 600 13.5px var(--kr); padding: 9px 16px; border-radius: 99px; transition: .25s; pointer-events: none; z-index: 60; white-space: nowrap; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
/* film */
.cur { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; }
.cur svg { position: absolute; left: -9px; top: -4px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); } .cur path { fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; } .cur .closed { display: none; } .cur.down .open { display: none; } .cur.down .closed { display: block; }
.cur i { position: absolute; left: 26px; top: 26px; white-space: nowrap; font: 700 13px var(--kr); font-style: normal; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; } .cur i:empty { display: none; } .cur.flip i { left: auto; right: 14px; } .cur.up i { top: -34px; }
/* ---- aquarium ---- */
:root { --bg: #e9eef0; }
.stage { position: relative; margin-top: 20px; padding: 0 !important; max-width: 1368px; border-radius: 22px; overflow: hidden; background: #8fc7d6; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px rgba(20,60,80,.55); height: min(78vh, 760px); min-height: 420px; }
@media (min-width: 1440px) { .stage { margin-left: auto; margin-right: auto; } }
@media (max-width: 1440px) { .stage { margin-left: 36px; margin-right: 36px; } }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.hint { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); font: 700 13px var(--kr); color: #fff; background: rgba(10,40,60,.38); backdrop-filter: blur(6px); padding: 6px 14px; border-radius: 99px; pointer-events: none; white-space: nowrap; transition: opacity .6s; } .hint.off { opacity: 0; }
.bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(250,252,253,.78); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 10px 30px -16px rgba(0,30,50,.5); }
.seg { display: inline-flex; background: rgba(20,50,70,.08); border-radius: 11px; padding: 3px; gap: 2px; } .seg button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 8px; font: 700 12.5px var(--kr); color: #3d5560; white-space: nowrap; } .seg button.on { background: #12323f; color: #fff; }
.pill { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 11px; background: #12323f; color: #fff; font: 800 13px var(--kr); white-space: nowrap; } .pill:disabled { opacity: .45; cursor: default; } .pill.ghost { background: rgba(20,50,70,.08); color: #12323f; }
.sp { flex: 1; }
@media (max-width: 760px) {
  .top, .intro, .how, .foot { padding-left: 14px; padding-right: 14px; } h1 .q { font-size: 28px; } h1 em { font-size: 18px; } .how { grid-template-columns: 1fr; gap: 18px; }
  .stage { margin: 14px 10px 0 !important; height: 76vh; min-height: 560px; border-radius: 18px; } .bar { left: 8px; right: 8px; bottom: 8px; gap: 6px; padding: 7px; } .bar .sp { display: none; } .pill { padding: 7px 11px; font-size: 12.5px; } .seg button { padding: 6px 9px; } .hint { font-size: 12px; top: 10px; }
}
/* film: the scene fills the frame */
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: 20px; }
.film .top, .film .intro { padding-left: 24px; padding-right: 24px; } .film .stage { margin: 12px 24px 0 !important; height: calc(100vh - 104px); min-height: 0; }
.tall .top, .tall .intro { padding-left: 12px; padding-right: 12px; } .tall h1 .q { font-size: 24px; } .tall h1 em { display: none; } .tall .stage { margin: 10px 10px 0 !important; height: calc(100vh - 122px); }
