.playground-section {
  min-height: calc(100vh - 50px);
  height: auto;
  padding: 4rem 2rem 50px 2rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  box-sizing: border-box;
}

/* Expanded state */
.playground-section.expanded {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Fallback for browsers that don't support dvh */
@supports not (height: 100dvh) {
  .playground-section.expanded {
    height: 90vh;
    min-height: 90vh;
    max-height: 90vh;
  }
}

.playground-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 2rem;
}

.playground-section.expanded .playground-container {
  height: 100dvh;
  max-height: 100dvh;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

@supports not (height: 100dvh) {
  .playground-section.expanded .playground-container {
    height: 90vh;
    max-height: 90vh;
  }
}

/* Playground Intro Container */
.playground-intro {
  text-align: center;
  margin-bottom: 2rem;
  overflow: visible;
}

.playground-header {
  font-family: 'VT323', monospace;
  font-size: clamp(1.2rem, 5vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-shadow: none;
  transition: color 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  letter-spacing: 0.1em;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
}

/* Split text for character animations */
.playground-header .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px) rotateX(-90deg);
}

/* Ensure characters stay visible after animation */
.playground-header.day-entry .char,
.playground-header.night-entry .char,
.playground-header.cyberpunk-entry .char,
.playground-header.monochrome-entry .char,
.playground-header.neon-entry .char,
.playground-header.retro-entry .char {
  opacity: 1;
}

/* Day Theme - Explosive entrance with bouncing characters */
.playground-header.day-entry {
  animation: dayPulseLoop 3s ease-in-out infinite;
}

.playground-header.day-entry .char {
  animation: dayCharBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.playground-header.day-entry .char:nth-child(1) { animation-delay: 0.1s; }
.playground-header.day-entry .char:nth-child(2) { animation-delay: 0.15s; }
.playground-header.day-entry .char:nth-child(3) { animation-delay: 0.2s; }
.playground-header.day-entry .char:nth-child(4) { animation-delay: 0.25s; }
.playground-header.day-entry .char:nth-child(5) { animation-delay: 0.3s; }
.playground-header.day-entry .char:nth-child(6) { animation-delay: 0.35s; }
.playground-header.day-entry .char:nth-child(7) { animation-delay: 0.4s; }
.playground-header.day-entry .char:nth-child(8) { animation-delay: 0.45s; }
.playground-header.day-entry .char:nth-child(9) { animation-delay: 0.5s; }
.playground-header.day-entry .char:nth-child(10) { animation-delay: 0.55s; }
.playground-header.day-entry .char:nth-child(11) { animation-delay: 0.6s; }
.playground-header.day-entry .char:nth-child(12) { animation-delay: 0.65s; }
.playground-header.day-entry .char:nth-child(13) { animation-delay: 0.7s; }
.playground-header.day-entry .char:nth-child(14) { animation-delay: 0.75s; }
.playground-header.day-entry .char:nth-child(15) { animation-delay: 0.8s; }
.playground-header.day-entry .char:nth-child(16) { animation-delay: 0.85s; }
.playground-header.day-entry .char:nth-child(17) { animation-delay: 0.9s; }
.playground-header.day-entry .char:nth-child(18) { animation-delay: 0.95s; }

@keyframes dayCharBounce {
  0% {
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg) scale(0.3);
    text-shadow: 0 0 30px var(--glow-color);
  }
  50% {
    opacity: 1;
    transform: translateY(-20px) rotateX(15deg) scale(1.2);
    text-shadow: 0 0 40px var(--glow-color);
  }
  75% {
    transform: translateY(5px) rotateX(-5deg) scale(0.95);
    text-shadow: 0 0 20px var(--glow-color);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    text-shadow: var(--text-shadow);
  }
}

@keyframes dayPulseLoop {
  0%, 100% { 
    text-shadow: var(--text-shadow);
    transform: scale(1);
  }
  50% { 
    text-shadow: 0 0 25px var(--glow-color);
    transform: scale(1.02);
  }
}

/* Night Theme - Dramatic screen flicker with sparks */
body.night-mode .playground-header.night-entry {
  animation: nightGlowLoop 4s ease-in-out infinite;
}

body.night-mode .playground-header.night-entry .char {
  animation: nightFlickerChar 1.5s ease-out forwards;
}

body.night-mode .playground-header.night-entry .char:nth-child(odd) { animation-delay: 0.1s; }
body.night-mode .playground-header.night-entry .char:nth-child(even) { animation-delay: 0.2s; }

@keyframes nightFlickerChar {
  0% {
    opacity: 0;
    text-shadow: none;
    transform: translateY(50px);
  }
  10% {
    opacity: 0.3;
    text-shadow: 0 0 8px var(--text-primary);
    transform: translateY(30px);
  }
  15% {
    opacity: 0;
    transform: translateY(40px);
  }
  25% {
    opacity: 0.8;
    text-shadow: 0 0 15px var(--text-primary), 0 0 30px var(--accent-primary);
    transform: translateY(10px);
  }
  35% {
    opacity: 0.2;
    transform: translateY(20px);
  }
  45% {
    opacity: 1;
    text-shadow: 0 0 20px var(--text-primary), 0 0 40px var(--accent-primary), 0 0 60px var(--accent-primary);
    transform: translateY(-5px);
  }
  60% {
    opacity: 0.9;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: var(--text-shadow);
  }
}

@keyframes nightGlowLoop {
  0%, 100% { 
    text-shadow: var(--text-shadow);
    filter: brightness(1);
  }
  25% { 
    text-shadow: 0 0 8px var(--glow-color);
    filter: brightness(0.9);
  }
  50% { 
    text-shadow: 0 0 20px var(--glow-color), 0 0 30px var(--accent-primary);
    filter: brightness(1.1);
  }
  75% { 
    text-shadow: 0 0 15px var(--glow-color);
    filter: brightness(1.05);
  }
}

/* Cyberpunk Theme - Matrix-style glitch cascade */
body.cyberpunk-mode .playground-header.cyberpunk-entry {
  animation: cyberpunkRGBLoop 2.5s ease-in-out infinite;
}

body.cyberpunk-mode .playground-header.cyberpunk-entry .char {
  animation: cyberpunkGlitchChar 1.2s ease-out forwards;
}

body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(1) { animation-delay: 0s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(2) { animation-delay: 0.08s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(3) { animation-delay: 0.16s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(4) { animation-delay: 0.24s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(5) { animation-delay: 0.32s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(6) { animation-delay: 0.4s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(7) { animation-delay: 0.48s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(8) { animation-delay: 0.56s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(9) { animation-delay: 0.64s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(10) { animation-delay: 0.72s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(11) { animation-delay: 0.8s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(12) { animation-delay: 0.88s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(13) { animation-delay: 0.96s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(14) { animation-delay: 1.04s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(15) { animation-delay: 1.12s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(16) { animation-delay: 1.2s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(17) { animation-delay: 1.28s; }
body.cyberpunk-mode .playground-header.cyberpunk-entry .char:nth-child(18) { animation-delay: 1.36s; }

@keyframes cyberpunkGlitchChar {
  0% {
    opacity: 0;
    transform: translateX(-50px) rotateY(-90deg) scaleX(0.1);
    text-shadow: none;
    color: var(--accent-secondary);
  }
  15% {
    opacity: 0.3;
    transform: translateX(20px) rotateY(30deg) scaleX(1.5);
    text-shadow: 5px 0 var(--accent-secondary), -5px 0 var(--accent-primary);
    color: var(--accent-tertiary);
  }
  30% {
    opacity: 0.8;
    transform: translateX(-10px) rotateY(-15deg) scaleX(0.8);
    text-shadow: -3px 0 var(--accent-secondary), 3px 0 var(--accent-primary);
    color: var(--accent-primary);
  }
  45% {
    opacity: 0.4;
    transform: translateX(15px) rotateY(45deg) scaleX(1.3);
    text-shadow: 8px 0 var(--accent-secondary), -8px 0 var(--accent-tertiary);
    color: var(--accent-secondary);
  }
  60% {
    opacity: 1;
    transform: translateX(-5px) rotateY(-10deg) scaleX(1.1);
    text-shadow: 2px 0 var(--accent-secondary), -2px 0 var(--accent-primary);
    color: var(--accent-primary);
  }
  80% {
    transform: translateX(3px) rotateY(5deg) scaleX(0.95);
    text-shadow: 1px 0 var(--accent-secondary), -1px 0 var(--accent-primary);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scaleX(1);
    text-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-secondary);
    color: var(--accent-primary);
  }
}

@keyframes cyberpunkRGBLoop {
  0%, 100% { 
    text-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-secondary);
    filter: hue-rotate(0deg);
  }
  33% { 
    text-shadow: 1px 0 var(--accent-secondary), -1px 0 var(--accent-primary), 0 0 15px var(--accent-tertiary);
    filter: hue-rotate(120deg);
  }
  66% { 
    text-shadow: -1px 0 var(--accent-secondary), 1px 0 var(--accent-primary), 0 0 15px var(--accent-tertiary);
    filter: hue-rotate(240deg);
  }
}

/* Monochrome Theme - Vintage TV boot sequence */
body.monochrome-mode .playground-header.monochrome-entry {
  animation: monochromeVintageLoop 5s ease-in-out infinite;
}

body.monochrome-mode .playground-header.monochrome-entry .char {
  animation: monochromeCRTChar 2s ease-out forwards;
}

@keyframes monochromeCRTChar {
  0% {
    opacity: 0;
    transform: scaleY(0.1) scaleX(2);
    filter: blur(2px);
  }
  10% {
    opacity: 0.3;
    transform: scaleY(0.5) scaleX(1.5);
  }
  30% {
    opacity: 0.7;
    transform: scaleY(0.8) scaleX(1.2);
    filter: blur(1px);
  }
  60% {
    opacity: 0.9;
    transform: scaleY(1.1) scaleX(0.9);
    filter: blur(0.5px);
  }
  80% {
    opacity: 1;
    transform: scaleY(1) scaleX(1);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scaleY(1) scaleX(1);
    filter: blur(0px);
  }
}

@keyframes monochromeVintageLoop {
  0%, 100% {
    text-shadow: var(--text-shadow);
    filter: contrast(1);
  }
  25% {
    text-shadow: 0 0 10px var(--glow-color);
    filter: contrast(1.1);
  }
  50% {
    text-shadow: 0 0 15px var(--glow-color);
    filter: contrast(1.2);
  }
  75% {
    text-shadow: 0 0 8px var(--glow-color);
    filter: contrast(1.05);
  }
}

body.monochrome-mode .playground-header.monochrome-entry .char:nth-child(even) { animation-delay: 0.1s; }
body.monochrome-mode .playground-header.monochrome-entry .char:nth-child(odd) { animation-delay: 0.05s; }

/* Grid Layout (Default) */
.playground-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.playground-grid.hidden {
  opacity: 0;
  pointer-events: none;
}

.grid-item {
  background: var(--hover-overlay);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  backdrop-filter: blur(10px);
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.grid-item:hover {
  transform: translateY(-5px);
  background: var(--active-overlay);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.grid-item-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 50%;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  background: none !important;
  border: none !important;
}

.grid-item-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.grid-item-title {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.grid-item-desc {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  opacity: 0.7;
  color: var(--text-secondary);
}

/* Tab Navigation */
.tab-navigation {
  display: none;
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tab-navigation.active {
  display: flex;
}

.tab-button {
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tab-button:hover {
  background: var(--active-overlay);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.tab-button.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.close-button {
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--accent-tertiary);
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  margin-left: auto;
  text-transform: uppercase;
}

.close-button:hover {
  background: var(--active-overlay);
  transform: translateY(-2px);
}

/* Module Content */
.module-content {
  flex: 1;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: hidden;
  padding: 1rem;
  border-radius: 10px;
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  min-height: 0;
}

.module-content.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  height: 100%;
}

/* Easter Egg Module Layout */
.easter-egg-module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  flex: 1;
  padding: 1rem;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}

.easter-egg-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.easter-egg-card {
  background: var(--hover-overlay);
  border: 2px solid var(--border-color);
  border-radius: clamp(8px, 2vmin, 15px);
  padding: clamp(0.75rem, 2vmin, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.easter-egg-card:hover {
  background: var(--active-overlay);
  transform: translateY(-3px);
}

.easter-egg-title {
  font-family: 'VT323', monospace;
  font-size: clamp(1rem, 3vmin, 1.6rem);
  margin-bottom: clamp(0.25rem, 1vmin, 1rem);
  text-align: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.easter-egg-desc {
  font-family: 'VT323', monospace;
  font-size: clamp(0.75rem, 2vmin, 1rem);
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.4;
  flex-shrink: 1;
  overflow: hidden;
}

.completion-message {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  text-align: center;
  color: var(--accent-primary);
  margin-top: 1rem;
  padding: 1rem;
  background: var(--hover-overlay);
  border: 2px solid var(--accent-primary);
  border-radius: 10px;
  box-shadow: 0 0 15px var(--glow-color);
}

/* Working On Module - Concept Zone */
.working-on-module {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 1.5rem;
  gap: 1.5rem;
}

.concept-zone-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.concept-zone-icon {
  font-size: 2rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3) drop-shadow(0 0 10px var(--accent-primary)); }
}

.concept-zone-title {
  font-family: 'VT323', monospace;
  font-size: 2rem;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.concept-zone-status {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent-primary);
  color: var(--background-primary);
  border-radius: 4px;
  letter-spacing: 1px;
  margin-left: auto;
}

.concept-zone-intro {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.concept-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

.concept-card {
  background: var(--hover-overlay);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.concept-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px var(--shadow-color), 0 0 20px var(--glow-color);
}

.concept-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--active-overlay);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.concept-card-content {
  flex: 1;
  min-width: 0;
}

.concept-card-title {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.concept-card-desc {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

.concept-card-status {
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  align-self: flex-start;
}

.concept-card-status.exploring {
  background: rgba(147, 51, 234, 0.2);
  color: #a855f7;
  border: 1px solid rgba(147, 51, 234, 0.4);
}

.concept-card-status.prototyping {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.concept-card-status.planned {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Theme-aware SVG Icons using CSS masks */
.lightning-svg,
.brain-svg,
.gamepad-svg,
.code-svg,
.chat-svg,
.cube-svg,
.palette-svg,
.sparkles-svg {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.lightning-svg {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}

.brain-svg {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5a2.5 2.5 0 0 0-4.96-.46 2.5 2.5 0 0 0-1.98 3 2.5 2.5 0 0 0-1.32 4.24 3 3 0 0 0 .34 5.58 2.5 2.5 0 0 0 2.96 3.08A2.5 2.5 0 0 0 12 19.5a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 12 4.5'/%3E%3Cpath d='m15.7 10.4-.9.4'/%3E%3Cpath d='m9.2 13.2-.9.4'/%3E%3Cpath d='m13.6 15.7-.4-.9'/%3E%3Cpath d='m10.8 9.2-.4-.9'/%3E%3Cpath d='m15.7 13.5-.9-.4'/%3E%3Cpath d='m9.2 10.9-.9-.4'/%3E%3Cpath d='m10.5 15.7.4-.9'/%3E%3Cpath d='m13.1 9.2.4-.9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5a2.5 2.5 0 0 0-4.96-.46 2.5 2.5 0 0 0-1.98 3 2.5 2.5 0 0 0-1.32 4.24 3 3 0 0 0 .34 5.58 2.5 2.5 0 0 0 2.96 3.08A2.5 2.5 0 0 0 12 19.5a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 12 4.5'/%3E%3Cpath d='m15.7 10.4-.9.4'/%3E%3Cpath d='m9.2 13.2-.9.4'/%3E%3Cpath d='m13.6 15.7-.4-.9'/%3E%3Cpath d='m10.8 9.2-.4-.9'/%3E%3Cpath d='m15.7 13.5-.9-.4'/%3E%3Cpath d='m9.2 10.9-.9-.4'/%3E%3Cpath d='m10.5 15.7.4-.9'/%3E%3Cpath d='m13.1 9.2.4-.9'/%3E%3C/svg%3E");
}

.gamepad-svg {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' x2='10' y1='12' y2='12'/%3E%3Cline x1='8' x2='8' y1='10' y2='14'/%3E%3Cline x1='15' x2='15.01' y1='13' y2='13'/%3E%3Cline x1='18' x2='18.01' y1='11' y2='11'/%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' x2='10' y1='12' y2='12'/%3E%3Cline x1='8' x2='8' y1='10' y2='14'/%3E%3Cline x1='15' x2='15.01' y1='13' y2='13'/%3E%3Cline x1='18' x2='18.01' y1='11' y2='11'/%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3C/svg%3E");
}

.code-svg {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}

.chat-svg {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.cube-svg {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' x2='12' y1='22.08' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' x2='12' y1='22.08' y2='12'/%3E%3C/svg%3E");
}

.palette-svg {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.555C21.965 6.012 17.461 2 12 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.555C21.965 6.012 17.461 2 12 2z'/%3E%3C/svg%3E");
}

.sparkles-svg {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3Cpath d='M5 3v4'/%3E%3Cpath d='M19 17v4'/%3E%3Cpath d='M3 5h4'/%3E%3Cpath d='M17 19h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3Cpath d='M5 3v4'/%3E%3Cpath d='M19 17v4'/%3E%3Cpath d='M3 5h4'/%3E%3Cpath d='M17 19h4'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .concept-zone-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .concept-zone-status {
    margin-left: 0;
  }
  
  .concept-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .concept-card {
    padding: 1rem;
  }
  
  .concept-card-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

.working-on-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(0.5rem, 1.5vmin, 1rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: clamp(0.5rem, 1.5vmin, 1rem);
  align-content: start;
}

/* Model Viewer Module Styles - Canvas on top, lists below */
.model-viewer-module {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 0;
}

/* Model Lists Row - side by side cards */
.model-lists-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-shrink: 0;
  min-height: 200px;
  max-height: 35%;
}

.model-lists-row .asset-card {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1200px) {
  .model-viewer-module {
    gap: 0.75rem;
  }

  .model-lists-row {
    min-height: 150px;
    max-height: 40%;
  }
}

.model-viewer-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: var(--hover-overlay);
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.model-viewer-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hover-overlay) 0%, var(--active-overlay) 100%);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.playground-subheader {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  margin: 0;
  padding: 5px 0;
}

.playground-subheader-title {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: var(--accent-primary);
  text-shadow: none;
  margin: 0;
  opacity: 0.8;
  letter-spacing: 1px;
  font-weight: normal;
}

#playgroundCanvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 8px;
}

.model-viewer-container.drag-over {
  border-color: var(--accent-secondary);
  background: var(--active-overlay);
}

.playground-container:has(.model-viewer-container.drag-over) .playground-subheader-title {
  color: var(--accent-secondary);
  text-shadow: 0 0 15px var(--glow-color);
}

/* Asset Card Styling for Models/Textures Lists */
.asset-card {
  background: var(--hover-overlay);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.asset-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 6px 20px var(--shadow-color), 0 0 15px var(--glow-color);
}

.asset-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.asset-card-icon {
  font-size: 1.2rem;
}

.models-list,
.textures-list {
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 0;
}

.models-list.asset-card,
.textures-list.asset-card {
  padding: 1rem;
}

.models-title {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-align: left;
  flex-shrink: 0;
  margin: 0;
}

.models-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-right: 8px;
}

.models-content::-webkit-scrollbar {
  width: 6px;
}

.models-content::-webkit-scrollbar-track {
  background: var(--hover-overlay);
  border-radius: 3px;
}

.models-content::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 3px;
  opacity: 0.7;
}

.models-content::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

/* Loading, Error, and Empty States */
.loading-state,
.error-state,
.empty-state {
  padding: 2rem;
  text-align: center;
  font-family: 'VT323', monospace;
  color: var(--text-secondary);
}

.loading-state {
  font-size: 1.2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.error-state {
  font-size: 1.2rem;
  color: #ff6b6b;
}

.empty-state {
  padding: 3rem 1.5rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-message {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.empty-hint {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 250px;
  margin: 0 auto;
}

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

.category-section {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.category-header {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  user-select: none;
}

.category-header:hover {
  background: var(--active-overlay);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.category-toggle {
  font-size: 1rem;
  transition: opacity 0.3s ease;
  font-weight: bold;
}

.model-cards,
.texture-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  padding: 0 0.5rem;
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.model-cards.expanded,
.texture-cards.expanded {
  max-height: 100%;
  padding: 0.5rem;
  overflow: hidden;
  flex: 1;
}

.model-card {
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  cursor: grab;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.texture-card {
  border: 1px solid var(--border-color);
  background: var(--hover-overlay);
}

.texture-card:hover {
  background: var(--active-overlay);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--glow-color);
}

.model-card:hover {
  background: var(--active-overlay);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.model-card:active {
  cursor: grabbing;
}

.model-card.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

.model-preview {
  display: none;
}

.model-name {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--text-primary);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .playground-section {
    padding: 2rem 1rem 50px 1rem;
  }

  .playground-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .grid-item {
    padding: 2rem 1.5rem;
    min-height: 150px;
  }

  .grid-item-icon {
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
  }

  .grid-item-title {
    font-size: 1.3rem;
  }

  .grid-item-desc {
    font-size: 0.9rem;
  }

  .tab-navigation {
    padding: 0.75rem;
  }

  .tab-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .close-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

}

@keyframes starFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

@keyframes starExplode {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.5) rotate(180deg); opacity: 0.8; }
  100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.theme-star {
  z-index: 9999 !important;
  position: absolute !important;
}

/* Blueprint Theme */
body.blueprint-mode .playground-section {
  background: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ===========================
   PONG GAME MODULE STYLES - HORIZONTAL LAYOUT
   Viewport-fit design - no scrolling required
   =========================== */

.pong-game-module {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  font-family: 'VT323', monospace;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 0;
}

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

.pong-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--glow-color);
}

.pong-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Horizontal 3-Column Layout */
.pong-game-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  position: relative;
  flex: 1;
  min-height: 0;
}

/* Left Column */
.pong-left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 200px;
  flex-shrink: 0;
}

/* Center Column */
.pong-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

/* Right Column */
.pong-right-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 180px;
  flex-shrink: 0;
}

/* Scoreboard */
.pong-scoreboard {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.score-label {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.score-value {
  font-size: 2.5rem;
  color: var(--accent-primary);
  font-weight: bold;
  min-width: 50px;
  text-align: center;
  text-shadow: 0 0 15px var(--glow-color);
}

.score-divider {
  font-size: 2.5rem;
  color: var(--text-tertiary);
  opacity: 0.5;
}

/* Canvas */
.pong-canvas {
  border: 3px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 8px 30px var(--shadow-strong);
  cursor: crosshair;
  background: var(--bg-primary);
  transition: all 0.3s ease;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  flex-shrink: 1;
}

.pong-canvas:hover {
  box-shadow: 0 8px 40px var(--glow-color);
}

/* Round Display */
.pong-round-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.round-info {
  font-size: 1.3rem;
  color: var(--accent-primary);
  font-weight: bold;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--glow-color);
  text-align: center;
}

.rounds-won {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
}

.player-rounds,
.ai-rounds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.player-rounds strong,
.ai-rounds strong {
  color: var(--accent-primary);
  font-size: 1.3rem;
}

/* Instructions */
.pong-instructions {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.instruction-title {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  font-weight: bold;
}

/* Controls */
.pong-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pong-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  font-family: 'VT323', monospace;
  color: var(--text-primary);
  background: var(--accent-primary);
  border: 2px solid var(--border-strong);
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow-color);
  text-transform: uppercase;
  white-space: nowrap;
}

.pong-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow-color);
}

.pong-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px var(--shadow-color);
}

/* Victory Overlay */
.pong-victory {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 15px;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 10px 50px var(--shadow-strong);
  z-index: 100;
  animation: victoryPulse 1s ease-in-out infinite;
}

.pong-victory.hidden {
  display: none;
}

.victory-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.victory-title {
  font-size: 2.5rem;
  color: var(--accent-primary);
  text-shadow: 0 0 20px var(--glow-color);
  margin: 0;
  letter-spacing: 0.1em;
}

.victory-text {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 0;
}

.reward-btn {
  padding: 1rem 2rem;
  font-size: 1.3rem;
  font-family: 'VT323', monospace;
  color: #fff;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 3px solid #FFD700;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.reward-btn:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

.reward-btn:active {
  transform: scale(0.98);
}

.reward-icon {
  font-size: 1.8rem;
  animation: rewardBounce 1s ease-in-out infinite;
}

.reward-text {
  font-size: 1.3rem;
}

@keyframes victoryPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes rewardBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Responsive Design for Pong Game - Viewport Fit */
@media (max-width: 1024px) {
  .pong-game-module {
    padding: 0.5rem;
    justify-content: flex-start;
  }
  
  .pong-game-header {
    margin-bottom: 0.5rem;
  }
  
  .pong-title {
    font-size: 1.5rem;
  }
  
  .pong-subtitle {
    font-size: 0.85rem;
  }
  
  .pong-game-container {
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
  }
  
  .pong-left-column,
  .pong-right-column {
    min-width: 100%;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .pong-left-column {
    order: 1;
  }
  
  .pong-center-column {
    order: 2;
    flex: 1 1 auto;
    min-height: 0;
  }
  
  .pong-right-column {
    order: 3;
  }
  
  .pong-round-display,
  .pong-instructions {
    padding: 0.5rem;
    flex: 1;
    max-width: 45%;
  }
  
  .pong-controls {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
  
  .pong-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    flex: 1;
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .playground-section.expanded .playground-container {
    padding: 0.5rem;
  }
  
  .tab-navigation {
    padding: 0.5rem;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
  }
  
  .tab-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .module-content {
    padding: 0.5rem;
  }
  
  .pong-game-module {
    padding: 0.3rem;
  }
  
  .pong-game-header {
    margin-bottom: 0.3rem;
  }
  
  .pong-title {
    font-size: 1.3rem;
    margin-bottom: 0;
  }
  
  .pong-subtitle {
    font-size: 0.75rem;
    display: none;
  }
  
  .pong-game-container {
    gap: 0.3rem;
  }
  
  .pong-left-column,
  .pong-right-column {
    gap: 0.5rem;
  }
  
  .pong-round-display {
    padding: 0.4rem;
    max-width: 48%;
  }
  
  .round-info {
    font-size: 0.9rem;
  }
  
  .rounds-won {
    font-size: 0.8rem;
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .pong-instructions {
    display: none;
  }
  
  .pong-scoreboard {
    padding: 0.5rem 1rem;
    gap: 1rem;
  }
  
  .score-label {
    font-size: 0.85rem;
  }
  
  .score-squares {
    gap: 0.3rem;
  }
  
  .score-square {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  
  .pong-canvas {
    max-width: 100%;
    max-height: 50%;
    height: auto !important;
    flex-shrink: 1;
  }
  
  .pong-controls {
    gap: 0.5rem;
  }
  
  .pong-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    min-width: 80px;
  }
  
  .pong-victory,
  .pong-game-over {
    padding: 1rem;
    max-width: 90%;
  }
  
  .victory-title,
  .game-over-title {
    font-size: 1.5rem;
  }
  
  .victory-text,
  .game-over-text {
    font-size: 1rem;
  }
  
  .reward-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .playground-section.expanded {
    padding: 0;
  }
  
  .playground-section.expanded .playground-container {
    padding: 0.25rem;
  }
  
  .tab-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.3rem;
  }
  
  .tab-button {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  
  .close-button {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .pong-game-module {
    padding: 0.25rem;
  }
  
  .pong-title {
    font-size: 1.1rem;
  }
  
  .pong-game-container {
    gap: 0.25rem;
  }
  
  .pong-left-column {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pong-round-display {
    max-width: 100%;
    width: 100%;
  }
  
  .rounds-won {
    flex-direction: row;
  }
  
  .pong-scoreboard {
    padding: 0.4rem 0.8rem;
    width: 100%;
    justify-content: center;
  }
  
  .score-square {
    width: 15px;
    height: 15px;
  }
  
  .pong-canvas {
    max-height: 45%;
    width: 100% !important;
    flex-shrink: 1;
  }
  
  .pong-right-column {
    width: 100%;
  }
  
  .pong-controls {
    width: 100%;
  }
  
  .pong-btn {
    flex: 1;
    max-width: none;
    font-size: 0.85rem;
  }
  
  .victory-title,
  .game-over-title {
    font-size: 1.3rem;
  }
  
  .game-over-content {
    padding: 1.5rem;
  }
  
  .game-over-subtext {
    margin-bottom: 1rem;
  }
}

/* Playground Grid Mobile */
@media (max-width: 768px) {
  .playground-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .grid-item {
    padding: 1.5rem 1rem;
    min-height: 140px;
  }
  
  .grid-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
  
  .grid-item-title {
    font-size: 1.1rem;
  }
  
  .grid-item-desc {
    font-size: 0.85rem;
  }
}

/* Mobile Responsive - All Playground Tabs */
@media (max-width: 768px) {
  .playground-section.expanded .playground-container {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .playground-section.expanded .playground-intro {
    margin-bottom: 0.5rem;
  }
  
  .playground-section.expanded .playground-header {
    margin-bottom: 0.5rem;
  }
  
  .tab-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.4rem;
    gap: 0.3rem;
    max-height: 50px;
  }
  
  .tab-button {
    padding: 0.4rem 0.6rem;
    font-size: clamp(0.6rem, 2.5vw, 0.85rem);
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .close-button {
    padding: 0.4rem 0.6rem;
    font-size: clamp(0.6rem, 2.5vw, 0.85rem);
  }
  
  .module-content {
    padding: 0.5rem;
    min-height: 0;
  }
  
  .module-content.active {
    overflow: hidden;
  }
  
  /* Easter Eggs - 2 rows stacked */
  .easter-egg-module {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 0;
    height: 100%;
  }
  
  .easter-egg-card {
    padding: 0.5rem;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  
  .easter-egg-title {
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    margin-bottom: 0.2rem;
    flex-shrink: 0;
  }
  
  .easter-egg-desc {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    line-height: 1.2;
    flex-shrink: 0;
  }
  
  .rock-display {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .rock-display img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  
  /* Model Viewer - viewer on top, 2 lists side by side */
  .model-viewer-module {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 0;
    height: 100%;
  }
  
  .model-viewer-wrapper {
    order: 1;
    flex: 1;
    min-height: 0;
    max-height: 50%;
  }
  
  .model-viewer-container {
    height: 100%;
    min-height: 0;
  }
  
  .model-lists-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
  }
  
  .models-list {
    order: 2;
    padding: 0.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  
  .textures-list {
    order: 3;
    padding: 0.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  
  .list-title {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    margin-bottom: 0.5rem;
  }
  
  .model-item,
  .texture-item {
    padding: 0.5rem;
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  }
  
  /* Asset cards on mobile */
  .asset-card {
    padding: 0.75rem;
  }
  
  .asset-card-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    gap: 0.4rem;
  }
  
  .asset-card-icon {
    font-size: 1rem;
  }
  
  .models-title {
    font-size: 0.95rem;
  }
  
  /* Working On module */
  .working-on-module {
    min-height: 0;
    padding: 1rem;
    gap: 1rem;
  }
  
  .concept-zone-title {
    font-size: 1.5rem;
  }
  
  .concept-zone-intro {
    font-size: 1rem;
  }
  
  .concept-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .concept-card {
    padding: 0.75rem;
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .concept-card-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .concept-card-title {
    font-size: 1rem;
  }
  
  .concept-card-desc {
    font-size: 0.85rem;
  }
  
  .concept-card-status {
    font-size: 0.65rem;
  }
  
  .working-on-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .grid-item {
    padding: 0.75rem;
  }
  
  .grid-item-title {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }
  
  .grid-item-desc {
    font-size: clamp(0.65rem, 2vw, 0.85rem);
  }
}

/* Score Squares Visual Indicator */
.score-squares {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.3rem;
}

.score-square {
  width: 25px;
  height: 25px;
  border: 3px solid var(--accent-primary);
  border-radius: 4px;
  background: transparent;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--glow-color);
}

.score-square.filled {
  background: var(--accent-primary);
  box-shadow: 0 0 15px var(--glow-color);
  transform: scale(1.1);
}

/* Update scoreboard for square layout */
.pong-scoreboard {
  padding: 1rem 2rem;
}

.score-label {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.score-divider {
  font-size: 1.5rem;
  align-self: center;
  margin-top: 1.5rem;
}

/* Game Over Screen */
.pong-game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.pong-game-over.hidden {
  display: none;
}

.game-over-content {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(220, 20, 60, 0.1));
  border: 3px solid var(--accent-primary);
  border-radius: 15px;
  box-shadow: 0 0 30px var(--glow-color);
  max-width: 500px;
}

.game-over-title {
  font-family: 'VT323', monospace;
  font-size: 3.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px var(--glow-color);
  animation: pulseRed 1.5s ease-in-out infinite;
}

.game-over-text {
  font-family: 'VT323', monospace;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.game-over-subtext {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0.7;
}

@keyframes pulseRed {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}
