/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --accent-dark: #00b3ad;
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text: #e8e8f0;
  --text-muted: #9a9ab0;
  --border: #2d2d4a;
  --danger: #ff6b6b;
  --success: #51cf66;
  --warning: #ffd43b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.35);
  --transition: .25s ease;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Header / Navbar ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,26,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.5rem;
  position: relative;
}
.logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: .95rem; font-weight: 500;
  padding: .4rem .1rem; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  position: absolute; left: 50%; transform: translateX(-50%);
  transition: var(--transition);
}
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 50%; margin-top: -1px; }
.menu-toggle span:nth-child(3) { bottom: 12px; }
.menu-toggle.active span:nth-child(1) { top: 50%; margin-top: -1px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; margin-bottom: -1px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: block; z-index: 110; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15,15,26,.98); padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 105;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem 0; }
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(180deg, rgba(108,92,231,.12) 0%, transparent 100%);
}
.hero h1 {
  font-size: 2.8rem; font-weight: 800; margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5rem; }
.search-box {
  display: flex; max-width: 520px; margin: 0 auto;
  background: var(--bg-card); border-radius: 50px;
  border: 1px solid var(--border); overflow: hidden;
}
.search-box input {
  flex: 1; border: none; outline: none; padding: .85rem 1.5rem;
  background: transparent; color: var(--text); font-size: 1rem;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box button {
  padding: .85rem 1.8rem; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 600;
  font-size: .95rem; transition: background var(--transition);
}
.search-box button:hover { background: var(--primary-dark); }

/* ===== Container ===== */
.container { max-width: 1280px; margin: auto; padding: 0 1.5rem; }

/* ===== Section ===== */
.section { padding: 3rem 0; }
.section-title {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 0;
  display: flex; align-items: center; gap: .5rem;
}
.section-title .icon { font-size: 1.3rem; }
.section-title-center {
  justify-content: center;
  text-align: center;
  padding: 1.2rem 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 1rem;
}
.section-desc {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: .4rem;
  margin-bottom: 1.5rem;
}
.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(108,92,231,.1);
  border: 1px solid rgba(108,92,231,.25);
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.view-more-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}

/* ===== Game Card Grid ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.game-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(108,92,231,.25), 0 2px 16px rgba(0,0,0,.3);
  border-color: var(--primary);
}
/* Card Image Area */
.game-card .card-thumb {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 16/10;
  background: var(--border);
}
.game-card .card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.game-card:hover .card-thumb img {
  transform: scale(1.08);
}
/* Image overlay on hover */
.game-card .card-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,.7) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition);
  pointer-events: none;
}
.game-card:hover .card-thumb::after { opacity: 1; }
/* Badges on image */
.game-card .badge-row {
  position: absolute; top: .6rem; left: .6rem; right: .6rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 2;
}
.game-card .badge-tag {
  padding: .2rem .6rem; border-radius: 50px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
}
.badge-tag.action { background: rgba(255,107,107,.85); color: #fff; }
.badge-tag.puzzle { background: rgba(81,207,102,.85); color: #fff; }
.badge-tag.adventure { background: rgba(108,92,231,.85); color: #fff; }
.badge-tag.racing { background: rgba(255,212,59,.85); color: #1a1a2e; }
.badge-tag.strategy { background: rgba(0,206,201,.85); color: #1a1a2e; }
.badge-tag.sports { background: rgba(255,159,67,.85); color: #fff; }
.badge-tag.casual { background: rgba(255,143,177,.85); color: #fff; }
.badge-tag.board { background: rgba(162,155,254,.85); color: #fff; }
.badge-tag.shooter { background: rgba(220,53,69,.85); color: #fff; }
.badge-tag.rpg { background: rgba(156,39,176,.85); color: #fff; }
.badge-tag.platformer { background: rgba(0,188,212,.85); color: #fff; }
.badge-tag.horror { background: rgba(69,69,69,.85); color: #ff6b6b; }
.badge-tag.educational { background: rgba(76,175,80,.85); color: #fff; }
.badge-tag.building { background: rgba(121,85,72,.85); color: #fff; }
.game-card .badge-new {
  padding: .2rem .55rem; border-radius: 50px;
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  background: rgba(255,107,107,.9); color: #fff;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,.5); }
  50% { box-shadow: 0 0 0 4px rgba(255,107,107,0); }
}
/* Favorite button on image */
.game-card .fav-btn {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  border: none; cursor: pointer; color: #fff; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); opacity: 0;
  transform: scale(.8);
}
.game-card:hover .fav-btn { opacity: 1; transform: scale(1); }
.game-card .fav-btn:hover { background: rgba(255,107,107,.8); }
.game-card .fav-btn.active { color: #ff6b6b; opacity: 1; transform: scale(1); }
/* Online indicator on image */
.game-card .online-dot {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 2;
  display: flex; align-items: center; gap: .35rem;
  padding: .15rem .55rem; border-radius: 50px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  font-size: .7rem; color: var(--success); font-weight: 600;
}
.game-card .online-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse-online 1.5s ease-in-out infinite;
}
@keyframes pulse-online {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
/* Card Info Area */
.game-card .card-info {
  padding: 1rem 1.1rem .7rem;
  flex: 1; display: flex; flex-direction: column;
}
.game-card .card-info h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--transition);
}
.game-card:hover .card-info h3 { color: var(--accent); }
.game-card .card-info .desc {
  font-size: .8rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: .6rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Star Rating */
.game-card .card-info .rating-row {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.game-card .stars {
  display: flex; gap: 1px; font-size: .8rem;
}
.game-card .stars .star-filled { color: #ffd43b; }
.game-card .stars .star-empty { color: #3a3a5c; }
.game-card .rating-num {
  font-size: .82rem; font-weight: 700; color: var(--warning);
}
.game-card .review-count {
  font-size: .72rem; color: var(--text-muted);
}
/* Stats Row */
.game-card .card-info .stats-row {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem;
  font-size: .75rem; color: var(--text-muted);
}
.game-card .card-info .stats-row .stat {
  display: flex; align-items: center; gap: .25rem;
}
.game-card .card-info .stats-row .stat .stat-icon {
  font-size: .8rem; opacity: .7;
}
/* Difficulty Bar */
.game-card .difficulty-bar {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.game-card .difficulty-bar .label {
  font-size: .72rem; color: var(--text-muted); font-weight: 600; min-width: 30px;
}
.game-card .difficulty-bar .dots {
  display: flex; gap: 3px;
}
.game-card .difficulty-bar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2d2d4a;
}
.game-card .difficulty-bar .dot.easy { background: var(--success); }
.game-card .difficulty-bar .dot.medium { background: var(--warning); }
.game-card .difficulty-bar .dot.hard { background: var(--danger); }
/* Tags Row */
.game-card .card-info .tags-row {
  display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem;
}
.game-card .card-info .mini-tag {
  padding: .1rem .45rem; border-radius: 4px;
  font-size: .68rem; font-weight: 600;
  background: rgba(108,92,231,.12); color: var(--primary);
  border: 1px solid rgba(108,92,231,.2);
}
/* Card Footer */
.game-card .card-footer {
  padding: .6rem 1.1rem .9rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
}
.game-card .play-btn {
  flex: 1; text-align: center; padding: .6rem .8rem;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: #fff; font-weight: 700; font-size: .85rem;
  border-radius: 8px; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.game-card .play-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, var(--accent) 100%);
  opacity: 0; transition: opacity var(--transition);
}
.game-card .play-btn span { position: relative; z-index: 1; }
.game-card .play-btn:hover::before { opacity: 1; }
.game-card .play-btn:hover { color: #fff; transform: scale(1.02); }
.game-card .card-players {
  display: flex; align-items: center;
}
.game-card .card-players .player-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--bg-card); margin-left: -6px;
  background: var(--border); object-fit: cover;
}
.game-card .card-players .player-avatar:first-child { margin-left: 0; }
.game-card .card-players .player-count {
  font-size: .72rem; color: var(--text-muted); margin-left: .35rem; font-weight: 600;
}

/* ===== Featured Banner ===== */
.featured-banner {
  border-radius: var(--radius); overflow: hidden;
  position: relative; margin-bottom: 2rem;
}
.featured-banner img {
  width: 100%; height: 340px; object-fit: cover;
}
.featured-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,.9) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
}
.featured-banner .overlay h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.featured-banner .overlay p { color: var(--text-muted); margin-bottom: 1rem; max-width: 500px; }
.btn {
  display: inline-block; padding: .65rem 1.5rem;
  border-radius: 50px; font-weight: 600; font-size: .9rem;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--bg-dark); }
.btn-accent:hover { background: var(--accent-dark); color: var(--bg-dark); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Tag Cloud ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .65rem; }
.tag-item {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem 1.1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 50px;
  font-size: .9rem; color: var(--text); transition: all var(--transition);
}
.tag-item:hover { border-color: var(--primary); color: var(--primary); }
.tag-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(108,92,231,.35);
  pointer-events: none;
}
.tag-item.active .count {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.tag-item .count {
  font-size: .75rem; background: rgba(108,92,231,.2);
  color: var(--primary); padding: .1rem .5rem; border-radius: 50px;
}

/* ===== Categories Grid ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1rem;
  text-align: center; transition: all var(--transition);
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .cat-icon { font-size: 2.2rem; margin-bottom: .5rem; }
.cat-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.cat-card p { font-size: .82rem; color: var(--text-muted); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem 0; font-size: .88rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

/* ===== Content Page ===== */
.page-content { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.page-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.page-content h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.page-content h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.page-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.page-content ul, .page-content ol {
  margin: 0 0 1rem 1.2rem; color: var(--text-muted);
}
.page-content li { margin-bottom: .4rem; line-height: 1.7; list-style: disc; }
.page-content ol li { list-style: decimal; }
.page-content a { color: var(--primary); }
.page-content a:hover { text-decoration: underline; }

/* ===== Contact Form ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding: 2rem 0;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item .icon-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(108,92,231,.15); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-info-item h3 { font-size: .95rem; margin-bottom: .15rem; }
.contact-info-item p { font-size: .88rem; color: var(--text-muted); }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; margin-bottom: .4rem; font-size: .9rem;
  font-weight: 600;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: .95rem; outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Pagination ===== */
.pagination-bar {
  display: flex;
  justify-content: center;
  padding: 2rem 0 1rem;
  grid-column: 1 / -1;
}
.pagination-container {
  display: flex;
  justify-content: center;
}
.pagination nav {
  display: flex;
}
.pagination-list {
  display: flex;
  align-items: center;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination-item {
  margin: 0;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.pagination-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108,92,231,.1);
  transform: translateY(-1px);
}
.pagination-item.active .pagination-link {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(108,92,231,.35);
  pointer-events: none;
}
.pagination-link.prev,
.pagination-link.next {
  font-size: 1.1rem;
  padding: 0 .75rem;
  color: var(--text-muted);
}
.pagination-link.prev:hover,
.pagination-link.next:hover {
  color: var(--primary);
}
.pagination-link.disabled {
  opacity: .35;
  pointer-events: none;
  cursor: default;
}
@media (max-width: 768px) {
  .pagination-list { gap: .3rem; }
  .pagination-link {
    min-width: 34px;
    height: 34px;
    font-size: .82rem;
  }
}

/* ===== List Filter Bar ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem; padding: 1rem;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.filter-bar label { font-size: .88rem; font-weight: 600; margin-right: .25rem; }
.filter-bar select {
  padding: .5rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-dark);
  color: var(--text); font-size: .88rem; outline: none;
  cursor: pointer;
}
.filter-bar select:focus { border-color: var(--primary); }
.filter-bar .result-count { margin-left: auto; font-size: .88rem; color: var(--text-muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem; margin-top: 2rem;
}
.footer-grid {
  max-width: 1280px; margin: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 {
  font-size: 1rem; margin-bottom: .75rem; color: var(--text);
}
.footer-col p, .footer-col a {
  font-size: .88rem; color: var(--text-muted); line-height: 1.8;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1280px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  text-align: center; font-size: .82rem; color: var(--text-muted);
}

/* ===== Popular Games — Ember Deck ===== */
.ember-section {
  background: linear-gradient(180deg, rgba(108,92,231,.08) 0%, transparent 100%);
  padding-bottom: 4rem;
  overflow: hidden;
}
.ember-deck {
  width: 100%;
}
.ember-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
/* --- Hero Card --- */
.ember-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}
.ember-hero[data-color="#ff6b6b"] { --card-color: #ff6b6b; }
.ember-hero[data-color="#51cf66"] { --card-color: #51cf66; }
.ember-hero[data-color="#6c5ce7"] { --card-color: #6c5ce7; }
.ember-hero[data-color="#ffd43b"] { --card-color: #ffd43b; }
.ember-hero[data-color="#00cec9"] { --card-color: #00cec9; }
.ember-hero:hover {
  border-color: var(--card-color, var(--primary));
  box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 40px color-mix(in srgb, var(--card-color, var(--primary)) 18%, transparent);
  transform: translateY(-4px);
}
.ember-hero-thumb {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.ember-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.ember-hero:hover .ember-hero-thumb img {
  transform: scale(1.08);
}
.ember-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,.92) 0%, rgba(15,15,26,.35) 45%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  gap: 1rem;
}
.ember-hero-content { display: flex; flex-direction: column; }
.ember-tag {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .4rem;
  width: fit-content;
}
.ember-tag.action { background: rgba(255,107,107,.2); color: #ff6b6b; }
.ember-tag.puzzle { background: rgba(81,207,102,.2); color: #51cf66; }
.ember-tag.adventure { background: rgba(108,92,231,.2); color: #6c5ce7; }
.ember-tag.racing { background: rgba(255,212,59,.2); color: #ffd43b; }
.ember-tag.strategy { background: rgba(0,206,201,.2); color: #00cec9; }
.ember-tag.sports { background: rgba(255,159,67,.2); color: #ff9f43; }
.ember-tag.casual { background: rgba(255,143,177,.2); color: #ff8fb1; }
.ember-tag.board { background: rgba(162,155,254,.2); color: #a29bfe; }
.ember-hero-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  transition: color var(--transition);
}
.ember-hero:hover .ember-hero-content h3 { color: var(--card-color, var(--accent)); }
.ember-hero-content p {
  font-size: .9rem;
  color: rgba(232,232,240,.8);
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: .5rem;
}
.ember-hero-stats {
  display: flex;
  gap: .85rem;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.ember-hot {
  color: #ff6b6b;
  animation: emberPulse 2s ease-in-out infinite;
}
@keyframes emberPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.ember-hero-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: fit-content;
  padding: .7rem 1.8rem;
  border-radius: 50px;
  background: var(--card-color, var(--primary));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  transition: all .35s ease;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--card-color, var(--primary)) 40%, transparent);
}
.ember-hero:hover .ember-hero-play {
  transform: scale(1.06);
  box-shadow: 0 6px 28px color-mix(in srgb, var(--card-color, var(--primary)) 55%, transparent);
}
/* --- Side List --- */
.ember-item {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  flex: 1;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}
.ember-item[data-color="#51cf66"] { --card-color: #51cf66; }
.ember-item[data-color="#6c5ce7"] { --card-color: #6c5ce7; }
.ember-item[data-color="#ffd43b"] { --card-color: #ffd43b; }
.ember-item[data-color="#00cec9"] { --card-color: #00cec9; }
.ember-item[data-color="#ff6b6b"] { --card-color: #ff6b6b; }
.ember-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--card-color, var(--primary));
  transform: scaleY(0);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.ember-item:hover::after { transform: scaleY(1); }
.ember-item:hover {
  border-color: color-mix(in srgb, var(--card-color) 40%, transparent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2), 0 0 16px color-mix(in srgb, var(--card-color) 10%, transparent);
}
.ember-item-thumb {
  position: relative;
  width: 130px;
  min-height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.ember-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ember-item:hover .ember-item-thumb img {
  transform: scale(1.1);
}
.ember-rank {
  position: absolute;
  top: .45rem;
  left: .45rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15,15,26,.8);
  backdrop-filter: blur(8px);
  color: var(--card-color, var(--accent));
  font-size: .75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card-color, var(--accent));
  z-index: 2;
}
.ember-item-info {
  padding: .7rem .9rem .7rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  min-width: 0;
}
.ember-item-info h3,
.ember-item-info h4 {
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}
.ember-item:hover .ember-item-info h3,
.ember-item:hover .ember-item-info h4 { color: var(--card-color, var(--accent)); }
.ember-item-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ember-item-meta {
  display: flex;
  gap: .65rem;
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
  align-items: center;
}
.ember-item-meta .star-rating {
  font-size: .8rem;
}
@media (max-width: 768px) {
  .ember-list {
    grid-template-columns: 1fr;
  }
  .ember-hero-thumb { min-height: 280px; }
  .ember-item-thumb { width: 100px; }
  .ember-hero-content h3 { font-size: 1.3rem; }
}

/* ===== List Page Grid (ember-item style, 3 per row) ===== */
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}
.list-grid .ember-item-thumb {
  width: 150px;
}
@media (max-width: 576px) {
  .list-grid { grid-template-columns: 1fr; }
}

/* ===== Recommended Games — Immersive Cards ===== */
.rec-section {
  background: linear-gradient(180deg, rgba(108,92,231,.05) 0%, transparent 60%);
  padding-bottom: 4rem;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.rec-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.rec-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), filter .6s ease;
  filter: brightness(.85) saturate(1.1);
}
.rec-card:hover > img {
  transform: scale(1.1);
  filter: brightness(.7) saturate(1.2);
}
.rec-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5rem 1.2rem 1.2rem;
  background: linear-gradient(0deg, rgba(10,10,20,.92) 0%, rgba(10,10,20,.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: .3rem;
  z-index: 2;
}
.rec-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .2rem .65rem;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  backdrop-filter: blur(4px);
}
.rec-badge.action   { background: rgba(255,107,107,.25); color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); }
.rec-badge.casual   { background: rgba(81,207,102,.25); color: #51cf66; border: 1px solid rgba(81,207,102,.3); }
.rec-badge.adventure { background: rgba(108,92,231,.25); color: #a29bfe; border: 1px solid rgba(108,92,231,.3); }
.rec-badge.racing   { background: rgba(255,212,59,.25); color: #ffd43b; border: 1px solid rgba(255,212,59,.3); }
.rec-badge.strategy { background: rgba(0,206,201,.25); color: #00cec9; border: 1px solid rgba(0,206,201,.3); }
.rec-badge.sports   { background: rgba(255,159,67,.25); color: #ff9f43; border: 1px solid rgba(255,159,67,.3); }
.rec-badge.puzzle   { background: rgba(162,155,254,.25); color: #a29bfe; border: 1px solid rgba(162,155,254,.3); }
.rec-badge.board    { background: rgba(255,143,177,.25); color: #ff8fb1; border: 1px solid rgba(255,143,177,.3); }
.rec-overlay h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.2px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  transition: text-shadow .3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-card:hover .rec-overlay h3 {
  text-shadow: 0 2px 16px color-mix(in srgb, var(--card-color, var(--accent)) 60%, transparent);
}
.rec-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-meta {
  display: flex;
  gap: .85rem;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
}
.rec-glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  border-radius: 50%;
  background: var(--card-color, var(--primary));
  opacity: 0;
  filter: blur(50px);
  transition: opacity .5s ease;
  z-index: 1;
  pointer-events: none;
}
.rec-card[data-color="#ff6b6b"] { --card-color: #ff6b6b; }
.rec-card[data-color="#51cf66"] { --card-color: #51cf66; }
.rec-card[data-color="#6c5ce7"] { --card-color: #6c5ce7; }
.rec-card[data-color="#ffd43b"] { --card-color: #ffd43b; }
.rec-card[data-color="#00cec9"] { --card-color: #00cec9; }
.rec-card[data-color="#ff9f43"] { --card-color: #ff9f43; }
.rec-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.rec-play svg {
  width: 22px; height: 22px;
  fill: #fff;
  margin-left: 3px;
}
.rec-card:hover .rec-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.rec-card:hover .rec-play {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 24px rgba(255,255,255,.15);
}
.rec-card:hover .rec-glow { opacity: .2; }
@media (max-width: 768px) {
  .rec-grid { grid-template-columns: 1fr; }
  .rec-card { aspect-ratio: 16 / 10; }
}

/* ===== Categories — Neon Matrix ===== */
.matrix-section {
  background: linear-gradient(180deg, rgba(0,206,201,.04) 0%, transparent 100%);
  padding-bottom: 4rem;
}
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.matrix-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}
.matrix-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--primary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.matrix-card[data-color="#ff6b6b"] { --card-color: #ff6b6b; }
.matrix-card[data-color="#51cf66"] { --card-color: #51cf66; }
.matrix-card[data-color="#6c5ce7"] { --card-color: #6c5ce7; }
.matrix-card[data-color="#ffd43b"] { --card-color: #ffd43b; }
.matrix-card[data-color="#00cec9"] { --card-color: #00cec9; }
.matrix-card[data-color="#ff9f43"] { --card-color: #ff9f43; }
.matrix-card[data-color="#a29bfe"] { --card-color: #a29bfe; }
.matrix-card[data-color="#ff8fb1"] { --card-color: #ff8fb1; }
.matrix-card:hover::before { transform: scaleX(1); }
.matrix-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-color) 40%, transparent);
  box-shadow: 0 12px 36px rgba(0,0,0,.25), 0 0 20px color-mix(in srgb, var(--card-color) 15%, transparent);
}
.matrix-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto .8rem;
  background: color-mix(in srgb, var(--card-color) 12%, transparent);
  transition: transform .35s ease, background .35s ease;
}
.matrix-card:hover .matrix-icon {
  transform: scale(1.12) rotate(-8deg);
  background: color-mix(in srgb, var(--card-color) 22%, transparent);
}
.matrix-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
  transition: color var(--transition);
}
.matrix-card:hover h3 { color: var(--card-color); }
.matrix-count {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.matrix-bar {
  height: 2px;
  margin-top: .8rem;
  border-radius: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.matrix-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--card-color, var(--primary));
  border-radius: 2px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.matrix-card:hover .matrix-bar::after { width: 100%; }
@media (max-width: 768px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }
  .matrix-card { padding: 1.2rem 1rem; }
  .matrix-icon { width: 46px; height: 46px; font-size: 1.4rem; border-radius: 12px; }
}

/* ===== New Games — Holo Rail ===== */
.holo-section {
  background: linear-gradient(180deg, transparent 0%, rgba(108,92,231,.05) 100%);
  padding-bottom: 4rem;
}
.holo-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.holo-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}
.holo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108,92,231,.08), transparent);
  transition: left .6s ease;
  pointer-events: none;
  z-index: 1;
}
.holo-card:hover::before { left: 100%; }
.holo-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(108,92,231,.2), 0 4px 16px rgba(0,0,0,.25);
}
.holo-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.holo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.holo-card:hover .holo-thumb img {
  transform: scale(1.1);
}
.holo-ribbon {
  position: absolute;
  top: .6rem;
  right: -.6rem;
  padding: .2rem .9rem;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 2;
  border-radius: 3px 0 0 3px;
}
.holo-ribbon::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  border: 2.5px solid transparent;
  border-top-color: rgba(255,107,107,.4);
  border-right-color: rgba(255,107,107,.4);
}
.holo-body {
  padding: .9rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.holo-badge {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 50px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .3rem;
  width: fit-content;
}
.holo-badge.action { background: rgba(255,107,107,.15); color: #ff6b6b; }
.holo-badge.puzzle { background: rgba(81,207,102,.15); color: #51cf66; }
.holo-badge.adventure { background: rgba(108,92,231,.15); color: #6c5ce7; }
.holo-badge.racing { background: rgba(255,212,59,.15); color: #ffd43b; }
.holo-badge.casual { background: rgba(255,143,177,.15); color: #ff8fb1; }
.holo-badge.platformer { background: rgba(0,188,212,.15); color: #00bcd4; }
.holo-body h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .2rem;
  transition: color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.holo-card:hover .holo-body h3 { color: var(--accent); }
.holo-body p {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.holo-meta {
  font-size: .68rem;
  color: var(--text-muted);
  font-weight: 600;
}
@media (max-width: 768px) {
  .holo-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }
  .holo-card:hover { transform: none; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease forwards; }

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: rgba(15, 15, 26, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(108, 92, 231, .25);
  animation: cookieSlideUp .4s ease;
}
.cookie-banner.cookie-hidden {
  animation: cookieSlideDown .35s ease forwards;
}
.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cookie-icon {
  flex-shrink: 0;
  color: var(--primary);
}
.cookie-text {
  flex: 1;
}
.cookie-text p {
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-text a:hover { color: #fff; }
.cookie-actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: .55rem 1.3rem;
  border: none;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 92, 231, .4);
}
.cookie-btn-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, .55);
}
.cookie-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .2);
}
.cookie-btn-reject:hover {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.cookie-close {
  position: absolute;
  top: .5rem;
  right: .8rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .4);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.cookie-close:hover { color: #fff; }

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes cookieSlideDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }
  .cookie-icon { display: none; }
  .cookie-text { flex: 1 1 100%; margin-bottom: .8rem; }
  .cookie-actions { width: 100%; justify-content: center; }
  .cookie-btn { flex: 1; max-width: 160px; text-align: center; }
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  cursor: pointer; font-size: 1.2rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top.show { display: flex; }

/* ===== Detail Page ===== */
.breadcrumb-nav { margin: 1.5rem 0 0; }
.breadcrumb-list {
  display: flex; align-items: center; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 0; gap: .4rem;
}
.breadcrumb-item a {
  color: var(--accent); font-weight: 500; font-size: .9rem;
  padding: .2rem .4rem; border-radius: 4px; transition: all var(--transition);
}
.breadcrumb-item a:hover { background: rgba(0,206,201,.1); }
.breadcrumb-item span[aria-current="page"] {
  color: var(--text-muted); font-weight: 600; font-size: .9rem;
}
.breadcrumb-separator { color: var(--text-muted); font-size: .8rem; user-select: none; }

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}
.detail-hero {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,.85) 0%, rgba(15,15,26,.3) 40%, transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.8rem;
}
.detail-play-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2.5rem;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .35s ease;
  box-shadow: 0 4px 20px rgba(108,92,231,.45);
}
.detail-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 30px rgba(108,92,231,.6);
}
.detail-body {
  padding: 1.5rem 2rem;
}
.detail-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .75rem;
  line-height: 1.2;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}
.detail-rating {
  margin-bottom: 1rem;
}
.detail-share {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.share-label {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 600;
}
.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.share-link:hover { transform: translateY(-2px); }
.share-link.facebook:hover { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,.1); }
.share-link.twitter:hover { color: #1da1f2; border-color: #1da1f2; background: rgba(29,161,242,.1); }
.share-link.instagram:hover { color: #e4405f; border-color: #e4405f; background: rgba(228,64,95,.1); }
.share-link.youtube:hover { color: #ff0000; border-color: #ff0000; background: rgba(255,0,0,.1); }

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.detail-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.detail-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .95rem;
}
.detail-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .95rem;
}
.detail-content img { max-width: 100%; border-radius: var(--radius-sm); margin: .5rem 0; }
.detail-content p { margin-bottom: .75rem; }

.detail-ad { margin: 1.5rem 0; text-align: center; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
}
.empty-state-icon {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.empty-state-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.empty-state-desc {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.empty-state-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.detail-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.8rem;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(108,92,231,.35);
}
.detail-btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }
.detail-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.8rem;
  border-radius: 50px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
}
.detail-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Game Overlay */
.game-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-overlay-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}
.game-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10000;
  padding: .6rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.game-close-btn:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
  .detail-title { font-size: 1.5rem; }
  .detail-body { padding: 1.2rem 1rem; }
  .detail-section { padding: 1.2rem 1rem; }
  .detail-hero { max-height: 260px; }
  .breadcrumb-list { gap: .3rem; }
  .breadcrumb-item a, .breadcrumb-item span[aria-current="page"] { font-size: .82rem; }
}
