/* Anime Flappy - Kawaii Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  overflow: hidden;
  background: linear-gradient(180deg, #87CEEB 0%, #FFA5D8 100%);
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Parallax background layers */
.bg-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sky {
  background: linear-gradient(180deg, #87CEEB 0%, #FFB5E8 50%, #FFA5D8 100%);
  z-index: 0;
}

.mountains {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><path fill="%23FF69B4" d="M0,150 L200,50 L400,100 L600,20 L800,80 L1000,40 L1200,100 L1200,300 L0,300 Z" opacity="0.3"/></svg>') repeat-x bottom;
  background-size: 1200px 300px;
  animation: slideLeft 30s linear infinite;
  z-index: 1;
  opacity: 0.6;
}

.clouds {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200"><ellipse cx="100" cy="100" rx="60" ry="40" fill="white" opacity="0.7"/><ellipse cx="150" cy="90" rx="50" ry="35" fill="white" opacity="0.7"/><ellipse cx="400" cy="120" rx="70" ry="45" fill="white" opacity="0.7"/><ellipse cx="450" cy="110" rx="55" ry="38" fill="white" opacity="0.7"/><ellipse cx="700" cy="80" rx="65" ry="42" fill="white" opacity="0.7"/></svg>') repeat-x;
  background-size: 800px 200px;
  animation: slideLeft 60s linear infinite;
  z-index: 2;
  opacity: 0.8;
}

/* Disable animations on mobile for better performance */
@media (max-width: 768px) {
  .mountains, .clouds {
    animation: none;
    background-position: 0 0;
  }

  #gameCanvas {
    animation: none; /* Disable glow animation on mobile */
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.5),
                0 0 20px rgba(255, 255, 255, 0.3) inset;
  }

  .character-avatar {
    animation: none; /* Disable bounce animation on character select */
  }

  .title-kanji {
    animation: none; /* Disable float animation */
  }
}

@keyframes slideLeft {
  from { background-position: 0 0; }
  to { background-position: -1200px 0; }
}

/* Main game container */
.game-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#gameCanvas {
  border: 4px solid #FF69B4;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(255, 105, 180, 0.5),
              0 0 20px rgba(255, 255, 255, 0.3) inset,
              0 0 60px rgba(255, 105, 180, 0.3);
  background: linear-gradient(180deg, #87CEEB 0%, #FFE6F0 100%);
  max-width: 600px;
  max-height: 800px;
  image-rendering: crisp-edges;
  animation: canvasGlow 3s ease-in-out infinite;
}

@keyframes canvasGlow {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.5),
                0 0 20px rgba(255, 255, 255, 0.3) inset,
                0 0 60px rgba(255, 105, 180, 0.3);
  }
  50% {
    box-shadow: 0 10px 50px rgba(255, 105, 180, 0.7),
                0 0 30px rgba(255, 255, 255, 0.5) inset,
                0 0 80px rgba(255, 105, 180, 0.5);
  }
}

/* Screen overlays */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 100;
  animation: fadeIn 0.3s ease-out;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Title card */
.title-card {
  background: linear-gradient(135deg, #FFE6F0 0%, #FFF0F8 100%);
  border: 4px solid #FF69B4;
  border-radius: 20px;
  padding: 25px;
  max-width: 550px;
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.6),
              0 0 30px rgba(255, 255, 255, 0.5) inset;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
  max-height: 85vh;
  overflow-y: auto;
}

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

/* Intro/Warning Screen */
.intro-screen {
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.intro-card {
  background: linear-gradient(135deg, #FFE6F0 0%, #FFF0F8 50%, #FFE6F0 100%);
  border: 5px solid #FF1493;
  border-radius: 25px;
  padding: 30px;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(255, 20, 147, 0.7),
              0 0 40px rgba(255, 105, 180, 0.5) inset,
              0 0 100px rgba(255, 20, 147, 0.4);
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.intro-card::-webkit-scrollbar {
  width: 10px;
}

.intro-card::-webkit-scrollbar-track {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 10px;
}

.intro-card::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  border-radius: 10px;
}

.intro-card::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF1493, #FF69B4);
}

.intro-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 3px solid #FF69B4;
}

.intro-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #FF1493;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.4);
  margin-bottom: 10px;
}

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

.intro-subtitle {
  font-size: 1rem;
  color: #FF69B4;
  font-style: italic;
}

.intro-content {
  margin-bottom: 25px;
}

.warning-section {
  background: white;
  border: 3px solid #FFB6C1;
  border-radius: 15px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
  transition: all 0.3s ease;
}

.warning-section:hover {
  border-color: #FF69B4;
  box-shadow: 0 6px 18px rgba(255, 105, 180, 0.4);
  transform: translateY(-2px);
}

.health-warning {
  border-color: #FF4444;
  background: linear-gradient(135deg, #FFE6E6, #FFF);
}

.health-warning .warning-icon {
  color: #FF4444;
}

.content-advisory {
  border-color: #4169E1;
  background: linear-gradient(135deg, #E6F0FF, #FFF);
}

.content-advisory .warning-icon {
  color: #4169E1;
}

.important-info {
  border-color: #FFD700;
  background: linear-gradient(135deg, #FFFACD, #FFF);
}

.important-info .warning-icon {
  color: #FFA500;
}

.special-notice {
  border-color: #00FF00;
  background: linear-gradient(135deg, #E6FFE6, #FFF);
}

.special-notice .warning-icon {
  color: #00CC00;
}

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

.warning-header h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

.warning-icon {
  font-size: 1.5rem;
}

.warning-section p {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 8px 0;
}

.advisory-list,
.info-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.advisory-list li,
.info-list li {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.8;
  padding-left: 8px;
  margin-bottom: 8px;
}

.disclaimer {
  background: linear-gradient(135deg, #F0F0F0, #FFF);
  border: 2px dashed #999;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  text-align: center;
}

.disclaimer p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.intro-footer {
  border-top: 3px solid #FF69B4;
  padding-top: 20px;
  text-align: center;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 28px;
  height: 28px;
  border: 3px solid #FF69B4;
  border-radius: 8px;
  background: white;
  position: relative;
  transition: all 0.3s ease;
}

.checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.checkbox-container:hover .checkmark {
  border-color: #FF1493;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  border-color: #FF1493;
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.6);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
  transform: translate(-50%, -50%) scale(1);
}

.checkbox-label {
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.btn-intro-start {
  background: linear-gradient(135deg, #999, #CCC);
  border: 3px solid #AAA;
  border-radius: 50px;
  padding: 15px 40px;
  cursor: not-allowed;
  font-size: 1rem;
  font-weight: bold;
  color: #666;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  opacity: 0.7;
}

.btn-intro-start:not(:disabled) {
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  border-color: white;
  color: white;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5),
              0 0 20px rgba(255, 255, 255, 0.3) inset;
}

.btn-intro-start:not(:disabled):hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.7),
              0 0 30px rgba(255, 255, 255, 0.5) inset;
  background: linear-gradient(135deg, #FF69B4, #FF1493);
}

.btn-intro-start:not(:disabled):active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
}

/* Mobile responsiveness for intro screen */
@media (max-width: 768px) {
  .intro-card {
    padding: 20px;
    max-width: 90%;
    max-height: 95vh;
  }

  .intro-title {
    font-size: 1.4rem;
    gap: 10px;
  }

  .intro-icon {
    font-size: 1.5rem;
  }

  .warning-section {
    padding: 12px;
    margin-bottom: 12px;
  }

  .warning-header h3 {
    font-size: 1rem;
  }

  .warning-section p,
  .advisory-list li,
  .info-list li {
    font-size: 0.85rem;
  }

  .btn-intro-start {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
}

.title-card::-webkit-scrollbar {
  width: 8px;
}

.title-card::-webkit-scrollbar-track {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 10px;
}

.title-card::-webkit-scrollbar-thumb {
  background: #FF69B4;
  border-radius: 10px;
}

.title-card::-webkit-scrollbar-thumb:hover {
  background: #FF1493;
}

.game-title {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-kanji {
  font-size: 2rem;
  font-weight: bold;
  color: #FF1493;
  text-shadow: 3px 3px 0 #FFB6C1,
               -2px -2px 0 #FFF;
  animation: float 3s ease-in-out infinite;
}

.title-main {
  font-size: 2.2rem;
  font-weight: bold;
  background: linear-gradient(45deg, #FF1493, #FF69B4, #FFB6C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 4px 4px 0 rgba(255, 105, 180, 0.3);
  letter-spacing: 3px;
}

.title-sub {
  font-size: 1rem;
  color: #FF69B4;
  font-style: italic;
}

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

/* Character selection */
.character-select {
  margin: 20px 0;
}

.character-select h2 {
  color: #FF1493;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}

.character-grid::-webkit-scrollbar {
  width: 8px;
}

.character-grid::-webkit-scrollbar-track {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 10px;
}

.character-grid::-webkit-scrollbar-thumb {
  background: #FF69B4;
  border-radius: 10px;
}

.character-grid::-webkit-scrollbar-thumb:hover {
  background: #FF1493;
}

.character-card {
  position: relative;
  background: white;
  border: 2px solid #FFB6C1;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 105, 180, 0.2);
  overflow: hidden;
}

.character-card:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: #FF69B4;
  box-shadow: 0 8px 16px rgba(255, 105, 180, 0.4),
              0 0 20px rgba(255, 105, 180, 0.3);
}

.character-card.selected {
  background: linear-gradient(135deg, #FFE6F0, #FFF);
  border-color: #FF1493;
  border-width: 4px;
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.6),
              0 0 50px rgba(255, 20, 147, 0.4),
              inset 0 0 20px rgba(255, 20, 147, 0.2);
  animation: pulse 1s ease-in-out infinite, selectedGlow 2s ease-in-out infinite;
}

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

@keyframes selectedGlow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.6),
                0 0 50px rgba(255, 20, 147, 0.4),
                inset 0 0 20px rgba(255, 20, 147, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.8),
                0 0 70px rgba(255, 20, 147, 0.6),
                inset 0 0 30px rgba(255, 20, 147, 0.3);
  }
}

/* Preview particle animation */
.preview-particle {
  position: fixed;
  font-size: 2rem;
  pointer-events: none;
  z-index: 10000;
  animation: previewBurst 1s ease-out forwards;
}

@keyframes previewBurst {
  0% {
    transform: translate(0, 0) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

.character-avatar {
  font-size: 2.2rem;
  margin-bottom: 8px;
  animation: bounce 2s ease-in-out infinite;
}

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

.character-name {
  font-weight: bold;
  color: #FF1493;
  font-size: 0.85rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(255, 105, 180, 0.3);
}

.character-trait {
  color: #FF69B4;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.character-card:hover::before {
  transform: translateX(100%);
}

/* Buttons */
.btn-start, .btn-retry, .btn-menu, .btn-resume {
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  border: 3px solid white;
  border-radius: 50px;
  padding: 12px 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5),
              0 0 20px rgba(255, 255, 255, 0.3) inset;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 15px auto;
}

.btn-start:hover, .btn-retry:hover, .btn-menu:hover, .btn-resume:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.7),
              0 0 30px rgba(255, 255, 255, 0.5) inset;
  background: linear-gradient(135deg, #FF69B4, #FF1493);
}

.btn-start:active, .btn-retry:active, .btn-menu:active, .btn-resume:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
}

.btn-text {
  font-size: 1.1rem;
  letter-spacing: 1.5px;
}

.btn-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Instructions */
.instructions {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 2px dashed #FF69B4;
}

.instructions p {
  color: #FF1493;
  font-size: 0.85rem;
  margin: 6px 0;
  font-weight: bold;
}

/* Game Bio Section */
.game-bio {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  border: 2px solid #FFB6C1;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
  max-height: 250px;
  overflow-y: auto;
}

.game-bio h3 {
  color: #FF1493;
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.game-bio::-webkit-scrollbar {
  width: 8px;
}

.game-bio::-webkit-scrollbar-track {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 10px;
}

.game-bio::-webkit-scrollbar-thumb {
  background: #FF69B4;
  border-radius: 10px;
}

.game-bio::-webkit-scrollbar-thumb:hover {
  background: #FF1493;
}

.bio-content p {
  color: #FF1493;
  font-size: 0.8rem;
  margin: 8px 0;
  line-height: 1.4;
}

.bio-content ul {
  color: #FF1493;
  font-size: 0.75rem;
  margin: 8px 0 8px 15px;
  line-height: 1.5;
}

.bio-content li {
  margin: 5px 0;
}

.version-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed #FFB6C1;
  font-size: 0.7rem;
  text-align: center;
  color: #FF69B4;
}

.version-info span {
  color: #FF1493;
  font-weight: bold;
}

/* Level Progression */
.level-progression {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  border: 2px solid #FF69B4;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.level-progression h3 {
  color: #FF1493;
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.level-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.level-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.level-milestone.unlocked {
  opacity: 1;
}

.level-milestone.unlocked .milestone-badge {
  animation: badgePulse 2s ease-in-out infinite;
}

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

.milestone-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.level-milestone:hover .milestone-badge {
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.milestone-name {
  font-weight: bold;
  color: #FF1493;
  font-size: 0.7rem;
  text-align: center;
}

.milestone-score {
  font-size: 0.65rem;
  color: #FF69B4;
  font-weight: bold;
}

.level-arrow {
  font-size: 1.2rem;
  color: #FF69B4;
  font-weight: bold;
}

/* Crypto Admin Mode - Locked Display */
.crypto-locked {
  position: relative;
  opacity: 1 !important;
  filter: grayscale(0);
}

.crypto-locked .crypto-badge {
  background: linear-gradient(135deg, #000000, #003300) !important;
  border: 3px solid #00ff00 !important;
  position: relative;
  animation: cryptoLockPulse 2s ease-in-out infinite;
}

@keyframes cryptoLockPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5),
                0 0 30px rgba(0, 255, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.8),
                0 0 50px rgba(0, 255, 0, 0.5);
  }
}

.crypto-symbol {
  font-size: 1.5rem;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
  display: block;
}

.lock-chains {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  animation: chainShake 3s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

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

.crypto-name {
  color: #00ff00 !important;
  text-shadow: 0 0 8px #00ff00;
  font-family: monospace;
  letter-spacing: 1px;
}

.crypto-score {
  color: #00cc00 !important;
  font-family: monospace;
  text-shadow: 0 0 5px #00ff00;
  animation: cryptoFlicker 1.5s ease-in-out infinite;
}

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

.crypto-hint {
  font-size: 0.55rem;
  color: #00ff00;
  margin-top: 3px;
  font-style: italic;
  text-shadow: 0 0 3px #00ff00;
  animation: cryptoHintGlow 2s ease-in-out infinite;
}

@keyframes cryptoHintGlow {
  0%, 100% {
    opacity: 0.6;
    text-shadow: 0 0 3px #00ff00;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00;
  }
}

.crypto-locked:hover .crypto-badge {
  animation: cryptoLockShake 0.5s ease-in-out infinite;
}

@keyframes cryptoLockShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-3deg) scale(1.05); }
  75% { transform: rotate(3deg) scale(1.05); }
}

@keyframes chainBreak {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(2);
    opacity: 0;
  }
}

@keyframes cryptoUnlockPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8),
                0 0 40px rgba(0, 255, 0, 0.6),
                inset 0 0 20px rgba(0, 255, 0, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 0, 1),
                0 0 60px rgba(0, 255, 0, 0.8),
                inset 0 0 30px rgba(0, 255, 0, 0.6);
    transform: scale(1.1);
  }
}

.crypto-locked.unlocked .crypto-badge {
  background: linear-gradient(135deg, #003300, #00ff00) !important;
  animation: cryptoUnlockPulse 1s ease-in-out infinite !important;
}

/* Game UI */
.game-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.hud {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.score-display, .high-score-display, .level-indicator {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 230, 240, 0.9));
  border: 3px solid #FF69B4;
  border-radius: 15px;
  padding: 15px 25px;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
  min-width: 120px;
  transition: all 0.3s ease;
}

.level-indicator {
  flex: 1;
  max-width: 200px;
  position: relative;
  overflow: hidden;
}

.level-indicator::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: levelShine 3s linear infinite;
}

@keyframes levelShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Music toggle button */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  border: 3px solid white;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: musicPulse 2s ease-in-out infinite;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.7);
}

.music-toggle:active {
  transform: scale(0.95);
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5); }
  50% { box-shadow: 0 4px 25px rgba(255, 105, 180, 0.8); }
}

.score-label {
  font-size: 0.8rem;
  color: #FF69B4;
  font-weight: bold;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.score-value {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(45deg, #FF1493, #FF69B4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.level-name {
  font-size: 1rem;
  font-weight: bold;
  color: #FF1493;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
  animation: levelPulse 2s ease-in-out infinite;
}

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

/* Level up notification - moved to top right to not block gameplay */
.level-up-notification {
  position: absolute;
  top: 80px;
  right: 20px;
  transform: translateX(0);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 230, 240, 0.95));
  border: 5px solid #FFD700;
  border-radius: 20px;
  padding: 20px 30px;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.8),
              0 0 30px rgba(255, 255, 255, 0.5) inset;
  text-align: center;
  animation: levelUpSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 200;
  max-width: 200px;
}

@keyframes levelUpSlideIn {
  0% { transform: translateX(300px); opacity: 0; }
  50% { transform: translateX(-10px); }
  100% { transform: translateX(0); opacity: 1; }
}

.level-up-title {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 0 rgba(255, 215, 0, 0.3);
  margin-bottom: 5px;
  animation: levelUpShake 0.5s ease-in-out infinite;
}

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

.level-up-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FF1493;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.level-up-subtitle {
  font-size: 0.9rem;
  color: #FF69B4;
  font-style: italic;
}

/* Combo display */
.combo-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: comboPopIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes comboPopIn {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.combo-text {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 3px 3px 0 #FF1493,
               -2px -2px 0 #FFF,
               0 0 20px rgba(255, 215, 0, 0.8),
               0 0 40px rgba(255, 215, 0, 0.6),
               0 0 60px rgba(255, 215, 0, 0.4);
  animation: comboShake 0.5s ease-in-out infinite, comboGlow 2s ease-in-out infinite;
}

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

@keyframes comboGlow {
  0%, 100% {
    text-shadow: 3px 3px 0 #FF1493,
                 -2px -2px 0 #FFF,
                 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.6);
  }
  50% {
    text-shadow: 3px 3px 0 #FF1493,
                 -2px -2px 0 #FFF,
                 0 0 30px rgba(255, 215, 0, 1),
                 0 0 60px rgba(255, 215, 0, 0.8),
                 0 0 90px rgba(255, 215, 0, 0.6);
  }
}

.combo-count {
  font-size: 4rem;
  font-weight: bold;
  color: #FF1493;
  text-shadow: 4px 4px 0 #FFB6C1,
               -3px -3px 0 #FFF,
               0 0 30px rgba(255, 20, 147, 0.8),
               0 0 50px rgba(255, 20, 147, 0.6);
  animation: countPulse 0.3s ease-in-out infinite;
}

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

/* Game over card */
.game-over-card, .pause-card {
  background: linear-gradient(135deg, #FFE6F0 0%, #FFF0F8 100%);
  border: 5px solid #FF69B4;
  border-radius: 30px;
  padding: 40px;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.6),
              0 0 30px rgba(255, 255, 255, 0.5) inset;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
}

.game-over-title, .pause-title {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(45deg, #FF1493, #FF69B4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-shadow: 3px 3px 0 rgba(255, 105, 180, 0.3);
}

.game-over-subtitle, .pause-subtitle {
  font-size: 1.2rem;
  color: #FF69B4;
  margin-bottom: 30px;
}

/* Stats */
.stats-container {
  background: white;
  border: 3px solid #FFB6C1;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px dashed #FFE6F0;
}

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

.stat-label {
  font-weight: bold;
  color: #FF69B4;
  font-size: 1.1rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FF1493;
}

/* New record banner */
.new-record {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 3px solid white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  animation: recordShine 2s ease-in-out infinite;
}

@keyframes recordShine {
  0%, 100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
  50% { box-shadow: 0 0 60px rgba(255, 215, 0, 1); }
}

.record-text {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.record-subtitle {
  font-size: 1.2rem;
  color: white;
  opacity: 0.9;
  margin-top: 5px;
}

/* Particles */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.particle {
  position: absolute;
  font-size: 2rem;
  animation: particleFall 2s linear forwards;
  opacity: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
          drop-shadow(0 0 20px rgba(255, 105, 180, 0.6));
}

@keyframes particleFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(10vh) rotate(36deg) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(90vh) rotate(324deg) scale(1);
  }
  100% {
    transform: translateY(100vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* Chat Toggle Button */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  border: 3px solid white;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chatPulse 2s ease-in-out infinite;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.7);
}

.chat-toggle:active {
  transform: scale(0.95);
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5); }
  50% { box-shadow: 0 4px 25px rgba(255, 105, 180, 0.8); }
}

/* Chat Interface */
.chat-interface {
  position: fixed;
  bottom: 100px;
  left: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(135deg, #FFE6F0 0%, #FFF0F8 100%);
  border: 5px solid #FF69B4;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.6),
              0 0 30px rgba(255, 255, 255, 0.5) inset;
  z-index: 999;
  display: flex;
  flex-direction: column;
  animation: chatSlideIn 0.3s ease-out;
  overflow: hidden;
}

.chat-interface.hidden {
  display: none;
}

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

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #FFB6C1;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.chat-avatar {
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

.chat-name {
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.chat-status {
  font-size: 0.75rem;
  opacity: 0.9;
}

.chat-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.5);
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #FF69B4;
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #FF1493;
}

/* Chat Message */
.chat-message {
  display: flex;
  gap: 10px;
  animation: messageSlideIn 0.3s ease-out;
}

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

.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
  max-width: 80%;
}

.message-text {
  background: white;
  border: 2px solid #FFB6C1;
  border-radius: 15px;
  padding: 12px 15px;
  color: #FF1493;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.user-message .message-text {
  background: linear-gradient(135deg, #FF69B4, #FFB6C1);
  color: white;
  border-color: #FF1493;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 15px;
  background: white;
  border: 2px solid #FFB6C1;
  border-radius: 15px;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #FF69B4;
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

/* Chat Input */
.chat-input-container {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(135deg, #FFE6F0, #FFF);
  border-top: 3px solid #FFB6C1;
}

.chat-input {
  flex: 1;
  padding: 12px 15px;
  border: 3px solid #FFB6C1;
  border-radius: 25px;
  background: white;
  color: #FF1493;
  font-size: 0.95rem;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: #FF69B4;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.chat-input::placeholder {
  color: #FFB6C1;
}

.chat-send-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(255, 105, 180, 0.6);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-icon {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.chat-send-btn:hover .send-icon {
  transform: rotate(45deg);
}

/* Crypto Admin Mode Styles */
body.crypto-admin-mode {
  background: linear-gradient(180deg, #000000 0%, #001a00 50%, #003300 100%) !important;
}

body.crypto-admin-mode .game-container {
  border-color: #00ff00;
  box-shadow: 0 0 50px #00ff00, 0 0 100px #00ff00;
}

body.crypto-admin-mode #gameCanvas {
  border-color: #00ff00;
  box-shadow: 0 10px 60px rgba(0, 255, 0, 0.8),
              0 0 40px rgba(0, 255, 0, 0.5) inset,
              0 0 100px rgba(0, 255, 0, 0.6);
  animation: cryptoCanvasGlow 2s ease-in-out infinite;
}

@keyframes cryptoCanvasGlow {
  0%, 100% {
    box-shadow: 0 10px 60px rgba(0, 255, 0, 0.8),
                0 0 40px rgba(0, 255, 0, 0.5) inset,
                0 0 100px rgba(0, 255, 0, 0.6);
  }
  50% {
    box-shadow: 0 15px 80px rgba(0, 255, 0, 1),
                0 0 60px rgba(0, 255, 0, 0.7) inset,
                0 0 150px rgba(0, 255, 0, 0.8);
  }
}

body.crypto-admin-mode .score-display,
body.crypto-admin-mode .high-score-display,
body.crypto-admin-mode .level-indicator {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 51, 0, 0.9));
  border-color: #00ff00;
  box-shadow: 0 4px 20px rgba(0, 255, 0, 0.6), inset 0 0 20px rgba(0, 255, 0, 0.2);
}

body.crypto-admin-mode .score-label {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

body.crypto-admin-mode .score-value {
  background: linear-gradient(45deg, #00ff00, #00cc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px #00ff00;
}

body.crypto-admin-mode .level-name {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
  font-family: monospace;
}

body.crypto-admin-mode .level-name::before {
  content: '⬡ ';
}

body.crypto-admin-mode .level-name::after {
  content: ' ⬡';
}

/* Crypto blockchain grid background */
.crypto-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridScroll 20s linear infinite;
}

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

/* Crypto HUD effects */
body.crypto-admin-mode .hud::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 0, 0.03),
    rgba(0, 255, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  animation: scanlines 2s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .title-main {
    font-size: 2rem;
  }

  .title-kanji {
    font-size: 1.8rem;
  }

  .character-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 300px;
  }

  .character-avatar {
    font-size: 1.8rem;
  }

  .character-name {
    font-size: 0.85rem;
  }

  .character-trait {
    font-size: 0.75rem;
  }

  .btn-text {
    font-size: 1rem;
  }

  .game-over-title, .pause-title {
    font-size: 2rem;
  }

  .hud {
    gap: 10px;
  }

  .score-display, .high-score-display, .level-indicator {
    padding: 10px 15px;
    min-width: 90px;
  }

  .score-value {
    font-size: 1.5rem;
  }

  .level-name {
    font-size: 0.85rem;
  }

  .level-progression h3 {
    font-size: 1.2rem;
  }

  .milestone-badge {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .milestone-name {
    font-size: 0.7rem;
  }

  .milestone-score {
    font-size: 0.65rem;
  }

  .level-arrow {
    font-size: 1.2rem;
  }

  .level-up-notification {
    padding: 20px 30px;
  }

  .level-up-title {
    font-size: 1.8rem;
  }

  .level-up-name {
    font-size: 1.5rem;
  }

  .level-up-notification {
    top: 70px;
    right: 10px;
    padding: 15px 20px;
    max-width: 150px;
  }

  .level-up-title {
    font-size: 1.2rem;
  }

  .level-up-name {
    font-size: 1rem;
  }

  .level-up-subtitle {
    font-size: 0.75rem;
  }

  .chat-interface {
    bottom: 90px;
    left: 10px;
    width: calc(100vw - 20px);
    height: 400px;
  }

  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .game-bio {
    padding: 15px;
    max-height: 300px;
  }

  .game-bio h3 {
    font-size: 1.1rem;
  }

  .bio-content p {
    font-size: 0.85rem;
  }

  .bio-content ul {
    font-size: 0.8rem;
    margin-left: 15px;
  }

  .version-info {
    font-size: 0.75rem;
  }
}
