/* EDIT colours and fonts here. */
:root {
  --ink: #14243c; --paper: #fefefe; --tint: #e8effb; --accent: #025ae5; --accent-soft: #3991fe;
  --serif: "New York", "Iowan Old Style", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: 18px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); letter-spacing: -1.5px; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 18px; }
h3 { font-weight: 500; font-size: 1.4rem; line-height: 1.3; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
section { padding-block: 88px; }

/* header: floating frosted bar */
#site-header { position: fixed; inset: 20px 0 auto; z-index: 20; transition: transform .3s; }
#site-header.hidden { transform: translateY(-140%); }
.bar { width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 20px; border-radius: 14px; background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08); font-size: 16px; position: relative; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; }
.mark { width: 30px; height: 30px; object-fit: contain; }
nav { display: flex; gap: 28px; margin-inline: auto; }
.drop { position: relative; }
.menu { position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 8px; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14); display: none; }
.menu a { display: block; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.menu a:hover { background: var(--tint); }
.drop.show .menu { display: block; }
.actions { display: flex; gap: 8px; align-items: center; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #0002; border-radius: 8px; }
.burger { display: none; }

.btn { display: inline-block; padding: 9px 18px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 16px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.ghost { border-color: #fff8; color: #fff; }
.btn.outline { border-color: var(--accent); color: var(--accent); }
.btn:hover { filter: brightness(.93); }
.btn.primary:hover { background: #0147b8; filter: none; }

/* hero: swap the gradient for url("photo.jpg") center/cover */
.hero { min-height: 100svh; display: flex; align-items: flex-end; color: #fff; padding-block: 160px 11vh;
  background: linear-gradient(to top, #0c1220e6, #025ae555), url("assets/start-bg.jpg") center/cover; }
.hero.small { min-height: 56vh; padding-bottom: 64px; }
.hero p { max-width: 520px; margin: 22px 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

.narrow { max-width: 760px; }
.narrow h3 { margin: 44px 0 8px; }
.narrow .btn { margin-top: 18px; }

.tint { background: var(--tint); overflow: hidden; }
.short { max-width: 620px; }
.marquee { margin-top: 48px; overflow: hidden; }
.track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.track span { width: 210px; text-align: center; font-weight: 700; font-size: 22px; color: #0007; }
@keyframes slide { to { transform: translateX(-50%); } }

.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(280px, 72vw); gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 0 max(24px, (100% - 1240px) / 2) 20px; scroll-padding-inline: max(24px, (100% - 1240px) / 2); }
.post { scroll-snap-align: start; }
.meta { display: flex; justify-content: space-between; font-size: 14px; margin: 14px 0 8px; }
.post h3 { font-size: 1.15rem; }

/* image placeholders: replace each .ph div with an <img> */
.ph { aspect-ratio: 16 / 9; border-radius: 12px; display: grid; place-items: center; color: #fffc; font-size: 14px; }
.ph.square { aspect-ratio: 1; }
.ph1 { background: linear-gradient(135deg, #5d7a68, #2c3f35); }
.ph2 { background: linear-gradient(135deg, #c9a6b4, #5b6c8f); }
.ph3 { background: linear-gradient(135deg, #7fa9cf, #2f5578); }
.ph4 { background: linear-gradient(135deg, #8a8d90, #3a3d41); }
img.ph { width: 100%; object-fit: cover; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cards h3 { margin: 22px 0 10px; }
.cards p { font-size: 16px; }
.more { font-weight: 700; white-space: nowrap; }

footer { background: #0c1220; color: #fff; padding-block: 64px 32px; font-size: 15px; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: start; }
footer h4 { margin-bottom: 10px; }
.cols div a { display: block; padding-block: 3px; opacity: .85; }
footer a:hover { text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 56px; padding-top: 20px; border-top: 1px solid #fff3; opacity: .7; }
.legal span a { margin-left: 16px; }

@media (max-width: 880px) {
  .burger { display: block; margin-left: auto; font-size: 22px; }
  nav, .actions { display: none; }
  .open .bar { flex-wrap: wrap; background: #fff; }
  .open nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
  .open .actions { display: flex; width: 100%; }
  .menu { position: static; box-shadow: none; padding: 4px 0 0 12px; }
  .cards { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr 1fr; }
  section { padding-block: 64px; }
  .hero { padding-block: 120px 64px; }
}
@media (prefers-reduced-motion: reduce) { .track { animation: none; } html { scroll-behavior: auto; } }

.post img { display: block; width: 100%; height: auto; border-radius: 12px; }
.price { color: var(--accent); font-weight: 700; margin-top: 4px; }
.num { aspect-ratio: 16 / 9; border-radius: 12px; display: grid; place-items: center; color: #fff;
  font: 4rem var(--serif); background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }

/* floating windsock with orbit rings (from the old site) */
.hero { position: relative; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-orbit { position: absolute; right: max(24px, (100% - 1240px) / 2); top: 22%; width: min(37vw, 430px); aspect-ratio: 1;
  display: grid; place-items: center; animation: orbit-float 12s ease-in-out .5s infinite alternate; }
.hero-orbit img { position: relative; width: 62%; height: auto; filter: drop-shadow(0 18px 34px rgba(2, 40, 120, .45)); }
.orbit { position: absolute; inset: 0; border: 1px solid #fff5; border-radius: 50%; }
.orbit-one { transform: rotate(26deg) scaleX(.66); }
.orbit-two { transform: rotate(-38deg) scaleY(.7); }
.orbit-three { inset: 12%; border: 1px dashed var(--accent-soft); transform: rotate(17deg) scaleX(.72); }
.spark { position: absolute; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; background: #fff;
  animation: spark 3.8s ease-in-out infinite; }
.spark-one { top: 11%; left: 22%; }
.spark-two { right: 8%; bottom: 28%; width: 6px; height: 6px; animation-delay: 1.2s; }
.spark-three { bottom: 10%; left: 34%; width: 5px; height: 5px; animation-delay: 2.4s; }
@keyframes orbit-float { from { transform: translateY(4px); } to { transform: translateY(-10px); } }
@keyframes spark { 0%, 100% { opacity: .58; transform: scale(.78); } 45% { opacity: 1; transform: scale(1.4); } 70% { opacity: .76; transform: scale(1); } }
@media (max-width: 880px) {
  .hero-orbit { width: min(72vw, 340px); right: 0; left: 0; margin-inline: auto; top: 110px; }
}
@media (max-width: 880px) and (max-height: 700px) { .hero-orbit { width: 220px; top: 90px; } .hero { padding-top: 330px; } }
@media (prefers-reduced-motion: reduce) { .hero-orbit, .spark { animation: none; } }

/* inner pages */
.gap { margin-bottom: 32px; max-width: 640px; }
.tile { background: var(--paper); border-radius: 12px; padding: 26px; }
.tile h3 { margin-top: 8px; }
details { border-bottom: 1px solid #14243c22; padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; }
form label { display: block; margin: 14px 0; font-weight: 600; font-size: 15px; }
form input { display: block; width: 100%; margin-top: 6px; padding: 11px; border: 1px solid #14243c33; border-radius: 8px; font: inherit; }
button.btn:disabled { opacity: .5; cursor: default; margin-top: 12px; }
.scroll { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #14243c22; }

/* legal */
.legal-text h2 { font-size: 1.6rem; margin: 44px 0 10px; }
.legal-text p, .legal-text ul { margin-bottom: 12px; }
.legal-text ul { padding-left: 22px; }
.legal-text a { color: var(--accent); text-decoration: underline; }

/* status */
.panel { background: var(--tint); border-radius: 12px; padding: 26px; margin-bottom: 20px; }
.panel h3 { margin: 0; }
.alert { border: 1px solid #d9342b66; background: #d9342b14; }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #999; }
.pulse.is-online { background: #1f9d55; }
.pulse.is-offline { background: #d9342b; }
.stats { display: flex; gap: 48px; margin-top: 16px; }
.stats dt, .muted, .axis { font-size: 14px; opacity: .7; }
.chart { width: 100%; height: 144px; margin-top: 16px; }
.axis { display: flex; justify-content: space-between; }
.stroke-border { stroke: #14243c22; } .stroke-primary { stroke: var(--accent); }
.fill-primary { fill: var(--accent); } .fill-destructive { fill: #d9342b; } .fill-destructive\/25 { fill: #d9342b40; }
.after { margin-top: 16px; }

/* map */
#play-map { height: min(70vh, 620px); border-radius: 12px; background: var(--tint); display: grid; place-items: center; position: relative; z-index: 0; }
#play-map.leaflet-container { display: block; }
#play-map .leaflet-tile-pane > .leaflet-layer:first-child { filter: grayscale(1); }
.spaced { margin-top: 56px; }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.region { text-align: left; padding: 16px; background: var(--tint); border-radius: 10px; }
.region span { display: block; font-size: 15px; color: var(--accent); }

/* tiers (from the old site) */
.tiers-crossout { position: relative; overflow: clip; }
.tiers-stage { margin-top: 24px; padding: 28px; overflow: hidden; border: 1px solid #14243c22; border-radius: 27px; }
.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 22px 60px; overflow: hidden; border: 1px solid #14243c24; border-radius: 19px; }
.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(--tint); } .tier-card-trainer { background: #dcebfc; } .tier-card-champion { background: var(--accent-soft); }
.tier-number { font-size: 12px; font-weight: 700; letter-spacing: .18em; opacity: .62; }
.tier-card h3 { margin-top: 47px; font: clamp(1.8rem, 3vw, 2.8rem) var(--serif); }
.tier-card p { max-width: 220px; margin-top: 13px; font-size: 14px; }
.tier-card strong { position: absolute; right: 22px; bottom: 22px; font: italic 1rem var(--serif); }
.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; padding: 8px 19px; color: #fff; background: #d9342b; font: 900 clamp(1.05rem, 2.4vw, 2rem)/1.1 ui-monospace, Menlo, monospace; 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; 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); }
@media (max-width: 880px) { .tier-grid { grid-template-columns: 1fr; } .tiers-stage { padding: 16px; } }

/* faq */
#faq { scroll-margin-top: 20px; }
details { border-bottom: 1px solid #14243c22; padding: 18px 0; }
details p { margin-top: 10px; }
.faq p a:not(.btn) { color: var(--accent); text-decoration: underline; }
.faq a.btn { margin-top: 18px; }

/* trainer name animation */
.name-cycle { display: inline-block; white-space: nowrap; min-height: 1em; color: var(--accent); }
.name-letter { display: inline-block; opacity: 0; transform: translateY(.14em);
  transition: width 1s cubic-bezier(.16, 1, .3, 1), opacity 1.1s ease, transform 1s cubic-bezier(.16, 1, .3, 1); }
.name-letter.is-in { opacity: 1; transform: none; }

/* self-scrolling screenshots; pauses on hover */
.shots { margin-top: 24px; }
.shots img { width: min(280px, 60vw); height: auto; margin-right: 24px; border-radius: 12px; }
.shots .track { animation-duration: 60s; align-items: flex-start; }
.shots:hover .track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .shots { overflow-x: auto; } }
