*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --bg-elevated: #141414;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --fg: #f0f0f2;
  --fg-muted: #8b8f98;
  --fg-subtle: #5c6068;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --primary: #e8e8ec;
  --primary-fg: #111114;
  --accent-green: #4ade80;
  --sidebar-w: 14.5rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Layout ─────────────────────────────────────────── */

.layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 2rem;
}

.brand-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #0c0a08;
}

.brand-icon img,
.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-line {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-label {
  padding: 0 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav-link svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.7;
}

.nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.85;
  color: #5865f2;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.nav-link:hover {
  color: var(--fg);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active svg {
  opacity: 1;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.5rem;
  margin-bottom: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--fg-subtle);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.social-link:hover {
  color: var(--fg-muted);
  background: var(--bg-card);
}

.sidebar-copy {
  padding: 0 0.5rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--fg-subtle);
}

/* ── Main area ─────────────────────────────────────── */

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ───────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.1rem 2.5rem;
  background: transparent;
  border-bottom: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: auto;
  color: var(--fg-muted);
  border-radius: var(--radius);
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-toggle:hover {
  background: var(--bg-card);
  color: var(--fg);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-link {
  display: none;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-fg);
  background: var(--primary);
  border: none;
  border-radius: 999px;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-download svg {
  width: 1rem;
  height: 1rem;
}

.btn-download:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.download-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.download-version {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted, #9a9a9e);
  white-space: nowrap;
}

.hero-download {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.download-version--hero {
  padding-left: 0.15rem;
}

/* Download modal — native <dialog> */
.dl-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
}

.dl-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dl-modal.is-open {
  display: block;
}

.dl-modal-card {
  position: relative;
  width: min(100vw - 2rem, 26rem);
  padding: 1.75rem 1.5rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121214;
  color: #f2f2f3;
}

.dl-modal-x {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #9a9a9e;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.dl-modal-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dl-modal-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9e;
}

.dl-modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f2f3;
}

.dl-modal-version {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #c48c5a;
}

.dl-modal-lead {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #b0b0b4;
}

.dl-modal-file {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #7e7e84;
}

.dl-modal-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.dl-modal-cancel {
  display: block;
  width: 100%;
  padding: 0.55rem;
  border: none;
  background: transparent;
  color: #8a8a90;
  font-size: 0.85rem;
  cursor: pointer;
}

.dl-modal-cancel:hover {
  color: #d0d0d4;
}

.lang-dropdown {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.15s;
}

.lang-toggle:hover,
.lang-dropdown.open .lang-toggle {
  border-color: var(--border-strong);
}

.lang-toggle-flag {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}

.lang-chevron {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--fg-muted);
  transition: transform 0.15s;
}

.lang-toggle[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 50;
  min-width: 10.5rem;
  padding: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--radius);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.lang-option img {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}

.lang-option:hover {
  background: var(--bg-card);
  color: var(--fg);
}

.lang-option.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Content ───────────────────────────────────────── */

.content {
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 0 clamp(1.25rem, 2.5vw, 2.5rem) 3.5rem;
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
  position: relative;
  margin: -4.25rem calc(-1 * clamp(1.25rem, 2.5vw, 2.5rem)) 0;
  padding: 5.5rem clamp(1.25rem, 2.5vw, 2.5rem) 3.5rem;
  overflow: hidden;
  min-height: 32rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(13, 13, 13, 0.94) 0%, rgba(13, 13, 13, 0.72) 34%, rgba(13, 13, 13, 0.2) 62%, rgba(13, 13, 13, 0.35) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  max-width: 76rem;
  margin: 0 auto;
}

.hero-main {
  max-width: 38rem;
  padding-top: 0.5rem;
}

.hero-aside {
  display: grid;
  gap: 0.75rem;
  align-self: center;
}

.hero-panel {
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.hero-panel-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.hero-panel-value {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-panel-note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.45;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.hero-lead {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 30rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.badge svg {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.7;
}

.badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.badge-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-fg);
  background: var(--primary);
  border-radius: 999px;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-primary svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s;
}

.btn-ghost svg {
  width: 1rem;
  height: 1rem;
}

.btn-ghost:hover {
  color: var(--fg);
}

/* Update card */

.update-card {
  width: 16.5rem;
  padding: 1.1rem;
  background: rgba(16, 16, 18, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: 1.5rem;
}

.update-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.update-title {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.update-desc {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.45;
}

.update-thumb {
  margin-top: 0.85rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.update-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
}

.update-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s;
}

.update-link svg {
  width: 0.9rem;
  height: 0.9rem;
}

.update-link:hover {
  color: var(--fg);
}

/* ── Features ──────────────────────────────────────── */

.features {
  margin-top: 2.5rem;
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

/* How to play */

.howto {
  margin-top: 3rem;
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

.howto-card {
  margin-top: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.howto-banner {
  position: relative;
  height: 10rem;
  overflow: hidden;
}

.howto-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.howto-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(13, 13, 13, 0.85) 100%);
}

.howto-content {
  padding: 1.35rem 1.5rem 1.5rem;
}

.howto-lead {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.howto-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.howto-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.howto-step-thumb {
  position: relative;
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.howto-step-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.howto-step-thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
}

.howto-step-thumb-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.howto-step-num {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-fg);
  background: var(--primary);
  border-radius: 50%;
}

.howto-step-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.howto-step-body p {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.45;
}

.howto-cta {
  margin-top: 1.35rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-visual {
  position: relative;
  height: 7.5rem;
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(13, 13, 13, 0.9) 100%);
}

.feature-icon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--fg);
}

.feature-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-body {
  padding: 0.85rem 1rem 1.15rem;
}

.feature-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-body p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ── News ──────────────────────────────────────────── */

.news {
  margin-top: 3rem;
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

.news-empty {
  margin-top: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.news-empty p {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s;
}

.section-link svg {
  width: 1rem;
  height: 1rem;
}

.section-link:hover {
  color: var(--fg);
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.news-card {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 1.35rem;
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}

.news-card:hover {
  border-color: var(--border-strong);
}

.news-thumb {
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 7.5rem;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  object-fit: cover;
}

.news-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border-strong);
  border-radius: 0.25rem;
}

.news-tag.tag-event {
  color: var(--fg-subtle);
}

.news-body h3 {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.news-body p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.news-body time {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--fg-subtle);
}

/* ── Mobile sidebar backdrop ───────────────────────── */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.6);
}

.sidebar-backdrop[hidden] {
  display: none;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .hero-aside {
    display: none;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .topbar {
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
  }

  .content {
    padding: 0 1.25rem 2.5rem;
  }

  .hero {
    margin: -3.75rem -1.25rem 0;
    padding: 4.5rem 1.25rem 2.5rem;
    min-height: auto;
  }

  .hero-bg img {
    object-position: 65% center;
  }

  .howto-steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    gap: 0.65rem;
  }
}

@media (max-width: 600px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-thumb img {
    min-height: 8rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .btn-download span,
  .btn-download {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }
}

/* Inner pages: rules & leaderboard */
.page-content {
  padding-top: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0 0 2rem;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 42rem;
}

.rules-page .section-title {
  margin-bottom: 0;
}

.rules-card-wrap {
  margin-top: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.rules-banner {
  position: relative;
  height: 10rem;
  overflow: hidden;
}

.rules-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rules-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(13, 13, 13, 0.88) 100%);
}

.rules-content {
  padding: 1.35rem 1.5rem 1.5rem;
}

.rules-lead {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.rules-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rules-card-thumb {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.rules-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rules-card-body h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.rules-card-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--fg-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.rules-card-body li + li {
  margin-top: 0.35rem;
}

.rules-card-body a {
  color: #8ea1ff;
  text-decoration: none;
}

.rules-card-body a:hover {
  text-decoration: underline;
}

.rules-cta {
  margin-top: 1.35rem;
}

/* Leaderboard page */
.leaderboard-page .section-title {
  margin-bottom: 0;
}

.leaderboard-card-wrap {
  margin-top: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.leaderboard-banner {
  position: relative;
  height: 10rem;
  overflow: hidden;
}

.leaderboard-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.leaderboard-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(13, 13, 13, 0.88) 100%);
}

.leaderboard-content {
  padding: 1.35rem 1.5rem 1.5rem;
}

.leaderboard-lead {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.leaderboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.leaderboard-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.leaderboard-stat img {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

.leaderboard-podium {
  position: relative;
  margin-top: 1.15rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 9rem;
}

.leaderboard-podium-bg {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.55;
}

.leaderboard-podium-slots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  padding: 0 0.75rem 0.65rem;
  gap: 0.5rem;
}

.lb-podium-slot {
  text-align: center;
  padding: 0.45rem 0.35rem;
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.lb-podium-slot.rank-1 {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-0.35rem);
}

.lb-podium-slot.rank-2 {
  border-color: rgba(192, 192, 192, 0.35);
}

.lb-podium-slot.rank-3 {
  border-color: rgba(205, 127, 50, 0.35);
}

.lb-podium-rank {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-subtle);
}

.lb-podium-slot.rank-1 .lb-podium-rank {
  color: #d4af37;
}

.lb-podium-slot.rank-2 .lb-podium-rank {
  color: #c0c0c0;
}

.lb-podium-slot.rank-3 .lb-podium-rank {
  color: #cd7f32;
}

.lb-podium-name {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-podium-score {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: #c9b896;
}

.leaderboard-empty-state {
  margin-top: 1.15rem;
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.leaderboard-empty-state img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto 0.75rem;
  opacity: 0.85;
}

.leaderboard-empty-state p {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.leaderboard-cta {
  margin-top: 1.35rem;
}

.leaderboard-status {
  margin: 1rem 0 0.75rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
}

.leaderboard-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.lb-player {
  font-weight: 500;
  color: var(--fg);
}

.lb-score {
  font-weight: 600;
  color: #c9b896;
}

.lb-row-top-1 td:first-child {
  color: #d4af37;
  font-weight: 700;
}

.lb-row-top-2 td:first-child {
  color: #c0c0c0;
  font-weight: 700;
}

.lb-row-top-3 td:first-child {
  color: #cd7f32;
  font-weight: 700;
}

@media (max-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-stats {
    grid-template-columns: 1fr;
  }

  .leaderboard-podium-slots {
    grid-template-columns: 1fr;
    position: static;
    padding: 0.65rem;
    background: rgba(13, 13, 13, 0.85);
  }

  .leaderboard-podium-bg {
    display: none;
  }

  .leaderboard-podium {
    min-height: auto;
  }

  .lb-podium-slot.rank-1 {
    transform: none;
  }

  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    display: none;
  }
}
