@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary: #7c4dff;
  --primary-glow: rgba(124, 77, 255, 0.25);
  --primary-dim: rgba(124, 77, 255, 0.08);
  --primary-soft: rgba(124, 77, 255, 0.14);
  --accent: #4dd0e1;
  --on-primary: #ffffff;
  --bg: #080612;
  --bg-elevated: #100d22;
  --surface: rgba(22, 20, 42, 0.92);
  --surface-hover: rgba(36, 32, 74, 0.8);
  --surface-glass: rgba(22, 20, 42, 0.55);
  --text: #eceaf4;
  --text-secondary: #8b889e;
  --text-tertiary: #5e5c72;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(124, 77, 255, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 16px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(124, 77, 255, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(124, 77, 255, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 20%, rgba(77, 208, 225, 0.05) 0%, transparent 50%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #9b7aff; }

/* ── Header ── */
.header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 6, 18, 0.88);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.brand-name { color: var(--text); }
.header-logo {
  font-size: 17px; font-weight: 800; color: var(--text);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-nav { display: flex; gap: 4px; flex: 1; align-items: center; }
.header-nav a {
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.15s;
}
.header-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.header-nav a.active { color: #fff; background: var(--primary-soft); }
.header-actions {
  display: flex; gap: 8px; align-items: center; margin-left: auto;
}
.nav-secondary { font-size: 12px; padding: 8px 14px; }
.nav-cta { font-size: 12px; padding: 8px 16px; }
.menu-toggle { display: none; }
.mobile-nav {
  width: 100%; flex-basis: 100%;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0 4px; border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none;
}
.mobile-nav a:hover { color: var(--text); background: var(--primary-soft); }

/* ── Hero ── */
.hero {
  margin-bottom: 36px; padding: 10px 0;
}

/* ── Editorial typography (piattaforma) ── */
.hero-copy h1,
.hero-featured .hero-copy h1,
.ap-hero h1,
.fr-hero h1,
.lp-intro h2,
.game-title,
.game-title-plain,
.hero-visual-caption h3,
.store-hero h1,
.prof-info h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-copy p,
.game-desc,
.lp-intro p,
.ap-hero p,
.fr-hero p {
  line-height: 1.75;
}
.game-card-title,
.prof-game-title,
.hero-visual-caption h3 {
  font-family: var(--font);
  font-weight: 600;
}
.meta-editorial,
.game-meta,
.game-card-author,
.hero-game-meta,
.dash-value {
  font-variant-numeric: tabular-nums;
}
.author-line {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.author-line strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Codeberg discussion panel (scheda gioco) ── */
.discussion-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.discussion-panel p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.discussion-panel .btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.hero p { font-size: 14px; color: var(--text-secondary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-family: var(--font); font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9b7aff);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary:hover {
  opacity: 1;
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface-glass);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--surface);
}

/* ── Game Grid ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.game-card-cover {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.06), rgba(77, 208, 225, 0.02));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden;
}
.game-card-cover .cover-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cover-art {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.cover-art.cover-default {
  background-image: linear-gradient(180deg, transparent 35%, rgba(8,6,18,0.85)), linear-gradient(135deg, #1a1833, #24204a);
}
.cover-art.cover-romance {
  background-image: linear-gradient(180deg, transparent 35%, rgba(8,6,18,0.85)), linear-gradient(135deg, #2d1b4e, #5c2d5e, #1a2840);
}
.cover-art.cover-fantasy {
  background-image: linear-gradient(180deg, transparent 35%, rgba(8,6,18,0.85)), linear-gradient(135deg, #1e3a5f, #4c1d95, #0f172a);
}
.cover-art.cover-horror {
  background-image: linear-gradient(180deg, transparent 35%, rgba(8,6,18,0.85)), linear-gradient(135deg, #1a0f0f, #3d1515, #0f0a12);
}
.cover-art.cover-comedy {
  background-image: linear-gradient(180deg, transparent 35%, rgba(8,6,18,0.85)), linear-gradient(135deg, #3d2e0a, #6b4f1a, #1a1508);
}
.cover-art.cover-scifi {
  background-image: linear-gradient(180deg, transparent 35%, rgba(8,6,18,0.85)), linear-gradient(135deg, #0a2a3a, #1a4a6e, #0a1520);
}
.cover-art.cover-nsfw {
  background-image: linear-gradient(180deg, transparent 35%, rgba(8,6,18,0.85)), linear-gradient(135deg, #3a1020, #6b2040, #1a0810);
}
.cover-emoji { font-size: 2.5rem; opacity: 0.85; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 6, 18, 0.55);
  opacity: 0; transition: opacity 0.2s;
}
.game-card:hover .play-overlay { opacity: 1; }
.play-pill {
  background: #fff; color: #1a1033;
  font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
}
.game-card-badges {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; justify-content: space-between; gap: 4px; align-items: flex-start;
  pointer-events: none; z-index: 2;
}
.badge-genre {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  backdrop-filter: blur(6px); color: #fff;
}
.badge-genre.genre-romance { background: rgba(232, 121, 168, 0.88); }
.badge-genre.genre-fantasy { background: rgba(167, 139, 250, 0.88); }
.badge-genre.genre-horror { background: rgba(248, 113, 113, 0.88); }
.badge-genre.genre-comedy { background: rgba(251, 191, 36, 0.88); color: #1a1033; }
.badge-genre.genre-scifi { background: rgba(56, 189, 248, 0.88); color: #0a1520; }
.badge-genre.genre-nsfw { background: rgba(244, 67, 54, 0.88); }
.badge-genre.genre-default { background: rgba(124, 77, 255, 0.85); }
.stars { color: #ffd54f; font-size: 11px; letter-spacing: 1px; }
.stars .star-empty { color: rgba(255,213,79,0.25); }
.stars-count { color: var(--text-tertiary); font-size: 10px; margin-left: 4px; }
.fav-heart { font-size: 14px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.game-card-body { padding: 12px 14px 14px; }
.game-card-title {
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.game-card-author { font-size: 11px; color: var(--text-secondary); margin-bottom: 8px; }
.game-card-footer { display: flex; justify-content: space-between; align-items: center; }
.game-card-price { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.game-card-platform { font-size: 10px; color: var(--text-tertiary); }

.store-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}
.store-grid-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.grid-count { font-weight: 400; color: var(--text-tertiary); }

.card-play-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s;
}
.game-card:hover .card-play-actions { opacity: 1; }
.card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8, 6, 18, 0.75);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  backdrop-filter: blur(6px);
  transition: background 0.15s, border-color 0.15s;
}
.card-action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.card-action-wish:hover { background: #7c4dff; }

.explore-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

/* ── Featured Banner ── */
.featured-banner {
  display: flex; gap: 28px;
  background: linear-gradient(135deg, var(--surface), rgba(124, 77, 255, 0.04));
  border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 36px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.featured-banner::before {
  content: 'IN PRIMO PIANO'; position: absolute; top: 12px; right: 16px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--primary); opacity: 0.6;
}
.featured-banner { position: relative; overflow: hidden; }
.featured-banner::after {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.06), transparent 70%);
  pointer-events: none;
}
.featured-banner-cover {
  width: 160px; aspect-ratio: 3/4; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(77, 208, 225, 0.03));
  display: flex; align-items: center; justify-content: center; font-size: 48px;
  box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
}
.featured-banner-cover .cover-art,
.featured-banner-cover .cover-img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.featured-banner-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; position: relative; z-index: 1; }
.featured-banner-title { font-size: 20px; font-weight: 700; }
.featured-banner-author { font-size: 13px; color: var(--text-secondary); }
.featured-banner-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-top: 6px; }
.featured-banner-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ── Explore Bar ── */
.explore-bar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-bottom: 28px; padding: 12px 16px;
  background: var(--surface-glass);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.explore-search { flex: 1; min-width: 200px; position: relative; }
.explore-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 14px; pointer-events: none; opacity: 0.35;
}
.explore-search-input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font); outline: none; transition: all 0.2s;
}
.explore-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.explore-search-input::placeholder { color: var(--text-tertiary); font-size: 12px; }
.explore-sort { display: flex; gap: 3px; }
.sort-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 16px; cursor: pointer;
  background: transparent; border: none; color: var(--text-secondary);
  font-family: var(--font); transition: all 0.15s;
}
.sort-btn:hover { color: var(--text); background: var(--surface); }
.sort-btn.active { color: var(--primary); background: var(--primary-dim); }
.explore-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-btn {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  font-family: var(--font); transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface); }
.filter-btn.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.author-filter {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary);
  font-family: var(--font); transition: all 0.2s; outline: none;
}
.author-filter:hover { border-color: var(--border-hover); }
.author-filter:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.author-filter option { background: var(--bg-elevated); color: var(--text); }

/* ── Store Type Tabs ── */
.store-type-tabs {
  display: flex; gap: 2px; margin-bottom: 24px;
  padding: 4px 4px 0; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-glass); border: 1px solid var(--border);
  border-bottom-color: transparent; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.store-type-tab {
  padding: 9px 18px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; border: none; color: var(--text-secondary);
  font-family: var(--font); transition: all 0.2s; letter-spacing: 0.01em;
  position: relative;
}
.store-type-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.store-type-tab.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(124,77,255,0.12) 0%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(124,77,255,0.2);
}
.store-type-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.type-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 20px; font-size: 10px; font-weight: 600;
  background: rgba(124, 77, 255, 0.18); color: #b388ff; border: 1px solid rgba(124, 77, 255, 0.15);
  backdrop-filter: blur(4px);
}

/* ── New Releases ── */
.new-releases {
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(124,77,255,0.03), transparent);
  border-radius: var(--radius); padding: 20px 20px 16px;
  border: 1px solid rgba(124,77,255,0.06);
}
.new-releases-header {
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.new-releases-header::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.new-releases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.new-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255,87,34,0.25), rgba(255,152,0,0.15));
  color: #ffab91; border: 1px solid rgba(255,87,34,0.15);
  letter-spacing: 0.05em; animation: pulse-new 2s ease-in-out infinite;
}
@keyframes pulse-new {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; box-shadow: 0 0 8px rgba(255,87,34,0.2); }
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex; gap: 32px; padding: 20px 0;
  border-top: 1px solid var(--border); margin-top: 36px;
}
.stat-item { display: flex; gap: 8px; align-items: baseline; }
.stat-num { font-size: 20px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

.play-coming-soon,
.nav-play-soon,
.play-coming-soon-pill {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
  user-select: none;
}
.nav-play-soon {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  white-space: nowrap;
}
.play-coming-soon-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Game Detail ── */
.game-header { display: flex; gap: 36px; padding: 24px 0; }
.game-cover {
  width: 240px; aspect-ratio: 3/4; border-radius: var(--radius); flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.06), rgba(77, 208, 225, 0.02));
  display: flex; align-items: center; justify-content: center; font-size: 64px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.game-cover .cover-art,
.game-cover .cover-img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.game-info { flex: 1; }
.game-title {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 600; font-style: italic;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.meta-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.meta-pill {
  font-size: 11px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
}
.game-title-plain { font-size: 28px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }

/* ── Landing hero ── */
.hero-featured {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 32px; margin: 8px 0 40px; align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.hero-copy h1 {
  font-size: clamp(30px, 5vw, 44px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 14px;
}
.hero-copy p { color: var(--text-secondary); font-size: 15px; max-width: 440px; margin-bottom: 20px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 20px; font-weight: 800; }
.hero-stat span {
  font-size: 11px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-visual {
  position: relative; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); min-height: 280px;
  background: #12102a;
}
.hero-visual .cover-art { min-height: 280px; }
.hero-visual-caption {
  position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 2;
}
.hero-visual-caption h3 { font-size: 18px; font-weight: 700; }
.hero-visual-caption p { font-size: 12px; color: #c8c6d4; margin-top: 2px; }

.lp-intro { text-align: center; margin: 40px 0 24px; }
.lp-intro h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.lp-intro p { font-size: 14px; color: var(--text-secondary); }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.lp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s; text-decoration: none; color: inherit;
}
.lp-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.lp-card-img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
  background: linear-gradient(135deg, rgba(124,77,255,0.05), rgba(77,208,225,0.02));
}
.lp-card-body { padding: 16px 18px 18px; }
.lp-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lp-card-header .icon { font-size: 22px; }
.lp-card-header h3 { font-size: 16px; font-weight: 600; }
.lp-card-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.lp-card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--primary); font-weight: 500; }
.lp-strip { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.lp-strip span {
  font-size: 12px; color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 14px; border-radius: 20px;
}
.sl-products-strip {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin: 8px 0 28px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 12px; color: var(--text-secondary);
}
.sl-products-strip strong { color: var(--text); font-weight: 600; }
.sl-products-strip a { color: var(--primary); }
.footer-product-versions { color: var(--text-tertiary); }
.footer-product-versions a { color: var(--text-secondary); }
.lp-quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin: 20px 0;
  text-align: center; font-style: italic; color: var(--text-secondary);
}
.lp-quote strong { color: var(--text); font-style: normal; display: block; margin-top: 8px; font-size: 13px; }
.lp-section { padding: 30px 0; text-align: center; }

.skeleton-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px;
}
.skeleton-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; background: var(--surface);
}
.skeleton-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
.skeleton-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line {
  height: 10px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.game-fab {
  display: none; position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%); z-index: 90;
  padding: 12px 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #9b7aff);
  color: #fff; font-weight: 700; font-size: 14px;
  border: none; box-shadow: 0 8px 32px rgba(124,77,255,0.4);
  font-family: var(--font); cursor: pointer; text-decoration: none;
}
.game-meta { color: var(--text-secondary); font-size: 13px; margin-bottom: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.game-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.game-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.back-link {
  color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-sm); transition: all 0.15s;
}
.back-link:hover { color: var(--text); background: var(--surface); }
.game-actions-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.game-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-bottom: 24px; }
.game-meta-item { font-size: 13px; color: var(--text-secondary); display: flex; gap: 8px; padding: 8px 12px; background: var(--surface-glass); border-radius: var(--radius-sm); }
.game-meta-item .label { color: var(--text-tertiary); min-width: 90px; }
.game-meta-item .value { color: var(--text); }

/* ── Game Tabs ── */
.game-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.game-tab {
  padding: 10px 20px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; border: none; color: var(--text-secondary); font-family: var(--font);
  transition: all 0.2s; margin-bottom: -1px; border-bottom: 2px solid transparent;
}
.game-tab:hover { color: var(--text); background: var(--surface); }
.game-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-dim); }
.game-section { display: none; }
.game-section.active { display: block; }

/* ──── Age badges ── */
.age-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.age-badge.ag6 { background: rgba(76, 175, 80, 0.15); color: #66bb6a; }
.age-badge.ag10 { background: rgba(76, 175, 80, 0.15); color: #66bb6a; }
.age-badge.ag12 { background: rgba(255, 193, 7, 0.15); color: #ffd54f; }
.age-badge.ag16 { background: rgba(255, 152, 0, 0.15); color: #ffb74d; }
.age-badge.ag18 { background: rgba(244, 67, 54, 0.15); color: #ef5350; }

/* ── Icon buttons ── */
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 18px; cursor: pointer; transition: all 0.15s;
  background: var(--surface-glass); border: 1px solid var(--border); color: var(--text-secondary);
  font-family: var(--font); text-decoration: none; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.icon-btn:hover { border-color: var(--primary); color: var(--text); }
.icon-btn.active { color: #ff4081; border-color: #ff4081; background: rgba(255, 64, 129, 0.1); }
.icon-btn.wl-active { color: #7c4dff; border-color: #7c4dff; background: var(--primary-dim); }

/* ── Modal ── */
.age-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.age-modal {
  background: var(--surface-glass);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; max-width: 360px; width: 90%; text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.age-modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.age-modal-icon { font-size: 44px; margin-bottom: 10px; }
.age-modal p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.age-input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font); outline: none; box-sizing: border-box;
}
.age-input:focus { border-color: var(--primary); }

/* ── Loading / Empty ── */
.explore-loading, .explore-empty {
  text-align: center; padding: 80px 20px; color: var(--text-secondary); font-size: 14px;
  grid-column: 1 / -1;
}

/* ── Footer ── */
.footer {
  padding: 24px 0; text-align: center; font-size: 12px; color: var(--text-tertiary);
  border-top: 1px solid var(--border); margin-top: 48px;
}

/* ── Share / Promote ── */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: none; cursor: pointer; font-size: 17px; font-weight: 700;
  color: #fff; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.share-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
.share-btn:active { transform: scale(0.95); }

.promo-qr { margin: 12px 0; }
.promo-qr img {
  border-radius: var(--radius-sm); background: #fff; padding: 6px;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.promo-qr img:hover { box-shadow: var(--shadow-md); }

.promo-embed { margin-top: 8px; }
.embed-code {
  display: block; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 11px; word-break: break-all;
  max-width: 100%; overflow-x: auto; white-space: pre-wrap;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ── Related ── */
.related-section { margin-top: 28px; }
.related-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.related-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 10px;
  background: var(--surface-glass); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.related-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.related-cover { font-size: 36px; text-align: center; }
.related-title {
  font-size: 12px; font-weight: 600; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.related-author { font-size: 10px; color: var(--text-secondary); text-align: center; }

/* ── Explore Layout (sidebar + grid) ── */
.explore-layout {
  display: flex !important;
  flex-direction: row !important;
  gap: 28px;
  align-items: flex-start;
}
.explore-main { flex: 1; min-width: 0; width: auto; }
.explore-sidebar {
  width: 270px;
  min-width: 270px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

/* ── Sidebar Rankings ── */
.sidebar-rankings {
  display: flex; flex-direction: column; gap: 12px;
}
.sidebar-rank-section {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sidebar-rank-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.sidebar-rank-header span { color: var(--text); }
.sidebar-rank-empty {
  font-size: 11px; color: var(--text-tertiary);
  text-align: center; padding: 12px 0;
}
.sidebar-rank-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; text-decoration: none; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all 0.15s;
}
.sidebar-rank-item:last-child { border-bottom: none; }
.sidebar-rank-item:hover { color: var(--primary); }
.sidebar-rank-pos {
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; font-size: 9px; font-weight: 800;
  background: var(--primary-dim); color: var(--primary); flex-shrink: 0;
}
.sidebar-rank-item:first-child .sidebar-rank-pos { background: rgba(255,215,0,0.12); color: #ffd54f; }
.sidebar-rank-item:nth-child(2) .sidebar-rank-pos { background: rgba(192,192,192,0.08); color: #c0c0c0; }
.sidebar-rank-item:nth-child(3) .sidebar-rank-pos { background: rgba(205,127,50,0.08); color: #cd7f32; }
.sidebar-rank-cover { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }
.sidebar-rank-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px;
}
.sidebar-rank-title {
  font-size: 11px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-rank-meta { font-size: 9px; color: var(--text-tertiary); }

/* ── Profile page (editorial) ── */
body.page-profile #profile-root { max-width: 900px; margin: 0 auto; }

body.page-profile .prof-hero {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap;
}
body.page-profile .prof-hero-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--surface), var(--primary-dim));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 22px; font-weight: 600; color: var(--primary);
  flex-shrink: 0; letter-spacing: -0.02em;
}
body.page-profile .prof-hero-info { flex: 1; min-width: 200px; }
body.page-profile .prof-hero-info h1 {
  font-family: var(--font-serif); font-size: 26px; font-weight: 600;
  margin-bottom: 4px; letter-spacing: -0.02em; line-height: 1.2;
}
body.page-profile .prof-hero-info > p { font-size: 12px; color: var(--text-secondary); margin: 0; }
body.page-profile .prof-hero-bio {
  font-family: var(--font-serif); font-style: italic; font-size: 14px;
  line-height: 1.75; color: var(--text-secondary); max-width: 52ch;
  margin: 10px 0 0; padding: 0;
}
body.page-profile .prof-hero-badges {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center;
}
body.page-profile .prof-hero-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500;
}
body.page-profile .prof-hero-badge.verified { background: rgba(76,175,80,0.15); color: #66bb6a; }
body.page-profile .prof-hero-badge.unverified { background: rgba(255,152,0,0.15); color: #ffb74d; }
body.page-profile .prof-hero-badge.age-ok { background: rgba(76,175,80,0.15); color: #66bb6a; }
body.page-profile .prof-hero-badge.age-no { background: rgba(244,67,54,0.15); color: #ef5350; }
body.page-profile .prof-hero-badge.creator { background: rgba(124,77,255,0.15); color: #9b7aff; }
body.page-profile .prof-hero-badge.social-paypal { background: rgba(0,156,222,0.15); color: #4fc3f7; text-decoration: none; }
body.page-profile .prof-hero-badge.social-patreon { background: rgba(255,69,0,0.15); color: #ff6b35; text-decoration: none; }
body.page-profile .prof-hero-badge.social-web { background: rgba(76,175,80,0.12); color: #81c784; text-decoration: none; }
body.page-profile .prof-hero-badge.social-github,
body.page-profile .prof-hero-badge.social-codeberg { background: rgba(36,41,47,0.15); color: #8b949e; text-decoration: none; }
body.page-profile .prof-hero-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
body.page-profile .prof-hero-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }
body.page-profile .prof-quick-stats {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px;
}
body.page-profile .prof-stat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-secondary);
}
body.page-profile .pi { flex-shrink: 0; vertical-align: middle; }
body.page-profile .pi-section { width: 16px; height: 16px; opacity: 0.85; }
body.page-profile .pi-stat { width: 14px; height: 14px; opacity: 0.75; }
body.page-profile .pi-dash { width: 18px; height: 18px; opacity: 0.9; }
body.page-profile .pi-badge { width: 12px; height: 12px; }
body.page-profile .pi-hero { width: 40px; height: 40px; opacity: 0.5; margin-bottom: 12px; }
body.page-profile .dash-icon { margin-bottom: 6px; line-height: 0; }
body.page-profile .dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin-bottom: 10px;
}
body.page-profile .dash-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; position: relative; overflow: hidden;
  backdrop-filter: blur(12px); transition: transform 0.2s, border-color 0.2s;
}
body.page-profile .dash-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent, var(--primary)), transparent);
  opacity: 0.6;
}
body.page-profile .dash-card:hover { transform: translateY(-2px); border-color: rgba(124,77,255,0.15); }
body.page-profile .dash-card .dash-value {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  color: var(--accent, var(--text));
}
body.page-profile .dash-card .dash-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
body.page-profile .dash-most-played { font-size: 12px; color: var(--text-secondary); text-align: center; padding: 8px; }
body.page-profile .prof-timeline { display: flex; flex-direction: column; gap: 0; }
body.page-profile .prof-timeline-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-left: 2px solid var(--border); margin-left: 8px; position: relative;
  transition: background 0.15s; cursor: pointer;
}
body.page-profile .prof-timeline-item::before {
  content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
body.page-profile .prof-timeline-item:hover { background: rgba(124,77,255,0.04); }
body.page-profile .prof-timeline-item:last-child { border-left-color: transparent; }
body.page-profile .prof-tl-cover { width: 28px; text-align: center; flex-shrink: 0; }
body.page-profile .prof-tl-info { flex: 1; min-width: 0; }
body.page-profile .prof-tl-title { font-size: 13px; font-weight: 600; }
body.page-profile .prof-tl-date { font-size: 11px; color: var(--text-secondary); }
body.page-profile .prof-section { margin-bottom: 28px; }
body.page-profile .prof-section h2 {
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary);
  font-family: var(--font);
}
body.page-profile .prof-section h3 {
  font-size: 13px; font-weight: 600; margin: 14px 0 8px;
  display: flex; align-items: center; gap: 6px;
}
body.page-profile .prof-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
body.page-profile .prof-panel p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.75; margin: 0 0 12px;
}
body.page-profile .prof-panel p:last-child { margin-bottom: 0; }
body.page-profile .prof-unreg { text-align: center; padding: 60px 20px; }
body.page-profile .prof-unreg h2 {
  font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin-bottom: 8px;
}
body.page-profile .prof-unreg p { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
body.page-profile .prof-coin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, rgba(255,193,7,0.2), rgba(255,152,0,0.15));
  color: #ffd54f; font-variant-numeric: tabular-nums;
}
body.page-profile .coin-hist-item {
  display: flex; gap: 10px; align-items: center; padding: 6px 10px;
  border-radius: 6px; background: var(--surface); border: 1px solid var(--border); font-size: 12px;
}
body.page-profile .coin-hist-item .plus { color: #66bb6a; font-weight: 700; }
body.page-profile .coin-hist-item .detail { flex: 1; color: var(--text-secondary); }
body.page-profile .coin-hist-item .date { color: var(--text-secondary); font-size: 11px; }
body.page-profile .coin-item .cost {
  display: inline-flex; align-items: center; gap: 4px;
}
body.page-profile .btn-with-icon { display: inline-flex; align-items: center; gap: 6px; }
body.page-profile .btn-sm { font-size: 12px; padding: 6px 14px; }
body.page-profile .prof-meta-line {
  font-size: 12px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
body.page-profile .prof-meta-line .pi { width: 12px; height: 12px; opacity: 0.7; }

/* ── Profile (legacy shared) ── */
.prof-header { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 36px; flex-wrap: wrap; }
.prof-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--surface), var(--primary-dim));
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.prof-info { flex: 1; min-width: 200px; }
.prof-info h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.prof-info p { font-size: 13px; color: var(--text-secondary); }
.prof-badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.prof-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.prof-badge.verified { background: rgba(76, 175, 80, 0.12); color: #66bb6a; }
.prof-badge.unverified { background: rgba(255, 152, 0, 0.12); color: #ffb74d; }
.prof-badge.age-ok { background: rgba(76, 175, 80, 0.12); color: #66bb6a; }
.prof-badge.age-no { background: rgba(244, 67, 54, 0.12); color: #ef5350; }

.prof-section { margin-bottom: 32px; }
.prof-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.prof-empty { text-align: center; padding: 48px 20px; color: var(--text-secondary); font-size: 13px; }
.prof-game-list { display: flex; flex-direction: column; gap: 6px; }
.prof-game-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--surface-glass); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.prof-game-item:hover { background: var(--surface); border-color: var(--border-hover); }
.prof-game-cover { font-size: 24px; width: 36px; text-align: center; flex-shrink: 0; }
.prof-game-info { flex: 1; min-width: 0; }
.prof-game-title { font-size: 13px; font-weight: 600; }
.prof-game-meta { font-size: 11px; color: var(--text-secondary); }
.prof-unreg { text-align: center; padding: 80px 20px; }
.prof-unreg h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.prof-unreg p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.prof-form { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.prof-input {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font); outline: none; transition: border-color 0.2s;
}
.prof-input:focus { border-color: var(--primary); }
.prof-edit-btn { font-size: 12px; color: var(--primary); cursor: pointer; background: none; border: none; font-family: var(--font); }
.prof-edit-btn:hover { text-decoration: underline; }
.prof-actions { display: flex; gap: 8px; margin-top: 4px; }
.prof-danger { color: #ef5350; font-size: 12px; cursor: pointer; background: none; border: none; font-family: var(--font); }
.prof-danger:hover { text-decoration: underline; }
.prof-coin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 20px; font-size: 15px; font-weight: 700; background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 152, 0, 0.08)); color: #ffd54f; }

.coin-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 14px 0; }
.coin-item { background: var(--surface-glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.coin-item h3 { font-size: 14px; font-weight: 600; }
.coin-item p { font-size: 12px; color: var(--text-secondary); flex: 1; }
.coin-item .cost { font-size: 13px; font-weight: 700; color: #ffd54f; }
.coin-item.owned { opacity: 0.4; }
.coin-item.owned .btn { display: none; }
.coin-hist { display: flex; flex-direction: column; gap: 4px; }

/* ── Devlog ── */
.devlog-list { display: flex; flex-direction: column; gap: 0; }
.devlog-entry { position: relative; padding: 20px 0 20px 28px; border-left: 2px solid var(--border); margin-left: 8px; }
.devlog-entry:last-child { border-left-color: transparent; }
.devlog-entry::before {
  content: ''; position: absolute; left: -6px; top: 22px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--bg);
}
.devlog-date { font-size: 11px; color: var(--text-tertiary); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.devlog-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.devlog-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ── Feedback ── */
.feedback-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.feedback-input, .feedback-textarea {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font); font-size: 13px; padding: 10px 14px; outline: none;
  transition: border-color 0.2s;
}
.feedback-input:focus, .feedback-textarea:focus { border-color: var(--primary); }
.feedback-textarea { min-height: 90px; resize: vertical; }
.feedback-list { display: flex; flex-direction: column; gap: 10px; }
.feedback-item { background: var(--surface-glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.feedback-item .meta { font-size: 11px; color: var(--text-tertiary); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.feedback-item .author { font-weight: 600; color: var(--text); }
.feedback-item .text { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.feedback-empty { text-align: center; padding: 48px 20px; color: var(--text-secondary); font-size: 13px; }

/* ── Cover images ── */
.game-cover img, .prof-game-cover img, .cover img, .mg-card-cover img, .ln-card-cover img {
  width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; vertical-align: middle;
  box-shadow: var(--shadow-sm);
}
.game-cover img { width: 96px; height: 96px; border-radius: var(--radius); }
.cover img, .mg-card-cover img, .ln-card-cover img { width: 56px; height: 56px; border-radius: var(--radius-sm); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header { gap: 10px; padding: 12px 0; }
  .header-nav, .nav-secondary { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav-cta { font-size: 11px; padding: 8px 12px; }

  .hero-featured { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 220px; }
  .hero-visual .cover-art { min-height: 220px; }
  .lp-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 24px; }
  .hero p { font-size: 13px; }

  .new-releases { padding: 14px 14px 12px; }
  .new-releases-grid { grid-template-columns: 1fr; gap: 8px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card-title { font-size: 12px; }
  .game-card-author { font-size: 10px; }

  .featured-banner { flex-direction: column; }
  .featured-banner-cover { width: 100%; aspect-ratio: 16/9; max-width: 180px; }

  .game-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .game-cover { width: 100%; aspect-ratio: 16/9; max-width: 250px; }
  .game-title { font-size: 22px; }
  .game-meta-grid { grid-template-columns: 1fr; }
  .game-meta-item .label { min-width: 80px; }

  .game-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 2px; }
  .game-tab { font-size: 12px; padding: 8px 14px; white-space: nowrap; }

  .store-type-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 2px; padding: 4px 4px 0; border-radius: 0; background: transparent; border: none; border-bottom: 1px solid var(--border); }
  .store-type-tab { font-size: 12px; padding: 8px 14px; white-space: nowrap; }
  .explore-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
  .explore-search { min-width: auto; }
  .explore-sort { justify-content: center; }

  .stats-bar { gap: 16px; flex-wrap: wrap; }

  .prof-header { flex-direction: column; align-items: center; text-align: center; }
  .prof-info h1 { font-size: 22px; }
  .coin-shop { grid-template-columns: 1fr; }

  .explore-layout { flex-direction: column !important; }
  .explore-sidebar { position: static; width: 100%; min-width: auto; }

  .cnt-grid { grid-template-columns: 1fr; }
  .cnt-coin-grid { grid-template-columns: 1fr 1fr; }

  .ln-reader { padding: 16px 16px 24px; }
  .ln-reader::before, .ln-reader::after { display: none; }
  .ln-topbar { flex-wrap: wrap; }
  .ln-chapter-title { font-size: 18px; }
  .ln-block-text, .ln-block-dialogue { font-size: 15px; }

  .mg-panel { min-height: 120px; }

  .game-actions-bar { flex-wrap: wrap; justify-content: center; }
  .game-actions-bar .btn, .game-actions-bar .icon-btn { font-size: 12px; padding: 6px 12px; }
  .game-fab { display: inline-flex; align-items: center; }

  .footer { font-size: 11px; margin-top: 32px; padding: 16px 0; }

  .age-modal { padding: 20px; }
  .age-modal h2 { font-size: 17px; }

  .prof-game-list { gap: 4px; }
  .prof-game-item { padding: 10px 12px; }

  .explore-filters { justify-content: center; }
}
