:root {
  /* Game dark-mode background gradient (from Main.tscn) */
  --game-top: #6a3853;
  --game-mid: #07586c;
  --game-bottom: #612795;
  /* Google Play palette */
  --play-green: #01875f;
  --ink: #202124;
  --ink-soft: #5f6368;
  --line: #e8eaed;
  --accent: #ffea55;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: Roboto, "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.5;
}

a { color: var(--play-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- HERO (game background) ---------- */

.hero {
  background: linear-gradient(160deg, var(--game-top) 0%, var(--game-mid) 57%, var(--game-bottom) 100%);
  color: #ffffff;
  padding: 40px 24px 48px;
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.app-meta { min-width: 240px; }

.app-meta h1 {
  font-size: clamp(28px, 6vw, 44px);
  margin: 0 0 6px;
  font-weight: 700;
}

.dev {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
}

.sub {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.85;
}

.install {
  display: inline-block;
  margin-top: 18px;
  background: var(--play-green);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 40px;
  border-radius: 8px;
  cursor: pointer;
}
.install:hover { text-decoration: none; filter: brightness(1.07); }
.install[aria-disabled="true"] { opacity: 0.65; cursor: default; }

.play-store-btn {
  display: inline-block;
  margin-top: 14px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.play-store-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}
.play-store-badge {
  height: 52px;
  width: auto;
  display: block;
}

/* ---------- WHITE CONTENT ---------- */

.content {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 24px 48px;
}

section { padding: 28px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

h2 { font-size: 20px; margin: 0 0 16px; font-weight: 600; }

/* Screenshot strip */
.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.shots img {
  height: 360px;
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.about p { color: var(--ink); margin: 0 0 14px; }
.about h3 { font-size: 16px; margin: 20px 0 8px; font-weight: 600; }
.about ul { margin: 0 0 14px; padding-left: 22px; }
.about li { margin-bottom: 8px; }
.about a { word-break: break-word; }

/* Effective-date line under a section */
.about .stamp { color: var(--ink-soft); font-size: 14px; margin-bottom: 4px; }

/* Table of contents */
.toc {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
}
.toc h2 { font-size: 16px; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }

@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

/* Data summary table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.data-table th { background: #f8f9fa; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.info-row .k { color: var(--ink-soft); }

footer {
  text-align: center;
  padding: 28px 16px;
  color: var(--ink-soft);
  font-size: 13px;
}
