/*
Theme Name: Роблокс Промокод
Version: 1.8.0
Text Domain: robloxpromokod
Requires PHP: 8.1
*/
@font-face {
  font-family: Montserrat;
  src: url(assets/fonts/Montserrat.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url(assets/fonts/Roboto.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fafbfc;
  --surface: #ffffff;
  --ink: #242b35;
  --muted: #5e6976;
  --accent: #425fa1;
  --code-ink: #385898;
  --accent-wash: #e9eef8;
  --on-accent: white;
  --line: #dfe4e9;
  --field: #808b9a;
  --wash: #eef1f4;
  --stage: #e7edf1;
  --positive: #446853;
  --coupon-bg: #f0f3fa;
  --coupon-line: #dce2ef;
  --coupon-action: #086648;
  --coupon-hover: #07583e;
  --display: Montserrat, Arial, sans-serif;
  --body: Roboto, Arial, sans-serif;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --paper: #050505;
  --surface: #0d0d0d;
  --ink: #ededed;
  --muted: #adadad;
  --accent: #afc6f5;
  --code-ink: #b9cff8;
  --accent-wash: #212121;
  --on-accent: #202938;
  --line: #272727;
  --field: #858585;
  --wash: #191919;
  --stage: #161616;
  --positive: #a3c6b0;
  --coupon-bg: #121212;
  --coupon-line: #252525;
  --coupon-action: #0c694b;
  --coupon-hover: #107e5b;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: lining-nums tabular-nums;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { padding: 0; border: 0; background: none; }
input[type=checkbox] { accent-color: var(--accent); }
svg { flex-shrink: 0; vertical-align: middle; }
img { display: block; max-width: 100%; height: auto; }
code { font: 400 16px/1.4 var(--body); font-variant-ligatures: none; letter-spacing: .025em; white-space: pre-wrap; overflow-wrap: anywhere; }
small { font-size: 14px; color: var(--muted); }
:where(button, a, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wrap { width: min(1240px, calc(100% - clamp(48px, 7vw, 96px))); margin-inline: auto; }
main { min-height: 55vh; padding-bottom: 72px; }
.sr, .skip:not(:focus), .trap {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { display: block; padding: 12px; background: var(--surface); }
html:not(.js) .js-only { display: none !important; }

/* Masthead and navigation */
.mast-inner, .brand, .desktop-nav, .tools, .icon-btn {
  display: flex; align-items: center;
}
.mast { background: var(--surface); border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 68px; gap: clamp(20px, 3.4vw, 50px); }
.brand {
  gap: 9px; font: 600 20px/1.1 var(--display); letter-spacing: -.035em;
  white-space: nowrap; text-decoration: none;
}
.brand b { font-weight: 400; }
.brand img { width: 32px; height: 32px; }
.desktop-nav { gap: clamp(4px, .75vw, 12px); }
.desktop-nav a {
  display: flex; align-items: center; min-height: 44px;
  padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500;
}
.desktop-nav [aria-current] { color: var(--ink); background: var(--wash); }
.tools { margin-left: auto; gap: 4px; }
.icon-btn { width: 44px; height: 44px; justify-content: center; color: var(--muted); border-radius: 10px; text-decoration: none; }
.tools .js-search { width: auto; padding-inline: 10px; gap: 8px; }
.tools .theme-btn { width: 64px; }
.theme-track { position: relative; display: flex; align-items: center; justify-content: space-around; width: 60px; height: 30px; background: var(--wash); border-radius: 16px; }
.theme-track::before { content: ""; position: absolute; left: 3px; width: 26px; height: 24px; border-radius: 13px; background: var(--surface); box-shadow: 0 1px 3px #0002; }
.theme-track svg { position: relative; }
:root[data-theme=dark] .theme-track::before { transform: translateX(28px); background: #434343; }
:root:not([data-theme=dark]) .theme-track svg:first-child, :root[data-theme=dark] .theme-track svg:last-child { color: var(--ink); }
.menu-open, .mobile-nav { display: none; }
.menu-locked { overflow: hidden; overscroll-behavior: none; }
.menu-locked body { position: fixed; inset-inline: 0; top: var(--menu-offset); width: 100%; }
#mobile-menu, .mobile-nav[open] .menu-sheet {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
  overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink);
}
.menu-sheet {
  display: flex; flex-direction: column; min-height: 100%;
  --menu-edge: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  padding: max(8px, env(safe-area-inset-top)) var(--menu-edge) max(20px, env(safe-area-inset-bottom));
}
.menu-head, .menu-utilities { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-head { position: sticky; top: 0; z-index: 1; flex: none; min-height: 48px; background: var(--paper); }
.menu-head .icon-btn { margin-right: -8px; }
.menu-links { display: grid; padding-block: clamp(32px, 10dvh, 96px) 32px; }
.menu-links a {
  display: flex; align-items: center; min-height: 56px; padding-block: 8px;
  font: 470 clamp(30px, 7vw, 46px)/1.18 var(--display);
  letter-spacing: -.035em; text-decoration: none;
}
.menu-links a[aria-current] { color: var(--accent); }
.menu-utilities { flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.menu-utilities a, .menu-utilities button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.theme-switch { width: 30px; height: 18px; display: inline-flex; align-items: center; padding: 3px; border-radius: 12px; background: var(--field); }
.theme-switch::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); }
:root[data-theme=dark] .theme-switch { background: var(--accent); }
:root[data-theme=dark] .theme-switch::after { transform: translateX(12px); }
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav:not([open]) summary svg:last-child, .mobile-nav[open] summary svg:first-child { display: none; }
.mobile-nav[open] summary { position: fixed; z-index: 2; right: 12px; top: max(10px, env(safe-area-inset-top)); }
.mobile-nav[open] .menu-sheet { z-index: 1; padding: max(8px, env(safe-area-inset-top)) var(--menu-edge) max(20px, env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: no-preference) {
  #mobile-menu[open] .menu-links { animation: menu-enter 170ms ease-out; }
  @keyframes menu-enter { from { opacity: 0; transform: translateY(4px); } }
}

/* Search and home lead */
.home-layout {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: clamp(32px, 4.4vw, 64px); row-gap: clamp(32px, 3vw, 44px);
  padding-top: clamp(24px, 3.2vw, 48px);
}
.home-layout.full { grid-template-columns: 1fr; }
.lead {
  grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr);
  align-items: center; gap: clamp(32px, 6.6vw, 96px);
  padding-bottom: clamp(12px, 1.8vw, 24px);
}
.lead-search { min-width: 0; }
.lead:not(:has(.shortcuts)) { grid-template-columns: 1fr; }
.lead h1 {
  font-size: clamp(36px, 4.1vw, 60px); line-height: 1.08;
  letter-spacing: -.045em; margin: 0 0 clamp(20px, 2.4vw, 36px);
}
.lead h1 span { color: var(--muted); }
.search-form {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  padding: 4px 4px 4px 16px; min-height: 52px; background: var(--wash); border-radius: 12px;
}
.search-form > svg { color: var(--muted); width: 21px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field label {
  position: absolute; inset: 0; align-content: center;
  pointer-events: none; opacity: 0; color: var(--muted); font-size: 18px; line-height: 1.2;
}
.search-form input {
  display: block; border: 0; border-radius: 0; padding: 10px 0; width: 100%;
  height: 50px; font-size: 18px; background: transparent; outline: none;
}
.search-form input::placeholder { color: transparent; }
.search-field input:placeholder-shown + label { opacity: 1; }
.search-form:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search-submit, .inline-link, .feature-link, .primary, .secondary, .copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; line-height: 1.25; text-decoration: none;
}
.search-submit { align-self: stretch; justify-content: center; padding-inline: 16px; border-radius: 9px; background: var(--accent); color: var(--on-accent); }
.shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 16px; }
.shortcuts a { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; color: var(--ink); text-decoration: none; font: 480 15px/1.25 var(--body); }
.shortcuts img, .shortcuts .placeholder { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; flex: none; }
.shortcuts a:first-child {
  grid-column: 1 / -1; position: relative; isolation: isolate; align-items: end; justify-content: space-between;
  height: clamp(160px, 14vw, 208px); overflow: hidden; border-radius: 16px;
  padding: 16px 20px; background: #303439; color: white; font: 700 24px/1.1 var(--display);
}
.shortcuts a:first-child :is(img,.placeholder) { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; border-radius: 0; object-position: center 40%; }
.shortcuts a:first-child::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(transparent 40%,rgb(11 16 24 / 82%)); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--muted);
  font-size: 15px;
}
.chips a:hover { color: var(--accent); }
.inline-link, .feature-link { color: var(--ink); font-size: 16px; font-weight: 500; }
.primary {
  justify-content: center; padding: 8px 17px; background: var(--accent);
  color: var(--on-accent); border-radius: 8px;
}
.secondary { padding: 6px 2px; color: var(--accent); }

/* Entries and section titles */
.feed { grid-area: 2 / 1; min-width: 0; }
.section { margin-top: clamp(48px, 5.6vw, 80px); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.section-head h2, .code-section h2 {
  margin: 0; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.18; letter-spacing: -.035em;
}
.section-head .inline-link { flex: none; }
.feed .section-head { margin: 0; }
.feed-date {
  margin: 4px 0 0; padding-bottom: 12px; font-size: 15px;
  color: var(--muted);
}
.feed-row + .feed-date { padding-top: 24px; }
.feed-row {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center; gap: 24px; min-height: 88px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.feed-game, .game-index a, .catalog-row, .guide-card {
  display: flex; align-items: center; min-width: 0; gap: 16px; text-decoration: none;
}
.game-img {
  display: block; width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 10px;
}
.placeholder { display: grid; place-items: center; background: var(--wash); color: var(--muted); }
.feed-game strong, .catalog-row strong, .game-index strong {
  display: block; overflow-wrap: anywhere; font: 700 18px/1.3 var(--display); letter-spacing: -.015em;
}
.feed-row small, .catalog-row small, .game-index small, .item-body small {
  display: block; line-height: 1.3; margin-top: 3px;
}
.feed-code { min-width: 0; }
.code-value { display: flex; align-items: center; gap: 4px; min-width: 0; }
.code-value code { min-width: 0; }
.code-value .copy { flex: none; }
.feed-code code { font-size: 18px; color: var(--code-ink); font-weight: 700; }
.feed-code small { margin-top: 0; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.copy { display: inline-grid; grid-auto-flow: column; justify-content: center; gap: 0; min-width: 44px; border-radius: 8px; color: var(--accent); font-size: 15px; font-weight: 550; }
.copy.ok { color: var(--positive); }
.copy svg { grid-area: 1 / 1; }
.copy svg:nth-child(2), .copy.ok svg:first-child { opacity: 0; }
.copy.ok svg:nth-child(2) { opacity: 1; }
.copy span { padding-left: 8px; }
.feed .copy span { display: none; }

/* Featured figure and item gallery */
.feature-aside { grid-area: 2 / 2; align-self: start; min-width: 0; }
.feature-aside h2 { margin: 0 0 12px; font-size: clamp(22px,1.8vw,28px); line-height: 1.2; letter-spacing: -.025em; }
.feature-aside h2 a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; text-decoration: none;
}
.feature-aside h2 svg { color: inherit; }
.item-card { min-width: 0; }
.item-stage { overflow: hidden; border-radius: 14px; background: var(--stage); }
.item-photo { position: relative; aspect-ratio: 1.36; }
.item-photo img { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; object-fit: contain; }
.item-body { padding-top: 12px; }
.item-body h3 { margin: 0 0 8px; font-size: 22px; overflow-wrap: anywhere; }
.item-body p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.item-body .item-type { color: var(--ink); }
.item-body .inline-link { gap: 5px; }
.featured .item-stage { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); align-items: end; padding: 12px 16px 12px 24px; }
.featured .item-photo { grid-area: 1 / 2; width: 100%; height: clamp(144px, 14vw, 210px); }
.featured .item-photo img { inset: -6% auto auto -12%; max-width: none; width: 124%; height: 112%; }
.plate-caption { grid-area: 1 / 1; padding-bottom: 12px; }
.plate-caption p { margin: 0 0 4px; font-size: 15px; line-height: 1.25; }
.featured h3 { margin: 0; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.04em; overflow-wrap: anywhere; }
.reward-link { display: inline-block; min-height: 44px; align-content: center; text-decoration: none; }
.reward-link svg { color: var(--muted); vertical-align: .05em; }
.featured .item-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px; align-items: center;
}
.featured .item-body .inline-link { grid-column: 2; grid-row: 1; }
.item-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.game-index, .guide-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4.5vw, 68px);
}
@media (min-width: 881px) {
  .related-games .game-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.game-index a, .guide-card { padding: 14px 0; }
.game-index a > svg:last-child, .guide-card > svg:last-child { margin-left: auto; color: var(--muted); }
.game-index .game-img { width: 42px; height: 42px; }
.guide-card { gap: 16px; min-height: 80px; }
.guide-preview { width: 108px; height: 72px; border-radius: 8px; object-fit: cover; object-position: left top; flex: none; }
.guide-card strong { font: 700 20px/1.25 var(--display); letter-spacing: -.015em; }
.guide-figure { margin: 24px 0; }
.guide-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Catalog and article pages */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; color: var(--muted); font-size: 15px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.page-head { margin: 20px 0 36px; }
.page-head h1, .game-hero h1, .story h1, .prose h1 {
  margin: 0 0 20px; font-size: clamp(34px, 3.7vw, 54px); line-height: 1.12; letter-spacing: -.04em;
}
.page-head p, .game-hero p { max-width: 75ch; }
.filter-panel, .feedback { padding: 0 0 13px; }
.filter-panel > summary, .feedback summary, .faq summary {
  min-height: 44px; align-content: center; font-weight: 600;
}
.filter-panel form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 24px; margin-block: 12px; }
.filter-panel label, .feedback label { display: grid; gap: 2px; color: var(--muted); font-size: 15px; }
.filter-panel input, .filter-panel select, .feedback textarea {
  min-height: 44px; max-width: 100%; min-width: 0; border: 0;
  border-radius: 7px; background: var(--wash); padding: 8px 12px; color: var(--ink); font-size: 16px;
}
.filter-panel select option { color: var(--ink); background-color: var(--surface); }
.alphabet, .pager { display: flex; flex-wrap: wrap; align-items: center; }
.alphabet { display: grid; grid-template-columns: repeat(15,minmax(44px,1fr)); max-width: 840px; margin: 12px 0 24px; }
.alphabet a, .pager a, .pager span {
  display: inline-flex; justify-content: center; align-items: center;
  min-width: 44px; min-height: 44px; text-decoration: none;
}
.alphabet a, .pager a, .pager .current { border-radius: 8px; }
.alphabet [aria-current], .chips [aria-current], .pager .current {
  color: var(--ink); font-weight: 650;
}
.alphabet [aria-current], .pager .current { background: var(--wash); }
.chips { margin: 14px 0 24px; }
.list-heading { padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 26px/1.2 var(--display); letter-spacing: -.025em; }
.list-heading span, .section-head h2 small { color: var(--muted); font: 400 16px var(--body); vertical-align: .24em; letter-spacing: normal; }
.catalog-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(138px, .35fr) 92px 18px;
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.catalog-row .game-img { width: 52px; height: 52px; }
.counts b, .status { font-size: 15px; font-weight: 600; color: var(--positive); }
.catalog-row time { color: var(--muted); font-size: 15px; }
.pager { gap: 5px; margin: 18px 0; }
.pager a { padding: 0 6px; }
.prose { max-width: 70ch; margin: 40px 0; overflow-wrap: anywhere; font: 400 18px/1.65 var(--body); }
.prose :is(nav, button, .feature-link, summary, figcaption) { font-family: var(--body); }
.home-article { margin: clamp(48px, 6vw, 90px) auto 0; }
.prose h2 { font-size: clamp(25px, 2.3vw, 33px); line-height: 1.22; margin: 1.4em 0 .45em; }
.prose h3 { font-size: 22px; margin: 1.2em 0 .45em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose a { color: var(--accent); font-weight: 600; }
.prose :is(h1, h2, h3, h4, h5, h6) a { font-weight: inherit; }
.prose nav { margin-block: 24px; }
.prose nav ul { columns: 2; padding-left: 20px; }
.prose nav li { break-inside: avoid; padding-block: 3px; }
.story { margin-inline: auto; }
.notice, .empty { margin: 18px 0; padding: 14px 18px; background: var(--wash); }

/* Game pages and promo entries */
.game-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,35%); align-items: center; gap: 32px; }
.game-art { grid-area: 1 / 2; }
.game-art img, .game-art .placeholder { display: block; width: 100%; height: clamp(136px,14vw,200px); border-radius: 14px; object-fit: cover; object-position: center 32%; }
.game-title { grid-area: 1 / 1; min-width: 0; }
.game-hero h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.1; letter-spacing: -.035em; margin: 0; overflow-wrap: anywhere; }
.game-hero h1 span { display: block; margin-top: 8px; font-size: .55em; line-height: 1.25; letter-spacing: -.015em; color: var(--muted); }
.game-updated { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.game-overview { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 24px; padding: 20px 0; }
.game-overview p { margin: 0; max-width: 78ch; }
.game-tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 16px;
}
.game-tools span, .game-tools button, .game-tools a { display: inline-flex; align-items: center; gap: 7px; }
.game-tools a { min-height: 44px; color: var(--accent); }
.game-tools a svg { transform: rotate(90deg); }
.sidebar-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(196px, 22%); gap: clamp(22px, 4.4vw, 64px); }
.page-sidebar {
  --sidebar-top: calc(20px + var(--wp-admin--admin-bar--height, 0px));
  position: sticky; top: var(--sidebar-top); align-self: start;
  max-height: calc(100vh - var(--sidebar-top) - 16px);
  max-height: calc(100dvh - var(--sidebar-top) - 16px);
  overflow-y: auto; padding: 5px; margin-inline: -5px;
}
.side-panel { margin-bottom: 32px; }
.side-panel:last-child { margin-bottom: 0; }
.side-panel h2 { font-size: 20px; }
.guide-main { min-width: 0; }
.guide-toc > strong { display: block; margin-bottom: 10px; font: 700 20px/1.3 var(--display); }
.guide-toc ol, .guide-mobile-toc ol { list-style: none; padding: 0; margin: 0; }
.guide-toc a, .guide-mobile-toc nav a { display: block; padding: 8px 0; color: var(--muted); line-height: 1.35; }
.guide-toc a:hover, .guide-mobile-toc a:hover { color: var(--accent); }
.guide-mobile-toc { display: none; }
.guide-mobile-toc summary, .home-toc summary { font-weight: 700; padding: 10px 0; }
.home-toc { margin-top: 8px; font-size: 15px; }
.home-toc nav ol { padding-left: 22px; margin: 0 0 16px; }
.home-toc nav a { display: inline-block; padding-block: 4px; color: var(--accent); }
.guide-frames { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.guide-frames figure { margin: 0; }
.guide-frames img { width: 100%; height: auto; border-radius: 8px; }
.guide-frames figure > a { display: block; cursor: zoom-in; }
.guide-frames figcaption { margin-top: 8px; font: 400 16px/1.45 var(--body); }
.prose .guide-route { display: block; font: 700 18px/1.3 var(--display); margin: 0 0 6px; }
.prose .faq summary h3 { display: inline; margin: 0; font: inherit; font-weight: 700; }
@media (max-width: 880px) {
  .guide-mobile-toc { display: block; padding: 4px 0; margin: 12px 0 20px; border-block: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .guide-frames { grid-template-columns: 1fr; }
}
.side-panel p { margin-bottom: 3px; }
.side-panel > a { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.side-panel > a small { margin-left: auto; }
.code-section { padding-top: 20px; }
.code-section .section-head { flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.code-section .secondary-text { margin: 4px 0 12px; }
.secondary-text, .byline { color: var(--muted); }
.use-btn, .text-btn { min-height: 44px; align-items: center; color: var(--muted); font-size: 15px; }
.use-btn { display: inline-flex; gap: 6px; }
.use-btn::before { content: ""; width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 3px; }
.use-btn[aria-pressed=true]::before { content: "✓"; background: var(--accent); color: var(--on-accent); font: 700 11px/13px var(--body); }
.hide-used .coupon.used { display: none; }
.used-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 15px; }
.feedback { max-width: 760px; margin: 30px 0; }
.feedback textarea { width: 100%; min-height: 86px; margin: 6px 0 16px; padding: 10px; background: var(--surface); }
.faq { border-bottom: 1px solid var(--line); }
.promo-group { margin: 28px 0 56px; }
.promo-group:first-child { margin-top: 0; }
.promo-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding-bottom: 16px; }
.promo-intro h2 { margin: 0; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.18; }
.promo-intro p { margin: 0; color: var(--muted); font-size: 16px; }
.promo-grid + .promo-grid { margin-top: 32px; }
.promo-list-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; margin: 0; color: var(--muted); font-family: var(--body); font-size: 16px; line-height: 1.4; letter-spacing: 0; }
.promo-list-head small { font: 400 14px var(--body); }
/* Reward cards */
.coupon-list { display: grid; gap: 14px; }
.coupon {
  display: grid; grid-template-columns: clamp(86px, 8.5vw, 124px) minmax(0, 1fr) minmax(148px, 24%);
  align-items: center; gap: clamp(16px, 2vw, 30px); min-height: 144px;
  padding: 20px clamp(16px, 2vw, 28px); border: 1px solid var(--coupon-line);
  border-radius: 12px; background: var(--coupon-bg);
}
.coupon-brand { display: grid; justify-items: center; gap: 14px; }
.coupon-wordmark {
  display: inline-flex; align-items: center; color: #e52934;
  font: 850 clamp(17px, 1.55vw, 23px)/1 var(--display); letter-spacing: -.055em;
}
.coupon-wordmark i { width: .73em; height: .73em; margin-inline: .07em; border: .22em solid; transform: rotate(12deg); }
.coupon-kind {
  width: min(108px, 100%); text-align: center; padding: 2px 6px; border-radius: 20px;
  background: #205cb2; color: white; font: 600 13px/1.2 var(--body);
}
.coupon-info { min-width: 0; overflow-wrap: anywhere; }
.coupon-title { margin: 0; font: 700 clamp(18px, 1.5vw, 22px)/1.18 var(--display); letter-spacing: -.02em; }
.coupon-title a { color: inherit; text-decoration: none; }
.coupon-title svg { color: var(--muted); vertical-align: .04em; }
.coupon-reward { margin: 4px 0 0; font: 500 clamp(17px, 1.4vw, 21px)/1.28 var(--body); }
.coupon-condition, .coupon-meta { color: var(--muted); font-size: 15px; line-height: 1.3; }
.coupon-condition { margin: 6px 0 0; }
.coupon-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; margin-top: 16px; }
.coupon-meta span { display: inline-flex; align-items: center; gap: 4px; }
.coupon-meta .use-btn { margin-block: -12px; font-size: 14px; }
.coupon-code { min-width: 0; }
.coupon-code summary { list-style: none; }
.coupon-code summary::-webkit-details-marker { display: none; }
.coupon-action, #code-dialog .copy {
  position: relative; min-height: 50px; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 14px; overflow: hidden; border-radius: 10px;
  background: var(--coupon-action); color: white; font: 560 17px/1.2 var(--body); text-decoration: none;
}
.coupon-action::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 19px; height: 19px;
  border-top-left-radius: 9px; background: linear-gradient(135deg, #0003 50%, #0001 50%);
}
.coupon-link { background: var(--wash); color: var(--accent); }
.coupon-code code, .revealed-code code { display: block; font-weight: 700; color: var(--code-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.coupon-code[open] code { padding: 10px 0; text-align: center; }
.coupon-expired .coupon-info, .coupon.used .coupon-title { color: var(--muted); }
.coupon-expired .coupon-action { background: var(--wash); color: var(--muted); }
#code-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; }
#code-dialog .dialog-head { margin: 0; }
#code-dialog .dialog-title { font-size: 26px; }
#code-dialog-context { margin: 4px 0 20px; color: var(--muted); }
.revealed-code { padding: 20px 12px; border-radius: 9px; background: var(--coupon-bg); text-align: center; }
.revealed-code code { font-size: clamp(20px, 4vw, 28px); user-select: all; }
#code-dialog .copy { width: 100%; margin-top: 12px; }
#code-dialog .copy svg:nth-child(2), #code-dialog .copy.ok svg:first-child { display: none; }
#code-dialog .copy.ok svg:nth-child(2) { display: block; }
#code-dialog .copy span { padding: 0; }
.coupon-message { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.coupon-message:empty { margin: 0; }
html:has(#code-dialog[open]) { overflow: hidden; }
@media (hover: hover) {
  .coupon:not(.coupon-expired) summary:hover, #code-dialog .copy:hover { background-color: var(--coupon-hover); }
  .coupon-title a:hover, .coupon-link:hover { color: var(--accent); }
}

/* Footer, dialogs and feedback */
footer { background: var(--wash); }
.foot-top, .foot-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; padding-block: 34px; }
.foot-top p { margin: 14px 0; color: var(--muted); font-size: 15px; }
.foot-top nav { display: grid; }
.foot-top nav a, .foot-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-bottom { border-top: 1px solid var(--line); align-items: center; padding-block: 12px; color: var(--muted); font-size: 14px; }
.foot-bottom nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10;
  width: max-content; max-width: 90vw; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper);
}
.toast:empty { display: none; }
dialog { width: min(600px, 93vw); border: 0; padding: clamp(20px, 3vw, 36px); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #17171785; }
dialog:not(#mobile-menu) { border-radius: 14px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dialog-head .dialog-title { margin: 0; font: 700 clamp(25px, 3vw, 32px)/1.15 var(--display); letter-spacing: -.025em; }
.dialog-head button { flex: none; }

/* The image viewer uses the entire viewport in either reading theme. */
a[data-gallery-open] { cursor: zoom-in; }
.game-art > a[data-gallery-open], .guide-figure > a[data-gallery-open] { display: block; }
html:has(#image-lightbox[open]) { overflow: hidden; overscroll-behavior: none; scrollbar-gutter: stable; }
dialog#image-lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none; margin: 0; overflow: hidden; border: 0; border-radius: 0;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
           max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  color: #f3f3f3; background: #0b0b0bf5; color-scheme: dark;
}
#image-lightbox::backdrop { background: #050505d9; }
#image-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; }
.lightbox-bar, .lightbox-strip { display: flex; align-items: center; gap: 8px; }
.lightbox-count { margin-right: auto; padding-left: 12px; color: #ccc; font-variant-numeric: tabular-nums; }
#image-lightbox button {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  color: #eee; background: transparent; border-radius: 50%;
}
#image-lightbox button:focus-visible { outline: 2px solid #b9cff8; outline-offset: -2px; }
@media (hover: hover) { #image-lightbox button:hover { background: #272727; } }
#image-lightbox [hidden], .lightbox-zoom [aria-hidden]:last-child,
.lightbox-zoom[aria-pressed=true] [aria-hidden]:first-child { display: none; }
.lightbox-zoom[aria-pressed=true] [aria-hidden]:last-child { display: block; }
.lightbox-stage {
  display: flex; container-type: size; overflow: auto; overscroll-behavior: contain;
  min-width: 0; min-height: 0; touch-action: pan-y pinch-zoom;
}
.lightbox-image {
  --fit-width: min(100cqw, calc(100cqh * var(--image-ratio, 1)), 1440px);
  width: var(--fit-width); height: auto; max-height: 100%; object-fit: contain;
  flex: none; margin: auto; cursor: zoom-in;
}
.lightbox-stage.is-zoomed { touch-action: pan-x pan-y pinch-zoom; }
.lightbox-stage.is-zoomed .lightbox-image {
  width: calc(var(--fit-width) * 2); max-width: none; max-height: none; cursor: zoom-out;
}
.lightbox-error { margin: auto; }
.lightbox-strip { width: min(100%, 860px); margin-inline: auto; }
.lightbox-strip [data-step="-1"] svg { transform: rotate(180deg); }
#lightbox-caption {
  flex: 1; margin: 0; padding: 8px; text-align: center; color: #dedede;
  font: 400 clamp(14px, 1.6vw, 17px)/1.45 var(--body);
  overflow: auto; max-height: 22dvh; overscroll-behavior: contain;
}
#suggestions a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); }
#suggestions:not(:empty) { margin-top: 12px; }

/* Keep the same hit area and text metrics in every pointer state. */
@media (hover: hover) {
  a:hover, .secondary:hover, .use-btn:hover, .text-btn:hover { color: var(--accent); }
  .desktop-nav a:hover { color: var(--ink); background: var(--wash); }
  .icon-btn:hover, .alphabet a:hover, .pager a:hover { color: var(--ink); background-color: var(--wash); }
  .tools .theme-btn:hover { background: transparent; }
  .tools .theme-btn:hover .theme-track, .copy:hover { background-color: var(--accent-wash); }
  .search-submit:hover, .primary:hover { background-color: color-mix(in srgb,var(--accent) 89%,var(--ink)); color: var(--on-accent); }
  .shortcuts a:first-child:hover { color: white; }
  .shortcuts a:first-child:hover::after { opacity: .86; }
  .shortcuts a:not(:first-child):hover { color: var(--accent); }
}
@media (prefers-reduced-motion: no-preference) {
  :where(body, a, button, small, code, table, td, th, tr, input, select, textarea, summary, dialog,
    footer, .foot-bottom, .mast, .menu-head, .menu-sheet, .menu-utilities, .theme-track, .theme-switch,
    .lead, h1 span, .game-updated, .game-tools, .coupon, .coupon-meta, .coupon-condition, .used-filter, .secondary-text, .byline,
    .search-form, .search-form > svg, .search-field label, .feed-row, .feed-date, .item-stage,
    .item-body p, .promo-intro p, .promo-list-head, .revealed-code, .list-heading,
    .faq, .notice, .empty, .placeholder, .crumb, .counts b, time, .toast),
  .theme-switch::after, .theme-track::before {
    transition-property: color, background-color, border-color, text-decoration-color, box-shadow, opacity, transform;
    transition-duration: 220ms;
    transition-timing-function: ease-out;
  }
  .copy svg, .shortcuts a:first-child::after { transition: opacity 160ms ease-out; }
}

@media (max-width: 1120px) {
  .mast-inner { gap: 22px; }
  .desktop-nav { gap: 2px; }
  .tools .js-search span { display: none; }
  .tools .js-search { width: 44px; padding: 0; }
  .lead .search-hint { display: none; }
  .home-layout { column-gap: 35px; }
  .featured .item-body { grid-template-columns: 1fr; }
  .featured .item-body .inline-link { grid-area: auto; justify-self: start; }
  .sidebar-layout { gap: 28px; }
}
@media (max-width: 880px) {
  .desktop-nav, .tools > .theme-btn, .tools .nav-favorite { display: none; }
  .menu-open { display: flex; }
  .mobile-nav { display: block; }
  html:has(.mobile-nav[open]), html:has(.mobile-nav[open]) body { overflow: hidden; overscroll-behavior: none; }
  html:has(.mobile-nav[open]) :is(main, footer, .skip, .tools > a, .mast-inner > .brand) { visibility: hidden; }
  .mast { position: sticky; top: 0; z-index: 5; }
  html { scroll-padding-top: 72px; }
  .tools { margin-left: auto; }
  .mast-inner { min-height: 64px; }
  .home-layout { column-gap: 24px; }
  .lead h1 { font-size: clamp(34px, 5.4vw, 46px); }
  .sidebar-layout { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
  .game-overview { grid-template-columns: 1fr; gap: 4px; }
  .promo-intro p { flex-basis: 100%; order: 1; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top, .foot-bottom { flex-wrap: wrap; gap: 18px; }
  .foot-top > div { width: 100%; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  main { padding-bottom: 44px; }
  .mast-inner { min-height: 60px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand img { width: 30px; height: 30px; }
  .home-layout, .home-layout.full { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
  .lead { grid-template-columns: 1fr; gap: 16px; padding: 0 0 20px; }
  .lead h1 { font-size: clamp(28px, 8.6vw, 44px); line-height: 1.1; margin-bottom: 20px; }
  .search-form { min-height: 48px; gap: 9px; }
  .search-form input { height: 46px; font-size: 16px; }
  .search-field label { font-size: 16px; }
  .search-hint { display: none; }
  .search-form > svg { width: 18px; }
  .shortcuts { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 4px 14px; }
  .shortcuts a:first-child { grid-area: 1 / 1 / span 2; height: 100%; min-height: 104px; padding: 12px; border-radius: 10px; font-size: 17px; }
  .shortcuts a:not(:first-child) { grid-column: 2; }
  .shortcuts a { font-size: 15px; }
  .section-head { margin-bottom: 8px; gap: 10px; }
  .section-head h2 { font-size: 30px; }
  .section-head .inline-link { font-size: 15px; }
  .feed-date { padding-bottom: 9px; margin-top: 0; font-size: 14px; }
  .feed-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0; padding: 16px 0 16px 60px; position: relative;
  }
  .feed-game .game-img { position: absolute; top: 16px; left: 0; width: 48px; height: 48px; }
  .feed-game strong { font-size: 16px; }
  .feed-game small { font-size: 13px; margin-top: 2px; }
  .feed-code { grid-column: 1; grid-row: 2; }
  .feed-code code { font-size: 16px; }
  .feed-code small { margin-top: 1px; font-size: 14px; }
  .feature-aside { align-self: stretch; }
  .featured h3 { font-size: 36px; }
  .featured .item-body { grid-template-columns: minmax(0, 1fr) auto; }
  .featured .item-body .inline-link { grid-column: 2; grid-row: 1; }
  .game-index, .guide-grid { grid-template-columns: 1fr; }
  .promo-group { margin: 28px 0 44px; }
  .item-grid { gap: 24px 13px; }
  .item-body { padding-top: 10px; }
  .item-body h3 { font-size: 20px; }
  .item-body .inline-link, .item-body p { font-size: 14px; }
  .guide-preview { width: 80px; height: 58px; }
  .crumb { margin: 5px 0 13px; gap: 5px; font-size: 14px; }
  .page-head { margin: 14px 0 20px; }
  .filter-panel form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel label:first-child { grid-column: 1 / -1; }
  .filter-panel form .inline-link { justify-self: start; }
  .alphabet { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-block: 5px; margin: 5px 0 16px; }
  .catalog-row { gap: 4px 9px; grid-template-columns: 46px minmax(0, 1fr) minmax(70px, auto); }
  .catalog-row .game-img { width: 42px; height: 42px; grid-row: 1 / 3; }
  .catalog-row > span:nth-child(2) { grid-row: 1 / 3; }
  .catalog-row > svg:last-child { display: none; }
  .catalog-row time { grid-column: 3; font-size: 13px; }
  .counts { max-width: 92px; }
  .counts small { font-size: 13px; }
  .game-hero { grid-template-columns: minmax(0,1fr) minmax(0,34%); gap: 12px; }
  .game-art img, .game-art .placeholder { height: auto; aspect-ratio: 1.15; border-radius: 10px; }
  .game-hero h1 { font-size: clamp(25px, 6.6vw, 36px); }
  .game-hero h1 span { font-size: 16px; margin-top: 6px; }
  .game-updated { margin-top: 16px; font-size: 14px; }
  .game-overview { padding: 16px 0 0; font-size: 16px; }
  .game-tools { gap: 4px 20px; }
  .code-section .section-head h2 { font-size: 24px; }
  .code-section .section-head h2 small { font-size: 14px; }
  .code-section .secondary-text { margin-bottom: 8px; }
  .coupon { grid-template-columns: 78px minmax(0,1fr); gap: 14px; padding: 16px; }
  .coupon-brand { gap: 8px; align-self: start; padding-top: 2px; }
  .coupon-kind { font-size: 12px; }
  .coupon-code, .coupon-link { grid-column: 1 / -1; }
  .coupon-action { min-height: 44px; }
  .coupon-meta { margin-top: 12px; font-size: 14px; }
  .coupon-meta .use-btn { margin-block: -6px; }
  .prose { font-size: 18px; }
  .prose nav ul { columns: 1; }
  .foot-top nav { min-width: 44%; }
}
@media (max-width: 480px) {
  .search-submit { padding-inline: 14px; }
  .search-submit svg { display: none; }
}
@media (max-width: 360px) {
  .brand { font-size: 18px; }
  .feed-row { padding-left: 56px; }
  .section-head h2 { font-size: 26px; }
  .featured .item-body { grid-template-columns: 1fr; }
  .featured .item-body .inline-link { grid-area: auto; }
  .item-grid { grid-template-columns: 1fr; }
}
