:root {
  color-scheme: dark;
  --ink: #eef5ee;
  --muted: #bec9c1;
  --night: #09130f;
  --forest: #10231f;
  --forest-soft: #17352c;
  --gold: #f0ce73;
  --gold-dark: #33270d;
  --paper: #f4f6f3;
  --paper-ink: #17221c;
  --paper-muted: #5b675f;
  --line: #cbd3cd;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--night);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: #111111;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(22px, env(safe-area-inset-right)) 12px max(22px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 17, 14, 0.68);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(240, 206, 115, 0.72);
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav > a {
  white-space: nowrap;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-nav > a[aria-current="page"] {
  color: var(--gold);
}

.site-nav .nav-play {
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: var(--gold-dark);
}

.site-nav .nav-play:hover,
.site-nav .nav-play:focus-visible {
  background: #ffe39a;
  color: #1d1708;
}

.language-control select {
  min-height: 42px;
  max-width: 126px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  background: #101b18;
  color: #ffffff;
  padding: 0 30px 0 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(780px, calc(100svh - 72px));
  align-items: center;
  overflow: hidden;
  padding: 116px max(24px, env(safe-area-inset-right)) 88px max(24px, env(safe-area-inset-left));
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  z-index: -2;
  background: rgba(3, 10, 11, 0.42);
}

.hero-content {
  width: min(670px, 100%);
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
}

.hero-eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff0bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  line-height: 0.98;
  text-shadow: 0 3px 0 #171005, 0 5px 20px rgba(0, 0, 0, 0.92);
}

.hero-offer {
  margin: 14px 0 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 700;
}

.hero-summary {
  max-width: 620px;
  margin: 22px auto 0;
  color: #f5f8f5;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a {
  min-width: 154px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  text-shadow: none;
}

.primary-action {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--gold-dark);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ffe29a;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 12px;
  margin-top: 12px;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  border-radius: 4px;
}

.store-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.store-links img {
  display: block;
  object-fit: contain;
}

.google-play-badge { width: 180px; height: 70px; }
.app-store-badge { width: 150px; height: 50px; }

.rankings-section {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 76px max(20px, env(safe-area-inset-right)) 84px max(20px, env(safe-area-inset-left));
}

.rankings-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.rankings-page .site-header {
  position: relative;
}

.rankings-page .rankings-section {
  flex: 1;
}

.section-inner,
.footer-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  color: #8a681c;
}

.section-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.section-heading > p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 16px;
  line-height: 1.55;
}

.ranking-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ranking-table th,
.ranking-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}

.ranking-table th {
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
  width: 84px;
  text-align: center;
}

.ranking-table th:nth-child(3),
.ranking-table td:nth-child(3) {
  width: 220px;
}

.ranking-table th:last-child,
.ranking-table td:last-child {
  width: 112px;
  text-align: right;
}

.ranking-table tbody tr:first-child td {
  color: #6a4e0c;
  font-weight: 800;
}

.ranking-table tbody tr:hover td {
  background: #e8eee9;
}

.rank-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #aeb9b1;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.ranking-table tbody tr:nth-child(1) .rank-number {
  border-color: #b88b1d;
  background: #f4dc91;
  color: #4b3707;
}

.ranking-table tbody tr:nth-child(2) .rank-number {
  border-color: #8b9690;
  background: #dce3df;
}

.ranking-table tbody tr:nth-child(3) .rank-number {
  border-color: #a46b43;
  background: #e7c1a4;
}

.ranking-name {
  overflow-wrap: anywhere;
  font-weight: 750;
}

.ranking-class {
  color: #45524a;
}

.ranking-level {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.ranking-message {
  height: 156px;
  color: var(--paper-muted);
  text-align: center !important;
}

.ranking-status {
  margin: 12px 0 0;
  color: var(--paper-muted);
  font-size: 13px;
  text-align: right;
}

.site-footer {
  border-top: 1px solid #294039;
  background: var(--forest);
  padding: 36px max(20px, env(safe-area-inset-right)) calc(36px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-inner strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-inner nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    gap: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .site-nav > a,
  .language-control select {
    min-height: 40px;
  }

  .site-nav .nav-play {
    padding: 0 12px;
  }

  .language-control select {
    max-width: 104px;
  }

  .hero {
    min-height: calc(100svh - 56px);
    padding-top: 108px;
    padding-bottom: 86px;
  }

  .hero-image {
    object-position: 50% center;
  }

  .hero-overlay {
    background: rgba(3, 10, 11, 0.5);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-offer {
    font-size: 22px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(320px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .rankings-section {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading h1 {
    font-size: 28px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 13px 8px;
  }

  .ranking-table th:first-child,
  .ranking-table td:first-child {
    width: 44px;
  }

  .ranking-table th:nth-child(3),
  .ranking-table td:nth-child(3) {
    width: 30%;
  }

  .ranking-table th:last-child,
  .ranking-table td:last-child {
    width: 60px;
  }

  .ranking-class {
    font-size: 13px;
  }

  .footer-inner {
    display: grid;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .brand span {
    display: none;
  }

  .site-nav .nav-play {
    display: none;
  }

  .site-nav > a {
    padding: 0 8px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

