/* css/style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Chat input için user-select açık */
#chatInput {
  -webkit-user-select: text;
  user-select: text;
}

html, body { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100%; 
  width: 100%;
  overflow: hidden; 
  position: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overscroll-behavior: none;
  touch-action: none;
}

body.dark-mode {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 20px;
  overflow-y: auto;
}

#startScreen {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

body.dark-mode #startScreen {
  background: rgba(15, 12, 41, 0.95);
  color: #fff;
}

.main-container {
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.logo {
  margin-bottom: 0;
  flex-shrink: 0;
}

.logo h1 {
  font-size: 3rem;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body.dark-mode .logo h1 {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #a8e6cf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0;
}

body.dark-mode .logo p {
  color: #bdc3c7;
}

.game-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

body.dark-mode .game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.dark-mode .section-title {
  color: #ecf0f1;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(52, 152, 219, 0.08);
  border-radius: 10px;
  border-left: 4px solid #3498db;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

body.dark-mode .control-item {
  background: rgba(52, 152, 219, 0.15);
}

.control-item:hover {
  background: rgba(52, 152, 219, 0.12);
  transform: translateX(5px);
}

body.dark-mode .control-item:hover {
  background: rgba(52, 152, 219, 0.2);
}

.key {
  background: linear-gradient(45deg, #2c3e50, #34495e);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

body.dark-mode .key {
  background: linear-gradient(45deg, #34495e, #2c3e50);
}

.room-selection {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.room-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

body.dark-mode .room-option {
  background: rgba(255, 255, 255, 0.1);
}

.room-option:hover {
  transform: translateY(-3px);
  border-color: #3498db;
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

.room-option.selected {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
}

.room-icon {
  font-size: 2rem;
  width: 60px;
  text-align: center;
}

.room-info {
  flex: 1;
}

.room-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.room-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

body.dark-mode .room-description {
  color: #bdc3c7;
}

.room-stats {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #7f8c8d;
}

body.dark-mode .room-stats {
  color: #95a5a6;
}

.skin-selection {
  margin: 20px 0;
}

.skin-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-width: 100%;
  justify-items: center;
}

.skin-option {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  position: relative;
}

.skin-option:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.skin-option.selected {
  border-color: #3498db;
  transform: scale(1.15);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.skin-option.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.skin-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding: 15px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 10px;
}

body.dark-mode .skin-preview {
  background: rgba(52, 152, 219, 0.15);
}

.preview-cell {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: previewPulse 2s ease-in-out infinite;
}

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

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-success {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
  background: linear-gradient(45deg, #95a5a6, #7f8c8d);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3);
}

.info-text {
  color: #7f8c8d;
  font-size: 0.8rem;
  margin-top: 12px;
  line-height: 1.4;
}

body.dark-mode .info-text {
  color: #bdc3c7;
}

/* Oyun Ekranı Stilleri */
canvas { 
  display: block; 
  width: 100vw; 
  height: 100vh; 
  cursor: none; 
}

/* UI Elementleri */
#themeToggle {
  position: fixed;
  top: 15px;
  left: 15px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 20px;
  cursor: pointer;
  z-index: 100;
  font-size: 0.8rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.dark-mode #themeToggle {
  background: rgba(255, 255, 255, 0.1);
  color: #ecf0f1;
}

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

#hud { 
  position: fixed; 
  top: 15px; 
  left: 15px; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  z-index: 100; 
}

#hud .pill {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(52, 152, 219, 0.3);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  font-weight: 600;
  font-size: 0.7rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}body.dark-mode #hud .pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ecf0f1;
}

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

#minimap {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 2px solid rgba(52, 152, 219, 0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

body.dark-mode #minimap {
  background: rgba(255, 255, 255, 0.1);
}

#chat {
  position: fixed;
  bottom: 15px;
  left: 15px;
  width: 200px;
  height: 100px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 8px;
  border: 1px solid rgba(52, 152, 219, 0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  z-index: 150;
  pointer-events: auto;
}

body.dark-mode #chat {
  background: rgba(26, 26, 46, 0.9);
  color: #ecf0f1;
  border-color: rgba(52, 152, 219, 0.5);
}

#chatMessages { 
  flex: 1; 
  overflow-y: auto; 
  font-size: 0.65rem; 
  margin-bottom: 6px;
  color: #2c3e50;
}

body.dark-mode #chatMessages {
  color: #ecf0f1;
}

.chat-message { 
  margin: 2px 0; 
  padding: 3px 6px; 
  background: rgba(52, 152, 219, 0.15); 
  border-radius: 4px; 
  font-size: 0.65rem;
  color: #2c3e50;
  word-wrap: break-word;
  line-height: 1.2;
}

body.dark-mode .chat-message {
  background: rgba(52, 152, 219, 0.25);
  color: #ecf0f1;
}

#chatInput { 
  width: 100%; 
  border: 1px solid rgba(189, 195, 199, 0.5);
  border-radius: 4px; 
  padding: 4px 6px; 
  font-size: 0.65rem; 
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

body.dark-mode #chatInput {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ecf0f1;
}

#chatInput:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Death Screen */
#deathScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: white;
  text-align: center;
  padding: 15px;
}

.death-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 30px;
  max-width: 450px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

#deathScreen h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #e74c3c;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.death-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.death-buttons .btn {
  flex: 1;
  padding: 10px 15px;
}

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

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

/* Responsive Tasarım */
@media (max-width: 768px) {
  .main-container {
    max-height: 90vh;
    gap: 15px;
  }

  .logo h1 {
    font-size: 2rem;
  }

  .logo p {
    font-size: 0.9rem;
  }

  .game-card {
    padding: 20px;
  }

  .controls-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .control-item {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .room-option {
    padding: 15px;
  }

  .room-icon {
    font-size: 1.5rem;
    width: 40px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  #minimap {
    width: 120px;
    height: 120px;
    bottom: 10px;
    right: 10px;
  }

  #chat {
    width: calc(100% - 30px);
    left: 15px;
    bottom: 140px;
    height: 120px;
  }

  #hud {
    top: 10px;
    left: 10px;
  }

  #hud .pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  #themeToggle {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* Scrollbar Stili */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: rgba(52, 152, 219, 0.5);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 152, 219, 0.7);
}

.hidden {
  display: none !important;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* Form Elements */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

body.dark-mode .form-label {
  color: #ecf0f1;
}

/* Additional Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.p-10 {
  padding: 10px;
}

.p-20 {
  padding: 20px;
}

/* Focus States for Accessibility */
.btn:focus,
.room-option:focus,
.skin-option:focus,
#chatInput:focus,
#themeToggle:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .game-card {
    border: 2px solid #2c3e50;
  }
  
  body.dark-mode .game-card {
    border: 2px solid #ecf0f1;
  }
  
  .room-option.selected {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .game-card:hover {
    transform: none;
  }
  
  .room-option:hover {
    transform: none;
  }
}

/* Tablet responsive (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .main-container {
    max-width: 600px;
    max-height: 85vh;
  }
  
  .logo h1 {
    font-size: 2.5rem;
  }
  
  .game-card {
    padding: 22px;
  }
  
  #chat {
    width: 280px;
    height: 150px;
  }
  
  #minimap {
    width: 140px;
    height: 140px;
  }
}

/* Touch controls - hidden by default, shown on touch devices */
.touch-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  display: none;
}

.touch-controls.active {
  display: block;
}

.virtual-joystick {
  position: absolute;
  bottom: 180px;
  left: 30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
}

body.dark-mode .virtual-joystick {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.joystick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(52, 152, 219, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
}

body.dark-mode .joystick-knob {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(52, 152, 219, 0.9);
}

.touch-buttons {
  position: absolute;
  bottom: 180px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: auto;
}

.touch-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(52, 152, 219, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #2c3e50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  touch-action: manipulation;
  user-select: none;
}

body.dark-mode .touch-btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(52, 152, 219, 0.6);
  color: #ecf0f1;
}

.touch-btn:active {
  transform: scale(0.9);
  background: rgba(52, 152, 219, 0.5);
}

.touch-btn.split-btn::after { content: '✂️'; }
.touch-btn.eject-btn::after { content: '💫'; }

/* Small mobile adjustments */
@media (max-width: 480px) {
  .main-container {
    max-height: 85vh;
    gap: 12px;
  }
  
  .logo h1 {
    font-size: 1.8rem;
  }
  
  .game-card {
    padding: 15px;
  }
  
  .virtual-joystick {
    width: 100px;
    height: 100px;
    bottom: 160px;
    left: 20px;
  }
  
  .joystick-knob {
    width: 40px;
    height: 40px;
  }
  
  .touch-buttons {
    bottom: 160px;
    right: 20px;
    gap: 10px;
  }
  
  .touch-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  #chat {
    bottom: 110px;
    height: 100px;
    font-size: 0.7rem;
  }
}

/* Landscape (Yatay) Mod için özel düzenlemeler */
@media (max-width: 932px) and (orientation: landscape) {
  /* Start screen landscape için optimize */
  .main-container {
    max-height: 95vh;
    gap: 10px;
    padding: 10px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }
  
  .logo p {
    font-size: 0.75rem;
  }
  
  .game-card {
    padding: 12px;
  }
  
  .controls-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  
  .control-item {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .room-selection {
    display: flex;
    gap: 10px;
  }
  
  .room-option {
    flex: 1;
    padding: 10px;
  }
  
  .room-icon {
    font-size: 1.2rem;
  }
  
  .skin-options {
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
  }
  
  .skin-option {
    width: 30px;
    height: 30px;
  }
  
  /* Oyun ekranı landscape */
  #hud {
    top: 5px;
    left: 5px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 50%;
  }
  
  #hud .pill {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  #themeToggle {
    top: 5px;
    left: 5px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  #minimap {
    width: 100px;
    height: 100px;
    bottom: 5px;
    right: 5px;
  }
  
  #chat {
    width: 200px;
    height: 80px;
    bottom: 5px;
    left: 5px;
    font-size: 0.65rem;
  }
  
  .virtual-joystick {
    width: 90px;
    height: 90px;
    bottom: 5px;
    left: 5px;
  }
  
  .joystick-knob {
    width: 35px;
    height: 35px;
  }
  
  .touch-buttons {
    bottom: 5px;
    right: 5px;
    flex-direction: row;
    gap: 8px;
  }
  
  .touch-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* Tablet Portrait için */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  #hud {
    gap: 8px;
  }
  
  #hud .pill {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .virtual-joystick {
    width: 130px;
    height: 130px;
    bottom: 180px;
    left: 30px;
  }
  
  .joystick-knob {
    width: 55px;
    height: 55px;
  }
  
  .touch-buttons {
    bottom: 180px;
    right: 30px;
  }
  
  .touch-btn {
    width: 65px;
    height: 65px;
    font-size: 1.4rem;
  }
  
  #chat {
    width: 300px;
    height: 150px;
  }
  
  #minimap {
    width: 150px;
    height: 150px;
  }
}

/* Tablet Landscape için */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #hud {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 60%;
  }
  
  .virtual-joystick {
    width: 110px;
    height: 110px;
    bottom: 10px;
    left: 10px;
  }
  
  .touch-buttons {
    bottom: 10px;
    right: 10px;
    flex-direction: row;
  }
  
  .touch-btn {
    width: 55px;
    height: 55px;
  }
  
  #chat {
    width: 250px;
    bottom: 10px;
  }
}

/* Rotate Warning - Sadece mobil portrait modda göster */
.rotate-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
}

body.dark-mode .rotate-warning {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.rotate-content {
  text-align: center;
  padding: 40px;
  animation: fadeInScale 0.5s ease-out;
}

.rotate-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: rotate 2s ease-in-out infinite;
}

.rotate-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.rotate-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.rotate-animation {
  margin-top: 20px;
  color: white;
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bildirim Animasyonları */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

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

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

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

@keyframes comboPopOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Sadece mobil portrait modda rotate uyarısını göster */
@media (max-width: 768px) and (orientation: portrait) {
  .rotate-warning {
    display: flex;
  }
  
  /* Oyun başladığında rotate uyarısını gizle */
  body.game-started .rotate-warning {
    display: none;
  }
  
  /* Bildirimleri mobilde küçült */
  .achievement-notification {
    min-width: 250px !important;
    padding: 12px 15px !important;
  }
  
  .achievement-notification > div:first-child {
    font-size: 36px !important;
  }
  
  .combo-notification {
    font-size: 24px !important;
    padding: 15px 20px !important;
  }
}

/* Landscape modda rotate uyarısını gizle */
@media (orientation: landscape) {
  .rotate-warning {
    display: none !important;
  }
}