/* ============================================================
   Native vocabulary page easter eggs
   snap / jawan / squid / grogu
   Original artwork and audio are stored in assets/eggs/native.
   ============================================================ */

#native-egg-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#native-egg-root * { box-sizing: border-box; }

.ne-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.ne-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 9px 30px rgba(0, 0, 0, .25);
}
.ne-loading::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  animation: ne-spin .8s linear infinite;
}
@keyframes ne-spin { to { transform: rotate(360deg); } }

/* Shared round icon buttons */
.ne-round {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
  transition: transform .15s ease, background .15s ease;
  pointer-events: auto;
}
.ne-round:hover { transform: scale(1.06); background: #fff; }
.ne-round:active { transform: scale(.94); }
.ne-round svg { width: 22px; height: 22px; display: block; }

/* ---------------- Thanos ---------------- */
.ne-thanos-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ne-thanos-halo {
  position: absolute;
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,90,.30) 0%, rgba(255,190,40,.12) 38%, rgba(255,180,0,0) 70%);
  animation: ne-thanos-halo 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ne-thanos-halo {
  0%, 100% { transform: scale(.92); opacity: .55; }
  50% { transform: scale(1.08); opacity: 1; }
}
.ne-thanos-btn {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.28));
  animation: ne-thanos-float 2.8s ease-in-out infinite;
  transition: transform .16s ease, filter .16s ease;
}
.ne-thanos-btn:hover { transform: scale(1.08); filter: drop-shadow(0 10px 22px rgba(255,180,0,.4)); }
.ne-thanos-btn:active { transform: scale(.92); }
.ne-thanos-btn img,
.ne-thanos-btn canvas {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.ne-thanos-btn canvas { image-rendering: pixelated; }
@keyframes ne-thanos-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
.ne-thanos-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 203, 83, .55);
  border-radius: 50%;
  animation: ne-thanos-ring 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes ne-thanos-ring {
  0% { opacity: .55; transform: translate(-50%, -50%) scale(.92); }
  70% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.ne-ash-clone {
  position: fixed;
  z-index: 10012;
  pointer-events: none;
  transform-origin: 50% 50%;
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
  will-change: opacity, transform, filter;
}
.ne-ash-clone.is-dust {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(.955);
  filter: blur(3px) grayscale(1);
}
.ne-ash-particle {
  position: fixed;
  z-index: 10014;
  width: var(--sz, 4px);
  height: var(--sz, 4px);
  border-radius: 50%;
  pointer-events: none;
  animation: ne-ash-fly var(--dur, 1.35s) cubic-bezier(.18,.62,.36,1) forwards;
}
.ne-ash-particle.square { border-radius: 1px; }
@keyframes ne-ash-fly {
  0% { opacity: .9; transform: translate3d(0,0,0) rotate(0) scale(1); }
  70% { opacity: .55; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), var(--dy, 60px), 0) rotate(var(--rot, 80deg)) scale(.25); }
}

/* ---------------- Jawan ---------------- */
.ne-jawan-layer { pointer-events: none; }
.ne-jawan-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 10010;
  touch-action: manipulation;
}
.ne-jawan-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}
.ne-jawan-toolbar > * { pointer-events: auto; }
.ne-jawan-btn {
  width: 49px;
  height: 49px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  background: #f26a63;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
  transition: transform .15s ease, background .15s ease, opacity .2s ease;
}
.ne-jawan-btn:hover { transform: scale(1.08); background: #ff8078; }
.ne-jawan-btn:active { transform: scale(.92); }
.ne-jawan-btn svg { width: 23px; height: 23px; display: block; }
.ne-jawan-btn.ne-jawan-replay svg { width: 28px; height: 28px; }
.ne-jawan-btn.is-hidden { display: none; opacity: 0; pointer-events: none; transform: scale(.7); }
.ne-jawan-btn.ne-jawan-replay { animation: ne-talkie-pulse 2.2s ease-in-out infinite; }
@keyframes ne-talkie-pulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(0,0,0,.28), 0 0 0 0 rgba(242,106,99,.5); }
  50% { box-shadow: 0 3px 12px rgba(0,0,0,.28), 0 0 0 10px rgba(242,106,99,0); }
}
.ne-jawan-hint {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 10020;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 24, 27, .74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  animation: ne-jawan-hint 3.2s ease forwards;
  pointer-events: none;
}
@keyframes ne-jawan-hint {
  0% { opacity: 0; transform: translateY(5px); }
  12%, 78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}

/* ---------------- Squid Game ---------------- */
.ne-squid-layer {
  pointer-events: auto;
  background: transparent;
  color: #fff;
}
.ne-squid-layer.is-playing {
  background:
    radial-gradient(ellipse at center, rgba(7, 12, 11, .28) 0%, rgba(0,0,0,.74) 68%, rgba(0,0,0,.92) 100%),
    rgba(0,0,0,.38);
}
.ne-squid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.ne-squid-invite-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.ne-squid-invite {
  display: block;
  width: 142px;
  height: 87px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
  animation: none;
  transition: transform .18s ease, filter .18s ease;
}
.ne-squid-invite img { display: block; width: 142px; height: 87px; }
.ne-squid-invite:hover { transform: scale(1.06); filter: drop-shadow(0 14px 26px rgba(0,0,0,.65)); }
.ne-squid-invite:active { transform: scale(.95); }
@keyframes ne-invite-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}
.ne-squid-invite-label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  text-shadow: 0 2px 7px #000;
}
.ne-squid-invite-wrap.is-hidden { opacity: 0; pointer-events: none; transition: opacity .35s ease; }

.ne-squid-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.34));
}
.ne-squid-control {
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .12s ease, opacity .2s ease;
}
.ne-squid-control img { display: block; width: 80px; height: 80px; user-select: none; }
.ne-squid-control:hover { transform: scale(1.04); }
.ne-squid-control:active { transform: scale(.93); }
.ne-squid-control.is-disabled { opacity: 1; cursor: default; pointer-events: none; }
.ne-squid-control.is-pressed { transform: scale(.9); }
.ne-squid-go { margin-top: 2px; }
.ne-squid-stop { margin-top: 2px; }

.ne-squid-hud {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  color: #fff;
}
.ne-squid-close {
  position: absolute;
  right: 13px;
  top: 13px;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.94);
  color: #111;
}
.ne-squid-sound {
  position: absolute;
  left: 14px;
  bottom: 20px;
  pointer-events: auto;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.86);
}
.ne-squid-share {
  position: absolute;
  right: 14px;
  bottom: 20px;
  pointer-events: auto;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.86);
}
.ne-squid-victory {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(7px);
  z-index: 9;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.ne-squid-victory.is-show { opacity: 1; transform: translate(-50%, -50%) translateY(0); }

.ne-squid-result {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
}
.ne-squid-result-card {
  width: min(290px, 82vw);
  padding: 22px 22px 18px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 18px;
  background: rgba(13, 18, 17, .92);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  text-align: center;
}
.ne-squid-result-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .02em;
  color: #fff;
}
.ne-squid-result-card p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.74);
}
.ne-squid-result-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  background: #f06a63;
  color: #111;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

/* ---------------- Grogu ---------------- */
.ne-grogu-layer { pointer-events: none; }
.ne-grogu-btn {
  position: fixed;
  right: 9px;
  bottom: 4px;
  z-index: 10031;
  width: 150px;
  height: 150px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.24));
  transition: transform .16s ease;
  animation: ne-grogu-breathe 3.4s ease-in-out infinite;
}
.ne-grogu-btn:hover { transform: scale(1.045); }
.ne-grogu-btn:active { transform: scale(.94); }
.ne-grogu-btn canvas { display: block; width: 150px; height: 150px; }
@keyframes ne-grogu-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
.ne-grogu-toolbar.is-hidden { display: none !important; }
.ne-grogu-toolbar {
  position: fixed;
  left: 12px;
  bottom: 22px;
  z-index: 10035;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.ne-grogu-toolbar .ne-round { width: 42px; height: 42px; background: rgba(255,255,255,.94); }
.ne-grogu-toolbar .ne-round svg { width: 19px; height: 19px; }
.ne-grogu-clone {
  position: fixed;
  z-index: 10020;
  margin: 0;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transform-origin: 50% 50%;
  will-change: transform;
  transition: filter .16s ease;
}
.ne-grogu-clone.is-held {
  z-index: 10025;
  cursor: grabbing;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .48));
}
.ne-grogu-clone.is-knocked {
  filter: drop-shadow(0 0 13px rgba(255, 255, 255, .75)) brightness(1.18);
}
.ne-grogu-clone a,
.ne-grogu-clone button { pointer-events: none; }
.ne-grogu-clone .spk-badge { display: none !important; }
.ne-grogu-rock {
  position: fixed;
  z-index: 10012;
  width: 22px;
  height: auto;
  image-rendering: auto;
  pointer-events: none;
  opacity: 0;
  animation: ne-rock-fly var(--dur, 1.6s) ease-out var(--delay, 0s) forwards;
}
@keyframes ne-rock-fly {
  0% { opacity: 0; transform: translate3d(0, 16px, 0) scale(.7) rotate(0); }
  18% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), var(--dy, -100px), 0) scale(1.35) rotate(var(--rot, 160deg)); }
}
.ne-grogu-note {
  position: fixed;
  right: 18px;
  bottom: 160px;
  z-index: 10035;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.76);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  animation: ne-grogu-note 2.6s ease forwards;
  pointer-events: none;
}
@keyframes ne-grogu-note {
  0% { opacity: 0; transform: translateY(6px); }
  14%, 78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* ---------------- Batman ---------------- */
.ne-batman-layer { pointer-events: none; }
.ne-bat-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}
.ne-bat-canvas.active { opacity: 1; }
.ne-bat-signal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  transform: translate(-50%, -50%);
  background: url("assets/eggs/native/batman/kp_light.gif") 50% center / contain no-repeat;
  cursor: pointer;
  z-index: 10001;
  pointer-events: auto;
  filter: drop-shadow(0 0 18px rgba(255,193,7,.45));
  transition: transform .25s ease, opacity .25s ease;
}
.ne-bat-signal.hidden { pointer-events: none; transform: translate(-50%, -50%) scale(0); opacity: 0; }

html.ne-batman-night,
body.ne-batman-night {
  background: #202124 !important;
  color-scheme: dark;
}
body.ne-batman-night #app,
body.ne-batman-night #app > div {
  background-color: #202124 !important;
}
body.ne-batman-night .wcard {
  background: rgba(37, 40, 46, .94) !important;
  border-color: rgba(255, 255, 255, .18) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35) !important;
}
body.ne-batman-night .wcard .glass-word {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: none !important;
}
body.ne-batman-night .wcard .glass-word,
body.ne-batman-night .wcard .glass-word span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-image: none !important;
  text-shadow: none !important;
}
body.ne-batman-night .wcard p { color: #cbd5e1 !important; }
body.ne-batman-night .wcard .glass-num {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .16) !important;
}
body.ne-batman-night .fixed.top-3 a {
  background: rgba(255, 255, 255, .10) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, .20) !important;
}
body.ne-batman-night .title-pill {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .16) !important;
}
body.ne-batman-night header h2,
body.ne-batman-night header p,
body.ne-batman-night footer span { color: #e5e7eb !important; }
