/* Tomodachi Life - Immersive Stylesheet */
/* ============================================================ */

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

html, body {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a1a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Screen System */
.screen {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.screen.active { display: flex; }

/* ===== BOOT SCREEN ===== */
#boot-screen {
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 100%);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Animated stars */
#boot-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #fff, transparent);
  background-size: 200px 100px;
  animation: starFloat 4s linear infinite;
  opacity: 0.6;
}
@keyframes starFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.boot-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.boot-logo {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  background: radial-gradient(circle, #fff 0%, #667eea 40%, #764ba2 100%);
  border-radius: 50%;
  animation: bootPulse 2s ease-in-out infinite;
  box-shadow:
    0 0 30px rgba(102,126,234,0.5),
    0 0 60px rgba(102,126,234,0.3),
    0 0 100px rgba(102,126,234,0.1);
}

@keyframes bootPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(102,126,234,0.5), 0 0 60px rgba(102,126,234,0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(102,126,234,0.7), 0 0 100px rgba(102,126,234,0.4); }
}

.boot-text {
  color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  text-shadow:
    0 0 10px rgba(255,255,255,0.5),
    0 0 20px rgba(102,126,234,0.5),
    0 0 40px rgba(102,126,234,0.3);
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(102,126,234,0.5); }
  50% { text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(102,126,234,0.6), 0 0 60px rgba(102,126,234,0.3); }
}

/* ===== MAIN MENU ===== */
#main-menu {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  position: relative;
  background: linear-gradient(180deg, #4A90D9 0%, #87CEEB 30%, #B0E0E6 60%, #98D8C8 80%, #7CB5A2 100%);
}

/* Atmospheric layers */
#main-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

/* Floating clouds */
#main-menu::after {
  content: '';
  position: absolute;
  top: 10%;
  left: -100px;
  width: 300px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  filter: blur(20px);
  animation: cloudDrift 30s linear infinite;
}
@keyframes cloudDrift {
  from { transform: translateX(-300px); }
  to { transform: translateX(calc(100vw + 300px)); }
}

/* Sun glow */
.menu-background {
  position: absolute;
  top: 5%;
  right: 15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,200,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: sunPulse 5s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.menu-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
}

.menu-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #fff;
  text-align: center;
  text-shadow:
    2px 2px 4px rgba(0,0,0,0.3),
    0 0 20px rgba(255,255,255,0.2);
  margin: 15px 0;
  letter-spacing: 2px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* Mii display on menu */
.menu-mii-display {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(240,240,255,0.9) 100%);
  border-radius: 50%;
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 20px rgba(255,255,255,0.3),
    0 4px 15px rgba(0,0,0,0.2),
    inset 0 0 30px rgba(102,126,234,0.1);
  border: 3px solid rgba(255,255,255,0.5);
  animation: miiFloat 4s ease-in-out infinite;
  position: relative;
}

.menu-mii-display::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2, #FF6B6B, #4ECDC4, #667eea);
  background-size: 300% 300%;
  animation: borderSpin 6s linear infinite;
  z-index: -1;
  opacity: 0.6;
}

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

@keyframes borderSpin {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Stats */
.menu-stats {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
  padding: 10px 22px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.25) 100%);
}

.stat-label {
  display: block;
  font-size: 0.75em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-value {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Menu buttons */
.menu-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
}

.menu-btn {
  padding: 18px 15px;
  font-size: 1.05em;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.menu-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.menu-btn:nth-child(1) { background: linear-gradient(135deg, rgba(255,107,107,0.85) 0%, rgba(238,90,36,0.85) 100%); }
.menu-btn:nth-child(2) { background: linear-gradient(135deg, rgba(78,205,196,0.85) 0%, rgba(46,204,113,0.85) 100%); }
.menu-btn:nth-child(3) { background: linear-gradient(135deg, rgba(69,185,209,0.85) 0%, rgba(41,128,185,0.85) 100%); }
.menu-btn:nth-child(4) { background: linear-gradient(135deg, rgba(243,156,18,0.85) 0%, rgba(230,126,34,0.85) 100%); }
.menu-btn:nth-child(5) { background: linear-gradient(135deg, rgba(155,89,182,0.85) 0%, rgba(142,68,173,0.85) 100%); }
.menu-btn:nth-child(6) { background: linear-gradient(135deg, rgba(231,76,60,0.85) 0%, rgba(192,57,43,0.85) 100%); }
.menu-btn:nth-child(7) { background: linear-gradient(135deg, rgba(52,152,219,0.85) 0%, rgba(41,128,185,0.85) 100%); }
.menu-btn:nth-child(8) { background: linear-gradient(135deg, rgba(26,188,156,0.85) 0%, rgba(22,160,133,0.85) 100%); }
.menu-btn:nth-child(9) { background: linear-gradient(135deg, rgba(52,73,94,0.85) 0%, rgba(44,62,80,0.85) 100%); }

.menu-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  filter: brightness(1.15);
}

.menu-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* ===== CREATE MII ===== */
#create-mii {
  background: linear-gradient(180deg, #FFECD2 0%, #FFB6B9 50%, #FF9A9E 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

#create-mii::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.3) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 10%, rgba(255,182,185,0.2) 0%, transparent 30%);
  pointer-events: none;
}

.create-mii-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
  border-radius: 24px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.5),
    inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
}

.screen-title {
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
  position: relative;
}

.screen-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.step { display: none; }
.step.active { display: block; }

.step-prompt {
  font-size: 1.3em;
  text-align: center;
  margin-bottom: 20px;
  color: #555;
  font-weight: 500;
}

.step-content input[type="text"] {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.2em;
  border: 2px solid rgba(102,126,234,0.3);
  border-radius: 12px;
  text-align: center;
  background: rgba(255,255,255,0.8);
  color: #333;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.step-content input[type="text"]:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.2), inset 0 2px 4px rgba(0,0,0,0.05);
  background: #fff;
}

.gender-options {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.gender-btn {
  padding: 30px 50px;
  font-size: 1.5em;
  border: 3px solid rgba(102,126,234,0.3);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,245,250,0.9) 100%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #333;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gender-btn:hover {
  border-color: #667eea;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102,126,234,0.3);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  gap: 10px;
}

.step-actions button {
  padding: 12px 30px;
  font-size: 1em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-prev, .btn-cancel {
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  color: #555;
}

.btn-prev:hover, .btn-cancel:hover {
  background: linear-gradient(135deg, #d0d0d0 0%, #c0c0c0 100%);
  transform: translateY(-1px);
}

.btn-next {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.5);
}

.btn-next:active {
  transform: translateY(0);
}

.btn-cancel {
  background: #ddd;
  color: #333;
}

.btn-test {
  padding: 10px 25px;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(255,107,107,0.3);
  transition: all 0.3s ease;
}

.btn-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.voice-slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

.voice-slider-container input[type="range"] {
  flex: 1;
  max-width: 300px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4ECDC4, #667eea);
  outline: none;
  -webkit-appearance: none;
}

.voice-slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 12px rgba(102,126,234,0.4);
}

/* ===== APARTMENTS ===== */
#apartments {
  background: linear-gradient(180deg, #D4E6F1 0%, #AED6F1 40%, #85C1E9 70%, #7CB5A2 100%);
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

#apartments::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.apartments-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.apartment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.apartment-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,255,0.9) 100%);
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}

.apartment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.apartment-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.apt-number {
  font-size: 2em;
  font-weight: bold;
  color: #667eea;
  text-shadow: 0 1px 2px rgba(102,126,234,0.3);
}

.apt-type {
  color: #666;
  margin: 5px 0;
  font-size: 0.9em;
}

.apt-residents {
  color: #333;
  font-weight: bold;
  margin-top: 8px;
}

.cleanliness-bar {
  height: 8px;
  background: linear-gradient(90deg, #4ECDC4, #44B09E);
  border-radius: 4px;
  margin-top: 10px;
  transition: width 0.3s;
  box-shadow: 0 1px 3px rgba(78,205,196,0.3);
}

/* ===== APARTMENT VIEW ===== */
#apartment-view {
  background: linear-gradient(180deg, #F0E6D3 0%, #E8D5C0 100%);
  flex-direction: column;
  padding: 20px;
}

.apartment-container {
  width: 100%;
  max-width: 800px;
}

.apartment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.btn-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: rgba(255,255,255,0.2);
}

.apartment-scene {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.room {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.5);
}

.room-name {
  font-weight: bold;
  margin-bottom: 12px;
  color: #667eea;
  font-size: 1.1em;
  text-shadow: 0 1px 2px rgba(102,126,234,0.2);
}

.room-grid {
  display: grid;
  gap: 8px;
}

.furniture-item {
  background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.furniture-item:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.apartment-interactions {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.05);
}

.resident {
  padding: 10px 18px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  border-radius: 10px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.resident:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateX(3px);
}

.apt-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(102,126,234,0.3);
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

/* ===== ISLAND ===== */
#island {
  background: linear-gradient(180deg, #4A90D9 0%, #87CEEB 40%, #2ECC71 70%, #27AE60 100%);
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

#island::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(255,255,200,0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 30%);
  pointer-events: none;
}

.island-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.island-map {
  margin: 20px 0;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.zone-tile {
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.zone-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.zone-tile:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 2;
}

.zone-tile.unexplored {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.zone-beach { background: linear-gradient(135deg, #F4D03F, #F0B429); }
.zone-forest { background: linear-gradient(135deg, #27AE60, #229954); }
.mountaintop { background: linear-gradient(135deg, #8E44AD, #7D3C98); }
.zone-swamp { background: linear-gradient(135deg, #1E8449, #196F3D); }
.zone-volcano { background: linear-gradient(135deg, #C0392B, #A93226); }
.zone-sky { background: linear-gradient(135deg, #2E86C1, #2471A3); }
.zone-cave { background: linear-gradient(135deg, #5D6D7E, #4A6274); }
.zone-spring { background: linear-gradient(135deg, #1ABC9C, #17A589); }

.zone-name {
  font-weight: bold;
  font-size: 0.9em;
}

.zone-explored {
  font-size: 1.5em;
  margin-top: 5px;
}

.island-info {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(250,250,250,0.85) 100%);
  padding: 15px;
  border-radius: 16px;
  margin: 15px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #333;
}

/* ===== RESTAURANT ===== */
#restaurant {
  background: linear-gradient(180deg, #FFECD2 0%, #F5B041 50%, #E67E22 100%);
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

#restaurant::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.restaurant-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.menu-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.food-name { font-weight: bold; color: #333; }
.food-price { color: #E67E22; font-weight: bold; }
.food-diff { color: #F39C12; font-size: 0.85em; }

/* ===== HOTEL ===== */
#hotel {
  background: linear-gradient(180deg, #D5D8DC 0%, #828282 100%);
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

#hotel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hotel-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hotel-list {
  margin: 20px 0;
}

.hotel-room {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.hotel-room:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hotel-room.occupied { border-left: 4px solid #E74C3C; }
.hotel-room.available { border-left: 4px solid #2ECC71; }

/* ===== CONCERT ===== */
#concert {
  background: linear-gradient(180deg, #0c0c1d 0%, #1a1a3e 40%, #2C3E50 100%);
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  color: #fff;
  overflow-y: auto;
}

/* Stage lights */
#concert::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,100,100,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 0%, rgba(100,100,255,0.2) 0%, transparent 50%);
  animation: concertLights 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes concertLights {
  0% { background: radial-gradient(ellipse at 30% 0%, rgba(255,100,100,0.2) 0%, transparent 50%), radial-gradient(ellipse at 70% 0%, rgba(100,100,255,0.2) 0%, transparent 50%); }
  100% { background: radial-gradient(ellipse at 70% 0%, rgba(100,255,100,0.2) 0%, transparent 50%), radial-gradient(ellipse at 30% 0%, rgba(255,100,255,0.2) 0%, transparent 50%); }
}

.concert-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.concert-stage {
  margin: 20px 0;
}

.concert-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.concert-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
  transform: translateX(3px);
}

/* ===== LIBRARY ===== */
#library {
  background: linear-gradient(180deg, #F4D03F 0%, #F0B429 50%, #E67E22 100%);
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

#library::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.library-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.library-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.library-book {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.library-book:hover {
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== NEWS ===== */
#news {
  background: linear-gradient(180deg, #ECF0F1 0%, #BDC3C7 100%);
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

#news::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 10%, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.news-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.news-list {
  margin: 20px 0;
}

.news-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-item.read { opacity: 0.7; }

.news-icon {
  font-size: 2em;
  min-width: 50px;
  text-align: center;
}

.news-content { flex: 1; }

.news-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.news-body {
  color: #555;
  margin-bottom: 5px;
  font-size: 0.95em;
}

.news-meta {
  font-size: 0.8em;
  color: #999;
}

/* ===== SETTINGS ===== */
#settings {
  background: linear-gradient(180deg, #0c0c1d 0%, #1a1a2e 50%, #2C3E50 100%);
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: #fff;
  overflow-y: auto;
  position: relative;
}

#settings::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 70% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.5), transparent);
  animation: starFloat 6s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

.settings-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.settings-list {
  margin: 20px 0;
}

.settings-btn {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  font-weight: 600;
}

.settings-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

/* ===== MODAL SYSTEM ===== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal.active { display: flex; }

.modal-content {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-radius: 24px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  animation: modalSlideIn 0.3s ease-out;
}

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

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

.happening-body, .choice-body {
  margin-bottom: 20px;
}

.happening-actions, .choice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(102,126,234,0.3);
}

.choice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.story-mii-info {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333;
}

.story-lines {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.story-line {
  margin-bottom: 10px;
  padding: 10px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ===== NOTIFICATION ===== */
.notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #333 0%, #222 100%);
  color: #fff;
  padding: 15px 30px;
  border-radius: 25px;
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.notification.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== SAVE OVERLAY ===== */
#save-overlay {
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.save-overlay-content {
  text-align: center;
  color: #fff;
}

.save-icon {
  width: 60px; height: 60px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.save-text {
  font-size: 1.2em;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(102,126,234,0.5);
}

/* ===== MII DETAIL MODAL ===== */
.mii-detail-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 150;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mii-detail-modal.active { display: flex; }

.mii-detail {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-radius: 24px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.mii-stats {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  padding: 15px;
  border-radius: 12px;
  margin: 15px 0;
  border: 1px solid rgba(0,0,0,0.05);
}

.mii-traits {
  margin: 15px 0;
}

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

.trait-bar {
  flex: 1;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.trait-bar div {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.relationship {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  border-radius: 10px;
  margin-bottom: 5px;
  border: 1px solid rgba(0,0,0,0.03);
}

/* ===== EMPTY MESSAGE ===== */
.empty-message {
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.5);
  font-size: 1.2em;
}

/* ===== BACK BUTTON ===== */
.btn-back {
  padding: 12px 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  margin-top: 20px;
}

.btn-back:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
  transform: translateY(-2px);
}

/* ===== APPEARANCE PREVIEW ===== */
.appearance-preview {
  flex: 1;
  display: flex;
  justify-content: center;
  min-height: 200px;
  align-items: center;
}

.appearance-controls {
  flex: 1;
}

.control-group {
  margin-bottom: 15px;
}

.control-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.skin-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
}

.skin-preset-btn {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.skin-preset-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border-color: #667eea;
}

.skin-preset-btn.selected {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.5), 0 4px 15px rgba(0,0,0,0.3);
  transform: scale(1.1);
}

.control-row button {
  padding: 8px 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.control-row button:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(102,126,234,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-options {
    grid-template-columns: 1fr;
  }
  .zone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .appearance-grid {
    flex-direction: column;
  }
  .menu-title {
    font-size: 2em;
  }
  .menu-mii-display {
    width: 150px;
    height: 150px;
  }
  .modal-content {
    padding: 20px;
    width: 95%;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(102,126,234,0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(102,126,234,0.7);
}

/* ===== GLOBAL AMBIENT PARTICLES ===== */
#main-menu, #island, #concert, #news {
  position: relative;
  overflow: hidden;
}

/* ===== MII WORKSHOP ===== */
.workshop-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #E8D5F5 0%, #D4B8E8 50%, #C4A0D8 100%);
}

.workshop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(142,68,173,0.4);
}

.workshop-content {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
}

.workshop-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
}

#workshop-mii-preview {
  width: 250px;
  height: 300px;
}

.workshop-controls {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Preset Grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 15px;
  background: rgba(255,255,255,0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.preset-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
}

.preset-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border-color: #9B59B6;
}

.preset-btn::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  opacity: 0.7;
}

/* Preset colors */
.preset-girl1 {
  background: linear-gradient(135deg, #FDEBD0 0%, #F0D890 100%);
}
.preset-girl2 {
  background: linear-gradient(135deg, #E0AC7D 0%, #DA70D0 100%);
}
.preset-girl3 {
  background: linear-gradient(135deg, #C6864C 0%, #2E8B57 100%);
}
.preset-boy1 {
  background: linear-gradient(135deg, #FDEBD0 0%, #4A3728 100%);
}
.preset-boy2 {
  background: linear-gradient(135deg, #8D5524 0%, #2C1B18 100%);
}
.preset-boy3 {
  background: linear-gradient(135deg, #F5D0B5 0%, #FF6914 100%);
}

/* Controls Grid */
.workshop-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 15px;
  background: rgba(255,255,255,0.25);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.control-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-section label {
  font-weight: bold;
  color: #5D3A8A;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-row .workshop-prev,
.control-row .workshop-next {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  color: #fff;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-row .workshop-prev:hover,
.control-row .workshop-next:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(155,89,182,0.4);
}

.control-row span {
  flex: 1;
  text-align: center;
  font-size: 0.8em;
  color: #5D3A8A;
  font-weight: 600;
}

.color-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Workshop Actions */
.workshop-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-workshop {
  padding: 12px 24px;
  font-size: 0.95em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(155,89,182,0.4);
  transition: all 0.2s ease;
}

.btn-workshop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155,89,182,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-options {
    grid-template-columns: 1fr;
  }
  .zone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .appearance-grid {
    flex-direction: column;
  }
  .menu-title {
    font-size: 2em;
  }
  .menu-btn {
    padding: 15px 12px;
    font-size: 0.95em;
  }
}

@media (max-width: 768px) {
  .workshop-content {
    flex-direction: column;
  }
  .workshop-preview {
    min-width: auto;
    height: 200px;
  }
  #workshop-mii-preview {
    width: 200px;
    height: 200px;
  }
  .preset-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .workshop-controls-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .menu-title { font-size: 1.8em; }
  .stat-item { padding: 8px 15px; }
  .stat-value { font-size: 1.2em; }
  .menu-btn { padding: 15px 12px; font-size: 0.95em; }
  .create-mii-container { padding: 20px; }
  .screen-title { font-size: 1.5em; }
  .workshop-header { font-size: 1.2em; padding: 10px 15px; }
  .preset-grid { padding: 10px; gap: 6px; }
  .workshop-controls { padding: 10px; }
  .btn-workshop { padding: 10px 18px; font-size: 0.85em; }
}
