:root {
  --bg-root: #02082a;
  --bg-panel: #141c33;
  --bg-panel-2: #10172c;
  --bg-chip: #1c2643;
  --line: #27345d;
  --line-soft: rgba(70, 95, 170, 0.45);
  --text: #dce6ff;
  --muted: #99abd9;
  --title: #ffffff;
  --yellow: #ffcc1f;
  --yellow-soft: #ffc73a;
  --orange: #ff7a2f;
  --red: #ff4a3d;
  --red-soft: rgba(255, 74, 61, 0.18);
  --green: #58dc9c;
  --font-main: "Titillium Web", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at 80% -20%, rgba(255, 84, 56, 0.18), transparent 42%),
    radial-gradient(circle at 8% 12%, rgba(255, 198, 40, 0.12), transparent 34%),
    linear-gradient(170deg, #020826 0%, #02072a 42%, #01051d 100%);
  line-height: 1.7;
  padding-bottom: 84px;
}

img {
  max-width: 100%;
  height: auto;
}

.page-shell {
  width: min(1680px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 1rem;
  padding: 0.5rem;
}

.side-rail {
  position: sticky;
  top: 0.6rem;
  align-self: start;
  min-height: calc(100vh - 1.2rem);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 30, 54, 0.96), rgba(14, 22, 42, 0.96));
  padding: 1rem 0.9rem;
  display: grid;
  gap: 1rem;
}

.side-brand {
  display: inline-flex;
}

.side-brand img {
  width: min(165px, 100%);
  height: auto;
  display: block;
}

.side-menu,
.review-nav {
  display: grid;
  gap: 0.35rem;
}

.side-menu a,
.review-nav a {
  color: #d9e4ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.side-menu a:hover,
.review-nav a:hover {
  border-color: #334e9f;
  background: rgba(27, 40, 75, 0.65);
}

.review-nav h3 {
  margin: 0.2rem 0 0.25rem;
  color: var(--yellow);
  font-family: var(--font-main);
  font-size: 1.02rem;
}

.content-shell {
  min-width: 0;
}

.top-header {
  position: sticky;
  top: 0.5rem;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 11, 37, 0.93);
  backdrop-filter: blur(8px);
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.top-links a {
  color: #f0f5ff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
}

.top-links a:hover {
  border-color: #2e447f;
  background: rgba(30, 45, 82, 0.55);
}

.auth-actions {
  display: inline-flex;
  gap: 0.4rem;
}

.auth-btn {
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
  min-width: 102px;
  text-align: center;
  padding: 0.5rem 0.9rem;
}

.auth-btn-muted {
  color: #ecf2ff;
  border-color: #2e3e6f;
  background: linear-gradient(120deg, rgba(38, 52, 90, 0.92), rgba(30, 41, 72, 0.92));
}

.auth-btn-primary {
  color: #1e1b0f;
  background: linear-gradient(125deg, var(--yellow), #ffc118);
  box-shadow: 0 0 24px rgba(255, 192, 37, 0.35);
}

.hero {
  padding: 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #344985;
  border-radius: 18px;
  background: #080f2f;
  margin-bottom: 0.85rem;
}

.hero-bg {
  margin: 0;
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(4, 11, 35, 0.84) 0%, rgba(5, 11, 38, 0.74) 46%, rgba(5, 11, 38, 0.48) 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 92%);
  padding: clamp(1.2rem, 4vw, 2.3rem);
}

.kicker {
  margin: 0 0 0.3rem;
  color: #ffe188;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

h1,
h2,
h3,
summary {
  margin: 0 0 0.6rem;
  font-family: var(--font-main);
  line-height: 1.15;
}

h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  color: var(--yellow);
  font-size: clamp(1.25rem, 2.6vw, 2.15rem);
}

h3 {
  color: var(--yellow-soft);
  font-size: 1.03rem;
}

.hero-sub {
  margin: 0 0 0.85rem;
  color: #dbe6ff;
  max-width: 62ch;
}

.hero-note {
  margin: 0.7rem 0 0;
  color: #b7c7eb;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cta {
  display: inline-block;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 800;
  padding: 0.68rem 1.24rem;
}

.cta-primary {
  color: #ffffff;
  background: linear-gradient(120deg, #ff4b3d, #ff6435);
  box-shadow: 0 0 24px rgba(255, 78, 61, 0.35);
}

.cta-secondary {
  color: #151108;
  background: linear-gradient(120deg, var(--yellow), #ffb700);
  box-shadow: 0 0 20px rgba(255, 188, 24, 0.28);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(21, 30, 53, 0.95), rgba(17, 26, 47, 0.95));
  padding: 1rem;
  margin-bottom: 0.85rem;
}

/* Improve rendering cost for below-the-fold content. */
.panel {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

p {
  margin: 0 0 0.9rem;
  color: #d8e2fc;
}

a {
  color: #ffcb3f;
}

a:hover {
  color: #ffe294;
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
}

.icon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0.85rem 0;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #2c3f78;
  border-radius: 999px;
  background: rgba(19, 30, 58, 0.88);
  padding: 0.34rem 0.65rem;
}

.icon-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
}

.icon-chip small {
  font-size: 0.8rem;
  color: #e2ebff;
  font-weight: 800;
}

.info-card {
  border: 1px solid #324983;
  border-radius: 13px;
  background: rgba(20, 31, 61, 0.78);
  padding: 0.85rem;
  margin: 0.75rem 0;
}

.info-card--highlight {
  border-left: 4px solid var(--yellow);
}

.info-card--warning {
  border-left: 4px solid var(--red);
  background: var(--red-soft);
}

.ticker-shell {
  overflow: hidden;
  border: 1px solid #31457f;
  border-radius: 12px;
  background: #0b1332;
  padding: 0.45rem 0;
}

.ticker-track {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  padding-left: 0.5rem;
}

.ticker-item {
  white-space: nowrap;
  border: 1px solid #2d3f77;
  border-radius: 999px;
  background: rgba(18, 30, 58, 0.95);
  padding: 0.38rem 0.7rem;
  font-size: 0.84rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.filter-row button {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.79rem;
  color: #d9e4ff;
  border: 1px solid #2f447e;
  border-radius: 999px;
  background: rgba(20, 31, 61, 0.8);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.filter-row .is-active {
  color: #171409;
  border-color: transparent;
  background: linear-gradient(120deg, var(--yellow), #ffbd15);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.game-card {
  border: 1px solid #324680;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(17, 28, 55, 0.95);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, opacity 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.game-card.is-hidden {
  opacity: 0.16;
  transform: scale(0.98);
  pointer-events: none;
}

.game-meta {
  padding: 0.55rem;
}

.game-meta h3 {
  margin-bottom: 0.28rem;
  font-size: 0.98rem;
}

.game-meta p {
  margin: 0;
  color: #b8c8ee;
  font-size: 0.82rem;
}

.game-actions {
  padding: 0 0.55rem 0.62rem;
}

.play-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  color: #201705;
  border: 1px solid #ffc935;
  border-radius: 10px;
  padding: 0.36rem 0.45rem;
  background: linear-gradient(120deg, var(--yellow), #ffb700);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 8px 16px rgba(255, 184, 13, 0.25);
}

.provider-track {
  overflow: hidden;
  border: 1px solid #30467f;
  border-radius: 12px;
  background: #0c1434;
}

.provider-lane {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  padding: 0.6rem;
  animation: ticker-scroll 34s linear infinite;
}

.provider {
  min-width: 116px;
  border: 1px solid #2f447f;
  border-radius: 10px;
  background: rgba(19, 30, 58, 0.9);
  padding: 0.5rem;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.provider img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.provider small {
  color: #dbe5ff;
  font-weight: 800;
  font-size: 0.78rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.section-art {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #2f447f;
  display: block;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.65rem 0;
  font-size: 0.88rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #2c416f;
  padding: 0.58rem 0.62rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: #fff7d3;
  background: rgba(28, 39, 74, 0.95);
}

.comparison-table td {
  color: #d4e0fb;
  background: rgba(16, 26, 51, 0.72);
}

.methodology {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.methodology__item {
  border: 1px solid #2f447f;
  border-radius: 10px;
  background: rgba(16, 28, 54, 0.95);
  padding: 0.65rem 0.45rem;
  text-align: center;
}

.methodology__pct {
  font-family: var(--font-main);
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: 800;
}

.methodology__label {
  color: #b9caef;
  font-size: 0.74rem;
}

details {
  border: 1px solid #2f447f;
  border-radius: 12px;
  background: rgba(16, 28, 54, 0.95);
  overflow: hidden;
  margin-bottom: 0.48rem;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f4f8ff;
  padding: 0.84rem 0.9rem;
}

summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 1.22rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

summary::-webkit-details-marker {
  display: none;
}

details > div {
  padding: 0 0.9rem 0.9rem;
}

.author-bio {
  display: flex;
  gap: 0.9rem;
  border: 1px solid #2f447f;
  border-radius: 12px;
  background: rgba(15, 26, 51, 0.95);
  padding: 0.9rem;
}

.author-bio__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #3a5194;
  flex-shrink: 0;
}

.author-bio__name {
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.98rem;
}

.author-bio__role {
  color: #c1d1f8;
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
}

.author-bio__text {
  color: #d4e0fb;
  font-size: 0.89rem;
}

.footer-panel {
  margin-bottom: 0;
}

.rg-footer {
  border: 1px solid #2f447f;
  border-radius: 12px;
  background: rgba(11, 20, 43, 0.92);
  padding: 0.95rem;
  text-align: center;
}

.rg-footer__warning {
  color: #ff8e65;
  font-family: var(--font-main);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.age-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #ff7f58;
  color: #ffb89d;
  display: grid;
  place-items: center;
  font-family: var(--font-main);
  margin: 0.65rem auto 0;
}

.footer-links {
  text-align: center;
  margin: 0.75rem 0 0;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  background: rgba(5, 10, 31, 0.96);
  border-top: 1px solid #2f447f;
  backdrop-filter: blur(10px);
}

.mobile-cta a {
  flex: 1;
  min-height: 48px;
  display: grid;
  place-items: center;
  color: #f3f7ff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
}

.mt-2 {
  margin-top: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1220px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .side-rail {
    position: static;
    min-height: auto;
  }

  .review-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-copy {
    width: 100%;
  }

  .top-header {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions {
    justify-content: flex-end;
  }

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

  .two-col,
  .methodology {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-nav {
    grid-template-columns: 1fr;
  }

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

  .provider {
    min-width: 104px;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mobile-cta {
    display: flex;
  }
}
