:root {
  color-scheme: light;
  --ink: #1d2333;
  --muted: #6f7685;
  --paper: #f7f3ee;
  --line: #d8d0c8;
  --sage: #7a9676;
  --coral: #a97c50;
  --gold: #a97c50;
  --blue: #1d2333;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at 20% 10%, rgba(169, 124, 80, 0.08), transparent 24%),
    linear-gradient(115deg, rgba(29, 35, 51, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f7f3ee 0%, #efe8df 100%),
    var(--paper);
  background-size: auto, auto, 72px 72px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 17%, rgba(29, 35, 51, 0.04) 17% calc(17% + 1px), transparent calc(17% + 1px) 100%),
    linear-gradient(90deg, transparent 0 83%, rgba(29, 35, 51, 0.035) 83% calc(83% + 1px), transparent calc(83% + 1px) 100%),
    linear-gradient(0deg, transparent 0 22%, rgba(169, 124, 80, 0.04) 22% calc(22% + 1px), transparent calc(22% + 1px) 100%),
    linear-gradient(135deg, transparent 0 49.9%, rgba(29, 35, 51, 0.035) 50%, transparent 50.1% 100%);
  opacity: 0.9;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 56px);
}

.reveal-panel {
  width: min(820px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(169, 124, 80, 0.06), transparent 32%);
  box-shadow: 0 26px 80px rgba(29, 35, 51, 0.09);
  padding: clamp(30px, 7vw, 72px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(36px, 8vw, 82px);
}

.brand-mark {
  width: 64px;
  height: 64px;
}

.code-badge {
  min-width: 52px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 800;
  color: var(--blue);
  background: #ffffff;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.museum-rule {
  width: min(190px, 42vw);
  height: 1px;
  margin: 0 auto 28px;
  position: relative;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.museum-rule::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--coral);
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
}

#waitingView {
  text-align: center;
}

#waitingView h1,
#waitingView .lead {
  margin-left: auto;
  margin-right: auto;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Cormorant Garamond", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7.4vw, 5.9rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 44ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 6vw, 54px);
}

.time-box {
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(29, 35, 51, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.time-box:hover {
  border-color: rgba(169, 124, 80, 0.58);
  box-shadow: 0 18px 42px rgba(29, 35, 51, 0.085);
  transform: translateY(-2px);
}

.time-box strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 600;
  line-height: 1;
}

.time-box span {
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.date-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-box {
  margin-top: 28px;
  border-left: 4px solid var(--gold);
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.inline-code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.hidden {
  display: none;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 14px;
  }

  .reveal-panel {
    padding: 22px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  h1 {
    max-width: 11ch;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
