:root {
  --bg: #f7f4ff;
  --panel: #ffffff;
  --panel-soft: #eee9fa;
  --text: #ffffff;
  --muted: #7c719f;
  --gold: #ffb237;
  --gold-2: #8b5cff;
  --green: #65d83d;
  --purple: #4b06bd;
  --purple-2: #7a36ef;
  --line: #dcd4ef;
  --content: #faf8ff;
  --ink: #3f08b9;
  --body: #5d5377;
  --max: 1360px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--body);
  background: var(--content);
  line-height: 1.65;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% -10%, rgba(139, 92, 255, .16), transparent 30%),
    radial-gradient(circle at 10% 0%, rgba(101, 216, 61, .08), transparent 22%),
    repeating-radial-gradient(ellipse at center, rgba(82, 38, 165, .035) 0 1px, transparent 1px 8px),
    #faf8ff;
}

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

a { color: inherit; }

.rc-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #5d0ed8 0%, #39028e 100%);
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 28px rgba(54, 4, 142, .26);
}

.rc-header-inner {
  max-width: var(--max);
  min-height: 58px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rc-logo img {
  width: 146px;
  filter: none;
}

.rc-site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text);
}

.rc-site-nav a {
  text-decoration: none;
  color: rgba(255,255,255,.86);
}

.rc-site-nav a:hover {
  color: var(--green);
}

.rc-header-actions {
  display: flex;
  gap: 10px;
}

.rc-btn,
.rc-header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(180deg, #79e954 0%, #4db92e 100%);
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 4px 12px rgba(58, 7, 145, .25);
  text-shadow: 0 2px 0 rgba(35, 86, 19, .45);
}

.rc-btn-dark {
  background: linear-gradient(180deg, #7130e6 0%, #4a0bb4 100%);
  border-color: rgba(255,255,255,.22);
  color: #ffffff;
}

.rc-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #fff;
}

.rc-menu-toggle span {
  display: block;
  height: 3px;
  margin: 7px 6px;
  background: currentColor;
}

.rc-hero {
  background: #f6f2ff;
  color: #fff;
  border-bottom: 1px solid var(--line);
}

.rc-hero-inner {
  min-height: 420px;
  margin: 0 auto;
  padding: 72px max(24px, calc((100vw - var(--max)) / 2)) 68px;
  display: grid;
  grid-template-columns: minmax(300px, 520px) 1fr;
  align-items: center;
  gap: 30px;
  background:
    linear-gradient(90deg, rgba(74, 6, 186, .94) 0%, rgba(94, 42, 211, .84) 45%, rgba(46, 151, 224, .42) 100%),
    url("/assets/img/robocat-hero.png") center top / cover no-repeat;
  border-radius: 0 0 8px 8px;
}

.rc-hero-kicker {
  color: #ffca48;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.15;
}

.rc-hero h1 {
  color: #fff;
  font-size: clamp(34px, 3vw, 50px);
  max-width: 680px;
  text-transform: none;
  text-shadow: 0 3px 0 rgba(49, 0, 126, .35), 0 10px 22px rgba(0,0,0,.25);
}

.rc-hero p {
  max-width: 560px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.9);
  font-size: 18px;
}

.rc-section {
  padding: 64px 20px;
  background: transparent;
}

.rc-container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.rc-review-content,
.rc-side-box,
.rc-faq .rc-container {
  color: var(--body);
}

.rc-content-layout {
  padding-top: 10px;
}

.rc-section h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.rc-games { background: transparent; }

.rc-game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.rc-game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  color: #050505;
  text-decoration: none;
}

.rc-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .18s ease, transform .18s ease;
}

.rc-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  transition: opacity .18s ease;
}

.rc-game-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -42%);
  min-width: 92px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 4px 12px rgba(63, 8, 185, .26);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.rc-game-card:hover img,
.rc-game-card:focus-visible img {
  filter: brightness(.62);
  transform: scale(1.03);
}

.rc-game-card:hover::after,
.rc-game-card:focus-visible::after,
.rc-game-card:hover .rc-game-play,
.rc-game-card:focus-visible .rc-game-play {
  opacity: 1;
}

.rc-game-card:hover .rc-game-play,
.rc-game-card:focus-visible .rc-game-play {
  transform: translate(-50%, -50%);
}

.rc-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.rc-review-content,
.rc-side-box {
  min-width: 0;
}

.rc-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.rc-review-content p,
.rc-review-content li {
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
}

.rc-review-content h2,
.rc-review-content h3 {
  scroll-margin-top: 96px;
}

.rc-review-content h2:not(:first-of-type) {
  margin-top: 48px;
}

.rc-review-content h3 {
  margin-top: 30px;
  font-size: 26px;
}

.rc-review-content ol,
.rc-review-content ul {
  padding-left: 24px;
}

.rc-review-content li + li {
  margin-top: 8px;
}

.rc-table-wrap {
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.rc-review-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
}

.rc-review-content th {
  background: linear-gradient(180deg, #5e18d4, #4604ad);
  color: #ffffff;
  text-align: left;
}

.rc-review-content th,
.rc-review-content td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.rc-note,
.rc-side-box,
.rc-author-box {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  padding: 20px;
}

.rc-note {
  border-color: rgba(255, 178, 55, .65);
  background: #fff8df;
}

.rc-toc-box {
  position: sticky;
  top: 96px;
}

.rc-toc-nav {
  display: grid;
  gap: 10px;
  margin: 14px 0 22px;
}

.rc-toc-nav a {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.rc-toc-nav a:hover {
  color: var(--gold-2);
}

.rc-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rc-pros-cons ul {
  margin: 0;
  padding-left: 22px;
}

.rc-faq {
  background: #f2edfd;
}

.rc-faq-list {
  border-top: 1px solid var(--line);
}

.rc-faq-item {
  border-bottom: 1px solid var(--line);
}

.rc-faq-question {
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.rc-faq-answer {
  display: none;
  padding: 0 0 24px;
}

.rc-faq-item.rc-is-open .rc-faq-answer { display: block; }

.rc-author-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  margin: 22px 0 34px;
}

.rc-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ede7ff url("/assets/img/author-daniel-carter.webp") center / cover no-repeat;
}

.rc-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--gold);
  font-weight: 800;
}

.rc-author-body p {
  margin: 6px 0 12px;
  color: var(--body);
}

.rc-author-body strong {
  display: inline-block;
  color: var(--ink);
  font-size: 18px;
}

.rc-site-footer {
  background: linear-gradient(180deg, #4d08b8 0%, #2c006f 100%);
  color: rgba(255,255,255,.82);
  padding: 44px 20px 22px;
}

.rc-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.rc-trust-row,
.rc-footer-links,
.rc-language-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.rc-language-links {
  gap: 12px;
  margin-top: -12px;
}

.rc-language-links a {
  color: #d7d9df;
  font-weight: 800;
  text-decoration: none;
}

.rc-language-links a:hover {
  color: var(--gold-2);
}

.rc-trust-badge {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
}

.rc-footer-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  border-top: 1px solid #444852;
  padding-top: 28px;
}

.rc-copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #444852;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .rc-content-layout {
    grid-template-columns: 1fr;
  }

  .rc-side-box {
    width: 100%;
  }

  .rc-toc-box {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .rc-header-inner { min-height: 68px; }
  .rc-logo img { width: 128px; }
  .rc-menu-toggle { display: block; }
  .rc-site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    padding: 18px 20px;
    background: #3b058f;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .rc-site-nav.rc-is-open { display: flex; }
  .rc-header-actions { display: none; }
  .rc-hero-inner {
    min-height: 640px;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 80px;
    background:
      linear-gradient(180deg, rgba(74, 6, 186, .28), rgba(74, 6, 186, .96)),
      url("/assets/img/robocat-hero.png") center / cover no-repeat;
  }
  .rc-hero h1 { font-size: 42px; }
  .rc-game-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-pros-cons,
  .rc-footer-copy { grid-template-columns: 1fr; }
  .rc-review-content table {
    min-width: 620px;
    table-layout: auto;
  }
  .rc-author-box { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .rc-section { padding: 46px 18px; }
  .rc-hero-inner { min-height: 580px; }
  .rc-hero h1 { font-size: 34px; }
  .rc-hero p,
  .rc-review-content p,
  .rc-review-content li { font-size: 16px; }
  .rc-faq-question { font-size: 18px; }
}
