/* ============================================
   🎨 COMIC POP ART — Gaming Platform Theme
   ============================================ */

/* ===== Import Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

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

:root {
  /* Pop Art Palette */
  --pink: #FF2D95;
  --hotpink: #FF1493;
  --cyan: #00E5FF;
  --yellow: #FFE600;
  --orange: #FF6B35;
  --lime: #39FF14;
  --purple: #9B30FF;
  --red: #FF1744;
  --white: #FFFDF7;
  --ink: #1A1A2E;
  --dark: #0F0F1A;
  --card-bg: #F5F0E8;

  /* Comic Style */
  --outline: 3px solid #1A1A2E;
  --outline-thin: 2px solid #1A1A2E;
  --shadow-comic: 6px 6px 0 #1A1A2E;
  --shadow-comic-sm: 4px 4px 0 #1A1A2E;
  --shadow-comic-lg: 10px 10px 0 #1A1A2E;
  --shadow-pink: 6px 6px 0 #FF2D95;
  --shadow-cyan: 6px 6px 0 #00E5FF;
  --shadow-yellow: 6px 6px 0 #FFE600;
  --shadow-purple: 6px 6px 0 #9B30FF;

  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dark);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Prevent overflow from large pseudo-elements / shadows */
.hero,
.featured-list-section,
.main-content,
.stats-bar,
.footer {
  overflow: hidden;
}

/* Ensure main content renders above the ::before background pattern */
.main-content {
  position: relative;
  z-index: 1;
}

/* Allow slider arrows to overflow the container */
.home-slider {
  overflow: visible;
}

.home-slider .slides>li {
  overflow: hidden;
}

/* ===== Halftone Dot Background ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--dark);
  background-image:
    /* Yellow dots layer */
    radial-gradient(circle, rgba(255, 230, 0, 0.25) 1px, transparent 1px),
    /* Cyan dots layer */
    radial-gradient(circle at 15px 15px, rgba(0, 229, 255, 0.2) 1.5px, transparent 1.5px),
    /* Pink dots layer */
    radial-gradient(circle at 30px 10px, rgba(255, 45, 149, 0.2) 1px, transparent 1px),
    /* Large dots */
    radial-gradient(circle at 50% 50%, rgba(155, 48, 255, 0.06) 3px, transparent 3px);
  background-size:
    20px 20px,
    20px 20px,
    40px 40px,
    60px 60px;
  animation: dotShift 12s linear infinite;
}

@keyframes dotShift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  25% { background-position: 5px 5px, -3px 2px, 0 5px, 0 0; }
  50% { background-position: 10px 0, 0 5px, 5px 0, 0 10px; }
  75% { background-position: 5px -5px, 3px -2px, 0 -5px, 0 0; }
  100% { background-position: 0 0, 0 0, 0 0, 0 0; }
}

/* ===== Action Lines Background (hero area feel) ===== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* Subtle action rays from top-left */
    conic-gradient(
      from 200deg at 0% 0%,
      transparent 0deg,
      rgba(255, 45, 149, 0.03) 5deg,
      transparent 10deg,
      rgba(0, 229, 255, 0.03) 25deg,
      transparent 30deg,
      rgba(255, 230, 0, 0.03) 45deg,
      transparent 50deg
    );
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: all var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ===== Header — Comic Strip Style ===== */
.header {
  background: var(--yellow);
  border-bottom: var(--outline);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Bangers", cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 rgba(255, 45, 149, 0.5);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--pink);
  border: var(--outline);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-comic-sm);
  transform: rotate(-5deg);
  animation: logoWobble 2s ease-in-out infinite;
}

@keyframes logoWobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.logo-icon .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  padding: 0.5rem 1.15rem;
  font-family: "Fredoka One", cursive;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.15s ease;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--pink);
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav a:hover,
.nav a.active {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== Hero — Comic Cover Style ===== */
.hero {
  background: var(--ink);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Sunburst rays */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      var(--pink) 5deg,
      transparent 10deg,
      transparent 20deg,
      var(--cyan) 25deg,
      transparent 30deg,
      transparent 40deg,
      var(--yellow) 45deg,
      transparent 50deg,
      transparent 60deg,
      var(--purple) 65deg,
      transparent 70deg,
      transparent 80deg,
      var(--pink) 85deg,
      transparent 90deg,
      transparent 100deg,
      var(--cyan) 105deg,
      transparent 110deg,
      transparent 120deg,
      var(--yellow) 125deg,
      transparent 130deg,
      transparent 140deg,
      var(--pink) 145deg,
      transparent 150deg,
      transparent 160deg,
      var(--cyan) 165deg,
      transparent 170deg,
      transparent 180deg,
      transparent 190deg,
      var(--pink) 195deg,
      transparent 200deg,
      transparent 210deg,
      var(--yellow) 215deg,
      transparent 220deg,
      transparent 230deg,
      var(--purple) 235deg,
      transparent 240deg,
      transparent 250deg,
      var(--cyan) 255deg,
      transparent 260deg,
      transparent 270deg,
      var(--pink) 275deg,
      transparent 280deg,
      transparent 290deg,
      var(--yellow) 295deg,
      transparent 300deg,
      transparent 310deg,
      var(--purple) 315deg,
      transparent 320deg,
      transparent 330deg,
      var(--cyan) 335deg,
      transparent 340deg,
      transparent 350deg,
      var(--pink) 355deg,
      transparent 360deg
    );
  opacity: 0.08;
  animation: sunburstRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes sunburstRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* POW! decorative word */
.hero-content::before {
  content: "PLAY!";
  position: absolute;
  top: -50px;
  right: -20px;
  font-family: "Bangers", cursive;
  font-size: 5rem;
  color: var(--pink);
  transform: rotate(15deg);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  text-shadow: none;
  -webkit-text-stroke: 2px var(--pink);
}

.hero h1 {
  font-family: "Bangers", cursive;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--yellow);
  text-shadow:
    4px 4px 0 var(--pink),
    8px 8px 0 rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  -webkit-text-stroke: 1.5px var(--ink);
  position: relative;
  z-index: 1;
  animation: heroBoing 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes heroBoing {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* Subtitle speech bubble */
.hero p {
  font-family: "Fredoka One", cursive;
  font-size: 1.25rem;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  background: var(--ink);
  border: var(--outline);
  border-radius: 20px;
  padding: 1rem 1.8rem;
  position: relative;
  box-shadow: var(--shadow-comic);
  z-index: 1;
}

/* Speech bubble tail */
.hero p::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid var(--ink);
}

/* Second tail (outline) */
.hero p::before {
  content: "";
  position: absolute;
  bottom: -21px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 22px solid var(--ink);
  z-index: -1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== Buttons — Chunky Comic Style ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: "Fredoka One", cursive;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: var(--outline);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.1s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-comic);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #1A1A2E;
}

.btn-primary {
  background: var(--pink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--hotpink);
  box-shadow: 8px 8px 0 #1A1A2E;
  transform: translate(-2px, -2px);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: var(--outline);
}

.btn-outline:hover {
  background: var(--yellow);
  box-shadow: 8px 8px 0 #1A1A2E;
  transform: translate(-2px, -2px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
}

/* Comic action dots on buttons */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover::before {
  opacity: 1;
}

/* ===== Section ===== */
.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: "Bangers", cursive;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
  text-shadow: 3px 3px 0 var(--pink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title span {
  position: relative;
}

/* Comic starburst behind section titles */
.section-title::before {
  content: "★";
  font-size: 3rem;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
  animation: starPulse 1.5s ease-in-out infinite alternate;
}

@keyframes starPulse {
  0% { transform: scale(0.8) rotate(-10deg); }
  100% { transform: scale(1.2) rotate(10deg); }
}

.section-link {
  font-family: "Fredoka One", cursive;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border: var(--outline-thin);
  border-radius: var(--radius);
  background: rgba(0, 229, 255, 0.1);
  transition: all 0.15s ease;
}

.section-link:hover {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: var(--shadow-cyan);
  transform: translate(-1px, -1px);
}

/* ===== Game Grid ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* ===== Game Card — Comic Panel Style ===== */
.game-card {
  background: var(--card-bg);
  border: var(--outline);
  border-radius: var(--radius);
  overflow: visible;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-comic);
  transform: rotate(0deg);
}

/* Slight random-ish rotation */
.game-card:nth-child(odd) {
  transform: rotate(0.5deg);
}

.game-card:nth-child(3n) {
  transform: rotate(-0.3deg);
}

.game-card:hover {
  transform: translate(-3px, -3px) rotate(0deg) !important;
  box-shadow: 10px 10px 0 #1A1A2E;
}

.game-card:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 3px 3px 0 #1A1A2E;
}

.game-card-img {
  position: relative;
  height: 170px;
  overflow: hidden;
  border-bottom: var(--outline);
}

.game-card-img .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.3s ease;
}

.game-card:hover .placeholder-img {
  transform: scale(1.15) rotate(-5deg);
}

/* Comic badge — starburst shape */
.game-card-img .badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--pink);
  color: var(--white);
  padding: 0.35rem 0.8rem;
  font-family: "Bangers", cursive;
  font-size: 0.8rem;
  font-weight: 700;
  border: var(--outline-thin);
  box-shadow: var(--shadow-comic-sm);
  clip-path: polygon(
    0% 15%, 15% 0%, 50% 10%, 85% 0%, 100% 15%,
    90% 50%, 100% 85%, 85% 100%, 50% 90%, 15% 100%,
    0% 85%, 10% 50%
  );
  letter-spacing: 1px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.game-card-img .category-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.25rem 0.7rem;
  font-family: "Fredoka One", cursive;
  font-size: 0.65rem;
  font-weight: 600;
  border: var(--outline-thin);
  border-radius: 2px;
  text-transform: uppercase;
  box-shadow: var(--shadow-comic-sm);
}

.game-card-body {
  padding: 1.15rem;
  background: var(--card-bg);
  position: relative;
}

.game-card-body h3 {
  font-family: "Fredoka One", cursive;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.game-card-body .game-desc {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Fredoka One", cursive;
  color: var(--orange);
  font-weight: 700;
}

.plays {
  color: #888;
  font-family: "Nunito", sans-serif;
}

/* ===== Category Pills — Comic Tags ===== */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-pill {
  padding: 0.5rem 1.3rem;
  font-family: "Fredoka One", cursive;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--white);
  border: var(--outline-thin);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-comic-sm);
  clip-path: polygon(
    8px 0, 100% 0, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 0 100%, 0 8px
  );
}

.category-pill:hover,
.category-pill.active {
  background: var(--pink);
  color: var(--white);
  border-color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #1A1A2E;
}

.category-pill:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #1A1A2E;
}

/* ===== Page Header ===== */
.page-header {
  background: var(--ink);
  padding: 5rem 0 3.5rem;
  text-align: center;
  border-bottom: var(--outline);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-family: "Bangers", cursive;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  text-shadow:3px 3px 0 var(--pink);
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-stroke: 1.5px var(--ink);
  position: relative;
  z-index: 1;
  animation: heroBoing 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.page-header p {
  color: var(--white);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 600;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  display: inline-block;
}

/* ===== Stats Bar — Comic Panel Style ===== */
.stats-bar {
  background: var(--purple);
  border-bottom: var(--outline);
  padding: 2.2rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Zigzag top decoration */
.stats-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background:
    linear-gradient(
      45deg,
      var(--yellow) 25%,
      transparent 25%
    ) 0 0,
    linear-gradient(
      -45deg,
      var(--yellow) 25%,
      transparent 25%
    ) 0 0;
  background-size: 20px 20px;
  background-color: var(--yellow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}

/* Comic divider lines */
.stat-item {
  position: relative;
  padding: 0.8rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-comic-sm);
}

.stat-item .stat-num {
  display: block;
  font-family: "Bangers", cursive;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  margin-bottom: 0.2rem;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
}

.stat-item:hover .stat-num {
  color: var(--white);
  text-shadow: 3px 3px 0 var(--pink);
  transform: scale(1.1);
  transition: all 0.15s ease;
}

.stat-item .stat-label {
  font-family: "Fredoka One", cursive;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ===== Featured Grid ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Featured Card — Comic Panel with action lines */
.featured-card {
  background: var(--card-bg);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-comic-lg);
  overflow: visible;
}

/* Action lines on hover */
.featured-card::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px dashed var(--pink);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  animation: dashMove 1s linear infinite;
}

@keyframes dashMove {
  to { background-position: 20px 0; }
}

.featured-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 14px 14px 0 #1A1A2E;
}

.featured-card:hover::after {
  opacity: 1;
}

.featured-card:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #1A1A2E;
}

.featured-img {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  border: var(--outline);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-comic);
  transition: transform 0.2s ease;
}

.featured-card:hover .featured-img {
  transform: rotate(-10deg) scale(1.1);
}

.featured-img.f1 {
  background: var(--pink);
}

.featured-img.f2 {
  background: var(--cyan);
}

.featured-img.f3 {
  background: var(--orange);
}

.featured-img.f4 {
  background: var(--lime);
}

.featured-info {
  position: relative;
  z-index: 1;
}

.featured-info h3 {
  font-family: "Fredoka One", cursive;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.featured-info p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===== Detail Page ===== */
.detail-hero {
  position: relative;
  height: 320px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border-bottom: var(--outline);
  overflow: hidden;
}

/* Comic action burst behind icon */
.detail-hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.12;
  animation: burstPulse 2s ease-in-out infinite;
}

@keyframes burstPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.08; }
  50% { transform: scale(1.3); opacity: 0.18; }
}

.detail-hero .game-icon {
  position: relative;
  z-index: 1;
  animation: detailBounce 2s ease-in-out infinite;
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.5));
}

@keyframes detailBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(-5deg); }
  75% { transform: translateY(-6px) rotate(5deg); }
}

.detail-content {
  padding: 2.5rem 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.5rem;
}

.detail-main h2 {
  font-family: "Bangers", cursive;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--pink);
  letter-spacing: 1.5px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #aaa;
}

.detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Fredoka One", cursive;
}

.game-developer,
.game-publish-date,
.game-update-time {
  display: inline-block;
  font-family: "Fredoka One", cursive;
  font-size: 0.75rem;
  color: #888;
  margin-right: 1.2rem;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: var(--outline-thin);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.detail-desc {
  font-size: 0.98rem;
  color: #ccc;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.detail-tags a {
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: var(--outline-thin);
  border-color: rgba(255, 255, 255, 0.2);
  font-family: "Fredoka One", cursive;
  font-size: 0.72rem;
  color: var(--white);
  transition: all 0.15s ease;
  text-transform: uppercase;
  clip-path: polygon(
    6px 0, 100% 0, 100% calc(100% - 6px),
    calc(100% - 6px) 100%, 0 100%, 0 6px
  );
}

.detail-tags a:hover {
  background: var(--pink);
  border-color: var(--white);
  box-shadow: var(--shadow-pink);
  transform: translate(-1px, -1px);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 3rem;
  background: var(--lime);
  color: var(--ink);
  border: var(--outline);
  font-family: "Bangers", cursive;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-comic-lg);
  letter-spacing: 2px;
  transition: all 0.1s ease;
  position: relative;
  overflow: hidden;
}

/* Halftone dots overlay */
.play-btn::before {
  content: "";
  position: absolute;
  inset: 6px;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
}

.play-btn:hover {
  background: #00FF00;
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 #1A1A2E;
}

.play-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #1A1A2E;
}

/* ===== FAQ Section ===== */
.faq-section {
  margin-top: 2.5rem;
  background: var(--white);
  border: var(--outline);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-comic);
}

.faq-title {
  font-family: "Bangers", cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  background: var(--pink);
  padding: 1rem 1.5rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #1A1A2E;
  transition: background 0.2s ease;
}

.faq-title:hover {
  background: #e84393;
}

.faq-section-toggle {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.faq-section.open .faq-section-toggle {
  transform: rotate(90deg);
}

.faq-list {
  padding: 0;
  display: none;
}

.faq-section.open .faq-list {
  display: block;
}

.faq-item {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

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

.faq-question {
  font-family: "Fredoka One", cursive;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: color 0.15s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Bangers", cursive;
  font-size: 1.3rem;
  color: var(--pink);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
  color: var(--pink);
}

.faq-answer {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
  padding: 0 1.5rem 1rem 1.5rem;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--card-bg);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-comic);
  transition: all 0.15s ease;
}

.sidebar-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #1A1A2E;
}

.sidebar-card h4 {
  font-family: "Bangers", cursive;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px dashed var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  border-bottom: 1px dotted #ccc;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  font-family: "Fredoka One", cursive;
  color: #777;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.info-row .value {
  font-weight: 700;
  color: var(--ink);
}

.similar-game {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px dotted #ddd;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: var(--radius);
}

.similar-game:last-child {
  border-bottom: none;
}

.similar-game:hover {
  background: var(--yellow);
}

.similar-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: var(--outline-thin);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.similar-game:hover .similar-img {
  transform: rotate(-5deg) scale(1.1);
}

.similar-info h5 {
  font-family: "Fredoka One", cursive;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.similar-info span {
  font-size: 0.75rem;
  color: #999;
}

/* ===== Screenshots ===== */
.screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.screenshot-item {
  aspect-ratio: 16 / 10;
  background: var(--card-bg);
  border: var(--outline);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #aaa;
  transition: all 0.15s ease;
  position: relative;
  box-shadow: var(--shadow-comic-sm);
}

.screenshot-item:hover {
  border-color: var(--pink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pink);
}

/* ===== Review Card ===== */
.review-card {
  background: var(--card-bg);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-comic-sm);
  transition: all 0.15s ease;
}

.review-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 8px 10px 0 var(--purple);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  border: var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bangers", cursive;
  font-size: 1rem;
  color: var(--white);
  box-shadow: var(--shadow-comic-sm);
}

.review-user {
  font-family: "Fredoka One", cursive;
  font-size: 0.92rem;
}

.review-date {
  font-size: 0.78rem;
  color: #999;
}

.review-rating {
  margin-left: auto;
  font-family: "Fredoka One", cursive;
  color: var(--orange);
  font-size: 0.85rem;
}

.review-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
}

/* ===== Tag Cloud — Speech Bubble Tags ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2.5rem 0;
}

.tag-item {
  padding: 0.7rem 1.8rem;
  font-family: "Fredoka One", cursive;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--white);
  border: var(--outline);
  color: var(--ink);
  transition: all 0.15s ease;
  cursor: pointer;
  box-shadow: var(--shadow-comic-sm);
  position: relative;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Speech bubble tail */
.tag-item::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 25px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--white);
}

.tag-item::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 23px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--ink);
  z-index: -1;
}

.tag-item:hover {
  background: var(--pink);
  color: var(--white);
  transform: translate(-2px, -4px);
  box-shadow: 8px 10px 0 #1A1A2E;
}

.tag-item:hover::after {
  border-top-color: var(--pink);
}

.tag-item.large {
  font-size: 1.2rem;
  padding: 0.85rem 2.2rem;
  background: var(--yellow);
  box-shadow: var(--shadow-comic);
}

.tag-item.large:hover {
  background: var(--pink);
  color: var(--white);
}

.tag-item.medium {
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
}

.tag-count {
  font-family: "Bangers", cursive;
  color: var(--pink);
  font-size: 0.78rem;
  margin-left: 0.35rem;
}

/* ===== Content Page Styles ===== */
.content-page {
  padding: 3rem 0;
  flex: 1;
}

.content-page .container {
  max-width: 1200px;
}

.content-page h2 {
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.2rem 0 0.85rem;
  color: var(--white);
  padding-left: 1rem;
  border-left: 5px solid var(--pink);
  text-shadow: 2px 2px 0 rgba(255, 45, 149, 0.4);
  letter-spacing: 1px;
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page p {
  margin-bottom: 1rem;
  color: #bbb;
  line-height: 1.85;
}

.content-page ul,
.content-page ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #bbb;
}

.content-page ul {
  list-style: none;
}

.content-page ul li::before {
  content: "💥";
  margin-right: 0.5rem;
  font-size: 0.7rem;
}

.content-page ol {
  list-style: decimal;
}

.content-page li {
  margin-bottom: 0.55rem;
  line-height: 1.75;
}

/* ===== Contact Form — Chunky Style ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--pink);
  letter-spacing: 1px;
}

.contact-info p {
  color: #bbb;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem;
  border: var(--outline-thin);
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.03);
}

.contact-item:hover {
  border-color: var(--pink);
  background: rgba(255, 45, 149, 0.08);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--pink);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--pink);
  border: var(--outline-thin);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-comic-sm);
}

.contact-text h4 {
  font-family: "Fredoka One", cursive;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--white);
}

.contact-text span {
  font-size: 0.85rem;
  color: #aaa;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: "Fredoka One", cursive;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--card-bg);
  border: var(--outline);
  color: var(--ink);
  font-size: 0.9rem;
  font-family: "Nunito", sans-serif;
  transition: all 0.15s ease;
  border-radius: var(--radius);
  box-shadow: var(--shadow-comic-sm);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 6px 6px 0 var(--pink);
  transform: translate(-1px, -1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ===== Search Bar ===== */
.search-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.search-bar input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: var(--card-bg);
  border: var(--outline);
  font-size: 0.92rem;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  box-shadow: var(--shadow-comic-sm);
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 6px 6px 0 var(--pink);
  transform: translate(-1px, -1px);
}

.search-bar input::placeholder {
  color: #aaa;
  font-family: "Nunito", sans-serif;
}

.search-bar button {
  padding: 0.9rem 2rem;
  background: var(--pink);
  color: var(--white);
  border: var(--outline);
  cursor: pointer;
  font-family: "Bangers", cursive;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--shadow-comic);
  border-radius: var(--radius);
  transition: all 0.1s ease;
}

.search-bar button:hover {
  background: var(--hotpink);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #1A1A2E;
}

.search-bar button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #1A1A2E;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: "Fredoka One", cursive;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breadcrumb a {
  color: var(--cyan);
}

.breadcrumb a:hover {
  color: var(--pink);
}

.breadcrumb .sep {
  color: var(--pink);
}

/* ===== Pagination — Comic Buttons ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka One", cursive;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.1s ease;
}

.pagination a:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #1A1A2E;
}

.pagination a:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #1A1A2E;
}

.pagination .current {
  background: var(--pink);
  border-color: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-comic);
}

/* ===== Games List Toolbar ===== */
.games-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.games-count {
  font-family: "Fredoka One", cursive;
  font-size: 0.85rem;
  color: var(--white);
  background: var(--purple);
  border: var(--outline-thin);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-comic-sm);
}

.sort-select {
  padding: 0.55rem 1.2rem;
  background: var(--card-bg);
  border: var(--outline);
  color: var(--ink);
  font-size: 0.85rem;
  font-family: "Fredoka One", cursive;
  cursor: pointer;
  box-shadow: var(--shadow-comic-sm);
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.sort-select:focus {
  outline: none;
  border-color: var(--pink);
}

/* ===== Alert Box ===== */
.alert {
  padding: 1rem 1.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border: var(--outline);
  background: var(--card-bg);
  box-shadow: var(--shadow-comic-sm);
}

.alert-success {
  border-color: var(--lime);
  color: var(--ink);
  background: #e8ffe8;
}

.alert-info {
  border-color: var(--cyan);
  color: var(--ink);
  background: #e8faff;
}

/* ===== Footer — Comic Credits Style ===== */
.footer {
  background: var(--yellow);
  border-top: var(--outline);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.75;
}

.footer-col h4 {
  font-family: "Bangers", cursive;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--pink);
  border-radius: 1px;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  transition: all 0.15s ease;
}

.footer-col a:hover {
  color: var(--pink);
  transform: translateX(5px);
  text-shadow: 1px 0 0 rgba(255, 45, 149, 0.3);
}

.footer-bottom {
  border-top: 3px dashed var(--ink);
  padding-top: 1.5rem;
  text-align: center;
  font-family: "Fredoka One", cursive;
  font-size: 0.82rem;
  color: #555;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.hero-content {
  animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.game-card {
  animation: fadeInUp 0.5s ease-out backwards;
}

.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:nth-child(6) { animation-delay: 0.3s; }
.game-card:nth-child(7) { animation-delay: 0.35s; }
.game-card:nth-child(8) { animation-delay: 0.4s; }
.game-card:nth-child(9) { animation-delay: 0.45s; }
.game-card:nth-child(10) { animation-delay: 0.5s; }
.game-card:nth-child(11) { animation-delay: 0.55s; }
.game-card:nth-child(12) { animation-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 0.8rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--yellow);
    flex-direction: column;
    padding: 1rem;
    border-bottom: var(--outline);
    gap: 0.1rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    z-index: 101;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: left;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 rgba(0, 0, 0, 0.3);
  }

  .hero-content::before {
    font-size: 2rem;
    top: -15px;
    right: 0;
  }

  .hero p {
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item .stat-num {
    font-size: 2rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
  }

  .game-card-img {
    height: 130px;
  }

  .game-card-body {
    padding: 0.8rem;
  }

  .game-card-body h3 {
    font-size: 0.9rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .screenshots {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header {
    padding: 3rem 0 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .breadcrumb {
    flex-wrap: wrap;
    font-size: 0.7rem;
  }

  .header-inner {
    height: 60px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.6rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-content::before {
    font-size: 1.5rem;
    top: -10px;
  }

  .hero p {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
  }

  .game-card-img {
    height: 110px;
  }

  .game-card-body {
    padding: 0.6rem;
  }

  .game-card-body h3 {
    font-size: 0.78rem;
  }

  .game-card-body .game-desc {
    font-size: 0.7rem;
  }

  .screenshots {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 2rem 0 1.2rem;
  }

  .footer-brand p {
    font-size: 0.78rem;
  }

  .footer-col a {
    font-size: 0.78rem;
  }

  .footer-bottom {
    font-size: 0.72rem;
  }

  .page-header {
    padding: 2.5rem 0 1.5rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header p {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .detail-hero {
    height: 200px;
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .stats-grid {
    gap: 0.8rem;
  }

  .stat-item .stat-num {
    font-size: 1.6rem;
  }

  .stat-item .stat-label {
    font-size: 0.65rem;
  }

  .header-inner {
    height: 54px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.78rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .featured-card {
    padding: 1.2rem;
    flex-direction: column;
    gap: 1rem;
  }

  .featured-img {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .featured-info h3 {
    font-size: 1.1rem;
  }

  .sidebar-card {
    padding: 1rem;
  }

  .sidebar-card h4 {
    font-size: 1rem;
  }

  .category-pill {
    padding: 0.35rem 0.8rem;
    font-size: 0.65rem;
  }

  .tag-item {
    padding: 0.5rem 1.2rem;
    font-size: 0.72rem;
  }
}

/* ===== Nav Auth Buttons — Comic Pop-Art Style ===== */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-auth-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: "Fredoka One", cursive, sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
}

.btn-login {
    background: var(--white);
    color: var(--ink);
    border: var(--outline);
    box-shadow: var(--shadow-comic-sm);
}

.btn-login:hover {
    background: var(--yellow);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.btn-register {
    background: var(--pink);
    color: var(--white);
    border: var(--outline);
    box-shadow: var(--shadow-comic-sm);
}

.btn-register:hover {
    background: var(--pink);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

/* ===== Nav User (Logged In) — Comic Pop-Art Style ===== */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius);
    border: var(--outline);
    background: var(--white);
    transition: all 0.15s ease;
    box-shadow: var(--shadow-comic-sm);
}

.nav-user-info:hover {
    background: var(--yellow);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--pink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    font-family: "Bangers", cursive;
    letter-spacing: 0.5px;
    border: var(--outline-thin);
}

.nav-user-name {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    font-family: "Fredoka One", cursive, sans-serif;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ink);
    transition: transform 0.15s ease;
}

.nav-user.open .nav-user-arrow {
    transform: rotate(180deg);
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: var(--white);
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-comic-lg);
    padding: 0.5rem 0;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
}

.nav-user.open .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.55rem 1.25rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.1s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: var(--yellow);
}

.nav-dropdown-item.nav-logout-btn {
    padding: 0.55rem 1.25rem;
    border-radius: 0;
    background: none;
    border: none;
    border-top: var(--outline-thin);
    color: var(--pink);
    margin-top: 0.3rem;
    padding-top: 0.65rem;
}

.nav-dropdown-item.nav-logout-btn:hover {
    background: var(--pink);
    color: var(--white);
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .nav-auth {
        margin-left: 0;
        gap: 6px;
    }
    .nav-auth-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .nav-user-name {
        max-width: 80px;
        font-size: 12px;
    }
    .nav-logout-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* ===== Login Modal — Comic Pop-Art Style ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.8);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: var(--white);
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-comic-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
}

.auth-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--ink);
    border: var(--outline-thin);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--yellow);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bangers", cursive;
    box-shadow: var(--shadow-comic-sm);
    transition: all 0.15s ease;
}

.auth-modal-close:hover {
    background: var(--pink);
    color: var(--white);
    transform: rotate(90deg);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-family: "Bangers", cursive;
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 0 var(--yellow);
}

.auth-header p {
    color: var(--ink);
    font-size: 0.85rem;
    opacity: 0.7;
}

.auth-tabs {
    display: flex;
    border-bottom: var(--outline);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--ink);
    font-weight: 600;
    font-family: "Fredoka One", cursive, sans-serif;
    transition: all 0.15s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-tab:hover {
    color: var(--pink);
}

.auth-tab.active {
    color: var(--pink);
    border-bottom-color: var(--pink);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: "Fredoka One", cursive, sans-serif;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: var(--outline);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.15s ease;
    background: var(--white);
    box-sizing: border-box;
    box-shadow: var(--shadow-comic-sm);
}

.form-group input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 4px 4px 0 var(--pink);
}

.form-group .error-text {
    color: var(--pink);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 600;
}

.form-group.has-error input {
    border-color: var(--pink);
    box-shadow: 4px 4px 0 var(--pink);
}

.form-group.has-error .error-text {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--pink);
    color: var(--white);
    border: var(--outline);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: "Bangers", cursive;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-comic);
    text-transform: uppercase;
    position: relative;
}

.btn-auth:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--ink);
}

.btn-auth:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-comic-sm);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-comic-sm);
}

.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: var(--outline-thin);
}

.auth-footer p {
    color: var(--ink);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px dotted var(--pink);
}

.auth-footer a:hover {
    border-bottom-style: solid;
}

.alert-box {
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
    font-weight: 600;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: #DFF6DD;
    color: var(--ink);
    border: var(--outline);
}

.alert-box.error {
    background: #FFE0E0;
    color: var(--ink);
    border: var(--outline);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 2.5rem;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--ink);
    font-size: 1rem;
    user-select: none;
    transition: color 0.15s;
}

.password-toggle .toggle-icon:hover {
    color: var(--pink);
}


/* ===== Featured List Section (Module 4+) ===== */
.featured-list-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.featured-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.featured-list-title {
    font-family: "Bangers", cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 var(--ink);
    padding: 4px 16px;
    background: var(--pink);
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-comic-sm);
    transform: rotate(-1.5deg);
    display: inline-block;
}

.featured-list-all {
    font-weight: 800;
    color: var(--ink);
    background: var(--yellow);
    border: var(--outline-thin);
    border-radius: var(--radius);
    padding: 6px 16px;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: var(--shadow-comic-sm);
    transition: all var(--transition);
}

.featured-list-all:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-comic);
    color: var(--ink);
}

.featured-list-desc {
    color: var(--white);
    opacity: 0.85;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 22px;
    max-width: 720px;
}

/* Horizontal scroll list */
.featured-list.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.featured-list-item {
    background: var(--white);
    border: var(--outline-thin);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-comic-sm);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform var(--transition), box-shadow var(--transition);
}

.featured-list-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-comic);
}

.featured-list-item > a {
    display: flex;
    flex: 0 0 240px;
    width: 240px;
    color: var(--ink);
}

.featured-list-thumb {
    position: relative;
    flex: 0 0 240px;
    width: 240px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: none;
    border-right: var(--outline-thin);
    background: var(--card-bg);
}

.featured-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.featured-list-item:hover .featured-list-thumb img {
    transform: scale(1.06);
}

.featured-list-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bangers", cursive;
    font-size: 1.1rem;
    color: var(--ink);
    background: var(--yellow);
    border: var(--outline-thin);
    border-radius: var(--radius);
    box-shadow: var(--shadow-comic-sm);
    transform: rotate(-4deg);
}

.featured-list-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.featured-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.featured-list-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
    background: var(--cyan);
    border: var(--outline-thin);
    border-radius: var(--radius);
    padding: 2px 8px;
    letter-spacing: 0.3px;
}

.featured-list-name {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: var(--ink);
}

.featured-list-name a {
    color: var(--ink);
}

.featured-list-name a:hover {
    color: var(--pink);
}

.featured-list-brief {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a4a5e;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-list-stars {
    color: var(--orange);
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-top: auto;
}

.featured-list-btn {
    margin-top: 10px;
    display: inline-block;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--white);
    background: var(--pink);
    border: var(--outline-thin);
    border-radius: var(--radius);
    padding: 9px 14px;
    box-shadow: var(--shadow-comic-sm);
    transition: all var(--transition);
}

.featured-list-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-comic);
    color: var(--white);
}

/* ===== Rank Board Grid (Module 4, independent class names) ===== */
.rb-section {
    padding: 40px 0;
    position: relative;
}

.rb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.rb-title {
    font-family: "Bangers", cursive;
    font-size: 2rem;
    color: var(--ink);
    background: var(--pink);
    display: inline-block;
    padding: 0.2rem 1.2rem;
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-comic-sm);
    transform: rotate(-1deg);
}

.rb-all {
    font-weight: 800;
    color: var(--ink);
    background: var(--cyan);
    padding: 0.4rem 1rem;
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-comic-sm);
    transition: transform 0.2s ease;
}

.rb-all:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-comic);
}

.rb-desc {
    color: var(--white);
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.rb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.rb-card {
    background: var(--white);
    border: var(--outline-thin);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-comic-sm);
}

.rb-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-comic);
    border-color: var(--cyan);
}

.rb-card > a {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    color: var(--ink);
}

.rb-thumb {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
    min-height: 120px;
    overflow: hidden;
    border-right: var(--outline-thin);
}

.rb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rb-card:hover .rb-thumb img {
    transform: scale(1.06);
}

.rb-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bangers", cursive;
    font-size: 1rem;
    color: var(--ink);
    background: var(--yellow);
    border: var(--outline-thin);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.rb-info {
    flex: 1;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.rb-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.rb-tag {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    font-family: "Fredoka One", cursive;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    background: var(--purple);
    border: var(--outline-thin);
    border-radius: 999px;
}

.rb-name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.rb-name a {
    color: var(--ink);
}

.rb-name a:hover {
    color: var(--pink);
}

.rb-brief {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rb-stars {
    color: var(--orange);
    font-size: 0.9rem;
}

.rb-btn {
    margin-top: 6px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.1rem;
    font-family: "Fredoka One", cursive;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    background: var(--pink);
    border: var(--outline-thin);
    border-radius: 999px;
    box-shadow: var(--shadow-comic-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rb-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-comic);
    color: var(--white);
}

@media (max-width: 768px) {
    .rb-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    .rb-thumb {
        flex: 0 0 100px;
        width: 100px;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .rb-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    .rb-thumb {
        flex: 0 0 84px;
        width: 84px;
        min-height: 84px;
    }
    .rb-info {
        padding: 0.6rem 0.7rem;
        gap: 0.3rem;
    }
    .rb-name {
        font-size: 0.9rem;
    }
}

/* ===== Comments Section ===== */
.comments-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
    padding: 24px;
    background: var(--card-bg);
    border: var(--outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-comic);
}

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

.comments-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comments-count {
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--yellow);
    border: var(--outline-thin);
    border-radius: var(--radius);
    padding: 2px 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item {
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: var(--outline-thin);
    box-shadow: var(--shadow-comic-sm);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pink);
    border: var(--outline-thin);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    font-weight: 800;
    color: var(--ink);
}

.comment-date {
    font-size: 0.75rem;
    color: #6b6b7b;
    font-weight: 600;
}

.comment-star {
    margin-left: auto;
    font-size: 14px;
    color: var(--orange);
    letter-spacing: 1px;
}

.comment-content {
    color: var(--ink);
    line-height: 1.6;
    font-size: 0.92rem;
}

.comments-empty {
    text-align: center;
    padding: 40px;
    color: #6b6b7b;
    font-weight: 600;
}

.comments-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.comments-loading {
    text-align: center;
    padding: 20px;
    color: #6b6b7b;
    font-weight: 600;
}

.load-more-comments {
    margin-top: 15px;
    text-align: center;
}

.btn-load-more {
    display: inline-block;
    padding: 8px 22px;
    background: var(--cyan);
    color: var(--ink);
    border: var(--outline-thin);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all var(--transition);
    box-shadow: var(--shadow-comic-sm);
}

.btn-load-more:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--purple);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Comment Form ===== */
.comment-form {
    margin-bottom: 20px;
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius);
    border: var(--outline-thin);
    box-shadow: var(--shadow-comic-sm);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--purple);
    border: var(--outline-thin);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-author {
    font-weight: 800;
    color: var(--ink);
}

.comment-form-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-form-rating label {
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 700;
    margin-right: 8px;
}

.rating-star {
    font-size: 22px;
    cursor: pointer;
    color: #c9c9d4;
    transition: color 0.2s;
    user-select: none;
    line-height: 1;
}

.rating-star:hover,
.rating-star.active {
    color: var(--orange);
}

.comment-form-textarea {
    width: 100%;
    padding: 12px;
    border: var(--outline-thin);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--ink);
    font-size: 0.92rem;
    resize: vertical;
    min-height: 90px;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-family: inherit;
    font-weight: 600;
}

.comment-form-textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 3px 3px 0 var(--pink);
}

.comment-form-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-comment-submit {
    padding: 9px 24px;
    background: var(--pink);
    color: var(--white);
    border: var(--outline-thin);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all var(--transition);
    box-shadow: var(--shadow-comic-sm);
}

.btn-comment-submit:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-comic);
}

.btn-comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comment-login-hint {
    text-align: center;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    border: var(--outline-thin);
    margin-bottom: 20px;
    color: #6b6b7b;
    font-size: 0.85rem;
    font-weight: 600;
}

.comment-login-hint a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 800;
}

.comment-login-hint a:hover {
    text-decoration: underline;
}

/* ===== Toast Message ===== */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.7rem 1.5rem;
    background: #333;
    color: #fff;
    border-radius: 8px;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.toast-message.show {
    opacity: 1;
}

.toast-message.success {
    background: #27ae60;
}

.toast-message.error {
    background: #e74c3c;
}

.toast-message.warning {
    background: #f39c12;
}

/* ===== Profile Page Styles ===== */
.main-content.profile-page {
    overflow: visible;
    background: #F5F0E8;
    color: #1A1A2E;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.profile-layout {
    display: flex;
    gap: 2rem;
}

/* Left Sidebar */
.profile-sidebar {
    width: 280px;
    flex-shrink: 0;
    color: #1A1A2E;
    background: transparent;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #FFFDF7;
    color: #1A1A2E;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    box-shadow: 4px 4px 0 #1A1A2E;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2D95, #FF1493);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bangers", cursive, sans-serif;
    font-size: 1.5rem;
    color: #FFFFFF;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #1A1A2E;
    box-shadow: 4px 4px 0 #1A1A2E;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info {
    min-width: 0;
    color: #1A1A2E;
}

.profile-info h2 {
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 1.15rem;
    color: #1A1A2E;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-info p {
    color: #666;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-nav {
    background: #FFFDF7;
    color: #1A1A2E;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    box-shadow: 4px 4px 0 #1A1A2E;
    overflow: hidden;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: #1A1A2E;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-left: 4px solid transparent;
}

.profile-nav-item:hover {
    background: rgba(255, 45, 149, 0.06);
    color: #FF2D95;
}

.profile-nav-item.active {
    background: rgba(255, 45, 149, 0.1);
    color: #FF2D95;
    border-left-color: #FF2D95;
}

.profile-nav-item i {
    width: 20px;
    text-align: center;
    color: #FF2D95;
}

/* Right Content */
.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-content {
    background: #FFFDF7;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    box-shadow: 6px 6px 0 #1A1A2E;
    padding: 1.5rem;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-section .section-title {
    font-family: "Bangers", cursive, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1A1A2E;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #1A1A2E;
    text-shadow: 2px 2px 0 #FFE600;
    letter-spacing: 1px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.game-card-mini {
    background: #F5F0E8;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.15s ease;
    text-decoration: none;
    display: block;
    box-shadow: 4px 4px 0 #1A1A2E;
}

.game-card-mini:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #1A1A2E;
    border-color: #FF2D95;
}

.game-card-mini a {
    text-decoration: none;
}

.game-card-mini .game-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.game-card-mini .game-info {
    padding: 0.75rem;
}

.game-card-mini .game-title {
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-mini a:hover .game-title {
    color: #FF2D95;
}

.game-card-mini .game-star {
    font-size: 0.75rem;
}

.game-card-mini .game-date {
    font-size: 0.7rem;
    color: #999;
}

.game-card-mini .game-actions {
    padding: 0.4rem 0.6rem;
    border-top: 2px solid #1A1A2E;
}

.game-card-mini .btn-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: none;
    border-radius: 4px;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.game-card-mini .btn-remove:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.empty-state p {
    font-size: 0.95rem;
}

/* Profile Form */
.profile-form {
    max-width: 500px;
}

.profile-form .form-group {
    margin-bottom: 1.25rem;
}

.profile-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1A1A2E;
}

.profile-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    font-size: 0.92rem;
    font-family: "Poppins", sans-serif;
    transition: all 0.15s ease;
    background: #FFFDF7;
    box-shadow: 4px 4px 0 #1A1A2E;
}

.profile-form .form-group input:focus {
    outline: none;
    border-color: #FF2D95;
    box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.15), 4px 4px 0 #1A1A2E;
}

.profile-form .form-group input:disabled {
    background: #F5F0E8;
    color: #999;
}

.btn-save {
    font-family: "Fredoka One", cursive, sans-serif;
    padding: 0.75rem 2rem;
    background: #FF2D95;
    color: #FFFDF7;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 6px 6px 0 #1A1A2E;
}

.btn-save:hover {
    background: #FF1493;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #1A1A2E;
}

.btn-save:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 #1A1A2E;
}

.btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Avatar Upload Section */
.avatar-upload-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #F5F0E8;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
}

.avatar-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.avatar-upload-title {
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1A1A2E;
}

.avatar-preview-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2D95, #FF1493);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bangers", cursive, sans-serif;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid #1A1A2E;
    box-shadow: 4px 4px 0 #1A1A2E;
    transition: all 0.15s ease;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview:hover {
    border-color: #FF2D95;
    transform: scale(1.05);
}

.avatar-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #FF2D95;
    color: white;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 4px 4px 0 #1A1A2E;
}

.avatar-upload-btn:hover {
    background: #FF1493;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1A1A2E;
}

.avatar-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: #e74c3c;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 4px 4px 0 #1A1A2E;
}

.avatar-remove-btn:hover {
    background: #e74c3c;
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1A1A2E;
}

.avatar-file-input {
    display: none;
}

.avatar-upload-info {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: #999;
}

.avatar-upload-info i {
    margin-right: 0.25rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #F5F0E8;
    padding: 1rem;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    text-align: center;
    box-shadow: 4px 4px 0 #1A1A2E;
}

.stat-card .stat-number {
    font-family: "Bangers", cursive, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FF2D95;
}

.stat-card .stat-label {
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.78rem;
    color: #666;
}

.btn-clear {
    padding: 0.5rem 1rem;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 2px solid #1A1A2E;
    border-color: #e74c3c;
    border-radius: 4px;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-clear:hover {
    background: #e74c3c;
    color: white;
    transform: translate(-1px, -1px);
}

.load-more-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto 0;
    padding: 0.75rem 1.5rem;
    background: #F5F0E8;
    color: #1A1A2E;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 4px 4px 0 #1A1A2E;
}

.load-more-btn:hover {
    border-color: #FF2D95;
    color: #FF2D95;
    box-shadow: 6px 6px 0 #1A1A2E;
    transform: translate(-1px, -1px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Alert Box */
.profile-content .alert-box {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.82rem;
    display: none;
    border: 3px solid #1A1A2E;
}

.profile-content .alert-box.show {
    display: block;
}

.profile-content .alert-box.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-color: #27ae60;
}

.profile-content .alert-box.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

.profile-content .alert-box.info {
    background: rgba(0, 229, 255, 0.08);
    color: #00E5FF;
    border-color: #00E5FF;
}

/* Confirm Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: #FFFDF7;
    border: 3px solid #1A1A2E;
    border-radius: 4px;
    padding: 1.5rem;
    min-width: 320px;
    max-width: 90%;
    box-shadow: 6px 6px 0 #1A1A2E;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1);
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.confirm-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #e74c3c;
}

.confirm-modal-title {
    font-family: "Bangers", cursive, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1A1A2E;
}

.confirm-modal-body {
    margin-bottom: 1.5rem;
}

.confirm-modal-text {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.confirm-modal-footer {
    display: flex;
    gap: 0.75rem;
}

.confirm-modal-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: 4px;
    font-family: "Fredoka One", cursive, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 3px solid #1A1A2E;
    box-shadow: 4px 4px 0 #1A1A2E;
}

.confirm-modal-btn.cancel {
    background: #F5F0E8;
    color: #1A1A2E;
}

.confirm-modal-btn.cancel:hover {
    background: #e0e0e0;
    transform: translate(-1px, -1px);
}

.confirm-modal-btn.confirm {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.confirm-modal-btn.confirm:hover {
    background: #c0392b;
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 #1A1A2E;
}

.confirm-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    grid-column: 1/-1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--card-bg);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #999;
    font-family: "Fredoka One", cursive;
    font-size: 0.82rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}

.loading-overlay .loading-spinner {
    margin-bottom: 0.5rem;
}

.loading-overlay .loading-text {
    font-size: 0.72rem;
}

/* Responsive: Profile */
@media (max-width: 900px) {
    .profile-layout {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .profile-nav-item {
        flex: 1;
        min-width: calc(50% - 0.5rem);
        padding: 0.75rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
        font-size: 0.78rem;
    }

    .profile-nav-item.active {
        border-left: none;
        border-bottom-color: #FF2D95;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 1rem 0.5rem;
    }

    .profile-content {
        padding: 1rem;
    }

    .profile-nav-item {
        min-width: 60px;
        font-size: 0.68rem;
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .game-card-mini .game-info {
        padding: 0.5rem;
    }

    .game-card-mini .game-title {
        font-size: 0.72rem;
    }
}


.hero-section{
  padding-top: 20px!important;
}


/* ===== Share copy modal (comic / pop-art theme) ===== */
.share-copy-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 26, .82);
	display: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	z-index: 9999;
	padding: 15px;
}
.share-copy-modal.show {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.share-copy-box {
	background: var(--white);
	border: var(--outline);
	border-radius: var(--radius-lg);
	max-width: 460px;
	width: 100%;
	padding: 28px 24px 24px;
	position: relative;
	box-shadow: var(--shadow-comic-lg);
}
.share-copy-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: var(--white);
	border: var(--outline-thin);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 20px;
	line-height: 1;
	color: var(--ink);
	cursor: pointer;
	box-shadow: var(--shadow-comic-sm);
	transition: all .1s ease;
}
.share-copy-close:hover {
	background: var(--yellow);
	transform: translate(-2px, -2px);
	box-shadow: var(--shadow-comic);
}
.share-copy-title {
	margin: 0 0 6px;
	font-family: "Bangers", cursive;
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--ink);
	text-shadow: 2px 2px 0 var(--yellow);
}
.share-copy-desc {
	margin: 0 0 16px;
	color: var(--ink);
	opacity: .75;
	font-family: "Fredoka One", cursive;
	font-size: 0.8rem;
}
.share-copy-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 8px;
}
.share-copy-input {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: var(--outline-thin);
	border-radius: var(--radius);
	font-size: 14px;
	color: var(--ink);
	background: var(--white);
	font-family: "Fredoka One", cursive;
}
.share-copy-input:focus {
	outline: none;
	border-color: var(--pink);
	box-shadow: var(--shadow-comic-sm);
}
.share-copy-btn {
	padding: 10px 18px;
	border: var(--outline);
	border-radius: var(--radius);
	background: var(--pink);
	color: var(--white);
	font-family: "Fredoka One", cursive;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: var(--shadow-comic-sm);
	transition: all .1s ease;
}
.share-copy-btn:hover {
	background: var(--hotpink);
	transform: translate(-2px, -2px);
	box-shadow: var(--shadow-comic);
}
.share-copy-btn:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--ink);
}
.share-copy-status {
	margin: 12px 0 0;
	font-size: 0.8rem;
	font-family: "Fredoka One", cursive;
	color: #1AA06A;
	min-height: 18px;
}
