@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

﻿:root {
  color-scheme: dark;

  --vw-black: #030406;
  --vw-black-soft: #080b11;
  --vw-navy: #07172f;
  --vw-navy-light: #0b284b;
  --vw-gold: #d6ae54;
  --vw-gold-bright: #f5cf72;
  --vw-gold-soft: rgba(214, 174, 84, 0.18);
  --vw-border: rgba(214, 174, 84, 0.36);
  --vw-text: #f8fafc;
  --vw-muted: #aab4c3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 15% 0%, rgba(17, 64, 116, 0.30), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(214, 174, 84, 0.12), transparent 30rem),
    linear-gradient(180deg, #05080f 0%, #020305 100%);
  color: var(--vw-text);
  font-family:
    'Montserrat',
    Arial,
    Helvetica,
    sans-serif;
}

h1,
h2,
h3,
.rules-brand strong,
.rules-eyebrow {
  font-family: 'Cinzel', Georgia, serif;
}

a {
  color: inherit;
}

.rules-shell,
.rules-header-inner {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.rules-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(214, 174, 84, 0.18);
  background: rgba(3, 5, 10, 0.91);
  backdrop-filter: blur(18px);
}

.rules-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rules-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.rules-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.rules-brand div {
  display: grid;
  gap: 1px;
}

.rules-brand strong {
  color: var(--vw-gold-bright);
  font-size: 0.96rem;
  letter-spacing: 0.09em;
}

.rules-brand span {
  color: var(--vw-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.rules-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--vw-border);
  border-radius: 999px;
  color: var(--vw-gold-bright);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.rules-main {
  min-height: calc(100vh - 160px);
}

.rules-hero {
  padding: 64px 0 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rules-eyebrow {
  margin-bottom: 14px;
  color: var(--vw-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.rules-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.rules-hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.rules-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--vw-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.rules-controls {
  flex: 0 0 220px;
}

.rules-controls label {
  display: block;
  margin-bottom: 8px;
  color: var(--vw-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rules-controls select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--vw-border);
  border-radius: 12px;
  outline: none;
  background: #080d16;
  color: white;
  font: inherit;
}

.game-guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.game-guide-tabs a {
  padding: 11px 17px;
  border: 1px solid rgba(214, 174, 84, 0.22);
  border-radius: 999px;
  background: rgba(7, 23, 47, 0.62);
  color: #d7deea;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.game-guide-tabs a:hover,
.game-guide-tabs a.active {
  border-color: var(--vw-gold);
  background: linear-gradient(
    135deg,
    rgba(214, 174, 84, 0.24),
    rgba(7, 23, 47, 0.9)
  );
  color: var(--vw-gold-bright);
}

.rules-content-section {
  padding: 28px 0 76px;
}

.guide-section {
  padding-top: 42px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.section-heading > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--vw-border);
  border-radius: 50%;
  background: var(--vw-gold-soft);
  color: var(--vw-gold-bright);
  font-weight: 900;
}

.section-heading small {
  color: var(--vw-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.section-heading h2 {
  margin: 1px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.guide-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(214, 174, 84, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(11, 40, 75, 0.55),
      rgba(5, 8, 14, 0.92)
    );
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(
    var(--vw-gold-bright),
    rgba(214, 174, 84, 0.15)
  );
}

.guide-card h3 {
  margin: 0 0 10px;
  color: var(--vw-gold-bright);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.guide-card p {
  margin: 0;
  color: #d3dae5;
  font-size: 0.94rem;
  line-height: 1.75;
  white-space: pre-line;
}

.game-mode-guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-error {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.22);
}

.rules-footer {
  border-top: 1px solid rgba(214, 174, 84, 0.17);
  background: #020305;
}

.rules-footer .rules-shell {
  min-height: 114px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.rules-footer img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.rules-footer strong {
  color: var(--vw-gold-bright);
}

.rules-footer p {
  margin: 5px 0 0;
  color: var(--vw-muted);
  font-size: 0.82rem;
}

@media (max-width: 800px) {
  .rules-hero {
    padding-top: 40px;
  }

  .rules-hero-row {
    align-items: stretch;
    flex-direction: column;
  }

  .rules-controls {
    flex-basis: auto;
    width: min(100%, 320px);
  }

  .game-mode-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .rules-shell,
  .rules-header-inner {
    width: min(100% - 24px, 1160px);
  }

  .rules-header-inner {
    min-height: 68px;
  }

  .rules-brand img {
    width: 41px;
    height: 41px;
  }

  .rules-brand strong {
    font-size: 0.79rem;
  }

  .rules-brand span {
    font-size: 0.63rem;
  }

  .rules-home-link {
    padding-inline: 11px;
    font-size: 0.76rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    padding: 19px;
  }

  .game-guide-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .game-guide-tabs a {
    text-align: center;
  }
}

@media (max-width: 360px) {
  .rules-brand div {
    display: none;
  }

  .game-guide-tabs {
    grid-template-columns: 1fr;
  }
}
