/* Top King's home page (2026-10-12): the game's look — navy backdrop, Luckiest
   Guy headlines in gold with a dark outline, white-framed screenshots. Self-
   hosted font and images only: the page makes no third-party requests. The
   legal pages keep their plain style.css. */
@font-face {
  font-family: "Luckiest Guy";
  src: url(fonts/luckiest-guy.woff2) format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #15233a;
  --bg-2: #1c2e4c;
  --panel: #22375a;
  --panel-edge: #34507d;
  --ink: #f4f1ea;
  --muted: #b5c0d4;
  --gold: #ffd84a;
  --gold-deep: #f4a91c;
  --outline: #2b1a05;
  --green: #5ccf4f;
  --green-deep: #2f9a2a;
  --red: #d9302f;
  --display: "Luckiest Guy", Impact, "Arial Black", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  /* the screenshots' diagonal pinstripe, faint */
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 14px);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* the game's caption lettering: gold face, dark outline, a drop below */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.05;
  color: var(--gold);
  text-shadow:
    -2px -2px 0 var(--outline), 2px -2px 0 var(--outline), -2px 2px 0 var(--outline), 2px 2px 0 var(--outline),
    0 -2px 0 var(--outline), 0 2px 0 var(--outline), -2px 0 0 var(--outline), 2px 0 0 var(--outline),
    0 5px 0 var(--outline);
}

/* ---------------------------------------------------------------- top bar */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
  max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.brand span { font-size: 22px; }
.top nav { display: flex; gap: 18px; }
.top nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.top nav a:hover { color: var(--gold); }
@media (max-width: 620px) { .top nav { display: none; } }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero > picture img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%;
  transform-origin: 62% 35%;
}
/* THE MIST (2026-10-12): the light behind the warlord breathes, two fog
   banks (img/fog-*.webp, tileable noise) drift across the horde at different
   speeds, and the picture slowly pushes in. Transform and opacity only, so it
   stays on the compositor; still under prefers-reduced-motion. */
.hero .glow, .hero .fog { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .glow {
  background: radial-gradient(ellipse 34% 42% at 62% 26%, rgba(255, 244, 222, .55), rgba(255, 244, 222, 0) 70%);
  mix-blend-mode: screen;
  opacity: .55;
}
.hero .fog { overflow: hidden; }
.hero .fog i {
  --tile: 1536px;
  position: absolute; left: 0; width: calc(100% + var(--tile));
  background: url(img/fog-a.webp) repeat-x 0 0 / var(--tile) 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 65%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 65%, transparent);
  will-change: transform;
}
.hero .fog .fog-back { top: 14%; height: 60%; opacity: .5; }
.hero .fog .fog-front { --tile: 1100px; top: 40%; height: 42%; opacity: .7; background-image: url(img/fog-b.webp); }
@media (prefers-reduced-motion: no-preference) {
  .hero > picture img { animation: push 38s ease-in-out infinite alternate; }
  .hero .glow { animation: breathe 7s ease-in-out infinite alternate; }
  .hero .fog .fog-back { animation: drift 95s linear infinite; }
  .hero .fog .fog-front { animation: drift 48s linear infinite; }
}
@keyframes push { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1%, -.6%); } }
@keyframes breathe { from { opacity: .35; } to { opacity: .8; } }
@keyframes drift { to { transform: translate3d(calc(-1 * var(--tile)), 0, 0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(21,35,58,.85) 22%, rgba(21,35,58,0) 60%),
    linear-gradient(to right, rgba(21,35,58,.7) 0%, rgba(21,35,58,.35) 35%, rgba(21,35,58,0) 60%);
}
.hero-copy { width: 100%; padding-bottom: 56px; padding-top: 120px; }
.hero h1 { font-size: clamp(64px, 13vw, 132px); margin: 0; }
.tagline {
  font-family: var(--display); font-size: clamp(22px, 3.6vw, 34px); letter-spacing: .02em;
  color: #fff; margin: 14px 0 10px; text-shadow: 0 2px 0 var(--outline), 0 3px 10px rgba(0,0,0,.55);
}
.lede { max-width: 560px; margin: 0 0 24px; color: #e8ecf3; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

/* the store button: the in-game PLAY button's green */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px 12px;
  font: 400 22px/1 var(--display); letter-spacing: .04em; color: #fff; text-decoration: none;
  background: linear-gradient(var(--green), var(--green-deep));
  border: 3px solid #fff; border-radius: 16px;
  box-shadow: 0 5px 0 #1d5e1a, 0 10px 24px rgba(0,0,0,.35);
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #1d5e1a, 0 14px 28px rgba(0,0,0,.4); }
.cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #1d5e1a, 0 6px 14px rgba(0,0,0,.35); }
.cta small { display: block; font: 600 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .9; margin-bottom: 4px; text-shadow: none; }
.cta svg { width: 26px; height: 26px; flex: none; }
/* before the launch: the same button, not clickable */
.cta.soon { background: linear-gradient(#3f5680, #2c4066); box-shadow: 0 5px 0 #18253d, 0 10px 24px rgba(0,0,0,.35); cursor: default; }
.cta.soon:hover, .cta.soon:active { transform: none; box-shadow: 0 5px 0 #18253d, 0 10px 24px rgba(0,0,0,.35); }
.platform { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- sections */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 10px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.card {
  background: linear-gradient(var(--panel), var(--bg-2));
  border: 2px solid var(--panel-edge);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(0,0,0,.25);
}

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { padding: 22px 22px 20px; }
.feature .badge {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 12px;
  border-radius: 50%; background: linear-gradient(var(--gold), var(--gold-deep));
  border: 3px solid #fff; box-shadow: 0 3px 0 var(--outline);
}
.feature .badge svg { width: 24px; height: 24px; fill: var(--outline); }
.feature h3 { font: 400 24px/1.1 var(--display); letter-spacing: .02em; margin: 0 0 8px; color: #fff; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* maps */
.maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.map { overflow: hidden; display: flex; flex-direction: column; }
.map figure { margin: 0; position: relative; }
.map figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.map .num {
  position: absolute; left: 14px; top: 14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  font: 400 24px/1 var(--display); color: #fff; padding-top: 3px;
  background: radial-gradient(circle at 40% 35%, #4d8cf0, #1f55b8);
  border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.map .body { padding: 18px 20px 22px; }
.map h3 { font: 400 26px/1.1 var(--display); letter-spacing: .02em; margin: 0 0 6px; color: var(--gold); }
.map p { margin: 0; color: var(--muted); font-size: 16px; }
.more { text-align: center; color: var(--muted); margin: 26px 0 0; font-size: 15px; }
.more b { color: var(--ink); }

/* heroes */
.heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.hero-card { display: grid; grid-template-columns: 150px 1fr; gap: 6px 18px; align-items: center; padding: 20px 22px 20px 10px; overflow: hidden; }
.hero-card img { width: 150px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.hero-card h3 { font-size: 34px; margin: 0 0 6px; }
.hero-card p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.skills li {
  font: 600 12px/1 var(--body); letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--panel-edge); color: var(--ink);
}
@media (max-width: 420px) {
  .hero-card { grid-template-columns: 110px 1fr; padding-left: 6px; }
  .hero-card img { width: 110px; }
  .hero-card h3 { font-size: 28px; }
}

/* screenshots: a swipeable strip on phones, a grid on wide screens */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 520px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
}
.shots a { scroll-snap-align: center; display: block; border-radius: 14px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,.3); transition: transform .15s ease; }
.shots a:hover { transform: translateY(-3px); }
.shots img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; padding: 0; margin: 0; }
}

/* fair play band */
.fair { padding: 28px 26px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.fair .badge {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(var(--green), var(--green-deep)); border: 3px solid #fff; box-shadow: 0 4px 0 #1d5e1a;
}
.fair .badge svg { width: 32px; height: 32px; fill: #fff; }
.fair h3 { font: 400 28px/1.1 var(--display); letter-spacing: .02em; margin: 0 0 6px; color: #fff; }
.fair p { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .fair { grid-template-columns: 1fr; text-align: center; } .fair .badge { margin: 0 auto; } }

/* closing call */
.closing { text-align: center; padding: 80px 0 88px; }
.closing h2 { font-size: clamp(38px, 7vw, 64px); margin: 0 0 14px; }
.closing p { color: var(--muted); margin: 0 auto 26px; max-width: 520px; }
.closing .cta-row { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--panel-edge); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink); }

/* the hero's entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
  .hero .tagline, .hero .lede, .hero .cta-row { animation: rise .6s ease both; }
  .hero .tagline { animation-delay: .12s; }
  .hero .lede { animation-delay: .2s; }
  .hero .cta-row { animation-delay: .28s; }
}
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------- THE AD VS. THE GAME
   (2026-10-12) The page's story: the game the ads promised. The little
   yellow "Ad" tag is the label mobile ads carry; the ad lines are dimmed,
   Top King's answer gets the green tick. */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ad-tag {
  display: inline-block; vertical-align: 1px;
  padding: 2px 6px 1px; border-radius: 4px;
  font: 700 11px/1.3 var(--body); letter-spacing: .04em; text-transform: none;
  color: #1f2328; background: #f8c63a; text-shadow: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(10, 18, 32, .55); border: 1px solid rgba(255, 255, 255, .18);
  font: 600 14px/1.2 var(--body); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
@media (prefers-reduced-motion: no-preference) { .hero .eyebrow { animation: rise .6s ease both; } }
.keyart-note {
  position: absolute; right: var(--gutter); bottom: 14px; margin: 0;
  font-size: 12px; color: rgba(232, 236, 243, .7); letter-spacing: .02em;
}
@media (max-width: 620px) { .keyart-note { left: var(--gutter); right: auto; bottom: 10px; } }

.versus { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 12px; }
.versus li { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.versus p { margin: 0; padding: 16px 20px; font-size: 16px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.versus .ad-tag { flex: none; margin-top: 2px; }
.versus .ad { color: var(--muted); background: rgba(0, 0, 0, .18); font-style: italic; }
.versus .real { color: #fff; font-weight: 600; }
.tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 0;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 2px 0 #1d5e1a;
}
@media (max-width: 620px) {
  .versus li { grid-template-columns: 1fr; }
  .versus p { padding: 12px 16px; }
}

/* ------------------------------------------------------- THE GAMEPLAY CLIP
   (2026-10-12) Recorded by tools/site/gameplay_clip.mjs: the proof under the
   key art. Framed like the screenshots; a REC label says what it is. */
.gameplay { padding-top: 40px; }
.clip { margin: 0 auto; max-width: 980px; }
.rec {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font: 600 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4646; box-shadow: 0 0 0 3px rgba(255, 70, 70, .25); }
@media (prefers-reduced-motion: no-preference) { .rec .dot { animation: rec 1.4s ease-in-out infinite; } }
@keyframes rec { 50% { opacity: .25; } }
.screen {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .45);
  background: #0d1626; aspect-ratio: 16 / 9;
}
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-toggle {
  position: absolute; right: 12px; bottom: 12px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(10, 18, 32, .65); border: 2px solid rgba(255, 255, 255, .8); color: #fff; cursor: pointer;
}
.clip-toggle:hover { background: rgba(10, 18, 32, .85); }
.clip-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.clip-toggle .i-play { display: none; }
.clip-toggle.paused .i-play { display: inline; }
.clip-toggle.paused .i-pause { display: none; }
@media (max-width: 620px) { .screen { border-width: 3px; border-radius: 12px; } .clip-toggle { width: 38px; height: 38px; right: 8px; bottom: 8px; } }
