/* Hold the Line website. Styled like the game's own menus: sky-blue
   rays, Lilita One headings with a dark outline, navy panels edged in
   gold, and chunky buttons with a pressed-down lip. */
:root {
  --sky-1: #5aa2ff;
  --sky-2: #2f6fe0;
  --sky-3: #1c3f9a;
  --navy: #121d3d;
  --navy-2: #1a2a57;
  --panel: #1d2c5e;
  --panel-2: #24377a;
  --gold: #ffd23f;
  --gold-2: #ffb81c;
  --gold-dark: #a8650a;
  --ink: #2a1a08;
  --text: #f4f7ff;
  --muted: #b8c6ef;
  --grass-1: #7fd04b;
  --grass-2: #3f9a2c;
  --night-1: #3a1d6b;
  --night-2: #170c33;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 700 17px/1.55 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Outlined game lettering. */
.gtitle, h2.g {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow:
    0 3px 0 #0b1430, 2px 2px 0 #0b1430, -2px 2px 0 #0b1430, 2px -1px 0 #0b1430, -2px -1px 0 #0b1430,
    0 8px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 29, 61, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(255, 210, 63, 0.25);
}
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 #0b1430; }
.top nav { margin-left: auto; display: flex; gap: 6px; }
.top nav a {
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 7px 12px; border-radius: 10px;
}
.top nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 24px; color: var(--ink); text-decoration: none;
  padding: 14px 30px 12px; border-radius: 18px;
  background: linear-gradient(#ffe46b, var(--gold-2));
  box-shadow: 0 6px 0 var(--gold-dark), 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-dark), inset 0 2px 0 rgba(255, 255, 255, 0.6); }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px;
  background: #050811; color: #fff; text-decoration: none; border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 5px 0 #000;
}
.store small { display: block; font-weight: 700; font-size: 11px; opacity: 0.8; line-height: 1.1; letter-spacing: 0.3px; }
.store b { display: block; font-size: 19px; line-height: 1.1; font-weight: 800; }
.store.soon { opacity: 0.6; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 30%, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 100%);
  padding: 46px 0 0;
}
.rays {
  position: absolute; inset: -60%; z-index: -1; opacity: 0.22;
  background: repeating-conic-gradient(from 0deg at 50% 50%, #fff 0deg 7deg, transparent 7deg 20deg);
  animation: spin 90s linear infinite;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rays, .float { animation: none !important; } }

.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center; }
.kicker {
  display: inline-block; background: rgba(10, 20, 50, 0.45); border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase;
}
.hero h1 {
  margin: 14px 0 10px; line-height: 0.95; font-size: clamp(54px, 9vw, 104px);
  font-family: var(--display); font-weight: 400; color: var(--gold);
  text-shadow:
    0 5px 0 var(--gold-dark), 3px 3px 0 #5a2d00, -3px 3px 0 #5a2d00, 3px -2px 0 #5a2d00, -3px -2px 0 #5a2d00,
    0 7px 0 #5a2d00, 0 16px 30px rgba(0, 0, 0, 0.4);
}
.hero .lead { font-size: 20px; max-width: 30em; margin: 0 0 26px; color: #fff; text-shadow: 0 2px 0 rgba(10, 20, 50, 0.5); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  background: rgba(10, 20, 50, 0.4); border: 2px solid rgba(255, 255, 255, 0.22);
  padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800;
}
.chip b { color: var(--gold); }

.stage { position: relative; height: 520px; }
.stage .castle { position: absolute; left: 50%; bottom: 40px; width: 360px; transform: translateX(-50%); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35)); }
.stage .hero-c { position: absolute; left: 0; bottom: 6px; width: 240px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.35)); }
.stage .boss-c { position: absolute; right: -10px; bottom: 30px; width: 230px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.35)); }
.stage .roc { position: absolute; right: 30px; top: 0; width: 170px; }
.float { animation: bob 4s ease-in-out infinite; }
.float.b { animation-delay: -1.3s; }
.float.c { animation-delay: -2.6s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.stage .castle.float { animation-name: bobc; }
@keyframes bobc { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(-50%) translateY(-8px); } }

.grassline {
  height: 70px; margin-top: -10px;
  background: linear-gradient(var(--grass-1), var(--grass-2));
  border-top: 4px solid #a6e86b;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.12);
  border-radius: 50% 50% 0 0 / 30px 30px 0 0;
}

/* ---------- sections ---------- */
section.band { padding: 72px 0; position: relative; }
section.band.grass { background: linear-gradient(var(--grass-2), #2e7a22); padding-top: 20px; }
section.band.night { background: radial-gradient(ellipse at 50% 0%, var(--night-1), var(--night-2) 75%); }
section.band.deep { background: linear-gradient(var(--navy-2), var(--navy)); }
.head { text-align: center; margin: 0 auto 36px; max-width: 760px; }
h2.g { font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; line-height: 1.05; }
.head p { margin: 0; color: var(--muted); font-size: 19px; }
.grass .head p { color: #eaffdd; }

/* Navy-and-gold panels, like the quest cards in the game. */
.panel {
  background: linear-gradient(var(--panel-2), var(--panel));
  border: 3px solid var(--gold-2);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--gold-dark), 0 14px 28px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.12);
  padding: 22px;
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { text-align: center; padding-top: 10px; }
.feat .art { height: 190px; display: grid; place-items: end center; margin: -50px 0 10px; }
.feat .art img { max-height: 200px; width: auto; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.4)); }
.feat h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0 0 6px; color: var(--gold); text-shadow: 0 3px 0 #0b1430; }
.feat p { margin: 0; color: var(--muted); }
.grid3.lift { margin-top: 70px; }

/* Screenshot strip in phone frames. */
.phones {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 20px 26px; margin: 0 -20px;
  scrollbar-width: thin;
}
.phone {
  flex: 0 0 auto; width: 250px; scroll-snap-align: center; margin: 0;
  border-radius: 34px; padding: 9px; background: #070b18;
  box-shadow: 0 0 0 3px #2c3a66, 0 20px 40px rgba(0, 0, 0, 0.5);
}
.phone img { border-radius: 26px; width: 100%; height: 470px; object-fit: cover; object-position: top; }
.phone figcaption { text-align: center; font-family: var(--display); font-size: 20px; padding: 10px 0 2px; color: #fff; }
@media (min-width: 1160px) { .phones { justify-content: center; overflow: visible; gap: 18px; } .phone { width: 196px; } .phone img { height: 370px; } }

/* Boss lineup. */
.bosses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.boss { text-align: center; }
.boss img { width: 100%; max-height: 230px; object-fit: contain; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.5)); }
.boss span {
  display: inline-block; margin-top: 10px; font-family: var(--display); font-size: 19px;
  background: rgba(0, 0, 0, 0.35); border: 2px solid rgba(255, 210, 63, 0.5); padding: 3px 12px; border-radius: 999px;
}

/* Big numbers row. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat { text-align: center; padding: 16px 10px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; color: var(--gold); line-height: 1; text-shadow: 0 4px 0 #0b1430; }
.stat span { color: var(--muted); font-size: 15px; }

/* Fair play. */
.fair { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.fair img { width: 220px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.45)); }
.fair ul { list-style: none; padding: 0; margin: 14px 0 0; }
.fair li { padding-left: 34px; position: relative; margin: 10px 0; color: var(--muted); }
.fair li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: #3fbf4a; color: #fff; display: grid; place-items: center; font-size: 14px; box-shadow: 0 3px 0 #23762b;
}
.fair p { margin: 0; font-size: 19px; }

.final { text-align: center; }
.final .cta { justify-content: center; margin-top: 22px; }

/* ---------- plain pages (support, terms, privacy) ---------- */
.pagehead { background: radial-gradient(ellipse at 50% 0%, var(--sky-1), var(--sky-3)); padding: 40px 0 34px; text-align: center; }
.pagehead h1 { margin: 0; font-size: clamp(38px, 6vw, 56px); }
.pagehead p { margin: 6px 0 0; color: #e7efff; }
main.doc { max-width: 760px; margin: 0 auto; padding: 34px 20px 70px; }
main.doc .panel { margin-bottom: 22px; }
main.doc h2 { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--gold); margin: 26px 0 8px; text-shadow: 0 2px 0 #0b1430; }
main.doc .panel > h2:first-child { margin-top: 0; }
main.doc p, main.doc li { color: #dfe6fb; font-weight: 600; }
main.doc strong { color: #fff; }
details {
  background: linear-gradient(var(--panel-2), var(--panel)); border: 2px solid rgba(255, 210, 63, 0.55);
  border-radius: 16px; padding: 14px 18px; margin: 12px 0; box-shadow: 0 4px 0 rgba(168, 101, 10, 0.7);
}
summary { font-weight: 800; cursor: pointer; color: #fff; font-size: 18px; }
details p { margin: 10px 0 0; }

/* ---------- footer ---------- */
footer { background: #0b1229; color: var(--muted); padding: 30px 0; font-size: 15px; border-top: 2px solid rgba(255, 210, 63, 0.2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
footer a { color: var(--text); text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--gold); }
footer .copy { margin-left: auto; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta, .chips { justify-content: center; }
  .stage { height: 360px; max-width: 420px; width: 100%; margin: 0 auto; }
  .stage .castle { width: 250px; bottom: 30px; }
  .stage .hero-c { width: 160px; }
  .stage .boss-c { width: 150px; right: 0; }
  .stage .roc { width: 110px; right: 20px; }
  .grid3 { grid-template-columns: 1fr; gap: 64px; }
  .grid3.lift { margin-top: 60px; }
  .bosses { grid-template-columns: repeat(3, 1fr); }
  .bosses .boss:nth-child(n+4) { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .fair { grid-template-columns: 1fr; text-align: center; }
  .fair img { width: 160px; margin: 0 auto; }
  .fair ul { text-align: left; display: inline-block; }
  .top nav a.hide-sm { display: none; }
  footer .copy { margin-left: 0; }
}
