:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --ink: #171719;
  --muted: #6d6d73;
  --line: rgba(0, 0, 0, 0.09);
  --blue: #0878f9;
  --blue-dark: #0068dc;
  --night: #070708;
  --night-soft: #111114;
  --radius: 20px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:where(a, button, summary):focus-visible { outline: 3px solid #68a9ff; outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 252, 0.82); border-bottom: 1px solid var(--line); backdrop-filter: saturate(180%) blur(18px); }
.nav-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.04em; }
.brand span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #424247; text-decoration: none; font-size: 13px; font-weight: 600; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }

.home-hero { color: #fff; background: radial-gradient(circle at 76% 30%, #182d58 0, transparent 35%), linear-gradient(145deg, #111115 0%, #050506 70%); padding: 72px 0 78px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr); align-items: center; gap: 64px; }
.hero-label, .section-kicker, .eyebrow { display: block; color: var(--blue); font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-copy h1 { margin: 15px 0 22px; max-width: 680px; font-size: clamp(3.2rem, 7vw, 6.25rem); line-height: 0.94; letter-spacing: -0.065em; }
.hero-copy h1 span { color: #68a9ff; }
.hero-copy p { max-width: 590px; margin: 0; color: #b7b7bf; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions, .game-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.button-quiet { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14); }
.button-dark { color: #fff; background: #29292e; }

.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(2deg); }
.mosaic-tile { position: relative; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 65px rgba(0,0,0,0.42); text-decoration: none; }
.mosaic-tile:nth-child(even) { transform: translateY(30px); }
.mosaic-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 240ms ease; }
.mosaic-tile:hover img { transform: scale(1.035); }
.mosaic-tile span { position: absolute; inset: auto 0 0; padding: 36px 15px 13px; font-size: 13px; font-weight: 750; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }

.catalog { padding: 68px 0 82px; }
.catalog-section { scroll-margin-top: 72px; margin-bottom: 74px; }
.catalog-section:last-child { margin-bottom: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2, .content-section h2 { margin: 6px 0 0; font-size: clamp(1.8rem, 4vw, 2.55rem); letter-spacing: -0.045em; line-height: 1.05; }
.text-link { color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card { overflow: hidden; background: var(--surface); border: 1px solid rgba(0,0,0,0.055); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,0.035); transition: transform 180ms ease, box-shadow 180ms ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image { position: relative; display: block; overflow: hidden; background: #151518; }
.card-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 240ms ease; }
.game-card:hover .card-image img { transform: scale(1.03); }
.play-badge { position: absolute; right: 13px; bottom: 13px; min-width: 58px; padding: 8px 13px; border-radius: 999px; color: #fff; background: rgba(0,0,0,0.72); backdrop-filter: blur(10px); text-align: center; font-size: 12px; font-weight: 800; }
.card-copy { padding: 18px 18px 20px; }
.card-copy h3 { margin: 6px 0 7px; font-size: 19px; letter-spacing: -0.025em; }
.card-copy h3 a { text-decoration: none; }
.card-copy p { margin: 0; color: var(--muted); font-size: 14px; }

.game-hero { padding: 28px 0 38px; color: #fff; background: linear-gradient(180deg, #101014, #050506); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 24px; color: #8f8f97; font-size: 13px; }
.breadcrumb a { color: #b8b8c1; text-decoration: none; }
.game-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.game-title-row h1 { margin: 8px 0 8px; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.055em; }
.game-title-row p { margin: 0; color: #a9a9b1; font-size: 17px; }
.eyebrow.light { color: #6facff; }
.back-link { color: #aebed5; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 650; }
.game-stage { position: relative; width: min(100%, calc(78vh * var(--game-ratio))); aspect-ratio: var(--game-ratio); margin-inline: auto; overflow: hidden; border: 1px solid rgba(255,255,255,0.11); border-radius: 18px; background: #000; box-shadow: 0 26px 80px rgba(0,0,0,0.48); }
.game-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-controls { justify-content: center; margin-top: 20px; }
.game-help { margin: 14px auto 0; color: #85858e; text-align: center; font-size: 13px; }
.game-help a { color: #b4c8e5; }

.game-content { padding: 12px 0 78px; }
.content-section { padding: 58px 0; border-bottom: 1px solid var(--line); }
.content-section:last-child { border-bottom: 0; }
.intro-section { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 64px; }
.prose p { margin: 0 0 16px; color: #44444a; font-size: 17px; }
.steps { max-width: 850px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: item; }
.steps li { position: relative; min-height: 42px; margin-bottom: 18px; padding: 8px 0 0 58px; color: #44444a; font-size: 16px; counter-increment: item; }
.steps li::before { content: counter(item); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.feature-card { padding: 24px; border-radius: 17px; background: var(--surface); border: 1px solid var(--line); }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tip-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 24px 0 0; list-style: none; }
.tip-list li { position: relative; padding: 20px 20px 20px 48px; border-radius: 16px; background: var(--surface); color: #45454b; }
.tip-list li::before { content: "✓"; position: absolute; left: 20px; top: 19px; color: var(--blue); font-weight: 900; }
.faq { max-width: 900px; }
.faq details { margin-top: 12px; padding: 19px 21px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 750; }
.faq p { margin: 12px 0 0; color: var(--muted); }
.related .game-grid { margin-top: 24px; }

.category-hero, .guide-hero { padding: 72px 0 58px; color: #fff; background: var(--night); }
.category-hero h1, .guide-hero h1 { max-width: 900px; margin: 10px 0 18px; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 0.98; letter-spacing: -0.055em; }
.category-lead, .guide-lead { max-width: 780px; color: #b7b7bf; font-size: 1.125rem; }
.tested-panel { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tested-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.comparison-table-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.comparison-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-byline { color: #9696a0; font-size: 0.875rem; }
.guide-games { display: grid; gap: 16px; margin-top: 24px; }
.guide-game { display: grid; grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr); gap: 28px; align-items: start; }

.legal-page { min-height: calc(100vh - 150px); padding: 76px 0 90px; }
.legal-page > h1 { max-width: 850px; margin: 10px 0 18px; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.06em; }
.legal-lead { max-width: 760px; margin: 0 0 52px; color: var(--muted); font-size: 19px; }
.legal-content { max-width: 780px; }
.legal-content h2 { margin: 38px 0 10px; font-size: 22px; letter-spacing: -0.025em; }
.legal-content p { color: #48484e; font-size: 16px; }
.legal-content a { color: var(--blue); }
.contact-email { font-size: 21px; font-weight: 750; }
.legal-note { margin-top: 34px; padding: 18px; border-radius: 14px; background: #e9e9ed; }

.site-footer { padding: 28px 0 38px; border-top: 1px solid var(--line); color: var(--muted); background: #ececef; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-mosaic { max-width: 650px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-section { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid, .tip-list { grid-template-columns: 1fr; }
  .tested-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-game { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 28px, 1160px); }
  .nav-inner { gap: 8px; }
  .brand { flex: 0 0 auto; }
  .nav-links { display: flex; min-width: 0; align-items: center; gap: 4px; padding: 6px; overflow-x: auto; white-space: nowrap; scroll-padding-inline: 6px; scrollbar-width: none; }
  .nav-links a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding-inline: 2px; font-size: 0.75rem; }
  .nav-links::-webkit-scrollbar { display: none; }
  .home-hero { padding: 52px 0 62px; }
  .hero-copy h1 { font-size: clamp(3.1rem, 18vw, 4.9rem); }
  .hero-mosaic { gap: 8px; }
  .mosaic-tile { border-radius: 12px; }
  .mosaic-tile span { padding: 26px 9px 8px; font-size: 10px; }
  .catalog { padding-top: 52px; }
  .catalog-section { margin-bottom: 58px; }
  .game-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .section-heading .text-link { margin-top: 8px; }
  .game-title-row { align-items: start; flex-direction: column; }
  .game-title-row h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .game-stage { width: min(100%, calc(72vh * var(--game-ratio))); }
  .content-section { padding: 46px 0; }
  .category-hero, .guide-hero { padding: 52px 0 46px; }
  .tested-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 340px) {
  /* Move the last link past the initial clip so keyboard focus triggers native scrolling. */
  .nav-links a:last-child { margin-inline-start: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
