/* SlingFire marketing site. Colours and fonts match the game (src/styles.css, public/icon.svg). */
@font-face {
  font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/lilita-one-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 {
  --navy: #151937;
  --navy-2: #1d2350;
  --navy-3: #283070;
  --ink: #eef1ff;
  --muted: #aab3e6;
  --orange: #ff8a2b;
  --pink: #ff2e74;
  --yellow: #ffd23f;
  --blue: #2ec4ff;
  --green: #6fdc5a;
  --line: rgba(170, 179, 230, .22);
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--ink);
  font: 600 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #3a2400; padding: 8px 14px; border-radius: 10px; font-weight: 800; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(21, 25, 55, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: italic 400 1.6rem/1 var(--display); letter-spacing: .02em; }
.brand img { border-radius: 24%; }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: .98rem; }
.top nav a:hover { color: var(--yellow); }

/* Buttons: chunky, like the game's */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 1.35rem/1 var(--display); letter-spacing: .02em; text-decoration: none;
  padding: 18px 28px; border-radius: 20px; color: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-play { background: linear-gradient(100deg, var(--orange), var(--pink)); box-shadow: 0 6px 0 #a3134a, 0 14px 30px rgba(255, 46, 116, .35); text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #a3134a, 0 18px 34px rgba(255, 46, 116, .42); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 #a3134a; }
.btn-sm { font-size: 1.05rem; padding: 11px 18px; border-radius: 14px; box-shadow: 0 4px 0 #a3134a; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 0;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(124, 77, 255, .45), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgba(255, 138, 43, .28), transparent 70%),
    linear-gradient(180deg, #232a66, var(--navy));
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.kicker { font: 400 1rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
h1 { font-size: clamp(2.9rem, 8vw, 5rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .22); }
h1 span { display: block; background: linear-gradient(100deg, var(--yellow), var(--orange) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-bottom: .08em; }
.lead { font-size: 1.2rem; color: #d7dcfb; margin-top: 18px; max-width: 34em; }
.cta { margin-top: 28px; }
.cta-note { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store { display: inline-flex; flex-direction: column; padding: 9px 18px 10px; border: 2px dashed var(--line); border-radius: 14px; font: 400 1.15rem/1.15 var(--display); color: #d7dcfb; }
.store small { font: 700 .72rem/1.3 var(--body); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.hero-art img { border-radius: 26px; border: 6px solid #0d1029; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 2px rgba(255, 255, 255, .08); transform: rotate(1.5deg); }
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; padding-bottom: 40px; }
.promise li { text-align: center; padding: 14px 10px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font: 400 1.15rem/1.2 var(--display); }
.promise li::before { content: ''; display: inline-block; width: .7em; height: .7em; margin-right: .5em; border-radius: 50%; background: var(--green); }

/* Sections */
.band { padding: 80px 0; }
.band-alt { background: var(--navy-2); }
.band > .wrap > h2 { text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 42em; margin: 14px auto 0; }

.feat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 64px; }
.feat.flip .feat-img { order: 2; }
.feat-img img { border-radius: var(--r); border: 5px solid #0d1029; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); width: 100%; }
.feat-txt p { margin-top: 12px; color: #d7dcfb; }
.feat-txt h3 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-top: 12px; }
.tag { display: inline-block; font: 400 .95rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 10px; color: #151937; }
.tag-orange { background: var(--orange); }
.tag-green { background: var(--green); }
.tag-blue { background: var(--blue); }
.tag-pink { background: #ff6b9c; }
.ticks { margin-top: 16px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%233a2400' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Arenas */
.arenas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.arenas li { background: var(--navy-3); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.arenas img { width: 100%; }
.arenas span { display: block; padding: 10px 12px 12px; font: 400 1.1rem/1.2 var(--display); text-align: center; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.modes li { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.modes .num { display: inline-block; font: 400 1.05rem/1 var(--display); color: #3a2400; background: var(--yellow); border-radius: 10px; padding: 7px 12px; margin-bottom: 14px; }
.modes p { margin-top: 8px; color: #d7dcfb; }

/* Parents: a calmer, lighter panel so grown-ups can read comfortably */
.parents { background: #f6f3ea; color: #1d2145; }
.parents .kicker { text-align: center; color: #c2185b; }
.parents .sub { color: #4a5080; }
.safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.safe li { background: #fff; border-radius: 18px; padding: 22px; border: 1px solid #e3ddcb; box-shadow: 0 4px 0 #e3ddcb; }
.safe h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.safe h3::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1d7a48 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.safe p { margin-top: 8px; color: #3d4270; font-size: 1rem; }
.honest { margin-top: 26px; background: #fff7dc; border: 1px solid #ecd78a; border-radius: 18px; padding: 24px 26px; }
.honest h3 { font-size: 1.3rem; }
.honest p { margin-top: 10px; color: #3d3a22; }
.honest a { color: #a3134a; font-weight: 800; }

/* Final call */
.final { text-align: center; padding: 84px 0 92px; background: radial-gradient(700px 360px at 50% 100%, rgba(255, 46, 116, .3), transparent 70%), var(--navy); }
.final img { margin: 0 auto 18px; border-radius: 24%; box-shadow: 0 10px 30px rgba(255, 46, 116, .4); }
.final p { color: var(--muted); margin: 14px auto 28px; max-width: 32em; }

/* Footer */
.foot { background: #0d1029; border-top: 1px solid var(--line); padding: 34px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot .brand { font-size: 1.3rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot nav a { color: var(--ink); font-weight: 700; font-size: .98rem; }
.copy { flex-basis: 100%; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding-top: 36px; }
  .hero-in, .feat { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: 2; }
  .hero-art img { transform: none; }
  .feat { margin-top: 52px; }
  .feat.flip .feat-img { order: 0; }
  .promise { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .band { padding: 60px 0; }
  .arenas { grid-template-columns: repeat(2, 1fr); }
  .arenas li:last-child { grid-column: span 2; }
  .arenas li:last-child img { aspect-ratio: 2.4; object-fit: cover; }
  .modes, .safe { grid-template-columns: 1fr; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .btn { font-size: 1.15rem; padding: 16px 20px; width: 100%; }
  .btn-sm { width: auto; font-size: 1rem; padding: 10px 14px; }
  .promise li { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Shown by move.js only to players whose saved game is still stored at this address */
.moved { display: flex; align-items: center; justify-content: center; gap: 14px 20px; flex-wrap: wrap; padding: 12px 20px; background: var(--yellow); color: #3a2400; text-align: center; }
.moved[hidden] { display: none; }
.moved p { font-weight: 700; }
.js-play[aria-busy="true"] { opacity: .75; pointer-events: none; }
