:root {
  --bg: #14080c;
  --bg-2: #1c0c12;
  --card: #241014;
  --line: #d4af37;
  --text: #f6ead8;
  --muted: #e0cfc4;
  --gold: #f5c518;
  --gold-soft: #ffd54a;
  --orange: #ff8a00;
  --red: #e11d2e;
  --saffron: #f5c518;
  --arc: #18c8ff;
  --green: #3dd68c;
  --radius: 18px;
  --max: 1160px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", "Noto Sans", sans-serif;
  background:
    radial-gradient(720px 420px at 92% -8%, #18c8ff28, transparent 52%),
    radial-gradient(860px 480px at 8% 0%, #e11d2e44, transparent 55%),
    radial-gradient(700px 360px at 50% 100%, #f5c51818, transparent 50%),
    linear-gradient(180deg, #3a0c14 0%, var(--bg) 280px);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--arc); }

.promo-bar {
  background: linear-gradient(90deg, #7a0c18, #b11226 38%, #f5c518);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { flex: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #1a0a0ef2;
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 3px 0 var(--red), 0 12px 28px #0008;
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 0;
}
.logo:hover { text-decoration: none; color: var(--arc); }
.mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #e8fbff 0 28%, #18c8ff 32% 46%, #f5c518 50% 72%, #b11226 74%);
  color: #1c1210;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 3px #f5c51888, 0 0 16px #18c8ff66;
}
.site-header .btn-download {
  flex-shrink: 0;
  white-space: nowrap;
}
.site-header nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-header nav a {
  color: #f6ead8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--gold); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn-download, .btn-primary {
  background: linear-gradient(180deg, #ffe566, #f5c518 55%, #c48a00);
  color: #1c1210;
  box-shadow: 0 8px 0 #7a0c18, 0 12px 24px #b1122644;
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: none;
}
.menu-btn {
  display: none;
  margin-left: auto;
  background: var(--card);
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.hero {
  padding: 42px 0 28px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #18c8ff33, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-visual {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.hero-art {
  width: 236px;
  flex: 0 0 236px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
}
.hero-visual-board {
  flex-direction: column;
  width: 340px;
  align-items: stretch;
  gap: 12px;
}
.hero-visual-board .hero-art {
  width: 100%;
  flex: none;
}
.hero-art-shark {
  width: 420px;
  flex: 0 0 420px;
}
.hero-art-shark img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.hero-mosaic {
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-mosaic .hero-art {
  width: 100%;
  flex: none;
}
.hero-mosaic .hero-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero-mosaic-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kicker {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 4px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff8e7;
  text-shadow: 0 0 28px #e11d2e55;
}
.hero h1 span {
  display: block;
  color: var(--gold);
  font-size: 1.05em;
}
.hero p.lead { color: var(--muted); font-size: 17px; margin: 0 0 18px; max-width: 580px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-panel {
  width: 340px;
  max-width: 100%;
  background:
    radial-gradient(circle at 100% 0%, #18c8ff28, transparent 46%),
    linear-gradient(180deg, #3a1418, var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 18px 12px;
  box-shadow: var(--shadow), 0 0 24px #18c8ff22;
}
.hero-panel-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-facts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid #d4af3733;
}
.hero-facts li:first-child { border-top: 0; padding-top: 2px; }
.hero-facts b {
  color: var(--text);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero-facts em {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.hero-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-mini-stats div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.hero-mini-stats strong {
  display: block;
  color: var(--gold);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}
.hero-mini-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 72px;
}
.hero-panel-head .hero-panel-label { margin: 0; }
.hero-panel-head .card-fan {
  height: 70px;
  margin: 0;
}
.hero-panel-head .card-fan span {
  width: 42px;
  height: 60px;
  font-size: 13px;
  margin-left: -12px;
}
.card-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 108px;
  margin: 0 0 8px;
}
.card-fan span {
  width: 54px;
  height: 76px;
  margin-left: -16px;
  background: linear-gradient(180deg, #fffdf6, #f3e6c8);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 8px 16px #c8891233;
  border: 1px solid #e8d7a8;
}
.card-fan span:first-child { margin-left: 0; transform: rotate(-14deg) translateY(8px); color: #1a1208; }
.card-fan span:nth-child(2) { transform: rotate(-5deg) translateY(2px); color: #c41e3a; }
.card-fan span:nth-child(3) { transform: rotate(5deg) translateY(2px); color: #c41e3a; }
.card-fan span:nth-child(4) { transform: rotate(14deg) translateY(8px); color: #1a1208; }

.art-native {
  margin: 0 auto;
  max-width: 720px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.art-native img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-phone {
  width: 176px;
  flex: 0 0 176px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.shot-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.game-icons {
  display: grid;
  grid-template-columns: repeat(2, 118px);
  gap: 10px;
}
.game-icons figure {
  margin: 0;
}
.game-icons img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.game-icons.icons-3 {
  grid-template-columns: repeat(3, 1fr);
}
.game-icons.icons-3 img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.game-icons figcaption {
  margin: 6px 0 0;
  text-align: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.shot-row figure {
  margin: 0;
  width: 168px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.shot-row img {
  width: 100%;
  height: auto;
  display: block;
}
.shot-row figcaption {
  margin: 0;
  padding: 8px 8px 10px;
  text-align: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section { padding: 36px 0 48px; }
.section-compact { padding-top: 8px; }
.section h2 {
  margin: 0 0 8px;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  scroll-margin-top: 96px;
  color: var(--gold);
}
.section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 4px;
}
.section .sub { color: var(--muted); margin: 0 0 22px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background:
    radial-gradient(circle at 100% 0%, #18c8ff14, transparent 42%),
    linear-gradient(180deg, #2e1418, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 22px; color: var(--gold); text-transform: uppercase; }
.card p, .card li { color: var(--muted); }
.card ul, .card ol { margin: 10px 0 0; padding-left: 18px; }
.game-card { display: flex; flex-direction: column; min-height: 200px; position: relative; overflow: hidden; }
.game-card .icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.game-card .btn { margin-top: auto; align-self: flex-start; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step .n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe566, #f5c518);
  color: #2a1000;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.lobby {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  max-width: 520px;
}
.lobby b {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.lobby-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.lobby-actions { display: flex; gap: 8px; }
.lobby-actions button {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}
.lobby-actions button.on {
  background: linear-gradient(180deg, #ffe566, #f5c518);
  border-color: transparent;
  color: #2a1000;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  background:
    radial-gradient(circle at 50% 0%, #f5c51822, transparent 55%),
    var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  padding: 22px 12px;
  text-align: center;
}
.stat strong {
  display: block;
  color: var(--gold);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}
.stat span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote { border-left: 5px solid var(--gold); }
.quote p { margin: 0 0 12px; color: var(--text); font-style: italic; }
.quote .who { color: var(--gold); font-size: 14px; font-weight: 800; }
.quote .where { color: var(--muted); font-size: 12px; }
.win-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.timeline .card h3 { color: var(--gold); font-size: 22px; }

.prose h1, .prose h2, .prose h3 { scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 32px; }
.prose h3 { margin: 22px 0 8px; color: var(--gold); font-size: 18px; text-transform: uppercase; }
.prose a { font-weight: 700; }
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 700;
}
.crumb a { color: var(--gold); }
.meta-line {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}
.article-grid, .catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.collection-pages:not(.is-paged) > :nth-child(n + 7) { display: none; }
.collection-pages {
  min-height: 430px;
  align-content: start;
}
.collection-pages > [hidden] { display: none !important; }
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.article-card > a:last-of-type { margin-top: auto; }
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pager button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.pager button:hover:not(:disabled) {
  background: #3a1418;
  color: var(--arc);
}
.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pager-status {
  min-width: 4.5em;
  margin: 0;
  text-align: center;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.pager-dots {
  display: flex;
  gap: 8px;
  margin: 0 6px;
}
.pager-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: var(--line);
  border-color: var(--line);
}
.pager-dots button.is-on {
  background: var(--gold);
  border-color: var(--gold);
}
.article-card h3 { margin: 0 0 8px; }
.article-card time {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
}
.catalog-card .btn { margin-top: auto; align-self: flex-start; }
.catalog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  display: block;
}
.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.article-body { max-width: 760px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 800; color: var(--gold); }
.faq p { margin: 8px 0 0; }

.table-wrap { overflow: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #d4af3728; vertical-align: top; }
th { color: #1c1210; background: linear-gradient(90deg, #f5c518, #e11d2e); font-weight: 900; }
tr:last-child td { border-bottom: 0; }

.note {
  font-size: 13px;
  color: var(--muted);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.site-footer {
  border-top: 3px solid var(--gold);
  box-shadow: 0 -3px 0 var(--red);
  background: #12070a;
  margin-top: 24px;
  padding: 28px 0 20px;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); font-size: 13px; font-weight: 700; }
.disclaimer {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 0 20px 8px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .site-header .inner {
    gap: 8px;
    padding: 8px 12px;
  }
  .logo { font-size: 13px; white-space: nowrap; }
  .site-header nav { display: none; }
  .site-header nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: #1a0a0e;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn {
    display: inline-flex;
    flex-shrink: 0;
    padding: 8px 10px;
  }
  .site-header .btn-download {
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 0 #7a0c18, 0 8px 14px #b1122644;
  }
  .hero-grid, .grid-2, .grid-3, .grid-4, .steps, .stats, .quotes, .timeline,
  .article-grid, .catalog-grid, .related { grid-template-columns: 1fr; }
  .collection-pages { min-height: 640px; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 34px; }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn {
    width: 100%;
    padding: 12px 16px;
  }
  .lobby {
    max-width: none;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .lobby-actions { width: 100%; }
  .lobby-actions button { flex: 1; }
  .hero-visual {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-art {
    width: 100%;
    flex: none;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
  .hero-art img {
    object-position: center 22%;
  }
  .hero-visual-board,
  .hero-panel {
    width: 100%;
  }
  .hero-art-shark,
  .hero-mosaic {
    width: 100%;
    flex: none;
    aspect-ratio: auto;
  }
  .hero-art-shark img,
  .hero-mosaic .hero-art {
    aspect-ratio: auto;
  }
  .hero-art-shark img,
  .hero-mosaic .hero-art img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .game-icons {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .game-icons img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .game-icons.icons-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .game-icons.icons-3 img {
    width: 100%;
    height: auto;
  }
}
