/* ==========================================================================
   ILYDRAW — BRAND DESIGN SYSTEM & RESPONSIVE UI (LIGHT & DARK THEME v3)
   Slogan: DRAW. GUESS. HAVE FUN. | "Your imagination, their guess!"
   ========================================================================== */

:root {
  --powder-pink: #F3C6D7;
  --pastel-pink: #EAA9C2;
  --lavender: #C8B5EA;
  --lilac: #A98AD8;
  --off-white: #FFF9FC;
  --deep-plum: #39283F;
  --plum-muted: #6E5678;
  --plum-soft: rgba(57, 40, 63, 0.08);
  --gold: #D6B477;
  --gold-light: #EAD3A7;
  --gold-dark: #B59052;
  --surface: rgba(255, 249, 252, 0.92);
  --surface-solid: #FFFFFF;
  --navbar-bg: rgba(255, 249, 252, 0.90);
  --hero-grad: linear-gradient(135deg, rgba(255, 249, 252, 0.96) 0%, rgba(243, 198, 215, 0.44) 50%, rgba(200, 181, 234, 0.44) 100%);
  --border-delicate: rgba(214, 180, 119, 0.42);
  --border-lilac: rgba(169, 138, 216, 0.34);
  --shadow-soft: 0 12px 34px rgba(57, 40, 63, 0.08);
  --shadow-hover: 0 16px 40px rgba(57, 40, 63, 0.14);
  --shadow-gold: 0 6px 20px rgba(214, 180, 119, 0.25);
  --success: #2E9F78;
  --danger: #D9536F;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.dark-theme {
  --off-white: #16101B;
  --deep-plum: #FDF8FF;
  --plum-muted: #C6B4D1;
  --plum-soft: rgba(255, 255, 255, 0.08);
  --surface: rgba(34, 24, 42, 0.92);
  --surface-solid: #261B30;
  --navbar-bg: rgba(24, 17, 30, 0.92);
  --hero-grad: linear-gradient(135deg, rgba(38, 27, 48, 0.96) 0%, rgba(74, 42, 68, 0.72) 50%, rgba(54, 38, 79, 0.78) 100%);
  --border-delicate: rgba(214, 180, 119, 0.45);
  --border-lilac: rgba(200, 181, 234, 0.24);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--deep-plum);
  background-color: var(--off-white);
  background-image:
    radial-gradient(circle at 10% 12%, rgba(243, 198, 215, 0.28) 0%, transparent 38%),
    radial-gradient(circle at 90% 18%, rgba(200, 181, 234, 0.25) 0%, transparent 36%),
    radial-gradient(circle at 50% 90%, rgba(234, 169, 194, 0.20) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--gold) 0.75px, transparent 0.75px);
  background-size: 36px 36px;
  opacity: 0.14;
  z-index: 0;
}

/* ==========================================================================
   ÜST NAVİGASYON BAR
   ========================================================================== */
.ily-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border-delicate);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(57, 40, 63, 0.06);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.brand-medallion {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--powder-pink);
  flex-shrink: 0;
}

.brand-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
}

.brand-titles h1 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--deep-plum);
  line-height: 1;
}

.brand-titles span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--gold-dark);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.nav-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--plum-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-pill:hover {
  color: var(--deep-plum);
  background: rgba(243, 198, 215, 0.25);
}

.nav-pill.active {
  background: linear-gradient(135deg, var(--powder-pink), var(--lavender));
  color: #39283F;
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(169, 138, 216, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switch-btn {
  background: var(--surface-solid);
  border: 1.5px solid var(--border-delicate);
  color: var(--deep-plum);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}

.theme-switch-btn:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(46, 159, 120, 0.12);
  border: 1px solid rgba(46, 159, 120, 0.35);
  color: var(--success);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(46, 159, 120, 0.7);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(46, 159, 120, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(46, 159, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 159, 120, 0); }
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-solid);
  border: 1.5px solid var(--border-delicate);
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.user-chip:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.user-chip-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pastel-pink), var(--lilac));
  color: #39283F;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}

.user-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   ÜYELİK / GİRİŞ / MİSAFİR MODAL EKRANI
   ========================================================================== */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 16, 30, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 500;
}

.auth-modal-backdrop.active {
  display: flex;
}

.auth-modal-card {
  background: var(--surface-solid);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--off-white);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-lilac);
  margin-bottom: 18px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  color: var(--plum-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, var(--powder-pink), var(--lavender));
  color: #39283F;
  box-shadow: 0 3px 10px rgba(169, 138, 216, 0.25);
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 16px;
  font-size: 12.5px;
  color: var(--plum-muted);
}

.remember-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 600;
}

/* ==========================================================================
   GENEL SAYFA KONTEYNERİ & KARTLAR
   ========================================================================== */
.main-stage {
  position: relative;
  z-index: 1;
  max-width: 1340px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 20px 80px;
}

.view-section {
  display: none;
  animation: gentleFade 0.28s ease;
}

.view-section.active {
  display: block;
}

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

.luxury-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-delicate);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.luxury-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--powder-pink), var(--gold), var(--lavender));
  opacity: 0.75;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.card-heading h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   BUTONLAR & FORMLAR
   ========================================================================== */
.btn-ily {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-ily-primary {
  background: linear-gradient(135deg, #39283F 0%, #5B3C69 100%);
  color: #FFF9FC;
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(57, 40, 63, 0.25);
}

.btn-ily-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(57, 40, 63, 0.35);
}

.btn-ily-rose {
  background: linear-gradient(135deg, var(--pastel-pink) 0%, var(--lilac) 100%);
  color: #39283F;
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(234, 169, 194, 0.35);
}

.btn-ily-rose:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-ily-outline {
  background: var(--surface-solid);
  color: var(--deep-plum);
  border-color: var(--gold);
}

.btn-ily-outline:hover {
  background: rgba(243, 198, 215, 0.25);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.ily-input, .ily-select {
  width: 100%;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-lilac);
  background: var(--surface-solid);
  color: var(--deep-plum);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: 0.2s;
}

.ily-input:focus, .ily-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 180, 119, 0.2);
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--plum-muted);
  margin-bottom: 6px;
}

/* ==========================================================================
   ANA SAYFA (HERO & PLATFORM SHOWCASE)
   ========================================================================== */
.hero-banner {
  background: var(--hero-grad);
  border: 2px solid var(--gold);
  border-radius: 32px;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.hero-logo-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 16px 40px rgba(57, 40, 63, 0.22), 0 0 0 8px rgba(255, 249, 252, 0.35);
  overflow: hidden;
  background: var(--powder-pink);
  position: relative;
}

.hero-badge-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-solid);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-content h2 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--deep-plum);
  line-height: 1.08;
  margin-bottom: 10px;
}

.hero-content .tr-subtitle {
  font-size: 16px;
  color: var(--plum-muted);
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-join-strip {
  display: flex;
  gap: 10px;
  max-width: 460px;
  background: var(--surface-solid);
  padding: 6px;
  border-radius: 999px;
  border: 1.5px solid var(--border-delicate);
}

.quick-join-strip input {
  border: none;
  background: transparent;
  padding: 6px 14px;
  flex: 1;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-plum);
  outline: none;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.95fr;
  gap: 22px;
  margin-bottom: 28px;
}

.room-item-card {
  background: var(--surface-solid);
  border: 1.5px solid var(--border-lilac);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  transition: 0.2s;
}

.room-item-card:hover {
  border-color: var(--gold);
  transform: translateX(3px);
}

.room-meta h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-meta p {
  font-size: 12px;
  color: var(--plum-muted);
  margin-top: 2px;
}

.mode-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--powder-pink);
  color: #39283F;
  border: 1px solid var(--gold);
}

.mode-tag.team {
  background: var(--lavender);
}

.features-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-pill-card {
  background: var(--surface);
  border: 1.5px solid var(--border-delicate);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
}

.feature-pill-card .f-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--powder-pink), var(--lavender));
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-pill-card h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 5px;
}

.feature-pill-card p {
  font-size: 12px;
  color: var(--plum-muted);
  line-height: 1.45;
}

/* ==========================================================================
   OYUN MODLARI & ODA OLUŞTURMA LOBİSİ
   ========================================================================== */
.lobby-dual-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.mode-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mode-choice-card {
  background: var(--surface-solid);
  border: 1.5px solid var(--border-lilac);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.mode-choice-card.selected {
  background: linear-gradient(135deg, rgba(243, 198, 215, 0.35), rgba(200, 181, 234, 0.35));
  border-color: var(--gold);
  box-shadow: 0 0 0 1.5px var(--gold);
}

.mode-choice-card h5 {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 3px;
}

.mode-choice-card p {
  font-size: 11px;
  color: var(--plum-muted);
}

.cat-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  background: var(--surface-solid);
  border: 1.5px solid var(--border-lilac);
  color: var(--deep-plum);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.cat-pill.selected {
  background: linear-gradient(135deg, var(--powder-pink), var(--lavender));
  color: #39283F;
  border-color: var(--gold);
}

/* ==========================================================================
   ÇİZİM TAHTASI VE TAHMİN EKRANI (GAME ARENA v3)
   ========================================================================== */
.arena-header-strip {
  background: var(--surface);
  border: 1.5px solid var(--border-delicate);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.arena-meta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.room-code-pill {
  background: linear-gradient(135deg, #39283F, #5B3C69);
  color: #FFF9FC;
  border: 1.5px solid var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-gold);
}

.room-code-pill:hover {
  filter: brightness(1.12);
}

.secret-word-box {
  background: linear-gradient(135deg, #FFF9FC, var(--powder-pink));
  border: 2px solid var(--gold);
  padding: 7px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-gold);
}

.secret-word-letters {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #39283F;
}

.timer-medallion {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #39283F;
  color: #FFF9FC;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  font-weight: 800;
  font-size: 14px;
}

.timer-medallion.urgent {
  background: var(--danger);
  animation: pulseGlow 0.9s infinite;
}

.team-score-banner {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--surface-solid);
  border: 1.5px solid var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}

.team-score-banner.active {
  display: inline-flex;
}

.arena-main-grid {
  display: grid;
  grid-template-columns: 245px 1fr 325px;
  gap: 16px;
  align-items: start;
}

.arena-players-panel {
  background: var(--surface);
  border: 1.5px solid var(--border-delicate);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.arena-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border-lilac);
  margin-bottom: 8px;
  transition: 0.2s;
}

.arena-player-row.is-drawing {
  background: linear-gradient(135deg, rgba(243, 198, 215, 0.42), rgba(200, 181, 234, 0.42));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.arena-player-row.guessed-right {
  background: rgba(46, 159, 120, 0.16);
  border-color: var(--success);
}

/* Oda Davet Kodu & Linki Özel Kartı */
.invite-box-card {
  margin-top: 14px;
  padding: 12px;
  background: var(--surface-solid);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
}

.invite-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(243, 198, 215, 0.3), rgba(200, 181, 234, 0.3));
  border: 1.5px dashed var(--gold-dark);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.invite-code-display .code-val {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--deep-plum);
}

.canvas-stage-card {
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.canvas-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #FFFFFF;
  background-image:
    linear-gradient(to right, rgba(200, 181, 234, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 181, 234, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  border: 1.5px solid var(--border-lilac);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  touch-action: none;
}

#ilyCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

#ilyCanvas.guesser-locked {
  cursor: default;
}

/* Tahminciler İçin "Çizer Kelime Seçiyor" Bekleme Bannerı */
.choosing-status-overlay {
  position: absolute;
  inset: 0;
  background: rgba(57, 40, 63, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 25;
  text-align: center;
  color: #FFF9FC;
}

.choosing-status-overlay.active {
  display: flex;
}

/* Canlı Uçuşan Emoji / Çiçek Tepkileri */
.floating-reactions-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.floating-emoji {
  position: absolute;
  bottom: 12px;
  font-size: 26px;
  animation: floatUpReaction 2.2s ease-out forwards;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes floatUpReaction {
  0% { transform: translateY(0) scale(0.7); opacity: 1; }
  60% { transform: translateY(-140px) scale(1.15); opacity: 0.95; }
  100% { transform: translateY(-230px) scale(0.9); opacity: 0; }
}

.word-select-overlay {
  position: absolute;
  inset: 0;
  background: rgba(57, 40, 63, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}

.word-select-overlay.active {
  display: flex;
}

.word-modal-box {
  background: var(--surface-solid);
  border: 2.5px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 26px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.word-modal-box h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 6px;
}

.three-words-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.word-choice-pill {
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--powder-pink), var(--lavender));
  border: 1.5px solid var(--gold);
  color: #39283F;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.word-choice-pill:hover {
  transform: scale(1.02);
  background: #39283F;
  color: #FFF9FC;
}

.drawing-toolbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface-solid);
  border: 1.5px solid var(--border-lilac);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.guesser-reaction-bar {
  margin-top: 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface-solid);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.palette-swatches {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(57, 40, 63, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.swatch-dot.active {
  transform: scale(1.24);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold);
}

.tool-buttons-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-icon-btn {
  background: var(--off-white);
  border: 1.5px solid var(--border-lilac);
  color: var(--deep-plum);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}

.tool-icon-btn.active, .tool-icon-btn:hover {
  background: var(--powder-pink);
  color: #39283F;
  border-color: var(--gold);
}

.arena-chat-panel {
  background: var(--surface);
  border: 1.5px solid var(--border-delicate);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 540px;
  box-shadow: var(--shadow-soft);
}

.chat-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
  margin-bottom: 10px;
  font-size: 12.5px;
}

.chat-bubble {
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border-lilac);
  line-height: 1.38;
  word-break: break-word;
}

.chat-bubble.correct-hit {
  background: rgba(46, 159, 120, 0.15);
  border-color: var(--success);
  color: var(--success);
  font-weight: 700;
}

.chat-bubble.system-note {
  background: rgba(200, 181, 234, 0.22);
  border-color: transparent;
  color: var(--plum-muted);
  font-size: 11.5px;
  font-style: italic;
}

/* ==========================================================================
   PROFİL, ROZETLER, LİDERLİK VE ADMIN
   ========================================================================== */
.stats-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-tile {
  background: var(--surface-solid);
  border: 1.5px solid var(--border-delicate);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}

.stat-tile .num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--deep-plum);
}

.stat-tile .lbl {
  font-size: 11.5px;
  color: var(--plum-muted);
  font-weight: 700;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.achievement-badge {
  background: var(--surface-solid);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th, .data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-lilac);
  text-align: left;
}

.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--plum-muted);
}

.ily-toast {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #39283F;
  color: #FFF9FC;
  border: 1.5px solid var(--gold);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 9999;
}

.ily-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1040px) {
  .hero-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 18px;
  }
  .hero-cta-group, .quick-join-strip {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .home-grid, .lobby-dual-grid, .admin-grid {
    grid-template-columns: 1fr;
  }
  .features-showcase, .stats-4-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arena-main-grid {
    grid-template-columns: 1fr;
  }
  .arena-chat-panel {
    height: 360px;
  }
}

@media (max-width: 600px) {
  .ily-navbar {
    padding: 8px 12px;
  }
  .brand-titles h1 {
    font-size: 19px;
  }
  .brand-titles span {
    display: none;
  }
  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(14px);
    border-top: 1.5px solid var(--gold);
    padding: 6px 8px;
    justify-content: space-around;
    z-index: 150;
  }
  .nav-pill {
    font-size: 11px;
    padding: 6px 10px;
  }
  .hero-badge-frame {
    width: 150px;
    height: 150px;
  }
  .hero-content h2 {
    font-size: 28px;
  }
  .features-showcase, .stats-4-grid, .badge-grid, .mode-selector-grid {
    grid-template-columns: 1fr;
  }
}
