:root {
  color-scheme: light;
  --ink: #12120e;
  --cream: #fff8d6;
  --sun: #ffd952;
  --sun-hot: #ffb42b;
  --pool: #3159ff;
  --pool-deep: #1a2caa;
  --goggle: #a8ff24;
  --glass: rgba(255, 248, 214, 0.16);
  --line: rgba(18, 18, 14, 0.18);
  --shadow: 0 28px 80px rgba(11, 20, 91, 0.24);
  --mx: 0;
  --my: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #11120f;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  background: #11120f;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.experience {
  isolation: isolate;
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: var(--sun);
}

.background,
.sun-wash,
.grain,
.water-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: -5;
  inset: -3%;
  background-image: url("assets/hero-background.webp");
  background-position: center center;
  background-size: cover;
  transform: scale(1.04) translate(calc(var(--mx) * -7px), calc(var(--my) * -5px));
  filter: saturate(1.04) contrast(0.99);
  transition: transform 180ms ease-out;
}

.sun-wash {
  z-index: -4;
  background:
    radial-gradient(circle at 51% 15%, rgba(255, 255, 207, 0.72) 0 8%, transparent 30%),
    linear-gradient(90deg, rgba(255, 215, 82, 0.34) 0%, transparent 39%, transparent 67%, rgba(34, 55, 166, 0.18) 100%),
    linear-gradient(0deg, rgba(24, 38, 128, 0.35), transparent 40%);
  mix-blend-mode: soft-light;
}

.water-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.grain {
  z-index: 20;
  opacity: 0.18;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: clamp(22px, 3.4vh, 42px);
  left: clamp(28px, 4vw, 78px);
  right: clamp(28px, 4vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transform: translateY(3px);
}

.brand-name {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(18, 18, 14, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 214, 0.44);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.brand-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78dd17;
  box-shadow: 0 0 0 4px rgba(120, 221, 23, 0.2);
  animation: status-pulse 2s ease-in-out infinite;
}

.socials {
  display: flex;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 248, 214, 0.84);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.nav-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.nav-link--dark {
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--goggle);
  color: var(--cream);
}

.nav-link--dark:hover {
  box-shadow: 6px 6px 0 var(--goggle);
}

.mini-bubble {
  width: 11px;
  height: 11px;
  border: 2px solid var(--goggle);
  border-radius: 50%;
}

.hero-copy {
  position: absolute;
  z-index: 8;
  top: clamp(146px, 18vh, 205px);
  left: clamp(32px, 5vw, 96px);
  width: min(41vw, 740px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 15px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(0.68rem, 0.7vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 34px;
  height: 7px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--goggle);
  transform: rotate(-7deg);
}

h1 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(5.6rem, 8.5vw, 10.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.72;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 rgba(255, 248, 214, 0.55);
}

h1 > span {
  display: block;
}

.title-second {
  color: var(--pool);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  transform: translateX(10.5%) rotate(-2deg);
}

.title-second i {
  display: inline-block;
  margin-left: 4px;
  color: var(--goggle);
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
  animation: exclaim-wiggle 2.4s ease-in-out infinite;
}

.tagline {
  margin: clamp(28px, 4vh, 44px) 0 0;
  color: rgba(18, 18, 14, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.45vw, 1.75rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(24px, 3.3vh, 38px);
}

.ca-button {
  display: inline-flex;
  min-width: 205px;
  min-height: 60px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 6px 9px 6px 7px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--goggle);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.ca-button:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 9px 9px 0 var(--ink);
  filter: saturate(1.08);
}

.ca-button:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.ca-label {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.ca-button strong {
  max-width: 250px;
  overflow: hidden;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-icon {
  display: grid;
  margin-left: auto;
  place-items: center;
}

.copy-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.ca-hint {
  max-width: 98px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0.63;
  text-transform: uppercase;
}

.character-zone {
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  z-index: 7;
  top: clamp(96px, 8.5vh, 108px);
  left: 34.5vw;
  width: min(47vw, 880px);
  height: calc(100% - 72px);
  perspective: 900px;
}

.character-float {
  position: absolute;
  z-index: 4;
  inset: 1% -2% -8%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
  animation: mascot-bob 5.8s ease-in-out infinite;
}

.character {
  display: block;
  width: min(100%, 850px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 24px rgba(22, 34, 116, 0.28));
  user-select: none;
  -webkit-user-drag: none;
}

.character-halo {
  position: absolute;
  z-index: 1;
  top: 9%;
  left: 50%;
  width: min(35vw, 610px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 248, 214, 0.65);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 197, 0.78), rgba(255, 205, 52, 0.32) 48%, transparent 70%);
  box-shadow: 0 0 100px rgba(255, 222, 105, 0.65);
  transform: translateX(-50%);
  animation: halo-breathe 6s ease-in-out infinite;
}

.character-shadow {
  position: absolute;
  z-index: 2;
  left: 18%;
  right: 18%;
  bottom: 2.5%;
  height: 5%;
  border-radius: 50%;
  background: rgba(21, 31, 121, 0.35);
  filter: blur(12px);
  animation: shadow-breathe 5.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: 2;
  left: 50%;
  border: 2px solid rgba(255, 255, 220, 0.48);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-8deg);
}

.orbit::after {
  position: absolute;
  top: 8%;
  left: 11%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 230, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 3px 3px 5px rgba(255, 255, 255, 0.5);
  content: "";
}

.orbit--one {
  top: 14%;
  width: 83%;
  height: 55%;
  animation: orbit-spin 13s linear infinite;
}

.orbit--two {
  top: 8%;
  width: 67%;
  height: 69%;
  opacity: 0.55;
  animation: orbit-spin-reverse 17s linear infinite;
}

.goggle-glint {
  position: absolute;
  z-index: 7;
  top: 33%;
  width: 14%;
  height: 5%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  filter: blur(1px);
  opacity: 0;
  transform: rotate(-14deg);
  animation: glint 4.6s ease-in-out infinite;
}

.goggle-glint--left {
  left: 24%;
}

.goggle-glint--right {
  right: 23%;
  animation-delay: 140ms;
}

.splash-button {
  position: absolute;
  z-index: 10;
  right: 4%;
  bottom: 13%;
  display: inline-flex;
  min-height: 46px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 248, 214, 0.86);
  box-shadow: 4px 4px 0 var(--pool-deep);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.splash-button span {
  color: var(--pool);
  font-size: 1.4rem;
  line-height: 0;
}

.splash-button:hover {
  transform: rotate(2deg) translateY(-2px);
  box-shadow: 6px 6px 0 var(--pool-deep);
}

.character-zone.is-splashing .character-float {
  animation: character-splash 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.splash-particle {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 20%;
  width: var(--size);
  height: var(--size);
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 48% 52%;
  background: rgba(74, 182, 255, 0.5);
  box-shadow: inset 3px 3px 5px rgba(255, 255, 255, 0.55);
  animation: particle-splash 900ms ease-out forwards;
}

.lore-card {
  position: absolute;
  z-index: 9;
  top: clamp(145px, 17vh, 188px);
  right: clamp(30px, 4.1vw, 80px);
  width: min(24vw, 420px);
  padding: clamp(20px, 2vw, 31px);
  border: 2px solid rgba(18, 18, 14, 0.76);
  border-radius: 26px 26px 58px 26px;
  background: rgba(255, 248, 214, 0.76);
  box-shadow: 10px 10px 0 rgba(18, 18, 14, 0.84), var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  transform: rotate(1deg);
}

.lore-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(18, 18, 14, 0.2);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lore-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--pool);
  color: #fff;
}

.lore-wave {
  color: var(--pool);
  font-size: 1.25rem;
}

.lore-card h2 {
  margin: 18px 0 13px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.75rem, 2.25vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.96;
  text-transform: uppercase;
}

.lore-card > p {
  margin: 0 0 11px;
  color: rgba(18, 18, 14, 0.8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.82rem, 0.84vw, 1rem);
  line-height: 1.44;
}

.lore-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 18px 0 0;
}

.lore-stats div {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(18, 18, 14, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.23);
}

.lore-stats dt {
  margin-bottom: 4px;
  color: rgba(18, 18, 14, 0.5);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lore-stats dd {
  margin: 0;
  overflow: hidden;
  font-size: clamp(0.64rem, 0.7vw, 0.8rem);
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
}

.corner-note {
  position: absolute;
  z-index: 6;
  right: clamp(30px, 4.1vw, 80px);
  bottom: clamp(74px, 9vh, 100px);
  display: flex;
  align-items: flex-end;
  gap: 9px;
  color: rgba(255, 248, 214, 0.92);
  text-align: right;
  text-shadow: 0 2px 12px rgba(15, 24, 84, 0.55);
  transform: rotate(-2deg);
}

.corner-note span {
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-style: italic;
}

.corner-note b {
  max-width: 150px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}

.ticker {
  position: absolute;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(50px, 5.8vh, 63px);
  overflow: hidden;
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: clamp(28px, 3vw, 58px);
  padding-left: 30px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.55rem);
  letter-spacing: 0.1em;
  white-space: nowrap;
  animation: ticker-move 18s linear infinite;
}

.ticker-track i {
  color: var(--goggle);
  font-style: normal;
}

.toast {
  position: fixed;
  z-index: 80;
  bottom: 88px;
  left: 50%;
  padding: 13px 19px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(7, 11, 55, 0.26);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

@keyframes status-pulse {
  50% { transform: scale(0.72); opacity: 0.72; }
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotateX(var(--rx)) rotateY(var(--ry)); }
  50% { transform: translateY(-15px) rotateX(var(--rx)) rotateY(var(--ry)); }
}

@keyframes halo-breathe {
  0%, 100% { transform: translateX(-50%) scale(0.96); opacity: 0.76; }
  50% { transform: translateX(-50%) scale(1.04); opacity: 1; }
}

@keyframes shadow-breathe {
  0%, 100% { transform: scaleX(0.9); opacity: 0.42; }
  50% { transform: scaleX(1.04); opacity: 0.27; }
}

@keyframes orbit-spin {
  to { transform: translateX(-50%) rotate(352deg); }
}

@keyframes orbit-spin-reverse {
  to { transform: translateX(-50%) rotate(-368deg); }
}

@keyframes glint {
  0%, 48%, 100% { opacity: 0; transform: translateX(-35px) rotate(-14deg); }
  55% { opacity: 0.82; }
  64% { opacity: 0; transform: translateX(55px) rotate(-14deg); }
}

@keyframes exclaim-wiggle {
  0%, 82%, 100% { transform: rotate(0deg) scale(1); }
  88% { transform: rotate(9deg) scale(1.08); }
  94% { transform: rotate(-7deg) scale(0.98); }
}

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

@keyframes character-splash {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  28% { transform: translateY(-44px) rotate(-3deg) scale(1.03); }
  56% { transform: translateY(8px) rotate(2deg) scale(0.98); }
  76% { transform: translateY(-9px) rotate(-1deg) scale(1.01); }
}

@keyframes particle-splash {
  0% { opacity: 0.9; transform: translate(-50%, 0) scale(0.45); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), var(--y)) scale(1.15); }
}

@media (min-width: 2000px) {
  .experience {
    width: 1920px;
    height: 1080px;
    margin: calc((100vh - 1080px) / 2) auto;
    box-shadow: 0 0 120px #000;
  }
}

@media (max-width: 1320px) {
  .brand-status,
  .corner-note {
    display: none;
  }

  .hero-copy {
    width: 42vw;
  }

  .character-zone {
    left: 33vw;
    width: 48vw;
  }

  .lore-card {
    width: 25vw;
  }
}

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

  .experience {
    min-height: 980px;
    height: auto;
  }

  .site-header {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    padding: 22px 24px 0;
  }

  .hero-copy {
    top: 125px;
    left: 30px;
    width: 56vw;
  }

  h1 {
    font-size: clamp(5.1rem, 12vw, 8.3rem);
  }

  .character-zone {
    top: 150px;
    left: 42vw;
    width: 62vw;
    height: 680px;
  }

  .lore-card {
    top: 570px;
    right: auto;
    left: 30px;
    width: min(47vw, 440px);
  }
}

@media (max-width: 720px) {
  .experience {
    min-height: 1450px;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand-name {
    max-width: 80px;
    line-height: 0.95;
  }

  .socials {
    gap: 7px;
  }

  .nav-link {
    min-width: 44px;
    min-height: 44px;
    padding: 0 13px;
  }

  .nav-link span:last-child {
    display: none;
  }

  .hero-copy {
    top: 125px;
    left: 22px;
    width: calc(100% - 44px);
  }

  .eyebrow {
    font-size: 0.64rem;
  }

  h1 {
    font-size: clamp(4.7rem, 23vw, 7.7rem);
  }

  .tagline {
    font-size: 1.12rem;
  }

  .character-zone {
    top: 475px;
    left: -6vw;
    width: 112vw;
    height: 650px;
  }

  .character-halo {
    width: 75vw;
  }

  .splash-button {
    right: 13%;
    bottom: 9%;
  }

  .lore-card {
    top: 1000px;
    left: 20px;
    width: calc(100% - 40px);
    transform: none;
  }

  .lore-card h2 {
    font-size: 2rem;
  }

  .lore-card > p {
    font-size: 0.9rem;
  }

  .ticker {
    position: absolute;
  }
}

@media (max-height: 760px) and (min-width: 1041px) {
  .experience {
    min-height: 620px;
  }

  .site-header {
    top: 20px;
  }

  .hero-copy {
    top: 120px;
  }

  .tagline {
    margin-top: 24px;
  }

  .actions {
    margin-top: 20px;
  }

  .lore-card {
    top: 115px;
  }

  .lore-card > p {
    margin-bottom: 7px;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .water-canvas {
    display: none;
  }
}
