/* PLINK LEGION product site. The night-fair look of the game: navy night, vermilion, gold and teal neon, brass. */
:root {
  --night: #0b0d1a;
  --night-2: #141a2e;
  --panel: #1a1626;
  --brass: #b88a4a;
  --gold: #ffd27a;
  --vermilion: #ff6650;
  --teal: #52e6dc;
  --ivory: #ffe6b7;
  --text: #f1e7d4;
  --muted: #b9ad98;
  --radius: 6px;
  --gutter: 16px;
  --width: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: var(--teal); }
a:hover { color: var(--gold); }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }

/* Header: the language switch. */
.top {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px var(--gutter);
  font-size: 15px;
}
.top a { color: var(--muted); text-decoration: none; }
.top a[aria-current="true"] { color: var(--gold); }

/* Hero: a clip of the game itself first (the board, a rare soldier, a battle), the logo and the call to action beside it.
   Wide screens put the clip on the left; narrow ones put the logo above it. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(11, 13, 26, .55), rgba(11, 13, 26, .97)), url("hero.jpg") center / cover no-repeat;
  border-bottom: 2px solid var(--brass);
  padding: 32px max(var(--gutter), calc((100vw - 1240px) / 2)) 36px;
}
.hero-text { order: 2; }
.hero h1 { margin: 0; line-height: 0; }
.hero img.logo { width: min(360px, 100%); height: auto; filter: drop-shadow(0 0 18px rgba(255, 102, 80, .45)); }
.tagline { font-size: clamp(18px, 2.4vw, 24px); color: var(--ivory); margin: 8px 0 24px; }

.play { order: 1; margin: 0; position: relative; }
.play video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--night-2);
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(122, 29, 26, .55), 0 12px 40px rgba(0, 0, 0, .55);
}
.play figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.play-toggle {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  background: rgba(11, 13, 26, .8);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.play-toggle:hover { border-color: var(--gold); }
.play-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button {
  display: inline-block;
  min-width: 220px;
  padding: 12px 20px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: #7a1d1a;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.button.soon { background: var(--panel); border-color: var(--brass); color: var(--muted); cursor: default; }
.facts { margin-top: 16px; color: var(--muted); font-size: 15px; }

section { padding: 48px 0 8px; }
h2 {
  font-size: 26px;
  color: var(--gold);
  margin: 0 0 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(184, 138, 74, .5);
}

/* How it plays: three steps with a screenshot each. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--panel); border: 1px solid rgba(184, 138, 74, .6); border-radius: var(--radius); overflow: hidden; }
.step img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.step h3 { margin: 12px 14px 4px; font-size: 19px; color: var(--ivory); }
.step p { margin: 0 14px 16px; color: var(--text); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; padding: 0; list-style: none; }
.features li { padding-left: 22px; position: relative; }
.features li::before { content: "◆"; position: absolute; left: 0; color: var(--vermilion); font-size: 12px; top: 6px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery img { width: 100%; height: auto; border: 1px solid rgba(184, 138, 74, .6); border-radius: var(--radius); display: block; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

footer {
  margin-top: 56px;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid rgba(184, 138, 74, .5);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
footer a { color: var(--muted); }

/* Policy pages. */
.policy { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 0; }
.policy h1 { color: var(--gold); font-size: 28px; }
.policy h2 { font-size: 20px; margin-top: 28px; }

/* The question about visit counting (assets/analytics.js), fixed to the bottom until answered. */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding: 14px var(--gutter);
  background: var(--panel);
  border-top: 2px solid var(--brass);
  font-size: 15px;
}
.consent p { margin: 0; max-width: 640px; }
.consent strong { color: var(--ivory); }
.consent-actions { display: flex; gap: 12px; }
.consent button, .policy button {
  min-width: 112px;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  background: var(--night-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.consent button.consent-allow { border-color: var(--gold); background: #7a1d1a; color: var(--gold); }
.consent button:hover, .policy button:hover { border-color: var(--gold); }
.consent button:focus-visible, .policy button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .hero-text { order: 0; }
  .hero img.logo { width: min(220px, 60vw); }
  .tagline { margin: 4px 0 12px; }
  .hero .buttons .button { padding: 8px 16px; }
  .facts { margin-top: 8px; font-size: 14px; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
