/* GroveRaiders website. The look follows the game's own menus: deep purple panels with ink
   outlines and hard drop shadows, gold, cyan and coral accents, Lilita One and Nunito (bundled). */
@font-face { font-family: "Lilita One"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/lilita-one-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url(assets/fonts/nunito-latin-900-normal.woff2) format("woff2"); }

:root {
  --ink: #1a1838;
  --night: #201d55;
  --panel: #252261;
  --panel-2: #2c2972;
  --gold: #ffbe2e;
  --gold-d: #d98a0b;
  --cyan: #3fe0ff;
  --cyan-d: #13a6cf;
  --coral: #ff4766;
  --mint: #6af59a;
  --lilac: #b59cff;
  --gem: #ff6ad5;
  --text: #f6f4ff;
  --muted: #c4c0ee;
  --display: "Lilita One", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #9cf0ff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 12px; font-weight: 900; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 var(--gutter); }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 21px; letter-spacing: .01em; }
.brand img { width: 40px; height: 40px; border-radius: 12px; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.brand:hover { color: var(--text); }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 900; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.top nav a:hover { background: rgba(26, 24, 56, .35); }
.page .top { position: static; background: var(--ink); }

/* ---------- hero: the game's dusk sky ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(#1d1a52 0%, #3f3496 34%, #b65fa6 70%, #ff9f8c 90%, #ffd29a 100%);
  padding: 92px 0 0;
}
.hero::after { /* the ground the next section stands on */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; z-index: 1;
  background: var(--night); border-top: 3px solid var(--ink);
  clip-path: polygon(0 55%, 8% 40%, 18% 52%, 30% 30%, 44% 48%, 57% 26%, 70% 46%, 82% 32%, 92% 50%, 100% 38%, 100% 100%, 0 100%);
}
.hero-grid { display: grid; gap: 8px; align-items: center; padding-bottom: 70px; }
.hero-copy { position: relative; z-index: 2; text-align: center; }
.logo { display: inline-block; transform: rotate(-3deg); margin: 6px 0 8px; animation: logoIn .9s cubic-bezier(.2, 1.5, .4, 1) both; }
.logo .l1 {
  display: block; font-family: var(--display); color: var(--gold); line-height: .9; letter-spacing: .04em;
  font-size: clamp(34px, 9vw, 58px); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink), 0 7px 0 var(--ink);
}
.logo .l2 {
  display: block; font-family: var(--display); color: #fff; line-height: .86; letter-spacing: .01em;
  font-size: clamp(68px, 19vw, 132px); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  text-shadow: 0 3px 0 #3fe0ff, 0 6px 0 #13a6cf, 0 9px 0 #0d7aa0, 0 12px 0 var(--ink), 0 22px 30px rgba(20, 18, 60, .45);
}
.logo .ribbon {
  display: inline-block; margin-top: 14px; font-family: var(--display); font-size: clamp(17px, 4.4vw, 24px); color: #fff;
  background: var(--coral); border: 3px solid var(--ink); border-radius: 12px; padding: 4px 16px 6px;
  box-shadow: 0 4px 0 var(--ink); transform: rotate(2deg);
}
.logo h1 { margin: 0; font-weight: 400; }
.tagline { font-size: clamp(18px, 2.4vw, 21px); font-weight: 900; max-width: 34ch; margin: 18px auto 0; text-shadow: 0 2px 0 rgba(26, 24, 56, .55); }
.cta { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.note { font-size: 14px; font-weight: 800; color: #efeaff; text-shadow: 0 1px 0 rgba(26, 24, 56, .6); margin: 0; }
.hero-art { position: relative; z-index: 1; margin: 0 auto; width: min(560px, 100%); }
.hero-art img {
  width: 100%; height: auto; animation: float 5s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 50% 48% at 50% 48%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 48% at 50% 48%, #000 62%, transparent 100%);
}
@keyframes logoIn { from { opacity: 0; transform: rotate(-3deg) scale(.6); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  font-family: var(--display); font-size: 21px; letter-spacing: .02em; text-decoration: none;
  padding: 12px 24px; border: 3px solid var(--ink); border-radius: 18px; color: var(--ink);
  background: linear-gradient(#ffd667, #ffad1f); box-shadow: 0 6px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .5);
  transition: transform .06s ease, box-shadow .06s ease; cursor: pointer;
}
.btn:hover { color: var(--ink); filter: brightness(1.04); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.btn svg.i { font-size: 22px; stroke-width: 2.8; }
.btn.soon { background: linear-gradient(#3b3790, #2c2972); color: #e9e5ff; cursor: default; box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, .14); }
.btn.soon:active { transform: none; box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, .14); }
.btn small { display: block; font-family: var(--body); font-weight: 900; font-size: 12px; letter-spacing: 0; opacity: .85; line-height: 1.1; }
.btn .bt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.h2 {
  font-family: var(--display); font-weight: 400; color: #fff; margin: 0 0 10px; line-height: 1.05;
  font-size: clamp(32px, 5vw, 46px); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink);
}
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 62ch; }

/* the dropship's fuel: a real five-step sequence (four levels, then the boss) */
.journey { background: linear-gradient(var(--night), #1b1849); }
.tank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cell { position: relative; background: var(--panel); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 14px 12px 14px; text-align: center; }
.cell .fuel { height: 46px; border-radius: 10px; border: 3px solid var(--ink); background: linear-gradient(#9dffc0, var(--mint) 45%, #22b866); margin-bottom: 10px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45); }
.cell b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }
.cell span { display: block; font-size: 13px; font-weight: 800; color: var(--muted); }
.cell.boss .fuel { background: linear-gradient(#ffe7a3, var(--gold) 50%, var(--gold-d)); }
.cell.boss { border-color: var(--ink); box-shadow: 0 5px 0 var(--ink), 0 0 0 3px rgba(255, 190, 46, .55); }
.tank-after { margin: 22px 0 0; font-size: 18px; max-width: 60ch; }
.tank-after strong { color: var(--gold); }

/* features: the menu tiles of the game */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tile { background: var(--panel); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 18px 18px 20px; }
.tile h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; }
.tico { width: 42px; height: 42px; border-radius: 13px; border: 2.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); font-size: 22px; box-shadow: 0 3px 0 var(--ink); flex: none; }
.tico.c { background: var(--cyan); } .tico.g { background: var(--gold); } .tico.l { background: var(--lilac); } .tico.p { background: var(--gem); } .tico.m { background: var(--mint); } .tico.r { background: var(--coral); color: #fff; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile p b { color: var(--text); }

/* screenshots: real phone screens in a swipeable strip */
.shots { background: linear-gradient(#1b1849, var(--night)); }
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--panel-2) transparent; }
.strip figure { flex: 0 0 auto; width: min(250px, 66vw); margin: 0; scroll-snap-align: center; }
.phone { border: 4px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 8px 0 var(--ink); background: var(--ink); aspect-ratio: 390 / 844; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { margin-top: 12px; font-size: 15px; font-weight: 900; text-align: center; }
.strip-hint { font-size: 14px; color: var(--muted); margin: 0; }

/* good to know: short plain facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 22px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .tico { width: 34px; height: 34px; font-size: 17px; border-radius: 11px; }
.facts p { margin: 3px 0 0; }
.facts p b { display: block; }
.facts p span { color: var(--muted); font-size: 16px; }

.get { text-align: center; }
.get .lead { margin-left: auto; margin-right: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.get .h2 { margin-bottom: 16px; }

/* ---------- footer ---------- */
footer { background: var(--ink); padding: 34px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text); font-weight: 900; text-decoration: none; }
footer a:hover { color: var(--cyan); text-decoration: underline; }
.legal { flex-basis: 100%; font-size: 13px; color: #9893c9; margin: 0; }

/* ---------- privacy policy and plain pages ---------- */
.doc { padding: 40px 0 70px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; margin: 0 0 6px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.doc .meta { color: var(--muted); margin: 0 0 22px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 36px 0 10px; color: #fff; }
.doc h3 { font-size: 18px; font-weight: 900; margin: 22px 0 6px; }
.doc p, .doc li { max-width: 72ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--gold); }
.summary { background: var(--panel); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 16px 20px; }
.summary h2 { margin-top: 0; font-size: 22px; }
.summary ul { margin: 0; }
.table { width: 100%; overflow-x: auto; margin: 14px 0; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid rgba(255, 255, 255, .07); }
th { font-weight: 900; color: var(--gold); background: rgba(26, 24, 56, .45); }
tr:last-child td { border-bottom: 0; }
mark.todo { background: #ffe36e; color: var(--ink); border-radius: 6px; padding: 1px 6px; font-weight: 900; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost img { width: 120px; margin: 0 auto 10px; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; padding-bottom: 86px; }
  .hero-copy { text-align: left; }
  .tagline { margin-left: 0; }
  .cta { align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav a { padding: 8px 8px; font-size: 14px; }
  .brand span { display: none; }
  .tank { grid-template-columns: repeat(5, minmax(56px, 1fr)); gap: 6px; }
  .cell { padding: 10px 6px; border-radius: 14px; }
  .cell .fuel { height: 34px; }
  .cell b { font-size: 16px; }
  .cell span { font-size: 11px; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
