/* ==========================================================================
   YonoGames — public website styles
   1. Fonts & tokens   2. Base   3. Buttons & small parts   4. Header
   5. Hero   6. Sections & cards   7. Game page   8. Listing pages
   9. Content pages   10. Footer   11. Responsive
   ========================================================================== */

/* 1. Fonts & design tokens ------------------------------------------------ */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --green: #087443;
  --green-600: #0A8A50;
  --green-800: #064E38;
  --green-900: #043A2A;
  --green-50: #EAF5EF;
  --green-100: #D5EBDF;
  --gold: #F7C948;
  --gold-500: #E6A92C;
  --gold-700: #A06A0E;
  --gold-50: #FFF8E3;
  --cyan: #25C8DF;
  --cyan-700: #0B7F92;
  --bg: #F6F8F7;
  --card: #FFFFFF;
  --text: #17251F;
  --muted: #5A6B63;
  --line: #E2E9E5;
  --danger: #C8102E;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(16, 44, 32, .06), 0 2px 8px rgba(16, 44, 32, .05);
  --shadow: 0 2px 4px rgba(16, 44, 32, .05), 0 10px 26px -8px rgba(16, 44, 32, .16);
  --shadow-lg: 0 4px 10px rgba(16, 44, 32, .06), 0 24px 48px -16px rgba(10, 48, 33, .28);
  --icon-shadow: 0 2px 3px rgba(0, 0, 0, .12), 0 10px 22px -8px rgba(0, 0, 0, .38);
  --container: 1220px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.text-gold {
  background: linear-gradient(180deg, #FFF1B5 0%, #F7C948 45%, #E6A92C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-sample { color: var(--gold-700); font-weight: 600; }

/* 3. Buttons, chips, badges, notices -------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.25em; border-radius: 14px; border: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .9em 1.5em; font-size: 1.05rem; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--gold {
  color: #3B2804;
  background: linear-gradient(180deg, #FFE27A 0%, var(--gold) 45%, var(--gold-500) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 20px -8px rgba(230, 169, 44, .8);
}
.btn--gold:hover { color: #2A1C02; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 24px -8px rgba(230, 169, 44, .9); }
.btn--green { color: #fff; background: linear-gradient(180deg, var(--green-600), var(--green)); box-shadow: 0 6px 16px -8px rgba(8, 116, 67, .8); }
.btn--green:hover { color: #fff; background: linear-gradient(180deg, var(--green), var(--green-800)); }
.btn--soft { color: var(--green-800); background: var(--green-50); }
.btn--outline { color: var(--green-800); background: #fff; box-shadow: inset 0 0 0 1.5px var(--green-100); }
.btn--outline:hover { color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn--dark { color: #fff; background: var(--green-900); }
.btn--dark:hover { color: #fff; background: #032B1F; }

.chip {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .25em .7em; border-radius: 999px;
  background: var(--green-50); color: var(--green-800);
  font-size: .8rem; font-weight: 600; text-decoration: none; line-height: 1.5;
}
a.chip:hover { background: var(--green-100); color: var(--green-900); }
.badge {
  position: absolute; top: 10px; left: 10px;
  padding: .2em .6em; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge--sample { background: rgba(255, 255, 255, .92); color: var(--gold-700); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

.eyebrow {
  margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}
.eyebrow--gold-dark { color: var(--gold-700); }

.notice {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 1rem 1.15rem; border-radius: var(--radius); margin: 0 0 1.25rem;
  background: #fff; border: 1px solid var(--line); font-size: .93rem; color: var(--muted);
}
.notice .i { color: var(--green); margin-top: .15em; width: 1.25em; height: 1.25em; }
.notice strong { color: var(--text); }
.notice--soft { background: var(--green-50); border-color: var(--green-100); margin-top: 1.5rem; }
.notice--gold { background: var(--gold-50); border-color: #F6E2A6; }
.notice--gold .i { color: var(--gold-700); }
.notice--success { background: #E8F7EF; border-color: #BFE6CF; color: #0B5132; }
.notice--error { background: #FDECEF; border-color: #F5C2CB; color: #8A0F24; }
.notice--error .i { color: var(--danger); }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(226, 233, 229, .9);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 10px -4px rgba(6, 78, 56, .6); }
.brand-logo { height: 40px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1; }
.brand-word__a { color: var(--green-800); }
.brand-word__b {
  background: linear-gradient(180deg, #E9B53C 0%, #C98A16 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand--light .brand-word__a { color: #fff; }
.brand--light .brand-word__b { background: linear-gradient(180deg, #FFE68A, #E6A92C); -webkit-background-clip: text; background-clip: text; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: #33443C;
}
.main-nav a:hover { background: var(--green-50); color: var(--green-800); }
.main-nav a[aria-current="page"] { color: var(--green-800); background: var(--green-50); }

.header-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.header-search input {
  width: 260px; height: 44px; padding: 0 44px 0 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.header-search input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(8, 116, 67, .12); }
.header-search button {
  position: absolute; right: 4px; width: 36px; height: 36px; border: 0; border-radius: 9px;
  display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
}
.header-search button:hover { color: var(--green); }
.nav-toggle { display: none; }

/* 5. Hero ------------------------------------------------------------------ */
.hero-wrap { padding-top: 22px; }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: 24px;
  min-height: 430px; padding: 44px 24px 44px 56px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(60% 80% at 82% 45%, rgba(247, 201, 72, .22), transparent 70%),
    radial-gradient(40% 60% at 4% 108%, rgba(37, 200, 223, .2), transparent 70%),
    linear-gradient(128deg, #053F2D 0%, var(--green-800) 34%, var(--green) 78%, #0B8A52 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(247, 201, 72, .22);
}
.hero::before {
  /* subtle card-suit pattern */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='%23fff'%3E%3Cpath d='M18 8c-2 4-9 7-9 12 0 3 2 5 5 5 1.6 0 2.8-.8 3.4-1.8-.2 2-1.2 3.4-2.6 4.4h6.4c-1.4-1-2.4-2.4-2.6-4.4.6 1 1.8 1.8 3.4 1.8 3 0 5-2 5-5 0-5-7-8-9-12z'/%3E%3Cpath d='M54 44l7 10-7 10-7-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 30%; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .08), transparent);
}
.hero > * { min-width: 0; }
.hero__label {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 18px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: rgba(4, 40, 28, .45); border: 1px solid rgba(247, 201, 72, .35);
  color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .16em;
}
.hero__label .i { width: 1em; height: 1em; }
.hero__title { color: #fff; margin-bottom: 16px; max-width: 13ch; text-wrap: balance; }
.hero__text { font-size: 1.12rem; color: rgba(255, 255, 255, .84); max-width: 34ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 26px; }
.hero__link {
  display: inline-flex; align-items: center; gap: .3em; color: #fff; font-weight: 600; text-decoration: none;
  padding: .5em .2em; border-bottom: 1.5px solid rgba(255, 255, 255, .3);
}
.hero__link:hover { color: var(--gold); border-color: var(--gold); }
.hero-search {
  position: relative; display: flex; align-items: center; gap: 6px; max-width: 470px;
  padding: 6px; border-radius: 16px; background: #fff;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55);
}
.hero-search__icon { position: absolute; left: 18px; color: var(--muted); }
.hero-search input {
  flex: 1; min-width: 0; height: 44px; border: 0; padding: 0 8px 0 40px; background: transparent; color: var(--text);
}
.hero-search input:focus { outline: none; }
.hero-search .btn { padding: .7em 1.2em; border-radius: 12px; }
.hero__art { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero__art img { width: 100%; max-width: 600px; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 20, 12, .3)); }

/* 6. Sections & cards ------------------------------------------------------ */
.section { padding-block: 34px; }
.section--tight { padding-block: 26px 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head__sub { margin: .35rem 0 0; color: var(--muted); }
.link-more { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more:hover .i { transform: translateX(3px); }
.link-more .i { transition: transform .2s var(--ease); }

/* Round category icons */
.cat-circles { position: relative; }
.cat-circles__track {
  display: flex; gap: 10px; justify-content: space-between;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 6px 4px 10px;
}
.cat-circles__track::-webkit-scrollbar { display: none; }
.cat-circle {
  flex: 1 0 92px; max-width: 120px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text); font-size: .84rem; font-weight: 600; text-align: center; line-height: 1.25;
}
.cat-circle img, .cat-circle__more {
  width: 72px; height: 72px; border-radius: 50%;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .1), 0 10px 20px -10px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-circle__more { display: grid; place-items: center; background: #fff; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green-100), 0 6px 14px -10px rgba(0, 0, 0, .4); }
.cat-circle__more .i { width: 26px; height: 26px; }
.cat-circle:hover img, .cat-circle:hover .cat-circle__more { transform: translateY(-3px); box-shadow: 0 2px 3px rgba(0, 0, 0, .1), 0 16px 24px -12px rgba(0, 0, 0, .5); }
.cat-circle:hover { color: var(--green-800); }
.cat-circle.is-active img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold-500), 0 10px 20px -10px rgba(0, 0, 0, .45); }

/* Game cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.game-card {
  position: relative; display: flex; flex-direction: column;
  padding: 12px 12px 14px; border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 233, 229, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card__art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / .82; border-radius: 16px; margin-bottom: 12px; overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--accent) 22%, #fff), transparent 75%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, #fff), color-mix(in srgb, var(--accent) 5%, #fff));
}
.game-card__art img {
  width: 54%; aspect-ratio: 1; height: auto; border-radius: 23%;
  box-shadow: var(--icon-shadow);
  transition: transform .3s var(--ease);
}
.game-card:hover .game-card__art img { transform: scale(1.05) rotate(-2deg); }
.game-card__body { flex: 1; padding: 0 4px; }
.game-card__title { margin: 0 0 2px; font-size: 1.05rem; }
.game-card__title a { color: var(--text); text-decoration: none; }
.game-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.game-card__title a:focus-visible { outline: none; }
.game-card:has(a:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.game-card__cat { margin: 0; font-size: .85rem; color: var(--muted); }
.game-card__meta { margin: 4px 0 0; font-size: .78rem; color: #7B8B83; }
.game-card__cta { margin-top: 12px; padding: .6em 1em; font-size: .9rem; border-radius: 12px; }
.game-card__cta .i { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.game-card:hover .game-card__cta { background: var(--green); color: #fff; }
.game-card:hover .game-card__cta .i { transform: translateX(3px); }

/* Popular band */
.popular-band {
  margin-block: 14px;
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(247, 201, 72, .22), transparent 60%),
    linear-gradient(180deg, #FFF9E8, #FFF4D6);
  border-block: 1px solid #F6E6B5;
}
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rank-item {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px; border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(120, 80, 0, .06), 0 8px 20px -14px rgba(120, 80, 0, .4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rank-item:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(120, 80, 0, .06), 0 14px 28px -14px rgba(120, 80, 0, .5); }
.rank-item__num {
  width: 34px; text-align: center; flex: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1;
  background: linear-gradient(180deg, #F2BE3E, #B67A10); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rank-item__icon { width: 60px; height: 60px; border-radius: 23%; box-shadow: var(--icon-shadow); flex: none; }
.rank-item__body { flex: 1; min-width: 0; }
.rank-item__title { margin: 0; font-size: 1rem; }
.rank-item__title a { color: var(--text); text-decoration: none; }
.rank-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rank-item__cat { margin: 0; font-size: .84rem; color: var(--muted); }
.rank-item__go { color: var(--gold-700); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-50); }
.rank-item:hover .rank-item__go { background: var(--gold); color: #3B2804; }

/* Latest cards */
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.latest-card {
  position: relative; display: flex; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 233, 229, .7);
  border-left: 4px solid var(--accent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.latest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.latest-card__icon { width: 76px; height: 76px; border-radius: 23%; box-shadow: var(--icon-shadow); flex: none; }
.latest-card__body { min-width: 0; }
.latest-card__title { margin: 0 0 2px; font-size: 1.05rem; }
.latest-card__title a { color: var(--text); text-decoration: none; }
.latest-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.latest-card__desc { margin: 0 0 8px; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.latest-card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .78rem; color: #6E7F77; }
.latest-card__meta time { display: inline-flex; align-items: center; gap: .3em; }
.latest-card__meta .i { width: 1.05em; height: 1.05em; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    #fff;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 233, 229, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile__icon { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .45); flex: none; }
.cat-tile__body { flex: 1; min-width: 0; }
.cat-tile__title { margin: 0; font-size: 1.05rem; }
.cat-tile__title a { color: var(--text); text-decoration: none; }
.cat-tile__title a::after { content: ""; position: absolute; inset: 0; }
.cat-tile__count { margin: 0; font-size: .85rem; color: var(--muted); }
.cat-tile__stack { display: flex; }
.cat-tile__stack { flex: none; padding-left: 10px; }
.cat-tile__stack img { width: 32px; height: 32px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .4); margin-left: -12px; }

/* Promo */
.promo {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 34px 40px; border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(255, 255, 255, .45), transparent 60%),
    linear-gradient(115deg, #FFE38A 0%, var(--gold) 45%, var(--gold-500) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.promo__copy { max-width: 620px; }
.promo h2 { color: #2E2003; margin-bottom: .35em; }
.promo p { color: #4A3608; margin-bottom: 1.1em; }
.promo__art { display: flex; align-items: center; flex: none; padding-right: 10px; }
.promo__art img { border-radius: 50%; box-shadow: 0 16px 30px -12px rgba(90, 55, 0, .6); }
.promo__art img:nth-child(1) { transform: translateX(18px) rotate(-8deg); }
.promo__art img:nth-child(2) { position: relative; z-index: 1; }
.promo__art img:nth-child(3) { transform: translateX(-18px) rotate(8deg); }
.promo__img { border-radius: var(--radius-lg); max-width: 320px; }

/* About */
.about {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
  padding: 36px 40px; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 233, 229, .8);
}
.about__copy .prose p { color: var(--muted); }
.about__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about__points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--bg); }
.about__points h3 { margin: 0 0 2px; font-size: 1rem; }
.about__points p { margin: 0; font-size: .9rem; color: var(--muted); }
.about__icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; flex: none;
  color: #fff; background: linear-gradient(160deg, var(--green-600), var(--green-800));
  box-shadow: 0 8px 14px -8px rgba(6, 78, 56, .8);
}
.about__icon--gold { color: #3B2804; background: linear-gradient(160deg, #FFE27A, var(--gold-500)); box-shadow: 0 8px 14px -8px rgba(166, 110, 14, .8); }
.about__icon--cyan { background: linear-gradient(160deg, #5BDDEE, var(--cyan-700)); box-shadow: 0 8px 14px -8px rgba(11, 127, 146, .8); }

/* 7. Game detail page ------------------------------------------------------ */
.page-top { padding-top: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 18px; padding: 0; font-size: .87rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }
.breadcrumbs__sep { width: .9em; height: .9em; opacity: .6; }

.game-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
  padding: 30px; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 233, 229, .8);
}
.game-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.game-hero > * { position: relative; }
.game-hero__icon {
  width: 156px; height: 156px; border-radius: 23%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .12), 0 24px 40px -16px rgba(0, 0, 0, .5);
}
.game-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 6px; }
.game-hero__by { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.game-hero__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.game-hero__lead { font-size: 1.05rem; color: #33443C; max-width: 62ch; margin-bottom: 18px; }
.game-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.disclosure { margin: 12px 0 0; font-size: .82rem; color: var(--muted); display: flex; gap: .4em; align-items: flex-start; }
.disclosure .i { color: var(--gold-700); margin-top: .1em; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 24px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 233, 229, .8); margin-bottom: 24px; }
.panel > h2 { font-size: 1.3rem; }
.info-list { margin: 0; display: grid; gap: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.verified-note { display: flex; gap: .45em; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--green-50); color: var(--green-800); font-size: .82rem; }
.verified-note .i { margin-top: .1em; }
.sticky-side { position: sticky; top: 92px; }

.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots button { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; scroll-snap-align: start; }
.shots img { height: 340px; width: auto; border-radius: 18px; box-shadow: var(--shadow); }
.shots figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; text-align: center; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(4, 26, 18, .85); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 18px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }

.prose { font-size: 1rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1em 0; padding: .8em 1.2em; border-left: 4px solid var(--gold); background: var(--gold-50); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5em .75em; text-align: left; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.preview-bar { background: #1E293B; color: #fff; padding: 10px 0; font-size: .9rem; }
.preview-bar .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.preview-bar a { color: var(--gold); }

/* 8. Listing pages --------------------------------------------------------- */
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: .3em; }
.page-head p { color: var(--muted); max-width: 70ch; }
.cat-head { display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 233, 229, .8); position: relative; overflow: hidden; }
.cat-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 120% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
.cat-head > * { position: relative; }
.cat-head img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .5); flex: none; }
.cat-head h1 { margin-bottom: .2em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cat-head p { margin: 0; color: var(--muted); max-width: 70ch; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 12px; margin: 18px 0 22px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 233, 229, .8);
}
.filters input, .filters select {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(8, 116, 67, .12); }
.filters__q { flex: 1 1 240px; }
.filters .btn { height: 44px; }
.results-meta { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.results-meta a { margin-left: 6px; }

.empty {
  text-align: center; padding: 48px 20px; border-radius: var(--radius-xl); background: #fff;
  border: 1.5px dashed var(--green-100);
}
.empty img { width: 96px; margin: 0 auto 14px; opacity: .9; }
.empty h2 { font-size: 1.35rem; }
.empty p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 32px 0 8px; }
.pagination ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span[aria-current], .pagination__gap {
  min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px;
  border-radius: 12px; text-decoration: none; font-weight: 600;
}
.pagination a { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.pagination a:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-800); }
.pagination span[aria-current] { background: var(--green); color: #fff; }
.pagination__step { display: inline-flex !important; gap: 4px; align-items: center; }
.pagination__gap { color: var(--muted); }

.other-cats { display: flex; flex-wrap: wrap; gap: 8px; }

/* 9. Content pages --------------------------------------------------------- */
.content-page { max-width: 860px; margin-inline: auto; padding-bottom: 40px; }
.content-page .panel { padding: 34px 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(8, 116, 67, .12); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error-page { text-align: center; padding: 60px 0 40px; }
.error-page .error-page__code {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; margin: 0 0 8px;
  background: linear-gradient(180deg, #FFE27A, var(--gold-500) 60%, #A06A0E); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.error-page form { max-width: 480px; margin: 22px auto; }

/* 10. Footer ---------------------------------------------------------------- */
.site-footer {
  margin-top: 40px; padding-top: 48px; color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(247, 201, 72, .12), transparent 60%),
    linear-gradient(180deg, var(--green-800), #032A1E);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 34px; }
.footer-brand p { margin: 14px 0 16px; font-size: .93rem; max-width: 38ch; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .93rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--gold); color: #2A1C02; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px 28px; font-size: .82rem; }
.footer-disclaimer { display: flex; gap: .6em; align-items: flex-start; margin-bottom: 10px; color: rgba(255, 255, 255, .7); }
.footer-disclaimer .i { color: var(--gold); margin-top: .15em; }
.footer-copy { margin: 0; color: rgba(255, 255, 255, .5); }

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

/* 11. Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--related > :nth-child(n+5) { display: none; }
  .header-search input { width: 200px; }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); padding: 36px 20px 36px 36px; min-height: 0; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .header-inner { gap: 12px; height: 64px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px;
    border: 0; border-radius: 12px; background: var(--green-50); color: var(--green-800); cursor: pointer;
  }
  .nav-toggle .i { width: 22px; height: 22px; }
  .nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .3);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .header-search { margin-left: auto; }
  .header-search input { width: 180px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--related > :nth-child(n+4) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 30px 24px 26px; gap: 6px; }
  .hero__art { order: -1; max-height: 230px; margin: -10px 0 0; }
  .hero__art img { max-height: 230px; width: auto; }
  .hero__title { max-width: none; }
  .game-hero { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .game-hero__icon { width: 112px; height: 112px; }
  .promo { flex-direction: column; align-items: flex-start; padding: 28px; }
  .promo__art { display: none; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .header-search { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero-wrap { padding-top: 14px; }
  .hero { border-radius: 24px; padding: 22px 18px 20px; }
  .hero__art, .hero__art img { max-height: 170px; }
  .hero__label { margin-bottom: 12px; font-size: .68rem; }
  .hero__text { font-size: 1rem; margin-bottom: 18px; }
  .hero__actions { margin-bottom: 18px; }
  .hero-search .btn { padding: .7em .9em; }
  .section { padding-block: 24px; }
  .section-head { align-items: center; }
  .section-head__sub { display: none; }
  .cat-circles__track { justify-content: flex-start; gap: 6px; margin-inline: -16px; padding-inline: 16px; }
  .cat-circle { flex: 0 0 80px; font-size: .78rem; }
  .cat-circle img, .cat-circle__more { width: 64px; height: 64px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-grid--featured, .card-grid--related {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px 14px;
  }
  .card-grid--featured::-webkit-scrollbar, .card-grid--related::-webkit-scrollbar { display: none; }
  .card-grid--featured > .game-card, .card-grid--related > .game-card { flex: 0 0 44%; scroll-snap-align: start; }
  .card-grid--related > :nth-child(n) { display: flex; }
  .cat-tiles { gap: 10px; }
  .cat-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .cat-tile__icon { width: 48px; height: 48px; }
  .cat-tile__title { font-size: .98rem; }
  .cat-tile__stack { position: absolute; top: 14px; right: 12px; }
  .cat-tile__stack img { width: 26px; height: 26px; border-radius: 8px; margin-left: -10px; }
  .game-card { padding: 9px 9px 11px; border-radius: 18px; }
  .game-card__title { font-size: .98rem; }
  .game-card__cta { font-size: .85rem; padding: .55em .6em; }
  .rank-list, .latest-grid { grid-template-columns: 1fr; }
  .about { padding: 24px 20px; }
  .panel, .content-page .panel { padding: 20px; }
  .shots img { height: 280px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cat-head { flex-direction: column; align-items: flex-start; padding: 20px; }
  .cat-head img { width: 72px; height: 72px; }
  .link-more { font-size: .9rem; }
}
