/* ===== PlayH5Game.com — Modern HTML5 Games Portal ===== */
:root {
  --red: #e60023;
  --red-dark: #c10020;
  --red-light: #ff3650;
  --red-soft: #ffe5e9;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-soft: #4a4a68;
  --text-mute: #8a8aa0;
  --border: #e8eaee;
  --border-strong: #d4d8de;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-purple: #7c3aed;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(230,0,35,0.15);
  --radius: 12px;
  --radius-lg: 18px;
  --header-h: 70px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--red); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo:hover { color: inherit; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 4px 12px rgba(230,0,35,0.25);
  position: relative; overflow: hidden;
  letter-spacing: -0.02em;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
}
.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-text .accent { color: var(--red); }

.search-bar { flex: 1; max-width: 480px; position: relative; }
.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit; font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.15s ease;
}
.search-bar input::placeholder { color: var(--text-mute); }
.search-bar input:focus {
  background: white;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,0,35,0.1);
}
.search-bar .ic {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute); font-size: 16px;
}
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: white; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow);
  max-height: 380px; overflow-y: auto;
  display: none;
}
.search-results.show { display: block; }
.search-results a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.search-results a:hover { background: var(--bg-soft); color: var(--red); }
.search-results a:last-child { border-bottom: none; }
.search-results .sr-emoji { font-size: 24px; }
.search-results .sr-cat { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; }

.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; margin-left: auto; }
.nav-links a {
  color: var(--text-soft);
  font-size: 14px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); background: var(--red-soft); }
.menu-toggle {
  display: none;
  background: var(--bg-soft); border: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 20px; color: var(--text);
}

/* LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 30px 0 60px;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
.sidebar h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px; padding: 0 12px;
}
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 2px; }
.sidebar-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-soft);
  font-size: 14px; font-weight: 500;
  transition: all 0.15s ease;
}
.sidebar-list a:hover { background: var(--bg-soft); color: var(--red); }
.sidebar-list a.active { background: var(--red-soft); color: var(--red); font-weight: 700; }
.sidebar-list .ic { font-size: 16px; width: 20px; text-align: center; }
.sidebar-list .count {
  margin-left: auto; font-size: 11px;
  color: var(--text-mute);
  background: var(--bg-soft);
  padding: 2px 8px; border-radius: 10px;
}
.sidebar-list a:hover .count, .sidebar-list a.active .count {
  background: rgba(230,0,35,0.1); color: var(--red);
}
.sidebar-section { margin-bottom: 26px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: white;
  margin-bottom: 36px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.hero::after {
  content: '🎮';
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  font-size: 180px; opacity: 0.15;
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero p { font-size: 17px; opacity: 0.95; margin-bottom: 24px; max-width: 500px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px); color: white;
  box-shadow: 0 8px 20px rgba(230,0,35,0.25);
}
.btn-white { background: white; color: var(--red); }
.btn-white:hover { color: var(--red-dark); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white; border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); color: white; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-large { padding: 14px 28px; font-size: 15px; }

/* SECTION */
.section { margin-bottom: 44px; }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.section-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-head h2 .emoji { font-size: 24px; }
.section-link {
  font-size: 13px; font-weight: 700;
  color: var(--red);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.section-link::after {
  content: ' →'; display: inline-block;
  transition: transform 0.15s ease;
}
.section-link:hover::after { transform: translateX(4px); }

/* GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  color: var(--text); display: block; position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  border-color: rgba(230,0,35,0.2);
}
.game-thumb {
  aspect-ratio: 1;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.game-thumb .ic {
  font-size: 64px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}
.game-card:hover .game-thumb .ic { transform: scale(1.15) rotate(-5deg); }
.game-thumb .play-overlay {
  position: absolute; inset: 0;
  background: rgba(230,0,35,0.85);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.game-thumb .play-overlay::after {
  content: '▶';
  background: white; color: var(--red);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding-left: 4px; font-size: 24px;
}
.game-card:hover .play-overlay { opacity: 1; }
.game-thumb .badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 9px; border-radius: 4px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  z-index: 2;
}
.badge-new { background: var(--accent-green); color: white; }
.badge-hot { background: var(--red); color: white; }
.badge-pop { background: var(--accent-orange); color: white; }
.badge-top { background: var(--accent-purple); color: white; }
.game-info { padding: 12px 14px; }
.game-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.game-info .meta {
  font-size: 11px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600;
}

/* Thumbnail backgrounds by category */
.thumb-action    { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); }
.thumb-puzzle    { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }
.thumb-racing    { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.thumb-sports    { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.thumb-shooting  { background: linear-gradient(135deg, #1e293b 0%, #475569 100%); }
.thumb-arcade    { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.thumb-girls     { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }
.thumb-kids      { background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%); }
.thumb-strategy  { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.thumb-casual    { background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%); }
.thumb-cooking   { background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%); }
.thumb-adventure { background: linear-gradient(135deg, #059669 0%, #0891b2 100%); }
.thumb-skill     { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.thumb-word      { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }

/* CATEGORY CARDS */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-decoration: none;
  color: var(--text); text-align: center;
  transition: all 0.2s ease;
}
.category-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.category-card .cat-emoji { font-size: 38px; margin-bottom: 8px; display: block; }
.category-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 15px;
  margin-bottom: 2px;
}
.category-card .ct-count { font-size: 12px; color: var(--text-mute); }

/* AD SLOTS */
.ad-slot {
  background: var(--bg-soft);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  display: grid; place-items: center;
  text-align: center;
  color: var(--text-mute);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 20px;
}
.ad-leaderboard { min-height: 90px; margin: 30px 0; }
.ad-sidebar { min-height: 250px; margin-bottom: 16px; }

/* PAGE HEADER */
.page-header {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-header .breadcrumb {
  font-size: 13px; color: var(--text-mute);
  margin-bottom: 10px;
}
.page-header .breadcrumb a { color: var(--text-mute); }
.page-header .breadcrumb a:hover { color: var(--red); }
.page-header .breadcrumb .sep { margin: 0 6px; }
.page-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 10px;
}
.page-header .lede {
  font-size: 16px; color: var(--text-soft);
  max-width: 720px;
}

/* GAME PAGE */
.game-page-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  margin-bottom: 36px;
}
.game-stage {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.game-frame {
  aspect-ratio: 16/10;
  background: var(--bg-soft);
  position: relative;
}
.game-frame iframe, .game-frame canvas {
  width: 100%; height: 100%;
  border: none; display: block;
}
.game-frame.html-mount {
  aspect-ratio: auto;
  min-height: 540px;
  padding: 20px;
}
.game-frame .game-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}
.game-frame .game-placeholder .big-emoji { font-size: 90px; margin-bottom: 14px; }
.game-frame .game-placeholder h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; margin-bottom: 8px; color: var(--text);
}
.game-frame .game-placeholder p {
  color: var(--text-mute);
  max-width: 420px; margin-bottom: 20px;
  font-size: 14px;
}
.game-toolbar {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--bg-soft);
}
.toolbar-left { display: flex; align-items: center; gap: 14px; }
.toolbar-left .game-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 26px; color: white;
}
.toolbar-left h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 17px;
  margin-bottom: 2px;
}
.toolbar-left .cat-badge {
  font-size: 11px; color: var(--text-mute);
  text-transform: uppercase; font-weight: 600;
  letter-spacing: 0.05em;
}
.toolbar-right { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-soft); cursor: pointer;
  transition: all 0.15s ease;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.game-sidebar { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.info-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px; color: var(--text);
  font-weight: 800;
}
.info-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .lbl { color: var(--text-mute); }
.info-row .val { color: var(--text); font-weight: 600; }
.controls-list { list-style: none; }
.controls-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.controls-list li:last-child { border-bottom: none; }
.kbd {
  display: inline-block; padding: 3px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px; color: var(--text);
  font-weight: 600;
  min-width: 30px; text-align: center;
}
.game-description {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; margin-bottom: 32px;
}
.game-description h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; margin-bottom: 14px;
  font-weight: 700;
}
.game-description h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px; margin: 20px 0 10px;
  font-weight: 700;
}
.game-description p {
  color: var(--text-soft);
  margin-bottom: 14px;
  line-height: 1.75;
}

/* PROSE */
.prose {
  max-width: 760px;
  font-size: 16px; line-height: 1.75;
  color: var(--text-soft);
}
.prose p { margin-bottom: 1.2em; }
.prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text); font-size: 24px;
  font-weight: 700; margin: 36px 0 14px;
}
.prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text); font-size: 18px;
  font-weight: 700; margin: 26px 0 10px;
}
.prose ul, .prose ol { margin: 0 0 1.2em 1.5em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--red); text-decoration: underline; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}
.contact-info, .contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info h2, .contact-form h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; margin-bottom: 12px; font-weight: 700;
}
.contact-info p { color: var(--text-soft); margin-bottom: 22px; }
.info-item {
  display: flex; gap: 12px; margin-bottom: 16px;
  align-items: flex-start;
}
.info-item .ic {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--red-soft); color: var(--red);
  display: grid; place-items: center;
  font-size: 16px; flex-shrink: 0;
}
.info-item .lbl {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-mute);
  margin-bottom: 2px; font-weight: 600;
}
.info-item a, .info-item .val {
  color: var(--text); font-weight: 600; font-size: 14px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 12px;
  font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit; font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,0,35,0.1);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* FOOTER */
footer.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-about p {
  margin-top: 14px;
  color: var(--text-soft);
  max-width: 320px; font-size: 14px;
}
.footer-grid h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text); margin-bottom: 14px;
  font-weight: 800;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-soft); font-size: 14px; }
.footer-grid a:hover { color: var(--red); }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 13px; color: var(--text-mute);
  flex-wrap: wrap; gap: 12px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-soft); font-size: 15px;
}
.social-links a:hover { background: var(--red); color: white; border-color: var(--red); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 480px; margin: 0 auto;
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 200;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p {
  font-size: 13px; color: var(--text-soft);
  margin-bottom: 12px; line-height: 1.5;
}
.cookie-banner p a { color: var(--red); }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-actions button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer;
}
.cookie-accept { background: var(--red); color: white; }
.cookie-decline { background: var(--bg-soft); color: var(--text); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar {
    position: static; max-height: none; margin-bottom: 30px;
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px;
  }
  .game-page-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute; top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: white; padding: 18px; gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .container, .header-inner { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 12px; }
  .search-bar { display: none; }
  .hero { padding: 36px 24px; }
  .hero::after { font-size: 120px; right: 20px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .game-thumb .ic { font-size: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .form-row.row2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
