/* Project Windstock — stylesheet, kanto.ac-inspired layout */

:root {
  color-scheme: light;
  --radius: 18px;
  --background: #f2f6fd;
  --foreground: #14243c;
  --paper: #fefefe;
  --paper-muted: #e8effb;
  --primary: #025ae5;
  --primary-hover: #0147b8;
  --primary-foreground: #ffffff;
  --muted-foreground: #6e7681;
  --border: #b9c2d4;
  --forest: #025ae5;
  --forest-soft: #3991fe;
  --coral: #025ae5;
  --gold: #3991fe;
  --sage: #e8effb;
  --sky: #dcebfc;
  --display: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --ease-wind: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.22, 1.25, .36, 1);
  --ease-snap: cubic-bezier(.7, 0, .2, 1.35);
  --shadow-soft: 0 2px 6px rgba(20, 36, 60, .05), 0 14px 34px rgba(20, 36, 60, .08);
  --shadow-lift: 0 4px 10px rgba(20, 36, 60, .06), 0 22px 44px rgba(20, 36, 60, .14);
}

.dark {
  --background: #f2f6fd;
  --foreground: #14243c;
  --paper: #fefefe;
  --paper-muted: #e8effb;
  --primary: #025ae5;
  --primary-hover: #0147b8;
  --primary-foreground: #ffffff;
  --muted-foreground: #6e7681;
  --border: #b9c2d4;
  --forest: #025ae5;
  --forest-soft: #3991fe;
  --shadow-soft: 0 2px 6px rgba(20, 36, 60, .05), 0 14px 34px rgba(20, 36, 60, .08);
  --shadow-lift: 0 4px 10px rgba(20, 36, 60, .06), 0 22px 44px rgba(20, 36, 60, .14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--foreground);
  background: radial-gradient(ellipse at 16% 0, var(--paper), transparent 60%) no-repeat, var(--background);
  background-size: 100% 720px;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}

.dark body {
  background: radial-gradient(ellipse at 16% 0, var(--paper), transparent 60%) no-repeat, var(--background);
  background-size: 100% 720px;
}

body::before {
  display: none;
  content: "";
  position: fixed;
  z-index: 60;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background: linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, .28) 50%, transparent 52%);
}

::selection {
  color: var(--primary-foreground);
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid rgba(2, 90, 229, .55);
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Small utility set used by the exported HTML. */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.size-full { width: 100%; height: 100%; }
/* flow-root stops the header's top margin collapsing through and offsetting
   absolutely positioned layers (like the homepage's blurred map) downward. */
.min-h-screen { min-height: 100vh; display: flow-root; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.mx-auto { margin-inline: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2\.5 { gap: .625rem; }
.gap-5 { gap: 1.25rem; }
.h-16 { height: 4rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }
.px-6 { padding-inline: 1.5rem; }
.py-8 { padding-block: 2rem; }
.py-16 { padding-block: 4rem; }
.py-24 { padding-block: 6rem; }
.text-center { text-align: center; }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -.025em; }
.tracking-\[0\.2em\] { letter-spacing: .2em; }
.hidden { display: none; }
.bg-background { background-color: var(--background); }
.bg-background\/80 { background-color: var(--background); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-block-width: 1px; border-block-style: solid; }
.border-border\/60 { border-color: color-mix(in srgb, var(--border) 60%, transparent); }

.site-header {
  top: 12px;
  z-index: 30;
  width: calc(100% - 24px);
  max-width: 1156px;
  margin: 12px auto 0;
  border: 1px solid color-mix(in srgb, var(--border) 35%, var(--background));
  border-radius: 24px;
  background: var(--paper) !important;
  box-shadow: var(--shadow-soft);
}

.site-nav {
  height: auto;
  min-height: 58px;
  padding-block: 10px;
}

.brand {
  flex: 0 0 auto;
  gap: 12px;
  color: var(--foreground);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--foreground);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color .14s ease;
}

.nav-link::after {
  display: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--sage);
}

.nav-note {
  color: var(--muted-foreground);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Shared motion scaffolding: the safe profile supplies the actual loops. */
.scroll-progress {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--forest));
  transition: width .18s linear;
}

.page-transition {
  position: fixed;
  z-index: 65;
  inset: 0;
  pointer-events: none;
  background: var(--forest);
  transform: translateX(102%);
}

.page-leaving {
  overflow: hidden;
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0) rotate(.7deg);
  transition: opacity .62s var(--ease-wind), transform .72s var(--ease-spring);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.motion-button {
  position: relative;
  overflow: hidden;
}

.motion-button > span {
  position: relative;
  z-index: 1;
}

.motion-button::before {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -42%;
  width: 28%;
  background: rgba(255, 255, 255, .38);
  opacity: .22;
  transform: rotate(20deg) translateX(-240%);
  transition: transform .7s var(--ease-wind);
}

.motion-button:hover::before {
  transform: rotate(20deg) translateX(640%);
}

/* Landing page — blurred map covers the first screen (hero) only */
.top-bg {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.top-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .55;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.05);
}

.top-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(242, 246, 253, 0) 0%, rgba(242, 246, 253, 0) 40%, rgba(242, 246, 253, .55) 82%, var(--background) 100%);
}

.hero-section {
  position: relative;
  min-height: calc(100svh - 98px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid transparent;
  background: transparent;
}

.dark .hero-section {
  background: transparent;
}

.hero-section > :not(.hero-image):not(.hero-wash):not(.hero-glow):not(.wind-gust) {
  z-index: 2;
}

.hero-section::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background: radial-gradient(circle 230px at 50% 50%, rgba(57, 145, 254, .19), transparent 72%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .34;
  object-fit: cover;
  object-position: center;
  filter: blur(12px) saturate(1.05);
  transform: scale(1.08);
}

.dark .hero-image {
  opacity: .22;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 246, 253, .95) 0%, rgba(242, 246, 253, .75) 42%, rgba(242, 246, 253, .1) 100%), linear-gradient(0deg, var(--background), transparent 27%);
}

.dark .hero-wash {
  background: linear-gradient(90deg, rgba(242, 246, 253, .95) 0%, rgba(242, 246, 253, .72) 48%, rgba(242, 246, 253, .08) 100%), linear-gradient(0deg, var(--background), transparent 27%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .78fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100svh - 98px);
  padding-top: clamp(28px, 3.5vw, 48px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(57, 145, 254, .18);
}

.hero-title,
.status-title,
.closing-section h2,
.manifesto-copy h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.075em;
}

.hero-title {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: .9;
}

.hero-title em,
.status-title em,
.closing-section h2 em,
.manifesto-copy h2 em {
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
}

.hero-lede {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--muted-foreground);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 49px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease;
}

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

.button-primary {
  color: var(--primary-foreground);
  background: var(--primary);
  box-shadow: 0 9px 20px rgba(2, 90, 229, .24);
}

.button-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 14px 28px rgba(2, 90, 229, .32);
}

.button-quiet {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--border) 45%, var(--background));
  background: var(--paper);
}

.dark .button-quiet {
  border-color: color-mix(in srgb, var(--border) 45%, var(--background));
  background: var(--paper);
}

.button-quiet:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.button-discord {
  color: #ffffff;
  background: #5865f2;
  box-shadow: 0 9px 20px rgba(88, 101, 242, .3);
}

.button-discord:hover {
  background: #4752c4;
  box-shadow: 0 14px 28px rgba(88, 101, 242, .38);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
  color: var(--muted-foreground);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row strong {
  color: var(--primary);
  font-size: .58rem;
  letter-spacing: .05em;
}

.hero-orbit {
  position: relative;
  z-index: 1;
  width: min(37vw, 430px);
  height: min(37vw, 430px);
  min-width: 310px;
  min-height: 310px;
  justify-self: center;
  border-radius: 50%;
  transform: rotate(-9deg);
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(37, 34, 56, .27);
  border-radius: 50%;
}

.dark .orbit {
  border-color: rgba(246, 241, 230, .3);
}

.orbit-one { transform: rotate(26deg) scaleX(.66); }
.orbit-two { transform: rotate(-38deg) scaleY(.7); }
.orbit-three {
  inset: 12%;
  border-style: dashed;
  border-color: rgba(2, 90, 229, .68);
  transform: rotate(17deg) scaleX(.72);
}

.hero-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  width: 186px;
  height: 186px;
  padding-bottom: 25px;
  border-radius: 50%;
  color: #f2f6fd;
  background: var(--forest);
  box-shadow: 0 20px 42px rgba(37, 34, 56, .25), inset 0 0 0 1px rgba(255, 255, 255, .16);
  transform: translate(-50%, -50%) rotate(9deg);
}

.hero-badge::before {
  content: "";
  position: absolute;
  top: 24px;
  width: 70px;
  height: 70px;
  background: url("windstock-mark.png") center / contain no-repeat;
  opacity: .88;
}

.hero-badge-label,
.hero-badge-caption {
  position: relative;
  z-index: 1;
}

.hero-badge-label {
  font-size: .58rem;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.hero-badge-value {
  position: absolute;
  top: 83px;
  right: 0;
  left: 0;
  color: #dcebfc;
  font-family: var(--display);
  font-size: 1.35rem;
  text-align: center;
}

.hero-badge-caption {
  margin-top: 5px;
  color: rgba(247, 242, 232, .68);
  font-size: .62rem;
  font-style: italic;
}

.orbit-spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--background);
}

.spark-one { top: 11%; left: 22%; }
.spark-two { right: 8%; bottom: 28%; width: 6px; height: 6px; border-color: var(--gold); }
.spark-three { bottom: 10%; left: 34%; width: 5px; height: 5px; border-color: var(--forest); }

.hero-glow {
  position: absolute;
  z-index: 1;
  width: min(33vw, 470px);
  height: min(33vw, 470px);
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(57, 145, 254, .25), transparent 69%);
}

.hero-glow-one { top: -15%; right: 3%; }
.hero-glow-two { bottom: -25%; left: 28%; opacity: .28; }

.wind-gust {
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wind-gust span {
  position: absolute;
  left: 0;
  width: 40%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted-foreground);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 31px;
  height: 1px;
  background: var(--primary);
}

.world-section {
  padding-top: 108px;
  padding-bottom: 120px;
}

.section-heading,
.events-section-heading,
.patcher-section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(250px, .7fr);
  align-items: end;
  gap: 48px;
}

.section-kicker,
.panel-kicker {
  margin: 0;
  color: var(--primary);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.section-title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: .94;
}

.section-intro {
  max-width: 380px;
  justify-self: end;
  margin: 0;
  color: var(--muted-foreground);
  font-size: .98rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(248px, auto);
  gap: 17px;
  margin-top: 40px;
}

.feature-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(37, 34, 56, .12);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease-wind), box-shadow .3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-7px) rotate(-.35deg);
}

.feature-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 555px;
}

.feature-card-sand { grid-column: span 2; }

.feature-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 25px;
}

.feature-card-large .feature-card-body {
  justify-content: flex-end;
  padding: 28px 30px 29px;
  color: #f2f6fd;
  background: linear-gradient(0deg, rgba(67, 70, 104, .98), rgba(67, 70, 104, .86) 31%, rgba(67, 70, 104, .08) 72%, transparent);
}

.card-index {
  color: rgba(247, 242, 232, .58);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.feature-card:not(.feature-card-large) .card-index {
  color: rgba(37, 34, 56, .56);
}

.feature-card h3 {
  max-width: 305px;
  margin: 17px 0 0;
  font-family: var(--display);
  font-size: clamp(1.62rem, 2.5vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .97;
}

.feature-card:not(.feature-card-large) h3 {
  max-width: 240px;
  font-size: 1.7rem;
}

.feature-card p {
  max-width: 325px;
  margin: 12px 0 0;
  color: rgba(247, 242, 232, .72);
  font-size: .86rem;
  line-height: 1.55;
}

.feature-card:not(.feature-card-large) p {
  color: rgba(37, 34, 56, .72);
}

.card-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  opacity: .72;
  transition: transform .25s ease, background-color .25s ease;
}

.feature-card:hover .card-arrow {
  background: rgba(255, 255, 255, .12);
  transform: rotate(45deg);
}

.feature-card-terrain { color: #f2f6fd; background: #58618a; }
.dark .feature-card-terrain { background: #4b4d72; }
.feature-card-coral { color: #fcf8f3; background: var(--coral); }
.feature-card-sage { color: var(--foreground); background: var(--sage); }
.feature-card-blue { color: var(--foreground); background: var(--sky); }
.feature-card-ink { color: #f2f6fd; background: var(--forest); }
.feature-card-sand { color: var(--foreground); background: var(--gold); }

.terrain-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #8d92b0, #737b9f 44%, #474d73);
}

.dark .terrain-art { opacity: .75; }

.terrain-sun {
  position: absolute;
  top: 14%;
  right: 16%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold);
}

.terrain-hill {
  position: absolute;
  right: -10%;
  bottom: 26%;
  left: -10%;
  height: 50%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.terrain-hill-back {  background: #7b82a4; transform: rotate(5deg) translateY(17%); }
.terrain-hill-front { bottom: 17%; background: #555c86; }

.terrain-path {
  position: absolute;
  right: 18%;
  bottom: -18%;
  width: 26%;
  height: 57%;
  border-radius: 50% 50% 0 0;
  background: #ead79a;
  transform: rotate(26deg);
}

.feature-icon {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 77px;
  height: 77px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .82;
}

.icon-ball::before,
.icon-ball::after,
.icon-leaf::before,
.icon-leaf::after,
.icon-egg::before,
.icon-egg::after {
  content: "";
  position: absolute;
}

.icon-ball::before {
  top: 24px;
  left: 50%;
  width: 38px;
  height: 26px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent 47%, currentColor 48% 56%, transparent 57%);
  transform: translateX(-50%);
}

.icon-ball::after {
  top: 34px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--coral);
  transform: translateX(-50%);
}

.icon-leaf::before,
.icon-leaf::after {
  border: 2px solid currentColor;
  border-radius: 100% 0 100% 0;
}

.icon-leaf::before { top: 20px; left: 29px; width: 21px; height: 35px; transform: rotate(-37deg); }
.icon-leaf::after { top: 34px; left: 21px; width: 16px; height: 25px; transform: rotate(38deg); }
.icon-leaf span { position: absolute; top: 39px; left: 37px; width: 2px; height: 27px; background: currentColor; transform: rotate(31deg); }
.icon-leaf i { position: absolute; top: 24px; left: 18px; width: 33px; height: 2px; background: currentColor; transform: rotate(-17deg); }

.icon-egg::before {
  top: 14px;
  left: 22px;
  width: 32px;
  height: 47px;
  border: 2px solid currentColor;
  border-radius: 52% 48% 47% 53% / 60% 59% 41% 40%;
  transform: rotate(17deg);
}

.icon-egg::after {
  top: 28px;
  left: 31px;
  content: "✳";
  font-size: 15px;
}

.ink-rings {
  position: absolute;
  right: -28px;
  bottom: -46px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(247, 242, 232, .25);
  border-radius: 50%;
}

.ink-rings span {
  position: absolute;
  border: 1px solid rgba(247, 242, 232, .25);
  border-radius: 50%;
}

.ink-rings span:nth-child(1) { inset: 19px; }
.ink-rings span:nth-child(2) { inset: 45px; }
.ink-rings span:nth-child(3) { inset: 74px; border-color: var(--primary); }

.coin-stack {
  position: absolute;
  right: 36px;
  bottom: 22px;
  width: 95px;
  height: 77px;
  transform: rotate(-13deg);
}

.coin-stack span {
  position: absolute;
  right: 0;
  width: 63px;
  height: 25px;
  border: 2px solid rgba(37, 34, 56, .8);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.coin-stack span:nth-child(1) { bottom: 4px; }
.coin-stack span:nth-child(2) { right: 13px; bottom: 21px; }
.coin-stack span:nth-child(3) { right: 26px; bottom: 38px; }

.world-banner {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  text-align: center;
}

.world-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.world-gallery-card {
  position: relative;
  min-height: 345px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 34, 56, .13);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1deg);
  transition: transform .3s var(--ease-wind), box-shadow .3s ease;
}

.world-gallery-card:hover {
  z-index: 2;
  box-shadow: var(--shadow-lift);
  transform: translateY(-7px) rotate(0deg);
}

.world-gallery-card:nth-child(even) { transform: rotate(1deg); }
.world-gallery-card:nth-child(even):hover { transform: translateY(-7px) rotate(0deg); }
.world-gallery-card-squirtle { grid-column: span 3; }
.world-gallery-card-pikachu { grid-column: span 3; }
.world-gallery-card-shop { grid-column: span 3; }
.world-gallery-card-windstock { grid-column: span 3; }

.world-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 345px;
  object-fit: cover;
  object-position: top center;
  filter: saturate(.9) contrast(.96);
  transition: transform .5s var(--ease-wind), filter .3s ease;
}

.world-gallery-card:hover img {
  filter: saturate(1) contrast(1);
  transform: scale(1.035);
}

.tiers-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.tiers-heading {
  display: grid;
  grid-template-columns: 1fr minmax(250px, .7fr);
  align-items: end;
  gap: 48px;
}

.tiers-crossout { position: relative; }

.tiers-stage {
  position: relative;
  margin-top: 42px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(37, 34, 56, .13);
  border-radius: 27px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  opacity: .72;
  transform: rotate(-1deg);
}

.tier-card {
  position: relative;
  min-height: 270px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(37, 34, 56, .14);
  border-radius: 19px;
  color: var(--foreground);
}

.tier-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -38px;
  width: 125px;
  height: 125px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .2;
}

.tier-card-explorer { background: var(--sage); }
.tier-card-trainer { background: var(--sky); }
.tier-card-champion { background: var(--gold); }
.tier-number { font-size: .6rem; font-weight: 700; letter-spacing: .18em; opacity: .62; }
.tier-card h3 { margin: 47px 0 0; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.07em; line-height: .9; }
.tier-card p { max-width: 190px; margin: 13px 0 0; color: rgba(37, 34, 56, .68); font-size: .78rem; line-height: 1.5; }
.tier-card strong { position: absolute; right: 22px; bottom: 22px; font-family: var(--display); font-size: 1rem; font-style: italic; font-weight: 500; }

.tier-scribble {
  position: absolute;
  z-index: 2;
  inset: 4% -1% 6%;
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
  pointer-events: none;
}

.tier-scribble p {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0;
  padding: 8px 19px;
  color: #fcf8f3;
  background: #d9342b;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.scribble-line {
  position: absolute;
  left: -3%;
  width: 106%;
  height: 18px;
  border-radius: 48% 52% 45% 55%;
  background: #d9342b;
  box-shadow: 0 2px 0 rgba(126, 18, 15, .24), 0 -1px 0 rgba(255, 94, 75, .35);
  opacity: .9;
}

.scribble-line-one { top: 6%; transform: rotate(9deg); }
.scribble-line-two { top: 20%; height: 22px; transform: rotate(-6deg); }
.scribble-line-three { top: 34%; transform: rotate(8deg); }
.scribble-line-four { top: 48%; transform: rotate(-8deg); }
.scribble-line-five { top: 62%; height: 22px; transform: rotate(6deg); }
.scribble-line-six { top: 76%; transform: rotate(-7deg); }
.scribble-line-seven { top: 90%; transform: rotate(9deg); }

.manifesto-section {
  overflow: hidden;
  color: #f2f6fd;
  background: var(--forest);
}

.dark .manifesto-section { background: #202238; }

/* Accents inside the blue panel must not use --primary (same blue as the bg). */
.manifesto-section .section-kicker {
  color: var(--sky);
}

.manifesto-section h2,
.manifesto-section h2 em {
  color: #ffffff;
}

.manifesto-section h2 em {
  opacity: 1;
}

.manifesto-stamp strong,
.manifesto-list span {
  color: #dcebfc;
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 185px minmax(0, 1.1fr) minmax(250px, .8fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  min-height: 520px;
  padding-top: 84px;
  padding-bottom: 84px;
}

.manifesto-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(247, 242, 232, .55);
  border-radius: 50%;
  outline: 1px solid rgba(247, 242, 232, .24);
  outline-offset: 7px;
  color: #f2f6fd;
  transform: rotate(-12deg);
}

.manifesto-stamp span,
.manifesto-stamp i {
  font-size: .6rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.manifesto-stamp strong {
  margin: -3px 0 1px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 3.15rem;
  font-weight: 500;
  letter-spacing: -.08em;
}

.manifesto-stamp i {
  color: rgba(247, 242, 232, .67);
  font-size: .52rem;
  font-style: italic;
  letter-spacing: .08em;
  text-transform: none;
}

.manifesto-copy h2 {
  margin: 17px 0 0;
  font-size: clamp(3.1rem, 6vw, 6.5rem);
  line-height: .86;
}

.manifesto-copy > p:last-child {
  max-width: 440px;
  margin: 27px 0 0;
  color: rgba(247, 242, 232, .68);
  font-size: .98rem;
  line-height: 1.7;
}

.manifesto-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.manifesto-list > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(247, 242, 232, .16);
  transition: transform .3s var(--ease-spring), border-color .3s ease;
}

.manifesto-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.manifesto-list > div:hover { border-color: rgba(57, 145, 254, .55); transform: translateX(8px); }
.manifesto-list span { color: var(--gold); font-size: 1.1rem; line-height: 1.3; }
.manifesto-list p { margin: 0; color: rgba(247, 242, 232, .62); font-size: .84rem; line-height: 1.55; }
.manifesto-list strong { color: #f2f6fd; font-weight: 600; }

.closing-section {
  position: relative;
  padding-top: 115px;
  padding-bottom: 125px;
}

/* Closing stage: center copy flanked by two tilted gameplay videos */
.closing-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 24px;
}

/* Homepage without the gameplay videos: the copy stands alone, centred. */
.closing-stage-solo { display: block; }
.closing-stage-solo .closing-section { margin: 0 auto; }

.closing-video {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transition: transform .35s var(--ease-wind), box-shadow .35s ease;
}

.closing-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 888 / 1920;
  object-fit: cover;
}

.closing-video-left { transform: rotate(-6deg) translateY(18px); }
.closing-video-right { transform: rotate(6deg) translateY(-14px); }

.closing-video:hover { box-shadow: 0 30px 60px rgba(20, 36, 60, .2); }
.closing-video-left:hover { transform: rotate(-3deg) translateY(10px); }
.closing-video-right:hover { transform: rotate(3deg) translateY(-8px); }

.closing-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  border: 1px solid rgba(2, 90, 229, .45);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.closing-mark img { width: 50px; height: 50px; object-fit: contain; }
.closing-section h2 .name-cycle { display: inline-block; white-space: nowrap; }
/* Each letter grows from zero width, so the centred word opens from the middle
   and eases the earlier letters outward into place. */
.name-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(.14em);
  transition: width 1s var(--ease-wind), opacity 1.1s ease, transform 1s var(--ease-wind);
}
.name-letter.is-in { opacity: 1; transform: none; }
.closing-section h2 { margin: 18px 0 0; font-size: clamp(3.3rem, 6.5vw, 6.7rem); line-height: .84; }
.closing-copy { max-width: 480px; margin: 28px auto 30px; color: var(--muted-foreground); font-size: .95rem; line-height: 1.7; }
.closing-note { margin-top: 30px; color: var(--foreground); font-family: var(--display); font-size: 1.05rem; font-style: italic; }

.site-footer {
  margin-top: 40px;
  color: var(--footer-text, #8b8797);
  text-align: center;
  background: #0e0d13;
}

.footer-inner {
  flex-direction: column;
  gap: 8px;
  padding-block: 40px;
  color: var(--footer-text, #8b8797);
  font-size: .82rem;
  letter-spacing: .01em;
}

.footer-inner p { margin: 0; }

.footer-brand {
  justify-content: center;
  gap: 10px;
  color: #f4efe3;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-brand img { width: 28px; height: 28px; object-fit: contain; }

.footer-inner a { color: inherit; }

.footer-inner a:hover { color: #f4efe3; }

/* Retint: old warm values mapped to the blue identity */

/* Secret Kanto satire page */
.kanto-page {
  --kanto-red: #d9342b;
  --kanto-ink: #202238;
  --kanto-paper: #f3ead9;
}

.kanto-escape-toast {
  position: fixed;
  z-index: 80;
  top: 88px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  padding: 12px 15px 12px 12px;
  border: 1px solid rgba(247, 242, 232, .35);
  border-radius: 13px 13px 13px 4px;
  color: #fcf8f3;
  background: var(--kanto-red);
  box-shadow: 7px 8px 0 rgba(37, 34, 56, .2), 0 15px 28px rgba(37, 34, 56, .18);
  font: 900 .88rem var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: rotate(3deg);
  animation: kanto-escape-toast-in 5s ease-in-out both;
}

.kanto-escape-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 249, 238, .65);
  border-radius: 50%;
  font-size: 1rem;
}

@keyframes kanto-escape-toast-in {
  0% { opacity: 0; transform: translate3d(30px, -10px, 0) rotate(8deg); }
  10%, 78% { opacity: 1; transform: translate3d(0, 0, 0) rotate(3deg); }
  100% { opacity: 0; transform: translate3d(22px, -8px, 0) rotate(7deg); }
}

.kanto-page .site-header {
  background: var(--kanto-ink) !important;
  border-color: rgba(247, 242, 232, .18) !important;
}

.kanto-page .brand,
.kanto-page .site-nav .nav-note {
  color: #f2f6fd;
}

.kanto-secret-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(247, 242, 232, .62);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.kanto-secret-badge i {
  color: var(--gold);
  font-size: 1.1rem;
  font-style: normal;
}

.kanto-main {
  padding-top: 78px;
  padding-bottom: 112px;
}

.kanto-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  align-items: center;
  gap: 60px;
  min-height: 515px;
}

.kanto-title {
  max-width: 720px;
  margin: 21px 0 0;
  color: var(--kanto-ink);
  font-family: var(--display);
  font-size: clamp(4.5rem, 9vw, 8.8rem);
  font-weight: 600;
  letter-spacing: -.09em;
  line-height: .8;
}

.dark .kanto-title { color: var(--foreground); }
.kanto-title em { color: var(--kanto-red); font-style: italic; font-weight: 500; }
.kanto-lede { max-width: 485px; margin: 29px 0 0; color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; }
.kanto-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.kanto-closed-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgba(217, 52, 43, .4); border-radius: 999px; color: var(--kanto-red); font: 700 .6rem var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.kanto-closed-pill span { font-size: .88rem; }

.kanto-hero-art { position: relative; width: min(100%, 390px); height: 365px; justify-self: end; transform: rotate(4deg); }
.kanto-orbit { position: absolute; inset: 0; border: 1px solid rgba(217, 52, 43, .4); border-radius: 50%; }
.kanto-orbit-one { transform: rotate(20deg) scaleX(.66); }
.kanto-orbit-two { inset: 8%; border-style: dashed; transform: rotate(-32deg) scaleY(.7); }
.kanto-spark { position: absolute; z-index: 2; color: var(--gold); font-size: 1.2rem; }
.kanto-spark-one { top: 20px; right: 30px; }
.kanto-spark-two { bottom: 36px; left: 30px; font-size: .67rem; }

.kanto-ticket { position: absolute; top: 64px; left: 50%; width: 226px; height: 246px; padding: 24px 21px; overflow: hidden; border: 1px solid rgba(247, 242, 232, .55); border-radius: 13px 13px 28px 13px; color: #f2f6fd; background: var(--kanto-ink); box-shadow: 17px 19px 0 var(--kanto-red); transform: translateX(-50%) rotate(-8deg); }
.kanto-ticket::before,
.kanto-ticket::after { content: ""; position: absolute; top: 50%; width: 21px; height: 21px; border-radius: 50%; background: var(--background); transform: translateY(-50%); }
.kanto-ticket::before { left: -12px; }
.kanto-ticket::after { right: -12px; }
.kanto-ticket-top { display: flex; align-items: center; justify-content: space-between; color: var(--gold); font: 700 .66rem var(--font-mono); letter-spacing: .14em; }
.kanto-ticket-top strong { padding: 5px 7px; border: 1px solid rgba(57, 145, 254, .45); border-radius: 99px; font-size: .52rem; }
.kanto-ticket-rule { margin-top: 22px; border-top: 1px dashed rgba(247, 242, 232, .33); }
.kanto-ticket-price { margin-top: 27px; font-family: var(--display); font-size: 4.5rem; letter-spacing: -.1em; line-height: .8; }
.kanto-ticket-price small { margin-left: 5px; color: rgba(247, 242, 232, .55); font: italic .68rem var(--font-mono); letter-spacing: 0; }
.kanto-ticket-copy { margin-top: 19px; color: rgba(247, 242, 232, .58); font-size: .7rem; line-height: 1.4; }
.kanto-ticket-stamp { position: absolute; right: 18px; bottom: 17px; padding: 5px 6px; border: 2px solid var(--kanto-red); color: var(--kanto-red); font: 900 .57rem var(--font-mono); line-height: .95; text-align: center; transform: rotate(9deg); }

.kanto-warning { display: grid; grid-template-columns: 65px minmax(0, 1fr) minmax(230px, .66fr); align-items: center; gap: 28px; margin-top: 35px; padding: 33px 37px; border: 1px solid rgba(217, 52, 43, .4); border-radius: 24px; background: rgba(217, 52, 43, .08); }
.kanto-warning-mark { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--kanto-red); border-radius: 50%; color: var(--kanto-red); font: 900 1.7rem var(--font-mono); transform: rotate(-9deg); }
.kanto-warning h2 { margin: 12px 0 0; color: var(--kanto-ink); font-family: var(--display); font-size: clamp(2.4rem, 4vw, 4.1rem); letter-spacing: -.08em; line-height: .85; }
.dark .kanto-warning h2 { color: var(--foreground); }
.kanto-warning h2 em { color: var(--kanto-red); font-style: italic; font-weight: 500; }
.kanto-warning > p { margin: 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.6; }

.kanto-tiers { padding-top: 116px; }
.kanto-section-heading { display: grid; grid-template-columns: 1fr minmax(250px, .65fr); align-items: end; gap: 48px; }
.kanto-section-heading h2 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(3rem, 5.5vw, 5.6rem); letter-spacing: -.08em; line-height: .84; }
.kanto-section-heading h2 em { color: var(--kanto-red); font-style: italic; font-weight: 500; }
.kanto-tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 41px; }
.kanto-tier { position: relative; min-height: 390px; padding: 25px; overflow: hidden; border: 1px solid rgba(37, 34, 56, .18); border-radius: 23px; color: var(--kanto-ink); box-shadow: var(--shadow-soft); }
.kanto-tier::after { content: ""; position: absolute; right: -34px; bottom: -48px; width: 170px; height: 170px; border: 1px solid currentColor; border-radius: 50%; opacity: .16; }
.kanto-tier-basic { background: var(--sage); transform: rotate(-1deg); }
.kanto-tier-pro { background: var(--sky); transform: translateY(12px); }
.kanto-tier-enterprise { background: var(--gold); transform: rotate(1deg); }
.kanto-tier-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kanto-tier-number { color: rgba(37, 34, 56, .55); font-size: .61rem; font-weight: 700; letter-spacing: .16em; }
.kanto-tier-tag { padding: 6px 8px; border: 1px solid currentColor; border-radius: 99px; font: 700 .53rem var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.kanto-tier h3 { margin: 58px 0 0; font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -.07em; line-height: .88; }
.kanto-tier-price { display: flex; align-items: baseline; gap: 5px; margin: 21px 0 0; }
.kanto-tier-price strong { font-family: var(--display); font-size: 2.5rem; letter-spacing: -.08em; }
.kanto-tier-price span { color: rgba(37, 34, 56, .6); font: .63rem var(--font-mono); }
.kanto-tier ul { display: flex; flex-direction: column; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; color: rgba(37, 34, 56, .72); font-size: .76rem; line-height: 1.3; }
.kanto-tier li { padding-left: 17px; }
.kanto-tier li::before { content: "×"; display: inline-block; width: 17px; margin-left: -17px; color: var(--kanto-red); font-weight: 900; }
.kanto-tier li b { color: var(--kanto-red); font-weight: 800; }
.kanto-tier-button { position: absolute; right: 25px; bottom: 24px; padding: 11px 13px; border: 1px solid rgba(37, 34, 56, .34); border-radius: 999px; color: rgba(37, 34, 56, .65); background: rgba(255, 255, 255, .18); font-size: .67rem; font-weight: 700; }
.kanto-tier-button:disabled { cursor: not-allowed; opacity: .8; }

.kanto-receipt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr); align-items: center; gap: 80px; margin-top: 124px; padding: 59px 56px; overflow: hidden; border-radius: 26px; color: #f2f6fd; background: var(--kanto-ink); box-shadow: var(--shadow-lift); }
.kanto-receipt-copy h2 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(3rem, 5vw, 5.3rem); letter-spacing: -.08em; line-height: .84; }
.kanto-receipt-copy h2 em { color: var(--gold); font-style: italic; font-weight: 500; }
.kanto-receipt-copy > p:last-child { max-width: 390px; margin: 26px 0 0; color: rgba(247, 242, 232, .62); font-size: .9rem; line-height: 1.65; }
.kanto-receipt-paper { position: relative; padding: 27px 24px 24px; color: var(--kanto-ink); background: var(--kanto-paper); filter: drop-shadow(8px 12px 0 rgba(217, 52, 43, .45)); transform: rotate(3deg); }
.kanto-receipt-paper::before,
.kanto-receipt-paper::after { content: ""; position: absolute; right: 0; left: 0; height: 11px; background: linear-gradient(135deg, transparent 5px, var(--kanto-paper) 0) 0 0 / 14px 11px repeat-x; }
.kanto-receipt-paper::before { top: -10px; transform: rotate(180deg); }
.kanto-receipt-paper::after { bottom: -10px; }
.kanto-receipt-heading { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px dashed rgba(37, 34, 56, .4); font: 700 .57rem var(--font-mono); letter-spacing: .04em; }
.kanto-receipt-line { display: flex; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px dashed rgba(37, 34, 56, .2); font: .68rem var(--font-mono); }
.kanto-receipt-line strong { color: var(--kanto-red); font-weight: 800; text-align: right; }
.kanto-receipt-total { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; padding-top: 15px; border-top: 2px solid var(--kanto-ink); font: 800 .67rem var(--font-mono); }
.kanto-receipt-total strong { color: var(--kanto-red); font-size: 1.35rem; letter-spacing: -.08em; }
.kanto-receipt-foot { margin: 25px 0 0; color: rgba(37, 34, 56, .58); font: italic .62rem/1.45 var(--font-mono); text-align: center; }

.kanto-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .68fr) auto; align-items: center; gap: 44px; margin-top: 112px; padding: 45px 48px; border: 1px solid rgba(217, 52, 43, .45); border-radius: 24px; background: rgba(217, 52, 43, .09); }
.kanto-cta h2 { margin: 13px 0 0; font-family: var(--display); font-size: clamp(2.5rem, 4vw, 4.4rem); letter-spacing: -.08em; line-height: .85; }
.kanto-cta h2 em { color: var(--kanto-red); font-style: italic; font-weight: 500; }
.kanto-cta > p { margin: 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.6; }
.kanto-cta .button { white-space: nowrap; }

/* Status page */
.status-main,
.events-main,
.patcher-main {
  padding-top: 76px;
  padding-bottom: 112px;
}

.status-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
  align-items: center;
  gap: 50px;
  min-height: 295px;
  padding-bottom: 65px;
}

.status-title { margin: 19px 0 0; font-size: clamp(3.8rem, 8vw, 7.8rem); line-height: .84; }
.status-lede { max-width: 455px; margin: 26px 0 0; color: var(--muted-foreground); font-size: .98rem; line-height: 1.7; }

.status-doodle {
  position: relative;
  width: min(100%, 380px);
  height: 240px;
  justify-self: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(37, 34, 56, .25);
}

.doodle-sun { position: absolute; top: 25px; right: 64px; width: 64px; height: 64px; border: 1px solid var(--primary); border-radius: 50%; }
.doodle-mountain { position: absolute; bottom: -4px; width: 270px; height: 170px; clip-path: polygon(0 100%, 37% 39%, 49% 62%, 67% 20%, 100% 100%); background: var(--sage); }
.doodle-mountain-back { left: 4px; opacity: .45; transform: translateY(15px) scale(.87); }
.doodle-mountain-front { right: -5px; background: var(--forest); }
.dark .doodle-mountain-front { background: var(--forest-soft); }
.doodle-line { position: absolute; z-index: 2; width: 110px; height: 1px; background: var(--primary); transform-origin: left; }
.doodle-line-one { top: 46px; left: 15px; transform: rotate(20deg); }
.doodle-line-two { top: 76px; left: 0; width: 72px; opacity: .5; transform: rotate(-12deg); }

.status-panel,
.chart-panel {
  border: 1px solid rgba(37, 34, 56, .13);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.status-panel {
  position: relative;
  overflow: hidden;
  padding: 31px 33px 28px;
  color: #f2f6fd;
  background: var(--forest);
}

.status-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(247, 242, 232, .15);
  border-radius: 50%;
}

.status-panel-top,
.status-label-row,
.status-live,
.status-actions,
.chart-heading {
  display: flex;
  align-items: center;
}

.status-panel-top { position: relative; z-index: 1; justify-content: space-between; gap: 20px; }
.status-label-row { gap: 14px; }
.status-pulse { display: block; width: 17px; height: 17px; flex: 0 0 auto; border: 4px solid rgba(247, 242, 232, .15); border-radius: 50%; background: #d79b4b; }
.status-pulse.is-offline { background: #ef6c5c; }
.status-panel .panel-kicker { color: var(--gold); }
.status-state { margin: 4px 0 0; color: #f2f6fd; font-family: var(--display); font-size: 2.35rem; letter-spacing: -.055em; line-height: .9; }
.status-live { gap: 8px; padding: 8px 11px; border: 1px solid rgba(247, 242, 232, .18); border-radius: 999px; color: rgba(247, 242, 232, .7); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #d79b4b; }
.status-blurb { position: relative; z-index: 1; max-width: 570px; margin: 26px 0 0; color: rgba(247, 242, 232, .68); font-size: .9rem; line-height: 1.6; }
.status-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 28px 0 0; padding-top: 21px; border-top: 1px solid rgba(247, 242, 232, .17); }
.status-stats dt { color: rgba(247, 242, 232, .48); font-size: .6rem; letter-spacing: .17em; text-transform: uppercase; }
.status-stats dd { margin: 7px 0 0; color: #f2f6fd; font-size: .8rem; font-weight: 600; }

.chart-panel { margin-top: 18px; padding: 28px 33px 24px; background: var(--paper); }
.chart-heading { justify-content: space-between; gap: 20px; }
.chart-heading h2 { margin: 7px 0 0; font-family: var(--display); font-size: 2rem; letter-spacing: -.05em; line-height: 1; }
.chart-heading > p { margin: 0; color: var(--muted-foreground); font-size: .72rem; }
.chart-panel #chart { margin-top: 23px; }
.chart-panel svg { width: 100%; height: 175px; overflow: visible; }
.chart-panel .stroke-primary { stroke: var(--primary); stroke-width: 3; }
.chart-panel .fill-primary { fill: var(--primary); }
.chart-panel .fill-destructive { fill: #ef6c5c; }
.chart-panel .fill-destructive\/25 { fill: rgba(239, 108, 92, .18); }
.chart-panel .stroke-border {  stroke: rgba(37, 34, 56, .16); }
.chart-panel #chart > div { color: var(--muted-foreground); letter-spacing: .08em; text-transform: uppercase; }
.status-actions { justify-content: space-between; gap: 20px; margin-top: 23px; }
.status-actions p { max-width: 620px; margin: 0; color: var(--muted-foreground); font-size: .8rem; line-height: 1.55; }
.status-actions .button:disabled { cursor: wait; opacity: .68; transform: none; }
.wind-alert { margin-bottom: 23px; }
.wind-alert-inner { border-radius: 20px; border: 1px solid rgba(239, 108, 92, .35); background: rgba(239, 108, 92, .09); box-shadow: var(--shadow-soft); }
.wind-alert-inner .text-destructive { color: #ef6c5c; }

/* Events page */
.events-intro,
.patcher-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr);
  align-items: center;
  gap: 55px;
  min-height: 350px;
  padding-bottom: 72px;
}

.events-title,
.patcher-title {
  max-width: 730px;
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: .83;
}

.events-title em,
.featured-event h2 em,
.event-rhythm-section h2 em,
.patcher-title em,
.patcher-status-copy h2 em,
.patcher-steps h2 em,
.patcher-cta h2 em,
.patcher-section-heading h2 em {
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
}

.events-lede,
.patcher-lede {
  max-width: 460px;
  margin: 28px 0 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}

.events-calendar-mark {
  position: relative;
  width: min(100%, 340px);
  height: 280px;
  justify-self: end;
  transform: rotate(5deg);
}

.calendar-ring { position: absolute; inset: 0; border: 1px solid rgba(2, 90, 229, .45); border-radius: 50%; }
.calendar-ring-one { transform: rotate(22deg) scaleX(.64); }
.calendar-ring-two { inset: 9%; border-style: dashed; transform: rotate(-27deg) scaleY(.68); }
.calendar-sun { position: absolute; top: 12px; right: 28px; width: 65px; height: 65px; border-radius: 50%; background: var(--gold); }
.calendar-page { position: absolute; top: 52px; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 157px; height: 178px; border: 1px solid rgba(247, 242, 232, .4); border-radius: 10px 10px 24px 10px; color: #f2f6fd; background: var(--forest); box-shadow: 16px 19px 0 rgba(2, 90, 229, .38); transform: translateX(-50%) rotate(-8deg); }
.calendar-page::before { content: ""; position: absolute; top: 31px; right: 0; left: 0; border-top: 1px solid rgba(247, 242, 232, .2); }
.calendar-page::after { content: ""; position: absolute; top: -8px; left: 28px; width: 10px; height: 24px; border: 1px solid var(--gold); border-radius: 99px; box-shadow: 76px 0 0 -1px var(--gold); }
.calendar-page span { margin-top: 14px; color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .3em; }
.calendar-page strong { margin-top: 9px; font-family: var(--display); font-size: 5rem; font-weight: 500; letter-spacing: -.11em; line-height: .8; }
.calendar-page i { margin-top: 15px; color: rgba(247, 242, 232, .62); font-size: .58rem; font-style: italic; }

.featured-event,
.patcher-status-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 27px;
  color: #f2f6fd;
  background: var(--forest);
  box-shadow: var(--shadow-lift);
}

.featured-event { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); min-height: 485px; }
.featured-event-art { position: relative; min-height: 430px; overflow: hidden; background: linear-gradient(155deg, #596181, #414564 45%, #202238); }
.featured-event-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(32, 34, 56, .4), transparent 60%); }
.event-moon { position: absolute; z-index: 1; top: 61px; left: 29%; width: 98px; height: 98px; border-radius: 50%; background: var(--gold); }
.event-cloud { position: absolute; z-index: 2; width: 112px; height: 22px; border-radius: 50%; background: rgba(247, 242, 232, .16); }
.event-cloud::before,
.event-cloud::after { content: ""; position: absolute; bottom: 2px; border-radius: 50%; background: inherit; }
.event-cloud::before { left: 23px; width: 39px; height: 39px; }
.event-cloud::after { right: 18px; width: 28px; height: 28px; }
.event-cloud-one { top: 134px; left: 11%; }
.event-cloud-two { top: 183px; right: 12%; opacity: .55; transform: scale(.72); }
.event-star { position: absolute; z-index: 2; color: var(--gold); font-size: 1rem; }
.event-star-one { top: 46px; right: 25%; }
.event-star-two { top: 157px; left: 20%; font-size: .6rem; }
.event-hill { position: absolute; z-index: 3; right: -10%; bottom: -18%; left: -10%; height: 54%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;  background: #343653; transform: rotate(-7deg); }
.event-hill-two { bottom: -25%; background: #282a42; transform: rotate(8deg) scale(1.07); }
.event-path { position: absolute; z-index: 4; bottom: -31%; left: 41%; width: 23%; height: 63%; border-radius: 50% 50% 0 0; background: #e0bf72; transform: rotate(-18deg); }
.event-pokeball { position: absolute; z-index: 5; right: 17%; bottom: 33%; width: 45px; height: 45px; border: 3px solid #f2f6fd; border-radius: 50%; background: linear-gradient(#025ae5 0 45%, #f2f6fd 46% 54%, #4b4d72 55%); }
.event-pokeball::after { content: ""; position: absolute; top: 12px; left: 12px; width: 15px; height: 15px; border: 3px solid #f2f6fd; border-radius: 50%;  background: #4b4d72; }

.featured-event-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 52px 52px 42px; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: rgba(247, 242, 232, .63); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; }
.event-tag { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(247, 242, 232, .28); border-radius: 999px; color: var(--gold); font-size: .57rem; font-weight: 700; letter-spacing: .16em; }
.featured-event h2 { margin: 28px 0 0; font-family: var(--display); font-size: clamp(3rem, 5vw, 5.15rem); font-weight: 600; letter-spacing: -.075em; line-height: .84; }
.featured-event-copy > p { max-width: 420px; margin: 24px 0 0; color: rgba(247, 242, 232, .68); font-size: .9rem; line-height: 1.68; }
.event-details { display: grid; grid-template-columns: repeat(3, auto); gap: 31px; margin-top: auto; padding-top: 32px; }
.event-details div { display: flex; flex-direction: column; gap: 6px; }
.event-details span { color: rgba(247, 242, 232, .43); font-size: .57rem; letter-spacing: .15em; text-transform: uppercase; }
.event-details strong { font-size: .78rem; font-weight: 600; }
.featured-event-number { position: absolute; right: 29px; bottom: 22px; color: rgba(247, 242, 232, .17); font-family: var(--display); font-size: 6rem; font-style: italic; letter-spacing: -.12em; line-height: .7; }

.upcoming-section { padding-top: 118px; }
.event-list { display: flex; flex-direction: column; gap: 13px; margin-top: 39px; }
.event-row { position: relative; display: grid; grid-template-columns: 106px minmax(0, 1fr) 46px; align-items: center; gap: 27px; min-height: 162px; padding: 25px 29px 25px 24px; overflow: hidden; border: 1px solid rgba(37, 34, 56, .12); border-radius: 21px; box-shadow: var(--shadow-soft); transition: transform .32s var(--ease-spring), box-shadow .32s ease; }
.event-row:hover { box-shadow: var(--shadow-lift); transform: translateX(9px) rotate(-.45deg); }
.event-row-coral { color: #fcf8f3; background: var(--coral); }
.event-row-sage { color: var(--foreground); background: var(--sage); }
.event-row-blue { color: var(--foreground); background: var(--sky); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 82px; height: 88px; border: 1px solid currentColor; border-radius: 13px; background: rgba(255, 255, 255, .1); }
.event-date span { font-size: .61rem; font-weight: 700; letter-spacing: .2em; }
.event-date strong { margin-top: 6px; font-family: var(--display); font-size: 2.8rem; font-weight: 500; letter-spacing: -.08em; line-height: .8; }
.event-row .event-meta { color: rgba(37, 34, 56, .6); }
.event-row-coral .event-meta { color: rgba(255, 249, 238, .63); }
.event-row .event-tag { color: currentColor; border-color: currentColor; }
.event-row h3 { margin: 11px 0 0; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 600; letter-spacing: -.06em; line-height: .95; }
.event-row p { max-width: 590px; margin: 9px 0 0; color: rgba(37, 34, 56, .68); font-size: .82rem; line-height: 1.55; }
.event-row-coral p { color: rgba(255, 249, 238, .68); }
.event-row-arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; font-size: 1rem; transition: transform .3s var(--ease-spring), background-color .3s ease; }
.event-row:hover .event-row-arrow { background: rgba(255, 255, 255, .12); transform: rotate(45deg); }

.event-rhythm-section { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(210px, .62fr) auto; align-items: center; gap: 42px; min-height: 265px; margin-top: 112px; padding: 43px 48px; overflow: hidden; border-radius: 25px; color: #f2f6fd; background: var(--forest); }
.event-rhythm-section h2 { margin: 13px 0 0; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 600; letter-spacing: -.07em; line-height: .87; }
.event-rhythm-section > p { max-width: 285px; margin: 0; color: rgba(247, 242, 232, .64); font-size: .82rem; line-height: 1.6; }
.event-rhythm-section .button { white-space: nowrap; }
.event-rhythm-art { position: relative; width: 150px; height: 150px; border: 1px solid rgba(247, 242, 232, .23); border-radius: 50%; }
.rhythm-orbit { position: absolute; inset: 14px; border: 1px solid rgba(247, 242, 232, .33); border-radius: 50%; transform: rotate(25deg) scaleX(.55); }
.rhythm-orbit-two { inset: 28px; border-style: dashed; transform: rotate(-40deg) scaleY(.62); }
.rhythm-star { position: absolute; top: 50%; left: 50%; color: var(--gold); font-size: 1.65rem; transform: translate(-50%, -50%); }

/* Patcher page */
.patcher-device { position: relative; width: min(100%, 365px); height: 290px; justify-self: end; transform: rotate(4deg); }
.patcher-device-orbit { position: absolute; inset: 0; border: 1px solid rgba(2, 90, 229, .38); border-radius: 50%; }
.patcher-device-orbit-one { transform: rotate(20deg) scaleX(.68); }
.patcher-device-orbit-two { inset: 7%; border-style: dashed; transform: rotate(-34deg) scaleY(.7); }
.patcher-device-spark { position: absolute; color: var(--gold); font-size: 1.15rem; }
.patcher-device-spark-one { top: 16px; right: 22px; }
.patcher-device-spark-two { bottom: 30px; left: 30px; font-size: .65rem; }
.patcher-window { position: absolute; top: 52px; left: 50%; width: 245px; height: 175px; overflow: hidden; border: 1px solid rgba(247, 242, 232, .35); border-radius: 13px; color: #f2f6fd; background: var(--forest); box-shadow: 15px 17px 0 rgba(2, 90, 229, .38); transform: translateX(-50%) rotate(-8deg); }
.patcher-window-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-bottom: 1px solid rgba(247, 242, 232, .14); background: rgba(0, 0, 0, .11); }
.patcher-window-bar span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.patcher-window-bar span:nth-child(2) { background: var(--gold); }
.patcher-window-bar span:nth-child(3) { background: #d79b4b; }
.patcher-window-bar i { margin-left: 7px; color: rgba(247, 242, 232, .5); font-family: var(--font-mono); font-size: .53rem; font-style: normal; }
.patcher-window-body { display: flex; flex-direction: column; align-items: center; padding-top: 18px; }
.patcher-window-mark { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 8px; border: 1px solid rgba(247, 242, 232, .25); border-radius: 50%; }
.patcher-window-mark img { width: 29px; height: 29px; object-fit: contain; }
.patcher-window-body strong { font-family: var(--display); font-size: 1.05rem; font-weight: 500; letter-spacing: -.03em; }
.patcher-window-body small { margin-top: 4px; color: rgba(247, 242, 232, .52); font-size: .53rem; letter-spacing: .08em; text-transform: uppercase; }
.patcher-window-line { width: 137px; height: 4px; margin-top: 17px; overflow: hidden; border-radius: 999px; background: rgba(247, 242, 232, .16); }
.patcher-window-line span { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--gold); }

.patcher-status-card { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); min-height: 480px; }
.patcher-status-art { position: relative; min-height: 430px; overflow: hidden; background: linear-gradient(155deg, #d5b66a, #7b82a4 52%, #343653); }
.patcher-status-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 45, 66, .62), transparent 62%); }
.patcher-sun { position: absolute; top: 54px; left: 28%; width: 84px; height: 84px; border-radius: 50%; background: #f5d17a; }
.patcher-grid-line { position: absolute; z-index: 1; width: 175px; height: 1px; background: rgba(247, 242, 232, .34); transform-origin: left; }
.patcher-grid-line-one { top: 30%; left: 13%; transform: rotate(25deg); }
.patcher-grid-line-two { top: 39%; left: 2%; width: 120px; opacity: .6; transform: rotate(-12deg); }
.patcher-mountain { position: absolute; z-index: 2; right: -12%; bottom: -19%; left: -12%; height: 55%; clip-path: polygon(0 100%, 35% 41%, 48% 58%, 66% 17%, 100% 100%); background: #5e668e; }
.patcher-mountain-front { z-index: 3; bottom: -25%; background: #2b2d42; transform: scale(1.08) rotate(5deg); }
.patcher-road { position: absolute; z-index: 4; bottom: -31%; left: 38%; width: 26%; height: 62%; border-radius: 50% 50% 0 0; background: #e4ca83; transform: rotate(-15deg); }
.patcher-status-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 49px 52px 42px; }
.patcher-status-copy .event-meta { color: rgba(247, 242, 232, .62); }
.patcher-status-copy .event-tag { color: var(--gold); }
.patcher-status-copy h2 { margin: 27px 0 0; font-family: var(--display); font-size: clamp(3rem, 5vw, 5.1rem); font-weight: 600; letter-spacing: -.075em; line-height: .84; }
.patcher-status-copy > p { max-width: 430px; margin: 23px 0 0; color: rgba(247, 242, 232, .67); font-size: .89rem; line-height: 1.67; }
.patcher-build { display: grid; grid-template-columns: repeat(2, auto); gap: 31px; margin-top: auto; padding-top: 31px; }
.patcher-build div { display: flex; flex-direction: column; gap: 6px; }
.patcher-build span,
.patcher-progress-label span { color: rgba(247, 242, 242, .43); font-size: .57rem; letter-spacing: .15em; text-transform: uppercase; }
.patcher-build strong { font-size: .76rem; font-weight: 600; }
.patcher-progress-label { display: flex; justify-content: space-between; width: min(100%, 440px); gap: 20px; margin-top: 26px; }
.patcher-progress-label strong { color: var(--gold); font-size: .74rem; font-weight: 600; }
.patcher-progress { width: min(100%, 440px); height: 6px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: rgba(247, 242, 232, .15); }
.patcher-progress span { display: block; width: 34%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--primary)); }
.patcher-progress-note { margin-top: 9px !important; color: rgba(247, 242, 232, .4) !important; font-size: .67rem !important; }
.patcher-status-number { position: absolute; right: 29px; bottom: 22px; color: rgba(247, 242, 232, .17); font-family: var(--display); font-size: 6rem; font-style: italic; letter-spacing: -.12em; line-height: .7; }
.patcher-features { padding-top: 118px; }
.patcher-section-heading h2 { margin: 15px 0 0; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 600; letter-spacing: -.07em; line-height: .88; }
.patcher-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 39px; }
.patcher-feature { position: relative; min-height: 270px; padding: 25px; overflow: hidden; border: 1px solid rgba(37, 34, 56, .12); border-radius: 22px; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease-spring), box-shadow .3s ease; }
.patcher-feature:hover { box-shadow: var(--shadow-lift); transform: translateY(-7px) rotate(-.4deg); }
.patcher-feature-coral { color: #fcf8f3; background: var(--coral); }
.patcher-feature-sage { color: var(--foreground); background: var(--sage); }
.patcher-feature-blue { color: var(--foreground); background: var(--sky); }
.patcher-feature-number { color: rgba(37, 34, 56, .5); font-size: .61rem; font-weight: 700; letter-spacing: .16em; }
.patcher-feature-coral .patcher-feature-number { color: rgba(255, 249, 238, .55); }
.patcher-feature-icon { position: absolute; top: 23px; right: 23px; display: grid; place-items: center; width: 63px; height: 63px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--display); font-size: 2rem; }
.patcher-feature h3 { max-width: 210px; margin: 66px 0 0; font-family: var(--display); font-size: 1.85rem; font-weight: 600; letter-spacing: -.06em; line-height: .92; }
.patcher-feature p { max-width: 245px; margin: 12px 0 0; color: rgba(37, 34, 56, .7); font-size: .8rem; line-height: 1.55; }
.patcher-feature-coral p { color: rgba(255, 249, 238, .7); }
.patcher-steps { display: grid; grid-template-columns: 175px minmax(0, .8fr) minmax(250px, .9fr); align-items: center; gap: 53px; min-height: 330px; margin-top: 112px; padding: 44px 48px; overflow: hidden; border-radius: 25px; color: #f2f6fd; background: var(--forest); }
.patcher-steps-art { position: relative; width: 150px; height: 150px; border: 1px solid rgba(247, 242, 232, .22); border-radius: 50%; }
.patcher-steps-ring { position: absolute; inset: 18px; border: 1px solid rgba(247, 242, 232, .4); border-radius: 50%; transform: rotate(25deg) scaleX(.55); }
.patcher-steps-ring::after { content: ""; position: absolute; inset: 18px; border: 1px dashed rgba(247, 242, 232, .36); border-radius: 50%; transform: rotate(-70deg) scaleY(.65); }
.patcher-steps-star { position: absolute; top: 50%; left: 50%; color: var(--gold); font-size: 1.65rem; transform: translate(-50%, -50%); }
.patcher-steps h2 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 4.2rem); font-weight: 600; letter-spacing: -.075em; line-height: .86; }
.patcher-step-list { display: flex; flex-direction: column; gap: 17px; }
.patcher-step-list > div { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(247, 242, 232, .16); }
.patcher-step-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.patcher-step-list > div > span { color: var(--gold); font-family: var(--display); font-size: 1.3rem; font-style: italic; }
.patcher-step-list p { margin: 0; color: rgba(247, 242, 232, .6); font-size: .76rem; line-height: 1.35; }
.patcher-step-list strong { color: #f2f6fd; font-weight: 600; }
.patcher-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .66fr) auto; align-items: center; gap: 45px; margin-top: 112px; padding: 46px 48px; border: 1px solid rgba(2, 90, 229, .42); border-radius: 24px; background: rgba(2, 90, 229, .09); }
.patcher-cta h2 { margin: 13px 0 0; font-family: var(--display); font-size: clamp(2.5rem, 4vw, 4.3rem); font-weight: 600; letter-spacing: -.075em; line-height: .86; }
.patcher-cta > p { margin: 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.6; }
.patcher-cta .button { white-space: nowrap; }

/* Invite page */
.invite-main { padding-top: 76px; padding-bottom: 112px; }
.invite-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr); align-items: center; gap: 55px; min-height: 350px; padding-bottom: 72px; }
.invite-title { max-width: 730px; margin: 20px 0 0; font-family: var(--display); font-size: clamp(4rem, 8vw, 8rem); font-weight: 600; letter-spacing: -.08em; line-height: .83; }
.invite-title em,
.invite-panel h2 { color: var(--primary); font-style: italic; font-weight: 500; }
.invite-lede { max-width: 460px; margin: 28px 0 0; color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; }
.invite-sigil { position: relative; width: min(100%, 340px); height: 280px; justify-self: end; transform: rotate(5deg); }
.invite-sigil-ring { position: absolute; inset: 0; border: 1px solid rgba(2, 90, 229, .45); border-radius: 50%; }
.invite-sigil-ring-one { transform: rotate(22deg) scaleX(.64); }
.invite-sigil-ring-two { inset: 9%; border-style: dashed; transform: rotate(-27deg) scaleY(.68); }
.invite-sigil-spark { position: absolute; z-index: 2; color: var(--gold); font-size: 1.1rem; }
.invite-sigil-spark-one { top: 34px; right: 28px; }
.invite-sigil-spark-two { bottom: 33px; left: 26px; font-size: .65rem; }
.invite-sigil-core { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 170px; height: 170px; border-radius: 50%; color: #f2f6fd; background: var(--forest); box-shadow: 14px 17px 0 rgba(2, 90, 229, .38); transform: translate(-50%, -50%) rotate(-8deg); }
.invite-sigil-core img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 10px; }
.invite-sigil-core strong { color: var(--gold); font-family: var(--display); font-size: 1.45rem; font-weight: 500; letter-spacing: .08em; }
.invite-sigil-core small { margin-top: 6px; color: rgba(247, 242, 232, .58); font-size: .56rem; font-style: italic; }
.invite-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 55px; padding: 51px 53px 48px; overflow: hidden; border-radius: 27px; color: #f2f6fd; background: var(--forest); box-shadow: var(--shadow-lift); }
.invite-panel h2 { margin: 15px 0 0; font-family: var(--display); font-size: clamp(3rem, 5vw, 5.1rem); font-weight: 600; letter-spacing: -.075em; line-height: .84; }
.invite-panel-copy > p:not(.section-kicker) { max-width: 430px; margin: 23px 0 0; color: rgba(247, 242, 232, .67); font-size: .89rem; line-height: 1.67; }
.invite-flow { display: flex; flex-direction: column; gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; }
.invite-flow li { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid rgba(247, 242, 232, .16); }
.invite-flow li:last-child { padding-bottom: 0; border-bottom: 0; }
.invite-flow li > span { color: var(--gold); font-family: var(--display); font-size: 1.2rem; font-style: italic; }
.invite-flow p { margin: 0; color: rgba(247, 242, 232, .6); font-size: .78rem; line-height: 1.35; }
.invite-flow strong { color: #f2f6fd; font-weight: 600; }
.invite-form-wrap { align-self: center; padding: 32px; border: 1px solid rgba(247, 242, 232, .18); border-radius: 22px; background: rgba(247, 242, 232, .06); }
.invite-form label { display: block; color: rgba(247, 242, 232, .72); font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.invite-field { display: flex; gap: 11px; margin-top: 13px; }
.invite-field input { min-width: 0; flex: 1; padding: 14px 16px; border: 1px solid rgba(247, 242, 232, .25); border-radius: 12px; outline: 0; color: #f2f6fd; background: rgba(0, 0, 0, .15); font: 600 .88rem var(--font-mono); letter-spacing: .05em; }
.invite-field input::placeholder { color: rgba(247, 242, 232, .33); }
.invite-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(57, 145, 254, .15); }
.invite-field .button { flex: 0 0 auto; border: 0; cursor: pointer; }
.invite-field .button:disabled { cursor: wait; opacity: .65; transform: none; }
.invite-hint { margin: 13px 0 0; color: rgba(247, 242, 232, .43); font-size: .7rem; line-height: 1.5; }
.invite-status { margin-top: 17px; padding: 12px 14px; border: 1px solid rgba(239, 108, 92, .5); border-radius: 11px; color: #ffd8ce; background: rgba(239, 108, 92, .12); font-size: .78rem; line-height: 1.45; }
.invite-status.is-success { border-color: rgba(145, 209, 155, .45); color: #c9f3cf; background: rgba(145, 209, 155, .1); }
.invite-status.is-loading { border-color: rgba(57, 145, 254, .42); color: #f5d98a; background: rgba(57, 145, 254, .1); }
.invite-footnote { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 23px; margin-top: 25px; padding: 25px 29px; border: 1px solid rgba(2, 90, 229, .3); border-radius: 20px; background: rgba(2, 90, 229, .07); }
.invite-footnote-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(2, 90, 229, .42); border-radius: 50%; color: var(--primary); font-size: 1.25rem; }
.invite-footnote p:not(.section-kicker) { max-width: 570px; margin: 7px 0 0; color: var(--muted-foreground); font-size: .8rem; line-height: 1.55; }
.invite-footnote .button { white-space: nowrap; }

@media (max-width: 1000px) {
  .hero-content { grid-template-columns: minmax(0, 1.1fr) minmax(230px, .7fr); gap: 18px; }
  .hero-title { font-size: clamp(4rem, 9vw, 6.7rem); }
  .hero-orbit { min-width: 250px; min-height: 250px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card-large { min-height: 490px; }
  .feature-card-sand { grid-column: span 1; }
  .manifesto-inner { grid-template-columns: 130px minmax(0, 1fr); gap: 50px; }
  .manifesto-list { grid-column: 2; }
  .manifesto-stamp { width: 125px; height: 125px; }
  .manifesto-stamp strong { font-size: 2.5rem; }
  .invite-intro,
  .invite-panel { grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); }
  .kanto-hero { grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); gap: 30px; }
  .kanto-warning { grid-template-columns: 55px minmax(0, 1fr); }
  .kanto-warning > p { grid-column: 2; }
  .kanto-receipt { gap: 43px; padding-inline: 37px; }
  .kanto-cta { grid-template-columns: minmax(0, 1fr) minmax(190px, .65fr); }
  .kanto-cta .button { grid-column: 2; justify-self: start; }

  .invite-panel { gap: 34px; padding-inline: 37px; }
  .invite-footnote { grid-template-columns: 54px minmax(0, 1fr); }
  .invite-footnote .button { grid-column: 2; justify-self: start; }

  .events-intro,
  .patcher-intro { grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); }
  .featured-event-copy,
  .patcher-status-copy { padding-inline: 37px; }
  .event-rhythm-section,
  .patcher-steps { grid-template-columns: 135px minmax(0, 1fr); gap: 42px; }
  .event-rhythm-section > p,
  .patcher-step-list { grid-column: 2; }
  .event-rhythm-section .button { grid-column: 2; justify-self: start; }
  .event-rhythm-art,
  .patcher-steps-art { width: 125px; height: 125px; }
  .patcher-cta { grid-template-columns: minmax(0, 1fr) minmax(190px, .65fr); }
  .patcher-cta .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
  .status-intro { grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr); gap: 25px; }
  .closing-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
  .closing-video-left { transform: rotate(-5deg) translateY(12px); }
  .closing-video-right { transform: rotate(5deg) translateY(-10px); }
}

@media (max-width: 700px) {
  .closing-stage { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 48px; padding-bottom: 64px; }
  .closing-stage .closing-section { grid-column: 1 / -1; grid-row: 1; }
  .closing-video-left { grid-row: 2; transform: rotate(-4deg); }
  .closing-video-right { grid-row: 2; transform: rotate(4deg); }
}

@media (max-width: 700px) {
  .site-nav { height: 66px; padding-inline: 20px; }
  .site-nav nav { gap: 13px; }
  .nav-link { font-size: .58rem; letter-spacing: .13em; }
  .nav-note { display: none; }
  .brand { font-size: .86rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark img { width: 28px; height: 28px; }

  .hero-section,
  .hero-content { min-height: calc(100svh - 92px); max-height: none; }
  .hero-content { display: block; padding-top: 82px; padding-bottom: 100px; }
  .hero-title { max-width: 500px; margin-top: 19px; font-size: clamp(2.9rem, 12vw, 4.6rem); }
  .hero-lede { max-width: 400px; margin-top: 24px; font-size: .95rem; }
  .hero-orbit { position: absolute; right: -68px; bottom: 48px; width: 245px; height: 245px; min-width: 0; min-height: 0; opacity: .78; }
  .hero-badge { width: 125px; height: 125px; padding-bottom: 16px; }
  .hero-badge::before { top: 15px; width: 48px; height: 48px; }
  .hero-badge-value { top: 56px; font-size: 1rem; }
  .hero-badge-label { font-size: .45rem; }
  .hero-badge-caption { font-size: .48rem; }
  .trust-row { max-width: 340px; gap: 10px 15px; margin-top: 32px; font-size: .57rem; }
  .scroll-cue { display: none; }

  .world-section { padding-top: 76px; padding-bottom: 82px; }
  .world-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
  .world-gallery-card-squirtle,
  .world-gallery-card-pikachu,
  .world-gallery-card-shop,
  .world-gallery-card-windstock { grid-column: span 1; }
  .world-gallery-card { min-height: 300px; }
  .world-gallery-card img { min-height: 300px; }

  .tiers-section { padding-top: 78px; padding-bottom: 78px; }
  .tiers-heading { display: block; }
  .tiers-heading .section-intro { max-width: 420px; margin-top: 22px; }
  .tiers-stage { margin-top: 32px; padding: 17px; }
  .tier-grid { grid-template-columns: 1fr; gap: 10px; }
  .tier-card { min-height: 166px; padding: 18px; }
  .tier-card h3 { margin-top: 20px; font-size: 2rem; }
  .tier-card p { max-width: 220px; margin-top: 8px; font-size: .74rem; }
  .tier-card strong { right: 18px; bottom: 18px; }
  .tier-scribble { inset: 5% 0 6%; }
  .scribble-line { height: 14px; }
  .scribble-line-two,
  .scribble-line-five { height: 17px; }

  .section-heading,
  .events-section-heading,
  .patcher-section-heading,
  .status-intro { display: block; }
  .section-intro,
  .events-section-heading .section-intro,
  .patcher-section-heading .section-intro { max-width: 420px; margin-top: 22px; }
  .feature-grid { grid-template-columns: 1fr; grid-auto-rows: auto; margin-top: 34px; }
  .feature-card,
  .feature-card-large,
  .feature-card-sand { grid-column: auto; grid-row: auto; min-height: 285px; }
  .feature-card-large { min-height: 465px; }
  .feature-card-large .feature-card-body { padding: 26px; }
  .manifesto-inner { display: block; padding-top: 77px; padding-bottom: 77px; }
  .manifesto-stamp { margin-bottom: 58px; }
  .manifesto-list { margin-top: 39px; }
  .closing-section { padding-top: 86px; padding-bottom: 95px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 25px 20px; }

  .status-main,
  .events-main,
  .patcher-main { padding-top: 57px; padding-bottom: 80px; }
  .status-intro { min-height: 0; padding-bottom: 36px; }
  .status-title { font-size: clamp(3.8rem, 17vw, 6rem); }
  .status-doodle { width: 100%; height: 170px; margin-top: 35px; }
  .status-panel,
  .chart-panel { padding: 24px 21px 21px; border-radius: 21px; }
  .status-panel-top { align-items: flex-start; flex-direction: column; }
  .status-live { margin-left: 31px; }
  .status-stats { grid-template-columns: 1fr; gap: 15px; }
  .status-stats dd { margin-top: 4px; }
  .chart-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .chart-panel svg { height: 140px; }
  .status-actions { align-items: stretch; flex-direction: column; }
  .status-actions .button { width: fit-content; }

  .events-intro,
  .patcher-intro,
  .invite-intro { display: block; min-height: 0; padding-bottom: 43px; }
  .kanto-main { padding-top: 57px; padding-bottom: 80px; }
  .kanto-escape-toast { top: 76px; right: 16px; min-width: 118px; padding: 10px 12px 10px 10px; font-size: .76rem; }
  .kanto-escape-icon { width: 22px; height: 22px; font-size: .86rem; }
  .kanto-hero { display: block; min-height: 0; }
  .kanto-title { font-size: clamp(3.8rem, 17vw, 6.3rem); }
  .kanto-lede { margin-top: 23px; font-size: .94rem; }
  .kanto-hero-art { width: 280px; height: 250px; margin: 42px auto 0; transform: rotate(4deg) scale(.88); }
  .kanto-ticket { top: 31px; width: 202px; height: 220px; padding: 21px 18px; }
  .kanto-ticket-price { margin-top: 22px; font-size: 3.9rem; }
  .kanto-warning { display: block; margin-top: 28px; padding: 25px 22px; }
  .kanto-warning-mark { margin-bottom: 22px; }
  .kanto-warning > p { margin-top: 23px; }
  .kanto-tiers { padding-top: 80px; }
  .kanto-section-heading { display: block; }
  .kanto-section-heading .section-intro { max-width: 420px; margin-top: 22px; }
  .kanto-tier-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .kanto-tier { min-height: 330px; }
  .kanto-tier-basic,
  .kanto-tier-pro,
  .kanto-tier-enterprise { transform: none; }
  .kanto-tier h3 { margin-top: 35px; }
  .kanto-receipt { display: block; margin-top: 79px; padding: 31px 24px 34px; }
  .kanto-receipt-paper { max-width: 390px; margin: 42px auto 0; }
  .kanto-cta { display: block; margin-top: 78px; padding: 31px 24px 34px; }
  .kanto-cta > p { margin-top: 24px; }
  .kanto-cta .button { display: inline-flex; margin-top: 25px; }

  .invite-title { font-size: clamp(3.8rem, 17vw, 6rem); }
  .invite-lede { margin-top: 23px; font-size: .94rem; }
  .invite-sigil { width: 280px; height: 220px; margin: 42px auto 0; transform: rotate(4deg) scale(.86); }
  .invite-panel { display: block; padding: 31px 24px 29px; }
  .invite-panel h2 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .invite-flow { margin-top: 29px; }
  .invite-form-wrap { margin-top: 34px; padding: 23px 19px; }
  .invite-field { display: block; }
  .invite-field .button { width: 100%; margin-top: 11px; }
  .invite-footnote { display: block; padding: 23px 20px 25px; }
  .invite-footnote-mark { margin-bottom: 20px; }
  .invite-footnote .button { display: inline-flex; margin-top: 22px; }

  .events-intro,
  .patcher-intro { display: block; min-height: 0; padding-bottom: 43px; }
  .events-title,
  .patcher-title { font-size: clamp(3.8rem, 17vw, 6rem); }
  .events-lede,
  .patcher-lede { margin-top: 23px; font-size: .94rem; }
  .events-calendar-mark { width: 280px; height: 220px; margin: 42px auto 0; transform: rotate(4deg) scale(.86); }
  .featured-event,
  .patcher-status-card { display: block; }
  .featured-event-art,
  .patcher-status-art { min-height: 285px; }
  .featured-event-copy,
  .patcher-status-copy { min-height: 430px; padding: 31px 24px 29px; }
  .featured-event h2,
  .patcher-status-copy h2 { margin-top: 22px; font-size: clamp(3rem, 14vw, 4.6rem); }
  .featured-event-copy > p,
  .patcher-status-copy > p { margin-top: 20px; font-size: .85rem; }
  .event-details { gap: 16px; padding-top: 25px; }
  .event-details strong { font-size: .7rem; }
  .featured-event-number,
  .patcher-status-number { right: 20px; bottom: 18px; font-size: 4.5rem; }
  .upcoming-section,
  .patcher-features { padding-top: 79px; }
  .event-list { margin-top: 29px; }
  .event-row { grid-template-columns: 70px minmax(0, 1fr) 30px; gap: 16px; min-height: 176px; padding: 21px 16px 21px 13px; }
  .event-date { width: 65px; height: 75px; }
  .event-date strong { font-size: 2.3rem; }
  .event-row .event-meta { gap: 7px; font-size: .53rem; }
  .event-row .event-tag { padding: 5px 7px; font-size: .48rem; }
  .event-row h3 { margin-top: 9px; font-size: 1.52rem; }
  .event-row p { font-size: .75rem; }
  .event-row-arrow { width: 28px; height: 28px; font-size: .8rem; }
  .event-rhythm-section { display: block; min-height: 0; margin-top: 78px; padding: 30px 24px 34px; }
  .event-rhythm-art { width: 105px; height: 105px; margin-bottom: 31px; }
  .event-rhythm-section > p { margin-top: 24px; }
  .event-rhythm-section .button { margin-top: 25px; }

  .patcher-device { width: 280px; height: 220px; margin: 42px auto 0; transform: rotate(4deg) scale(.86); }
  .patcher-status-copy { min-height: 470px; }
  .patcher-build { gap: 16px; padding-top: 25px; }
  .patcher-build strong { font-size: .68rem; }
  .patcher-feature-grid { grid-template-columns: 1fr; margin-top: 29px; }
  .patcher-feature { min-height: 250px; }
  .patcher-steps { display: block; min-height: 0; margin-top: 78px; padding: 30px 24px 34px; }
  .patcher-steps-art { width: 105px; height: 105px; margin-bottom: 31px; }
  .patcher-step-list { margin-top: 31px; }
  .patcher-cta { display: block; margin-top: 78px; padding: 31px 24px 34px; }
  .patcher-cta > p { margin-top: 24px; }
  .patcher-cta .button { display: inline-flex; margin-top: 25px; }

  .join-main,
  .downloads-main { padding-top: 57px; padding-bottom: 80px; }
  .join-hero,
  .downloads-intro { display: block; min-height: 0; padding-bottom: 43px; }
  .join-title,
  .downloads-title { font-size: clamp(3.8rem, 17vw, 6rem); }
  .join-lede,
  .downloads-lede { margin-top: 23px; font-size: .94rem; }
  .join-sigil { width: 280px; height: 220px; margin: 42px auto 0; }
  .join-panel { display: block; padding: 31px 24px 29px; }
  .join-panel h2 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .join-panel > div + div { margin-top: 25px; }
  .download-grid { grid-template-columns: 1fr; margin-top: 29px; }
  .download-card { min-height: 350px; padding: 27px 23px; }
  .downloads-note { display: block; margin-top: 78px; padding: 31px 24px 34px; }
  .downloads-note h2 { font-size: clamp(3rem, 14vw, 4.6rem); }
}

/* Join and downloads pages */
.join-hero,
.downloads-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); align-items: center; gap: 48px; min-height: 460px; }
.join-title,
.downloads-title { max-width: 650px; margin: 23px 0 0; font-family: var(--display); font-size: clamp(4.2rem, 8.5vw, 8.4rem); font-weight: 600; letter-spacing: -.075em; line-height: .86; }
.join-title em,
.downloads-title em { color: var(--primary); font-style: italic; font-weight: 500; }
.join-lede,
.downloads-lede { max-width: 480px; margin: 28px 0 0; color: var(--muted-foreground); font-size: 1.08rem; line-height: 1.65; }
.join-hero .button { margin-top: 30px; }
.join-hint { margin: 13px 0 0; color: var(--muted-foreground); font-size: .76rem; }
.join-sigil,
.downloads-mark { position: relative; display: grid; place-items: center; width: min(37vw, 360px); height: min(37vw, 360px); justify-self: center; border: 1px solid rgba(37, 34, 56, .18); border-radius: 50%; transform: rotate(-8deg); }
.join-sigil-ring { position: absolute; inset: 13%; border: 1px dashed var(--primary); border-radius: 50%; }
.join-sigil-spark { position: absolute; top: 11%; right: 15%; color: var(--primary); font-size: 1.5rem; }
.join-sigil > div { display: flex; flex-direction: column; align-items: center; }
.join-sigil strong { margin-top: 9px; font-family: var(--display); font-size: 1.55rem; letter-spacing: -.06em; }
.join-sigil small { margin-top: 4px; color: var(--muted-foreground); font-size: .58rem; font-style: italic; }
.join-panel { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 60px; padding: 48px 52px; border: 1px solid rgba(37, 34, 56, .13); border-radius: 27px; background: var(--paper); box-shadow: var(--shadow-soft); }
.join-panel h2 { margin: 17px 0 0; font-family: var(--display); font-size: clamp(3.1rem, 5vw, 5.2rem); letter-spacing: -.075em; line-height: .86; }
.join-panel h2 em,
.downloads-note h2 em { color: var(--primary); font-style: italic; font-weight: 500; }
.join-panel > div > p:not(.section-kicker) { max-width: 600px; margin: 0; color: var(--muted-foreground); line-height: 1.7; }
.join-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; }
.join-flow li { display: flex; flex-direction: column; gap: 12px; padding-top: 15px; border-top: 1px solid var(--border); font-size: .78rem; }
.join-flow span { color: var(--primary); font-family: var(--font-mono); font-size: .65rem; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 42px; }
.download-card { position: relative; min-height: 420px; padding: 34px 31px; overflow: hidden; border-radius: 25px; box-shadow: var(--shadow-soft); }
.download-card-coral { color: #fcf8f3; background: var(--coral); }
.download-card-blue { color: var(--foreground); background: var(--sky); }
.download-card-slate { color: #f2f6fd; background: var(--forest); }
.download-card-slate .section-kicker { color: var(--gold); }
.download-card-slate p:not(.section-kicker) { color: rgba(247, 242, 232, .72); }
.download-card-slate small { color: rgba(247, 242, 232, .68); }
.download-icon { position: absolute; top: 25px; right: 28px; font-size: 2rem; opacity: .7; }
.download-card .section-kicker { color: inherit; opacity: .72; }
.download-card h2 { margin: 62px 0 0; font-family: var(--display); font-size: clamp(2.7rem, 5vw, 4.8rem); letter-spacing: -.075em; line-height: .88; }
.download-card h2 em { font-style: italic; font-weight: 500; }
.download-card p:not(.section-kicker) { max-width: 340px; margin: 21px 0 0; color: currentColor; opacity: .75; line-height: 1.6; }
.download-card .button { margin-top: 29px; color: var(--foreground); background: var(--paper); box-shadow: none; }
.download-card small { display: block; margin-top: 13px; font-family: var(--font-mono); font-size: .58rem; opacity: .62; }
.downloads-note { display: grid; grid-template-columns: .8fr 1fr 1fr; align-items: center; gap: 34px; margin-top: 112px; padding: 41px 48px; border: 1px solid rgba(37, 34, 56, .13); border-radius: 25px; background: var(--paper); }
.downloads-note h2 { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.075em; line-height: .9; }
.downloads-note > p:not(.section-kicker) { margin: 0; color: var(--muted-foreground); font-size: .9rem; line-height: 1.65; }
.downloads-note .button { justify-self: end; }

/* Keep the downloads hero inside the viewport at every desktop width. */
.downloads-main { overflow: hidden; }
.downloads-intro,
.downloads-intro > div { min-width: 0; }
.downloads-title { max-width: 100%; font-size: clamp(3.5rem, 7vw, 7rem); overflow-wrap: break-word; }

@media (max-width: 900px) and (min-width: 701px) {
  .site-nav { padding-inline: 20px; }
  .site-nav nav { gap: 13px; }
  .nav-link { font-size: .58rem; letter-spacing: .13em; }
  .downloads-intro { grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); gap: 25px; }
}

/* Downloads title: keep the full phrase inside the viewport instead of letting
   the oversized display font push the page sideways. */
html,
body { overflow-x: hidden; }
.downloads-copy { min-width: 0; overflow: hidden; }
.downloads-title {
  width: 100%;
  max-width: 700px;
  margin-right: 0;
  font-size: clamp(3rem, 6vw, 6.5rem) !important;
  line-height: .88;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

@media (max-width: 700px) {
  .downloads-title { max-width: 100%; font-size: clamp(3.3rem, 15vw, 5.5rem) !important; }
}

/* Extra small-screen polish */
@media (max-width: 700px) {
  .site-nav { gap: 12px; }
  .brand { min-width: 32px; }
  .brand > span:last-child { display: none; }
  .site-nav nav { flex: 1 1 auto; min-width: 0; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .site-nav nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; }
  .eyebrow-row { align-items: flex-start; flex-wrap: wrap; }
  .eyebrow { max-width: calc(100vw - 62px); line-height: 1.4; }
  .hero-title,
  .invite-title,
  .events-title,
  .patcher-title,
  .kanto-title,
  .status-title,
  .downloads-title { overflow-wrap: break-word; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .world-gallery-card,
  .world-gallery-card img { min-height: 235px; }
  .footer-inner p { max-width: 32rem; line-height: 1.5; }

  /* These page-specific rules come after the shared desktop styles so they
     remain effective on phones. */
  .join-hero,
  .downloads-intro { display: block; min-height: 0; padding-bottom: 43px; }
  .join-title,
  .downloads-title { max-width: 100%; font-size: clamp(3.25rem, 15vw, 5.5rem) !important; line-height: .88; }
  .join-lede,
  .downloads-lede { max-width: 100%; margin-top: 23px; font-size: .94rem; }
  .join-sigil,
  .downloads-mark { width: 280px; height: 220px; margin: 42px auto 0; }
  .join-panel { display: block; padding: 31px 24px 29px; }
  .join-panel h2 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .join-form-wrap,
  .invite-form-wrap { margin-top: 25px; }
  .download-grid { grid-template-columns: 1fr; margin-top: 29px; }
  .download-card { min-height: 350px; padding: 27px 23px; }
  .downloads-note { display: block; margin-top: 78px; padding: 31px 24px 34px; }
  .downloads-note h2 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
}
