:root {
  color-scheme: light;
  --ink: #101426;
  --muted: #536070;
  --paper: #fff8e5;
  --card: #ffffff;
  --line: #1f2433;
  --blue: #2563eb;
  --cyan: #20c7f7;
  --green: #22c55e;
  --lime: #a3e635;
  --red: #f04438;
  --pink: #ff4fb8;
  --gold: #ffd43b;
  --violet: #7c3aed;
  --shadow: 8px 8px 0 rgba(16, 20, 38, 0.95);
  --soft-shadow: 0 20px 44px rgba(16, 20, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 20, 38, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 20, 38, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #fff8e5 0%, #eefbff 44%, #fff0f8 100%);
  background-size: 32px 32px, 32px 32px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 212, 59, 0.38) 0 12%, transparent 12% 100%),
    linear-gradient(315deg, rgba(32, 199, 247, 0.24) 0 14%, transparent 14% 100%);
  content: "";
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-decoration: none;
}

.brand {
  min-height: 46px;
  padding: 4px 10px 4px 4px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--gold);
  box-shadow: 4px 4px 0 var(--line);
}

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

.brand span,
.footer-brand {
  font-size: 1.08rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.language-menu summary,
.language-list a,
.button,
.back-link,
.card-link,
.footer-links a {
  min-height: 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 2px solid transparent;
  color: #2d3748;
}

.main-nav a:hover,
.language-list a:hover,
.footer-links a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: #f0ff42;
}

.language-menu {
  position: relative;
  justify-self: end;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 3px solid var(--line);
  background: var(--card);
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 7px solid var(--ink);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: "";
}

.language-list {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 6px;
  width: 320px;
  padding: 10px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

[dir="rtl"] .language-list {
  right: auto;
  left: 0;
}

.language-list a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
}

.language-list a[aria-current="true"] {
  border: 2px solid var(--line);
  color: var(--ink);
  background: var(--cyan);
}

main,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(400px, 0.86fr);
  gap: 30px;
  align-items: center;
  padding: 46px 0 34px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
  padding: 28px 0;
}

.eyebrow,
.meta {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  font-size: 4rem;
  text-transform: uppercase;
}

.hero-copy h1 {
  text-shadow: 4px 4px 0 #d8f52d;
}

.hero-text {
  max-width: 760px;
  margin: 22px 0 0;
  color: #253045;
  font-size: 1.18rem;
  line-height: 1.65;
}

.freshness {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  margin: 18px 0 0;
  padding: 0 12px;
  border: 3px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #b6ff4d;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
}

.article-freshness {
  margin: -6px 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 0 18px;
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  color: var(--ink);
  background: var(--pink);
}

.hero-bullets {
  display: grid;
  gap: 9px;
  max-width: 720px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-bullets li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #334155;
  font-weight: 780;
}

[dir="rtl"] .hero-bullets li {
  padding-right: 38px;
  padding-left: 12px;
}

.hero-bullets li::before {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  background: var(--green);
  box-shadow: 3px 3px 0 var(--line);
  transform: translateY(-50%) rotate(8deg);
  content: "";
}

[dir="rtl"] .hero-bullets li::before {
  right: 12px;
  left: auto;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-scene {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto -30px;
  pointer-events: none;
}

.rn-scene-svg {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.hero-feature,
.news-card,
.topic-card,
.coverage-card,
.mini-card,
.faq-item {
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.hero-feature {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-feature a,
.news-card a,
.mini-card a {
  display: block;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.hero-feature img,
.news-card img,
.mini-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 3px solid var(--line);
}

.hero-feature div {
  padding: 22px;
}

.hero-feature h2 {
  margin-bottom: 12px;
  font-size: 1.78rem;
}

.hero-feature p:last-child {
  margin: 0;
  color: var(--muted);
}

.band {
  padding: 38px 0 48px;
  border-top: 3px solid rgba(16, 20, 38, 0.18);
}

.market-band {
  padding-top: 44px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.52fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section-heading h2 {
  font-size: 2.1rem;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.topic-grid,
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-card,
.coverage-card a {
  padding: 18px;
}

.coverage-card {
  padding: 0;
}

.coverage-card a {
  display: block;
  min-height: 100%;
  text-decoration: none;
}

.topic-card:nth-child(4n + 1),
.coverage-card:nth-child(4n + 1) {
  background: #efffe1;
}

.topic-card:nth-child(4n + 2),
.coverage-card:nth-child(4n + 2) {
  background: #e9f7ff;
}

.topic-card:nth-child(4n + 3),
.coverage-card:nth-child(4n + 3) {
  background: #fff0f8;
}

.topic-card:nth-child(4n),
.coverage-card:nth-child(4n) {
  background: #fff6cc;
}

.coverage-card a:hover h3,
.news-card a:hover h3,
.mini-card a:hover h3 {
  color: var(--blue);
}

.topic-card h3,
.coverage-card h3 {
  font-size: 1.15rem;
}

.topic-card p,
.coverage-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.keyword-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: #273244;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

/* Trending-game cards: linked tile with the real Roblox icon */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Our own game gets a highlighted frame */
.game-card-ours {
  border-color: var(--violet);
  box-shadow: 5px 5px 0 var(--violet);
}

.game-card-ours:hover {
  box-shadow: 8px 9px 0 var(--violet);
}

/* "New" sticker in the top-right corner */
.game-badge {
  position: absolute;
  top: -12px;
  right: -10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--line);
  transform: rotate(6deg);
}

.game-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 8px 9px 0 var(--line);
}

.game-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 3px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform 0.12s ease;
}

.game-card:hover .game-icon {
  transform: rotate(-4deg);
}

.game-card .game-card-head h3 {
  margin: 0;
  line-height: 1.15;
}

.game-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.game-card:hover .game-card-cta {
  color: var(--violet);
}

.source-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.source-note a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 6px 0 0 8px;
  padding: 0 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--card);
  font-weight: 850;
  text-decoration: none;
}

[dir="rtl"] .source-note a {
  margin-right: 8px;
  margin-left: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  position: relative;
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(16, 20, 38, 0.92);
}

.news-card:nth-child(3n + 1) {
  background: #fff;
}

.news-card:nth-child(3n + 2) {
  background: #f4fff0;
}

.news-card:nth-child(3n) {
  background: #f2f8ff;
}

.rank {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 3px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--line);
}

[dir="rtl"] .rank {
  right: 12px;
  left: auto;
}

.news-card .meta,
.news-card h3,
.news-card p,
.card-link {
  margin-right: 16px;
  margin-left: 16px;
}

.news-card .meta {
  margin-top: 16px;
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.news-card p:not(.meta) {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.coverage-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 9px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.language-band {
  padding-bottom: 58px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.language-grid a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.language-grid a[aria-current="true"] {
  background: var(--cyan);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  box-shadow: 4px 4px 0 var(--line);
}

.faq-item summary {
  min-height: 58px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.topic-page {
  padding-top: 34px;
}

.listing-page {
  padding-top: 34px;
}

.topic-hero {
  max-width: 900px;
  padding: 0 0 34px;
}

.listing-hero {
  max-width: 980px;
}

.topic-hero h1 {
  font-size: 3rem;
  text-shadow: 4px 4px 0 #d8f52d;
}

.hub-keywords {
  margin-top: 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
}

.pagination a,
.pagination span,
.related-chip-grid a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}

.pagination a,
.pagination span {
  padding: 0 12px;
  background: var(--card);
}

.pagination a:hover,
.related-chip-grid a:hover {
  color: var(--blue);
  background: var(--soft);
}

.pagination a[aria-current="page"] {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.pagination span {
  color: #8a94a3;
}

.related-links-band {
  padding-bottom: 54px;
}

.related-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.related-chip-grid a {
  min-height: 38px;
  padding: 0 11px;
  color: #334155;
  background: var(--card);
}

.tag-chip-grid a {
  background: #fff8e1;
}

.archive-chip-grid a {
  background: #eaf7f0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(280px, 1fr);
  gap: 34px;
  align-items: start;
  padding: 34px 0 60px;
}

.article {
  min-width: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 10px;
  border: 2px solid var(--line);
  color: var(--ink);
  background: var(--card);
}

.article h1 {
  max-width: 820px;
  font-size: 3rem;
  text-transform: none;
}

.lead {
  margin: 20px 0 24px;
  color: #253045;
  font-size: 1.24rem;
  line-height: 1.7;
}

.article-cover-wrap {
  position: relative;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.article-mascot {
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 104px;
  pointer-events: none;
}

.rn-solo-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

[dir="rtl"] .article-mascot {
  right: auto;
  left: -22px;
  transform-origin: left bottom;
}

.article-body,
.info-block,
.sources {
  margin-top: 28px;
}

.article-body p,
.info-block p,
.info-block li,
.sources li {
  color: #2f3a48;
  font-size: 1.05rem;
  line-height: 1.78;
}

.info-block,
.sources {
  padding: 22px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.info-block h2,
.sources h2,
.article-aside h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.sources a {
  color: var(--blue);
  font-weight: 850;
}

.article-aside {
  position: sticky;
  top: 98px;
}

.mini-grid {
  display: grid;
  gap: 12px;
}

.mini-card {
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--line);
}

.mini-card span,
.mini-card h3 {
  margin-right: 14px;
  margin-left: 14px;
}

.mini-card span {
  display: block;
  margin-top: 14px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-card h3 {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 30px 0 42px;
  border-top: 3px solid var(--line);
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.notice {
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  align-content: start;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  background: var(--card);
}

.game-link {
  gap: 8px;
}

.game-link img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid var(--line);
  object-fit: cover;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding: 18px 0 0;
  }

  .hero-visual {
    max-width: 720px;
    margin: 0 auto;
  }

  .topic-grid,
  .coverage-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-aside {
    position: static;
  }

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

  .language-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 154px;
  }

  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    font-size: 1rem;
  }

  .language-list {
    right: 0;
    width: min(320px, calc(100vw - 32px));
    grid-template-columns: 1fr;
  }

  h1,
  .article h1 {
    font-size: 2.25rem;
  }

  .topic-hero h1 {
    font-size: 2.15rem;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy h1,
  .topic-hero h1 {
    text-shadow: 3px 3px 0 #d8f52d;
  }

  .hero-text,
  .lead {
    font-size: 1.08rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-scene {
    max-width: 460px;
    margin: 0 auto -22px;
  }

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

  .section-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .section-heading h2 {
    font-size: 1.62rem;
  }

  .topic-grid,
  .coverage-grid,
  .news-grid,
  .mini-grid,
  .language-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .article-layout {
    padding-top: 24px;
  }

  .article-mascot {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
