:root { --k: #12100e; --c: #1e1a16; --w: #362d22; --y: #ffcb52; --p: #fff1c4; --dim: #c9b48a; --dot: 'Doto', ui-monospace, monospace; --r: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', system-ui, sans-serif; --pad: clamp(16px, 3vw, 44px); --cr: min(25vh, 16.6vw); }
* { box-sizing: border-box; margin: 0; }
html { background: var(--k); color: var(--p); -webkit-text-size-adjust: 100%; }
body { font: 500 16px/1.5 var(--r); overflow-x: hidden; }
canvas { image-rendering: pixelated; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }
button { background: rgba(18, 16, 14, .72); border: 2px solid #8d7443; border-radius: 99px; padding: 5px 16px; min-height: 42px; cursor: pointer; font-weight: 800; } button:hover { border-color: var(--y); color: var(--y); } button.on { background: var(--y); border-color: var(--y); color: var(--k); } button.on:hover { background: var(--p); color: var(--k); } button:disabled { opacity: .5; cursor: default; }
h1, h2, .mid b, dd, .huge b, .num { font-family: var(--dot); font-variation-settings: 'ROND' 100; font-weight: 900; }

.room { position: relative; height: max(720px, 100svh); overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
header { position: absolute; left: var(--pad); top: 22px; z-index: 2; pointer-events: none; }
h1 { font-size: clamp(44px, 6.1vw, 92px); line-height: .95; letter-spacing: -.03em; color: var(--y); } .hook { font-size: clamp(19px, 1.75vw, 26px); font-weight: 800; line-height: 1.2; margin-top: 4px; }
.clock { position: absolute; left: 33.6%; top: 41.2%; width: calc(var(--cr) * 2.36); height: calc(var(--cr) * 2.36); transform: translate(-50%, -50%); border-radius: 50%; cursor: grab; touch-action: pan-y; z-index: 2; user-select: none; -webkit-user-select: none; } .clock.paint { cursor: crosshair; touch-action: none; } .clock:active { cursor: grabbing; }
.t i, .huge i { font-style: normal; font-family: var(--r); font-weight: 800; letter-spacing: 0; } .t i { font-size: .78em; position: relative; top: -.06em; margin: 0 .02em; } .huge i { font-size: .62em; margin-left: .08em; }
.nums { position: absolute; inset: 0; pointer-events: none; } .num { position: absolute; transform: translate(-50%, -50%); font-size: clamp(16px, 1.5vw, 22px); line-height: 1; color: var(--p); }
.mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; line-height: 1.2; } .mid b { font-size: calc(var(--cr) * .245); line-height: 1; color: var(--y); letter-spacing: -.05em; } .mid span { font-size: clamp(12px, .95vw, 15px); font-weight: 800; }
.floor { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) 22px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px clamp(20px, 4vw, 70px); align-items: end; z-index: 2; }
.pair { font-size: clamp(17px, 1.5vw, 22px); font-weight: 800; line-height: 1.25; } .pair b { color: var(--y); margin-right: 6px; }
dl { display: flex; gap: clamp(16px, 2.8vw, 46px); margin-top: 2px; } dt { font-size: 15px; font-weight: 800; color: var(--dim); } dd { margin: 0; font-size: clamp(36px, 4.5vw, 68px); line-height: .95; letter-spacing: -.05em; white-space: nowrap; }
.ask form { display: flex; gap: 8px; } .ask input { flex: 1; min-width: 0; background: rgba(18, 16, 14, .82); border: 2px solid #8d7443; border-radius: 99px; padding: 8px 18px; font-size: 16px; min-height: 46px; } .ask input::placeholder { color: var(--dim); opacity: 1; } .under { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .chips { display: contents; } .under button { font-size: 14px; min-height: 38px; padding: 2px 13px; } .chips button[aria-pressed=true], .seg button[aria-pressed=true], #paint[aria-pressed=true] { background: var(--p); border-color: var(--p); color: var(--k); } .seg { display: inline-flex; } .seg button { border-radius: 0; border-right-width: 0; } .seg button:first-child { border-radius: 99px 0 0 99px; } .seg button:last-child { border-radius: 0 99px 99px 0; border-right-width: 2px; }
.status { font-size: 14px; min-height: 1.5em; margin-top: 8px; font-weight: 500; text-shadow: 0 0 2px var(--k), 0 0 3px var(--k); } .status button { font-size: 14px; min-height: 30px; padding: 0 12px; margin-left: 6px; }

section:not(.room) { padding: clamp(80px, 11vw, 160px) var(--pad) 0; } h2 { font-size: clamp(34px, 5.6vw, 92px); line-height: .95; letter-spacing: -.045em; color: var(--y); }
.cap { font-size: clamp(16px, 1.3vw, 19px); margin-top: 14px; min-height: 1.5em; color: #e9dcb6; }
.you { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(20px, 5vw, 90px); align-items: center; } .sq { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: center; } .sq canvas { position: absolute; inset: 0; width: 100%; height: 100%; } .huge { margin: 34px 0 30px; } .huge b { font-size: clamp(90px, 13vw, 210px); line-height: .78; letter-spacing: -.06em; display: block; } .huge span { font-size: clamp(18px, 1.7vw, 25px); font-weight: 800; display: block; margin-top: 16px; } .dial2 { display: grid; grid-template-columns: 8em 1fr 3.4em; gap: 14px; align-items: center; min-height: 50px; font-weight: 800; } .dial2 output { text-align: right; font-variant-numeric: tabular-nums; }
input[type=range] { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 40px; background: none; cursor: ew-resize; touch-action: pan-y; } input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #8d7443; } input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: #8d7443; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: radial-gradient(circle, #fff1c4 0 30%, #ffcb52 32%); border: 0; } input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff1c4 0 30%, #ffcb52 32%); border: 0; }
.tower { margin-top: 26px; } .tower canvas { width: 100%; cursor: crosshair; touch-action: pan-y; } .cols { display: grid; grid-template-columns: repeat(24, 1fr); font-size: 13px; text-align: center; color: var(--dim); margin-top: 8px; font-weight: 800; }
.lamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; } .lampb { border: 2px solid var(--w); border-radius: 22px; background: var(--k); padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; } .lampb canvas { width: 100%; max-width: 220px; aspect-ratio: 1; } .lampb b { font-size: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lampb span { font-size: 14px; font-weight: 500; text-align: center; line-height: 1.3; min-height: 2.6em; } .lampb:hover { border-color: var(--y); color: var(--p); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 44px); padding-bottom: clamp(80px, 10vw, 140px) !important; } .how canvas { width: 100%; aspect-ratio: 1.2; } .how figcaption { font-size: clamp(18px, 1.7vw, 25px); font-weight: 800; line-height: 1.25; margin-top: 12px; }
footer { border-top: 3px solid var(--w); padding: 34px var(--pad) 48px; display: grid; gap: 12px; } footer p { max-width: 80ch; color: #e9dcb6; } footer nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } footer a { border: 2px solid #8d7443; border-radius: 99px; padding: 5px 18px; min-height: 42px; display: inline-flex; align-items: center; color: inherit; text-decoration: none; font-weight: 800; } footer a:hover { color: var(--y); border-color: var(--y); } [hidden] { display: none !important; }

@media (max-width: 820px) {
  :root { --cr: min(39vw, 24vh); } .room { height: auto; min-height: 100svh; display: flex; flex-direction: column; } #scene { height: 600px; } header { left: 16px; top: 12px; } h1 { font-size: clamp(42px, 13.4vw, 70px); } .hook { font-size: clamp(18px, 5vw, 24px); margin-top: 0; }
  .clock { left: 50%; top: 270px; } .floor { position: relative; margin-top: 548px; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 8px 16px 14px; background: linear-gradient(transparent, var(--k) 46px); } dl { gap: 8px; justify-content: space-between; } dd { font-size: clamp(32px, 10vw, 50px); } .pair { font-size: 17px; }
  .you { grid-template-columns: minmax(0, 1fr); } .sq { order: -1; } .huge { margin: 18px 0 14px; } .dial2 { grid-template-columns: 6.6em 1fr 3.2em; gap: 8px; } .lamps { grid-template-columns: 1fr 1fr; } .how { grid-template-columns: 1fr; gap: 40px; } .cols { font-size: 12px; } footer nav > * { flex: 1 1 100%; justify-content: center; } .num { font-size: 16px; } .under button { padding: 2px 11px; }
}
