/* ============================================================
   SKY DOPE — a small kingdom above the weather
   Desktop-first, designed at 1920×1080.
   ============================================================ */

@font-face {
  font-family: "Bungee";
  src: url("../assets/fonts/Bungee.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Black.ttf") format("truetype");
  font-weight: 800 1000;
  font-display: swap;
}

:root {
  --ink: #241a3d;
  --ink-soft: #3c2f63;
  --deep: #141b3d;
  --deep-2: #1d2757;
  --cream: #fff6e0;
  --paper: #ffedbe;
  --gold: #ffb63e;
  --gold-2: #ffcf87;
  --gold-deep: #e8873a;
  --orange: #d96f32;
  --white: #fffdf6;
  --shadow: 0 24px 60px rgba(20, 16, 54, .35);
  --radius: 26px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--deep);
  overflow-x: hidden;
  min-width: 1180px;
  -webkit-font-smoothing: antialiased;
}

img { user-select: none; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- ambient sun glow that trails the cursor ---------- */
.sun-glow {
  position: fixed;
  width: 520px; height: 520px;
  left: 0; top: 0;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 84, .20) 0%, rgba(255, 170, 70, .07) 42%, transparent 68%);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  will-change: transform;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 42px;
  transform: translate(-50%, 90px) rotate(-2deg);
  background: var(--ink);
  color: var(--paper);
  font-family: "Bungee", sans-serif;
  font-size: 15px;
  letter-spacing: .14em;
  padding: 16px 30px 14px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  z-index: 200;
  opacity: 0;
  transition: transform .45s cubic-bezier(.2, 1.6, .4, 1), opacity .3s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0) rotate(-2deg); opacity: 1; }

/* ================= NAV ================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 18px 56px;
  background: linear-gradient(180deg, rgba(16, 20, 48, .72), rgba(16, 20, 48, 0));
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(18, 23, 54, .88);
  backdrop-filter: blur(14px);
  padding: 10px 56px;
  box-shadow: 0 12px 34px rgba(8, 10, 30, .35);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--cream);
  margin-right: auto;
}
.brand-face {
  width: 48px; height: 48px;
  object-fit: cover; object-position: top;
  border-radius: 14px;
  border: 2px solid rgba(255, 207, 135, .8);
  background: linear-gradient(180deg, #31448c, #f2a84e);
  transition: transform .35s cubic-bezier(.2, 1.8, .4, 1);
}
.brand:hover .brand-face { transform: rotate(-6deg) scale(1.08); }
.brand-name {
  font-family: "Bungee", sans-serif;
  font-size: 21px; letter-spacing: .04em;
  text-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.brand-ticker {
  font-weight: 900; font-size: 13px; letter-spacing: .12em;
  color: var(--ink);
  background: var(--gold);
  padding: 5px 11px 4px;
  border-radius: 999px;
  transform: rotate(2deg);
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: rgba(255, 246, 224, .85);
  text-decoration: none;
  font-weight: 800; font-size: 15px; letter-spacing: .05em;
  position: relative; padding: 6px 2px;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px; border-radius: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.7, 0, .2, 1);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  color: var(--ink); text-decoration: none;
  font-family: "Bungee", sans-serif; font-size: 14px; letter-spacing: .05em;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  padding: 13px 22px 11px;
  border-radius: 999px;
  border: 2px solid #ffe9bd;
  box-shadow: 0 10px 26px rgba(255, 166, 48, .35), inset 0 -3px 0 rgba(160, 84, 20, .45);
  transition: transform .25s cubic-bezier(.2, 1.8, .4, 1), box-shadow .25s ease;
}
.nav-cta:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 18px 34px rgba(255, 166, 48, .45), inset 0 -3px 0 rgba(160, 84, 20, .45); }
.nav-cta:active { transform: translateY(0) scale(.97); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none;
  font-family: "Bungee", sans-serif;
  font-size: 16px; letter-spacing: .05em;
  padding: 17px 30px 15px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.2, 1.8, .4, 1), box-shadow .25s ease, background .25s ease, color .25s ease;
  will-change: transform;
}
.btn-icon { width: 19px; height: 19px; flex: none; }
.btn-arrow { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 20px; line-height: 1; transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-dark {
  background: var(--ink); color: var(--paper);
  border-color: rgba(255, 237, 190, .35);
  box-shadow: 0 16px 34px rgba(18, 12, 44, .42), inset 0 -4px 0 rgba(0,0,0,.35);
}
.btn-dark:hover { transform: translateY(-4px) rotate(-1deg); background: #2f2160; box-shadow: 0 24px 44px rgba(18, 12, 44, .5), inset 0 -4px 0 rgba(0,0,0,.35); }
.btn-dark:active { transform: translateY(-1px) scale(.97); }

.btn-gold {
  background: linear-gradient(180deg, #ffd98f, var(--gold) 55%, #ff9d2e);
  color: #4a2403;
  border-color: #ffedc2;
  box-shadow: 0 16px 36px rgba(255, 158, 44, .42), inset 0 -4px 0 rgba(160, 84, 20, .5), inset 0 2px 0 rgba(255,255,255,.65);
}
.btn-gold:hover { transform: translateY(-4px) rotate(1deg); box-shadow: 0 26px 48px rgba(255, 158, 44, .55), inset 0 -4px 0 rgba(160, 84, 20, .5), inset 0 2px 0 rgba(255,255,255,.65); }
.btn-gold:active { transform: translateY(-1px) scale(.97); }

.btn-big { font-size: 19px; padding: 21px 40px 19px; }

.btn-copy {
  flex: none;
  background: var(--ink); color: var(--paper);
  border-color: rgba(255, 237, 190, .4);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.35);
  padding: 15px 26px 13px;
}
.btn-copy:hover { transform: translateY(-3px) rotate(-1deg); background: #2f2160; }
.btn-copy:active { transform: scale(.95); }
.btn-copy.copied {
  background: #2e7d4f; color: #eafff2; border-color: #b9ffd2;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 1080px;
  height: 100vh;
  max-height: 1200px;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep);
}
.hero-bg {
  position: absolute; inset: -6%;
  background: url("../assets/background/sky-hero.jpg") center 38% / cover no-repeat;
  z-index: -3;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 20, 52, .55) 0%, rgba(16, 20, 52, .18) 42%, transparent 65%),
    linear-gradient(0deg, rgba(20, 22, 54, .38) 0%, transparent 26%),
    linear-gradient(180deg, rgba(16, 20, 52, .42) 0%, transparent 22%);
}
.hero-sun {
  position: absolute;
  width: 900px; height: 900px;
  right: 6%; top: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 150, .75) 0%, rgba(255, 190, 84, .32) 38%, transparent 68%);
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
#motes {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 5;
  max-width: 1760px;
  margin: 0 auto;
  height: 100%;
  padding: 150px 80px 130px;
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 1.05fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--paper);
  font-weight: 900; font-size: 14px;
  letter-spacing: .22em; text-transform: uppercase;
  background: rgba(22, 26, 60, .45);
  border: 1px solid rgba(255, 237, 190, .35);
  backdrop-filter: blur(6px);
  padding: 10px 18px 9px;
  border-radius: 999px;
}
.eyebrow-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 182, 62, .7);
  animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 182, 62, .65); }
  70% { box-shadow: 0 0 0 10px rgba(255, 182, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 182, 62, 0); }
}

.hero-title {
  margin-top: 28px;
  font-family: "Bungee", sans-serif;
  line-height: .92;
  letter-spacing: .01em;
}
.title-line { display: block; }
.title-sky {
  font-size: 118px;
  color: var(--cream);
  -webkit-text-stroke: 3px rgba(36, 26, 61, .9);
  text-shadow: 0 6px 0 rgba(36, 26, 61, .9), 0 22px 44px rgba(10, 12, 36, .45);
}
.title-dope {
  font-size: 172px;
  background: linear-gradient(180deg, #ffe9ad 8%, var(--gold) 48%, var(--gold-deep) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 7px 0 rgba(36, 26, 61, .92)) drop-shadow(0 26px 34px rgba(10, 12, 36, .4));
}

.ticker-row { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.ticker-pill {
  font-family: "Bungee", sans-serif;
  font-size: 24px; letter-spacing: .05em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border: 2px solid #ffedc2;
  padding: 11px 24px 9px;
  border-radius: 999px;
  transform: rotate(-2deg);
  box-shadow: 0 14px 30px rgba(255, 158, 44, .4), inset 0 -3px 0 rgba(160, 84, 20, .45);
}
.ticker-note {
  color: rgba(255, 246, 224, .92);
  font-weight: 800; font-size: 17px; font-style: italic;
  text-shadow: 0 2px 12px rgba(10, 12, 36, .6);
}

.hero-lede {
  margin-top: 26px;
  color: #fff8e6;
  font-size: 24px; line-height: 1.45; font-weight: 700;
  max-width: 560px;
  text-shadow: 0 3px 18px rgba(10, 12, 36, .65);
}

/* --- contract box --- */
.ca-box {
  margin-top: 34px;
  display: flex; align-items: stretch; gap: 14px;
  background: rgba(255, 250, 235, .94);
  border: 2px solid rgba(36, 26, 61, .9);
  border-radius: 20px;
  padding: 12px 12px 12px 24px;
  max-width: 660px;
  box-shadow: 0 20px 44px rgba(14, 14, 44, .4), inset 0 -5px 0 rgba(232, 135, 58, .35);
  transform: rotate(-.4deg);
  transition: transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.ca-box:hover { transform: rotate(0deg) translateY(-3px); }
.ca-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-right: auto; }
.ca-label {
  font-size: 11px; font-weight: 900;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--orange);
}
.ca-value {
  font-family: "Courier New", monospace;
  font-weight: 700; font-size: 17px; letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 400px;
}

.hero-actions { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }

/* --- the king --- */
.hero-king {
  position: relative;
  justify-self: center;
  width: min(700px, 100%);
  will-change: transform;
}
.king-halo {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  left: 50%; top: 6%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 160, .85) 0%, rgba(255, 192, 92, .35) 45%, transparent 70%);
  filter: blur(4px);
  animation: haloBreathe 5s ease-in-out infinite;
}
@keyframes haloBreathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .9; }
  50% { transform: translateX(-50%) scale(1.07); opacity: 1; }
}
.king-float { position: relative; animation: kingFloat 6s ease-in-out infinite; }
@keyframes kingFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(.6deg); }
}
.king-img {
  position: relative; z-index: 2;
  width: 100%; display: block;
  cursor: pointer;
  filter: drop-shadow(0 34px 34px rgba(58, 30, 4, .35));
  transition: transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.king-img.boop { animation: boop .55s cubic-bezier(.2, 2.2, .4, 1); }
@keyframes boop {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.05, .9) translateY(12px); }
  55% { transform: scale(.96, 1.06) translateY(-14px); }
  100% { transform: scale(1, 1); }
}
.king-shadow {
  position: absolute; z-index: 1;
  left: 50%; bottom: -8px;
  width: 62%; height: 44px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(70, 34, 4, .42), transparent 68%);
  animation: shadowPulse 6s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: .85; }
  50% { transform: translateX(-50%) scaleX(.82); opacity: .55; }
}
.speech {
  position: absolute; z-index: 5;
  right: -14px; top: 15%;
  background: var(--white);
  color: var(--ink);
  font-family: "Bungee", sans-serif;
  font-size: 17px; letter-spacing: .03em;
  padding: 15px 22px 13px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  box-shadow: 6px 8px 0 rgba(36, 26, 61, .9);
  transform: rotate(3deg);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, 1.8, .4, 1);
}
.speech::after {
  content: "";
  position: absolute; left: 22px; bottom: -11px;
  width: 18px; height: 18px;
  background: var(--white);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) skew(12deg, 12deg);
}
.speech.swap { opacity: 0; transform: rotate(3deg) translateY(8px) scale(.92); }

.sparkle {
  position: absolute; z-index: 4;
  width: 22px; height: 22px;
  background: #ffe9ad;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  animation: twinkle 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 210, 110, .9));
}
.sparkle.s1 { left: 6%; top: 12%; }
.sparkle.s2 { right: 10%; top: 4%; width: 15px; height: 15px; animation-delay: .9s; }
.sparkle.s3 { right: -2%; top: 46%; width: 17px; height: 17px; animation-delay: 1.7s; }
@keyframes twinkle {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .45; }
  50% { transform: scale(1.15) rotate(35deg); opacity: 1; }
}
.king-hint {
  position: absolute; z-index: 5;
  left: -26px; top: 42%;
  transform: rotate(-4deg);
  color: var(--paper);
  background: rgba(22, 26, 60, .55);
  border: 1px solid rgba(255, 237, 190, .4);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 15px 7px;
  font-weight: 900; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(10, 12, 36, .7);
  white-space: nowrap;
  animation: tagBob 5s ease-in-out infinite;
}

/* --- foreground clouds --- */
.hero-clouds {
  position: absolute; z-index: 6;
  left: -4%; right: -4%; bottom: -46px;
  height: 170px;
  pointer-events: none;
  will-change: transform;
}
.puff {
  position: absolute; bottom: 0;
  background: radial-gradient(ellipse at 50% 60%, #fff6dc 20%, #ffd9a0 58%, rgba(255, 196, 120, 0) 75%);
  border-radius: 50%;
  filter: blur(2px);
  animation: drift 11s ease-in-out infinite alternate;
}
.puff.p1 { width: 420px; height: 150px; left: -60px; }
.puff.p2 { width: 520px; height: 175px; left: 20%; animation-delay: -4s; }
.puff.p3 { width: 460px; height: 160px; left: 46%; animation-delay: -8s; }
.puff.p4 { width: 560px; height: 185px; right: 14%; animation-delay: -2s; }
.puff.p5 { width: 430px; height: 150px; right: -70px; animation-delay: -6s; }
.puff.p6 { width: 300px; height: 120px; left: 62%; bottom: 34px; animation-delay: -9s; opacity: .85; }
@keyframes drift {
  from { transform: translateX(-16px); }
  to { transform: translateX(22px); }
}

.scroll-hint {
  position: absolute; z-index: 8;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: rgba(255, 246, 224, .9);
  text-decoration: none;
  font-size: 12px; font-weight: 900;
  letter-spacing: .26em; text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(10, 12, 36, .8);
}
.scroll-line {
  width: 2px; height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  border-radius: 2px;
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(.55); opacity: .55; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ================= MARQUEE ================= */
.marquee {
  position: relative; z-index: 10;
  overflow: hidden;
  background: var(--ink);
  border-top: 2px solid rgba(255, 207, 135, .5);
  border-bottom: 2px solid rgba(255, 207, 135, .5);
  padding: 17px 0 15px;
  transform: rotate(-.6deg) scale(1.01);
}
.marquee-alt { background: var(--gold); border-color: var(--ink); transform: rotate(.5deg) scale(1.01); }
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marqueeMove 30s linear infinite;
  white-space: nowrap;
}
.marquee-alt .marquee-track { animation-duration: 36s; animation-direction: reverse; }
.marquee-track span {
  font-family: "Bungee", sans-serif;
  font-size: 19px; letter-spacing: .1em;
  color: var(--paper);
}
.marquee-alt .marquee-track span { color: var(--ink); }
.marquee-track i { color: var(--gold); font-style: normal; font-size: 15px; }
.marquee-alt .marquee-track i { color: var(--orange); }
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= SECTIONS ================= */
.section {
  position: relative;
  padding: 150px 80px;
  overflow: hidden;
}
.above {
  background:
    radial-gradient(1100px 520px at 85% -5%, rgba(255, 190, 100, .35), transparent 60%),
    linear-gradient(180deg, #2a2f63 0%, #4a3a75 55%, #8a5a7d 100%);
  color: var(--cream);
}
.king-section {
  background:
    radial-gradient(900px 500px at 8% 10%, rgba(255, 196, 110, .28), transparent 60%),
    linear-gradient(180deg, #8a5a7d 0%, #c97e6d 52%, #e9a05f 100%);
  color: var(--ink);
}
.rules {
  background: linear-gradient(180deg, #ffe3ae 0%, #fff3d3 60%, #ffedbe 100%);
  color: var(--ink);
}
.visit {
  background:
    radial-gradient(1000px 560px at 50% -10%, rgba(255, 255, 255, .75), transparent 62%),
    linear-gradient(180deg, #ffedbe 0%, #ffd9a0 70%, #ffc98a 100%);
  color: var(--ink);
  text-align: center;
}

.kicker {
  font-weight: 900; font-size: 14px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; align-items: center; gap: 14px;
}
.kicker::before { content: ""; width: 44px; height: 3px; border-radius: 3px; background: currentColor; }
.kicker.center { justify-content: center; }
.kicker.center::after { content: ""; width: 44px; height: 3px; border-radius: 3px; background: currentColor; }
.above .kicker { color: var(--gold-2); }

.section-title {
  font-family: "Bungee", sans-serif;
  font-size: 74px; line-height: 1.02;
  margin: 22px 0 28px;
  letter-spacing: .01em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(180deg, #ffe9ad, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(36, 26, 61, .85));
}
.section-title.center { text-align: center; }
.king-section .section-title em,
.rules .section-title em,
.visit .section-title em {
  filter: drop-shadow(0 4px 0 rgba(36, 26, 61, .28));
}

.body-text {
  font-size: 20px; line-height: 1.65; font-weight: 600;
  max-width: 600px;
  opacity: .94;
}
.body-text + .body-text { margin-top: 18px; }
.body-text.center { margin-left: auto; margin-right: auto; }

/* --- above / about --- */
.side-word {
  position: absolute;
  right: -30px; top: 60px;
  font-family: "Bungee", sans-serif;
  font-size: 190px; letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 237, 190, .16);
  pointer-events: none;
  writing-mode: vertical-rl;
}
.above-grid, .king-grid {
  position: relative;
  max-width: 1600px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.above-cloud-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 248, 228, .16), rgba(255, 248, 228, .05));
  border: 1px solid rgba(255, 237, 190, .35);
  border-radius: 34px;
  padding: 54px 44px 30px;
  backdrop-filter: blur(4px);
  transform: rotate(-1.6deg);
  transition: transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.above-cloud-card:hover { transform: rotate(0deg) translateY(-8px); }
.above-cloud-card::before {
  content: "";
  position: absolute; inset: auto 8% -34px 8%; height: 70px;
  background: radial-gradient(ellipse, rgba(16, 14, 44, .45), transparent 70%);
  z-index: -1;
}
.above-cloud-card img { width: 100%; display: block; animation: kingFloat 7s ease-in-out infinite; }
.card-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 16px; font-weight: 700; font-style: italic;
  color: rgba(255, 246, 224, .85);
  line-height: 1.55;
}
.stamp {
  position: absolute;
  right: 6%; top: -38px;
  font-family: "Bungee", sans-serif;
  font-size: 15px; line-height: 1.25; text-align: center;
  color: var(--paper);
  border: 3px dashed rgba(255, 207, 135, .85);
  border-radius: 50%;
  width: 118px; height: 118px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(10deg);
  animation: stampSpin 22s linear infinite;
}
@keyframes stampSpin { to { transform: rotate(370deg); } }

.facts { margin-top: 44px; display: grid; gap: 0; max-width: 600px; }
.fact {
  display: flex; align-items: baseline; gap: 26px;
  padding: 19px 6px;
  border-top: 1px solid rgba(255, 237, 190, .28);
  transition: background .3s ease, padding-left .3s ease;
}
.fact:last-child { border-bottom: 1px solid rgba(255, 237, 190, .28); }
.fact:hover { background: rgba(255, 237, 190, .07); padding-left: 16px; }
.fact dt {
  font-family: "Bungee", sans-serif; font-size: 15px;
  letter-spacing: .08em; color: var(--gold-2);
  min-width: 150px;
}
.fact dd { font-size: 19px; font-weight: 700; }

.peek-head {
  position: absolute;
  right: -70px; bottom: -30px;
  width: 300px;
  transform: rotate(7deg);
  transition: transform .5s cubic-bezier(.2, 1.8, .4, 1);
  pointer-events: auto;
}
.peek-head:hover { transform: rotate(2deg) translateY(-16px); }

/* --- the king / traits --- */
.traits { margin-top: 38px; display: grid; gap: 12px; max-width: 620px; }
.trait {
  text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255, 250, 238, .55);
  border: 2px solid rgba(36, 26, 61, .16);
  border-radius: 18px;
  padding: 17px 22px 15px;
  transition: transform .3s cubic-bezier(.2, 1.6, .4, 1), background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.trait:hover { transform: translateX(10px); background: rgba(255, 250, 238, .85); }
.trait.is-active {
  background: var(--ink); border-color: var(--ink);
  box-shadow: 8px 10px 0 rgba(36, 26, 61, .28);
  transform: translateX(14px);
}
.trait-name {
  font-family: "Bungee", sans-serif; font-size: 17px; letter-spacing: .05em;
  color: var(--ink); transition: color .3s ease;
}
.trait-line { font-size: 15.5px; font-weight: 700; color: rgba(36, 26, 61, .72); transition: color .3s ease; }
.trait.is-active .trait-name { color: var(--gold-2); }
.trait.is-active .trait-line { color: rgba(255, 246, 224, .85); }

.verdict {
  margin-top: 32px; max-width: 620px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 10px 0 rgba(36, 26, 61, .85);
  padding: 22px 26px;
  font-size: 19px; font-weight: 800; line-height: 1.5;
  transform: rotate(-.6deg);
}
.verdict-label {
  display: block;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 7px; font-weight: 900;
}
#verdictText { transition: opacity .25s ease; display: inline-block; }
#verdictText.swap { opacity: 0; }

.king-visual { position: relative; }
.king-arch {
  position: relative;
  border-radius: 320px 320px 34px 34px;
  border: 3px solid rgba(36, 26, 61, .85);
  background:
    radial-gradient(500px 340px at 50% 0%, rgba(255, 233, 173, .95), rgba(255, 190, 100, .25) 60%, transparent),
    linear-gradient(180deg, #3c448f 0%, #8d5a86 55%, #e99a5c 100%);
  padding: 64px 40px 0;
  overflow: hidden;
  box-shadow: 16px 22px 0 rgba(36, 26, 61, .22);
}
.king-arch img {
  width: 100%; display: block;
  animation: kingFloat 6.5s ease-in-out infinite;
  filter: drop-shadow(0 24px 22px rgba(58, 30, 4, .3));
  transition: transform .4s cubic-bezier(.2, 1.6, .4, 1);
}
.king-arch:hover img { transform: scale(1.03) rotate(-1deg); }
.orbit-tag {
  position: absolute;
  font-family: "Bungee", sans-serif; font-size: 13px; letter-spacing: .05em;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px 8px;
  box-shadow: 4px 5px 0 rgba(36, 26, 61, .85);
}
.orbit-tag.tag-a { left: -26px; top: 16%; transform: rotate(-6deg); animation: tagBob 5s ease-in-out infinite; }
.orbit-tag.tag-b { right: -18px; bottom: 14%; transform: rotate(4deg); animation: tagBob 6s ease-in-out infinite reverse; }
@keyframes tagBob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

/* ================= VISUAL BREAK ================= */
.break {
  position: relative;
  min-height: 920px;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 140px 80px;
}
.break-bg {
  position: absolute; inset: -10% 0;
  background: url("../assets/background/sky.jpg") center 72% / cover no-repeat;
  z-index: -2;
  will-change: transform;
}
.break-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 20, 52, .5), transparent 55%),
              linear-gradient(0deg, rgba(18, 20, 52, .35), transparent 40%);
}
.break-silhouette {
  position: absolute;
  right: 4%; bottom: -30px;
  width: 560px;
  opacity: .92;
  z-index: 1;
  will-change: transform;
  filter: brightness(.35) saturate(.6) drop-shadow(0 0 60px rgba(255, 180, 80, .35));
}
.break-copy { position: relative; z-index: 2; max-width: 1600px; margin: 0 auto; width: 100%; }
.break-quote {
  font-family: "Bungee", sans-serif;
  font-size: 76px; line-height: 1.14;
  color: var(--cream);
  text-shadow: 0 5px 0 rgba(36, 26, 61, .75), 0 24px 50px rgba(10, 12, 36, .55);
  max-width: 980px;
}
.break-quote em {
  font-style: normal;
  background: linear-gradient(180deg, #ffe9ad, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(36, 26, 61, .7));
}
.break-sub {
  margin-top: 30px;
  color: rgba(255, 248, 230, .95);
  font-size: 21px; font-weight: 700; line-height: 1.6;
  max-width: 520px;
  text-shadow: 0 3px 16px rgba(10, 12, 36, .7);
}

/* ================= RULES ================= */
.rules-head { max-width: 1600px; margin: 0 auto; }
.rules-intro { margin-top: 6px; }
.rule-list {
  list-style: none;
  max-width: 1600px; margin: 70px auto 0;
  border-top: 3px solid var(--ink);
}
.rule {
  display: grid;
  grid-template-columns: 170px 480px 1fr;
  align-items: center;
  gap: 40px;
  padding: 42px 24px;
  border-bottom: 3px solid var(--ink);
  position: relative;
  transition: background .35s ease, padding-left .35s ease;
}
.rule::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 182, 62, .35), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.rule:hover { padding-left: 44px; }
.rule:hover::before { opacity: 1; }
.rule-no {
  font-family: "Bungee", sans-serif;
  font-size: 58px;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
  transition: color .35s ease, -webkit-text-stroke .35s ease;
}
.rule:hover .rule-no { color: var(--gold); -webkit-text-stroke: 2.5px var(--ink); }
.rule-title { font-family: "Bungee", sans-serif; font-size: 33px; letter-spacing: .02em; line-height: 1.15; }
.rule-text { font-size: 19px; font-weight: 600; line-height: 1.6; max-width: 560px; opacity: .85; }

/* ================= VISIT ================= */
.visit-face {
  width: 240px;
  margin: 0 auto 10px;
  display: block;
  transform: rotate(-3deg);
  animation: kingFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 22px 20px rgba(120, 62, 10, .3));
  transition: transform .4s cubic-bezier(.2, 1.8, .4, 1);
}
.visit-face:hover { transform: rotate(2deg) scale(1.05); }
.visit .section-title { margin-top: 18px; }
.visit-text { margin: 0 auto; }
.visit-actions {
  margin-top: 44px;
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.visit-note {
  margin-top: 26px;
  font-style: italic; font-weight: 800; font-size: 17px;
  color: rgba(36, 26, 61, .65);
}

/* ================= FINAL ================= */
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 150px 80px 0;
  color: var(--cream);
}
.final-bg {
  position: absolute; inset: 0;
  background: url("../assets/background/sky-hero.jpg") center 78% / cover no-repeat;
  z-index: -2;
}
.final-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 54, .55), transparent 34%, transparent 62%, rgba(16, 18, 46, .72)),
    radial-gradient(800px 480px at 50% 42%, rgba(255, 196, 100, .3), transparent 65%);
}
.final-inner {
  max-width: 1100px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.final-king {
  width: 420px;
  animation: kingFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 30px rgba(58, 30, 4, .4));
}
.final-title {
  font-family: "Bungee", sans-serif;
  font-size: 108px; line-height: 1;
  margin-top: 10px;
  color: var(--cream);
  -webkit-text-stroke: 3px rgba(36, 26, 61, .9);
  text-shadow: 0 6px 0 rgba(36, 26, 61, .9), 0 24px 48px rgba(10, 12, 36, .5);
}
.final-ticker {
  margin-top: 18px;
  font-size: 21px; font-weight: 900; letter-spacing: .08em;
  color: var(--paper);
  text-shadow: 0 3px 14px rgba(10, 12, 36, .7);
}
.final-ticker [data-token-ticker] { color: var(--gold); }
.ca-box-final { margin-top: 38px; width: 100%; max-width: 720px; }
.ca-box-final .ca-value { max-width: 460px; }
.final-actions { justify-content: center; margin-top: 28px; }

.footer {
  position: relative; z-index: 2;
  max-width: 1760px; margin: 110px auto 0;
  padding: 26px 10px 34px;
  border-top: 1px solid rgba(255, 237, 190, .35);
  display: flex; justify-content: space-between; gap: 30px;
  font-weight: 800; font-size: 15px;
  color: rgba(255, 246, 224, .85);
}
.footer-right { color: var(--gold-2); }

/* ================= REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.hero .reveal { transition-delay: .08s; }
.hero .reveal:nth-child(2) { transition-delay: .16s; }

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