/* Nova Epic Duel Flow — lig → eşleşme → senkron hazırlık */
body.nova-duel-epic-active #duel-selection-screen,
body.nova-duel-epic-active #duel-intro-overlay,
body.nova-duel-epic-active .selecting-student-banner,
body.nova-duel-epic-active #duelCountdown {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Performans zoom’u hazırlık/lig ekranını dağıtmasın */
body.nova-duel-epic-active {
  zoom: 1 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#nova-duel-epic-root {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #f8fafc;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

#nova-duel-epic-root.ndep-open {
  display: flex;
}

#nova-duel-epic-root .ndep-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 60% at 80% 100%, rgba(168, 85, 247, 0.18), transparent 50%),
    linear-gradient(165deg, #020617 0%, #0f172a 45%, #020617 100%);
}

#nova-duel-epic-root .ndep-stars {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.45), transparent);
  animation: ndep-stars-drift 18s linear infinite;
}

@keyframes ndep-stars-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}

.ndep-phase {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(96vw, 520px);
  text-align: center;
  padding: 16px;
}

.ndep-phase.ndep-active {
  display: flex;
  animation: ndep-phase-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* İlk TEK/DÜELLO: FS/animasyon opacity 0’da takılıp siyah ekran bırakmasın */
#nova-duel-map-phase.ndep-active,
#nova-duel-mode-phase.ndep-active,
#nova-duel-search-phase.ndep-active {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transform: none !important;
}

@keyframes ndep-phase-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* —— Lig —— her cihazda tam ekran ortalı (telefon sol panel olmasın) */
#nova-duel-league-phase,
#nova-duel-league-phase.ndep-phase,
#nova-duel-league-phase.ndep-active {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  max-width: none !important;
  min-width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: clamp(12px, 3vh, 28px) clamp(12px, 4vw, 24px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  z-index: 2147482600 !important;
  pointer-events: none;
  transform: none !important;
  translate: none !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0 !important;
}
#nova-duel-league-phase {
  display: none;
}
#nova-duel-league-phase.ndep-active {
  display: flex !important;
  animation: ndep-league-fade 0.35s ease both !important;
}
@keyframes ndep-league-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
#nova-duel-epic-root.ndep-league-only .ndep-backdrop {
  background: rgba(2, 6, 23, 0.72) !important;
}
#nova-duel-epic-root.ndep-league-only .ndep-stars {
  display: none;
}
#nova-duel-epic-root.ndep-league-only {
  align-items: center !important;
  justify-content: center !important;
}
/* Lig açıkken diğer fazlar / lobi panelleri görünmesin */
#nova-duel-epic-root.ndep-league-only #nova-duel-mode-phase,
#nova-duel-epic-root.ndep-league-only #nova-duel-search-phase,
#nova-duel-epic-root.ndep-league-only #nova-duel-found-phase,
#nova-duel-epic-root.ndep-league-only #nova-duel-prep-phase,
#nova-duel-league-phase.ndep-active ~ #nova-duel-mode-phase,
#nova-duel-league-phase.ndep-active ~ #nova-duel-search-phase,
#nova-duel-league-phase.ndep-active ~ #nova-duel-found-phase,
#nova-duel-league-phase.ndep-active ~ #nova-duel-prep-phase {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#nova-duel-league-phase .ndep-league-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(46vw, 340px);
  height: min(46vw, 340px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  pointer-events: none;
  will-change: transform, opacity;
  animation: ndep-glow-pulse 1.6s ease-in-out infinite;
}

@keyframes ndep-glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.65; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

#nova-duel-league-phase .ndep-league-badge {
  position: relative;
  --ndep-league-size: min(58vmin, 380px);
  width: var(--ndep-league-size) !important;
  height: auto !important;
  max-width: var(--ndep-league-size) !important;
  max-height: none !important;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  will-change: transform, opacity;
  animation: none;
}
#nova-duel-league-phase .ndep-league-badge.is-in {
  animation: ndep-league-pop-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#nova-duel-league-phase .ndep-league-badge.is-out {
  animation: ndep-league-pop-out 0.4s ease-in both;
}
#nova-duel-league-phase .ndep-league-emblem {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 28px rgba(251, 191, 36, 0.4));
}
#nova-duel-league-phase .ndep-league-emblem .nova-lig__pic,
#nova-duel-league-phase .ndep-league-emblem .nova-lig__img,
#nova-duel-league-phase .ndep-league-emblem img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
}
#nova-duel-league-phase .ndep-league-emblem .nova-lig {
  width: 100%;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  filter: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#nova-duel-league-phase .ndep-league-emblem .nova-lig__frame {
  width: min(100%, 320px);
  height: min(50vh, 320px);
  max-height: 340px;
}
#nova-duel-league-phase .ndep-league-emblem .nova-lig__halo,
#nova-duel-league-phase .ndep-league-emblem .nova-lig__fx,
#nova-duel-league-phase .ndep-league-emblem .nova-lig__shine {
  display: none !important;
}
#nova-duel-league-phase .ndep-league-emblem .nova-lig__ribbon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-width: clamp(148px, 42vw, 200px);
  padding: 12px 28px 13px;
  box-sizing: border-box;
  text-align: center;
}
#nova-duel-league-phase .ndep-league-emblem .nova-lig__name {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center !important;
  font-size: clamp(18px, 5vw, 26px) !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  /* trailing letter-spacing optik kayma düzeltmesi */
  text-indent: 0.12em !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  white-space: nowrap;
}
#nova-duel-league-phase #ndep-league-name,
#nova-duel-league-phase .ndep-league-name,
#nova-duel-league-phase #ndep-league-sub,
#nova-duel-league-phase .ndep-league-sub {
  display: none !important;
}

@keyframes ndep-league-pop-in {
  0% { transform: scale(0.55); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ndep-league-pop-out {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0; }
}
@keyframes ndep-league-pop {
  0% { transform: scale(0.55); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#nova-duel-league-phase .ndep-league-badge .nova-lig {
  filter: drop-shadow(0 0 22px rgba(251, 191, 36, 0.55));
}

.ndep-league-name {
  margin-top: clamp(10px, 2.2vh, 18px);
  font-size: clamp(22px, 5.5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fde68a;
  text-shadow:
    0 0 24px rgba(251, 191, 36, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.ndep-league-sub {
  margin-top: 8px;
  font-size: clamp(13px, 3.2vw, 15px);
  opacity: 0.85;
  letter-spacing: 0.04em;
}

/* —— Rakip bulundu —— */
#nova-duel-found-phase h2 {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  color: #7dd3fc;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.55);
  animation: ndep-found-title 0.6s ease both;
}

@keyframes ndep-found-title {
  from { letter-spacing: 0.3em; opacity: 0; }
  to { letter-spacing: 0.12em; opacity: 1; }
}

.ndep-found-burst {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.35);
  animation: ndep-burst 1.2s ease-out infinite;
}

@keyframes ndep-burst {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

#ndep-found-count {
  font-size: clamp(56px, 14vw, 88px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.65);
}

.ndep-found-sub {
  margin-top: 10px;
  font-size: 15px;
  opacity: 0.9;
}

/* —— Hazırlık VS (premium, mobilde aynı düzen — ölçeklenir) —— */
#nova-duel-prep-phase {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.ndep-prep-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding:
    max(8px, env(safe-area-inset-top, 0px))
    max(8px, env(safe-area-inset-right, 0px))
    max(8px, env(safe-area-inset-bottom, 0px))
    max(8px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.ndep-prep-flares {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(56, 189, 248, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 75%, rgba(251, 191, 36, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(124, 58, 237, 0.15), transparent 60%);
  animation: ndep-flare-shift 5s ease-in-out infinite alternate;
}

.ndep-prep-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 35%, rgba(2, 6, 23, 0.75) 100%);
}

.ndep-prep-gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes ndep-flare-shift {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.ndep-prep-shell {
  position: relative;
  z-index: 2;
  width: min(96vw, 640px);
  max-width: 640px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  transform-origin: center center;
}

.ndep-prep-header {
  text-align: center;
}

.ndep-prep-header-line {
  width: min(280px, 72%);
  height: 2px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.15) 10%,
    rgba(251, 191, 36, 0.85) 50%,
    rgba(56, 189, 248, 0.15) 90%,
    transparent
  );
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
}

.ndep-prep-title {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ndep-prep-title-main {
  display: block;
  font-size: clamp(24px, 6.2vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #d9f4ff 40%, #9ad8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(125, 211, 252, 0.55));
  animation: ndep-title-shine 2.4s ease-in-out infinite alternate;
}

.ndep-prep-title-sub {
  display: block;
  margin-top: 6px;
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 800;
  letter-spacing: 0.32em;
  color: rgba(186, 230, 253, 0.9);
  text-transform: uppercase;
}

@keyframes ndep-title-shine {
  from { filter: brightness(1); }
  to { filter: brightness(1.12); }
}

.ndep-prep-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.ndep-prep-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 14px;
  min-width: 0;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(51, 65, 85, 0.45) 0%, rgba(15, 23, 42, 0.92) 55%, rgba(2, 6, 23, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ndep-prep-side-glow {
  position: absolute;
  width: 120%;
  height: 55%;
  left: 50%;
  top: -8%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
}

.ndep-prep-side-glow--a {
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.35), transparent 68%);
}

.ndep-prep-side-glow--b {
  background: radial-gradient(ellipse, rgba(251, 191, 36, 0.28), transparent 68%);
}

.ndep-prep-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.7), transparent);
  opacity: 0.85;
}

.ndep-prep-side::after {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.09) 50%, transparent 60%);
  animation: ndep-card-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ndep-card-sheen {
  0%, 100% { transform: translateX(-30%); opacity: 0; }
  45% { opacity: 1; }
  55% { transform: translateX(30%); opacity: 0; }
}

.ndep-rank-slot {
  display: none !important;
}

.ndep-prep-side--a {
  animation: ndep-side-a 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ndep-prep-side--b {
  animation: ndep-side-b 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes ndep-side-a {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ndep-side-b {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Avatar — karakter ekranı gibi gerçek çerçeve boyutu */
.ndep-avatar-wrap {
  position: relative;
  z-index: 1;
  width: clamp(88px, 24%, 108px);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.ndep-avatar-wrap .avatar-frame-wrap {
  display: block;
  width: 100%;
  line-height: 0;
}

.ndep-avatar-wrap img,
.ndep-avatar-wrap .avatar-framed {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  max-height: min(120px, 28vh);
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.ndep-name {
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 800;
  max-width: 100%;
  text-align: center;
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

.ndep-cups {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.ndep-cups-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.22), rgba(180, 83, 9, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow:
    0 0 20px rgba(251, 191, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.ndep-cups-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  pointer-events: none;
}

.ndep-cup-ico {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.ndep-cup-val {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 900;
  color: #fde68a;
  line-height: 1;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.ndep-cup-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.75);
}

/* —— Alt kahraman bölümü (simetrik dock) —— */
.ndep-prep-heroes-dock {
  width: 100%;
  padding: 14px 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.62) 0%, rgba(15, 23, 42, 0.94) 42%, rgba(2, 6, 23, 0.99) 100%);
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.14) inset,
    0 0 32px rgba(56, 189, 248, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: ndep-dock-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ndep-prep-heroes-dock::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(251, 191, 36, 0.1), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.ndep-prep-heroes-dock::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

@keyframes ndep-dock-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ndep-heroes-dock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.ndep-heroes-dock-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
}

.ndep-heroes-dock-title {
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #fde68a;
  white-space: nowrap;
  text-shadow:
    0 0 16px rgba(251, 191, 36, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

.ndep-prep-heroes-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.ndep-hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 12px;
  min-height: 188px;
  min-width: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.88));
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 28px rgba(0, 0, 0, 0.35);
  position: relative;
  width: 100%;
}

.ndep-hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
}

.ndep-hero-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.45), transparent);
  opacity: 0.75;
}

.ndep-hero-panel--a {
  animation: ndep-panel-a 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.ndep-hero-panel--b {
  animation: ndep-panel-b 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

@keyframes ndep-panel-a {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ndep-panel-b {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.ndep-hero-panel-tag {
  font-size: clamp(10px, 2.6vw, 11px);
  font-weight: 800;
  width: 100%;
  max-width: 148px;
  min-height: 26px;
  line-height: 26px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.38);
  color: #e2e8f0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.ndep-heroes-mid {
  position: relative;
  align-self: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  margin-bottom: 24px;
  z-index: 2;
}

.ndep-heroes-mid-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
  animation: ndep-mid-ring 2.4s ease-in-out infinite;
}

@keyframes ndep-mid-ring {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.ndep-heroes-mid-ico {
  position: relative;
  z-index: 1;
  font-size: 18px;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.55));
}

.ndep-hero-block {
  width: 100%;
  max-width: 148px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.ndep-hero-box {
  width: 100%;
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(56, 189, 248, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(2, 6, 23, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 -14px 28px rgba(56, 189, 248, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

.ndep-hero-box::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.12);
  pointer-events: none;
}

.ndep-hero-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.14), transparent 55%);
  pointer-events: none;
}

.ndep-hero-box.ndep-has-hero {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow:
    inset 0 -10px 22px rgba(56, 189, 248, 0.14),
    0 0 24px rgba(251, 191, 36, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

.ndep-hero-box.ndep-hero-epic.ndep-has-hero {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow:
    inset 0 -10px 22px rgba(124, 58, 237, 0.2),
    0 0 28px rgba(167, 139, 250, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

.ndep-hero-badge-out {
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin-top: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ndep-hero-badge-out .ndep-hero-stars {
  display: none !important;
}

.ndep-hero-badge-out .ndep-hero-star {
  font-size: 15px;
  color: rgba(148, 163, 184, 0.4);
  line-height: 1;
}

.ndep-hero-badge-out .ndep-hero-star.is-on {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.ndep-hero-badge-out .ndep-hero-epic-slot {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ndep-hero-badge-out .nova-hero-epic-badge {
  transform: scale(1.12) !important;
  transform-origin: center center !important;
}

.ndep-hero-badge-out .nova-main-hero-epic-label--tier-standard .nova-epic-badge__body {
  padding: 5px 18px 5px;
  min-height: 24px;
}

.ndep-hero-badge-out .nova-main-hero-epic-label--tier-standard .nova-epic-badge__text {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.ndep-hero-badge-out .nova-main-hero-epic-label--tier-standard .nova-epic-badge__gem {
  width: 3px;
  height: 3px;
}

.ndep-hero-box.ndep-hero-epic .ndep-hero-mount {
  transform: translate(var(--ndep-hero-tx, 0%), var(--ndep-hero-ty, 0%))
    scale(var(--ndep-hero-scale, 1.45)) !important;
  transform-origin: var(--ndep-hero-origin, 50% 72%) !important;
}

.ndep-hero-box.ndep-hero-epic .ndep-hero-mount canvas,
.ndep-hero-box.ndep-hero-epic .ndep-hero-mount svg,
.ndep-hero-box.ndep-hero-epic .nova-hero-svg-host canvas,
.ndep-hero-box.ndep-hero-epic .nova-hero-svg-host svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center bottom;
}

.ndep-hero-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.ndep-hero-mount {
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translate(var(--ndep-hero-tx, 0%), var(--ndep-hero-ty, 0%))
    scale(var(--ndep-hero-scale, 1.2));
  transform-origin: var(--ndep-hero-origin, 50% 72%);
}

.ndep-hero-mount svg,
.ndep-hero-box .nova-hero-svg,
.ndep-hero-mount canvas,
.ndep-hero-mount .nova-hero-svg-host,
.ndep-hero-mount [class*="sprite"],
.ndep-hero-mount [class*="stack"] {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center bottom;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.ndep-hero-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.ndep-hero-empty-silhouette {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed rgba(148, 163, 184, 0.38);
  background:
    radial-gradient(circle at 50% 40%, rgba(148, 163, 184, 0.12), transparent 65%),
    rgba(15, 23, 42, 0.5);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.35);
  position: relative;
}

.ndep-hero-empty-silhouette::after {
  content: '?';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: rgba(148, 163, 184, 0.45);
}

.ndep-hero-empty {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.ndep-prep-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
  flex-shrink: 0;
  width: auto;
  min-width: 80px;
}

.ndep-vs-wrap {
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.ndep-vs {
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 900;
  color: #7dd3fc;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.75);
  animation: ndep-vs-pulse 1.2s ease-in-out infinite;
}

@keyframes ndep-vs-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.ndep-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ndep-ring-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.35), transparent 68%);
  filter: blur(6px);
  animation: ndep-ring-glow 1.5s ease-in-out infinite alternate;
}

@keyframes ndep-ring-glow {
  from { opacity: 0.5; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.05); }
}

.ndep-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#f59e0b var(--ndep-pct, 0%), #ff8a00 var(--ndep-pct, 0%), rgba(255, 255, 255, 0.1) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9) inset;
}

#ndep-count {
  position: relative;
  z-index: 1;
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 138, 0, 0.65);
  transition: transform 0.15s ease, color 0.15s ease;
}

#ndep-count.ndep-count-urgent {
  color: #fde68a;
  transform: scale(1.12);
  animation: ndep-count-pulse 0.45s ease-in-out infinite;
}

@keyframes ndep-count-pulse {
  0%, 100% { transform: scale(1.08); }
  50% { transform: scale(1.2); }
}

.ndep-prep-hint {
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
  text-align: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  align-self: center;
}

/* Hazırlık: mobilde düzen değişmez — ndepFitPrepScale() ile ölçeklenir */

/* —— Harfim Köyü çocuk odaklı yatay arena —— */
body.nova-duel-land-flow,
html.nova-duel-land-flow {
  overflow: hidden !important;
}

#nova-duel-epic-root.ndep-kids-village,
#nova-duel-epic-root.ndep-land-arena {
  align-items: stretch;
  justify-content: stretch;
  font-family: "ComfortaaOkul", "Comfortaa", "Nunito", system-ui, sans-serif;
  background: linear-gradient(160deg, #b8e6ff 0%, #dff6c8 45%, #ffe8b8 100%);
}

#nova-duel-epic-root.ndep-kids-village .ndep-backdrop {
  background:
    var(--ndep-lobby-bg, none) center / cover no-repeat,
    linear-gradient(160deg, #b8e6ff 0%, #dff6c8 45%, #ffe8b8 100%);
  filter: none;
  opacity: 1;
}
#nova-duel-epic-root.ndep-kids-village .ndep-stars {
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.ndep-kids-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.02);
  animation: ndep-kids-pan 18s ease-in-out infinite alternate;
}
@keyframes ndep-kids-pan {
  from { transform: scale(1.02) translate3d(-1%, 0, 0); }
  to { transform: scale(1.06) translate3d(1.2%, -0.6%, 0); }
}
.ndep-kids-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 248, 230, 0.55), rgba(255, 255, 255, 0.28) 40%, rgba(210, 240, 255, 0.45)),
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 255, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.ndep-kids-veil--soft {
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.42), rgba(255, 255, 255, 0.22) 50%, rgba(200, 236, 255, 0.4));
}

.ndep-mode-phase,
.ndep-search-phase,
.ndep-map-phase {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  z-index: 3;
  position: relative;
  max-width: none;
}
.ndep-mode-phase.ndep-active,
.ndep-search-phase.ndep-active,
.ndep-map-phase.ndep-active {
  display: flex;
}

.ndep-kids-card {
  position: relative;
  z-index: 2;
  width: min(920px, 96vw);
  max-height: 94vh;
  overflow: auto;
  border-radius: 32px;
  padding: clamp(20px, 4.2vh, 36px) clamp(20px, 3.6vw, 42px) clamp(18px, 3.2vh, 30px);
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.96), rgba(255, 255, 255, 0.92));
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 18px 40px rgba(46, 90, 50, 0.18),
    0 0 0 4px rgba(90, 170, 90, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  color: #1f3b2c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vh, 18px);
}

.ndep-kids-brand {
  display: inline-block;
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: clamp(15px, 2.8vh, 18px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0f5132;
  background: linear-gradient(90deg, #d4f5c8, #c8eefe);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(40, 100, 60, 0.12);
}

.ndep-mode-kicker,
.ndep-search-kicker {
  margin: 0;
  font-size: clamp(15px, 2.8vh, 18px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2a7a4b;
}

.ndep-mode-title,
#ndep-search-title {
  margin: 0;
  font-size: clamp(32px, 7vh, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #163528;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  line-height: 1.12;
  max-width: 18ch;
}

.ndep-mode-sub,
.ndep-search-sub {
  display: none !important;
}

.ndep-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.4vw, 24px);
  margin: 4px 0 0;
  width: min(100%, 720px);
}

.ndep-mode-btn {
  appearance: none;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: clamp(16px, 3.4vh, 28px) 14px;
  cursor: pointer;
  min-height: clamp(148px, 34vh, 210px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #143528;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 12px 26px rgba(40, 90, 50, 0.18);
}
.ndep-mode-btn--duo {
  background: linear-gradient(180deg, #c8f0ff 0%, #7ed0f5 100%);
}
.ndep-mode-btn--quad {
  background: linear-gradient(180deg, #ffe3a8 0%, #f5b861 100%);
}
.ndep-mode-btn:hover,
.ndep-mode-btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  outline: none;
}
.ndep-mode-btn:active {
  transform: scale(0.98);
}
.ndep-mode-btn-n {
  font-size: clamp(52px, 11vh, 84px);
  font-weight: 900;
  line-height: 0.95;
}
.ndep-mode-btn-label {
  font-size: clamp(17px, 3.2vh, 22px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ndep-mode-btn-hint {
  font-size: clamp(14px, 2.6vh, 17px);
  font-weight: 700;
  opacity: 0.88;
}
.ndep-mode-btn-faces {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.ndep-mode-btn-faces i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(20, 80, 50, 0.25);
  display: block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.ndep-mode-btn-faces--4 i { width: 18px; height: 18px; }

.ndep-kids-cancel,
.ndep-mode-cancel {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1f5c38;
  font-weight: 900;
  font-size: clamp(20px, 4.2vh, 28px);
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 6px;
  letter-spacing: 0.01em;
}

.ndep-search-seats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(12px, 2vw, 20px);
  margin: 6px 0 0;
  flex-wrap: nowrap;
  width: 100%;
}
.ndep-search-seat {
  flex: 1 1 0;
  max-width: 168px;
  min-width: 100px;
  min-height: clamp(124px, 28vh, 168px);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px 14px;
  font-weight: 900;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.78);
  color: #355546;
  box-shadow: 0 10px 20px rgba(40, 80, 50, 0.14);
  box-sizing: border-box;
}
.ndep-search-seats.is-lobby-4 .ndep-search-seat {
  max-width: 140px;
  min-width: 88px;
  min-height: clamp(112px, 26vh, 150px);
}
.ndep-search-seat.is-you {
  background: linear-gradient(180deg, #b9ecff, #6fc4ef);
  color: #0b3a55;
  box-shadow: 0 0 0 4px rgba(56, 180, 230, 0.28), 0 12px 22px rgba(30, 120, 160, 0.22);
  animation: ndep-seat-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.ndep-search-seat.is-filled:not(.is-you) {
  background: linear-gradient(180deg, #ffe29a, #f0b04a);
  color: #5a3a08;
  animation: ndep-seat-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.ndep-search-seat.is-empty {
  border-style: dashed;
  border-color: rgba(80, 120, 90, 0.35);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(70, 100, 80, 0.7);
}
.ndep-seat-avatar {
  width: clamp(64px, 12vw, 86px);
  height: clamp(64px, 12vw, 86px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.ndep-search-seats.is-lobby-4 .ndep-seat-avatar {
  width: clamp(52px, 9vw, 72px);
  height: clamp(52px, 9vw, 72px);
}
.ndep-seat-avatar .avatar-frame-wrap {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.ndep-seat-photo,
.ndep-seat-avatar .avatar-framed {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 18px !important;
  display: block;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.ndep-seat-avatar--empty,
.ndep-seat-avatar--initial {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 2px dashed rgba(80, 120, 90, 0.35);
}
.ndep-seat-avatar--initial {
  border-style: solid;
  background: rgba(255, 255, 255, 0.85);
}
.ndep-seat-ph {
  font-size: clamp(22px, 4.5vh, 32px);
  font-weight: 900;
  line-height: 1;
  opacity: 0.75;
}
.ndep-seat-label {
  font-size: clamp(13px, 2.6vh, 16px);
  font-weight: 900;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}
@keyframes ndep-seat-pop {
  from { transform: scale(0.86); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.ndep-search-tip {
  margin: 0;
  font-size: clamp(18px, 3.6vh, 24px);
  font-weight: 900;
  color: #2f6b48;
}

.ndep-kids-pulse {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 4px solid rgba(60, 160, 90, 0.25);
  border-top-color: #3cb56a;
  border-right-color: #5ec8ef;
  animation: ndep-spin 0.85s linear infinite;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 14px rgba(40, 100, 60, 0.12);
}
@keyframes ndep-spin { to { transform: rotate(360deg); } }

/* Lig / bulundu — açık köy tonu */
#nova-duel-epic-root.ndep-kids-village #nova-duel-league-phase.ndep-active {
  color: #163528;
}
#nova-duel-epic-root.ndep-kids-village #nova-duel-found-phase.ndep-active {
  color: #163528;
  width: min(96vw, 640px);
}
body.nova-duel-land-flow #nova-duel-league-phase.ndep-active,
#nova-duel-epic-root.ndep-land-arena #nova-duel-league-phase.ndep-active,
#nova-duel-epic-root.ndep-league-only #nova-duel-league-phase.ndep-active,
#nova-duel-epic-root.ndep-kids-village #nova-duel-league-phase.ndep-active {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
body.nova-duel-land-flow #nova-duel-league-phase .ndep-league-badge,
#nova-duel-epic-root.ndep-land-arena #nova-duel-league-phase .ndep-league-badge,
#nova-duel-epic-root.ndep-league-only #nova-duel-league-phase .ndep-league-badge {
  --ndep-league-size: min(56vmin, 360px);
}
body.nova-duel-land-flow #nova-duel-league-phase .ndep-league-emblem .nova-lig__frame,
#nova-duel-epic-root.ndep-land-arena #nova-duel-league-phase .ndep-league-emblem .nova-lig__frame,
#nova-duel-epic-root.ndep-league-only #nova-duel-league-phase .ndep-league-emblem .nova-lig__frame {
  width: min(100%, 320px);
  height: min(48vh, 320px);
  max-height: 330px;
}
body.nova-duel-land-flow #nova-duel-league-phase .ndep-league-glow,
#nova-duel-epic-root.ndep-land-arena #nova-duel-league-phase .ndep-league-glow,
#nova-duel-epic-root.ndep-league-only #nova-duel-league-phase .ndep-league-glow {
  width: min(52vmin, 320px);
  height: min(52vmin, 320px);
}
#nova-duel-epic-root.ndep-kids-village .ndep-league-name,
#nova-duel-epic-root.ndep-kids-village #nova-duel-found-phase h2 {
  color: #143528 !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
  font-weight: 900;
}
#nova-duel-epic-root.ndep-kids-village .ndep-league-sub,
#nova-duel-epic-root.ndep-kids-village .ndep-found-sub {
  color: #355c48 !important;
  font-weight: 700;
}
#nova-duel-epic-root.ndep-kids-village #ndep-found-count {
  color: #0f5132 !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

/* Prep landscape + köy arka plan */
body.nova-duel-land-flow #nova-duel-prep-phase.ndep-active,
#nova-duel-epic-root.ndep-land-arena #nova-duel-prep-phase.ndep-active {
  padding: 0;
  position: relative;
  overflow: hidden;
  background:
    var(--ndep-prep-bg, none) center / cover no-repeat,
    linear-gradient(160deg, #1a3a4a 0%, #2d5a3a 45%, #3a2a18 100%);
}
#nova-duel-epic-root.ndep-kids-village #nova-duel-prep-phase.ndep-active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10, 24, 36, 0.28), rgba(20, 40, 28, 0.22) 55%, rgba(18, 28, 40, 0.35)),
    var(--ndep-prep-bg, none) center / cover no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  transform: scale(1.04);
  animation: ndep-kids-pan 18s ease-in-out infinite alternate;
}
#nova-duel-epic-root.ndep-kids-village #nova-duel-prep-phase .ndep-prep-viewport {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

/* Düello / prep / mağara: dik ekran uyarısı yok */
body.nova-duel-land-flow #nova-portrait-lock,
html.nova-duel-land-flow #nova-portrait-lock,
body.nova-duel-epic-active #nova-portrait-lock,
html.nova-allow-landscape #nova-portrait-lock,
body.nova-allow-landscape #nova-portrait-lock {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
body.nova-duel-land-flow .ndep-prep-viewport,
#nova-duel-epic-root.ndep-land-arena .ndep-prep-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.nova-duel-land-flow .ndep-prep-shell,
#nova-duel-epic-root.ndep-land-arena .ndep-prep-shell {
  width: min(1100px, 96vw) !important;
  max-width: 96vw !important;
  transform: none !important;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  padding: 12px 16px 14px;
  max-height: 96vh;
}
#nova-duel-epic-root.ndep-kids-village .ndep-prep-shell {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.92), rgba(255, 255, 255, 0.86));
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(40, 90, 50, 0.16);
  color: #163528;
}
#nova-duel-epic-root.ndep-kids-village .ndep-prep-title-main,
#nova-duel-epic-root.ndep-kids-village .ndep-prep-title-sub,
#nova-duel-epic-root.ndep-kids-village .ndep-name,
#nova-duel-epic-root.ndep-kids-village .ndep-vs,
#nova-duel-epic-root.ndep-kids-village #ndep-count {
  color: #163528 !important;
  text-shadow: none;
}
#nova-duel-epic-root.ndep-kids-village .ndep-prep-hint {
  background: rgba(212, 245, 200, 0.85);
  color: #1f4d32;
  border-color: rgba(90, 170, 90, 0.35);
}
body.nova-duel-land-flow .ndep-prep-arena,
#nova-duel-epic-root.ndep-land-arena .ndep-prep-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 0;
}
body.nova-duel-land-flow .ndep-prep-arena.is-lobby-4,
#nova-duel-epic-root.ndep-land-arena .ndep-prep-arena.is-lobby-4 {
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
}
body.nova-duel-land-flow .ndep-prep-heroes-dock,
#nova-duel-epic-root.ndep-land-arena .ndep-prep-heroes-dock {
  padding: 8px 10px;
}
body.nova-duel-land-flow .ndep-prep-heroes-row,
#nova-duel-epic-root.ndep-land-arena .ndep-prep-heroes-row {
  gap: 10px;
}
body.nova-duel-land-flow .ndep-prep-heroes-row.is-lobby-4,
#nova-duel-epic-root.ndep-land-arena .ndep-prep-heroes-row.is-lobby-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.nova-duel-land-flow .ndep-prep-heroes-row.is-lobby-4 .ndep-heroes-mid,
#nova-duel-epic-root.ndep-land-arena .ndep-prep-heroes-row.is-lobby-4 .ndep-heroes-mid {
  display: none;
}
.ndep-prep-side--extra { display: none; }
.is-lobby-4 .ndep-prep-side--extra { display: flex; }

@media (max-height: 420px) {
  .ndep-kids-card { padding: 12px 16px; border-radius: 22px; gap: 8px; }
  .ndep-mode-btn { min-height: 120px; }
  .ndep-mode-title, #ndep-search-title { font-size: clamp(24px, 8vh, 34px); }
  .ndep-kids-cancel, .ndep-mode-cancel { font-size: clamp(16px, 4.5vh, 20px); }
  .ndep-search-seat { min-height: 100px; }
}
