/* Tankina Maze website. One visual world on purpose: the game's own night-battlefield look (dark navy,
   cyan rims, gold highlights), Lilita One for titles and Nunito for text, the same fonts as in the game.
   Layout: a full-bleed hero, then centred bands that alternate between plain and tinted ground. */
@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #0b1226;          /* night navy, the battle floor */
  --band: #111b36;        /* a slightly lighter band */
  --card: #16213d;        /* panels, like the in-game cards */
  --rim: #2fd6ff;         /* cyan rim of the game's buttons */
  --gold: #ffd166;        /* gold titles and stars */
  --red: #ff4f5e;         /* the PLAY button */
  --fg: #eef3ff;
  --dim: #a9b6d6;
  --line: rgba(47, 214, 255, 0.28);
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --text: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 600 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rim); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0; }
.lead { color: var(--dim); max-width: 62ch; }
.kicker { font: 800 13px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ---------- top bar */
.top {
  position: absolute; inset: 0 0 auto; z-index: 5;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--fg); text-decoration: none; font-weight: 800; font-size: 15px; opacity: 0.85; }
.top nav a:hover { opacity: 1; color: var(--gold); }

/* ---------- hero */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding-block: calc(88px + env(safe-area-inset-top, 0px)) 40px;
  background: #050914 url("img/hero.webp") center / cover no-repeat;
}
.hero::before { /* calm, darker centre for the logo, like the loading screen */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(5, 9, 20, 0.82) 0%, rgba(5, 9, 20, 0.55) 45%, rgba(5, 9, 20, 0.2) 75%),
              linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero .wrap { position: relative; display: grid; justify-items: center; gap: 18px; }
.hero .logo { width: min(520px, 86vw); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.hero .tag { font: 800 clamp(18px, 2.4vw, 23px)/1.4 var(--text); max-width: 34ch; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 18px; text-decoration: none;
  font: 400 22px/1 var(--display); color: #fff; letter-spacing: 0.02em;
  background: linear-gradient(#ff6d78, var(--red) 55%, #d93347);
  border: 3px solid #1a0b14; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 6px 0 #8f1d2c, 0 12px 24px rgba(0, 0, 0, 0.45);
}
.btn small { display: block; font: 800 12px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; margin-bottom: 4px; }
.btn .gp { width: 26px; height: 28px; flex: none; }
.btn[aria-disabled="true"] { cursor: default; }
.soon { font-size: 14px; color: var(--dim); }

/* the loading-screen road with the red tank driving along it */
.road { position: relative; width: min(560px, 90vw); height: 44px; margin-top: 6px; }
.road .strip { position: absolute; inset: 14px 0 6px; border-radius: 12px; background: url("img/load_road.webp") 0 50% / auto 100% repeat-x; border: 3px solid #060b18; }
.road .tank { position: absolute; top: -6px; left: 0; width: 56px; animation: drive 7s linear infinite; }
@keyframes drive { from { transform: translateX(-10px); } to { transform: translateX(calc(min(560px, 90vw) - 46px)); } }
@media (prefers-reduced-motion: reduce) { .road .tank { animation: none; left: 62%; } html { scroll-behavior: auto; } }

/* ---------- bands */
section { padding-block: 64px; }
section.tint { background: var(--band); border-block: 1px solid var(--line); }
.head { display: grid; gap: 10px; margin-bottom: 28px; }

/* how a round plays */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rule { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.rule img { width: 56px; height: 56px; }
.rule p { color: var(--dim); }

/* screenshots: a strip that scrolls sideways inside itself */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 620px); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; display: grid; gap: 8px; }
.shots img { border-radius: 14px; border: 3px solid #060b18; box-shadow: 0 0 0 2px var(--line); aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.shots figcaption { color: var(--dim); font-size: 15px; }

/* adventure worlds */
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.world { position: relative; border-radius: 16px; overflow: hidden; border: 3px solid #060b18; box-shadow: 0 0 0 2px var(--line); aspect-ratio: 3 / 2.4; background: var(--card); }
.world > img.map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 9, 20, 0.92) 18%, transparent 62%); }
.world .boss { position: absolute; z-index: 1; width: 42%; right: 4%; top: 6%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); }
.world .cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 2px; }
.world .cap b { font: 400 19px/1.1 var(--display); }
.world .cap span { font-size: 13px; color: var(--gold); font-weight: 800; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.stats div { font: 400 30px/1 var(--display); color: var(--gold); }
.stats div span { display: block; font: 800 13px/1.4 var(--text); color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* spells and powers */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.split > * { min-width: 0; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 16px; }
.icon { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 6px 10px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.icon img { width: 48px; height: 48px; }
.icon b { font: 400 15px/1.1 var(--display); }
.icon span { font-size: 12px; color: var(--dim); }

/* fair play + friends */
.fair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: center; }
.fair > * { min-width: 0; }
.fair .pic img { border-radius: 14px; border: 3px solid #060b18; box-shadow: 0 0 0 2px var(--line); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--dim); }
.checks li img { width: 24px; height: 24px; margin-top: 2px; }
.checks li b { color: var(--fg); }
.tanks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tanks img { width: 64px; }

/* closing call */
.cta { text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: 16px; }
.emotes { display: flex; gap: 8px; }
.emotes img { width: 56px; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--fg); }
.mark { color: var(--dim); font-style: normal; background: rgba(255, 209, 102, 0.14); border: 1px dashed var(--gold); border-radius: 6px; padding: 0 6px; }

/* privacy page */
.doc { padding-block: calc(96px + env(safe-area-inset-top, 0px)) 56px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 6px; }
.doc h2 { font-size: 26px; margin: 34px 0 10px; color: var(--gold); }
.doc p, .doc li { color: var(--dim); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.doc b { color: var(--fg); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  section { padding-block: 48px; }
  .btn { font-size: 19px; padding: 12px 20px; }
}
