/* ─── REALISTIC ROOM GAME ─── */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  background: #2C3E50;
  user-select: none;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Game Container */
.game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #87CEEB 0%, #98FB98 30%, #F5DEB3 100%);
}

/* Game HUD - Pokémon Style */
.game-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: 
    linear-gradient(90deg, #4A4A4A 0%, #6B6B6B 50%, #4A4A4A 100%);
  border-bottom: 4px solid #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 4px 0 #2A2A2A;
}

.hud-left {
  background: #F0F0F0;
  border: 3px solid #2A2A2A;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #8B8B8B;
}

.player-info {
  color: #2A2A2A;
  text-shadow: 1px 1px 0 #FFFFFF;
}

.player-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 2px;
  color: #2A2A2A;
}

.player-title {
  font-size: 10px;
  color: #4A4A4A;
}

.hud-center {
  background: #F0F0F0;
  border: 3px solid #2A2A2A;
  border-radius: 8px;
  padding: 8px 15px;
  box-shadow: inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #8B8B8B;
}

.instructions {
  color: #2A2A2A;
  font-size: 12px;
  text-align: center;
  text-shadow: 1px 1px 0 #FFFFFF;
}

.key {
  background: #8B8B8B;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  margin: 0 2px;
  border: 1px solid #2A2A2A;
  box-shadow: inset 1px 1px 0 #FFFFFF, inset -1px -1px 0 #2A2A2A;
}

.hud-right .social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  background: #F0F0F0;
  border: 3px solid #2A2A2A;
  border-radius: 6px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2A2A2A;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.1s ease;
  box-shadow: inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #8B8B8B;
}

.social-links a:hover {
  background: #E0E0E0;
  transform: translateY(1px);
  box-shadow: inset 1px 1px 0 #8B8B8B, inset -1px -1px 0 #2A2A2A;
}

/* Game World */
.game-world {
  width: 100%;
  height: 100%;
  padding-top: 100px;
  position: relative;
  background: #F5DEB3;
}

/* Room Grid - Flat Layout */
.pokemon-room {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(15, 1fr);
  gap: 0;
  background: 
    linear-gradient(45deg, #F5DEB3 25%, transparent 25%),
    linear-gradient(-45deg, #F5DEB3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #DEB887 75%),
    linear-gradient(-45deg, transparent 75%, #DEB887 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  animation: floor-shimmer 8s ease-in-out infinite;
}

@keyframes floor-shimmer {
  0%, 100% { 
    filter: brightness(1);
  }
  50% { 
    filter: brightness(1.05);
  }
}

/* Room Walls - Simple Borders */
.room-wall {
  background: 
    linear-gradient(180deg, #F5F5DC 0%, #E6E6FA 50%, #D3D3D3 100%);
  border: 2px solid #696969;
  box-shadow: inset 2px 2px 0 #F0F8FF, inset -2px -2px 0 #A9A9A9;
}

.wall-top {
  border-bottom: 3px solid #2A2A2A;
}

.wall-bottom {
  border-top: 3px solid #2A2A2A;
}

.wall-left {
  border-right: 3px solid #2A2A2A;
}

.wall-right {
  border-left: 3px solid #2A2A2A;
}

/* Realistic Furniture */
.furniture {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: furniture-idle 6s ease-in-out infinite;
}

.furniture:hover {
  transform: translateY(-5px);
  animation-play-state: paused;
}

@keyframes furniture-idle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

/* Realistic Bed Design */
.bed {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  animation: bed-breathing 8s ease-in-out infinite;
}

/* Bed Frame */
.bed::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: 
    linear-gradient(180deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  border: 4px solid #654321;
  border-radius: 8px;
  box-shadow: 
    inset 3px 3px 0 #A0522D,
    inset -3px -3px 0 #654321,
    0 0 0 2px #2A2A2A;
}

/* Mattress */
.bed::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  right: 5%;
  height: 70%;
  background: 
    linear-gradient(180deg, #F5F5DC 0%, #E6E6FA 50%, #F0F8FF 100%);
  border: 3px solid #D3D3D3;
  border-radius: 12px;
  box-shadow: 
    inset 2px 2px 0 #FFFFFF,
    inset -2px -2px 0 #D3D3D3,
    0 0 0 1px #696969;
}

/* Bed Sheets */
.bed .bed-sheets {
  position: absolute;
  top: 15%;
  left: 8%;
  right: 8%;
  height: 60%;
  background: 
    linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 50%, #FFB6C1 100%);
  border: 2px solid #FF69B4;
  border-radius: 10px;
  box-shadow: 
    inset 2px 2px 0 #FFC0CB,
    inset -2px -2px 0 #FF69B4;
  animation: sheet-movement 6s ease-in-out infinite;
}

/* Pillows */
.bed .pillow-1 {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 25%;
  height: 35%;
  background: 
    linear-gradient(135deg, #FFFFFF 0%, #F0F8FF 50%, #E6E6FA 100%);
  border: 2px solid #D3D3D3;
  border-radius: 50% 50% 0 0;
  box-shadow: 
    inset 2px 2px 0 #FFFFFF,
    inset -2px -2px 0 #D3D3D3;
  animation: pillow-fluff 5s ease-in-out infinite;
}

.bed .pillow-2 {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 25%;
  height: 35%;
  background: 
    linear-gradient(135deg, #FFFFFF 0%, #F0F8FF 50%, #E6E6FA 100%);
  border: 2px solid #D3D3D3;
  border-radius: 50% 50% 0 0;
  box-shadow: 
    inset 2px 2px 0 #FFFFFF,
    inset -2px -2px 0 #D3D3D3;
  animation: pillow-fluff 5s ease-in-out infinite 2s;
}

/* Bed Headboard */
.bed .headboard {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  height: 25%;
  background: 
    linear-gradient(180deg, #654321 0%, #8B4513 50%, #654321 100%);
  border: 4px solid #2A2A2A;
  border-radius: 8px 8px 0 0;
  box-shadow: 
    inset 3px 3px 0 #8B4513,
    inset -3px -3px 0 #654321,
    0 0 0 1px #2A2A2A;
}

/* Bed Legs */
.bed .bed-leg-1 {
  position: absolute;
  bottom: -10%;
  left: 5%;
  width: 8%;
  height: 10%;
  background: #654321;
  border: 2px solid #2A2A2A;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 #8B4513, inset -1px -1px 0 #2A2A2A;
}

.bed .bed-leg-2 {
  position: absolute;
  bottom: -10%;
  right: 5%;
  width: 8%;
  height: 10%;
  background: #654321;
  border: 2px solid #2A2A2A;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 #8B4513, inset -1px -1px 0 #2A2A2A;
}

.bed .bed-leg-3 {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 8%;
  height: 10%;
  background: #654321;
  border: 2px solid #2A2A2A;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 #8B4513, inset -1px -1px 0 #2A2A2A;
}

@keyframes sheet-movement {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    box-shadow: 
      inset 2px 2px 0 #FFC0CB,
      inset -2px -2px 0 #FF69B4;
  }
  50% { 
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
      inset 2px 2px 0 #FFC0CB,
      inset -2px -2px 0 #FF69B4,
      0 0 10px rgba(255, 105, 180, 0.3);
  }
}

@keyframes pillow-fluff {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    box-shadow: 
      inset 2px 2px 0 #FFFFFF,
      inset -2px -2px 0 #D3D3D3;
  }
  50% { 
    transform: translateY(-1px) rotate(1deg);
    box-shadow: 
      inset 2px 2px 0 #FFFFFF,
      inset -2px -2px 0 #D3D3D3,
      0 0 8px rgba(211, 211, 211, 0.3);
  }
}

.bed .furniture-sprite {
  font-size: 0;
  margin-bottom: 10px;
}

.bed .furniture-label {
  font-size: 11px;
  font-weight: bold;
  color: #2A2A2A;
  text-shadow: 2px 2px 0 #FFFFFF;
  background: rgba(255, 182, 193, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
  border: 2px solid #FF69B4;
  box-shadow: 
    inset 1px 1px 0 #FFFFFF,
    inset -1px -1px 0 #FF69B4;
}

@keyframes bed-breathing {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    box-shadow: 
      inset 4px 4px 0 #FFFFFF,
      inset -4px -4px 0 #FF69B4,
      8px 8px 20px rgba(255, 105, 180, 0.3);
  }
  50% { 
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
      inset 4px 4px 0 #FFFFFF,
      inset -4px -4px 0 #FF69B4,
      10px 10px 25px rgba(255, 105, 180, 0.4);
  }
}

/* Realistic Desk Design */
.desk {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  animation: desk-working 10s ease-in-out infinite;
}

/* Desk Top */
.desk::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: 
    linear-gradient(180deg, #DEB887 0%, #D2B48C 50%, #BC9A6A 100%);
  border: 4px solid #8B4513;
  border-radius: 8px;
  box-shadow: 
    inset 3px 3px 0 #F5DEB3,
    inset -3px -3px 0 #8B4513,
    0 0 0 2px #2A2A2A;
}

/* Desk Drawers */
.desk::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: 
    linear-gradient(180deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  border: 3px solid #654321;
  border-radius: 0 0 8px 8px;
  box-shadow: 
    inset 2px 2px 0 #A0522D,
    inset -2px -2px 0 #654321,
    0 0 0 1px #2A2A2A;
}

/* Desk Lamp */
.desk .desk-lamp {
  position: absolute;
  top: 5%;
  right: 10%;
  width: 15%;
  height: 40%;
  background: 
    linear-gradient(180deg, #C0C0C0 0%, #A9A9A9 50%, #696969 100%);
  border: 2px solid #2A2A2A;
  border-radius: 2px;
  box-shadow: 
    inset 1px 1px 0 #D3D3D3,
    inset -1px -1px 0 #696969;
  animation: lamp-glow 3s ease-in-out infinite;
}

.desk .lamp-shade {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 25%;
  background: 
    linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: 2px solid #FF8C00;
  border-radius: 50% 50% 0 0;
  box-shadow: 
    inset 2px 2px 0 #FFFF00,
    inset -2px -2px 0 #FF8C00,
    0 0 15px rgba(255, 215, 0, 0.5);
}

/* Desk Monitor */
.desk .monitor {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 40%;
  height: 50%;
  background: 
    linear-gradient(180deg, #2A2A2A 0%, #1A1A1A 50%, #2A2A2A 100%);
  border: 3px solid #000000;
  border-radius: 4px;
  box-shadow: 
    inset 2px 2px 0 #4A4A4A,
    inset -2px -2px 0 #1A1A1A,
    0 0 0 1px #696969;
}

.desk .monitor-screen {
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  height: 70%;
  background: 
    linear-gradient(135deg, #0066CC 0%, #004499 50%, #003366 100%);
  border: 1px solid #000000;
  border-radius: 2px;
  animation: screen-flicker 5s ease-in-out infinite;
}

.desk .monitor-stand {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 15%;
  background: #2A2A2A;
  border: 2px solid #000000;
  border-radius: 2px;
  box-shadow: 
    inset 1px 1px 0 #4A4A4A,
    inset -1px -1px 0 #1A1A1A;
}

/* Desk Chair */
.desk .chair {
  position: absolute;
  bottom: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 35%;
  background: 
    linear-gradient(180deg, #8B4513 0%, #A0522D 100%);
  border: 3px solid #654321;
  border-radius: 8px;
  box-shadow: 
    inset 2px 2px 0 #A0522D,
    inset -2px -2px 0 #654321,
    0 0 0 1px #2A2A2A;
}

.desk .chair-back {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  height: 40%;
  background: 
    linear-gradient(180deg, #8B4513 0%, #A0522D 100%);
  border: 3px solid #654321;
  border-radius: 8px 8px 0 0;
  box-shadow: 
    inset 2px 2px 0 #A0522D,
    inset -2px -2px 0 #654321;
}

/* Desk Drawer Handles */
.desk .drawer-handle-1 {
  position: absolute;
  bottom: 15%;
  left: 20%;
  width: 15%;
  height: 8%;
  background: #C0C0C0;
  border: 2px solid #808080;
  border-radius: 3px;
  box-shadow: 
    inset 1px 1px 0 #E0E0E0,
    inset -1px -1px 0 #808080;
}

.desk .drawer-handle-2 {
  position: absolute;
  bottom: 15%;
  right: 20%;
  width: 15%;
  height: 8%;
  background: #C0C0C0;
  border: 2px solid #808080;
  border-radius: 3px;
  box-shadow: 
    inset 1px 1px 0 #E0E0E0,
    inset -1px -1px 0 #808080;
}

@keyframes lamp-glow {
  0%, 100% { 
    filter: brightness(1);
    box-shadow: 
      inset 1px 1px 0 #D3D3D3,
      inset -1px -1px 0 #696969;
  }
  50% { 
    filter: brightness(1.2);
    box-shadow: 
      inset 1px 1px 0 #D3D3D3,
      inset -1px -1px 0 #696969,
      0 0 10px rgba(255, 215, 0, 0.3);
  }
}

@keyframes screen-flicker {
  0%, 100% { 
    filter: brightness(1);
  }
  50% { 
    filter: brightness(1.1);
  }
}

.desk .furniture-sprite {
  font-size: 0;
  margin-bottom: 10px;
}

.desk .furniture-label {
  font-size: 11px;
  font-weight: bold;
  color: #2A2A2A;
  text-shadow: 2px 2px 0 #FFFFFF;
  background: rgba(255, 228, 181, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
  border: 2px solid #DAA520;
  box-shadow: 
    inset 1px 1px 0 #FFFFFF,
    inset -1px -1px 0 #DAA520;
}

@keyframes desk-working {
  0%, 100% { 
    transform: translateY(0px);
    box-shadow: 
      inset 4px 4px 0 #FFFFFF,
      inset -4px -4px 0 #DAA520,
      8px 8px 20px rgba(218, 165, 32, 0.3);
  }
  50% { 
    transform: translateY(-1px);
    box-shadow: 
      inset 4px 4px 0 #FFFFFF,
      inset -4px -4px 0 #DAA520,
      10px 10px 25px rgba(218, 165, 32, 0.4);
  }
}

/* Realistic Closet Design */
.closet {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  animation: closet-sway 12s ease-in-out infinite;
}

/* Closet Frame */
.closet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  border: 4px solid #654321;
  border-radius: 8px;
  box-shadow: 
    inset 3px 3px 0 #A0522D,
    inset -3px -3px 0 #654321,
    0 0 0 2px #2A2A2A;
}

/* Closet Top */
.closet::after {
  content: '';
  position: absolute;
  top: -8%;
  left: -5%;
  right: -5%;
  height: 8%;
  background: 
    linear-gradient(135deg, #654321 0%, #8B4513 100%);
  border: 3px solid #2A2A2A;
  border-radius: 8px 8px 0 0;
  box-shadow: 
    inset 2px 2px 0 #A0522D,
    inset -2px -2px 0 #654321;
}

/* Closet Left Door */
.closet .closet-door-left {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 45%;
  height: 90%;
  background: 
    linear-gradient(180deg, #F5F5DC 0%, #E6E6FA 50%, #D3D3D3 100%);
  border: 3px solid #696969;
  border-radius: 4px;
  box-shadow: 
    inset 2px 2px 0 #F0F8FF,
    inset -2px -2px 0 #A9A9A9,
    0 0 0 1px #2A2A2A;
  animation: door-sway 8s ease-in-out infinite;
}

/* Closet Right Door */
.closet .closet-door-right {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 45%;
  height: 90%;
  background: 
    linear-gradient(180deg, #F5F5DC 0%, #E6E6FA 50%, #D3D3D3 100%);
  border: 3px solid #696969;
  border-radius: 4px;
  box-shadow: 
    inset 2px 2px 0 #F0F8FF,
    inset -2px -2px 0 #A9A9A9,
    0 0 0 1px #2A2A2A;
  animation: door-sway 8s ease-in-out infinite 4s;
}

/* Door Handles */
.closet .door-handle-left {
  position: absolute;
  top: 50%;
  left: 15%;
  width: 6%;
  height: 12%;
  background: #C0C0C0;
  border: 2px solid #808080;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 
    inset 1px 1px 0 #E0E0E0,
    inset -1px -1px 0 #808080;
}

.closet .door-handle-right {
  position: absolute;
  top: 50%;
  right: 15%;
  width: 6%;
  height: 12%;
  background: #C0C0C0;
  border: 2px solid #808080;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 
    inset 1px 1px 0 #E0E0E0,
    inset -1px -1px 0 #808080;
}

/* Closet Shelves */
.closet .shelf-1 {
  position: absolute;
  top: 25%;
  left: 10%;
  right: 10%;
  height: 4%;
  background: 
    linear-gradient(90deg, #8B4513 0%, #A0522D 100%);
  border: 2px solid #654321;
  border-radius: 2px;
  box-shadow: 
    inset 1px 1px 0 #A0522D,
    inset -1px -1px 0 #654321;
}

.closet .shelf-2 {
  position: absolute;
  top: 55%;
  left: 10%;
  right: 10%;
  height: 4%;
  background: 
    linear-gradient(90deg, #8B4513 0%, #A0522D 100%);
  border: 2px solid #654321;
  border-radius: 2px;
  box-shadow: 
    inset 1px 1px 0 #A0522D,
    inset -1px -1px 0 #654321;
}

.closet .shelf-3 {
  position: absolute;
  top: 80%;
  left: 10%;
  right: 10%;
  height: 4%;
  background: 
    linear-gradient(90deg, #8B4513 0%, #A0522D 100%);
  border: 2px solid #654321;
  border-radius: 2px;
  box-shadow: 
    inset 1px 1px 0 #A0522D,
    inset -1px -1px 0 #654321;
}

/* Clothes Hanging */
.closet .clothes-hanger {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 8%;
  background: 
    linear-gradient(90deg, #C0C0C0 0%, #A9A9A9 100%);
  border: 2px solid #808080;
  border-radius: 50% 50% 0 0;
  box-shadow: 
    inset 1px 1px 0 #D3D3D3,
    inset -1px -1px 0 #696969;
}

.closet .shirt {
  position: absolute;
  top: 23%;
  left: 30%;
  width: 15%;
  height: 25%;
  background: 
    linear-gradient(180deg, #4169E1 0%, #0000CD 100%);
  border: 1px solid #000080;
  border-radius: 3px;
  box-shadow: 
    inset 1px 1px 0 #6495ED,
    inset -1px -1px 0 #000080;
  animation: clothes-sway 6s ease-in-out infinite;
}

.closet .pants {
  position: absolute;
  top: 48%;
  left: 55%;
  width: 12%;
  height: 30%;
  background: 
    linear-gradient(180deg, #2F4F4F 0%, #000000 100%);
  border: 1px solid #000000;
  border-radius: 2px;
  box-shadow: 
    inset 1px 1px 0 #696969,
    inset -1px -1px 0 #000000;
  animation: clothes-sway 6s ease-in-out infinite 3s;
}

@keyframes door-sway {
  0%, 100% { 
    transform: translateX(0px) rotateY(0deg);
  }
  50% { 
    transform: translateX(-1px) rotateY(2deg);
  }
}

@keyframes clothes-sway {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  50% { 
    transform: translateY(-1px) rotate(1deg);
  }
}

.closet .furniture-sprite {
  font-size: 0;
  margin-bottom: 10px;
}

.closet .furniture-label {
  font-size: 11px;
  font-weight: bold;
  color: #2A2A2A;
  text-shadow: 2px 2px 0 #FFFFFF;
  background: rgba(152, 251, 152, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
  border: 2px solid #32CD32;
  box-shadow: 
    inset 1px 1px 0 #FFFFFF,
    inset -1px -1px 0 #32CD32;
}

@keyframes closet-sway {
  0%, 100% { 
    transform: translateY(0px) rotateY(0deg);
    box-shadow: 
      inset 4px 4px 0 #FFFFFF,
      inset -4px -4px 0 #32CD32,
      8px 8px 20px rgba(50, 205, 50, 0.3);
  }
  50% { 
    transform: translateY(-1px) rotateY(1deg);
    box-shadow: 
      inset 4px 4px 0 #FFFFFF,
      inset -4px -4px 0 #32CD32,
      10px 10px 25px rgba(50, 205, 50, 0.4);
  }
}

/* Realistic Music CD Player Design */
.music-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  animation: furniture-idle 6s ease-in-out infinite;
}

/* CD Player Main Body */
.music-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: 
    linear-gradient(180deg, #2A2A2A 0%, #1A1A1A 50%, #2A2A2A 100%);
  border: 4px solid #000000;
  border-radius: 8px;
  box-shadow: 
    inset 3px 3px 0 #4A4A4A,
    inset -3px -3px 0 #1A1A1A,
    0 0 0 2px #696969;
}

/* CD Player Base */
.music-player::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: 
    linear-gradient(180deg, #1A1A1A 0%, #000000 100%);
  border: 3px solid #000000;
  border-radius: 0 0 8px 8px;
  box-shadow: 
    inset 2px 2px 0 #2A2A2A,
    inset -2px -2px 0 #000000;
}

/* CD Tray */
.music-player .cd-tray {
  position: absolute;
  top: 15%;
  left: 10%;
  right: 10%;
  height: 25%;
  background: 
    linear-gradient(180deg, #4A4A4A 0%, #2A2A2A 100%);
  border: 2px solid #000000;
  border-radius: 4px;
  box-shadow: 
    inset 2px 2px 0 #696969,
    inset -2px -2px 0 #1A1A1A;
}

/* CD Disc */
.music-player .cd-disc {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 15%;
  background: 
    radial-gradient(circle, #C0C0C0 0%, #A9A9A9 30%, #808080 70%, #2A2A2A 100%);
  border: 2px solid #000000;
  border-radius: 50%;
  box-shadow: 
    inset 2px 2px 0 #E0E0E0,
    inset -2px -2px 0 #696969;
  animation: cd-spin 12s linear infinite;
}

/* CD Center Hole */
.music-player .cd-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: 20%;
  background: #000000;
  border: 1px solid #2A2A2A;
  border-radius: 50%;
  box-shadow: 
    inset 1px 1px 0 #4A4A4A,
    inset -1px -1px 0 #000000;
}

/* Volume Knob */
.music-player .volume-knob {
  position: absolute;
  top: 45%;
  left: 15%;
  width: 12%;
  height: 12%;
  background: 
    radial-gradient(circle, #C0C0C0 0%, #A9A9A9 100%);
  border: 2px solid #808080;
  border-radius: 50%;
  box-shadow: 
    inset 2px 2px 0 #E0E0E0,
    inset -2px -2px 0 #696969,
    0 0 5px rgba(192, 192, 192, 0.3);
  animation: knob-turn 4s ease-in-out infinite;
}

/* Play Button */
.music-player .play-button {
  position: absolute;
  top: 45%;
  right: 15%;
  width: 12%;
  height: 12%;
  background: 
    linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: 2px solid #FF8C00;
  border-radius: 50%;
  box-shadow: 
    inset 2px 2px 0 #FFFF00,
    inset -2px -2px 0 #FF8C00;
  animation: button-pulse 4s ease-in-out infinite;
}

/* Play Button Triangle */
.music-player .play-triangle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 4px solid #000000;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

/* Speaker Grilles */
.music-player .speaker-left {
  position: absolute;
  top: 65%;
  left: 20%;
  width: 25%;
  height: 15%;
  background: 
    linear-gradient(90deg, #2A2A2A 0%, #1A1A1A 50%, #2A2A2A 100%);
  border: 2px solid #000000;
  border-radius: 3px;
  box-shadow: 
    inset 1px 1px 0 #4A4A4A,
    inset -1px -1px 0 #1A1A1A;
}

.music-player .speaker-right {
  position: absolute;
  top: 65%;
  right: 20%;
  width: 25%;
  height: 15%;
  background: 
    linear-gradient(90deg, #2A2A2A 0%, #1A1A1A 50%, #2A2A2A 100%);
  border: 2px solid #000000;
  border-radius: 3px;
  box-shadow: 
    inset 1px 1px 0 #4A4A4A,
    inset -1px -1px 0 #1A1A1A;
}

/* Speaker Holes */
.music-player .speaker-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 2px,
      #000000 2px,
      #000000 3px
    ),
    repeating-linear-gradient(
    90deg,
      transparent 0px,
      transparent 2px,
      #000000 2px,
      #000000 3px
    );
}

/* LED Display */
.music-player .led-display {
  position: absolute;
  top: 5%;
  left: 15%;
  right: 15%;
  height: 8%;
  background: 
    linear-gradient(180deg, #003300 0%, #001100 100%);
  border: 2px solid #000000;
  border-radius: 2px;
  box-shadow: 
    inset 1px 1px 0 #006600,
    inset -1px -1px 0 #000000;
}

.music-player .led-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: #00FF00;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px #00FF00;
  animation: led-flicker 2s ease-in-out infinite;
}

@keyframes cd-spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes knob-turn {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

@keyframes button-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      inset 2px 2px 0 #FFFF00,
      inset -2px -2px 0 #FF8C00;
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 
      inset 2px 2px 0 #FFFF00,
      inset -2px -2px 0 #FF8C00;
  }
}

@keyframes led-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.music-player .furniture-sprite {
  font-size: 0;
  margin-bottom: 10px;
}

.music-player .furniture-label {
  font-size: 11px;
  font-weight: bold;
  color: #2A2A2A;
  text-shadow: 2px 2px 0 #FFFFFF;
  background: rgba(221, 160, 221, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
  border: 2px solid #BA55D3;
  box-shadow: 
    inset 1px 1px 0 #FFFFFF,
    inset -1px -1px 0 #BA55D3;
}


/* Character - Fat Cat */
.character {
  position: relative;
  width: 32px;
  height: 36px;
  z-index: 100;
  transition: all 0.2s ease;
  grid-column: 10;
  grid-row: 7;
}

.character-sprite {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  animation: cat-idle 4s ease-in-out infinite;
}

/* Cat Head */
.character .head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 14px;
  background: 
    linear-gradient(135deg, #FFB6C1 0%, #FFA0B4 100%);
  border: 2px solid #FF69B4;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 
    inset 2px 2px 0 #FFC0CB,
    inset -2px -2px 0 #FF69B4,
    0 0 0 1px #2A2A2A;
}

/* Cat Ears */
.character .ear-left {
  position: absolute;
  top: -2px;
  left: 2px;
  width: 6px;
  height: 8px;
  background: 
    linear-gradient(135deg, #FFB6C1 0%, #FFA0B4 100%);
  border: 2px solid #FF69B4;
  border-radius: 50% 50% 0 0;
  transform: rotate(-15deg);
  box-shadow: 
    inset 1px 1px 0 #FFC0CB,
    inset -1px -1px 0 #FF69B4;
}

.character .ear-right {
  position: absolute;
  top: -2px;
  right: 2px;
  width: 6px;
  height: 8px;
  background: 
    linear-gradient(135deg, #FFB6C1 0%, #FFA0B4 100%);
  border: 2px solid #FF69B4;
  border-radius: 50% 50% 0 0;
  transform: rotate(15deg);
  box-shadow: 
    inset 1px 1px 0 #FFC0CB,
    inset -1px -1px 0 #FF69B4;
}

/* Cat Inner Ears */
.character .inner-ear-left {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 4px;
  background: #FF1493;
  border-radius: 50%;
}

.character .inner-ear-right {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 4px;
  background: #FF1493;
  border-radius: 50%;
}

/* Cat Eyes */
.character .eye-left {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 3px;
  height: 4px;
  background: #00FF00;
  border: 1px solid #000000;
  border-radius: 50%;
  animation: cat-blink 6s ease-in-out infinite;
}

.character .eye-right {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 3px;
  height: 4px;
  background: #00FF00;
  border: 1px solid #000000;
  border-radius: 50%;
  animation: cat-blink 6s ease-in-out infinite;
}

/* Cat Nose */
.character .nose {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2px;
  background: #FF1493;
  border-radius: 50%;
}

/* Cat Mouth */
.character .mouth {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 2px;
  border-bottom: 1px solid #000000;
  border-radius: 0 0 50% 50%;
}

/* Cat Whiskers */
.character .whisker-left-1 {
  position: absolute;
  top: 6px;
  left: -2px;
  width: 6px;
  height: 1px;
  background: #000000;
  border-radius: 1px;
}

.character .whisker-left-2 {
  position: absolute;
  top: 8px;
  left: -2px;
  width: 6px;
  height: 1px;
  background: #000000;
  border-radius: 1px;
}

.character .whisker-right-1 {
  position: absolute;
  top: 6px;
  right: -2px;
  width: 6px;
  height: 1px;
  background: #000000;
  border-radius: 1px;
}

.character .whisker-right-2 {
  position: absolute;
  top: 8px;
  right: -2px;
  width: 6px;
  height: 1px;
  background: #000000;
  border-radius: 1px;
}

/* Cat Body (Fat) */
.character .body {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 18px;
  background: 
    linear-gradient(180deg, #FFB6C1 0%, #FFA0B4 100%);
  border: 2px solid #FF69B4;
  border-radius: 50%;
  box-shadow: 
    inset 2px 2px 0 #FFC0CB,
    inset -2px -2px 0 #FF69B4,
    0 0 0 1px #2A2A2A;
}

/* Cat Belly */
.character .belly {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: 
    linear-gradient(180deg, #FFFFFF 0%, #F0F8FF 100%);
  border: 1px solid #E6E6FA;
  border-radius: 50%;
  box-shadow: 
    inset 1px 1px 0 #FFFFFF,
    inset -1px -1px 0 #E6E6FA;
}

/* Cat Tail */
.character .tail {
  position: absolute;
  top: 18px;
  right: -8px;
  width: 8px;
  height: 12px;
  background: 
    linear-gradient(180deg, #FFB6C1 0%, #FFA0B4 100%);
  border: 2px solid #FF69B4;
  border-radius: 50%;
  transform: rotate(15deg);
  box-shadow: 
    inset 1px 1px 0 #FFC0CB,
    inset -1px -1px 0 #FF69B4;
  animation: tail-wag 3s ease-in-out infinite;
}

/* Cat Paws */
.character .paw-left {
  position: absolute;
  bottom: 0;
  left: 4px;
  width: 8px;
  height: 6px;
  background: 
    linear-gradient(180deg, #FFB6C1 0%, #FFA0B4 100%);
  border: 1px solid #FF69B4;
  border-radius: 50%;
  box-shadow: 
    inset 1px 1px 0 #FFC0CB,
    inset -1px -1px 0 #FF69B4;
}

.character .paw-right {
  position: absolute;
  bottom: 0;
  right: 4px;
  width: 8px;
  height: 6px;
  background: 
    linear-gradient(180deg, #FFB6C1 0%, #FFA0B4 100%);
  border: 1px solid #FF69B4;
  border-radius: 50%;
  box-shadow: 
    inset 1px 1px 0 #FFC0CB,
    inset -1px -1px 0 #FF69B4;
}

@keyframes cat-idle {
  0%, 100% { 
    transform: translateY(0px);
  }
  50% { 
    transform: translateY(-3px);
  }
}

@keyframes cat-blink {
  0%, 95%, 100% { 
    height: 4px;
  }
  96%, 99% { 
    height: 1px;
  }
}

@keyframes tail-wag {
  0%, 100% { 
    transform: rotate(15deg);
  }
  50% { 
    transform: rotate(25deg);
  }
}

/* Dirty Clothes Piles */
.clothes-pile {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.clothes-item {
  position: absolute;
  border-radius: 2px;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 1px 1px 0 rgba(255,255,255,0.2);
  animation: clothes-dropped 0.5s ease-out;
}

/* Pile 1 - Blue/White Mix */
.pile-1 .shirt-1 {
  top: 0;
  left: 0;
  width: 16px;
  height: 12px;
  background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
  border: 1px solid #0000CD;
  transform: rotate(-15deg);
}

.pile-1 .pants-1 {
  top: 8px;
  left: 4px;
  width: 12px;
  height: 16px;
  background: linear-gradient(135deg, #2F4F4F 0%, #000000 100%);
  border: 1px solid #000000;
  transform: rotate(20deg);
}

.pile-1 .sock-1 {
  top: 6px;
  left: 12px;
  width: 6px;
  height: 8px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F0F0 100%);
  border: 1px solid #CCCCCC;
  transform: rotate(-30deg);
}

.pile-1 .sock-2 {
  top: 2px;
  left: 14px;
  width: 6px;
  height: 8px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: 1px solid #FF8C00;
  transform: rotate(45deg);
}

/* Pile 2 - Hoodie and Jeans */
.pile-2 .hoodie-1 {
  top: 0;
  left: 0;
  width: 18px;
  height: 14px;
  background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
  border: 1px solid #2A2A2A;
  transform: rotate(-25deg);
}

.pile-2 .jeans-1 {
  top: 10px;
  left: 2px;
  width: 14px;
  height: 18px;
  background: linear-gradient(135deg, #000080 0%, #0000CD 100%);
  border: 1px solid #000080;
  transform: rotate(15deg);
}

.pile-2 .underwear-1 {
  top: 4px;
  left: 12px;
  width: 8px;
  height: 6px;
  background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
  border: 1px solid #DC143C;
  transform: rotate(-45deg);
}

/* Pile 3 - Casual Clothes */
.pile-3 .tshirt-1 {
  top: 0;
  left: 0;
  width: 16px;
  height: 12px;
  background: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
  border: 1px solid #DC143C;
  transform: rotate(30deg);
}

.pile-3 .shorts-1 {
  top: 8px;
  left: 4px;
  width: 12px;
  height: 10px;
  background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
  border: 1px solid #006400;
  transform: rotate(-20deg);
}

.pile-3 .sock-3 {
  top: 6px;
  left: 12px;
  width: 6px;
  height: 8px;
  background: linear-gradient(135deg, #9370DB 0%, #8A2BE2 100%);
  border: 1px solid #4B0082;
  transform: rotate(60deg);
}

/* Pile 4 - Sweater and Socks */
.pile-4 .sweater-1 {
  top: 0;
  left: 0;
  width: 18px;
  height: 16px;
  background: linear-gradient(135deg, #DDA0DD 0%, #BA55D3 100%);
  border: 1px solid #9370DB;
  transform: rotate(-10deg);
}

.pile-4 .sock-4 {
  top: 8px;
  left: 8px;
  width: 6px;
  height: 8px;
  background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
  border: 1px solid #008B8B;
  transform: rotate(25deg);
}

.pile-4 .sock-5 {
  top: 4px;
  left: 12px;
  width: 6px;
  height: 8px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: 1px solid #FF8C00;
  transform: rotate(-35deg);
}

/* Single Scattered Items */
.single-shirt {
  width: 14px;
  height: 10px;
  background: linear-gradient(135deg, #FF1493 0%, #DC143C 100%);
  border: 1px solid #B22222;
  transform: rotate(45deg);
}

.single-pants {
  width: 10px;
  height: 14px;
  background: linear-gradient(135deg, #696969 0%, #2F4F4F 100%);
  border: 1px solid #000000;
  transform: rotate(-20deg);
}

.single-sock {
  width: 5px;
  height: 7px;
  background: linear-gradient(135deg, #FFB6C1 0%, #FFA0B4 100%);
  border: 1px solid #FF69B4;
  transform: rotate(70deg);
}

.single-hat {
  width: 12px;
  height: 8px;
  background: linear-gradient(135deg, #000000 0%, #2F2F2F 100%);
  border: 1px solid #000000;
  border-radius: 50% 50% 0 0;
  transform: rotate(-15deg);
}

@keyframes clothes-dropped {
  0% {
    opacity: 0;
    transform: translateY(-10px) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* Proximity Indicator */
.proximity-indicator {
  background: rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  border: 2px solid #4A90E2;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: proximity-pulse 1.5s ease-in-out infinite;
  text-align: center;
  white-space: nowrap;
}

.space-key {
  background: #4A90E2;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  border: 1px solid #2E5BBA;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

@keyframes proximity-pulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Click Hint Styling */
.click-hint {
  color: #4A90E2;
  font-size: 11px;
  font-style: italic;
  opacity: 0.8;
}

@keyframes character-idle {
  0%, 100% { 
    transform: translateY(0px);
    box-shadow: 
      0 0 0 1px #FFFFFF,
      0 0 0 2px #2A2A2A,
      4px 4px 0 rgba(0,0,0,0.3);
  }
  50% { 
    transform: translateY(-4px);
    box-shadow: 
      0 0 0 1px #FFFFFF,
      0 0 0 2px #2A2A2A,
      6px 6px 0 rgba(0,0,0,0.4);
  }
}

/* Interactive Zones */
.interactive-zone {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 50;
  border: 3px solid transparent;
  border-radius: 12px;
}

.interactive-zone:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #4A90E2;
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.interactive-zone:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.4);
}

/* Room Decorations */
.room-decoration {
  position: absolute;
  font-size: 28px;
  opacity: 0.9;
  filter: contrast(1.1) saturate(1.2);
  z-index: 5;
  animation: decoration-float 6s ease-in-out infinite;
}

.window {
  animation: window-light 8s ease-in-out infinite;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3));
}

.lamp {
  animation: lamp-flicker 4s ease-in-out infinite;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3));
}

.plant {
  animation: plant-sway 7s ease-in-out infinite;
}

.books {
  animation: books-stack 5s ease-in-out infinite;
}

.door {
  animation: door-creak 10s ease-in-out infinite;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3));
}

@keyframes decoration-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes window-light {
  0%, 100% { 
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3)) brightness(1);
  }
  50% { 
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3)) brightness(1.2);
  }
}

@keyframes lamp-flicker {
  0%, 100% { 
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3)) brightness(1);
  }
  25% { 
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3)) brightness(1.1);
  }
  50% { 
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3)) brightness(0.9);
  }
  75% { 
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3)) brightness(1.05);
  }
}

@keyframes plant-sway {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes books-stack {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

@keyframes door-creak {
  0%, 100% { transform: translateX(0px) rotateY(0deg); }
  50% { transform: translateX(-1px) rotateY(1deg); }
}

/* Modal System - Enhanced */
.modal-overlay {
    position: fixed;
  top: 0;
    left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
  animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #F0F0F0;
  border: 4px solid #2A2A2A;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 
    inset 3px 3px 0 #FFFFFF, 
    inset -3px -3px 0 #8B8B8B,
    0 0 0 2px #2A2A2A,
    0 0 30px rgba(0,0,0,0.5);
  animation: modal-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 3px solid #8B8B8B;
  background: linear-gradient(180deg, #F8F8F8 0%, #E8E8E8 100%);
    display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px 8px 0 0;
}

.modal-header h2 {
  font-size: 20px;
  color: #2A2A2A;
  margin: 0;
  text-shadow: 2px 2px 0 #FFFFFF;
  font-weight: bold;
}

.modal-close {
  background: #F0F0F0;
  border: 3px solid #2A2A2A;
  border-radius: 6px;
  font-size: 18px;
  color: #2A2A2A;
  cursor: pointer;
  padding: 6px 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #8B8B8B;
  font-family: 'Courier New', monospace;
}

.modal-close:hover {
  background: #E0E0E0;
  transform: translateY(1px) scale(0.95);
  box-shadow: inset 2px 2px 0 #8B8B8B, inset -2px -2px 0 #2A2A2A;
}

.modal-body {
  padding: 25px;
  background: #F8F8F8;
  border-radius: 0 0 8px 8px;
}

/* Modal Content Styles */
.info-section {
  margin-bottom: 25px;
  background: #FFFFFF;
  border: 3px solid #8B8B8B;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 
    inset 2px 2px 0 #FFFFFF, 
    inset -2px -2px 0 #8B8B8B,
    0 0 10px rgba(0,0,0,0.1);
  animation: info-section-appear 0.5s ease;
}

@keyframes info-section-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-section h3 {
  font-size: 16px;
  color: #2A2A2A;
  margin-bottom: 12px;
  border-bottom: 3px solid #4A90E2;
  padding-bottom: 6px;
  text-shadow: 1px 1px 0 #FFFFFF;
  font-weight: bold;
}

.info-section p {
  color: #4A4A4A;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 13px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.skill-tag {
  background: #E0E0E0;
  border: 3px solid #8B8B8B;
  padding: 8px 10px;
  border-radius: 6px;
    text-align: center;
  font-size: 11px;
  color: #2A2A2A;
  transition: all 0.2s ease;
  box-shadow: inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #8B8B8B;
  font-weight: bold;
  animation: skill-tag-appear 0.6s ease;
}

@keyframes skill-tag-appear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.skill-tag:hover {
  background: #4A90E2;
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    inset 2px 2px 0 #6BA6F0, 
    inset -2px -2px 0 #2A5A8A,
    0 0 15px rgba(74, 144, 226, 0.4);
}

.experience-item {
  background: #FFFFFF;
  border: 3px solid #8B8B8B;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 5px solid #4A90E2;
  box-shadow: 
    inset 2px 2px 0 #FFFFFF, 
    inset -2px -2px 0 #8B8B8B,
    0 0 8px rgba(0,0,0,0.1);
  animation: experience-item-appear 0.7s ease;
}

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

.experience-item h4 {
  color: #2A2A2A;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: bold;
}

.experience-item .company {
  color: #4A90E2;
  font-weight: bold;
  font-size: 11px;
}

.experience-item .duration {
  color: #8B8B8B;
  font-size: 10px;
}

.experience-item p {
  color: #4A4A4A;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-hud {
    padding: 0 10px;
    height: 80px;
  }
  
  .hud-center .instructions {
    display: none;
  }
  
  .player-name {
    font-size: 12px;
  }
  
  .player-title {
    font-size: 9px;
  }
  
  .character-sprite {
    font-size: 12px;
  }
  
  .character {
    width: 28px;
    height: 28px;
  }
  
  .modal-content {
    width: 95%;
    margin: 15px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .pokemon-room {
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(12, 1fr);
  }
}

/* Enhanced Scrollbars */
.modal-content::-webkit-scrollbar {
  width: 14px;
}

.modal-content::-webkit-scrollbar-track {
  background: #8B8B8B;
  border: 3px solid #2A2A2A;
  border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #4A4A4A;
  border: 3px solid #2A2A2A;
  border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #6A6A6A;
}

/* Copyright Text in Room */
.copyright-text {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #4A4A4A;
  border-radius: 8px;
  padding: 8px 12px;
    text-align: center;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.copyright-text p {
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

/* Songs of the Week Section */
.hud-left-center {
  position: absolute;
  top: 50%; /* Match the vertical position of controls */
  left: 35%; /* Position between Steven Lin (left) and center controls */
  transform: translate(-50%, -50%); /* Center both horizontally and vertically */
  z-index: 1000;
}

.songs-of-week {
  background: rgba(255, 255, 255, 0.9); /* Match controls background */
  border: 2px solid #4A4A4A; /* Match controls border */
  border-radius: 8px;
  padding: 10px;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.songs-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4A4A4A; /* Match controls text color */
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}

.songs-title i {
  font-size: 11px;
  color: #4A90E2; /* Keep music icon blue */
  animation: music-pulse 2s ease-in-out infinite;
}

/* Current Song Display */
.current-song {
  font-size: 11px;
  color: #4A4A4A; /* Match controls text color */
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

.current-song span {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

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

/* Spotify Player Styles */
.spotify-player {
  background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
  border: 3px solid #2A2A2A;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.track-info {
  margin-bottom: 12px;
}

.track-name {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.artist-name {
  font-size: 14px;
  color: #E0E0E0;
  font-weight: 400;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.control-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.play-btn {
  width: 50px;
  height: 50px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.3);
}

.progress-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
  margin: 12px 0;
  overflow: hidden;
}

.progress {
  background: #FFFFFF;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.1s ease;
}

.volume-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.volume-control span {
  font-size: 14px;
  color: #FFFFFF;
}

.volume-control input[type="range"] {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}