/* Prevent pull-to-refresh on mobile */
html, body { overscroll-behavior-y: none !important; overscroll-behavior-x: none !important; }
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Quicksand:wght@500;700&display=swap');

:root {
    /* GALERİ SAVAŞLARI NEON/TOON RENK PALETİ */
    --neon-pink: #ff007f;
    --neon-gold: #ffde00;
    --neon-green: #1dd1a1;
    --neon-red: #ff4757;
    --neon-orange: #ffa502;
    --dark-purple: #130a1f;
    --toon-black: #1a1a1a;
    
    --bg-glass: rgba(19, 10, 31, 0.9);
    --bg-inner: rgba(0, 0, 0, 0.4);

    /* YENİ LOBİ RENKLERİ */
    --player-yellow: #ffeaa7;
    --player-blue: #74b9ff;
    --player-purple: #a29bfe;
    --player-green: #55efc4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  /* Safe area and 100dvh adjustments for mobile notches */
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  font-family: 'Nunito', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: #2d3436;
    
    /* GÜNDÜZ PARKI / PİKSEL TARZI ARKA PLAN */
    background: #00a8ff;
    background-image: url('bg-park.jpg');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
/* --- YARDIMCI SINIFLAR --- */
.text-center { text-align: center; }
.text-gold { color: var(--neon-gold); text-shadow: 2px 2px 0 #000; }
.text-success { color: var(--neon-green); text-shadow: 2px 2px 0 #000; }

/* --- ANA OYUN KUTUSU --- */
.game-container {
    width: 100%;
    max-width: 700px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    position: relative;
    animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

/* --- BAŞLIKLAR --- */
h1.game-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--neon-gold);
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke: 2px #000;
    text-shadow: 3px 3px 0 #000, 0 0 20px rgba(255, 222, 0, 0.7);
    margin-bottom: 5px;
}

.subtitle {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 20px;
}

/* --- OYUNCU VE SKOR LİSTELERİ --- */
.player-list-container {
    margin-top: 30px;
}

.toon-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.toon-list li {
    background: var(--bg-inner);
    border: 2px solid #000;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 0 #000;
    transition: transform 0.2s;
}

.toon-list li:hover {
    transform: translateY(-2px);
}

.toon-list li.host {
    border-color: var(--neon-gold);
    box-shadow: 0 4px 0 var(--neon-gold);
}

.toon-list li span.score {
    color: var(--neon-gold);
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 #000;
}

/* OYUN İÇİ MİNİ SKOR TABLOSU */
.in-game-scoreboard {
    position: relative;
    width: 100%;
    background: rgba(30, 39, 46, 0.95);
    border: 3px solid #000;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.8);
}

.scoreboard-title {
    margin: 0 0 10px 0;
    text-align: center;
    color: var(--neon-gold);
    font-family: 'Montserrat', sans-serif;
}

.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 0;
    padding: 0;
    max-height: 85px;
    overflow-y: auto;
    padding-right: 5px;
}

.mini-list::-webkit-scrollbar {
    width: 6px;
}
.mini-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.mini-list::-webkit-scrollbar-thumb {
    background: var(--neon-gold);
    border-radius: 10px;
}

.mini-list li {
    flex: 1 1 calc(50% - 10px);
    min-width: 120px;
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: 0 2px 0 #000;
}

/* --- HOST AYARLARI --- */
.host-settings-box {
    margin-top: 30px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 20px;
    border: 2px solid #000;
}

.setting-label {
    color: #fff;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.highlight-text {
    color: var(--neon-pink);
    text-shadow: 1px 1px 0 #000;
    font-size: 1.4rem;
}

.waiting-text {
    color: #b2bec3;
    margin-top: 25px;
    font-style: italic;
    font-size: 1.1rem;
}

/* KÖSTEBEK KAYDIRICI (SLIDER) */
.toon-range {
    -webkit-appearance: none;
    appearance: none;
    width: 80%;
    height: 15px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--neon-gold) 0%, var(--neon-pink) 100%);
    outline: none;
    border: 2px solid #000;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    margin: 10px 0;
}

.toon-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #000;
    cursor: pointer;
    box-shadow: 0 3px 0 #000;
}

/* --- TOON BUTONLAR --- */
.btn-toon {
    border: 3px solid #000;
    color: white;
    padding: 15px 30px;
    border-radius: 40px;
    font-weight: 900;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 6px 0 #000;
    transition: all 0.1s ease;
    display: inline-block;
}

.btn-toon:hover:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #000;
}

.btn-toon:active:not(:disabled) {
    transform: translateY(6px);
    box-shadow: 0 0 0 #000;
}

.btn-toon:disabled {
    background: #57606f;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary { background: linear-gradient(135deg, var(--neon-pink) 0%, #7209b7 100%); margin-top: 20px;}
.btn-success { background: linear-gradient(135deg, var(--neon-green) 0%, #10ac84 100%); width: 100%; margin-top: 10px; box-shadow: 0 6px 0 #10ac84;}
.btn-up { background: #2ed573; box-shadow: 0 6px 0 #26af61; flex-grow: 1; }
.btn-down { background: var(--neon-red); box-shadow: 0 6px 0 #c0392b; flex-grow: 1; }
.btn-fav { background: var(--neon-orange); box-shadow: 0 6px 0 #cc8400; flex-grow: 1; }


/* --- OYUN İÇİ BİLGİLER --- */
.round-counter {
    color: var(--neon-gold);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.scenario-box {
    background: var(--bg-inner);
    padding: 10px 15px;
    border-radius: 12px;
    border: 2px solid #000;
    margin-bottom: 10px;
    box-shadow: 0 3px 0 #000;
}

.scenario-text {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
}

.timer-display {
    font-size: 4.5rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: var(--neon-red);
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.7), 4px 4px 0 #000;
    margin: 15px 0;
}

/* --- YÜKLEME (UPLOAD) ALANI --- */
.upload-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 3px dashed var(--neon-gold);
    color: var(--neon-gold);
    padding: 12px 30px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 4px 0 #000;
    transition: background 0.2s;
}

.upload-label:hover {
    background: rgba(255, 222, 0, 0.1);
}

.preview-container {
    margin-top: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-inner);
    border-radius: 12px;
    border: 2px solid #000;
    transition: all 0.2s ease;
}

.preview-container.drag-active {
    border-color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
    transform: scale(1.02);
}

.drag-placeholder {
    color: #b2bec3;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    padding: 20px;
}

.meme-gallery-item {
    border: 3px solid #000;
    border-radius: 12px;
    box-shadow: 0 6px 0 #000;
}

.preview-img {
    max-width: 100%;
    max-height: 250px;
    margin: 0 auto;
}

/* --- OYLAMA ALANI --- */
.voting-image {
    max-width: 100%;
    max-height: 380px;
    margin-bottom: 10px;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.own-meme-msg {
    font-weight: 900;
    color: var(--neon-gold);
    margin-top: 25px;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 #000;
}

/* --- FİNAL SONUÇLAR GALERİSİ --- */
.final-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* JS Tarafından Yaratılan Dinamik Galeri Elemanları İçin */
.final-gallery-item {
    background: var(--bg-inner);
    border: 3px solid #000;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 0 #000;
}

.final-gallery-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #000;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.5);
}

.final-gallery-item strong {
    color: var(--neon-gold);
    font-size: 1.1rem;
    display: block;
    text-shadow: 1px 1px 0 #000;
}

/* --- İNDİRME BUTONU --- */
.download-btn {
    background: var(--neon-green);
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 3px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #000;
}

.download-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #000;
}

/* ── ULTRA-PREMIUM FLOATING (i) BUTTON & MODAL ── */
.global-how-to-btn {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4e2f11 0%, #241406 70%, #120902 100%);
  border: 2px solid #ff9f43;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.75),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 6px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(255, 159, 67, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999999;
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.how-to-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff9f43;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  transition: color 0.25s ease, transform 0.25s ease;
}

.how-to-icon {
  stroke: #ff9f43;
  transition: stroke 0.25s ease, transform 0.25s ease;
}

.global-how-to-btn:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: #ffffff;
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.85),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 0 25px rgba(255, 159, 67, 0.6);
}

.global-how-to-btn:hover .how-to-icon {
  stroke: #ffffff;
  transform: scale(1.1);
}

.global-how-to-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* Ambient Pulsing Aura Effect */
.btn-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 159, 67, 0.35);
  animation: auraPulse 2.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
  pointer-events: none;
}

@keyframes auraPulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 0.15; }
  100% { transform: scale(0.92); opacity: 0.85; }
}

.global-how-to-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  padding: 15px;
  animation: fadeInHowToModal 0.25s ease-out forwards;
}

.global-how-to-modal.hidden {
  display: none !important;
}

.global-how-to-box {
  background: linear-gradient(165deg, #301c09 0%, #140a03 100%);
  border: 2px solid #ff9f43;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 18px rgba(255, 159, 67, 0.25);
  color: #f8fafc;
  padding: 26px 28px;
  border-radius: 20px;
  width: min(92vw, 530px);
  position: relative;
  max-height: calc(88vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Outfit', 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */}

.global-how-to-box::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
.global-how-to-box::-webkit-scrollbar-thumb {
  display: none !important;
}

.global-how-to-close {
  position: absolute;
  top: 14px;
  z-index: 10;
  right: 18px;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #ff9f43;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.global-how-to-close:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.global-how-to-title {
  color: #ff9f43;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 4px 0;
  padding: 0 35px;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  font-family: inherit;
}

.global-how-to-subtitle {
  color: #cbd5e1;
  font-size: 0.88rem;
  text-align: center;
  margin: 0 0 20px 0;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.95;
  font-family: inherit;
}

.global-how-to-content .rules-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 159, 67, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.global-how-to-content h4 {
  color: #ff9f43;
  font-size: 1.02rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-family: inherit;
}

.global-how-to-content p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #f1f5f9;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.15px;
  font-family: inherit;
}

.global-how-to-content ul, .global-how-to-content ol {
  margin: 0;
  padding-left: 22px;
  font-size: 0.92rem;
  color: #f1f5f9;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0.15px;
  font-family: inherit;
}

.global-how-to-content li {
  margin-bottom: 8px;
}

.global-how-to-content li strong {
  color: #ffffff;
  font-weight: 700;
}

.global-how-to-content li:last-child {
  margin-bottom: 0;
}

@keyframes fadeInHowToModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── MOBİL / DİK / YATIK EKRAN UYUMLULUĞU ── */
@media (max-width: 600px) {
  .global-how-to-btn {
    width: 44px;
    height: 44px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: calc(14px + env(safe-area-inset-left, 0px));
  }
  .how-to-icon {
    width: 20px;
    height: 20px;
  }
  .global-how-to-box {
    padding: 20px 20px;
    border-radius: 16px;
  
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */}
  .global-how-to-title {
    font-size: 1.2rem;
  }
  .global-how-to-content .rules-section {
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  .global-how-to-content p, .global-how-to-content ul, .global-how-to-content ol {
    font-size: 0.88rem;
    line-height: 1.6;
  }
}

@media (max-height: 500px) {
  .global-how-to-btn {
    width: 40px;
    height: 40px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
  }
  .how-to-icon {
    width: 18px;
    height: 18px;
  }
  .global-how-to-box {
    max-height: 90vh;
    padding: 16px 18px;
  
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */}
}

/* ── LANDSCAPE ENGELLEYİCİ (Masaüstü ve Dik Mobilde Gizli, Sadece Mobil Yatık Ekranda Görünür) ── */
#landscape-blocker {
  display: none !important;
}

@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  #landscape-blocker {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 3, 23, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 20px;
  }
  #landscape-blocker .rotate-icon {
    font-size: 3rem;
    color: #ffde00;
    margin-bottom: 12px;
    animation: rotatePhone 2s infinite ease-in-out;
  }
  #landscape-blocker h2 {
    font-size: 1.4rem;
    color: #ffde00;
    margin-bottom: 6px;
    font-weight: 800;
  }
  #landscape-blocker p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0;
  }
}

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

/* ==========================================
   YENİ LOBİ VE ÜST BAR TASARIMI (GALERİ SAVAŞLARI V2)
   ========================================== */

/* --- LOGO --- */
.logo-container {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.game-logo-img {
    max-width: 90%;
    height: auto;
    max-height: 25vh; /* Ekrana sığması için */
    object-fit: contain;
    filter: drop-shadow(0 6px 0 rgba(0,0,0,0.6));
    animation: floatingLogo 3s ease-in-out infinite;
}

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

/* --- OYLAMA KURALLARI --- */
.voting-rules-box {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vote-rule {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 4px 0 #000;
}

.rule-up { background: #55efc4; }
.rule-fav { background: #fdcb6e; }
.rule-down { background: #ff7675; }

.rule-icon {
    font-size: 1.8rem;
    filter: drop-shadow(2px 2px 0 #000);
}

.rule-text { text-align: left; }
.rule-title { font-weight: bold; font-size: 0.8rem; color: #000; }
.rule-pts { font-weight: 900; font-size: 0.9rem; color: #fff; text-shadow: 1px 1px 0 #000; }

/* --- LOBİ GRID --- */
.player-list-container {
    background: rgba(30, 39, 46, 0.95);
    border: 3px solid #000;
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 15px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.8);
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 2px dashed #576574;
    padding-bottom: 8px;
}

.lobby-header h3 {
    margin: 0;
    color: #fff;
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px; height: 12px;
    background: #2ed573;
    border-radius: 50%;
    border: 2px solid #000;
    box-shadow: 0 0 8px #2ed573;
}

.lobby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* OYUNCU KARTI */
.lobby-grid li {
    background: #ffeaa7; /* Varsayılan renk */
    border: 2px solid #000;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 0 #000;
    position: relative;
    transition: transform 0.1s;
}

.lobby-grid li:hover { transform: translateY(-2px); }

.card-avatar {
    width: 40px; height: 40px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 6px;
    overflow: hidden;
}

.card-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.card-info {
    flex: 1;
    text-align: left;
}

.card-name {
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    color: #000;
    font-size: 0.9rem;
    margin-bottom: 1px;
}

.card-score {
    font-size: 0.75rem;
    color: #333;
    font-weight: bold;
    display: flex; align-items: center; gap: 3px;
}

.card-status {
    background: #2ed573;
    color: #fff;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    border: 2px solid #000;
    display: inline-block;
    margin-top: 4px;
}

.card-status.waiting {
    background: #a29bfe;
}

.host-crown-badge {
    position: absolute;
    top: -15px; left: -10px;
    font-size: 1.8rem;
    filter: drop-shadow(2px 2px 0 #000);
    transform: rotate(-15deg);
}

/* Renk Varyasyonları */
.card-color-1 { background: var(--player-yellow); }
.card-color-2 { background: var(--player-blue); }
.card-color-3 { background: var(--player-purple); }
.card-color-4 { background: var(--player-green); }

/* --- HOST KONTROLLERİ VE SLIDER --- */
.host-settings-box {
    background: rgba(17, 14, 27, 0.95);
    border: 3px solid #000;
    border-radius: 12px;
    padding: 12px 15px;
    text-align: center;
    box-shadow: 0 6px 0 rgba(0,0,0,0.8);
}

.host-settings-box label {
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    display: block;
    margin-bottom: 25px; /* Artırıldı, sayıların üst üste binmesini engellemek için */
    text-shadow: 2px 2px 0 #000;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.slider-btn {
    width: 35px; height: 35px;
    background: #9b59b6;
    color: #fff;
    border: 3px solid #000;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 0 #000;
    display: flex; justify-content: center; align-items: center;
}

.slider-btn:active {
    transform: translateY(4px); box-shadow: 0 0 0 #000;
}

.slider-wrapper {
    flex: 1;
    position: relative;
    height: 40px;
}

.slider-wrapper input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #000;
    border-radius: 5px;
    outline: none;
    position: absolute;
    top: 50%; left: 0; transform: translateY(-50%);
    z-index: 2;
}

.slider-wrapper input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px; height: 25px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 0 #000;
}

.slider-numbers {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: -20px; left: 0; width: 100%;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0 5px;
}

.slider-thumb-badge {
    position: absolute;
    top: 25px;
    width: 30px; height: 30px;
    background: #f1c40f;
    color: #000;
    border: 2px solid #000;
    border-radius: 5px;
    display: flex; justify-content: center; align-items: center;
    font-weight: 900;
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    transition: left 0.1s;
    pointer-events: none;
    z-index: 3;
}

/* --- BAŞLA BUTONU --- */
.btn-start-rocket {
    width: 100%;
    background: #ff9f43;
    background: linear-gradient(to bottom, #ffc048, #ff9f43);
    border: 3px solid #000;
    border-radius: 20px;
    padding: 10px;
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    font-size: 1.5rem;
    color: #000;
    text-transform: uppercase;
    box-shadow: 0 6px 0 #e67e22, 0 8px 0 #000;
    cursor: pointer;
    transition: transform 0.1s;
    text-shadow: 1px 1px 0 #fff;
    position: relative;
    overflow: hidden;
}

/* --- OYUN İÇİ PANELLER --- */
.in-game-panel {
    background: rgba(30, 39, 46, 0.95);
    border: 3px solid #000;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.8);
    color: #fff;
    width: 100%;
}
.in-game-panel .subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0 #000;
}

.btn-start-rocket:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #e67e22, 0 2px 0 #000;
}
