:root {
  --neon-pink: #ff6b6b;
  --neon-orange: #ff6b9d;
  --neon-yellow: #ffd93d;
  --neon-green: #6bcb77;
  --neon-blue: #4d96ff;
  --neon-purple: #c084fc;
  --neon-cyan: #00d4ff;

  --bg-primary: #f4f4f9;
  --bg-secondary: #eaeaf0;
  --bg-card: rgba(255, 255, 255, 0.5);
  --bg-glass: rgba(255, 255, 255, 0.6);

  --text-primary: #1a1a2e;
  --text-secondary: rgba(0, 0, 0, 0.55);
  --text-muted: rgba(0, 0, 0, 0.3);

  --border-glass: rgba(0, 0, 0, 0.07);
  --shadow-glow: 0 0 30px rgba(255, 107, 107, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-main: "Inter", sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 30px rgba(255, 107, 107, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-pink), var(--neon-purple));
  border-radius: 3px;
}

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

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
}

.text-center {
  text-align: center;
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.15),
    rgba(192, 132, 252, 0.15)
  );
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-pink);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--neon-pink),
    var(--neon-yellow),
    var(--neon-green),
    var(--neon-blue),
    var(--neon-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-glow {
  animation: glowPulse 2s infinite;
}

.btn-close-brief {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.btn-close-brief:hover {
  color: var(--text-primary);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.logo-icon {
  font-size: 1.5rem;
}
.logo-accent {
  color: var(--neon-pink);
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--neon-pink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 3rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-yellow);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--neon-pink);
  top: -100px;
  right: -100px;
  animation: floatShape 8s infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--neon-blue);
  bottom: -50px;
  right: 20%;
  animation: floatShape 10s infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--neon-purple);
  top: 40%;
  left: -50px;
  animation: floatShape 12s infinite;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: var(--neon-green);
  bottom: 20%;
  left: 30%;
  animation: floatShape 7s infinite reverse;
}

/* GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  padding: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px var(--card-color);
}

.game-card-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-icon {
  font-size: 2.5rem;
  transition: transform 0.3s;
}

.game-card:hover .game-icon {
  transform: scale(1.2) rotate(-10deg);
}

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

.game-difficulty {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.game-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.game-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-glass);
}

/* DAILY CHALLENGE */
.challenge-card {
  padding: 1.5rem;
}

.challenge-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.challenge-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--neon-yellow), var(--neon-orange));
  border-radius: var(--radius-md);
}

.challenge-text {
  flex: 1;
  min-width: 200px;
}

.challenge-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.challenge-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.challenge-reward {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reward-badge {
  padding: 0.5rem 1rem;
  font-weight: 700;
  color: var(--neon-yellow);
  font-size: 0.9rem;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* GAME ARENA */
.game-arena .container {
  max-width: 1400px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.game-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.game-badge.warning {
  color: var(--neon-yellow);
  animation: timerPulse 1s infinite;
}

.game-badge.danger {
  color: #e74c3c;
  animation: timerPulse 0.5s infinite;
}

.game-actions {
  display: flex;
  gap: 0.5rem;
}

.brief-card {
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
}

.brief-card.hidden {
  max-height: 0;
  padding: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
}

.brief-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  font-weight: 600;
  font-size: 0.95rem;
}

.brief-header span {
  flex: 1;
}

.brief-body {
  padding: 1.5rem;
}

.brief-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--neon-yellow);
}

.brief-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.fake-comment {
  padding: 1rem;
  font-style: italic;
  color: var(--neon-purple);
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.fake-comment i {
  font-size: 1.2rem;
  opacity: 0.5;
}

.workspace-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tool-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.tool-btn:hover,
.tool-btn.active {
  background: rgba(255, 107, 107, 0.15);
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.tool-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.tool-label:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.tool-label input[type="color"] {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  padding: 0;
}

.tool-label input[type="number"] {
  width: 70px;
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  font-family: var(--font-main);
}

.tool-label select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  font-family: var(--font-main);
  cursor: pointer;
}

.tool-label select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.canvas-wrapper {
  position: relative;
  background: #1e1e2e;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 500px;
  border: 2px solid var(--border-glass);
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

.canvas-area {
  position: relative;
  min-height: 500px;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.canvas-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
}

.canvas-placeholder i {
  font-size: 3rem;
  opacity: 0.3;
}

.canvas-placeholder .small {
  font-size: 0.8rem;
  opacity: 0.5;
}

.canvas-element {
  position: absolute;
  cursor: move;
  user-select: none;
  z-index: 10;
  min-width: 20px;
  min-height: 20px;
  transition: box-shadow 0.2s;
}

.canvas-element:hover {
  box-shadow: 0 0 0 2px var(--neon-pink);
}

.canvas-element.selected {
  box-shadow:
    0 0 0 2px var(--neon-blue),
    0 0 15px rgba(77, 150, 255, 0.3);
}

.canvas-element .delete-handle {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: #e74c3c;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.6rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.canvas-element.selected .delete-handle {
  display: flex;
}

.canvas-element .resize-handle {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: var(--neon-blue);
  border: 2px solid #fff;
  border-radius: 2px;
  cursor: nwse-resize;
  display: none;
  z-index: 20;
}

.canvas-element.selected .resize-handle {
  display: block;
}

.canvas-text {
  padding: 4px 8px;
  white-space: nowrap;
  cursor: move;
  font-size: 16px;
}

.canvas-text:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--neon-blue);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

.canvas-shape {
  position: absolute;
  cursor: move;
}

.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.element-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* RESULT PAGE */
.result-header {
  margin-bottom: 3rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-green);
}

.result-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-rank {
  padding: 2rem;
  text-align: center;
}

.rank-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.rank-icon {
  font-size: 4rem;
  animation: bounceIn 0.8s ease;
}

.rank-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-yellow), var(--neon-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overall-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.xp-earned {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(255, 217, 61, 0.15),
    rgba(255, 107, 107, 0.15)
  );
  border-radius: 50px;
  font-weight: 700;
  color: var(--neon-yellow);
}

.result-scores {
  padding: 1.5rem;
}

.result-scores h3,
.result-chart h3,
.result-critiques h3,
.result-screenshot h3 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.scores-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  font-size: 0.85rem;
  font-weight: 500;
}

.score-info i {
  width: 20px;
  color: var(--neon-pink);
}

.score-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease;
}

.score-value {
  min-width: 30px;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.result-chart {
  padding: 1.5rem;
}

.result-chart canvas {
  max-height: 300px;
}

.result-critiques {
  padding: 1.5rem;
}

.critiques-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.critique-item {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--neon-pink);
}

.critique-item strong {
  color: var(--neon-pink);
  font-size: 0.85rem;
}

.critique-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  font-style: italic;
}

.result-screenshot {
  padding: 1.5rem;
}

#screenshotContainer {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#screenshotContainer img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* LEADERBOARD */
.leaderboard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255, 107, 107, 0.15);
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.player-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
}

.player-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.player-stats .stat-item i {
  color: var(--neon-pink);
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  min-height: 200px;
}

.podium-item {
  padding: 1.5rem;
  text-align: center;
  min-width: 120px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  transition: all 0.3s;
}

.podium-item:hover {
  transform: translateY(-5px);
}

.podium-item.first {
  order: 2;
  padding-top: 2.5rem;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.1), transparent);
  border-color: rgba(255, 215, 0, 0.3);
  min-height: 250px;
}

.podium-item.second {
  order: 1;
  min-height: 200px;
}

.podium-item.third {
  order: 3;
  min-height: 180px;
}

.podium-rank {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-muted);
}

.podium-item.first .podium-rank {
  color: #ffd700;
}

.podium-item.second .podium-rank {
  color: #c0c0c0;
}

.podium-item.third .podium-rank {
  color: #cd7f32;
}

.podium-icon {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.podium-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.podium-score {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--neon-pink);
}

.leaderboard-table {
  padding: 1rem;
  overflow-x: auto;
}

.leaderboard-table table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
}

.leaderboard-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-table .rank-num {
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.leaderboard-table .rank-1 {
  color: #ffd700;
}
.leaderboard-table .rank-2 {
  color: #c0c0c0;
}
.leaderboard-table .rank-3 {
  color: #cd7f32;
}

.rank-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 107, 107, 0.1);
  color: var(--neon-pink);
}

.rank-info {
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.rank-info h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

.rank-card {
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.rank-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.rank-card .rank-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.rank-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.rank-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ABOUT */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-hero {
  padding: 2rem;
  text-align: center;
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-hero p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.about-features {
  padding: 1.5rem;
}

.about-features h3,
.about-tech h3 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

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

.about-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.about-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.about-item i {
  font-size: 1.3rem;
  color: var(--neon-pink);
  margin-bottom: 0.5rem;
}

.about-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.about-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-tech {
  padding: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-item {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.tech-item:hover {
  border-color: var(--neon-pink);
  background: rgba(255, 107, 107, 0.05);
}

.tech-item span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.tech-item small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.about-cta {
  padding: 2rem;
}

.about-cta h2 {
  margin-bottom: 0.5rem;
}

.about-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* FOOTER */
.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-glass);
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--neon-pink);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.3s;
  font-size: 1rem;
}

.social-icon:hover {
  background: rgba(255, 107, 107, 0.1);
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* PARTICLES CANVAS */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

/* ANIMATIONS */
@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.5);
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes confetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.glow-pulse {
  animation: glowPulse 2s infinite;
}

/* SOUND TOGGLE */
.sound-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.sound-toggle:hover {
  color: var(--text-primary);
  border-color: var(--neon-pink);
}

/* MODAL OVERRIDES */
.swal2-popup {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-lg) !important;
  font-family: var(--font-main) !important;
}

.swal2-title {
  color: var(--text-primary) !important;
}

.swal2-html-container {
  color: var(--text-secondary) !important;
}

.swal2-confirm {
  background: linear-gradient(
    135deg,
    var(--neon-pink),
    var(--neon-purple)
  ) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-main) !important;
}

.swal2-cancel {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-main) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

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

  .section-header h2 {
    font-size: 1.8rem;
  }

  .challenge-content {
    flex-direction: column;
    text-align: center;
  }

  .challenge-reward {
    justify-content: center;
  }

  .game-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-info {
    width: 100%;
    justify-content: space-between;
  }

  .game-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-group {
    justify-content: center;
  }

  .canvas-area {
    height: 400px;
  }

  .leaderboard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .player-stats {
    justify-content: center;
  }

  .podium {
    flex-direction: column;
    align-items: center;
  }

  .podium-item {
    min-height: auto !important;
    width: 100%;
    max-width: 300px;
  }

  .podium-item.first {
    order: 1;
  }

  .podium-item.second {
    order: 2;
  }

  .podium-item.third {
    order: 3;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .score-info {
    min-width: 100px;
    font-size: 0.75rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1025px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
