/* ============================================================
   HAVEN KOLKATA — event display
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Darumadrop One";
  src: url("../fonts/darumadrop-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jua";
  src: url("../fonts/jua.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --cream: #fff6e3;
  --cream-deep: #ffe7bd;
  --ink: #2b1600;
  --ink-soft: #4b2b09;
  --orange: #f28a0b;
  --orange-hot: #e15c03;
  --lime: #c6d52a;
  --lime-deep: #b8c220;
  --red: #d94a1e;
  --paper-shadow: rgba(43, 22, 0, 0.32);
  --font-display: "Darumadrop One", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Jua", "Trebuchet MS", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --border: 3px;
  --radius: clamp(16px, 1.8vw, 30px);
  --shadow: 8px 8px 0 var(--paper-shadow);
  --shadow-sm: 5px 5px 0 var(--paper-shadow);
  --page-x: clamp(16px, 2.4vw, 44px);
  --page-y: clamp(14px, 1.8vw, 30px);
  --gap: clamp(14px, 2.2vh, 30px);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #b95504;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.35rem);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-idle {
  cursor: none;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* ---------- background ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80% 62% at 50% 42%, rgba(255, 241, 184, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(43, 22, 0, 0.16), rgba(43, 22, 0, 0.03) 45%, rgba(43, 22, 0, 0.26)),
    url("../img/hero-bg.png") center / cover no-repeat;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 32%, rgba(43, 22, 0, 0.28) 100%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- page shell ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--page-y) var(--page-x) 0;
  animation: page-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.is-leaving .page {
  animation: page-out 0.16s ease both;
}

.stage.scene-enter {
  animation: scene-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stage {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding-bottom: clamp(10px, 2vh, 26px);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.6vw, 24px);
}

.chrome {
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
}

.is-idle .chrome,
.chrome-hidden .chrome {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 7px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 3px 0 var(--paper-shadow);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.brand:hover {
  transform: translateY(-2px) rotate(-0.5deg);
  box-shadow: 0 5px 0 var(--paper-shadow);
}

.brand-mark {
  display: grid;
  width: clamp(28px, 2.1vw, 34px);
  height: clamp(28px, 2.1vw, 34px);
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  line-height: 1;
  transform: rotate(-6deg);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.32em;
  font-size: clamp(0.82rem, 0.72rem + 0.35vw, 1rem);
  line-height: 1;
}

.brand-text b {
  padding: 0.06em 0.22em;
  border-radius: 4px;
  background: var(--lime);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 2px solid rgba(255, 246, 227, 0.16);
  border-radius: 999px;
  background: rgba(43, 22, 0, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--cream);
  font-size: clamp(0.68rem, 0.6rem + 0.32vw, 0.86rem);
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(43, 22, 0, 0.55);
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 246, 227, 0.16);
  transform: translateY(-1px);
}

.nav a.is-active {
  background: var(--cream);
  color: var(--ink);
  text-shadow: none;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 0.62em;
  opacity: 0.55;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-clock {
  padding: 8px 12px;
  border: 2px solid rgba(255, 246, 227, 0.18);
  border-radius: 999px;
  background: rgba(43, 22, 0, 0.24);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.6rem + 0.3vw, 0.84rem);
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.live-clock b {
  color: var(--lime);
  font-weight: 500;
}

.icon-btn {
  display: grid;
  width: clamp(34px, 2.4vw, 40px);
  height: clamp(34px, 2.4vw, 40px);
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 3px 0 var(--paper-shadow);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--paper-shadow);
}

.icon-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--paper-shadow);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* ---------- ticker ---------- */
.ticker {
  display: flex;
  height: clamp(38px, 4.4vh, 54px);
  flex: 0 0 auto;
  align-items: center;
  margin-inline: calc(var(--page-x) * -1);
  overflow: hidden;
  border-top: var(--border) solid var(--ink);
  background: var(--cream);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 40px);
  padding-right: clamp(16px, 2.2vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 0.75rem + 0.5vw, 1.2rem);
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-star {
  color: var(--orange-hot);
  font-size: 0.9em;
}

/* ---------- shared bits ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 0.58rem + 0.28vw, 0.82rem);
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kicker--light {
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(43, 22, 0, 0.45);
}

.kicker--lime {
  color: var(--lime);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.42em 0.82em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 3px 0 rgba(43, 22, 0, 0.2);
  color: var(--ink);
  font-size: clamp(0.72rem, 0.65rem + 0.3vw, 0.94rem);
  line-height: 1.1;
  white-space: nowrap;
}

.pill--lime {
  background: var(--lime);
}

.pill--ink {
  border-color: var(--cream);
  background: var(--ink);
  color: var(--cream);
}

.pill--ghost {
  border-color: rgba(255, 246, 227, 0.42);
  background: rgba(43, 22, 0, 0.18);
  box-shadow: none;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(43, 22, 0, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.55em 1em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 4px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 0.74rem + 0.34vw, 1.02rem);
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn--lime {
  background: var(--lime);
}

.btn--ink {
  background: var(--ink);
  box-shadow: 0 4px 0 rgba(255, 246, 227, 0.35);
  color: var(--cream);
}

.btn--ink:hover {
  box-shadow: 0 6px 0 rgba(255, 246, 227, 0.35);
}

.btn--ink:active {
  box-shadow: 0 2px 0 rgba(255, 246, 227, 0.35);
}

.btn--small {
  padding: 0.42em 0.78em;
  font-size: clamp(0.7rem, 0.64rem + 0.26vw, 0.84rem);
}

/* ---------- welcome ---------- */
.welcome-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: clamp(20px, 4vw, 72px);
  padding-block: clamp(6px, 1.6vh, 24px);
}

.welcome-copy {
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  width: clamp(240px, min(34vw, 56vh), 680px);
  height: auto;
  margin: clamp(6px, 1.4vh, 16px) 0 clamp(2px, 0.8vh, 8px) -0.02em;
  filter:
    drop-shadow(0 6px 0 rgba(43, 22, 0, 0.36))
    drop-shadow(0 0 24px rgba(255, 246, 227, 0.16));
  animation: float 7s ease-in-out infinite;
}

.hero-city {
  margin: 0 0 clamp(12px, 2.1vh, 28px);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12.5vw, 15rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.78;
  text-shadow:
    0 4px 0 rgba(43, 22, 0, 0.34),
    0 14px 34px rgba(43, 22, 0, 0.2);
  text-transform: uppercase;
}

.hero-tagline {
  max-width: 26ch;
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  color: var(--cream);
  font-size: clamp(1.15rem, 1.65vw, 1.9rem);
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(43, 22, 0, 0.38);
  text-wrap: balance;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(12px, 2vh, 24px);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.58rem + 0.28vw, 0.82rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(43, 22, 0, 0.4);
}

.key {
  display: inline-grid;
  min-width: 1.8em;
  height: 1.8em;
  place-items: center;
  padding: 0 0.35em;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 0 2px 0 var(--paper-shadow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9em;
  line-height: 1;
}

.welcome-rat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 20px);
}

.speech {
  position: relative;
  padding: 0.65em 1em;
  border: var(--border) solid var(--ink);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.7rem);
  line-height: 1;
  text-align: center;
  transform: rotate(-3deg);
  text-wrap: balance;
}

.speech::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 17px;
  height: 17px;
  border-right: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
  background: var(--cream);
  transform: translateX(-50%) rotate(45deg);
}

.rat-card {
  position: relative;
  padding: clamp(10px, 1vw, 16px);
  border: var(--border) solid var(--ink);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  animation: bob 3.6s ease-in-out infinite;
}

.rat-card img {
  display: block;
  width: clamp(240px, 30vw, 560px);
  height: auto;
  border-radius: 16px;
}

/* ---------- countdown ---------- */
.countdown-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 32px);
  padding-block: clamp(6px, 1.5vh, 22px);
  text-align: center;
}

.countdown-kicker {
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(43, 22, 0, 0.45);
}

.countdown-label {
  max-width: 20ch;
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 5.8rem);
  font-weight: 400;
  line-height: 0.9;
  text-shadow:
    0 3px 0 rgba(43, 22, 0, 0.34),
    0 10px 28px rgba(43, 22, 0, 0.18);
  text-transform: uppercase;
  text-wrap: balance;
}

.countdown-label em {
  color: var(--lime);
  font-style: normal;
}

.clock-grid {
  display: flex;
  width: min(100%, 1500px);
  align-items: stretch;
  justify-content: center;
  gap: clamp(7px, 1.1vw, 18px);
}

.time-unit {
  position: relative;
  display: flex;
  max-width: 270px;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.5vh, 8px);
  padding: clamp(12px, 2.2vh, 28px) clamp(8px, 1.4vw, 24px);
  overflow: hidden;
  border: var(--border) solid var(--ink);
  border-radius: clamp(14px, 1.8vw, 28px);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.time-unit::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(6px, 0.8vh, 10px);
  border-top: 2px solid var(--ink);
  background: var(--lime);
}

.time-num {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 7.4vw, 8.2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.time-label {
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.26vw, 0.78rem);
  letter-spacing: 0.16em;
  line-height: 1;
  opacity: 0.62;
  text-transform: uppercase;
}

.countdown-target {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5em 0.8em;
  padding: 0.55em 1em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: clamp(0.78rem, 0.7rem + 0.36vw, 1rem);
  line-height: 1.2;
}

.countdown-target b {
  font-weight: 400;
  color: var(--orange-hot);
}

.milestones {
  display: flex;
  max-width: 1480px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.milestone {
  padding: 0.38em 0.7em;
  border: 2px solid rgba(43, 22, 0, 0.42);
  border-radius: 999px;
  background: rgba(255, 246, 227, 0.84);
  box-shadow: 0 2px 0 rgba(43, 22, 0, 0.16);
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(0.62rem, 0.57rem + 0.24vw, 0.78rem);
  line-height: 1.1;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.milestone:hover {
  transform: translateY(-2px);
}

.milestone.is-active {
  border-color: var(--ink);
  background: var(--lime);
  box-shadow: 0 2px 0 var(--ink);
}

.milestone--auto {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-stage.is-live .time-unit {
  background: var(--lime);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.countdown-stage.is-live .time-num {
  color: var(--ink);
}

.countdown-stage.is-live .countdown-label em {
  color: var(--cream);
}

/* ---------- schedule ---------- */
.schedule-stage {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.4fr);
  align-items: stretch;
  gap: clamp(20px, 3.5vw, 60px);
  padding-block: clamp(6px, 1.4vh, 20px);
}

.schedule-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.6vh, 20px);
  color: var(--cream);
}

.schedule-clock {
  width: min(100%, 430px);
  padding: clamp(10px, 1.3vw, 18px) clamp(13px, 1.6vw, 22px);
  border: var(--border) solid var(--ink);
  border-radius: 20px;
  background: var(--lime);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transform: rotate(-0.8deg);
}

.schedule-clock-time {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2.7rem, 4.6vw, 5.4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.88;
}

.schedule-clock-sec {
  color: var(--orange-hot);
  font-size: 0.48em;
  letter-spacing: -0.02em;
}

.now-card {
  width: min(100%, 430px);
  padding: clamp(14px, 1.7vw, 22px);
  border: var(--border) solid var(--cream);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--cream);
  transform: rotate(-1deg);
}

.now-card .kicker {
  color: var(--lime);
}

.now-title {
  margin: 0.18em 0 0.1em;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 2.5rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
}

.now-sub {
  margin: 0;
  color: rgba(255, 246, 227, 0.72);
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 0.58rem + 0.26vw, 0.8rem);
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.day-progress {
  width: min(100%, 430px);
}

.day-progress-track {
  height: 11px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 246, 227, 0.26);
}

.day-progress-fill {
  height: 100%;
  width: 0%;
  border-right: 2px solid var(--ink);
  background: var(--lime);
  transition: width 0.5s ease;
}

.day-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.22vw, 0.74rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.timeline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8px, 1.1vw, 16px);
  overflow: hidden;
  border: var(--border) solid var(--ink);
  border-radius: clamp(22px, 2.4vw, 36px);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.slot {
  position: relative;
  display: grid;
  grid-template-columns: clamp(82px, 7.6vw, 126px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.3vw, 22px);
  padding: clamp(7px, 1.05vh, 13px) clamp(9px, 1.1vw, 16px);
  border-radius: 16px;
  transition:
    background 0.25s ease,
    opacity 0.25s ease;
}

.slot:hover {
  background: rgba(198, 213, 42, 0.16);
}

.slot-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slot-chip {
  padding: 3px 7px;
  border: 2px solid rgba(43, 22, 0, 0.28);
  border-radius: 999px;
  background: var(--cream-deep);
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.46rem + 0.18vw, 0.64rem);
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.72;
  text-transform: uppercase;
  white-space: nowrap;
}

.slot-chip--workshop {
  background: #ffd7a4;
}

.slot-chip--hacking {
  background: #e7efa6;
}

.slot-chip--lunch {
  background: #ffe8bd;
}

.slot-chip--demos {
  background: #ffc59a;
}

.slot-chip--judging {
  background: var(--lime);
}

.slot-chip--closing {
  background: #ffd7a4;
}

.slot + .slot::before {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(8px, 1vw, 16px);
  left: clamp(8px, 1vw, 16px);
  border-top: 2px dashed rgba(43, 22, 0, 0.14);
}

.slot-time {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.62rem + 0.26vw, 0.84rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  opacity: 0.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.slot-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.55vw, 1.75rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.slot-note {
  margin: 2px 0 0;
  font-size: clamp(0.66rem, 0.6rem + 0.26vw, 0.82rem);
  line-height: 1.2;
  opacity: 0.58;
}

.slot-tag {
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: clamp(0.54rem, 0.5rem + 0.2vw, 0.68rem);
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
}

.slot.is-past {
  opacity: 0.48;
}

.slot.is-next .slot-tag {
  opacity: 1;
  background: var(--cream);
}

.slot.is-active {
  background: var(--lime);
  animation: slot-breathe 2.4s ease-in-out infinite;
}

.slot.is-active .slot-time,
.slot.is-active .slot-note {
  opacity: 0.75;
}

.slot.is-active .slot-tag {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
  opacity: 1;
}

.schedule-foot {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.24vw, 0.74rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---------- timer ---------- */
.timer-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vh, 28px);
  padding-block: clamp(4px, 1.2vh, 18px);
  text-align: center;
}

.timer-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--cream);
}

.timer-status {
  padding: 5px 11px;
  border: 2px solid rgba(255, 246, 227, 0.22);
  border-radius: 999px;
  background: rgba(43, 22, 0, 0.24);
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.57rem + 0.26vw, 0.8rem);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.timer-card {
  position: relative;
  width: min(100%, 1180px);
  padding: clamp(20px, 3.8vh, 50px) clamp(20px, 4vw, 70px) clamp(15px, 2.2vh, 30px);
  overflow: hidden;
  border: var(--border) solid var(--ink);
  border-radius: clamp(22px, 3vw, 44px);
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}

.timer-display {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(4.2rem, 14.5vw, 15.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.timer-bar {
  height: clamp(9px, 1.1vh, 15px);
  margin-top: clamp(12px, 2.2vh, 26px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-deep);
}

.timer-bar-fill {
  height: 100%;
  width: 100%;
  border-right: 2px solid var(--ink);
  background: var(--lime);
  transition: width 0.25s linear;
}

.timer-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 0.58rem + 0.28vw, 0.84rem);
  letter-spacing: 0.08em;
  line-height: 1.3;
  opacity: 0.6;
  text-transform: uppercase;
}

.timer-controls,
.timer-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preset {
  padding: 0.36em 0.7em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 246, 227, 0.82);
  box-shadow: 0 2px 0 rgba(43, 22, 0, 0.18);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.57rem + 0.24vw, 0.78rem);
  line-height: 1.1;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.preset:hover {
  transform: translateY(-2px);
}

.preset.is-active {
  background: var(--lime);
  box-shadow: 0 2px 0 var(--ink);
}

.timer-stage.is-done .timer-card {
  background: #ffd9c9;
  animation: shake 0.55s ease;
}

.timer-stage.is-done .timer-display {
  color: var(--red);
}

.timer-stage.is-done .timer-bar-fill {
  background: var(--red);
}

/* ---------- status ---------- */
.status-stage {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 22px);
  padding-block: clamp(4px, 1.2vh, 18px);
  text-align: center;
}

.status-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(43, 22, 0, 0.45);
}

.status-auto {
  padding: 0.3em 0.7em;
  border: 2px solid rgba(255, 246, 227, 0.4);
  border-radius: 999px;
  background: rgba(43, 22, 0, 0.2);
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.22vw, 0.74rem);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.status-auto.is-active {
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.status-card {
  position: relative;
  display: flex;
  width: min(100%, 1240px);
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vh, 22px);
  padding: clamp(22px, 4vh, 58px) clamp(22px, 5vw, 82px) clamp(26px, 4.4vh, 62px);
  overflow: hidden;
  border: var(--border) solid var(--ink);
  border-radius: clamp(24px, 3.2vw, 48px);
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-0.8deg);
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.24), transparent 70%);
}

.status-card.accent-lime {
  background: var(--lime);
}

.status-card.accent-orange {
  background: var(--orange);
}

.status-card.pop {
  animation: card-pop 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.status-emoji {
  display: grid;
  width: clamp(82px, 11.5vw, 162px);
  height: clamp(82px, 11.5vw, 162px);
  place-items: center;
  border: var(--border) solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: var(--shadow-sm);
  font-size: clamp(2.6rem, 5.8vw, 5.8rem);
  line-height: 1;
  transform: rotate(-4deg);
}

.status-card.accent-lime .status-emoji,
.status-card.accent-orange .status-emoji {
  background: var(--cream);
}

.status-title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.2vw, 8rem);
  font-weight: 400;
  line-height: 0.8;
  text-transform: uppercase;
  text-wrap: balance;
}

.status-sub {
  max-width: 32ch;
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.65rem);
  line-height: 1.32;
  text-wrap: balance;
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.56rem + 0.26vw, 0.8rem);
  letter-spacing: 0.07em;
  line-height: 1.4;
  opacity: 0.7;
  text-transform: uppercase;
}

.status-meta span + span::before {
  content: "·";
  margin-right: 14px;
  opacity: 0.5;
}

.status-rat {
  position: absolute;
  right: clamp(12px, 2.6vw, 40px);
  bottom: clamp(10px, 1.8vh, 24px);
  width: clamp(74px, 8.5vw, 142px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 5px 0 rgba(43, 22, 0, 0.18));
  transform: rotate(7deg);
  transition: opacity 0.3s ease;
}

.status-rat.is-visible {
  opacity: 1;
}

.status-picker {
  display: flex;
  max-width: 1240px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mode-chip {
  padding: 0.34em 0.68em;
  border: 2px solid rgba(43, 22, 0, 0.42);
  border-radius: 999px;
  background: rgba(255, 246, 227, 0.84);
  box-shadow: 0 2px 0 rgba(43, 22, 0, 0.16);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.22vw, 0.72rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.mode-chip:hover {
  transform: translateY(-2px);
}

.mode-chip.is-active {
  border-color: var(--ink);
  background: var(--lime);
  box-shadow: 0 2px 0 var(--ink);
}

/* ---------- closing ---------- */
.closing-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
  padding-block: clamp(6px, 1.6vh, 24px);
}

.closing-copy {
  color: var(--cream);
}

.closing-title {
  margin: 0 0 clamp(12px, 2.2vh, 26px);
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9.6vw, 11.5rem);
  font-weight: 400;
  line-height: 0.8;
  text-shadow:
    0 4px 0 rgba(43, 22, 0, 0.34),
    0 14px 34px rgba(43, 22, 0, 0.2);
  text-transform: uppercase;
}

.closing-title span {
  display: block;
  color: var(--lime);
}

.closing-text {
  max-width: 38ch;
  margin: 0 0 clamp(12px, 2vh, 22px);
  font-size: clamp(1rem, 1.45vw, 1.55rem);
  line-height: 1.32;
  text-shadow: 0 1px 0 rgba(43, 22, 0, 0.38);
  text-wrap: pretty;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(12px, 2vh, 22px);
}

.sponsor-label {
  margin: 0 0 6px;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.24vw, 0.74rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sponsor {
  padding: 4px 8px;
  border: 1px solid rgba(255, 246, 227, 0.4);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: clamp(0.54rem, 0.5rem + 0.2vw, 0.68rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.closing-rat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vh, 22px);
}

.closing-photos {
  position: relative;
}

.speech--photos {
  background: var(--lime);
  font-size: clamp(1.15rem, 1.7vw, 2rem);
  line-height: 0.98;
  transform: rotate(-2.4deg);
}

.speech--photos em {
  color: var(--orange-hot);
  font-style: normal;
}

.photo-card {
  position: relative;
  display: flex;
  width: min(100%, clamp(260px, 25vw, 480px));
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.6vh, 8px);
  padding: clamp(12px, 1.2vw, 20px);
  border: 4px solid var(--ink);
  border-radius: clamp(22px, 2.2vw, 34px);
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--paper-shadow);
  color: var(--ink);
  text-decoration: none;
  transform: rotate(2.2deg);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.photo-card:hover {
  box-shadow: 14px 14px 0 var(--paper-shadow);
  transform: rotate(0.5deg) translateY(-5px) scale(1.01);
}

.photo-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 0.48rem + 0.2vw, 0.68rem);
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.photo-qr {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
}

.photo-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 2.5rem);
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
}

.photo-title em {
  color: var(--orange-hot);
  font-style: normal;
}

.photo-url {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.46rem + 0.18vw, 0.64rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  opacity: 0.68;
}

.photo-sticker {
  position: absolute;
  z-index: 2;
  top: clamp(-20px, -1.2vw, -12px);
  right: clamp(-18px, -1.1vw, -10px);
  display: grid;
  width: clamp(62px, 5.6vw, 92px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: clamp(0.66rem, 0.78vw, 0.96rem);
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
}

.photo-rat {
  position: absolute;
  z-index: 2;
  bottom: clamp(-30px, -2.2vw, -18px);
  left: clamp(-34px, -2.4vw, -18px);
  width: clamp(70px, 6.4vw, 112px);
  height: auto;
  filter: drop-shadow(0 5px 0 rgba(43, 22, 0, 0.3));
  pointer-events: none;
  animation: rat-bob 3.4s ease-in-out infinite;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 60;
  bottom: clamp(54px, 6.6vh, 84px);
  left: 50%;
  padding: 9px 16px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.57rem + 0.26vw, 0.8rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- help ---------- */
.help {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(43, 22, 0, 0.74);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.help-panel {
  position: relative;
  width: min(100%, 700px);
  max-height: 90dvh;
  padding: clamp(22px, 3.6vw, 46px);
  overflow-y: auto;
  border: var(--border) solid var(--ink);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.36);
}

.help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

.help h2 {
  margin: 0.12em 0 0.55em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.help dl {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px 16px;
  margin: 0;
}

.help dt {
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.57rem + 0.24vw, 0.78rem);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.help dd {
  margin: 0;
  font-size: clamp(0.8rem, 0.74rem + 0.28vw, 1rem);
  line-height: 1.25;
}

.help-note {
  margin: 1.4em 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 0.52rem + 0.22vw, 0.7rem);
  letter-spacing: 0.06em;
  line-height: 1.4;
  opacity: 0.55;
  text-transform: uppercase;
}

/* ---------- debug clock ---------- */
.debug-badge {
  position: fixed;
  z-index: 40;
  bottom: calc(clamp(38px, 4.4vh, 54px) + 14px);
  left: var(--page-x);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.54rem + 0.2vw, 0.7rem);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
}

.debug-badge:hover {
  background: var(--lime-deep);
}

.debug-badge[hidden],
.debug-panel[hidden] {
  display: none;
}

.debug-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-hot);
  box-shadow: 0 0 0 3px rgba(225, 92, 3, 0.18);
}

.debug-panel {
  position: fixed;
  z-index: 41;
  bottom: calc(clamp(38px, 4.4vh, 54px) + 14px);
  left: var(--page-x);
  width: min(340px, calc(100vw - 32px));
  max-height: min(72dvh, 640px);
  padding: 14px;
  overflow-y: auto;
  border: var(--border) solid var(--ink);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}

.debug-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.debug-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.54rem, 0.5rem + 0.2vw, 0.66rem);
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.debug-time {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.debug-close {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1;
}

.debug-note {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.47rem + 0.16vw, 0.6rem);
  letter-spacing: 0.08em;
  line-height: 1.35;
  opacity: 0.58;
  text-transform: uppercase;
}

.debug-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.debug-btn {
  padding: 5px 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 0.52rem + 0.18vw, 0.66rem);
  line-height: 1;
}

.debug-btn:hover {
  background: var(--cream-deep);
}

.debug-btn--live.is-active {
  background: var(--lime);
}

.debug-custom {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.debug-input {
  width: 100%;
  min-width: 0;
  flex: 1;
  padding: 5px 7px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1;
}

.debug-presets {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 2px dashed rgba(43, 22, 0, 0.18);
}

.debug-preset {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border: 2px solid rgba(43, 22, 0, 0.22);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 0.52rem + 0.18vw, 0.66rem);
  line-height: 1.15;
  text-align: left;
}

.debug-preset b {
  white-space: nowrap;
}

.debug-preset span {
  overflow: hidden;
  opacity: 0.68;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debug-preset:hover {
  border-color: var(--ink);
  background: var(--lime);
}

/* ---------- confetti ---------- */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 18px;
  border: 1px solid rgba(43, 22, 0, 0.3);
  animation: confetti-fall 2.9s linear forwards;
}

/* ---------- animations ---------- */
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.996);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-7px) scale(0.996);
  }
}

@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slot-breathe {
  0%,
  100% {
    background-color: var(--lime);
    transform: scale(1);
  }
  50% {
    background-color: rgba(198, 213, 42, 0.16);
    transform: scale(1.006);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: rotate(2.5deg) translateY(0);
  }
  50% {
    transform: rotate(1.4deg) translateY(-8px);
  }
}

@keyframes rat-bob {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-7px);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 10px 10px 0 rgba(43, 22, 0, 0.16);
  }
}

@keyframes card-pop {
  from {
    opacity: 0.35;
    transform: scale(0.94) rotate(-1.4deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-0.8deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(-0.6deg) translateX(0);
  }
  20% {
    transform: rotate(-0.6deg) translateX(-9px);
  }
  40% {
    transform: rotate(-0.6deg) translateX(8px);
  }
  60% {
    transform: rotate(-0.6deg) translateX(-5px);
  }
  80% {
    transform: rotate(-0.6deg) translateX(3px);
  }
}

@keyframes confetti-fall {
  to {
    opacity: 0;
    transform: translateY(112vh) rotate(720deg);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .nav a .nav-label {
    display: none;
  }

  .nav a.is-active .nav-label {
    display: inline;
  }
}

@media (max-width: 980px) {
  .brand-text b {
    display: none;
  }

  .welcome-stage,
  .closing-stage {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .welcome-rat,
  .closing-rat {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .welcome-rat .speech,
  .closing-rat .speech {
    order: 1;
    flex: 1 1 220px;
  }

  .welcome-rat .rat-card {
    order: 2;
  }

  .closing-photos .photo-card {
    order: 2;
    width: min(100%, clamp(230px, 44vw, 380px));
  }

  .rat-card img {
    width: clamp(200px, 36vw, 360px);
  }

  .schedule-stage {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .schedule-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .now-card {
    transform: rotate(0);
  }

  .day-progress {
    grid-column: 1 / -1;
  }

  .timeline {
    overflow: visible;
  }
}

@media (max-width: 820px) {
  body {
    overflow-y: auto;
  }

  .page {
    min-height: 100dvh;
  }

  .stage {
    flex: 0 0 auto;
  }

  .nav {
    display: none;
  }

  .live-clock {
    display: none;
  }

  .welcome-stage,
  .closing-stage,
  .schedule-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-city {
    font-size: clamp(3.8rem, 17vw, 7rem);
  }

  .hero-logo {
    width: min(72vw, 340px);
  }

  .clock-grid {
    flex-wrap: wrap;
  }

  .time-unit {
    min-width: 42%;
  }

  .status-card {
    transform: rotate(0);
  }

  .status-picker {
    display: none;
  }

  .ticker {
    margin-top: 14px;
  }
}

@media (max-height: 950px) and (min-width: 821px) {
  .hero-logo {
    width: clamp(210px, min(31vw, 46vh), 620px);
  }

  .hero-city {
    font-size: clamp(3.5rem, min(12.5vw, 16vh), 12rem);
  }

  .hero-tagline {
    margin-bottom: clamp(8px, 1.2vh, 14px);
    font-size: clamp(1.05rem, min(1.65vw, 2.5vh), 1.7rem);
  }

  .hero-hint {
    margin-top: clamp(8px, 1.4vh, 16px);
  }

  .welcome-stage {
    gap: clamp(16px, 3vw, 52px);
    padding-block: clamp(4px, 1vh, 12px);
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .hero-logo {
    width: clamp(210px, min(30vw, 48vh), 560px);
  }

  .hero-city {
    font-size: clamp(3.5rem, 10.5vw, 8.5rem);
  }

  .countdown-stage,
  .timer-stage,
  .status-stage {
    gap: 10px;
  }

  .time-num {
    font-size: clamp(2.4rem, 6.4vw, 5.8rem);
  }

  .timer-display {
    font-size: clamp(3.6rem, 12vw, 10rem);
  }

  .status-emoji {
    width: clamp(68px, 8.5vw, 112px);
    height: clamp(68px, 8.5vw, 112px);
    font-size: clamp(2rem, 4vw, 3.6rem);
  }

  .status-title {
    font-size: clamp(2.2rem, 5.6vw, 5.4rem);
  }

  .status-card {
    gap: 8px;
    padding-top: clamp(16px, 2.6vh, 30px);
    padding-bottom: clamp(20px, 3vh, 34px);
  }

  .milestone {
    padding: 0.3em 0.6em;
  }
}

@media (max-height: 660px) {
  .timeline {
    padding: 8px;
  }

  .slot {
    padding-block: 4px;
  }

  .schedule-intro {
    gap: 6px;
  }

  .schedule-clock {
    padding: 7px 11px;
  }

  .schedule-clock-time {
    font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  }

  .schedule-foot {
    display: none;
  }

  .closing-photos {
    gap: 8px;
  }

  .speech--photos {
    font-size: clamp(0.95rem, 1.5vw, 1.3rem);
  }

  .closing-photos .photo-card {
    width: min(100%, clamp(210px, 22vw, 330px));
  }

  .photo-rat {
    width: 64px;
  }
}

@media (max-height: 620px) {
  .ticker {
    height: 34px;
  }

  .hero-tagline,
  .hero-hint {
    display: none;
  }

  .speech {
    font-size: 0.9rem;
  }

  .rat-card img {
    width: 160px;
  }
}

@media (orientation: portrait) and (max-width: 820px) {
  .welcome-rat,
  .closing-rat {
    display: none;
  }

  .countdown-label {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track {
    animation: none !important;
  }
}
