/* ============================================================
   Chicken Royale Game — Gaming Dashboard Theme
   1:1 recreation of dark purple glassmorphism gaming UI
   ============================================================ */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --bg-deep: #1a0a1e;
  --bg-container: rgba(35, 12, 30, 0.85);
  --bg-sidebar: rgba(40, 15, 35, 0.92);
  --bg-card: rgba(60, 25, 50, 0.6);
  --bg-input: rgba(255, 255, 255, 0.06);
  --bg-hover: rgba(255, 255, 255, 0.05);

  /* Accent */
  --accent: linear-gradient(135deg, #c93d5c, #e05070);
  --accent-solid: #d94060;
  --accent-glow: rgba(200, 60, 90, 0.3);
  --accent-amber: #ffb84d;
  --accent-amber-bg: rgba(255, 160, 0, 0.2);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.4);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-tag: rgba(255, 255, 255, 0.2);

  /* Dimensions */
  --sidebar-width: 220px;
  --right-panel-width: 280px;
  --topbar-height: 60px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Star */
  --star: #ffd700;

  /* Green online */
  --online: #4ade80;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

/* === App Background === */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.app-bg-image {
  width: 100%;
  height: 100%;
  background: url('/images/bg-gaming.webp') center/cover no-repeat;
  filter: blur(8px) brightness(0.3);
  transform: scale(1.1);
}

/* === App Container (Main glassmorphism panel) === */
.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 1400px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-container);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 1440px) {
  .app-container {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    border-radius: var(--radius-lg);
  }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100%;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 16px;
}

/* Nav Items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Sidebar Divider */
.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

/* Online Players Section */
.sidebar-section {
  flex: 1;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.sidebar-section-header span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  text-transform: uppercase;
}

.sidebar-add-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-faint);
  border-radius: 50%;
  transition: color 0.2s;
}

.sidebar-add-btn:hover {
  color: var(--text-primary);
}

/* Player Rows */
.online-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  border-radius: 10px;
  transition: background 0.2s;
}

.player-row:hover {
  background: var(--bg-hover);
}

.player-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.player-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--online);
  border: 2px solid rgba(40, 15, 35, 1);
  border-radius: 50%;
}

.player-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* Log Out */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

/* ============================================================
   MAIN WRAPPER (Top Bar + Content)
   ============================================================ */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* Search */
.search-box {
  position: relative;
  width: 380px;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-box input::placeholder {
  color: var(--text-faint);
}

.search-box input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  pointer-events: none;
}

/* Top Bar Right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.topbar-icon-btn svg {
  width: 20px;
  height: 20px;
}

.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
}

.user-profile:hover {
  background: var(--bg-hover);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-handle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.user-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
  flex: 1;
  padding: 20px 24px 24px;
  overflow-y: auto;
}

/* === Dashboard Layout (Home) === */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr var(--right-panel-width);
  gap: 20px;
}

.dashboard-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.dashboard-right {
  align-self: start;
  position: sticky;
  top: 20px;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(80, 20, 45, 0.95) 0%,
    rgba(80, 20, 45, 0.85) 25%,
    rgba(80, 20, 45, 0.4) 50%,
    rgba(80, 20, 45, 0.0) 70%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  max-width: 55%;
  z-index: 2;
}

/* Popular Badge */
.hero-badge {
  margin-bottom: 16px;
}

.hero-badge span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-amber-bg);
  border: 1px solid rgba(255, 180, 50, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-amber);
}

/* Hero Title */
.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Hero Description */
.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 400px;
}

/* Tags */
.hero-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-tag);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(200, 60, 90, 0.5);
}

.hero-players {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-players svg {
  width: 16px;
  height: 16px;
}

/* Game Cover (for play page overlay) */
.game-cover {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.game-cover iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   RECOMMEND / YOU MIGHT ALSO LIKE
   ============================================================ */
.recommend-section {
  /* spans full width below hero */
}

.recommend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.recommend-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.recommend-nav {
  display: flex;
  gap: 8px;
}

.recommend-nav-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-muted);
  transition: all 0.2s;
}

.recommend-nav-btn svg {
  width: 18px;
  height: 18px;
}

.recommend-nav-btn:hover,
.recommend-nav-btn.active {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Card Grid */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.recommend-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.recommend-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.recommend-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.recommend-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.recommend-card:hover .recommend-card-img img {
  transform: scale(1.05);
}

.recommend-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 10, 25, 0.7) 0%, transparent 50%);
}

.recommend-card-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}

.recommend-card-rating svg {
  width: 14px;
  height: 14px;
}

.recommend-card-info {
  padding: 12px 14px 14px;
}

.recommend-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-solid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recommend-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 4px 0 8px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-card-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--online);
}

/* ============================================================
   IN LIBRARY (Right Panel)
   ============================================================ */
.library-panel {
  /* Sticky within scroll */
  position: sticky;
  top: 0;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.library-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.library-see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-solid);
  transition: color 0.2s;
}

.library-see-all:hover {
  color: var(--text-primary);
}

/* Library Items */
.library-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.library-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}

.library-item:last-child {
  border-bottom: none;
}

.library-item:hover {
  background: var(--bg-hover);
}

.library-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.library-thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
}

.library-item-info {
  flex: 1;
  min-width: 0;
}

.library-item-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-item-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.library-play-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 10px;
  color: var(--text-primary);
  box-shadow: 0 2px 10px var(--accent-glow);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.library-play-btn:hover {
  transform: scale(1.1);
}

.library-action-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.2s;
  flex-shrink: 0;
}

.library-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* ============================================================
   FAQ SECTION (SEO)
   ============================================================ */
.faq-section {
  margin-top: 24px;
}

.faq-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
}

.faq-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   SINGLE PAGE / BLOG (for content pages)
   ============================================================ */
.single-page {
  max-width: 800px;
}

.single-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.single-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.single-page h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.single-page p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
}

.single-page ul, .single-page ol {
  margin: 12px 0;
  padding-left: 20px;
}

.single-page li {
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: 14px;
}

.single-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.single-page th, .single-page td {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  text-align: left;
  font-size: 14px;
}

.single-page th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--text-primary);
}

.single-page td {
  color: var(--text-secondary);
}

.single-page a {
  color: var(--accent-solid);
  transition: color 0.2s;
}

.single-page a:hover {
  color: var(--accent-amber);
}

/* List page */
.list-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.post-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.post-card h2 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.post-card h2 a:hover {
  color: var(--accent-solid);
}

.post-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-card > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-solid);
}

.read-more:hover {
  color: var(--accent-amber);
}

/* ============================================================
   PLAY PAGE - Game Container
   ============================================================ */
.play-page {
  max-width: 100%;
}

.play-page > h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.play-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.game-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a1a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.game-wrapper .game-play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 10, 30, 0.9), rgba(22, 33, 62, 0.9));
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s;
}

.game-wrapper .game-play-cover img {
  max-width: 280px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.game-play-btn {
  font-size: 20px;
  padding: 16px 48px;
  background: var(--accent);
  color: var(--text-primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.game-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(200, 60, 90, 0.6);
}

.game-play-cover.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-info {
  max-width: 800px;
}

.game-info h2, .game-info h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.game-info p, .game-info li {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============================================================
   SEO SECTIONS (Visual Dashboard Style)
   ============================================================ */
.seo-section {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 20px;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.section-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.section-outro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  font-style: italic;
}

/* --- WHAT IS: Left Text + Right Visual --- */
.what-is-layout {
  display: flex;
  gap: 24px;
}

.what-is-text {
  flex: 1;
  min-width: 0;
}

.what-is-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.what-is-visual {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-preview-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.game-preview-card img {
  width: 100%;
  height: auto;
  display: block;
}

.game-preview-stats {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.fact {
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}

.fact:last-child { border-bottom: none; }

.fact-label {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
}

.fact-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- AUDIENCE GRID --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.audience-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.audience-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.audience-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.audience-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.audience-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- FEATURES SHOWCASE --- */
.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-block {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.feature-block-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 14px;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.feature-block-content {
  flex: 1;
  min-width: 0;
}

.feature-block-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-block-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.character-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}

.feature-mini-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.feature-mini h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-mini p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- CONTROLS GRID (How to Play) --- */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.control-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 18px 20px;
  text-align: center;
  position: relative;
}

.control-num {
  position: absolute;
  top: -12px;
  left: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.control-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  margin-bottom: 14px;
}

.control-emoji {
  font-size: 42px;
}

.control-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

.control-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.controls-note {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.controls-note p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.controls-note p:last-child { margin-bottom: 0; }

/* --- FAQ ACCORDION --- */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-accordion {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-accordion[open] {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-accordion summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}

.faq-accordion summary::-webkit-details-marker { display: none; }

.faq-accordion summary::after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-accordion[open] summary::after {
  content: '−';
  color: var(--accent-solid);
}

.faq-accordion summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-q {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 18px 16px 56px;
}

.faq-answer p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   GAME MODAL (Fullscreen Overlay)
   ============================================================ */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.game-modal.open {
  opacity: 1;
  pointer-events: all;
}

.game-modal-inner {
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.game-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: #eee;
}

.game-modal-actions {
  display: flex;
  gap: 6px;
}

.game-modal-fs-btn,
.game-modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #999;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
}

.game-modal-fs-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.game-modal-close-btn:hover {
  background: rgba(220, 50, 50, 0.3);
  color: #ff6b6b;
}

.game-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.game-modal-body canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ============================================================
   INFO MODAL
   ============================================================ */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 8888;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.info-modal.open {
  opacity: 1;
  pointer-events: all;
}

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 15, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.info-modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  background: rgba(40, 18, 35, 0.95);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.info-modal.open .info-modal-content {
  transform: scale(1);
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.info-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.info-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.info-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.info-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-modal-body p {
  margin-bottom: 12px;
}

.info-modal-body strong {
  color: var(--text-primary);
}

/* Info Grid (2 columns) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
}

.info-card .info-key {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 6px;
}

.info-card .info-emoji {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.info-note {
  background: rgba(255, 180, 77, 0.1);
  border: 1px solid rgba(255, 180, 77, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--accent-amber);
  margin-top: 8px;
}

/* Tips List */
.info-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.info-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tip-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.info-tip div strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.info-tip div p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet & below (≤900px) --- */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    display: none;
  }
  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-box {
    width: 200px;
  }
  .what-is-layout {
    flex-direction: column;
  }
  .what-is-visual {
    width: 100%;
  }
  .feature-mini-grid {
    grid-template-columns: 1fr;
  }
  .controls-grid {
    grid-template-columns: 1fr;
  }
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero — full width on tablet/mobile */
  .hero-banner {
    height: auto;
    min-height: 260px;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(80, 20, 45, 0.9) 0%,
      rgba(80, 20, 45, 0.75) 50%,
      rgba(80, 20, 45, 0.3) 100%
    ) !important;
  }
  .hero-content {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 24px 20px;
    z-index: 2;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-desc {
    max-width: 100%;
  }
}

/* --- Mobile (≤600px) --- */
@media (max-width: 600px) {
  /* Top bar */
  .topbar {
    padding: 0 12px;
    height: 48px;
  }

  /* Content area */
  .content-area {
    padding: 12px;
  }

  /* Hero banner — full width text, readable */
  .hero-banner {
    height: auto;
    min-height: 280px;
    border-radius: var(--radius-md);
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(80, 20, 45, 0.85) 0%,
      rgba(80, 20, 45, 0.7) 60%,
      rgba(80, 20, 45, 0.3) 100%
    );
  }
  .hero-content {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: 100%;
    width: 100%;
    padding: 24px 16px;
    z-index: 2;
  }
  .hero-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .hero-desc {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 12px;
    line-height: 1.6;
  }
  .hero-tags {
    margin-bottom: 16px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    text-align: center;
  }
  .hero-players {
    align-self: flex-start;
  }

  /* Recommend grid — 2 col */
  .recommend-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Search box */
  .search-box {
    width: 140px;
  }
  .user-info {
    display: none;
  }
  .user-chevron {
    display: none;
  }

  /* SEO sections — more padding, bigger text */
  .seo-section {
    padding: 20px 16px 18px;
    border-radius: var(--radius-md);
    margin-top: 16px;
  }
  .section-header h2 {
    font-size: 18px;
  }
  .section-intro,
  .section-outro {
    font-size: 14px;
    line-height: 1.7;
  }

  /* What Is layout — stack, image full width */
  .what-is-layout {
    flex-direction: column;
  }
  .what-is-visual {
    width: 100%;
  }
  .what-is-text p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Audience grid — single column */
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .audience-card {
    padding: 16px 14px;
  }

  /* Features — stack nicely */
  .feature-block {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .feature-block-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 10px;
  }
  .feature-block-content h3 {
    font-size: 15px;
  }
  .feature-block-content p {
    font-size: 13px;
    line-height: 1.7;
  }
  .feature-mini-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feature-mini {
    padding: 16px 14px;
  }

  /* Controls grid — single column */
  .controls-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .control-card {
    padding: 20px 16px 16px;
  }
  .controls-note {
    padding: 14px 16px;
  }
  .controls-note p {
    font-size: 13px;
    line-height: 1.7;
  }

  /* FAQ accordion */
  .faq-accordion summary {
    padding: 12px 14px;
    font-size: 13px;
    gap: 10px;
  }
  .faq-answer {
    padding: 0 14px 14px 46px;
  }
  .faq-answer p {
    font-size: 13px;
    line-height: 1.7;
  }

  /* Game modal — near full screen on mobile */
  .game-modal-inner {
    width: 96vw;
    height: 90vh;
    border-radius: 8px;
  }
  .game-modal {
    padding: 8px;
  }

  /* Info modal */
  .info-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}
