:root {
  --ink: #26231e;
  --ink-2: rgb(38 35 30 / 0.66);
  --ink-3: rgb(38 35 30 / 0.45);
  --line: rgb(38 35 30 / 0.14);
  --accent: #9a5a2a;
  --bg: #eadfcb;
}
body[data-season="spring"] { --accent: #6b8f2e; --bg: #e9e6dc; }
body[data-season="summer"] { --accent: #3f6a2f; --bg: #e8e2d2; }
body[data-season="autumn"] { --accent: #a05a24; --bg: #eadfcb; }
body[data-season="winter"] { --accent: #4a6a86; --bg: #c3cbd2; }

html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); transition: background 1.2s; }
body { font: 400 15px/1.45 var(--kit-plain); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.boot, .boot * { transition: none !important; }
#stage { position: fixed; inset: 0; }
#stage canvas { cursor: grab; }
#stage canvas:active { cursor: grabbing; }
body.is-hot #stage canvas { cursor: pointer; }

.mast { position: fixed; left: 64px; top: 58px; z-index: 3; max-width: 520px; pointer-events: none; }
.over { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; color: var(--accent); transition: color 1s; }
.over i { font: italic 400 19px/1 var(--kit-oldstyle); letter-spacing: 0; }
.over span { display: inline-flex; align-items: center; gap: 14px; font: 500 12px/1 var(--kit-mono); letter-spacing: 0.18em; text-transform: uppercase; }
.over span::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
h1 { margin: 0; font: 400 76px/0.98 var(--kit-oldstyle); letter-spacing: -0.015em; white-space: pre-line; }
.note { margin: 22px 0 0; max-width: 380px; font: 400 17px/1.5 var(--kit-plain); color: var(--ink-2); min-height: 3em; transition: opacity 0.4s; }
.note.is-out { opacity: 0; }

.meta { position: fixed; right: 64px; top: 64px; z-index: 3; text-align: right; }
.meta p { margin: 0 0 8px; font: 500 12px/1.2 var(--kit-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.seasons {
  position: fixed; left: 50%; bottom: 56px; translate: -50% 0; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;
  background: rgb(255 255 255 / 0.42); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / 0.55); border-radius: 999px;
  box-shadow: 0 18px 40px rgb(40 30 20 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.6);
}
.seasons button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; min-width: 150px; padding: 0 22px; border-radius: 999px; font: 500 16px/1 var(--kit-plain); color: var(--ink-2); transition: color 0.3s; }
.seasons svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.seasons button[aria-checked="true"] { color: #fffaf2; }
.seasons button:hover:not([aria-checked="true"]) { color: var(--ink); }
.slider { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--i, 2) * 100%)); transition: transform 0.5s cubic-bezier(.3,.8,.2,1); box-shadow: 0 6px 16px rgb(30 20 10 / 0.25); }

.hint { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; margin: 0; z-index: 3; font: 400 12.5px/1 var(--kit-plain); color: var(--ink-3); white-space: nowrap; }
.is-capturing .kit-hint { display: none; }
.tip { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; padding: 9px 12px 10px; border-radius: 12px; background: rgb(30 26 20 / 0.82); color: #f7f1e6; opacity: 0; transition: opacity 0.18s; display: grid; gap: 3px; }
.tip b { font: 600 13px/1.1 var(--kit-plain); }
.tip span { font: 400 11.5px/1.2 var(--kit-plain); color: rgb(247 241 230 / 0.66); }
.tip span:empty { display: none; }
.tip.is-on { opacity: 1; }

@media (max-width: 1150px) {
  h1 { font-size: 62px; }
  .seasons button { min-width: 128px; padding: 0 16px; }
}
