/* Beni Öğren — Mağaza altında; üst şerit ile kart arası boşluk sıkı */

#main-screen .main-screen-top-bar.nova-main-top-dock {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: stretch !important;
}

#main-screen .main-screen-top-bar .main-screen-odev-anchor,
#main-screen .main-screen-top-bar .main-screen-egg-anchor,
#main-screen .main-screen-top-bar .main-screen-store-anchor {
  align-self: stretch !important;
}

#main-screen .main-screen-top-bar .main-screen-odev-anchor {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  justify-self: start !important;
}

#main-screen .main-screen-top-bar .main-screen-egg-anchor {
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
}

#main-screen .main-screen-top-bar .main-screen-store-anchor {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  justify-self: end !important;
  gap: 4px !important;
}

#main-screen .main-screen-top-bar .nova-learn-banner {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 4px;
  padding: 4px 6px 4px 5px;
}

#main-screen .main-screen-top-bar .nova-learn-banner__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

#main-screen .main-screen-top-bar .nova-learn-banner__ico svg {
  width: 14px;
  height: 14px;
}

#main-screen .main-screen-top-bar .nova-learn-banner__copy strong {
  white-space: nowrap !important;
  font-size: 10px !important;
}

html.nova-has-session #main-screen.container,
html.nova-main-screen-visible #main-screen.container,
body.nova-main-screen-visible #main-screen.container {
  gap: clamp(4px, 0.6vh, 8px) !important;
}

#main-screen > .main-profile-hero {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.nova-learn-banner {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  isolation: isolate;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 0;
  padding: 5px 8px 5px 6px;
  border: 1.5px solid rgba(253, 224, 71, 0.55);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 90% 80% at 8% -10%, rgba(251, 191, 36, 0.28), transparent 52%),
    linear-gradient(168deg, rgba(30, 27, 75, 0.97) 0%, rgba(15, 23, 42, 0.98) 100%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(253, 224, 71, 0.22);
  color: #fffbeb;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  font-family: ComfortaaOkul, Comfortaa, "Segoe UI", sans-serif;
  text-align: left;
}

.nova-learn-banner__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: nhl-shine 4.8s ease-in-out infinite;
  z-index: 0;
}

@keyframes nhl-shine {
  0%, 58% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(220%); }
}

.nova-learn-banner__ico,
.nova-learn-banner__copy,
.nova-learn-banner__go {
  position: relative;
  z-index: 1;
}

.nova-learn-banner__ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #312e81, #1e1b4b);
  box-shadow:
    0 0 0 1.5px rgba(253, 224, 71, 0.7),
    0 0 10px rgba(251, 191, 36, 0.3);
}

.nova-learn-banner__ico svg {
  display: block;
  width: 22px;
  height: 22px;
}

.nova-learn-banner__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nova-learn-banner__copy small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fde68a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.nova-learn-banner__copy strong {
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 800;
  line-height: 1.1;
}

.nova-learn-banner__go {
  display: none;
}

.nova-learn-banner:active {
  transform: scale(0.985);
}

html.nova-macera-land .nova-hub-learn,
html.nova-ndep-pick-on .nova-hub-learn,
html.nova-ndep-topic-on .nova-hub-learn {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

html.nova-hub-learn-on .nova-learn-banner {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html.nova-hub-learn-on.nova-hub-learn-show-banner .nova-learn-banner {
  visibility: visible !important;
  opacity: 1 !important;
}

html.nova-hub-learn-on #char_lesson_status_body {
  overflow: auto !important;
}
html.nova-hub-learn-on #char_lesson_status_panel,
html.nova-hub-learn-on .character-inventory-surface {
  overflow: hidden !important;
}

/* Overlay: tıklamayı yutar (delik görsel). Skip hariç oyun başlamaz. */
.nova-hub-learn {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  zoom: 1 !important;
  transform: none !important;
  transform-origin: top left !important;
  z-index: 2147483630;
  pointer-events: auto;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}
.nova-hub-learn.is-on {
  opacity: 1;
}
.nova-hub-learn:not(.is-ready) .nova-hub-learn__ring,
.nova-hub-learn:not(.is-ready) .nova-hub-learn__caption {
  transition: none !important;
}
.nova-hub-learn.is-ready .nova-hub-learn__ring,
.nova-hub-learn.is-ready .nova-hub-learn__caption {
  opacity: 1;
}

.nova-hub-learn__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.nova-hub-learn__ring {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
  border: 2.5px solid rgba(255, 214, 102, 0.98);
  box-shadow:
    0 0 0 5px rgba(255, 196, 60, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition:
    left 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.28s ease,
    opacity 0.22s ease;
  animation: nhlPulse 1.85s ease-in-out infinite;
}

@keyframes nhlPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 196, 60, 0.2), 0 10px 28px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(255, 196, 60, 0.32), 0 12px 32px rgba(0, 0, 0, 0.3); }
}

.nova-hub-learn__caption {
  position: absolute;
  z-index: 4;
  max-width: calc(100% - 24px);
  padding: 12px 14px 14px;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 244, 220, 0.96) 100%);
  border: 1.5px solid rgba(255, 196, 60, 0.55);
  box-shadow:
    0 14px 36px rgba(8, 16, 32, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #1b3a4b;
  opacity: 0;
  transition: opacity 0.25s ease, top 0.32s cubic-bezier(0.22, 1, 0.36, 1), left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-sizing: border-box;
  font-family: ComfortaaOkul, Comfortaa, "Segoe UI", sans-serif;
}

.nova-hub-learn__step {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.nova-hub-learn__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.nova-hub-learn__sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: #334155;
}

.nova-hub-learn__dots {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.nova-hub-learn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.18);
}
.nova-hub-learn__dot.is-done {
  background: rgba(202, 138, 4, 0.55);
}
.nova-hub-learn__dot.is-on {
  background: #ca8a04;
  transform: scale(1.2);
}

.nova-hub-learn__close,
.nova-hub-learn__next {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: ComfortaaOkul, Comfortaa, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff8eb;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nova-hub-learn__close {
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  background: linear-gradient(135deg, rgba(28, 40, 58, 0.94), rgba(15, 23, 42, 0.9));
  box-shadow:
    0 0 0 1.5px rgba(255, 214, 102, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.35);
}
.nova-hub-learn__next {
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  min-width: 92px;
  background: linear-gradient(135deg, #ca8a04, #b45309);
  box-shadow:
    0 0 0 1.5px rgba(253, 224, 71, 0.55),
    0 10px 24px rgba(180, 83, 9, 0.35);
}
.nova-hub-learn__close:active,
.nova-hub-learn__next:active {
  transform: scale(0.96);
}
.nova-hub-learn__skip {
  display: none !important;
}

html.nova-hub-learn-on > .nova-hub-learn {
  zoom: 1 !important;
  transform: none !important;
  -webkit-transform: none !important;
}

html.nova-hub-learn-on,
body.nova-hub-learn-on {
  overflow: hidden;
}

html.nova-hub-learn-on #nova_macera_step_load,
html.nova-hub-learn-on [data-mem-plan],
html.nova-hub-learn-on #nova_membership_paywall,
html.nova-hub-learn-on .nova-screen-loader,
html.nova-hub-learn-on #novaScreenLoader {
  pointer-events: none !important;
}

html.nova-hub-learn-on #nova_macera_step_load,
html.nova-hub-learn-on .nova-screen-loader,
html.nova-hub-learn-on #novaScreenLoader,
html.nova-hub-learn-on body.nova-screen-loader-active::before {
  display: none !important;
}

.nova-hub-learn__arrow {
  position: absolute;
  z-index: 5;
  width: 0;
  height: 0;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  animation: nhlArrow 0.9s ease-in-out infinite;
}
.nova-hub-learn__arrow[hidden] {
  display: none !important;
}
.nova-hub-learn__arrow[data-dir="down"] {
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid #facc15;
}
.nova-hub-learn__arrow[data-dir="up"] {
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid #facc15;
}
.nova-hub-learn__arrow[data-dir="left"] {
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 22px solid #facc15;
}
.nova-hub-learn__arrow[data-dir="right"] {
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #facc15;
}
@keyframes nhlArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.nova-hub-learn__arrow[data-side="above"] {
  animation-name: nhlAwayN;
}
@keyframes nhlAwayN {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.nova-hub-learn__arrow[data-side="below"] {
  animation-name: nhlAwayS;
}
@keyframes nhlAwayS {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.nova-hub-learn__arrow[data-side="west"] {
  animation-name: nhlAwayW;
}
@keyframes nhlAwayW {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}
.nova-hub-learn__arrow[data-side="east"] {
  animation-name: nhlAwayE;
}
@keyframes nhlAwayE {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

html.nova-hub-learn-on #nova_lobby_rail,
html.nova-hub-learn-on .nova-lobby-rail {
  overflow-x: auto !important;
}

html.nova-hub-learn-on #nova_terazi_hub.is-learn-demo {
  display: grid !important;
}

html.nova-hub-learn-on [data-veli-pane]:not([hidden]) {
  display: block !important;
}
html.nova-hub-learn-on [data-veli-pane][hidden] {
  display: none !important;
}

html.nova-hub-learn-on #char_lesson_status_body {
  overflow: auto !important;
}
html.nova-hub-learn-on #char_lesson_status_panel,
html.nova-hub-learn-on .character-inventory-surface {
  overflow: hidden !important;
}

html.nova-hub-learn-on #nova-dragon-egg-screen,
html.nova-hub-learn-on .nova-degg-screen,
html.nova-hub-learn-on #profileChangeOverlay,
html.nova-hub-learn-on #characterInventoryOverlay,
html.nova-hub-learn-on #birlestirelim-overlay {
  z-index: 2147483000 !important;
}

.is-hub-learn-focus {
  filter: brightness(1.06) saturate(1.08);
}
