:root {
  color-scheme: light;
  --ink: #243034;
  --muted: #6b7477;
  --paper: #fff7e9;
  --line: rgba(34, 48, 52, 0.18);
  --accent: #e15c3a;
  --blue: #5f93aa;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6dfbf;
  cursor: none;
}

button {
  font: inherit;
}

a,
button,
.scene-root canvas {
  cursor: none;
}

*,
*::before,
*::after {
  cursor: none !important;
}

.app-shell,
.scene-root {
  position: fixed;
  inset: 0;
}

.scene-root canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.puffy-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 34px;
  height: 34px;
  border-radius: 42% 58% 48% 52% / 54% 42% 58% 46%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.86), transparent 0 17%),
    radial-gradient(circle at 65% 70%, rgba(108, 58, 210, 0.45), transparent 0 38%),
    linear-gradient(135deg, #d8a7ff, #8b5cf6 52%, #6d3ad9);
  box-shadow:
    0 0 0 7px rgba(151, 99, 245, 0.14),
    0 12px 30px rgba(86, 48, 145, 0.28),
    inset 0 -5px 10px rgba(52, 28, 93, 0.22);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition: width 150ms ease, height 150ms ease, border-radius 180ms ease, box-shadow 150ms ease, opacity 180ms ease;
  will-change: transform;
}

.puffy-cursor.is-down {
  width: 29px;
  height: 29px;
  border-radius: 55% 45% 58% 42% / 44% 58% 42% 56%;
  box-shadow:
    0 0 0 10px rgba(151, 99, 245, 0.18),
    0 8px 22px rgba(86, 48, 145, 0.24),
    inset 0 -4px 9px rgba(52, 28, 93, 0.28);
}

.puffy-cursor.is-hidden {
  opacity: 0;
}

.hud {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hud-top {
  top: 28px;
  left: 32px;
  max-width: min(460px, calc(100vw - 64px));
}

.eyebrow {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 76px);
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 9ch;
}

.hud-help {
  left: 32px;
  bottom: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-help span,
.sound-button,
.loading-panel {
  border: 2px solid var(--line);
  background: rgba(255, 247, 233, 0.78);
  box-shadow: 0 14px 36px rgba(64, 44, 26, 0.16);
  backdrop-filter: blur(12px);
}

.hud-help span {
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.sound-button {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 104px;
  height: 44px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 850;
  text-transform: lowercase;
  cursor: none;
}

.legal-links {
  position: fixed;
  right: 150px;
  bottom: 24px;
  z-index: 8;
  display: flex;
  gap: 9px;
  align-items: center;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 247, 233, 0.78);
  box-shadow: 0 14px 36px rgba(64, 44, 26, 0.16);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  text-transform: lowercase;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 247, 233, 0.92);
  box-shadow: 0 18px 42px rgba(64, 44, 26, 0.2);
  outline: none;
}

.sound-button:hover {
  transform: translateY(-1px);
}

.sound-button[aria-pressed="true"] .sound-icon {
  background: var(--accent);
}

.sound-icon {
  width: 14px;
  height: 14px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(95, 147, 170, 0.18);
}

.code-overlay {
  position: fixed;
  inset: 0;
  z-index: 14;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(78px, clamp(18px, 4vw, 52px)) clamp(18px, 4vw, 52px) calc(28px + env(safe-area-inset-bottom));
  color: #f2f5f3;
  background:
    radial-gradient(circle at 18% 8%, rgba(88, 199, 168, 0.22), transparent 32rem),
    radial-gradient(circle at 82% 28%, rgba(131, 169, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, rgba(13, 18, 19, 0.92), rgba(17, 25, 27, 0.96) 52%, rgba(10, 14, 16, 0.98));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.code-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.code-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.52;
  animation: codeGrid 18s linear infinite;
}

.code-stage {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  min-height: calc(100vh - 106px);
  min-height: calc(100svh - 106px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.roadmap-stage {
  width: min(1040px, 100%);
  text-align: center;
}

.talk-stage {
  width: min(1000px, 100%);
  text-align: center;
}

.planner-stage {
  width: min(1040px, 100%);
  text-align: center;
}

.social-stage {
  width: min(1040px, 100%);
  text-align: center;
}

.race-stage {
  width: min(1000px, 100%);
  text-align: center;
}

.code-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(640px, 100%);
  min-height: 82px;
  margin: 44px auto 0;
  padding: 0 42px;
  border: 2px solid rgba(196, 255, 240, 0.62);
  border-radius: 8px;
  color: #11191b;
  background: linear-gradient(180deg, #c4fff0, #58c7a8);
  box-shadow: 0 30px 84px rgba(88, 199, 168, 0.28), 0 18px 58px rgba(0, 0, 0, 0.32);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0;
  animation: ctaPulse 2.8s ease-in-out infinite;
}

.code-site-link:hover,
.code-site-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 30px 82px rgba(88, 199, 168, 0.32), 0 18px 52px rgba(0, 0, 0, 0.3);
  outline: none;
}

.code-kicker {
  margin: 0 0 12px;
  color: #58c7a8;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.code-stage h1 {
  max-width: none;
  margin: 0 0 24px;
  color: #f2f5f3;
  font-size: clamp(42px, 8vw, 108px);
  line-height: 0.95;
}

.code-window {
  overflow: hidden;
  border: 1px solid rgba(165, 240, 220, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 10%, rgba(88, 199, 168, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(17, 25, 27, 0.84);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(165, 240, 220, 0.08);
  backdrop-filter: blur(20px) saturate(1.1);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(165, 240, 220, 0.1);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #58c7a8;
}

.terminal-bar span:nth-child(2) {
  background: #ffc766;
}

.terminal-bar span:nth-child(3) {
  background: #83a9ff;
}

.code-window pre {
  margin: 0;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  color: #a5f0dc;
  font: 760 clamp(16px, 2.4vw, 28px) / 1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.code-window code {
  display: grid;
}

.code-window code span {
  display: block;
  min-height: 1.6em;
  opacity: 0;
  transform: translateY(10px);
  animation: codeLine 4.8s ease infinite;
}

.code-window code span:nth-child(2) { animation-delay: 120ms; color: #f2f5f3; }
.code-window code span:nth-child(3) { animation-delay: 240ms; color: #83a9ff; }
.code-window code span:nth-child(4) { animation-delay: 360ms; color: #ffc766; }
.code-window code span:nth-child(5) { animation-delay: 480ms; color: #a5f0dc; }
.code-window code span:nth-child(6) { animation-delay: 600ms; }
.code-window code span:nth-child(8) { animation-delay: 840ms; color: #f2f5f3; }
.code-window code span:nth-child(9) { animation-delay: 960ms; color: #58c7a8; }
.code-window code span:nth-child(10) { animation-delay: 1080ms; }

.code-ribbons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 800px;
}

.code-ribbons span {
  position: absolute;
  color: rgba(242, 245, 243, 0.34);
  font: 850 13px / 1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  animation: ribbonFloat 7s ease-in-out infinite;
}

.code-ribbons span:nth-child(1) { left: 3%; top: 22%; }
.code-ribbons span:nth-child(2) { right: 1%; top: 30%; animation-delay: 1s; }
.code-ribbons span:nth-child(3) { left: 12%; bottom: -34px; animation-delay: 2s; }
.code-ribbons span:nth-child(4) { right: 15%; bottom: -18px; animation-delay: 3s; }

.code-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2;
  min-width: 104px;
  height: 44px;
  border: 1px solid rgba(165, 240, 220, 0.16);
  border-radius: 8px;
  color: #a5f0dc;
  background: rgba(17, 25, 27, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  font-weight: 850;
  cursor: none;
}

.code-close:hover,
.code-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(165, 240, 220, 0.42);
  outline: none;
}

.roadmap-overlay {
  background:
    radial-gradient(circle at 20% 12%, rgba(88, 199, 168, 0.2), transparent 30rem),
    radial-gradient(circle at 78% 22%, rgba(255, 199, 102, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(13, 18, 19, 0.93), rgba(17, 25, 27, 0.97) 58%, rgba(10, 14, 16, 0.99));
}

.talk-overlay {
  background:
    radial-gradient(circle at 18% 10%, rgba(131, 169, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 78% 24%, rgba(88, 199, 168, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(13, 18, 19, 0.93), rgba(17, 25, 27, 0.97) 58%, rgba(10, 14, 16, 0.99));
}

.planner-overlay {
  background:
    radial-gradient(circle at 18% 12%, rgba(88, 199, 168, 0.2), transparent 30rem),
    radial-gradient(circle at 80% 24%, rgba(225, 92, 58, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(13, 18, 19, 0.93), rgba(17, 25, 27, 0.97) 58%, rgba(10, 14, 16, 0.99));
}

.social-overlay {
  background:
    radial-gradient(circle at 18% 12%, rgba(131, 169, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 80% 24%, rgba(88, 199, 168, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(13, 18, 19, 0.93), rgba(17, 25, 27, 0.97) 58%, rgba(10, 14, 16, 0.99));
}

.race-overlay {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 199, 102, 0.16), transparent 30rem),
    radial-gradient(circle at 78% 24%, rgba(88, 199, 168, 0.2), transparent 30rem),
    linear-gradient(180deg, rgba(13, 18, 19, 0.93), rgba(17, 25, 27, 0.97) 58%, rgba(10, 14, 16, 0.99));
}

.roadmap-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(300px, 1.05fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(165, 240, 220, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 12%, rgba(88, 199, 168, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(17, 25, 27, 0.84);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(165, 240, 220, 0.08);
  padding: clamp(18px, 3vw, 28px);
  backdrop-filter: blur(20px) saturate(1.1);
}

.roadmap-preview {
  position: relative;
  width: min(100%, 500px);
  height: clamp(190px, 24vw, 260px);
  justify-self: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(165, 240, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 240, 220, 0.06) 1px, transparent 1px),
    rgba(8, 14, 15, 0.28);
  background-size: 32px 32px;
}

.roadmap-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.95;
  transform: scale(0.98);
}

.roadmap-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 25, 27, 0.12), transparent 42%),
    linear-gradient(180deg, transparent 74%, rgba(17, 25, 27, 0.28));
  pointer-events: none;
}

.roadmap-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.roadmap-copy p {
  margin: 0;
  color: #f2f5f3;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  font-weight: 900;
}

.roadmap-copy strong {
  max-width: 520px;
  margin: 0 0 8px;
  color: rgba(242, 245, 243, 0.84);
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.35;
  font-weight: 760;
}

.roadmap-copy span {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(165, 240, 220, 0.16);
  border-radius: 8px;
  color: #a5f0dc;
  background: rgba(17, 25, 27, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.talk-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(165, 240, 220, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 12%, rgba(131, 169, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(17, 25, 27, 0.84);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(165, 240, 220, 0.08);
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(20px) saturate(1.1);
}

.race-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  align-items: center;
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(165, 240, 220, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 199, 102, 0.1), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(17, 25, 27, 0.84);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(165, 240, 220, 0.08);
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(20px) saturate(1.1);
}

.race-clock-logo {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(280px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(165, 240, 220, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(88, 199, 168, 0.18), transparent 58%),
    rgba(8, 14, 15, 0.34);
  box-shadow: inset 0 0 0 12px rgba(165, 240, 220, 0.035), 0 24px 64px rgba(0, 0, 0, 0.24);
}

.race-clock-shadow {
  position: absolute;
  inset: 52px 34px 28px;
  border-radius: 50%;
  background: rgba(88, 199, 168, 0.16);
  filter: blur(22px);
  transform: translateY(26px) scaleX(1.18);
}

.race-clock-face {
  position: relative;
  display: block;
  width: 62%;
  aspect-ratio: 1;
  border: 10px solid #a5f0dc;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16), transparent 0 22%),
    radial-gradient(circle, rgba(88, 199, 168, 0.18), rgba(10, 18, 19, 0.92) 68%);
  box-shadow:
    inset 0 0 0 4px rgba(17, 25, 27, 0.84),
    0 18px 46px rgba(0, 0, 0, 0.3);
  animation: raceClockFloat 3.8s ease-in-out infinite;
}

.race-clock-face::before,
.race-clock-face::after {
  content: "";
  position: absolute;
  top: -28px;
  width: 42px;
  height: 22px;
  border: 7px solid #58c7a8;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: rgba(10, 18, 19, 0.92);
}

.race-clock-face::before {
  left: 22px;
  transform: rotate(-22deg);
}

.race-clock-face::after {
  right: 22px;
  transform: rotate(22deg);
}

.race-clock-mark {
  position: absolute;
  display: block;
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: #ffc766;
}

.mark-12 {
  top: 16px;
  left: calc(50% - 5px);
}

.mark-3 {
  top: calc(50% - 12px);
  right: 16px;
  transform: rotate(90deg);
}

.mark-6 {
  bottom: 16px;
  left: calc(50% - 5px);
}

.mark-9 {
  top: calc(50% - 12px);
  left: 16px;
  transform: rotate(90deg);
}

.race-clock-hand {
  position: absolute;
  left: calc(50% - 4px);
  bottom: 50%;
  display: block;
  width: 8px;
  border-radius: 999px;
  transform-origin: 50% 100%;
}

.race-clock-hour {
  height: 46px;
  background: #f2f5f3;
  transform: rotate(-44deg);
}

.race-clock-minute {
  height: 66px;
  background: #58c7a8;
  transform: rotate(78deg);
  animation: raceMinuteTick 5.6s steps(8, end) infinite;
}

.race-clock-center {
  position: absolute;
  left: calc(50% - 11px);
  top: calc(50% - 11px);
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffc766;
  box-shadow: 0 0 0 7px rgba(255, 199, 102, 0.18);
}

.race-clock-speedline {
  position: absolute;
  right: 16px;
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(165, 240, 220, 0.7));
  animation: raceSpeedline 1.9s ease-in-out infinite;
}

.race-clock-speedline:nth-of-type(3) {
  top: 78px;
  animation-delay: 0.16s;
}

.race-clock-speedline:nth-of-type(4) {
  top: 132px;
  right: 2px;
  width: 92px;
  animation-delay: 0.32s;
}

.race-clock-speedline:nth-of-type(5) {
  top: 188px;
  width: 64px;
  animation-delay: 0.48s;
}

@keyframes raceClockFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

@keyframes raceMinuteTick {
  to {
    transform: rotate(438deg);
  }
}

@keyframes raceSpeedline {
  0%, 100% {
    opacity: 0.18;
    transform: translateX(12px);
  }
  45% {
    opacity: 0.88;
    transform: translateX(-18px);
  }
}

.talk-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(165, 240, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 240, 220, 0.06) 1px, transparent 1px),
    rgba(8, 14, 15, 0.28);
  background-size: 32px 32px;
  overflow: hidden;
}

.talk-wave {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(165, 240, 220, 0.22);
  border-radius: 50%;
  animation: talkWave 3.2s ease-out infinite;
}

.talk-wave:nth-child(2) {
  animation-delay: 0.7s;
}

.talk-wave:nth-child(3) {
  animation-delay: 1.4s;
}

.talk-mic {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 128px;
  border-radius: 999px;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.16) 25%, transparent 25% 50%, rgba(255,255,255,0.16) 50% 75%, transparent 75%),
    linear-gradient(-45deg, rgba(165,240,220,0.16) 25%, transparent 25% 50%, rgba(165,240,220,0.16) 50% 75%, transparent 75%),
    linear-gradient(180deg, #263133, #101516);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.34), inset 0 -8px 18px rgba(0, 0, 0, 0.28);
}

.talk-mic span {
  position: absolute;
  left: 50%;
  bottom: -74px;
  width: 12px;
  height: 84px;
  border-radius: 999px;
  background: #aeb9ba;
  transform: translateX(-50%);
}

.talk-mic::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -84px;
  width: 94px;
  height: 18px;
  border-radius: 50%;
  background: #101516;
  transform: translateX(-50%);
}

.talk-copy p {
  color: #f2f5f3;
}

.talk-copy strong {
  max-width: 580px;
  font-size: clamp(15px, 1.35vw, 18px);
}

.planner-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(165, 240, 220, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 12%, rgba(88, 199, 168, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(17, 25, 27, 0.84);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(165, 240, 220, 0.08);
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(20px) saturate(1.1);
}

.fridge-ui {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 300px;
  padding: 34px 24px 24px;
  border: 1px solid rgba(165, 240, 220, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(232, 240, 237, 0.16), rgba(95, 147, 170, 0.08)),
    rgba(8, 14, 15, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.fridge-shelf {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 2px;
  background: rgba(165, 240, 220, 0.22);
}

.fridge-shelf:nth-child(1) {
  top: 112px;
}

.fridge-shelf:nth-child(2) {
  top: 206px;
}

.food-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: #11191b;
  background: #a5f0dc;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 900;
  animation: fridgeItem 4.2s ease-in-out infinite;
}

.food-pill:nth-child(4),
.food-pill:nth-child(6) {
  background: #ffc766;
}

.food-pill:nth-child(5) {
  background: #83a9ff;
}

.planner-copy strong {
  max-width: 590px;
  font-size: clamp(15px, 1.28vw, 18px);
}

.disabled-link {
  color: rgba(17, 25, 27, 0.74);
  background: linear-gradient(180deg, #e6efe9, #aeb9ba);
  border-color: rgba(232, 240, 237, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  animation: none;
  pointer-events: none;
}

.social-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  align-items: center;
  gap: 30px;
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(165, 240, 220, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 12%, rgba(131, 169, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(17, 25, 27, 0.84);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(165, 240, 220, 0.08);
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(20px) saturate(1.1);
}

.social-photo {
  width: min(280px, 100%);
  aspect-ratio: 4 / 5;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(165, 240, 220, 0.18);
  border-radius: 12px;
  background: rgba(8, 14, 15, 0.28);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.social-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 32%;
}

.social-copy strong {
  max-width: 560px;
}

.social-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  max-width: 920px;
  margin: 42px auto 0;
}

.social-actions .code-site-link {
  width: min(430px, 100%);
  margin: 0;
}

@keyframes codeGrid {
  to {
    transform: translate3d(-54px, -54px, 0);
  }
}

@keyframes codeLine {
  0%, 12% {
    opacity: 0;
    transform: translateY(10px);
  }
  24%, 82% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.55;
    transform: translateY(-3px);
  }
}

@keyframes ribbonFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(18px, -14px, 80px) rotate(4deg);
  }
}

@keyframes ctaPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes talkWave {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  18% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: scale(2.25);
  }
}

@keyframes fridgeItem {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4dec0;
  transition: opacity 720ms ease, visibility 720ms ease;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-panel {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100vw - 40px));
  min-height: min(650px, calc(100vh - 52px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(20px, 4vw, 48px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.loading-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.java-snippets {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 900px;
}

.java-snippets span {
  position: absolute;
  left: -34vw;
  top: var(--top);
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(36, 48, 52, 0.13);
  border-radius: 8px;
  color: rgba(36, 48, 52, 0.72);
  background: rgba(255, 247, 233, 0.62);
  box-shadow: 0 14px 38px rgba(64, 44, 26, 0.12);
  backdrop-filter: blur(10px);
  font: 800 13px / 1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
  animation: javaFly var(--duration) linear infinite;
  animation-delay: var(--delay);
  transform: translate3d(-20vw, 0, 0) rotate(var(--rotate));
}

.java-snippets span:nth-child(1) { --top: 9%; --duration: 5.8s; --delay: -1.2s; --rotate: -7deg; }
.java-snippets span:nth-child(2) { --top: 19%; --duration: 6.4s; --delay: -3.6s; --rotate: 5deg; }
.java-snippets span:nth-child(3) { --top: 31%; --duration: 7s; --delay: -2s; --rotate: -3deg; }
.java-snippets span:nth-child(4) { --top: 43%; --duration: 6.2s; --delay: -4.4s; --rotate: 6deg; }
.java-snippets span:nth-child(5) { --top: 54%; --duration: 5.6s; --delay: -0.8s; --rotate: -5deg; }
.java-snippets span:nth-child(6) { --top: 67%; --duration: 7.2s; --delay: -5.1s; --rotate: 4deg; }
.java-snippets span:nth-child(7) { --top: 78%; --duration: 6.7s; --delay: -2.8s; --rotate: -8deg; }
.java-snippets span:nth-child(8) { --top: 86%; --duration: 5.9s; --delay: -4.9s; --rotate: 7deg; }
.java-snippets span:nth-child(9) { --top: 24%; --duration: 7.6s; --delay: -6.1s; --rotate: -2deg; }
.java-snippets span:nth-child(10) { --top: 61%; --duration: 6.9s; --delay: -1.7s; --rotate: 3deg; }

.loading .java-snippets {
  display: none;
}

.loading-count {
  margin: 0;
  color: var(--ink);
  font-size: 148px;
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: 0;
}

.loading-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  grid-auto-rows: 138px;
  gap: clamp(7px, 1vw, 12px);
  width: 100%;
  max-width: 984px;
  max-height: none;
}

.loading-mosaic img {
  width: 100%;
  height: 100%;
  min-width: 0;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.95) contrast(1.02);
  box-shadow: 0 16px 42px rgba(47, 31, 20, 0.18);
  transform: translateY(22px) scale(0.92);
  animation: loaderTile 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.loading-mosaic img:nth-child(1) { animation-delay: 0.12s; }
.loading-mosaic img:nth-child(2) { animation-delay: 0.24s; }
.loading-mosaic img:nth-child(3) { animation-delay: 0.36s; }
.loading-mosaic img:nth-child(4) { animation-delay: 0.48s; }
.loading-mosaic img:nth-child(5) { animation-delay: 0.6s; }
.loading-mosaic img:nth-child(6) { animation-delay: 0.72s; }
.loading-mosaic img:nth-child(7) { animation-delay: 0.84s; }
.loading-mosaic img:nth-child(8) { animation-delay: 0.96s; }
.loading-mosaic img:nth-child(9) { animation-delay: 1.08s; }
.loading-mosaic img:nth-child(10) { animation-delay: 1.2s; }
.loading-mosaic img:nth-child(11) { animation-delay: 1.32s; }
.loading-mosaic img:nth-child(12) { animation-delay: 1.44s; }
.loading-mosaic img:nth-child(13) { animation-delay: 1.56s; }
.loading-mosaic img:nth-child(14) { animation-delay: 1.68s; }
.loading-mosaic img:nth-child(15) { animation-delay: 1.8s; }
.loading-mosaic img:nth-child(16) { animation-delay: 1.92s; }

.loading-caption {
  align-self: flex-end;
  margin: 0;
  color: rgba(36, 48, 52, 0.64);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes loaderTile {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
  42%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes javaFly {
  0% {
    opacity: 0;
    transform: translate3d(-22vw, 20px, -80px) rotate(var(--rotate));
  }
  12% {
    opacity: 0.85;
  }
  50% {
    transform: translate3d(58vw, -16px, 70px) rotate(calc(var(--rotate) * -1));
  }
  88% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate3d(142vw, 18px, -40px) rotate(var(--rotate));
  }
}

@media (max-width: 700px) {
  .puffy-cursor {
    display: none;
  }

  .sound-button,
  .legal-links a {
    height: 42px;
    min-width: 0;
    box-shadow: 0 10px 26px rgba(64, 44, 26, 0.14);
  }

  .sound-button {
    right: 14px;
    bottom: calc(116px + env(safe-area-inset-bottom));
    min-width: 98px;
    padding: 0 15px;
    justify-content: center;
    z-index: 9;
  }

  .sound-icon {
    width: 12px;
    height: 12px;
    margin-left: 0;
  }

  .legal-links {
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .legal-links a {
    width: 100%;
    padding: 0 10px;
    font-size: 12px;
  }

  .code-overlay {
    padding: 82px 14px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .code-stage {
    width: 100%;
    min-height: auto;
    justify-content: flex-start;
  }

  .code-close {
    top: 14px;
    right: 14px;
    min-width: 88px;
    height: 40px;
  }

  .code-site-link {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    margin-top: 28px;
    margin-bottom: 0;
    padding: 0 20px;
    font-size: 20px;
  }

  .code-stage h1 {
    margin-bottom: 16px;
    font-size: clamp(36px, 13vw, 58px);
  }

  .code-window {
    border-radius: 8px;
  }

  .terminal-bar {
    padding: 11px 12px;
  }

  .terminal-bar span {
    width: 9px;
    height: 9px;
  }

  .code-window pre {
    padding: 16px 14px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.55;
  }

  .code-ribbons {
    display: none;
  }

  .roadmap-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    padding: 16px 14px;
  }

  .talk-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    padding: 16px 14px;
  }

  .planner-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    padding: 16px 14px;
  }

  .social-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    padding: 16px 14px;
  }

  .race-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    padding: 16px 14px;
  }

  .roadmap-preview {
    width: 100%;
    height: 180px;
  }

  .talk-orbit {
    min-height: 220px;
  }

  .fridge-ui {
    min-height: 220px;
  }

  .race-clock-logo {
    width: min(220px, 100%);
  }

  .social-photo {
    width: min(210px, 100%);
  }

  .roadmap-copy,
  .talk-copy,
  .planner-copy,
  .social-copy,
  .race-copy {
    align-items: center;
    text-align: center;
  }

  .social-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .social-actions .code-site-link {
    width: 100%;
  }

  .roadmap-copy p {
    font-size: 32px;
  }

  .roadmap-copy strong {
    font-size: 15px;
  }

  .loading-panel {
    width: min(360px, calc(100vw - 48px));
    min-height: calc(100vh - 44px);
    padding: 18px 0;
    gap: 18px;
  }

  .loading-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .loading-count {
    font-size: 96px;
  }

  .loading-mosaic {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    grid-auto-rows: 94px;
    max-height: none;
  }

  .loading-caption {
    align-self: flex-start;
    max-width: 260px;
  }

  .java-snippets span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (max-height: 760px) and (min-width: 701px) {
  .code-overlay {
    padding-top: 72px;
    padding-bottom: 22px;
  }

  .code-stage {
    min-height: calc(100vh - 94px);
    min-height: calc(100svh - 94px);
  }

  .code-stage h1 {
    margin-bottom: 16px;
    font-size: 56px;
  }

  .code-site-link {
    min-height: 62px;
    margin-top: 22px;
    font-size: 22px;
  }

  .code-window pre {
    padding: 18px 20px;
    font-size: 16px;
    line-height: 1.45;
  }

  .code-window code span {
    min-height: 1.45em;
  }

  .roadmap-card,
  .talk-card,
  .planner-card,
  .social-card,
  .race-card {
    gap: 20px;
    padding: 20px;
  }

  .roadmap-preview {
    height: 190px;
  }

  .talk-orbit,
  .fridge-ui {
    min-height: 220px;
  }

  .race-clock-logo {
    width: min(220px, 100%);
  }

  .social-photo {
    width: min(220px, 100%);
  }

  .roadmap-copy p {
    font-size: 34px;
  }

  .roadmap-copy strong {
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  .sound-button {
    left: 14px;
    right: auto;
  }

  .legal-links {
    gap: 7px;
  }

  .legal-links a {
    font-size: 11px;
  }

  .code-window pre {
    font-size: 11px;
  }
}
