:root {
  color-scheme: dark;
  --ink: #edf7f0;
  --muted: #93a89c;
  --dim: #597066;
  --line: rgba(92, 242, 155, 0.15);
  --line-bright: rgba(92, 242, 155, 0.3);
  --ground: #050808;
  --panel: rgba(6, 18, 12, 0.62);
  --accent: #5cf29b;
  --accent-rgb: 92, 242, 155;
  --accent-soft: rgba(92, 242, 155, 0.13);
  --gyro-x: 0px;
  --gyro-y: 0px;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--ground);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ground);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.has-photos {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --dim: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.16);
  --line-bright: rgba(255, 255, 255, 0.32);
  --panel: rgba(12, 14, 16, 0.32);
  --accent: #ffffff;
  --accent-rgb: 255, 255, 255;
  --accent-soft: rgba(255, 255, 255, 0.12);
}

body.stats-open { overflow: hidden; }

button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.background-stage,
.background-shade,
.photo-layer,
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background-stage {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 32%, rgba(26, 104, 63, 0.24), transparent 37rem),
    linear-gradient(rgba(92, 242, 155, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 242, 155, 0.035) 1px, transparent 1px),
    var(--ground);
  background-size: auto, 4rem 4rem, 4rem 4rem, auto;
  transition: background 900ms ease;
}

body.has-photos .background-stage { background: #030405; }

.photo-layer {
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.94) contrast(1.04);
  opacity: 0;
  transform: translate3d(var(--gyro-x), var(--gyro-y), 0) scale(1.13);
  transition: opacity 2.2s ease;
  will-change: opacity, transform;
}

.photo-layer.is-active { opacity: 0.72; }
.photo-layer.no-transition { transition: none; }

.photo-layer.motion-a.is-active { animation: photo-pan-a 70s linear both; }
.photo-layer.motion-b.is-active { animation: photo-pan-b 70s linear both; }

.ambient {
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.34;
  mix-blend-mode: screen;
  transition: opacity 900ms ease;
}

.ambient-one {
  inset: auto auto 8% -12%;
  width: 45vw;
  height: 45vw;
  background: rgba(33, 191, 105, 0.22);
  animation: ambient-one 17s ease-in-out infinite alternate;
}

.ambient-two {
  inset: -20% -10% auto auto;
  width: 38vw;
  height: 38vw;
  background: rgba(38, 112, 79, 0.25);
  animation: ambient-two 21s ease-in-out infinite alternate;
}

body.has-photos .ambient { opacity: 0; }

.background-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.42), rgba(3, 8, 5, 0.08) 42%, rgba(3, 8, 5, 0.68)),
    radial-gradient(circle at center, transparent 24%, rgba(2, 7, 4, 0.42) 100%);
  transition: background 900ms ease;
}

body.has-photos .background-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.04) 44%, rgba(0, 0, 0, 0.56)),
    radial-gradient(circle at center, transparent 26%, rgba(0, 0, 0, 0.36) 100%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: clamp(2.5rem, 7vh, 5.3rem);
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(4rem, 9vh, 6rem);
}

.countdown-shell {
  position: relative;
  width: min(94vw, 1500px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(130deg, rgba(92, 242, 155, 0.07), transparent 28%),
    rgba(4, 12, 8, 0.5);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  transition: border-color 600ms ease, background 600ms ease, box-shadow 600ms ease;
}

.countdown-slot {
  position: relative;
  padding: clamp(1.8rem, 3.5vw, 3.4rem) clamp(1.2rem, 3vw, 3rem) clamp(2.8rem, 4vw, 3.8rem);
}

.countdown-shell::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 12%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
  animation: glint 8s ease-in-out infinite alternate;
  pointer-events: none;
}

body.has-photos .countdown-shell.liquid-glass-effect {
  --liquid-glass-frost: 0.15;
  --liquid-glass-fallback-background: rgba(10, 12, 14, 0.28);
  --liquid-glass-fallback-filter: blur(26px) saturate(145%);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px rgba(255, 255, 255, 0.08),
    0 2rem 7rem rgba(0, 0, 0, 0.34);
  backdrop-filter: var(--liquid-glass-filter);
  -webkit-backdrop-filter: var(--liquid-glass-filter);
}

body.has-photos .countdown-shell {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(20, 22, 26, 0.38);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.36),
    inset 0 -1px rgba(255, 255, 255, 0.08),
    0 2rem 7rem rgba(0, 0, 0, 0.34);
}

body.has-photos .countdown-shell::before {
  width: 54%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  opacity: 0.72;
}

.countdown {
  display: grid;
  grid-template-columns: max-content auto max-content auto max-content auto max-content;
  align-items: start;
  justify-content: space-between;
  column-gap: clamp(0.22rem, 1vw, 0.85rem);
  width: 100%;
  transform-origin: center;
  animation: countdown-drift 9s ease-in-out infinite alternate;
}

.time-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  animation: number-breathe 6.8s ease-in-out infinite;
}

.time-block:nth-of-type(2) { animation-delay: -1.7s; }
.time-block:nth-of-type(3) { animation-delay: -3.4s; }
.time-block:nth-of-type(4) { animation-delay: -5.1s; }

.time-value {
  display: inline-flex;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(5.2rem, 11vw, 11rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0.8rem 3rem rgba(0, 0, 0, 0.28);
}

.time-value.accent {
  color: var(--accent);
  text-shadow: 0 0 3.4rem rgba(var(--accent-rgb), 0.24);
}

.time-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.85vw, 0.84rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.separator {
  margin-top: -0.06em;
  color: rgba(var(--accent-rgb), 0.4);
  font-family: var(--mono);
  font-size: clamp(4.4rem, 8.8vw, 9rem);
  font-weight: 400;
  line-height: 0.84;
  animation: separator-pulse 4s ease-in-out infinite;
}

.rolling-number {
  display: inline-flex;
  align-items: baseline;
}

.digit-wheel,
.digit-static {
  position: relative;
  display: inline-block;
  min-width: 0.63em;
  height: 0.94em;
  line-height: 0.94em;
  vertical-align: -0.03em;
}

.digit-wheel {
  overflow: hidden;
  contain: layout paint style;
  perspective: 2.6em;
}

.time-value .digit-wheel {
  mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 78%, transparent 100%);
}

.digit-static {
  min-width: 0.36em;
  text-align: center;
}

.digit-reel {
  display: flex;
  height: 1.88em;
  flex-direction: column;
  transform-style: preserve-3d;
}

.digit-option {
  width: 100%;
  height: 0.94em;
  flex: 0 0 0.94em;
  display: grid;
  place-items: center;
  line-height: 0.94em;
  backface-visibility: hidden;
}

.share-button {
  position: absolute;
  right: clamp(0.85rem, 2vw, 1.45rem);
  bottom: clamp(0.75rem, 1.5vw, 1.15rem);
  z-index: 4;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(4, 14, 9, 0.62);
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(1.2);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

body.has-photos .share-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 0.7rem 2rem rgba(0, 0, 0, 0.25);
}

.share-button:hover { transform: translateY(-2px) rotate(-5deg); }
.share-button:active { transform: scale(0.93); }
.share-button svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.menu-wrap {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 50;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.28rem;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(4, 14, 9, 0.68);
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.25);
  cursor: pointer;
}

body.has-photos .menu-toggle {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 0.8rem 2.5rem rgba(0, 0, 0, 0.24);
}

.menu-toggle span {
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.34rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.34rem) rotate(-45deg); }

.options-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.48rem;
  border: 1px solid var(--line-bright);
  border-radius: 1.25rem;
  background: rgba(4, 14, 9, 0.84);
  box-shadow: 0 1.4rem 4.5rem rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(1.35);
  opacity: 0;
  transform: translateY(-0.6rem) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-photos .options-menu {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(20, 22, 24, 0.42);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.34), 0 1.4rem 4.5rem rgba(0, 0, 0, 0.42);
}

.options-menu[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-action {
  position: relative;
  width: 100%;
  min-height: 3.75rem;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.72rem;
  border: 0;
  border-radius: 0.9rem;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.menu-action:hover,
.menu-action:focus-visible { background: var(--accent-soft); transform: translateX(-2px); }
.menu-action + .menu-action { border-top: 1px solid var(--line); }
.menu-action svg { width: 1.2rem; justify-self: center; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-action span { display: grid; gap: 0.18rem; }
.menu-action strong { font-size: 0.84rem; font-weight: 500; }
.menu-action small { color: var(--muted); font-size: 0.7rem; }
.menu-action.is-active::after,
.menu-action.is-ready::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.8rem rgba(var(--accent-rgb), 0.7);
}

.possibilities {
  width: calc(100% + 2rem);
  margin-left: -1rem;
  overflow: hidden;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(4, 15, 9, 0.72), rgba(20, 55, 36, 0.36), rgba(4, 15, 9, 0.72));
  box-shadow: 0 1.4rem 5rem rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  transform-origin: center;
  animation: strip-sway 11s ease-in-out infinite alternate;
  transition: height 380ms cubic-bezier(0.22, 1, 0.36, 1), border-radius 300ms ease;
  cursor: pointer;
}

body.has-photos .possibilities {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(14, 16, 18, 0.42);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 1.4rem 5rem rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(24px) saturate(1.25);
}

body.has-photos .possibilities.liquid-glass-effect:not(.is-expanded) {
  --liquid-glass-frost: 0.12;
  --liquid-glass-fallback-background: rgba(12, 14, 16, 0.34);
  --liquid-glass-fallback-filter: blur(20px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -1px rgba(255, 255, 255, 0.1),
    0 1.4rem 5rem rgba(0, 0, 0, 0.3);
  backdrop-filter: var(--liquid-glass-filter);
  -webkit-backdrop-filter: var(--liquid-glass-filter);
}

.possibilities-slot { position: relative; }

.ticker-heading {
  width: min(92vw, 1500px);
  min-height: 2.65rem;
  margin: 0 auto;
  padding: 0.82rem 0 0.05rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.ticker-hint {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ticker-heading svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms ease;
}

.ticker-mask {
  padding: 1.2rem 0 1.35rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

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

.fact {
  display: inline-flex;
  align-items: baseline;
  gap: 0.58rem;
  padding: 0 2.8rem;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.fact-value {
  display: inline-flex;
  align-items: baseline;
  height: 1.08em;
  overflow: hidden;
  contain: layout paint style;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  vertical-align: -0.08em;
}

.fact-value .digit-wheel,
.fact-value .digit-static {
  min-width: 0.62em;
  height: 1.08em;
  line-height: 1.08em;
  vertical-align: 0;
}

.fact-value .digit-static {
  min-width: 0.32em;
}

.fact-value .digit-reel {
  height: 2.16em;
}

.fact-value .digit-option {
  height: 1.08em;
  flex-basis: 1.08em;
  line-height: 1.08em;
}

.fact-copy { color: var(--ink); font-size: 0.88rem; }

.possibilities.is-expanded {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  width: 100%;
  height: min(76dvh, 52rem);
  margin: 0;
  border-radius: 2rem 2rem 0 0;
  background: rgba(4, 12, 8, 0.94);
  animation: none;
  transform: none;
  cursor: default;
}

body.has-photos .possibilities.is-expanded { background: rgba(12, 14, 16, 0.68); }

.possibilities.is-expanded .ticker-heading {
  width: min(92vw, 54rem);
  min-height: 4.25rem;
  padding: 1.2rem 0 0.85rem;
  color: var(--ink);
}

.possibilities.is-expanded .ticker-heading svg { transform: rotate(180deg); }

.possibilities.is-expanded .ticker-mask {
  height: calc(100% - 4.25rem);
  width: min(92vw, 54rem);
  margin: 0 auto;
  padding: 0 0 max(2rem, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  mask-image: linear-gradient(180deg, black 0, black 90%, transparent 100%);
  scrollbar-color: var(--dim) transparent;
}

.possibilities.is-expanded .ticker-track {
  display: grid;
  width: 100%;
  animation: none;
}

.possibilities.is-expanded .fact {
  width: 100%;
  min-height: 3.45rem;
  display: grid;
  grid-template-columns: minmax(7.8rem, auto) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 0.2rem;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}

.possibilities.is-expanded .fact[aria-hidden="true"] { display: none; }
.possibilities.is-expanded .fact-value { justify-self: end; font-size: 1rem; }
.possibilities.is-expanded .fact-copy { line-height: 1.35; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  backdrop-filter: blur(4px);
}

.sheet-backdrop.visible { opacity: 1; pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  z-index: 70;
  max-width: min(90vw, 28rem);
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(4, 18, 10, 0.92);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 0.8rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.has-photos .toast { background: rgba(18, 20, 22, 0.84); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

body.effects-lite .ambient { display: none; }

body.effects-lite .countdown,
body.effects-lite .time-block { animation: none; }

body.effects-lite .possibilities:not(.is-expanded) {
  animation: none;
  transform: rotate(-0.34deg) scale(1.006);
}

body.effects-lite .photo-layer.motion-a.is-active,
body.effects-lite .photo-layer.motion-b.is-active {
  animation: none;
  transform: translate3d(var(--gyro-x), var(--gyro-y), 0) scale(1.1);
}

body.effects-lite .photo-layer { filter: none; }

body.effects-lite .countdown-shell,
body.effects-lite .possibilities,
body.effects-lite .menu-toggle,
body.effects-lite .options-menu,
body.effects-lite .share-button,
body.effects-lite .toast,
body.effects-lite .sheet-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.effects-lite .noise { display: none; }

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

@keyframes countdown-drift {
  0% { transform: translate3d(-0.16rem, 0.1rem, 0) rotate(-0.1deg); }
  100% { transform: translate3d(0.22rem, -0.18rem, 0) rotate(0.1deg); }
}

@keyframes number-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.22rem); }
}

@keyframes separator-pulse {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 0.95; }
}

@keyframes strip-sway {
  0% { transform: rotate(-0.64deg) translateY(0.1rem) scale(1.012); }
  100% { transform: rotate(-0.24deg) translateY(-0.12rem) scale(1.012); }
}

@keyframes photo-pan-a {
  from { transform: translate3d(calc(var(--gyro-x) - 0.8vw), calc(var(--gyro-y) - 0.5vh), 0) scale(1.13); }
  to { transform: translate3d(calc(var(--gyro-x) + 1.1vw), calc(var(--gyro-y) + 0.7vh), 0) scale(1.19); }
}

@keyframes photo-pan-b {
  from { transform: translate3d(calc(var(--gyro-x) + 1vw), calc(var(--gyro-y) - 0.6vh), 0) scale(1.18); }
  to { transform: translate3d(calc(var(--gyro-x) - 0.9vw), calc(var(--gyro-y) + 0.8vh), 0) scale(1.13); }
}

@keyframes ambient-one {
  from { transform: translate3d(-4%, 4%, 0) scale(0.96); }
  to { transform: translate3d(15%, -8%, 0) scale(1.08); }
}

@keyframes ambient-two {
  from { transform: translate3d(4%, -2%, 0) scale(1); }
  to { transform: translate3d(-14%, 14%, 0) scale(1.12); }
}

@keyframes glint {
  from { transform: translateX(-15%); opacity: 0.35; }
  to { transform: translateX(110%); opacity: 0.8; }
}

@media (max-width: 760px) {
  main {
    gap: clamp(2rem, 6vh, 3rem);
    padding: 4.9rem 0 3rem;
  }

  .countdown-shell { width: 97vw; border-radius: 1.45rem; }
  .countdown-slot { padding: 1.8rem 0.4rem 3.1rem; }

  .countdown {
    justify-content: center;
    column-gap: clamp(0.04rem, 0.5vw, 0.18rem);
  }

  .time-block { gap: 0.72rem; }

  .time-value {
    font-size: clamp(3rem, 15vw, 4.7rem);
    letter-spacing: -0.08em;
  }

  .separator {
    margin-inline: -0.02rem;
    font-size: clamp(1.8rem, 6.8vw, 2.65rem);
  }

  .time-label { font-size: 0.61rem; letter-spacing: 0.035em; }
  .share-button { right: 0.72rem; bottom: 0.58rem; width: 2.5rem; height: 2.5rem; }

  .possibilities { width: calc(100% + 1rem); margin-left: -0.5rem; }
  .ticker-heading { width: 90vw; padding-top: 0.86rem; font-size: 0.84rem; }
  .fact { padding-inline: 1.7rem; }

  .possibilities.is-expanded { width: 100%; height: min(82dvh, 48rem); margin: 0; border-radius: 1.55rem 1.55rem 0 0; }
  .possibilities.is-expanded .ticker-heading,
  .possibilities.is-expanded .ticker-mask { width: 88vw; }
  .possibilities.is-expanded .fact { grid-template-columns: minmax(6.4rem, auto) 1fr; gap: 0.75rem; }
  .possibilities.is-expanded .fact-value { font-size: 0.92rem; }
  .possibilities.is-expanded .fact-copy { font-size: 0.82rem; }

  .menu-wrap { top: max(0.7rem, env(safe-area-inset-top)); right: max(0.7rem, env(safe-area-inset-right)); }
  .menu-toggle { width: 2.75rem; height: 2.75rem; }
  .toast { bottom: max(1rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .countdown-slot { padding-inline: 0.28rem; }
  .time-value { font-size: 14.7vw; }
  .separator { font-size: 6.4vw; }
  .time-label { font-size: 0.54rem; }
}

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

  .countdown,
  .time-block,
  .possibilities,
  .photo-layer,
  .ambient { transform: none !important; }

  .ticker-track { flex-wrap: wrap; width: auto; gap: 1rem; padding-inline: 4vw; }
  .fact { border: 0; padding: 0; }
}
