/* Ana ekran üst HUD — sakin metal tepsi, seyrek altın. Clip-path / hale / pulse yok. */

#main-screen .main-screen-top-bar.nova-main-top-dock.nova-hud-game {
  --hud-gold: #e4c36a;
  --hud-gold-hi: #f6e3a6;
  --hud-ink: #0b0f16;
  --hud-cream: #f3ead4;
  --hud-pad-y: 10px;
  --hud-pad-x: 12px;
  --hud-gap: 12px;
  --hud-store-h: 40px;
  --hud-learn-h: 34px;
  --hud-stack-gap: 6px;
  --hud-stack-h: calc(var(--hud-store-h) + var(--hud-stack-gap) + var(--hud-learn-h));
  --hud-chest: 74px;
  position: relative;
  z-index: 14;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--hud-chest) minmax(0, 1fr) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  column-gap: var(--hud-gap) !important;
  row-gap: 0 !important;
  width: calc(100% - clamp(10px, 3vw, 18px)) !important;
  max-width: min(100%, 540px) !important;
  margin: 0 auto clamp(8px, 1.8vw, 12px) !important;
  padding: var(--hud-pad-y) var(--hud-pad-x) !important;
  box-sizing: border-box !important;
  flex-shrink: 0;
  border-radius: 12px !important;
  border: 1px solid rgba(228, 195, 106, 0.38) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 26%),
    linear-gradient(180deg, #161d28 0%, #0c1118 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.28) !important;
  contain: none !important;
  isolation: isolate;
  overflow: visible !important;
  animation: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  clip-path: none !important;
}

#main-screen .main-screen-top-bar.nova-main-top-dock.nova-hud-game::before {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  z-index: 0;
  border-radius: 8px;
  background:
    linear-gradient(var(--hud-gold), var(--hud-gold)) left top / 8px 1px no-repeat,
    linear-gradient(var(--hud-gold), var(--hud-gold)) left top / 1px 8px no-repeat,
    linear-gradient(var(--hud-gold), var(--hud-gold)) right top / 8px 1px no-repeat,
    linear-gradient(var(--hud-gold), var(--hud-gold)) right top / 1px 8px no-repeat,
    linear-gradient(var(--hud-gold), var(--hud-gold)) left bottom / 8px 1px no-repeat,
    linear-gradient(var(--hud-gold), var(--hud-gold)) left bottom / 1px 8px no-repeat,
    linear-gradient(var(--hud-gold), var(--hud-gold)) right bottom / 8px 1px no-repeat,
    linear-gradient(var(--hud-gold), var(--hud-gold)) right bottom / 1px 8px no-repeat;
  opacity: 0.55;
}

#main-screen .main-screen-top-bar.nova-main-top-dock.nova-hud-game::after {
  content: none;
  display: none;
}

#main-screen .nova-hud-game .nova-hud-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#main-screen .nova-hud-game > * {
  position: relative;
  z-index: 1;
}

#main-screen .nova-hud-game .main-screen-odev-anchor,
#main-screen .nova-hud-game .main-screen-egg-anchor,
#main-screen .nova-hud-game .main-screen-store-anchor {
  align-self: stretch !important;
  height: var(--hud-stack-h) !important;
  min-height: var(--hud-stack-h) !important;
  max-height: var(--hud-stack-h) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
}

#main-screen .nova-hud-game .main-screen-odev-anchor {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  justify-self: stretch !important;
  min-width: 0 !important;
}

#main-screen .nova-hud-game .main-screen-egg-anchor {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  width: var(--hud-chest) !important;
  flex: 0 0 var(--hud-chest) !important;
  z-index: 2;
  overflow: visible !important;
}

#main-screen .nova-hud-game .main-screen-store-anchor {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  justify-self: stretch !important;
  min-width: 0 !important;
  gap: var(--hud-stack-gap) !important;
}

#main-screen .nova-hud-game .nova-character-chip,
#main-screen .nova-hud-game .nova-store-chip,
#main-screen .nova-hud-game .nova-learn-banner {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  isolation: isolate;
  margin: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  clip-path: none !important;
  font-family: ComfortaaOkul, Comfortaa, "Segoe UI", sans-serif !important;
  cursor: pointer;
  overflow: hidden !important;
  animation: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#main-screen .nova-hud-game .nova-character-chip::before,
#main-screen .nova-hud-game .nova-store-chip::before,
#main-screen .nova-hud-game .nova-learn-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--hud-gold-hi), var(--hud-gold) 45%, #8a5a14);
  z-index: 1;
  pointer-events: none;
}

#main-screen .nova-hud-game .nova-character-chip:hover,
#main-screen .nova-hud-game .nova-store-chip:hover,
#main-screen .nova-hud-game .nova-learn-banner:hover,
#main-screen .nova-hud-game .nova-egg-chip:hover {
  transform: none !important;
  filter: none !important;
  border-color: rgba(246, 227, 166, 0.7) !important;
}

#main-screen .nova-hud-game .nova-character-chip:active,
#main-screen .nova-hud-game .nova-store-chip:active,
#main-screen .nova-hud-game .nova-learn-banner:active,
#main-screen .nova-hud-game .nova-egg-chip:active {
  transform: none !important;
  filter: none !important;
}

/* ── Hesabım ── */
#main-screen .nova-hud-game .nova-character-chip {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 6px 12px 6px 10px !important;
  border: 1px solid rgba(228, 195, 106, 0.32) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #1a2110 0%, #12160c 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35) !important;
  color: var(--hud-cream) !important;
}

#main-screen .nova-hud-game .nova-character-chip.is-trial {
  border-color: rgba(148, 163, 184, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #1a2230 0%, #10161e 100%) !important;
}

#main-screen .nova-hud-game .nova-character-chip.is-trial::before {
  background: linear-gradient(180deg, #e8eef6, #8a97a8);
}

#main-screen .nova-hud-game .nova-character-chip .char-chip-icon {
  position: relative;
  z-index: 1;
  display: grid !important;
  place-items: center;
  flex: 0 0 36px;
  width: 36px !important;
  height: 40px !important;
  border-radius: 0 !important;
  font-size: 0 !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
  clip-path: none !important;
}

#main-screen .nova-hud-game .nova-character-chip .char-chip-icon::before {
  display: none !important;
}

#main-screen .nova-hud-game .char-chip-hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#main-screen .nova-hud-game .nova-character-chip.is-trial .char-chip-hex polygon {
  stroke: url(#novaHudSteelV);
  fill: #121820;
}

#main-screen .nova-hud-game .char-chip-svg,
#main-screen .nova-hud-game .char-chip-ini {
  position: relative;
  z-index: 1;
}

#main-screen .nova-hud-game .char-chip-svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
  filter: none !important;
}

#main-screen .nova-hud-game .char-chip-ini {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--hud-cream);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

#main-screen .nova-hud-game .nova-character-chip.is-ini .char-chip-svg {
  display: none !important;
}

#main-screen .nova-hud-game .nova-character-chip.is-ini .char-chip-ini:not([hidden]) {
  display: grid !important;
}

#main-screen .nova-hud-game .char-chip-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  line-height: 1.05;
  text-align: left;
}

#main-screen .nova-hud-game .char-chip-label {
  max-width: none !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(228, 195, 106, 0.82) !important;
  text-shadow: none;
  white-space: nowrap;
}

#main-screen .nova-hud-game .char-chip-state {
  margin: 0;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.1;
  text-transform: none !important;
  color: var(--hud-cream) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#main-screen .nova-hud-game .nova-character-chip.is-trial .char-chip-label {
  color: rgba(186, 198, 214, 0.8) !important;
}

#main-screen .nova-hud-game .nova-character-chip.is-trial .char-chip-state {
  color: #d5dde8 !important;
}

#main-screen .nova-hud-game .nova-character-chip.is-member .char-chip-state {
  color: #fff6dc !important;
}

/* ── Kristal kutu madalyon ── */
#main-screen .nova-hud-game .nova-egg-chip,
#main-screen .nova-hud-game .nova-egg-chip.nova-chest-chip {
  --egg-size: var(--hud-chest);
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: var(--egg-size) !important;
  height: var(--egg-size) !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: visible !important;
  isolation: isolate;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
  filter: none !important;
  clip-path: none !important;
  transition: filter 0.15s ease !important;
}

#main-screen .nova-hud-game .nova-egg-chip::before,
#main-screen .nova-hud-game .nova-egg-chip::after,
#main-screen .nova-hud-game .nova-egg-chip.nova-chest-chip::after {
  content: none !important;
  display: none !important;
}

#main-screen .nova-hud-game .egg-chip-frame {
  display: none !important;
}

#main-screen .nova-hud-game .egg-chip-ring {
  position: absolute;
  inset: 0 !important;
  z-index: 0;
  pointer-events: none;
  display: block;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  animation: none !important;
}

#main-screen .nova-hud-game .egg-chip-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

#main-screen .nova-hud-game .egg-chip-dais {
  display: none !important;
}

#main-screen .nova-hud-game .egg-chip-orb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72% !important;
  height: 72% !important;
  margin: 0 !important;
}

#main-screen .nova-hud-game .egg-chip-img,
#main-screen .nova-hud-game .egg-chip-img--chest {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)) !important;
  transform: none !important;
}

#main-screen .nova-hud-game .nova-egg-chip.has-eggs,
#main-screen .nova-hud-game .nova-egg-chip.nova-chest-chip.has-eggs {
  animation: none !important;
  filter: none !important;
}

#main-screen .nova-hud-game .egg-chip-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 4;
  min-width: 1.2rem;
  height: 1.15rem;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid #f6e3a6;
  background: linear-gradient(180deg, #f0d78a, #b8862e 58%, #8a5a14);
  color: #1a1208;
  font-family: ComfortaaOkul, Comfortaa, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  box-shadow: 0 1px 0 #5c3a0c;
}

#main-screen .nova-hud-game .egg-chip-badge[hidden] {
  display: none !important;
}

#nova_top_egg_open.is-mem-locked .nova-mem-lock-badge {
  top: auto !important;
  bottom: 4px !important;
  right: 4px !important;
  width: 18px !important;
  height: 18px !important;
}

/* ── Mağaza ── */
#main-screen .nova-hud-game .nova-store-chip {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  height: var(--hud-store-h) !important;
  min-height: var(--hud-store-h) !important;
  padding: 0 10px 0 12px !important;
  border: 1px solid rgba(228, 195, 106, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(255, 236, 179, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, #1c180e 0%, #12100c 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 179, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35) !important;
  color: var(--hud-cream) !important;
}

#main-screen .nova-hud-game .store-chip-icon {
  position: relative;
  z-index: 1;
  display: grid !important;
  place-items: center;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  font-size: 0 !important;
  filter: none !important;
}

#main-screen .nova-hud-game .store-chip-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

#main-screen .nova-hud-game .store-chip-label {
  position: relative;
  z-index: 1;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--hud-cream) !important;
  text-shadow: none;
  white-space: nowrap;
}

/* ── Rehber ── */
#main-screen .nova-hud-game .nova-learn-banner {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-self: stretch !important;
  gap: 7px;
  width: 100% !important;
  max-width: none !important;
  height: var(--hud-learn-h) !important;
  min-height: var(--hud-learn-h) !important;
  padding: 0 10px 0 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 42%),
    linear-gradient(180deg, #171e28 0%, #10161e 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32) !important;
  color: var(--hud-cream) !important;
}

#main-screen .nova-hud-game .nova-learn-banner::before {
  background: linear-gradient(180deg, #e8eef6, #8a97a8);
}

#main-screen .nova-hud-game .nova-learn-banner__ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  clip-path: none !important;
}

#main-screen .nova-hud-game .nova-learn-banner__ico svg {
  display: block;
  width: 16px !important;
  height: 16px !important;
}

#main-screen .nova-hud-game .nova-learn-banner__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.05;
}

#main-screen .nova-hud-game .nova-learn-banner__copy small {
  font-size: 7px !important;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(228, 195, 106, 0.78);
}

#main-screen .nova-hud-game .nova-learn-banner__copy strong {
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap !important;
  color: #e8eef4;
}

body.nova-perf-ultra #main-screen .main-screen-top-bar.nova-main-top-dock.nova-hud-game {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 380px) {
  #main-screen .main-screen-top-bar.nova-main-top-dock.nova-hud-game {
    --hud-store-h: 36px;
    --hud-learn-h: 30px;
    --hud-chest: 60px;
    --hud-pad-x: 8px;
    --hud-gap: 8px;
  }

  #main-screen .nova-hud-game .char-chip-state {
    font-size: 12px !important;
  }

  #main-screen .nova-hud-game .store-chip-label {
    font-size: 11px !important;
  }
}
