@font-face {
  font-family: "GS Interface";
  src: url("../fonts/interface.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #0a1020;
  --ink-2: #121b31;
  --ink-3: #1d2942;
  --paper: #f6f4ee;
  --paper-2: #ebe8df;
  --white: #ffffff;
  --text: #e9eefb;
  --muted: #aeb9cc;
  --dark-text: #141b2b;
  --dark-muted: #596277;
  --cyan: #60e6da;
  --cyan-dark: #05645f;
  --pink: #ff6aa9;
  --lime: #d9ff73;
  --line: rgba(255, 255, 255, 0.16);
  --dark-line: rgba(10, 16, 32, 0.16);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 40px));
  --shadow: 0 24px 70px rgba(4, 8, 18, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f8f7fc;
  color: var(--dark-text);
  font-family: "GS Interface", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

button, input, textarea, select { font: inherit; }

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

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }

h1 { font-size: clamp(3rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }

.section--paper .eyebrow,
.section--paper-2 .eyebrow,
.game-card .eyebrow,
.platform-card .eyebrow { color: var(--cyan-dark); }

.section--paper .method-panel .eyebrow,
.section--paper .contact-aside .eyebrow,
.section--paper-2 .method-panel .eyebrow { color: var(--cyan); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; font-size: 1.06rem; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--dark-muted); font-size: 0.72rem; letter-spacing: 0.06em; }

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(83, 53, 214, 0.25);
  border-radius: 13px;
  background: linear-gradient(145deg, #e2fbf8, #f9d7e8);
  transform: rotate(-4deg);
}

.brand-mark i { position: absolute; display: block; width: 18px; height: 5px; border-radius: 9px; background: var(--cyan); }
.brand-mark i:nth-child(1) { transform: translateY(-7px); }
.brand-mark i:nth-child(2) { transform: translate(5px, 1px) rotate(60deg); background: var(--pink); }
.brand-mark i:nth-child(3) { transform: translate(-5px, 8px) rotate(-60deg); background: var(--lime); }

.primary-nav { justify-self: end; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; white-space: nowrap; }
.primary-nav a {
  padding: 10px 11px;
  color: #4f586d;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9px;
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #3f238e; background: #eee9ff; }

.header-action, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.header-action { background: linear-gradient(135deg, #6d4aff, #f056a4); color: var(--white); box-shadow: 0 8px 20px rgba(109,74,255,.22); }
.header-action:hover { background: linear-gradient(135deg, #5637dd, #d83e8b); }
.button--primary { background: linear-gradient(135deg, #5be4d9, #c7fa72); color: var(--ink); }
.button--primary:hover { background: linear-gradient(135deg, #49cfc5, #b5ee5b); }
.button--secondary { border-color: rgba(10,16,32,.35); color: var(--ink); background: rgba(255,255,255,.58); }
.button--secondary:hover { border-color: #6d4aff; color: #4b2ed0; background: var(--white); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: var(--ink-3); }
.button--quiet { border-color: rgba(255, 255, 255, 0.35); background: transparent; color: var(--white); }

.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--dark-line);
  background:
    radial-gradient(circle at 8% 18%, rgba(91, 228, 217, 0.38), transparent 30%),
    radial-gradient(circle at 86% 5%, rgba(240, 86, 164, 0.30), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #f6f0ff 48%, #fff3f8 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(35,26,73,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(35,26,73,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 70px;
  padding-block: 64px 72px;
}

.hero-copy h1 { max-width: 720px; margin: 18px 0 20px; font-size: clamp(2.55rem, 3.8vw, 3.75rem); }
.hero-copy h1 em { color: #6040d8; font-style: normal; }
.hero-copy > p { max-width: 650px; color: var(--dark-muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-media { position: relative; min-height: 455px; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 48px -70px -48px 120px;
  border-radius: 46% 18% 32% 24%;
  background: linear-gradient(135deg, var(--pink), #7657ff 58%, var(--cyan));
  opacity: .72;
  filter: blur(1px);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 34px 34px 100px 34px;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: -22px;
  bottom: 24px;
  max-width: 280px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  background: rgba(10,16,32,.9);
  box-shadow: var(--shadow);
}
.hero-note strong { display: block; margin-bottom: 4px; color: var(--lime); }
.hero-note span { color: var(--muted); font-size: .9rem; }

.facts-strip { background: var(--white); color: var(--dark-text); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-inline: 1px solid var(--dark-line); }
.fact { padding: 22px 26px; border-right: 1px solid var(--dark-line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: 1.15rem; }
.fact span { color: var(--dark-muted); font-size: .85rem; }

.section { padding-block: 96px; }
.section--paper { background: var(--paper); color: var(--dark-text); }
.section--paper-2 { background: var(--paper-2); color: var(--dark-text); }
.section--dark { background: linear-gradient(125deg, #6547ef 0%, #a63fc5 48%, #ed569d 100%); color: var(--white); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}
.section-head > div { max-width: 760px; }
.section-head h2 { margin: 14px 0 0; }
.section-head p { max-width: 430px; margin-bottom: 5px; color: var(--muted); }
.section--paper .section-head p, .section--paper-2 .section-head p { color: var(--dark-muted); }
.section-head .inline-link { flex: none; }

.inline-link { color: var(--cyan-dark); font-weight: 800; text-decoration-thickness: 2px; }
.section:not(.section--paper):not(.section--paper-2) .inline-link { color: var(--cyan); }
.inline-link:hover { color: #a21b5d; }

.editor-board { display: grid; grid-template-columns: 1.18fr .82fr; gap: 20px; }
.editor-lead { grid-row: span 2; }
.editor-board .game-card:not(.editor-lead) { grid-template-columns: 190px 1fr; }

.home-ranking { display: grid; gap: 12px; }
.rank-row {
  min-height: 126px;
  display: grid;
  grid-template-columns: 74px 150px minmax(0, 1fr) 90px 142px;
  align-items: center;
  gap: 22px;
  padding: 14px;
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(51, 37, 104, .05);
}
.rank-row--featured { border-color: rgba(109,74,255,.28); background: linear-gradient(105deg, #ffffff 38%, #f4f0ff 72%, #fff0f7 100%); }
.rank-row > img { width: 150px; height: 96px; object-fit: cover; border-radius: 12px; }
.rank-number { display: grid; justify-items: center; color: #5c3fd5; }
.rank-number small { color: var(--dark-muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.rank-number strong { font-size: 2rem; line-height: 1; }
.rank-copy h3 { margin: 6px 0; font-size: 1.36rem; }
.rank-copy p { margin: 0 0 5px; color: var(--dark-muted); font-size: .92rem; line-height: 1.45; }
.rank-copy > small { color: #48546b; font-weight: 800; }
.rank-score { text-align: center; color: #4b2dbd; }
.rank-score strong { display: block; font-size: 1.8rem; line-height: 1; }
.rank-score span { font-size: .72rem; font-weight: 800; }

.game-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark-text);
  box-shadow: 0 14px 32px rgba(10,16,32,.07);
}
.game-card[hidden], .empty-state[hidden] { display: none !important; }
.game-card-media { position: relative; min-height: 240px; overflow: hidden; }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card:hover .game-card-media img { transform: scale(1.035); }
.game-card-copy { padding: 28px; }
.game-card-copy h3 { margin: 9px 0 6px; }
.game-card-copy p { color: var(--dark-muted); }
.game-card-copy .game-format { margin-bottom: 14px; color: #33405a; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.game-fit { padding-top: 12px; border-top: 1px solid var(--dark-line); }
.score {
  position: absolute;
  left: 16px;
  bottom: 16px;
  min-width: 67px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
}
.score b { display: block; font-size: 1.35rem; line-height: 1; }
.score small { display: block; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.route-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 16px; }
.route-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: span 5;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 26px;
  background-position: center;
  background-size: cover;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(34, 20, 78, .14);
}
.route-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,12,31,.95) 0%, rgba(8,12,31,.76) 47%, rgba(8,12,31,.12) 100%); transition: opacity .25s ease; }
.route-card::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 45%; background: linear-gradient(transparent, rgba(5,8,24,.54)); }
.route-card--strategy { grid-column: span 7; grid-row: span 2; background-image: url("../img/route-strategy.webp"); }
.route-card--action { grid-column: span 5; background-image: url("../img/route-action.webp"); }
.route-card--casual { grid-column: span 5; background-image: url("../img/route-casual.webp"); }
.route-card--casual::before { background: linear-gradient(90deg, rgba(44,17,52,.94) 0%, rgba(74,27,61,.72) 48%, rgba(74,27,61,.12) 100%); }
.route-card--platform { grid-column: span 5; background-image: url("../img/route-platform.webp"); }
.route-card--browser { grid-column: span 7; background-image: url("../img/route-browser.webp"); }
.route-card:hover { border-color: rgba(255,255,255,.74); transform: translateY(-4px); box-shadow: 0 24px 56px rgba(43, 25, 103, .24); }
.route-card:hover::before { opacity: .88; }
.route-card__content { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.route-card small { align-self: flex-start; padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; background: rgba(5,9,24,.34); color: #f6f7ff; font-weight: 800; backdrop-filter: blur(8px); }
.route-card h3 { max-width: 430px; margin: 22px 0 10px; color: var(--white); }
.route-card p { max-width: 470px; margin: 0; color: #e7ebf8; }
.route-card b { color: var(--lime); }
.route-index { position: absolute; top: 18px; right: 21px; color: rgba(255,255,255,.66); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.route-card--strategy h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); }

.home-contact-section { position: relative; overflow: hidden; background: linear-gradient(135deg, #f3edff, #e9fbf8 54%, #fff1f7); }
.home-contact-section::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(240,86,164,.32), transparent 67%); }
.home-contact-panel { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border: 1px solid rgba(80,53,183,.18); border-radius: 32px; background: var(--white); box-shadow: 0 24px 70px rgba(52,35,121,.12); }
.home-contact-copy { position: relative; overflow: hidden; padding: 50px 44px; background: linear-gradient(145deg, #5537d8 0%, #6f4cf3 46%, #cc3f94 100%); color: var(--white); }
.home-contact-copy::after { content: "?"; position: absolute; right: -12px; bottom: -82px; color: rgba(255,255,255,.09); font-size: 18rem; font-weight: 900; line-height: 1; }
.home-contact-copy .eyebrow { color: var(--lime); }
.home-contact-copy h2 { position: relative; z-index: 1; margin: 20px 0; font-size: clamp(2.1rem, 3.8vw, 3.45rem); }
.home-contact-copy p { position: relative; z-index: 1; color: #f0ecff; }
.home-contact-meta { position: relative; z-index: 1; display: grid; gap: 2px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28); }
.home-contact-meta span { color: #ded7ff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.home-contact-meta a { color: var(--white); font-weight: 800; }
.home-contact-form { padding: 42px; align-content: center; }
.home-contact-form .field textarea { min-height: 128px; }

.method-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  border-radius: 30px;
  border: 1px solid var(--dark-line);
  background: var(--white);
  color: var(--dark-text);
}
.method-intro { padding: 52px; background: linear-gradient(145deg, #5f42e6, #c340a5); color: var(--white); }
.method-intro h2 { margin: 16px 0 20px; }
.method-intro p { color: #f1eafb; }
.method-list { counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; }
.method-item { counter-increment: step; padding: 36px; border-left: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.method-item::before { content: "0" counter(step); color: #9d2c75; font-weight: 900; letter-spacing: .08em; }
.method-item h3 { margin: 26px 0 10px; }
.method-item p { margin: 0; color: var(--dark-muted); }

.page-hero { padding: 68px 0 58px; border-bottom: 1px solid var(--dark-line); background: linear-gradient(125deg, #e9fbf8 0%, #eee9ff 52%, #ffe7f1 100%); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr); gap: 60px; align-items: end; }
.page-hero h1 { max-width: 890px; margin: 14px 0 16px; font-size: clamp(2.4rem, 3.6vw, 3.65rem); }
.page-hero p { max-width: 720px; color: var(--dark-muted); font-size: 1.05rem; }
.page-index { justify-self: end; font-size: clamp(5rem, 10vw, 8rem); font-weight: 900; line-height: .75; color: rgba(92,63,213,.07); -webkit-text-stroke: 1px rgba(92,63,213,.28); }

.catalogue-tools { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; gap: 18px; margin-bottom: 32px; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--dark-line); border-radius: 14px; background: var(--white); }
.search-field span { color: var(--dark-muted); }
.search-field input { width: 100%; min-height: 54px; border: 0; outline: 0; background: transparent; color: var(--dark-text); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: transparent;
  color: var(--dark-text);
  font-weight: 800;
  cursor: pointer;
}
.filter:hover, .filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.catalogue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.catalogue-grid .game-card { grid-template-columns: 1fr; }
.catalogue-grid .game-card-media { min-height: 275px; }
.empty-state { grid-column: 1 / -1; padding: 34px; border: 1px dashed var(--dark-line); border-radius: var(--radius); background: var(--white); color: var(--dark-muted); }

.feature-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.feature-row + .feature-row { margin-top: 84px; padding-top: 84px; border-top: 1px solid var(--dark-line); }
.feature-row h2 { margin: 14px 0 18px; }
.feature-row > p, .feature-row .lede { color: var(--dark-muted); font-size: 1.08rem; }
.section--dark .feature-row > p, .section--dark .feature-row .lede { color: #f5edff; }
.section--dark .detail-item { background: rgba(255,255,255,.94) !important; border-color: rgba(255,255,255,.7) !important; box-shadow: 0 16px 40px rgba(58,26,104,.14); }
.section--dark .detail-item h3 { color: var(--dark-text) !important; }
.section--dark .detail-item p { color: var(--dark-muted) !important; }
.detail-list { display: grid; gap: 12px; }
.detail-item { padding: 22px 24px; border: 1px solid var(--dark-line); border-radius: 16px; background: rgba(255,255,255,.55); }
.detail-item h3 { margin-bottom: 8px; font-size: 1.22rem; }
.detail-item p { margin: 0; color: var(--dark-muted); }

.platform-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.platform-card { grid-column: span 6; min-height: 320px; padding: 34px; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--white); }
.platform-card:nth-child(2), .platform-card:nth-child(3) { grid-column: span 3; }
.platform-card h2 { margin: 38px 0 14px; font-size: 2rem; }
.platform-card p { color: var(--dark-muted); }
.platform-card ul { padding-left: 20px; }

.score-table { overflow-x: auto; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--white); }
.score-table table { width: 100%; border-collapse: collapse; min-width: 720px; }
.score-table th, .score-table td { padding: 20px 22px; text-align: left; border-bottom: 1px solid var(--dark-line); }
.score-table th { background: var(--ink); color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.score-table tr:last-child td { border-bottom: 0; }
.score-table td strong { color: var(--cyan-dark); }

.faq-list { display: grid; gap: 12px; max-width: 920px; }
.faq-item { border: 1px solid var(--dark-line); border-radius: 16px; background: var(--white); }
.faq-item h2 { margin: 0; font-size: 1.2rem; }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 0; background: transparent; color: var(--dark-text); font-weight: 850; text-align: left; cursor: pointer; }
.faq-question::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { padding: 0 24px 22px; color: var(--dark-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; }
.contact-aside { padding: 34px; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--ink); color: var(--text); }
.contact-aside h2 { font-size: 2rem; }
.contact-aside p { color: var(--muted); }
.contact-aside a { color: var(--cyan); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--dark-text); font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #a7afbd;
  border-radius: 12px;
  background: var(--white);
  color: var(--dark-text);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #626c7f; opacity: 1; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a10f44; }
.field-error { min-height: 1.2em; color: #8b123e; font-size: .85rem; }
.honeypot { position: absolute; left: -10000px; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.form-status { margin: 0; color: var(--dark-muted); }
.form-status[data-state="success"] { color: #0a6b50; }
.form-status[data-state="error"] { color: #8b123e; }

.legal { max-width: 900px; }
.legal section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--dark-line); }
.legal h2 { font-size: 2rem; }
.legal h3 { margin-top: 30px; }
.legal p, .legal li { color: var(--dark-muted); }

.notice-panel { padding: 32px; border: 1px solid rgba(96,230,218,.35); border-left: 5px solid var(--cyan); border-radius: 16px; background: rgba(96,230,218,.07); }
.notice-panel h2 { font-size: 1.6rem; }
.notice-panel p:last-child { margin-bottom: 0; }

.site-footer { padding: 76px 0 28px; border-top: 1px solid var(--line); background: #070b14; }
.site-footer { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; gap: 70px; }
.brand--footer { margin-bottom: 22px; }
.footer-brand > p { max-width: 480px; color: var(--muted); }
.footer-contact { font-size: .9rem; }
.footer-contact a { color: var(--text); }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-nav h2 { font-size: .78rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.disclaimer { display: grid; grid-template-columns: 210px 1fr; gap: 32px; margin-top: 58px; padding: 24px; border: 1px solid rgba(255,106,169,.34); border-radius: 16px; background: rgba(255,106,169,.055); }
.disclaimer strong { color: var(--pink); text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; }
.disclaimer p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-bottom { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--cyan); text-decoration: underline; cursor: pointer; }

.consent[hidden] { display: none !important; }
.consent { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3,6,12,.78); color: var(--text); }
.consent-card { width: min(580px, 100%); padding: 36px; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: var(--ink-2); box-shadow: var(--shadow); }
.consent-card h2 { margin: 14px 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.consent-card > p { color: var(--muted); }
.consent-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); font-weight: 700; }
.consent-option input { width: 20px; height: 20px; accent-color: var(--cyan-dark); }
.consent-option span { color: var(--muted); font-size: .82rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.success-card { max-width: 780px; padding: 54px; border-radius: 30px; background: var(--white); color: var(--dark-text); }
.success-card p { color: var(--dark-muted); }

@media (min-width: 1041px) and (max-width: 1220px) {
  .header-inner { gap: 14px; }
  .primary-nav { gap: 1px; }
  .primary-nav a { padding: 8px 7px; font-size: .8rem; }
  .header-action { min-height: 44px; padding: 10px 14px; font-size: .84rem; white-space: nowrap; }
  .brand small { display: none; }
}

@media (max-width: 1040px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .primary-nav { position: fixed; inset: 82px 0 auto; display: none; padding: 18px 20px 26px; border-bottom: 1px solid var(--dark-line); background: var(--white); box-shadow: 0 18px 36px rgba(32,22,72,.12); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 14px; }
  .header-action { justify-self: end; }
  .menu-toggle { width: 46px; height: 46px; justify-self: end; display: grid; align-content: center; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: transparent; }
  .menu-toggle span:not(.visually-hidden) { width: 100%; height: 2px; background: var(--ink); }
  .header-inner .menu-toggle { grid-column: 2; grid-row: 1; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .editor-board { grid-template-columns: 1fr; }
  .editor-lead { grid-row: auto; }
  .method-panel { grid-template-columns: 1fr; }
  .route-grid { grid-auto-rows: 210px; }
  .home-contact-panel { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 64px 120px minmax(0, 1fr) 78px; }
  .rank-row > img { width: 120px; height: 84px; }
  .rank-row .button { grid-column: 3 / 5; justify-self: start; min-height: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand small { display: none; }
  .header-action { display: none; }
  .primary-nav { top: 72px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 58px 68px; }
  .hero-media { min-height: 390px; }
  .hero-media::before { inset: 60px -40px -20px 70px; }
  .hero-note { right: 12px; bottom: -24px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
  .section { padding-block: 68px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .editor-board .game-card, .editor-board .game-card:not(.editor-lead), .game-card { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 52px 92px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .rank-row > img { width: 92px; height: 78px; }
  .rank-copy p { display: none; }
  .rank-copy h3 { font-size: 1.08rem; }
  .rank-score { grid-column: 1; grid-row: 2; }
  .rank-row .button { grid-column: 2 / 4; grid-row: 2; width: auto; justify-self: stretch; }
  .game-card-media { min-height: 250px; }
  .route-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .route-card, .route-card--strategy, .route-card--action, .route-card--casual, .route-card--platform, .route-card--browser { grid-column: auto; grid-row: auto; min-height: 280px; }
  .route-card--strategy h3 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .home-contact-copy, .home-contact-form { padding: 34px 26px; }
  .method-intro { padding: 34px 26px; }
  .method-list { grid-template-columns: 1fr; }
  .method-item { padding: 28px 26px; border-left: 0; }
  .page-hero { padding: 58px 0 48px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-index { justify-self: start; font-size: 5rem; }
  .catalogue-tools { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .feature-row, .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .feature-row + .feature-row { margin-top: 58px; padding-top: 58px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card, .platform-card:nth-child(2), .platform-card:nth-child(3) { grid-column: auto; min-height: auto; }
  .contact-form { grid-template-columns: 1fr; }
  .field--full, .form-actions { grid-column: auto; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-brand { grid-column: auto; }
  .disclaimer { grid-template-columns: 1fr; gap: 12px; }
  .footer-bottom { flex-direction: column; }
  .consent-card { padding: 28px 22px; }
  .consent-option { grid-template-columns: auto 1fr; }
  .consent-option span { grid-column: 2; }
}

@media (max-width: 440px) {
  .hero-media { min-height: 330px; }
  .hero-note { position: relative; right: auto; bottom: auto; margin: -48px 14px 0; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .fact:last-child { border-bottom: 0; }
  .button { width: 100%; }
  .hero-actions { display: grid; }
  .footer-nav a { padding-block: 3px; }
}

/* Gaming Guide UK */
.theme-frame {
  --ink: #111111;
  --ink-2: #191919;
  --ink-3: #242424;
  --paper: #f1eee5;
  --paper-2: #ded9cb;
  --dark-text: #161616;
  --dark-muted: #5e5b54;
  --cyan: #ff6a3d;
  --cyan-dark: #8a2e13;
  --pink: #ff5b36;
  --lime: #3157ff;
  --radius: 0;
  --shell: min(1320px, calc(100% - 54px));
  background: #f1eee5;
}
.theme-frame h1, .theme-frame h2, .theme-frame h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.035em; }
.theme-frame h1 { font-size: clamp(3rem,5vw,5rem); }
.theme-frame .page-hero h1 { font-size: clamp(3rem,4.4vw,4.4rem); }
.frame-header { position: relative; background: #f1eee5; border-top: 10px solid #111; border-bottom: 0; }
.frame-masthead { min-height: 108px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
.frame-issue { display: grid; text-align: right; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; }
.frame-issue span { color: #5e5b54; }
.frame-issue b { font-size: .9rem; }
.theme-frame .brand-mark { border: 0; border-radius: 0; background: #3157ff; transform: none; }
.theme-frame .brand-mark::after { content:""; position:absolute; inset:6px; border:3px solid #f1eee5; }
.theme-frame .brand-mark i { display: none; }
.frame-nav-band { border-block: 2px solid #111; background: #111; }
.frame-nav-band .primary-nav { min-height: 54px; justify-self: auto; }
.theme-frame .primary-nav a { color: #f1eee5; border-radius: 0; border-right: 1px solid #454545; }
.theme-frame .primary-nav a:hover, .theme-frame .primary-nav a[aria-current="page"] { background: #3157ff; color: #fff; }
.theme-frame .frame-nav-band .header-action { margin-left: auto; min-height: 38px; border-radius: 0; background: #ff6a3d; color: #111; box-shadow: none; }
.theme-frame .button { border-radius: 0; text-transform: uppercase; letter-spacing: .06em; font-size: .84rem; }
.theme-frame .button--primary { background: #ff6a3d; color: #111; }
.theme-frame .button--secondary { border-color: #fff; color: #fff; background: rgba(0,0,0,.3); }
.frame-hero { padding: 48px 0; background: #111; }
.frame-hero-card { position: relative; min-height: 680px; overflow: hidden; border: 2px solid #f1eee5; }
.frame-hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-hero-card::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg,rgba(0,0,0,.88) 0 48%,rgba(0,0,0,.18) 75%); }
.frame-hero-overlay { position: relative; z-index: 1; width: 54%; min-height: 680px; display: flex; flex-direction: column; justify-content: center; padding: 58px; color: #fff; }
.frame-hero-overlay > span { color: #ff9b7d; font-weight: 900; text-transform: uppercase; letter-spacing: .15em; }
.frame-hero-overlay h1 { margin: 18px 0 24px; }
.frame-hero-overlay p { max-width: 640px; color: #ded8ce; font-size: 1.14rem; }
.frame-hero-score { position: absolute; z-index: 2; right: 26px; top: 26px; width: 116px; height: 116px; display: grid; place-items: center; background: #3157ff; color: #fff; font-size: 2.5rem; line-height: .75; text-align: center; }
.frame-hero-score small { font: 700 .65rem "GS Interface",sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.frame-ticker { overflow: hidden; padding: 14px 0; border-bottom: 2px solid #111; background: #3157ff; color: #fff; }
.frame-ticker > div { width: var(--shell); margin: auto; display: flex; justify-content: space-between; gap: 28px; }
.frame-ticker span { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.frame-title { display: grid; grid-template-columns: .45fr 1fr; gap: 60px; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 4px solid #111; }
.frame-title p { color: #8a2e13; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.frame-title h2 { margin: 0; }
.frame-ranking { display: grid; grid-template-columns:1fr; gap: 28px; }
.frame-entry, .frame-entry--wide, .frame-entry:nth-child(even) { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:flex-end; min-height:390px; border: 2px solid #111; background: #111; box-shadow:10px 10px 0 rgba(49,87,255,.24); }
.frame-entry::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(0,0,0,.94),rgba(0,0,0,.62) 56%,rgba(0,0,0,.08)); }
.frame-entry:nth-child(even)::after { background:linear-gradient(270deg,rgba(0,0,0,.94),rgba(0,0,0,.62) 56%,rgba(0,0,0,.08)); }
.frame-entry-image, .frame-entry--wide .frame-entry-image { position: absolute; inset:0; height:auto; min-height:100%; overflow: hidden; }
.frame-entry-image img { width: 100%; height: 100%; object-fit: cover; }
.frame-entry-image span { position: absolute; z-index:3; left: 0; top: 0; min-width: 58px; padding: 12px; background: #3157ff; color: #fff; font: 900 1.3rem "GS Interface",sans-serif; text-align: center; }
.frame-entry-copy { position:relative; z-index:2; width:min(640px,72%); display: flex; flex-direction: column; margin:34px; padding: 28px; border:1px solid rgba(255,255,255,.55); background:rgba(17,17,17,.76); color:#fff; backdrop-filter:blur(8px); }
.frame-entry:nth-child(even) .frame-entry-copy { margin-left:auto; }
.frame-entry-copy small { color: #ff9b7d; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.frame-entry-copy h3 { margin: 10px 0; }
.frame-entry-copy p { color: #ded8ce; font-size: .98rem; }
.frame-entry-copy > div { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: auto; border-top: 1px solid #bdb7a9; padding-top: 16px; }
.frame-entry-copy b { font-size: 1.7rem; }
.frame-entry-copy b i { font-size: .7rem; font-style: normal; }
.frame-entry-copy a { color: #ff9b7d; font-weight: 900; }
.frame-method { background: #3157ff; color: #fff; }
.frame-method-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
.frame-method-grid > * { min-height: 250px; padding: 30px; border-right: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45); }
.frame-method-grid header { grid-row: span 2; background: #111; }
.frame-method-grid header > span { color: #ff9b7d; text-transform: uppercase; letter-spacing: .12em; }
.frame-method-grid header a { color: #ff9b7d; font-weight: 900; }
.frame-method-grid article b { color: #ff9b7d; }
.frame-method-grid article p { color: #fff; }
.frame-method-grid article { position:relative; isolation:isolate; overflow:hidden; background-position:center; background-size:cover; }
.frame-method-grid article::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(145deg,rgba(17,17,17,.92),rgba(49,87,255,.55)); }
.frame-method-grid article:nth-of-type(1) { background-image:url("../img/route-casual.webp"); }
.frame-method-grid article:nth-of-type(2) { background-image:url("../img/route-action.webp"); }
.frame-method-grid article:nth-of-type(3) { background-image:url("../img/route-platform.webp"); }
.frame-method-grid article:nth-of-type(4) { background-image:url("../img/route-strategy.webp"); }
.frame-contact { background: #ff6a3d; }
.frame-contact-shell { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; }
.frame-contact-shell > div > span { text-transform: uppercase; font-weight: 900; letter-spacing: .12em; }
.frame-contact .variant-contact-form { padding: 34px; border: 2px solid #111; background: #f1eee5; }
.frame-footer { background: #111; }
.frame-footer .brand small { color: #d3d0c8; }
.theme-frame .score { color: #fff; }
.frame-footer-index { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid #4b4b4b; }
.frame-footer-index nav { display: grid; grid-template-columns: repeat(5,1fr); align-items: center; gap: 12px; padding: 22px 0; }
.frame-footer-index nav + nav { border-left: 1px solid #4b4b4b; padding-left: 28px; }
.frame-footer-index span { color: #ff9b7d; font-weight: 900; text-transform: uppercase; }
.frame-footer-index a { color: #d3d0c8; text-decoration: none; }
.frame-footer-body { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding-top: 54px; }
.frame-disclaimer { margin: 0; border-radius: 0; border-color: #3157ff; background: rgba(49,87,255,.12); }
.theme-frame .catalogue-grid { grid-template-columns: 1fr 1fr; }
.theme-frame .game-card { border-radius: 0; border: 2px solid #111; }
.theme-frame .catalogue-tools { border-radius: 0; border: 2px solid #111; background: #fff; }
.frame-consent { background:rgba(0,0,0,.82); }
.frame-consent-card { width:min(820px,100%); display:grid; grid-template-columns:190px 1fr; padding:0; border:2px solid #f1eee5; border-radius:0; background:#f1eee5; color:#111; box-shadow:18px 18px 0 #3157ff; }
.frame-consent-card aside { display:flex; flex-direction:column; padding:32px 26px; background:#111; color:#fff; text-transform:uppercase; }
.frame-consent-card aside b { color:#ff9b7d; font-size:.74rem; letter-spacing:.12em; }
.frame-consent-card aside strong { margin:auto 0; font:600 2.1rem/1.05 Georgia,serif; }
.frame-consent-card aside span { color:#c9c4ba; font-size:.72rem; }
.frame-consent-copy { padding:34px; }
.frame-consent-copy h2 { margin:0 0 14px; color:#111; font-size:clamp(1.9rem,3.8vw,2.8rem); }
.frame-consent-copy > p { color:#5e5b54; }
.frame-consent .consent-option { color:#111; border-color:#aaa397; }
.frame-consent .consent-option span { color:#5e5b54; }
.frame-consent .button--quiet { border:2px solid #111; color:#111; background:transparent; }

@media (max-width: 1040px) {
  .frame-header .primary-nav { top: 162px; background: #111; }
  .frame-hero-overlay { width: 68%; }
  .frame-method-grid { grid-template-columns: 1fr 1fr; }
  .frame-method-grid header { grid-row: auto; grid-column: span 2; }
  .frame-footer-index { grid-template-columns: 1fr; }
  .frame-footer-index nav + nav { border-left: 0; border-top: 1px solid #4b4b4b; padding-left: 0; }
}
@media (max-width: 760px) {
  .theme-frame { --shell: min(100% - 28px,1320px); }
  .theme-frame .page-hero h1 { font-size: clamp(2.2rem,10vw,2.6rem); }
  .frame-masthead { min-height: 76px; grid-template-columns: 1fr auto; }
  .frame-issue { display: none; }
  .frame-header .primary-nav { top: 76px; }
  .frame-nav-band { border: 0; }
  .frame-hero-card, .frame-hero-overlay { min-height: 560px; }
  .frame-hero-overlay { width: 100%; padding: 30px; justify-content: flex-end; }
  .frame-hero-overlay > span { max-width: 210px; font-size: .66rem; line-height: 1.35; }
  .frame-hero-overlay h1 { font-size: clamp(2.25rem,11vw,2.55rem); }
  .frame-hero-card::after { background: linear-gradient(0deg,rgba(0,0,0,.92),rgba(0,0,0,.1)); }
  .frame-hero-score { display: none; }
  .frame-ticker > div { overflow: hidden; }
  .frame-title { grid-template-columns: 1fr; gap: 10px; }
  .theme-frame .catalogue-grid { grid-template-columns: 1fr; }
  .frame-entry, .frame-entry--wide, .frame-entry:nth-child(even) { min-height:360px; }
  .frame-entry::after, .frame-entry:nth-child(even)::after { background:linear-gradient(0deg,rgba(0,0,0,.96),rgba(0,0,0,.2)); }
  .frame-entry-image, .frame-entry--wide .frame-entry-image { min-height:100%; }
  .frame-entry-copy, .frame-entry:nth-child(even) .frame-entry-copy { width:auto; margin:70px 16px 16px; padding:20px; }
  .frame-method-grid, .frame-contact-shell, .frame-footer-body { grid-template-columns: 1fr; }
  .frame-method-grid header { grid-column: auto; }
  .frame-footer-index nav { grid-template-columns: 1fr 1fr; }
  .frame-footer-index span { grid-column: 1/-1; }
  .frame-consent-card { grid-template-columns:1fr; box-shadow:8px 8px 0 #3157ff; }
  .frame-consent-card aside { flex-direction:row; align-items:center; gap:18px; padding:18px 22px; }
  .frame-consent-card aside strong { margin:0; margin-left:auto; font-size:1.4rem; }
  .frame-consent-card aside span { display:none; }
  .frame-consent-copy { padding:26px 22px; }
}
