@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17102e;
  --deep: #100a22;
  --purple: #35205e;
  --cream: #fff9ec;
  --muted: #cec4df;
  --yellow: #ffe65b;
  --cyan: #66ebf2;
  --pink: #ff7abf;
  --display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --body: "Fredoka", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; }
body.lightbox-open { overflow: hidden; }
.lightbox:not([open]) { display: none; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3, .brand, .button, .speed-strip { font-family: var(--display); font-weight: 400; line-height: 1.03; }
h2 { font-size: clamp(2.75rem, 5.1vw, 4.9rem); letter-spacing: -.025em; }
h3 { font-size: 1.8rem; }
p + p { margin-top: 1rem; }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 6px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--yellow); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.section-wrap { width: min(1240px, calc(100% - 5rem)); margin-inline: auto; }
.eyebrow { font-size: .84rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; line-height: 1.5; margin-bottom: 1.1rem; }
.yellow { color: var(--yellow); }
.cyan { color: var(--cyan); }
.status-dot { display: inline-block; height: .6rem; width: .6rem; margin-right: .55rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px #66ebf21a; vertical-align: .04em; }
.section-heading { margin-bottom: 3rem; }
.section-heading > p:last-child { max-width: 610px; margin-top: 1.25rem; color: var(--muted); font-size: 1.22rem; }
.section-note { color: var(--muted); font-size: .95rem; margin-top: 1.75rem; }

.site-header { width: min(1440px, calc(100% - 4rem)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.6rem; letter-spacing: -.025em; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .4rem 1.65rem; }
.site-header nav a { text-decoration: none; font-size: 1rem; font-weight: 500; padding-block: .5rem; }
.site-header nav a:hover { color: var(--yellow); }
.site-header nav .nav-status { border: 1px solid #76668f; border-radius: 100px; padding: .5rem 1rem; color: var(--yellow); }
.nav-status span { margin-left: .4rem; }

.hero { isolation: isolate; overflow: hidden; overflow: clip; position: relative; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 3rem; max-width: 1440px; margin: auto; padding: 6rem 3rem 8rem; }
.hero-stars { pointer-events: none; position: absolute; z-index: -2; inset: -6rem 0 0; overflow: hidden; background: radial-gradient(ellipse at 80% 50%, #63339c55, transparent 65%), radial-gradient(circle at 60% 20%, #66ebf233 0 1px, transparent 2px), radial-gradient(circle at 80% 75%, #ffffff55 0 1px, transparent 2px); background-size: auto, 101px 139px, 167px 103px; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { font-size: .74rem; letter-spacing: .08em; }
h1 { font-size: clamp(4.2rem, 7.6vw, 7.2rem); letter-spacing: -.035em; line-height: .96; }
h1 span { color: var(--yellow); }
.hero-description { max-width: 470px; margin-top: 1.7rem; font-size: 1.28rem; color: #e5dcec; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.7rem; min-height: 56px; padding: 1rem 1.45rem; border: 2px solid var(--ink); border-radius: 15px; box-shadow: 0 5px 0 var(--deep); text-decoration: none; font-size: 1.3rem; transition: transform .15s, box-shadow .15s; }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--deep); }
.button:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--deep); }
.text-link { font-weight: 500; font-size: .98rem; }
.text-link:hover { color: var(--cyan); }
.hero-note { max-width: 430px; font-size: .83rem; color: var(--muted); margin-top: 1.5rem; }
.hero-shot { position: relative; transform: rotate(-3deg); margin-right: -1rem; }
.hero-shot > img { position: relative; z-index: 1; border: 5px solid #b8a0e0; border-radius: 27px; box-shadow: 12px 15px 0 #0b071c99; width: 100%; }
.hero-shot figcaption { position: relative; z-index: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; padding-inline: .5rem; font-size: .85rem; color: var(--muted); }
.shot-label { background: var(--cyan); color: var(--ink); padding: .25rem .6rem; border-radius: 5px; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.shot-orbit { position: absolute; z-index: -1; width: 115%; height: 138%; border: 2px solid #66ebf245; border-radius: 50%; left: -8%; top: -20%; transform: rotate(20deg); }
.shot-orbit::after { content: ""; width: 17px; height: 17px; border: 5px solid var(--ink); background: var(--yellow); border-radius: 50%; position: absolute; top: 12%; left: 12%; }
.hero-sticker { position: absolute; z-index: 3; right: -.5rem; top: -5rem; width: 132px; height: 132px; border-radius: 50%; display: grid; align-content: center; text-align: center; font-family: var(--display); font-size: 1.16rem; line-height: 1; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); box-shadow: 0 0 0 2px var(--yellow); transform: rotate(13deg); }
.hero-sticker em { font-style: normal; font-size: .83rem; margin-top: .4rem; }
.speed-strip { overflow: hidden; background: var(--cyan); color: var(--ink); border-block: 4px solid var(--deep); padding-block: 1.05rem; transform: skewY(-2deg); }
.speed-strip > div { white-space: nowrap; text-align: center; font-size: 1.8rem; letter-spacing: .035em; }
.speed-strip span { margin-inline: 2rem; font-size: 1.2rem; vertical-align: .1em; }

.game-section { padding-block: 7.5rem; }
.game-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.game-photo { position: relative; }
.game-photo img { border-radius: 30px 90px 30px 30px; border: 3px solid #6e5492; box-shadow: -12px 12px 0 #35205e; width: 100%; }
.photo-tag { display: inline-block; position: absolute; bottom: -1rem; right: -.75rem; transform: rotate(-5deg); padding: .5rem 1rem; background: var(--pink); border: 3px solid var(--ink); color: var(--ink); font-family: var(--display); font-size: 1.5rem; }
.game-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.game-features li { display: flex; gap: 1.25rem; }
.feature-number { color: var(--cyan); font-family: var(--display); font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #66ebf266; border-radius: 50%; }
.game-features h3 { margin: .2rem 0 .7rem; }
.game-features p { color: var(--muted); font-size: 1.08rem; }

.competition-section { padding-block: 6rem; background: var(--deep); border-block: 1px solid #513970; }
.competition-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.ranked-panel { min-width: 0; border-left: 5px solid var(--yellow); padding-left: 2rem; }
.ranked-panel .eyebrow { color: var(--yellow); }
.ranked-panel h3 { font-size: clamp(2rem, 3.5vw, 3.1rem); margin-bottom: 1.5rem; }
.ranked-panel > p:not(.eyebrow), .competition-modes p { color: var(--muted); font-size: 1.08rem; }
.ranked-rules { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.5rem 0 0; }
.ranked-rules li { border: 1px solid #77618f; border-radius: 8px; padding: .4rem .65rem; color: var(--yellow); font-size: .9rem; }
.competition-modes { display: grid; gap: 1.6rem; min-width: 0; }
.competition-modes article { border-top: 1px solid #513970; padding-top: 1.25rem; }
.competition-modes h3 { color: var(--cyan); font-size: 1.55rem; margin-bottom: .7rem; }
.competition-status { color: var(--muted); font-size: .92rem; border-top: 1px solid #513970; padding-top: 1.3rem; margin-top: 3rem; }
.competition-status strong { color: var(--cream); font-weight: 600; }

.rides-section { background: #ece4fa; color: var(--ink); padding-block: 6rem 3.5rem; position: relative; border-block: 4px solid var(--deep); }
.rides-heading, .tracks-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; }
.rides-heading h2 span { color: #6833b1; }
.rides-heading > p:last-child { color: #514064; max-width: 390px; font-size: 1.1rem; }
.fleet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1rem; }
.fleet-ride { min-width: 0; border-right: 1px solid #9d8cae; padding: 0 1.05rem 1rem; position: relative; }
.fleet-ride:first-child { border-left: 1px solid #9d8cae; }
.fleet-number { font-family: var(--display); font-size: 3.6rem; color: #d2c4e5; position: absolute; top: 0; left: .8rem; line-height: 1; }
.fleet-ride img { width: 100%; position: relative; margin-top: 1.3rem; filter: drop-shadow(0 12px 5px #35205e2b); }
.fleet-ride:nth-child(even) img { transform: rotate(-7deg); }
.fleet-ride h3 { font-size: clamp(1.25rem, 1.8vw, 1.65rem); margin-top: .8rem; }
.fleet-ride p { color: #59416e; font-weight: 500; font-size: .95rem; margin-top: .5rem; }
.ride-note { display: block; font-size: .89rem; line-height: 1.4; margin-top: 1rem; max-width: 160px; }
.fleet-caption { font-size: .9rem; color: #59416e; margin-top: 2rem; }

.tracks-section { padding-block: 7rem; }
.tracks-heading > p:last-child { max-width: 350px; }
.worlds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.3rem; }
.world { overflow: hidden; min-width: 0; }
.world img { width: 100%; border: 2px solid #715391; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.world figcaption { padding: .9rem .25rem 0; }
.world-index { display: block; text-transform: uppercase; color: var(--cyan); letter-spacing: .08em; font-size: .7rem; font-weight: 500; margin-bottom: .4rem; }
.world h3 { font-size: 1.4rem; line-height: 1.15; }
.world figcaption > span:last-child { display: block; color: var(--muted); font-size: .88rem; margin-top: .3rem; }

.builder-section { padding-block: 6rem; background: var(--yellow); color: var(--ink); border-block: 4px solid var(--deep); }
.builder-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.builder-copy h2 { font-size: clamp(3.1rem, 5.5vw, 5rem); }
.builder-copy h2 span { color: #6833b1; }
.builder-copy > p:not(.eyebrow) { margin-top: 1.5rem; }
.builder-steps { padding-left: 1.2rem; font-size: 1.05rem; }
.builder-steps li { padding-left: .4rem; margin-block: .8rem; }
.builder-steps li::marker { font-weight: 600; }
.builder-steps strong { font-weight: 600; }
.builder-copy .builder-note { font-size: .87rem; color: #53451e; }
.builder-photo { transform: rotate(2deg); }
.builder-photo img { border: 5px solid var(--ink); border-radius: 23px; box-shadow: 12px 12px 0 #cab63d; width: 100%; }
.builder-photo figcaption { margin-top: 1rem; font-size: .9rem; text-align: center; }

.gallery-section { padding-block: 7rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.gallery-shot { position: relative; display: block; overflow: hidden; border: 2px solid #715391; border-radius: 22px; background: var(--deep); }
.gallery-wide { grid-column: 1 / -1; }
.gallery-shot img { width: 100%; transition: transform .25s; }
.gallery-shot:hover img { transform: scale(1.025); }
.gallery-caption { display: flex; align-items: center; justify-content: space-between; padding: .65rem 1.1rem; color: var(--cream); background: #24183e; font-weight: 500; font-size: 1rem; }
.gallery-caption > span[aria-hidden] { font-size: 1.4rem; color: var(--cyan); }

.status-section { padding-block: 5.5rem; background: var(--deep); border-top: 1px solid #513970; }
.status-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.status-layout > div:first-child > p:not(.eyebrow) { max-width: 480px; color: var(--muted); font-size: 1.05rem; }
.status-layout .status-intro { font-size: 1.3rem !important; color: var(--cream) !important; margin-top: 1.5rem; }
.status-layout .button { margin-top: 1.75rem; }
.status-details { align-self: center; }
details { border-top: 1px solid #6b5187; padding-block: 1.2rem; }
details:last-child { border-bottom: 1px solid #6b5187; }
summary { font-family: var(--display); font-size: 1.5rem; cursor: pointer; padding: .35rem .1rem; line-height: 1.3; }
summary:hover { color: var(--yellow); }
details p { color: var(--muted); font-size: 1rem; padding: 1rem .1rem .3rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-block: 3rem; }
.site-footer .brand { font-size: 1.4rem; }
.site-footer > p { font-size: .95rem; color: var(--muted); }
.footer-links { display: flex; gap: .5rem 1rem; flex-wrap: wrap; max-width: 350px; font-size: .8rem; color: var(--muted); }
.footer-links a { padding-block: .3rem; }
.footer-links a:hover { color: var(--yellow); }

.lightbox { width: min(1280px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.2rem; background: var(--ink); color: var(--cream); border: 2px solid #b8a0e0; border-radius: 20px; overflow: auto; overscroll-behavior: contain; }
.lightbox::backdrop { background: #080411ed; }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.lightbox h2 { font-size: 1.6rem; }
.lightbox button { color: var(--ink); background: var(--cyan); border: 2px solid var(--deep); border-radius: 10px; min-height: 44px; padding: .4rem .9rem; font-weight: 500; }
.lightbox button:hover { background: var(--yellow); }
.lightbox-image { width: 100%; max-height: calc(100dvh - 240px); object-fit: contain; background: var(--deep); border-radius: 8px; }
.lightbox figcaption { margin-top: .75rem; font-size: 1rem; text-align: center; }
.lightbox-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.lightbox-count, .lightbox-hint { color: var(--muted); font-size: .85rem; }
.lightbox-hint { text-align: center; margin-top: .5rem; }

@media (min-width: 1600px) {
  .hero { padding-block: 7rem 9rem; }
}

@media (max-width: 1100px) {
  .site-header { flex-direction: column; gap: .75rem; }
  .site-header nav { justify-content: center; }
  .hero { gap: 2rem; padding: 5.5rem 2.5rem 6rem; }
  .hero-sticker { width: 105px; height: 105px; font-size: .95rem; top: -4rem; right: .75rem; }
  .hero-sticker em { font-size: .68rem; }
  .hero-description { font-size: 1.15rem; }
  .hero-actions { gap: 1.1rem; }
  .game-layout, .builder-layout { gap: 2.5rem; }
  .game-features { gap: 1.5rem; }
  .fleet-ride { padding-inline: .7rem; }
  .fleet-ride h3 { font-size: 1.25rem; }
  .rides-heading, .tracks-heading { gap: 2rem; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .world h3 { font-size: 1.7rem; }
  .status-layout { gap: 3rem; }
}

@media (max-width: 760px) {
  .section-wrap { width: calc(100% - 2.5rem); }
  .site-header { width: calc(100% - 2rem); padding-block: 1rem; }
  .brand { font-size: 1.5rem; }
  .site-header nav { gap: .15rem 1.1rem; }
  .site-header nav a { font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }
  .site-header nav .nav-status { padding: .3rem .75rem; min-height: 38px; }
  .hero { grid-template-columns: 1fr; gap: 4rem; padding: 2.5rem 1.25rem 4rem; }
  .hero-copy { text-align: center; }
  .hero .eyebrow { font-size: .65rem; }
  h1 { font-size: clamp(4.15rem, 14vw, 6.5rem); }
  .hero-description { margin-inline: auto; font-size: 1.13rem; max-width: 450px; }
  .hero-actions { justify-content: center; }
  .hero-note { margin-inline: auto; font-size: .8rem; }
  .hero-shot { margin: .5rem .4rem 0; transform: rotate(-2deg); }
  .hero-shot > img { border-width: 3px; border-radius: 18px; box-shadow: 7px 9px 0 #0b071c99; }
  .hero-sticker { width: 90px; height: 90px; top: -3.4rem; right: -.4rem; font-size: .8rem; border-width: 3px; }
  .hero-sticker em { font-size: .6rem; }
  .hero-shot figcaption { font-size: .7rem; gap: .4rem; padding-inline: 0; }
  .shot-label { font-size: .65rem; }
  .shot-orbit { width: 103%; left: -1%; }
  .speed-strip { padding-block: .8rem; }
  .speed-strip > div { font-size: 1.4rem; }
  .speed-strip span { margin-inline: 1.2rem; }
  .game-section, .tracks-section, .gallery-section { padding-block: 4.5rem; }
  .section-heading { margin-bottom: 2.25rem; }
  .section-heading > p:last-child { font-size: 1.1rem; }
  .game-layout { grid-template-columns: 1fr; gap: 3.5rem; }
  .game-photo { max-width: 520px; margin-inline: .5rem; }
  .game-photo img { border-radius: 20px 65px 20px 20px; }
  .photo-tag { right: -.2rem; font-size: 1.3rem; }
  .game-features { gap: 2rem; }
  .game-features p { font-size: 1.05rem; }
  .competition-section { padding-block: 4rem; }
  .competition-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .ranked-panel { padding-left: 1.25rem; }
  .competition-status { margin-top: 2rem; }
  .rides-section, .builder-section { padding-block: 4rem; }
  .rides-heading, .tracks-heading { display: block; }
  .rides-heading > p:last-child, .tracks-heading > p:last-child { margin-top: 1.5rem; }
  .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0; }
  .fleet-ride { border: 0; padding-inline: .8rem; }
  .fleet-ride:first-child { border-left: 0; }
  .fleet-ride:nth-child(odd) { border-right: 1px solid #9d8cae; }
  .fleet-ride:last-child { grid-column: 1 / -1; border-right: 0; width: 60%; justify-self: center; text-align: center; }
  .fleet-ride:last-child .ride-note { margin-inline: auto; }
  .fleet-ride h3 { font-size: 1.5rem; }
  .fleet-ride img { max-width: 256px; margin-inline: auto; }
  .ride-note { max-width: none; }
  .worlds { gap: 1.75rem 1rem; }
  .world img { border-radius: 12px; }
  .world h3 { font-size: 1.25rem; }
  .world-index { font-size: .61rem; letter-spacing: .04em; }
  .world figcaption > span:last-child { font-size: .78rem; }
  .builder-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .builder-copy h2 { font-size: 3.8rem; }
  .builder-photo { margin-inline: .3rem; transform: rotate(1deg); }
  .builder-photo img { border-width: 3px; border-radius: 15px; box-shadow: 7px 7px 0 #cab63d; }
  .builder-photo figcaption { font-size: .78rem; }
  .gallery { gap: 1.25rem; }
  .gallery-shot { grid-column: 1 / -1; border-radius: 14px; }
  .gallery-caption { font-size: .95rem; }
  .status-section { padding-block: 4rem; }
  .status-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .status-layout .status-intro { font-size: 1.2rem !important; }
  .site-footer { gap: 1.5rem; padding-block: 2.5rem; }
  .site-footer > p { width: 100%; }
  .footer-links { max-width: 100%; }
  .lightbox { padding: .8rem; width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); border-radius: 12px; }
  .lightbox h2 { font-size: 1.15rem; }
  .lightbox figcaption { font-size: .85rem; }
  .lightbox button { font-size: .9rem; padding-inline: .7rem; }
  .lightbox-image { max-height: calc(100dvh - 230px); }
  .lightbox-hint { font-size: .75rem; }
}

@media (max-width: 359px) {
  .section-wrap { width: calc(100% - 2rem); }
  .hero { padding-inline: 1rem; }
  .hero .eyebrow { letter-spacing: .02em; }
  h1 { font-size: 3.75rem; }
  h2 { font-size: 2.55rem; }
  .worlds { grid-template-columns: 1fr; }
  .world-index { font-size: .75rem; }
  .world h3 { font-size: 1.6rem; }
  .fleet-ride h3 { font-size: 1.25rem; }
  .hero-shot figcaption { align-items: flex-start; }
  .hero-sticker { right: -.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .gallery-shot:hover img { transform: none; }
  .button:hover, .button:active { transform: none; }
}

@media (forced-colors: active) {
  .button, .gallery-shot, .world img, .feature-number, .lightbox button { border: 2px solid ButtonText; }
  .status-dot { background: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
