/* WORTHLEVEL — public catalog theme
   A warm brass-and-ink editorial system for the Android port catalog. */

:root {
  --bg: #0c0a07;
  --bg-2: #14100b;
  --panel: rgba(28, 23, 16, .74);
  --panel-solid: #1a150e;
  --panel-soft: rgba(255, 239, 206, .045);
  --line: rgba(255, 239, 206, .10);
  --line-strong: rgba(255, 239, 206, .18);
  --text: #f6efe2;
  --muted: #b8ac97;
  --dim: #877c69;
  --brand: #f0b429;
  --brand-2: #e0653a;
  --brand-soft: color-mix(in srgb, var(--brand) 14%, transparent);
  --brand-line: color-mix(in srgb, var(--brand) 34%, transparent);
  --warm: #ffd166;
  --danger: #ff6b81;
  --ok: #43e6a2;
  --on-brand: #211503;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow: 0 24px 70px -35px rgba(0, 0, 0, .9);
  --shadow-glow: 0 20px 50px -28px color-mix(in srgb, var(--brand) 42%, transparent);
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --container: 1200px;
  --ease: .22s cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(240, 180, 41, .1), transparent 62%),
    radial-gradient(860px 560px at 96% -4%, rgba(224, 101, 58, .12), transparent 64%),
    linear-gradient(180deg, #0c0a07 0%, #0c0a07 55%, #080604 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0c0a07; }
::-webkit-scrollbar-thumb { border: 3px solid #0c0a07; border-radius: 999px; background: #332a1d; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #4a3e2d; background-clip: padding-box; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 500; padding: .7rem 1rem; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; transition: top var(--ease); }
.skip-link:focus { top: 12px; }

.icon { display: inline-block; width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; vertical-align: -.12em; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 42px; height: 42px; }

.mono { font-family: var(--font-mono); letter-spacing: .01em; }
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 45%, var(--brand-2)) 50%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.section-kicker { color: var(--dim); letter-spacing: .14em; }
.section-kicker strong { color: var(--brand); }

/* Announcement */
.announcement {
  position: relative;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(240, 180, 41, .1), rgba(224, 101, 58, .08));
}
.announcement-inner { display: flex; align-items: center; gap: .8rem; min-height: 38px; font-size: .78rem; color: var(--muted); }
.announcement-label { display: inline-flex; align-items: center; gap: .4rem; flex: none; color: var(--brand); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.announcement-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); animation: pulse 2.4s ease-in-out infinite; }
.announcement p { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement a { display: inline-flex; align-items: center; gap: .3rem; flex: none; color: var(--text); font-weight: 600; }
.announcement a:hover { color: var(--brand); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 15, .74);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex: none; }
.brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 0 16px rgba(240, 180, 41, .28)); }
.brand-name { color: #fff; font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.brand-name span { color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: .1rem; margin-left: .4rem; }
.main-nav > a, .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  transition: color var(--ease), background var(--ease);
}
.main-nav > a:hover, .nav-dropdown-toggle:hover { color: var(--text); background: var(--panel-soft); }
.main-nav > a.is-active, .nav-dropdown-toggle.is-active { color: var(--text); background: rgba(255, 255, 255, .075); box-shadow: inset 0 0 0 1px var(--line); }
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  display: grid;
  width: 230px;
  padding: .45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(13, 16, 26, .97);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-panel a { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: 10px; color: var(--muted); font-size: .8rem; }
.nav-dropdown-panel a:hover { background: var(--panel-soft); color: var(--text); }
.dropdown-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--cat-color, var(--brand)) 14%, transparent); color: var(--cat-color, var(--brand)); }
.dropdown-arrow { margin-left: auto; color: var(--dim); }
.header-search {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 230px;
  height: 42px;
  margin-left: auto;
  padding: 0 .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  transition: border-color var(--ease), background var(--ease);
}
.header-search:focus-within { border-color: var(--brand-line); background: rgba(255, 255, 255, .055); }
.header-search-submit { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--dim); }
.header-search-submit:hover { color: var(--brand); }
.header-search input { flex: 1 1 auto; min-width: 0; padding: .2rem 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .8rem; }
.header-search input::placeholder { color: var(--dim); }
.header-search kbd { padding: .15rem .35rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .04); color: var(--dim); font-family: var(--font-mono); font-size: .62rem; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.menu-toggle { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); color: var(--text); }

/* Mobile menu */
.mobile-menu { display: none; border-top: 1px solid var(--line); background: rgba(7, 9, 15, .98); }
.mobile-menu.is-open { display: block; }
.mobile-menu-inner { padding: 1rem 0 1.4rem; }
.mobile-search { display: flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); color: var(--dim); }
.mobile-search input { flex: 1 1 auto; border: 0; outline: 0; background: transparent; font-size: .85rem; }
.mobile-links { display: grid; gap: .15rem; margin: 1rem 0 1.2rem; }
.mobile-links a { display: flex; align-items: center; gap: .6rem; padding: .65rem .55rem; border-radius: 10px; color: var(--muted); font-size: .9rem; }
.mobile-links a:hover { background: var(--panel-soft); color: var(--text); }
.mobile-label { display: block; margin-bottom: .6rem; color: var(--dim); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .62rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 35%, var(--brand-2))); color: var(--on-brand); box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 24px 56px -24px color-mix(in srgb, var(--brand) 55%, transparent); filter: brightness(1.04); }
.btn-ghost { border-color: var(--line); background: var(--panel-soft); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .07); }
.btn-sm { min-height: 36px; padding: .45rem .8rem; font-size: .76rem; }
.btn-lg { min-height: 50px; padding: .8rem 1.3rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .55; pointer-events: none; }
.text-link, .see-more-link { display: inline-flex; align-items: center; gap: .35rem; flex: none; color: var(--muted); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .02em; transition: color var(--ease); }
.text-link:hover, .see-more-link:hover { color: var(--brand); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.link-arrow:hover { color: var(--brand); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: none;
  padding: .45rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.chip span { color: var(--dim); font-family: var(--font-mono); font-size: .62rem; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-active { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.chip.is-active span { color: color-mix(in srgb, var(--on-brand) 65%, transparent); }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Hero */
.hero { padding: 2.4rem 0 .6rem; }
.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 2.5rem;
  overflow: hidden;
  padding: clamp(2rem, 4.2vw, 3.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(240, 180, 41, .09), rgba(224, 101, 58, .07) 46%, rgba(255, 255, 255, .025)),
    rgba(10, 13, 21, .72);
  box-shadow: var(--shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, #000 0%, transparent 62%);
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero-glow { position: absolute; top: -40%; right: -12%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 101, 58, .24), transparent 66%); filter: blur(10px); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.hero-title { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero-desc { max-width: 54ch; margin-top: 1.15rem; color: var(--muted); font-size: .96rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; width: 100%; margin-top: 2rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; gap: .15rem; }
.hero-stats dt { color: var(--dim); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-stats dd { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; }
.hero-stats .stat-word { color: var(--brand); font-size: 1.08rem; }
.hero-feature { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 430px; }
.feature-card {
  position: relative;
  width: min(100%, 350px);
  overflow: hidden;
  padding: .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(12, 15, 25, .9);
  box-shadow: 0 34px 80px -36px rgba(0, 0, 0, .95);
  transform: rotate(1.4deg);
  transition: transform .4s var(--ease);
}
.feature-card:hover { transform: rotate(0deg) translateY(-4px); }
.feature-art { position: absolute; inset: -18%; background-image: linear-gradient(180deg, rgba(9, 11, 18, .1), rgba(9, 11, 18, .95)), var(--feature-art); background-position: center; background-size: cover; filter: blur(14px) saturate(.8); opacity: .5; transform: scale(1.08); }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(240, 180, 41, .12), transparent 35%, rgba(224, 101, 58, .12)); pointer-events: none; }
.feature-body { position: relative; z-index: 1; padding: 1.1rem .55rem .6rem; }
.feature-label { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.feature-icon-link { display: block; width: 96px; margin-top: 1.1rem; }
.feature-icon { width: 96px; height: 96px; border: 1px solid var(--line-strong); border-radius: 22px; object-fit: cover; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); }
.feature-title { margin-top: .9rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.feature-title a:hover { color: var(--brand); }
.feature-desc { margin-top: .5rem; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.feature-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.feature-meta span { padding: .24rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-size: .64rem; }
.feature-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; color: var(--brand); font-size: .76rem; font-weight: 650; }
.feature-link:hover { color: var(--text); }
.feature-card--empty { transform: none; padding: 2rem; }
.feature-card--empty .feature-body { padding: 0; }
.featured-solo { display: flex; justify-content: center; }

/* Sections */
.section { padding: 3rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.4rem; }
.section-head-copy { display: grid; gap: .35rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.section-sub { color: var(--dim); font-size: .82rem; }
.home-section:nth-of-type(even) { border-top: 1px solid var(--line); }
.genre-grid { display: flex; gap: .65rem; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: .45rem; scrollbar-width: thin; }
.genre-card {
  display: flex;
  flex: 0 0 190px;
  align-items: center;
  gap: .7rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}
.genre-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cat-color, var(--brand)) 45%, var(--line)); background: rgba(255, 255, 255, .05); }
.genre-card > .icon { margin-left: auto; color: var(--dim); }
.genre-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--cat-color, var(--brand)) 15%, transparent); color: var(--cat-color, var(--brand)); }
.genre-copy { display: grid; min-width: 0; }
.genre-copy strong { overflow: hidden; font-size: .82rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.genre-copy small { color: var(--dim); font-family: var(--font-mono); font-size: .62rem; }
.closing-cta { padding: 1rem 0 4rem; }
.closing-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 2.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(110deg, rgba(240, 180, 41, .08), rgba(224, 101, 58, .08)); }
.closing-panel h2 { margin-top: .45rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }

/* Game cards */
.games-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.games-grid--wide { gap: .9rem; }
.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.game-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); background: rgba(22, 27, 42, .9); box-shadow: var(--shadow-glow); }
.game-cover { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 13px; background: #14100b; }
.game-image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease), filter .45s var(--ease); }
.game-card:hover .game-image { transform: scale(1.055); filter: saturate(1.05); }
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(4, 6, 12, .52)); opacity: 0; transition: opacity var(--ease); }
.game-card:hover .game-cover::after { opacity: 1; }
.game-hot { position: absolute; top: .45rem; left: .45rem; z-index: 2; padding: .18rem .42rem; border-radius: 999px; background: linear-gradient(135deg, var(--warm), #ff7d9c); color: #2a1200; font-family: var(--font-mono); font-size: .56rem; font-weight: 700; letter-spacing: .06em; }
.game-details { display: grid; gap: .15rem; min-width: 0; padding: .55rem .3rem .25rem; }
.game-title { overflow: hidden; font-size: .84rem; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-width: 0; }
.game-version { color: var(--brand); font-family: var(--font-mono); font-size: .62rem; white-space: nowrap; }
.game-genre { overflow: hidden; color: var(--dim); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.game-card.is-compact { padding: .4rem; border-radius: 14px; }
.game-card.is-compact .game-title { font-size: .78rem; }
.games-rail { position: relative; margin-inline: -8px; padding-inline: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: .8rem; padding-bottom: .4rem; }
.load-more-wrap { display: flex; justify-content: center; padding: 2rem 0 0; }
.load-more-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); color: var(--muted); font-family: var(--font-mono); font-size: .7rem; transition: var(--ease); }
.load-more-btn:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }

/* Catalog */
.catalog-hero { position: relative; overflow: hidden; padding: 2.8rem 0 1.8rem; border-bottom: 1px solid var(--line); }
.catalog-aura { position: absolute; top: -60%; left: 20%; width: 700px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 180, 41, .12), transparent 66%); pointer-events: none; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; color: var(--dim); font-family: var(--font-mono); font-size: .65rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .icon { color: var(--dim); }
.catalog-head-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem; margin-top: 1.6rem; }
.catalog-head-main { max-width: 660px; }
.catalog-head-main h1 { margin-top: .6rem; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.catalog-head-meta { margin-top: .55rem; color: var(--muted); font-size: .86rem; }
.catalog-head-meta strong { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
.catalog-search { display: flex; align-items: center; gap: .5rem; width: min(100%, 420px); height: 52px; padding: 0 .55rem 0 .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .045); color: var(--dim); }
.catalog-search:focus-within { border-color: var(--brand-line); background: rgba(255, 255, 255, .06); }
.catalog-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .84rem; }
.catalog-search input::placeholder { color: var(--dim); }
.catalog-section { padding-top: 1.6rem; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.filter-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem 0 .35rem; scrollbar-width: thin; }
.sort-form { display: flex; align-items: center; gap: .45rem; flex: none; }
.sort-form label { display: inline-flex; align-items: center; gap: .35rem; color: var(--dim); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.sort-form select { padding: .46rem 1.7rem .46rem .6rem; border: 1px solid var(--line); border-radius: 999px; outline: 0; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737b94' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .65rem center; color: var(--muted); font-size: .74rem; appearance: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 2.4rem; }
.page-btn { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--muted); font-family: var(--font-mono); font-size: .72rem; transition: var(--ease); }
.page-btn:hover { border-color: var(--brand-line); color: var(--text); }
.page-btn.is-active { border-color: var(--brand); background: var(--brand); color: var(--on-brand); font-weight: 700; }
.page-btn.is-disabled { opacity: .38; pointer-events: none; }
.page-ellipsis { padding: 0 .2rem; color: var(--dim); }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 4rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); }
.empty-state h2 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.empty-state p { max-width: 480px; margin-top: .4rem; color: var(--muted); font-size: .85rem; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }

/* Detail */
.detail-hero { position: relative; overflow: hidden; padding: 1.7rem 0 2.3rem; border-bottom: 1px solid var(--line); }
.detail-hero-bg { position: absolute; inset: -30px; background-image: var(--detail-bg); background-position: center 32%; background-size: cover; filter: blur(18px) saturate(.65); opacity: .24; transform: scale(1.08); }
.detail-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 15, .96) 0%, rgba(7, 9, 15, .9) 46%, rgba(7, 9, 15, .72) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 58%); }
.detail-hero-inner { position: relative; z-index: 1; }
.detail-hero .breadcrumb { margin-bottom: 1.4rem; }
.preview-banner { display: flex; align-items: center; gap: .4rem; width: fit-content; margin-bottom: .9rem; padding: .45rem .65rem; border: 1px solid rgba(245, 158, 11, .35); border-radius: var(--radius-sm); background: rgba(245, 158, 11, .12); color: #fbbf24; font-size: .7rem; }
.preview-banner a { color: #fde68a; font-weight: 700; text-decoration: underline; }
.detail-head { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; }
.detail-logo-wrap { position: relative; width: fit-content; }
.detail-logo { display: block; width: 160px; height: 160px; border: 1px solid var(--line-strong); border-radius: 26px; object-fit: cover; box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95); }
.detail-port-badge { position: absolute; left: .55rem; bottom: .55rem; display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .45rem; border-radius: 7px; background: rgba(6, 8, 14, .82); color: var(--brand); font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em; backdrop-filter: blur(8px); }
.detail-head-copy { min-width: 0; padding-bottom: .2rem; }
.detail-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .65rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .24rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: .62rem; }
.badge-light { border-color: color-mix(in srgb, var(--cat-color, var(--brand)) 42%, transparent); background: color-mix(in srgb, var(--cat-color, var(--brand)) 14%, transparent); color: var(--cat-color, var(--brand)); }
.badge-hot { border-color: rgba(255, 184, 107, .35); background: rgba(255, 184, 107, .12); color: var(--warm); }
.detail-head-copy h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.02; }
.detail-developer { margin-top: .45rem; color: var(--muted); font-size: .82rem; }
.detail-developer strong { color: var(--text); font-weight: 600; }
.detail-rating { display: flex; align-items: center; gap: .45rem; margin-top: .65rem; color: var(--dim); font-size: .72rem; }
.stars { display: inline-flex; gap: .1rem; }
.star { color: #3f3425; }
.star.is-on { color: var(--warm); }
.detail-rating strong { color: var(--text); }
.detail-meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; color: var(--dim); font-family: var(--font-mono); font-size: .64rem; }
.detail-meta-row span { display: inline-flex; align-items: center; gap: .3rem; }
.detail-head-actions { display: flex; align-items: flex-end; padding-bottom: .2rem; }
.detail-section { padding-top: 2rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 1.6rem; align-items: start; }
.detail-main { min-width: 0; }
.content-block { margin-bottom: 1rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.block-head h2 { margin-top: .2rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.block-tag { padding: .24rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-family: var(--font-mono); font-size: .6rem; }
.rich-text { color: var(--muted); font-size: .87rem; line-height: 1.8; }
.rich-text h2 { margin: 1.3rem 0 .5rem; color: var(--text); font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; }
.rich-text h2:first-child { margin-top: 0; }
.rich-text p + p { margin-top: .7rem; }
.rich-text ul { display: grid; gap: .35rem; margin: .8rem 0; padding-left: 1.1rem; list-style: disc; }
.rich-text li { padding-left: .2rem; }
.rich-text li::marker { color: var(--brand); }
.rich-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.gallery-controls { display: flex; gap: .35rem; }
.gallery-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); color: var(--muted); }
.gallery-btn:hover { border-color: var(--brand-line); color: var(--brand); }
.screenshot-viewport { display: flex; gap: .65rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.screenshot-card { flex: 0 0 min(68%, 360px); overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #14100b; scroll-snap-align: start; }
.screenshot-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s var(--ease); }
.screenshot-card:hover img { transform: scale(1.03); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.feature-grid li { display: flex; align-items: flex-start; gap: .5rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); color: var(--muted); font-size: .78rem; }
.feature-check { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.porting-note { display: flex; gap: .8rem; margin-bottom: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--brand-line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-soft), rgba(224, 101, 58, .07)); }
.porting-note-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .06); color: var(--brand); }
.porting-note h3 { margin-top: .1rem; font-family: var(--font-display); font-size: 1rem; font-weight: 650; }
.porting-note p { margin-top: .25rem; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.changelog-list { display: grid; gap: .85rem; }
.changelog-list li { position: relative; display: flex; gap: .7rem; }
.changelog-dot { width: 8px; height: 8px; flex: none; margin-top: .45rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.changelog-list strong { color: var(--text); font-size: .82rem; font-weight: 600; }
.changelog-list p { margin-top: .15rem; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.info-grid > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-soft); }
.info-grid span { color: var(--dim); font-size: .7rem; }
.info-grid strong { color: var(--text); font-size: .76rem; font-weight: 600; text-align: right; word-break: break-word; }

/* Sidebar */
.detail-sidebar { position: sticky; top: 96px; display: grid; gap: .9rem; align-self: start; }
.download-card { position: relative; overflow: hidden; padding: 1.2rem; border: 1px solid var(--brand-line); border-radius: var(--radius-lg); background: linear-gradient(155deg, rgba(240, 180, 41, .12), rgba(224, 101, 58, .08) 44%, var(--panel-solid) 82%); box-shadow: var(--shadow-glow); }
.download-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.download-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--brand-line); border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--brand); }
.download-status { display: inline-flex; align-items: center; gap: .35rem; color: var(--dim); font-family: var(--font-mono); font-size: .6rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(67, 230, 162, .12); }
.download-card h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
.download-card > p { margin-top: .25rem; margin-bottom: .9rem; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.download-links { display: grid; gap: .4rem; }
.download-link { display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .035); color: var(--muted); transition: var(--ease); }
.download-link:hover { border-color: var(--brand-line); background: rgba(255, 255, 255, .06); color: var(--text); transform: translateY(-1px); }
.download-link.is-primary { border-color: transparent; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 35%, var(--brand-2))); color: var(--on-brand); box-shadow: var(--shadow-glow); }
.download-link-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: rgba(0, 0, 0, .12); }
.download-link.is-primary .download-link-icon { background: rgba(4, 32, 29, .14); }
.download-link-copy { display: grid; min-width: 0; flex: 1 1 auto; }
.download-link-copy strong { overflow: hidden; font-size: .74rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.download-link-copy small { color: inherit; opacity: .7; font-size: .62rem; }
.download-size { font-family: var(--font-mono); }
.download-link > .icon { flex: none; opacity: .8; }
.download-note { display: flex; align-items: center; gap: .3rem; margin-top: .7rem; color: var(--dim); font-size: .64rem; }
.download-cta { margin-top: .2rem; }
.download-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.download-spec span { display: grid; gap: .1rem; }
.download-spec small { color: var(--dim); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; }
.download-spec strong { overflow: hidden; font-size: .72rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-card { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.sidebar-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.sidebar-card-head h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 650; }
.sidebar-mini-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--panel-soft); color: var(--dim); }
.sidebar-list { display: grid; gap: .4rem; }
.sidebar-list li { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); font-size: .72rem; }
.sidebar-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.sidebar-list span { color: var(--dim); }
.sidebar-list strong { overflow: hidden; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.share-buttons button, .share-buttons a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 36px; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-soft); color: var(--muted); font-size: .68rem; transition: var(--ease); }
.share-buttons button:hover, .share-buttons a:hover { border-color: var(--brand-line); color: var(--brand); }
.sidebar-help { display: flex; gap: .55rem; padding: .8rem .9rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--dim); font-size: .7rem; line-height: 1.6; }
.sidebar-help .icon { margin-top: .15rem; color: var(--warm); }
.sidebar-help a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.related-section { border-top: 1px solid var(--line); }
.related-section .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Request page */
.page-hero { position: relative; overflow: hidden; padding: 2.4rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero-small { padding-bottom: 2rem; }
.page-hero-glow { position: absolute; top: -50%; right: 4%; width: 620px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 101, 58, .18), transparent 66%); pointer-events: none; }
.request-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 3rem; align-items: center; margin-top: 1.8rem; }
.request-copy h1 { margin-top: .8rem; font-family: var(--font-display); font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.02; }
.request-copy > p { max-width: 50ch; margin-top: 1rem; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.request-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 2rem; }
.request-steps div { display: grid; gap: .15rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.request-steps span { color: var(--brand); font-family: var(--font-mono); font-size: .62rem; }
.request-steps strong { font-size: .8rem; font-weight: 650; }
.request-steps small { color: var(--dim); font-size: .66rem; }
.request-form-card { padding: 1.4rem; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgba(15, 19, 31, .9); box-shadow: var(--shadow); }
.request-form-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.request-form-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.request-form-head h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; }
.request-form-head p { color: var(--dim); font-size: .7rem; }
.form-stack { display: grid; gap: .7rem; }
.form-field { display: grid; gap: .3rem; }
.form-field label { color: var(--muted); font-size: .72rem; font-weight: 500; }
.form-field label span { color: var(--danger); }
.form-field label small { color: var(--dim); font-weight: 400; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: .82rem;
  transition: border-color var(--ease), background var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand-line); background: rgba(255, 255, 255, .06); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--dim); }
.form-field textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.form-note { display: flex; align-items: center; gap: .3rem; color: var(--dim); font-size: .63rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.info-tile { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.info-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.info-tile h3 { margin-top: .7rem; font-family: var(--font-display); font-size: .98rem; font-weight: 650; }
.info-tile p { margin-top: .3rem; color: var(--muted); font-size: .76rem; line-height: 1.65; }
.page-hero-row { position: relative; z-index: 1; margin-top: 1.2rem; }
.page-hero-row h1 { margin-top: .5rem; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.page-hero-row p { margin-top: .45rem; color: var(--dim); font-family: var(--font-mono); font-size: .66rem; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.6rem; align-items: start; }
.page-content { padding: 1.8rem; }
.page-content h2 { margin: 1.5rem 0 .55rem; color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.page-content p + p { margin-top: .7rem; }
.page-content ul { display: grid; gap: .4rem; margin: .8rem 0; padding-left: 1.1rem; list-style: disc; color: var(--muted); font-size: .85rem; }
.page-content li::marker { color: var(--brand); }
.page-sidebar { display: grid; gap: .9rem; }
.page-nav { display: grid; gap: .1rem; }
.page-nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .48rem .5rem; border-radius: 8px; color: var(--muted); font-size: .74rem; }
.page-nav a:hover { background: var(--panel-soft); color: var(--text); }
.page-nav a.is-active { background: var(--brand-soft); color: var(--brand); }
.contact-mini-card { text-align: left; }
.contact-mini-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.contact-mini-card h3 { margin-top: .6rem; font-family: var(--font-display); font-size: .98rem; font-weight: 650; }
.contact-mini-card p { margin: .3rem 0 .7rem; color: var(--muted); font-size: .74rem; line-height: 1.6; }
.contact-mini-card .btn { overflow: hidden; text-overflow: ellipsis; }

/* Error */
.error-page { position: relative; overflow: hidden; padding: 6rem 0 7rem; }
.error-orb { position: absolute; top: 10%; left: 50%; width: 640px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 101, 58, .18), transparent 66%); transform: translateX(-50%); pointer-events: none; }
.error-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 11rem); font-weight: 800; letter-spacing: -.08em; line-height: .9; color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; }
.error-inner h1 { margin-top: .6rem; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; }
.error-inner > p { max-width: 540px; margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.error-actions { display: flex; gap: .5rem; margin-top: 1.4rem; }

/* Footer */
.site-footer { margin-top: 1rem; padding-top: 2.6rem; border-top: 1px solid var(--line); background: rgba(6, 8, 13, .6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr; gap: 2.2rem; padding-bottom: 2rem; }
.footer-brand .brand { margin-bottom: .8rem; }
.footer-copy { max-width: 46ch; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.social-row { display: flex; gap: .4rem; margin-top: .9rem; }
.social-row a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); transition: var(--ease); }
.social-row a:hover { border-color: var(--brand-line); color: var(--brand); }
.footer-heading { display: block; margin-bottom: .65rem; color: var(--dim); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: .4rem; }
.footer-links a { width: fit-content; color: var(--muted); font-size: .78rem; transition: color var(--ease); }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding: 1.1rem 0 1.6rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .66rem; }
.footer-note { max-width: 640px; text-align: right; }

/* Floating UI */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(13, 16, 26, .9); color: var(--muted); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--brand); border-color: var(--brand-line); }
.toast-stack { position: fixed; right: 18px; bottom: 70px; z-index: 200; display: grid; gap: .4rem; max-width: min(360px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: .6rem; padding: .65rem .7rem; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(13, 16, 26, .97); color: var(--text); font-size: .76rem; box-shadow: var(--shadow); animation: toast-in .22s var(--ease); }
.toast button { display: grid; place-items: center; margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--dim); }
.toast-success { border-color: rgba(67, 230, 162, .35); }
.toast-error { border-color: rgba(255, 107, 129, .35); }
.toast.is-hiding { opacity: 0; transform: translateY(6px); transition: .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Ads */
.section-ad { margin: 1.4rem auto; }
.ad-unit { display: flex; flex-direction: column; gap: .25rem; align-items: center; }
.ad-label { color: var(--dim); font-family: var(--font-mono); font-size: .52rem; letter-spacing: .18em; text-transform: uppercase; }
.ad-link { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ad-link img { display: block; width: 100%; max-height: 150px; object-fit: cover; }
.ad-code { width: 100%; padding: .4rem; text-align: center; }
.ad-code img, .ad-code iframe { max-width: 100%; }
.ad-header { margin-top: 12px; padding: .35rem; }
.ad-header .ad-link img { max-height: 70px; }
.header-ad-wrap { margin-top: 12px; }
.footer-ad-wrap { margin-top: 1.5rem; }
.ad-sidebar { margin: .2rem 0; }
.ad-listing { margin-top: 0; margin-bottom: 1rem; }
body > [data-apk-ad] { position: relative; max-height: 120px; overflow: hidden; margin: 0 auto; }
body > [data-apk-ad]::after { content: "Advertisement"; display: block; padding: 2px 0; color: var(--dim); font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-align: center; text-transform: uppercase; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 2rem; background: rgba(2, 4, 8, .92); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity var(--ease), visibility var(--ease); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(13, 16, 26, .9); color: var(--text); }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav > a, .nav-dropdown-toggle { padding-inline: .62rem; }
  .header-search { width: 190px; }
  .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-panel { gap: 1.5rem; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .related-section .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .main-nav, .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .hero-panel { grid-template-columns: 1fr; padding: 2rem; }
  .hero-feature { min-height: 0; padding-top: .5rem; }
  .feature-card { width: min(100%, 420px); transform: none; }
  .catalog-head-row { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .catalog-search { width: 100%; }
  .detail-head { grid-template-columns: 130px minmax(0, 1fr); align-items: start; }
  .detail-logo { width: 130px; height: 130px; border-radius: 22px; }
  .detail-head-actions { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; grid-row: 1; }
  .page-layout, .request-hero-grid { grid-template-columns: 1fr; }
  .request-form-card { width: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .section { padding: 2.2rem 0; }
  .hero { padding-top: 1.4rem; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero-stats { gap: 1.2rem; }
  .hero-stats dd { font-size: 1.35rem; }
  .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-grid, .related-section .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-track { grid-auto-columns: 145px; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: .6rem; }
  .sort-form { justify-content: space-between; }
  .catalog-head-main h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .detail-head { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
  .detail-logo { width: 96px; height: 96px; border-radius: 18px; }
  .detail-port-badge { display: none; }
  .detail-head-copy h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .detail-meta-row { gap: .3rem .7rem; }
  .detail-head-actions .btn { width: 100%; }
  .feature-grid, .info-grid { grid-template-columns: 1fr; }
  .request-steps { gap: .5rem; }
  .request-steps small { display: none; }
  .request-info-grid { grid-template-columns: 1fr; }
  .closing-panel { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .footer-note { text-align: left; }
  .announcement p { font-size: .72rem; }
  .announcement-inner > a { display: none; }
  .screenshot-card { flex-basis: 82%; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 24px); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1rem; }
  .hero-panel { padding: 1.35rem; border-radius: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { justify-content: space-between; gap: .6rem; }
  .hero-stats dd { font-size: 1.2rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .games-grid, .related-section .games-grid { gap: .55rem; }
  .game-card { padding: .35rem; border-radius: 14px; }
  .game-details { padding: .4rem .2rem .15rem; }
  .game-title { font-size: .78rem; }
  .form-row { grid-template-columns: 1fr; }
  .detail-logo { width: 82px; height: 82px; border-radius: 16px; }
  .detail-badges { margin-bottom: .45rem; }
  .badge { font-size: .56rem; }
  .content-block { padding: 1rem; border-radius: 16px; }
  .download-spec { gap: .25rem; }
  .closing-panel h2 { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .toast-stack { right: 12px; bottom: 64px; }
  .to-top { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}