@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("./fonts/baloo-2-latin.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("./fonts/nunito-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --night: #2b3440;
  --panel: #1d2530;
  --cream: #fff4e0;
  --yellow: #ffc42e;
  --red: #e63b2e;
  --mint: #80d2c3;
  --outline: #4a2618;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--night); color: var(--cream); font: 600 16px/1.65 Nunito, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration: underline; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; border-radius: 4px; }
figure, p { margin: 0; }
.wrap { width: min(100% - 56px, 1190px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 100; padding: 9px 15px; background: var(--yellow); color: var(--outline); font-weight: 900; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--night); }
.nav { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 2px solid #ffffff22; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 81px; height: 82px; object-fit: contain; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2.6vw, 31px); margin-left: auto; }
.nav-links a, .nav-play { font-size: 13px; font-weight: 900; white-space: nowrap; }
.nav-play { border: 2px solid var(--cream); border-radius: 999px; padding: 8px 16px; }
.nav-play:hover { background: var(--cream); color: var(--night); text-decoration: none; }

.hero { min-height: 590px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: 18px; padding-block: 36px 51px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { color: var(--mint); font-size: 12px; line-height: 1.3; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
h1, h2, h3 { font-family: "Baloo 2", Nunito, system-ui, sans-serif; font-weight: 800; }
h1 { margin: 25px 0 22px; font-size: clamp(61px, 7.1vw, 100px); line-height: .91; letter-spacing: -.045em; }
h1 span { color: var(--yellow); }
.hero-description { max-width: 405px; font-size: 17px; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 58px; padding: 10px 21px; border: 3px solid var(--outline); border-radius: 14px; box-shadow: 0 5px 0 var(--outline); font-size: 19px; line-height: 1.2; font-weight: 900; text-align: center; }
.button-primary { margin-top: 21px; background: var(--red); color: var(--cream); }
.button:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 7px 0 var(--outline); }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--outline); }
.play-hint { margin-top: 16px; color: #d2e2db; font-size: 12px; }
.reset-note { margin-top: 8px; color: #d2e2db; font-size: 12px; }
.mobile-note { margin-top: 22px; font-size: 13px; font-weight: 900; }
.hero-art { height: 485px; position: relative; isolation: isolate; }
.hero-halo { position: absolute; z-index: -2; top: 25px; left: 0; width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%; background-color: #3e4b5c; background-image: radial-gradient(#fff4e025 2px, transparent 2px); background-size: 17px 17px; box-shadow: 0 0 90px #1fa5a018; }
.hero-logo { position: absolute; top: 4px; right: 1%; width: 205px; height: auto; transform: rotate(5deg); filter: drop-shadow(0 7px 0 #4a26182a); }
.hero-rax { position: absolute; bottom: 31px; left: 7%; width: auto; height: 335px; transform: rotate(-9deg); filter: drop-shadow(0 14px 0 #1d25302a); }
.hero-puff { position: absolute; right: 0; bottom: 37px; width: auto; height: 269px; transform: rotate(9deg); filter: drop-shadow(0 14px 0 #1d25302a); }
.sticker { position: absolute; top: 29px; left: 0; z-index: 1; display: grid; place-content: center; width: 106px; height: 106px; border: 3px solid var(--outline); border-radius: 50%; background: var(--yellow); color: var(--outline); font-size: 14px; line-height: 1.15; font-weight: 900; text-align: center; transform: rotate(-13deg); }
.bubble { position: absolute; border: 3px solid var(--outline); border-radius: 50%; background: var(--cream); }
.bubble-one { bottom: 17px; left: 43%; width: 21px; height: 21px; }
.bubble-two { bottom: 6px; left: 51%; width: 12px; height: 12px; }

.development-strip { border-block: 3px solid var(--outline); background: var(--yellow); color: var(--outline); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 17px; }
.strip-inner strong, .strip-inner a { font-size: 13px; font-weight: 900; }
.strip-inner strong { text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.strip-inner .version { text-transform: none; }
.strip-inner p { font-size: 13px; }
.strip-inner a { text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }

section[id] { scroll-margin-top: 20px; }
.game { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 65px; padding-block: 75px; }
h2 { margin: 14px 0 20px; font-size: clamp(37px, 4.3vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.game-copy > p:not(.eyebrow) { max-width: 440px; color: #e5e9dd; font-size: 15px; line-height: 1.75; }
.steps { display: grid; gap: 16px; padding: 0; margin: 24px 0 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 13px; font-size: 14px; }
.step-number { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border: 2px solid var(--cream); border-radius: 50%; font-weight: 900; }
.steps strong { color: var(--yellow); }
.pickups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 0; margin: 26px 0 0; list-style: none; }
.pickups li { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; column-gap: 10px; font-size: 13px; line-height: 1.35; }
.pickups img { grid-row: span 2; width: 38px; height: auto; }
.pickups strong { color: var(--yellow); }
.game-copy > p.game-facts { margin-top: 20px; color: #d2e2db; font-size: 13px; }
.screen { justify-self: center; width: min(100%, 240px); padding: 8px; border: 3px solid var(--outline); border-radius: 30px; background: #3e4b5c; box-shadow: 8px 8px 0 var(--outline); }
.screen img { width: 100%; height: auto; border-radius: 22px; }
.screen figcaption { margin-top: 9px; color: var(--cream); font-size: 11px; line-height: 1.2; font-weight: 900; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.together-inner, .leagues-inner { grid-template-columns: minmax(0, 1fr) 240px; }

.together { padding-block: 64px; border-top: 1px solid #ffffff18; }
.together-inner { display: grid; gap: 40px; align-items: center; }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.mode-card { padding: 18px 16px 20px; border: 3px solid var(--outline); border-radius: 16px; background: var(--panel); box-shadow: 5px 5px 0 var(--outline); }
.mode-card h3 { margin: 0 0 6px; color: var(--yellow); font-size: 22px; line-height: 1.1; }
.mode-card p { font-size: 13px; line-height: 1.6; }

.leagues { padding-block: 64px; }
.leagues-inner { display: grid; gap: 40px; align-items: center; }
.leagues-copy > p:not(.eyebrow) { max-width: 560px; color: #e5e9dd; font-size: 15px; line-height: 1.75; }
.tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 640px; padding: 0; margin: 28px 0 0; list-style: none; text-align: center; }
.tiers img { width: auto; height: 64px; margin-inline: auto; object-fit: contain; }
.tiers span { display: block; margin-top: 6px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.fair { border-block: 3px solid var(--outline); background: var(--yellow); color: var(--night); }
.fair-inner { display: flex; align-items: center; gap: 36px; padding-block: 44px; }
.fair-inner img { flex: 0 0 auto; width: 110px; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 6px 0 #4a26182a); }
.fair h2 { margin: 0 0 10px; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.fair p { max-width: 640px; font-size: 16px; line-height: 1.6; font-weight: 700; }
.fair .fair-small { margin-top: 10px; font-size: 13px; font-weight: 900; }

.panel { background: var(--panel); }
.cast { padding-block: 56px 47px; border-top: 1px solid #ffffff18; text-align: center; }
.cast h2 { margin-bottom: 23px; }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cast-grid article { min-width: 0; }
.cast-grid img { width: auto; height: 190px; margin-inline: auto; object-fit: contain; filter: drop-shadow(0 8px 0 #4a261838); }
.cast-grid h3 { margin: 15px 0 3px; font-size: 26px; line-height: 1.1; }
.cast-grid p { font-size: 13px; }
.cast-grid .tag { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--night); color: var(--mint); font-size: 11px; line-height: 1.3; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.cast-grid .tag-unlock { color: var(--yellow); }
.mastery { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 620px; margin: 34px auto 0; font-size: 14px; text-align: left; }
.mastery img { flex: 0 0 auto; width: auto; height: 30px; }
.brands-title { margin: 34px 0 14px; font-size: 24px; line-height: 1.2; }
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; padding: 0; margin: 0; list-style: none; }
.brands li { display: grid; justify-items: center; gap: 6px; width: 92px; font-size: 12px; font-weight: 900; line-height: 1.25; }
.brands img { width: 56px; height: 56px; }

.arenas { padding-block: 65px; }
.arena-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin-top: 27px; }
.arena-card { position: relative; height: 290px; overflow: hidden; border: 3px solid var(--outline); border-radius: 19px; background: var(--panel); }
.arena-card > img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.arena-overlay { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; padding: 56px 22px 22px; background: linear-gradient(transparent, #1d2530f2 48px); }
.arena-label { color: var(--yellow); font-size: 11px; line-height: 1.2; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.arena-overlay h3 { margin: 4px 0 0; font-size: 27px; line-height: 1.1; }
.arena-overlay > p:not(.arena-label) { margin-top: 5px; font-size: 13px; }
.arena-overlay > p.arena-maps { color: var(--yellow); font-size: 12px; font-weight: 900; }
.arena-hazards { margin-top: 18px; color: #d2e2db; font-size: 14px; text-align: center; }

.development { padding-block: 48px 52px; }
.development-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 55px; }
.development-grid h3 { margin: 0 0 5px; color: var(--mint); font-family: Nunito, system-ui, sans-serif; font-size: 12px; line-height: 1.35; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.development-grid p { max-width: 520px; font-size: 14px; line-height: 1.8; }

.community { padding: 59px 0 67px; border-top: 3px solid var(--outline); background: #126f6c; text-align: center; }
.community h2 { margin-top: 0; }
.community p { font-size: 15px; line-height: 1.7; }
.community-actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.community .button { margin-top: 12px; }
.discord-link { margin-top: 12px; padding: 9px 0; border-bottom: 2px solid var(--cream); font-size: 14px; font-weight: 900; }
.discord-link:hover { text-decoration: none; border-color: var(--yellow); }
.site-footer { padding-block: 23px; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { text-decoration: underline; text-underline-offset: .2em; }

.legal { max-width: 760px; padding-block: 48px 64px; overflow-wrap: break-word; }
.legal h1 { margin: 0 0 6px; font-size: clamp(42px, 6vw, 58px); line-height: 1.05; }
.legal-sub { color: var(--mint); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.legal section { margin-top: 36px; padding-top: 28px; border-top: 2px solid #ffffff22; }
.legal h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 34px); line-height: 1.15; }
.legal h3 { margin: 22px 0 4px; color: var(--yellow); font-size: 18px; line-height: 1.3; }
.legal p { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.legal a { text-decoration: underline; text-underline-offset: .2em; }
.legal ul { margin: 8px 0 0; padding-left: 22px; }
.legal li { font-size: 15px; line-height: 1.7; }

@media (max-width: 1250px) {
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); }
  .hero-art { height: 395px; }
  .hero-halo { top: 40px; }
  .hero-rax { height: 275px; }
  .hero-puff { height: 220px; }
  .hero-logo { width: 160px; }
  .sticker { width: 88px; height: 88px; font-size: 12px; }
  .game { gap: 30px; }
  .strip-inner { flex-wrap: wrap; gap: 6px 18px; }
}

@media (max-width: 800px) {
  .wrap { width: min(100% - 40px, 680px); }
  .nav { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 0 14px; padding-block: 5px 10px; }
  .brand img { width: 65px; height: 66px; }
  .nav-play { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; gap: 9px; margin: 0; padding-top: 2px; }
  .nav-links a { font-size: 12px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-block: 40px 18px; }
  h1 { margin-block: 20px 18px; font-size: clamp(61px, 12vw, 80px); }
  .hero-description { font-size: 16px; }
  .hero-art { width: min(100%, 420px); height: 345px; margin-inline: auto; }
  .hero-halo { top: 5px; left: 8%; width: 315px; max-width: 82%; }
  .hero-rax { bottom: 11px; left: 12%; height: 253px; }
  .hero-puff { right: 6%; bottom: 18px; height: 214px; }
  .hero-logo { top: 0; right: 7%; width: 139px; }
  .sticker { top: 3px; left: 5%; width: 80px; height: 80px; font-size: 11px; }
  .strip-inner { padding-block: 13px; }
  .strip-inner strong { width: 100%; white-space: normal; }
  .strip-inner p, .strip-inner a { font-size: 12px; }
  .game { grid-template-columns: 1fr; gap: 27px; padding-block: 45px; }
  h2 { font-size: 38px; }
  .together { padding-block: 45px; }
  .together-inner, .leagues-inner { grid-template-columns: 1fr; }
  .leagues { padding-block: 45px; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .cast { padding-block: 48px 45px; }
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .cast-grid img { height: 165px; }
  .arenas { padding-block: 48px; }
  .arena-grid, .development-grid { grid-template-columns: 1fr; gap: 20px; }
  .arena-card { height: 340px; }
  .development { padding-block: 38px 43px; }
  .community { padding-block: 44px 52px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 40px, 520px); }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 32px; }
  h1 { font-size: 60px; }
  .button { width: 100%; padding-inline: 12px; font-size: 19px; }
  .hero-art { height: 300px; }
  .hero-halo { width: 270px; }
  .hero-rax { height: 220px; left: 10%; }
  .hero-puff { height: 185px; right: 2%; }
  .hero-logo { width: 119px; right: 4%; }
  .sticker { width: 78px; height: 78px; font-size: 11px; }
  .play-hint { font-size: 11px; }
  .cast-grid p { font-size: 12px; }
  .pickups { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav { padding-block: 8px; }
  .fair-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 36px; }
  .fair-inner img { width: 80px; }
}

@media (max-width: 520px) {
  .mode-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover, .button:active { transform: none; }
}
