:root {
  --night: #14061f;
  --night-2: #230b35;
  --purple: #5b2a86;
  --pink: #ff2fa4;
  --hot: #ff4f7b;
  --orange: #ff8a3d;
  --sun: #ffc94a;
  --gold: #ffcf3f;
  --teal: #18d6c8;
  --sky: #3ab4ff;
  --cream: #fff6e8;
  --money: #7fe36a;

  --sunset: linear-gradient(180deg, #ffd166 0%, #ff8a3d 28%, #ff4f7b 55%, #c2278f 78%, #5b2a86 100%);
  --sunset-h: linear-gradient(90deg, #ffc94a, #ff8a3d 30%, #ff3d8b 65%, #a62ad0);

  --f-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --f-script: "Kaushan Script", "Brush Script MT", cursive;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --hud-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cream);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em;
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--night);
  background: var(--bg);
  border: 3px solid var(--night);
  box-shadow: 5px 5px 0 var(--night);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--night); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--night); }
.btn-primary { --bg: var(--sun); }
.btn-primary:hover { --bg: #ffe07a; }
.btn-ghost {
  background: transparent; color: var(--cream);
  border-color: var(--cream); box-shadow: 5px 5px 0 rgba(0,0,0,.5);
}
.btn-ghost:hover { background: var(--cream); color: var(--night); box-shadow: 7px 7px 0 rgba(0,0,0,.5); }
.btn-sm { font-size: .95rem; padding: .7em 1.1em; }
.key {
  display: inline-grid; place-items: center;
  width: 1.5em; height: 1.5em;
  border: 2px solid currentColor; border-radius: 4px;
  font-family: var(--f-body); font-weight: 900; font-size: .8em;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: #000;
  display: grid; place-items: center;
  cursor: pointer;
  transition: opacity .6s ease, visibility .6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-art { position: absolute; inset: 0; overflow: hidden; }
.loader-art img {
  position: absolute; inset: -60px;
  width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover;
  opacity: 0;
  filter: blur(22px) saturate(1.4) brightness(.8);
  animation: loaderSlide 4.5s infinite;
}
.loader-art img:nth-child(2) { animation-delay: 1.5s; }
.loader-art img:nth-child(3) { animation-delay: 3s; }
@keyframes loaderSlide {
  0% { opacity: 0; transform: scale(1.12); }
  8% { opacity: 1; }
  33% { opacity: 1; }
  41% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.loader-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,6,31,.35), rgba(20,6,31,.15) 40%, rgba(0,0,0,.85));
}
.loader-logo { position: relative; text-align: center; line-height: .8; }
.loader-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 28px clamp(20px, 4vw, 48px);
}
.loader-tip { margin: 0; max-width: 520px; font-size: .95rem; color: #fff; text-shadow: 0 2px 6px #000; }
.loader-tip b { color: var(--sun); }
.loader-spin { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); letter-spacing: .12em; white-space: nowrap; }
.loader-spin i {
  width: 26px; height: 26px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-skip {
  position: absolute; top: 20px; right: 20px;
  background: none; border: 0; color: rgba(255,255,255,.6);
  font: 600 .8rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}

/* ---------- Logo ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.gata-mark {
  --w: 200px;
  display: block;
  width: var(--w);
  aspect-ratio: 1342.59 / 755.33;
  filter: drop-shadow(0 6px 0 rgba(20,6,31,.95)) drop-shadow(0 0 30px rgba(255,79,123,.45));
}
.gata-mark i {
  display: block; width: 100%; height: 100%;
  background: #fff;
  -webkit-mask: url("../assets/brand/gata-logo.svg") center / contain no-repeat;
          mask: url("../assets/brand/gata-logo.svg") center / contain no-repeat;
}
.loader-logo .gata-mark { --w: clamp(260px, 50vw, 560px); margin: 0 auto; }
.logo-city, .t-city {
  display: block;
  font-family: var(--f-script);
  color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px var(--pink), 0 0 80px var(--pink);
}
.logo-city { font-size: clamp(3.5rem, 11vw, 7rem); line-height: 1; margin-top: -.4em; transform: rotate(-6deg) translateX(20%); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hud-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(14px, 3vw, 36px);
  pointer-events: none;
  transition: background .3s, backdrop-filter .3s;
}
.hud::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: -200px; z-index: -1;
  background: rgba(14,4,24,.94);
  border-bottom: 2px solid rgba(255,47,164,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s;
}
.hud.scrolled::before { opacity: 1; }
.hud > * { pointer-events: auto; }
.hud-logo {
  display: flex; align-items: baseline; gap: 4px;
  text-decoration: none; line-height: 1;
}
.hud-logo { align-items: center; gap: 0; }
.hud-logo .gata-mark { --w: 76px; filter: drop-shadow(0 2px 0 #000); }
.hud-logo em {
  margin-left: -10px; margin-top: 14px;
  font-family: var(--f-script); font-style: normal; font-size: 1.4rem; color: #fff;
  text-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink);
  transform: rotate(-6deg); display: inline-block;
}
.hud-right {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  align-self: flex-start; margin-top: 10px;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, rgba(10,4,18,.92), rgba(10,4,18,.82));
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.hud-money {
  font-family: var(--f-display);
  font-size: 2.1rem; line-height: 1.1;
  color: var(--money);
  letter-spacing: .04em;
  -webkit-text-stroke: 1.5px #0b2a08;
  text-shadow: 2px 2px 0 #000;
  font-variant-numeric: tabular-nums;
}
.hud-money span { font-size: .7em; margin-left: .25em; letter-spacing: .04em; }
.hud-stars { display: flex; gap: 4px; }
.hud-stars i {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.28);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: background .3s;
}
.hud-stars i.on { background: #fff; }
.hud-stars.flash i.on { animation: starFlash .6s steps(1) infinite; }
@keyframes starFlash { 50% { background: var(--sun); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  padding: calc(var(--hud-h) + 20px) 20px 110px;
}
.hero-collage {
  position: absolute; left: -8%; right: -8%; top: 50%;
  columns: 5; column-gap: 12px;
  transform: translateY(-50%) rotate(-5deg);
  z-index: -3;
  animation: collageDrift 30s ease-in-out infinite alternate;
}
.hero-collage .p:nth-child(n+16) { display: none; }
.hero-collage .p {
  margin: 0 0 12px;
  break-inside: avoid;
  border: 4px solid #000;
  background: #000;
}
.hero-collage img {
  width: 100%; height: auto;
  filter: saturate(1.25) contrast(1.05);
}
@keyframes collageDrift {
  from { transform: translateY(-52%) rotate(-5deg); }
  to { transform: translateY(-48%) rotate(-5deg); }
}

.hero-sun {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(255,201,74,.55), transparent 70%),
    linear-gradient(180deg, rgba(91,42,134,.55), rgba(255,79,123,.45) 50%, rgba(255,138,61,.45));
  mix-blend-mode: color;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 42% at 50% 42%, rgba(12,3,20,.88), rgba(12,3,20,.55) 60%, rgba(12,3,20,.2) 100%),
    linear-gradient(180deg, rgba(20,6,31,.7) 0%, transparent 25%, transparent 65%, var(--night) 100%);
}
.hero-content { text-align: center; max-width: 980px; }
.hero-title { line-height: 1; }
.t-gata {
  --w: clamp(260px, min(60vw, 62svh), 680px);
  margin: 0 auto;
  filter:
    drop-shadow(3px 0 0 #0c0314) drop-shadow(-3px 0 0 #0c0314)
    drop-shadow(0 3px 0 #0c0314) drop-shadow(0 -3px 0 #0c0314)
    drop-shadow(0 10px 0 rgba(12,3,20,.95))
    drop-shadow(0 0 36px rgba(255,201,74,.45));
}
.t-city {
  font-size: clamp(3.6rem, min(13vw, 17svh), 9rem);
  line-height: 1;
  margin-top: -.5em;
  transform: rotate(-7deg) translateX(18%);
  animation: neon 4s infinite;
}
@keyframes neon {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px var(--pink), 0 0 80px var(--pink);
    opacity: 1;
  }
  20%, 24%, 55% { text-shadow: none; opacity: .55; }
}
.hero-tag {
  margin: 12px 0 0;
  display: flex; justify-content: center; align-items: center; gap: .3em;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 7.5vw, 5rem);
  line-height: 1;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 4px 4px 0 #000;
}
.hero-tag span {
  padding: .04em .22em .02em;
  background: #000;
  box-shadow: 4px 4px 0 var(--pink);
}
.hero-tag span:last-child { background: var(--pink); box-shadow: 4px 4px 0 #000; }
.hero-tag i {
  font-style: normal;
  font-family: var(--f-script);
  color: var(--sun);
  font-size: 1.15em;
  text-shadow: 0 0 20px rgba(255,201,74,.8), 3px 3px 0 #000;
  padding: 0 .1em;
}
.hero-sub {
  width: fit-content;
  margin: 26px auto 0;
  max-width: min(560px, 100%);
  padding: 10px 18px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background: rgba(10,4,18,.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-left: 4px solid var(--pink);
  box-shadow: 6px 6px 0 rgba(0,0,0,.45);
  text-shadow: 0 1px 2px #000;
}
.hero-cta { margin-top: 30px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Ticker */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: stretch;
  background: #000;
  border-top: 3px solid var(--pink);
  font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
  overflow: hidden;
}
.ticker-label {
  flex: none;
  padding: 12px 18px;
  background: var(--pink); color: #fff;
  font-family: var(--f-display); font-weight: 400; letter-spacing: .1em;
  position: relative; z-index: 1;
}
.ticker-track { display: flex; white-space: nowrap; animation: ticker 55s linear infinite; }
.ticker-track p { margin: 0; display: flex; align-items: center; }
.ticker-track span { padding: 0 28px; position: relative; }
.ticker-track span::after {
  content: "★"; position: absolute; right: -8px; color: var(--sun);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section title ---------- */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .9;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 5px 5px 0 #000;
}
.section-title em {
  font-family: var(--f-script);
  font-style: normal;
  text-transform: none;
  color: var(--sun);
  font-size: .85em;
  display: inline-block;
  transform: rotate(-6deg);
  text-shadow: 0 0 24px rgba(255,201,74,.6), 4px 4px 0 #000;
  margin-left: .1em;
}

/* ---------- Map (2D, GTA pause-map style) ---------- */
.mapx {
  position: relative;
  height: 100svh;
  min-height: 640px;
  max-height: 1080px;
  display: flex; flex-direction: column;
  background: #0b3a5a;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  overflow: hidden;
}
.mapx-top {
  position: relative; z-index: 2;
  flex: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
  padding: calc(var(--hud-h) + 14px) clamp(16px, 4vw, 56px) 14px;
  background: #0c0416;
  border-bottom: 3px solid #000;
}
.mapx-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.12;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 4px 4px 0 #000;
}
.mapx-objective {
  margin: 0 0 6px;
  padding: 8px 14px;
  background: rgba(0,0,0,.55);
  border-left: 4px solid var(--sun);
  font-size: 1rem; font-weight: 700;
  color: #fff;
}
.mapx-objective b { color: var(--sun); font-weight: 800; }

.mapx-viewport {
  position: relative;
  flex: 1; min-height: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  background: #0a1626;
}
.mapx-viewport::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  box-shadow: inset 0 0 90px rgba(0,0,0,.55);
  pointer-events: none;
}
.mapx-viewport.dragging { cursor: grabbing; }
.mapx-stage {
  position: absolute; left: 0; top: 0;
  width: 1600px; height: 900px;
  transform-origin: 0 0;
  will-change: transform;
}
.mapx-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.mapx-svg { position: relative; display: block; overflow: visible; }
.mapx-labels text {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 6px;
  fill: rgba(255,255,255,.9);
  stroke: rgba(10,14,22,.9);
  stroke-width: 5px;
  paint-order: stroke;
  text-anchor: middle;
}
.mapx-labels text.sm { font-size: 13px; letter-spacing: 4px; fill: rgba(255,255,255,.7); }
.mapx-labels text.water { fill: #7fc7e6; stroke: none; letter-spacing: 12px; font-size: 24px; }
.mapx-labels text.water.sm { font-size: 12px; letter-spacing: 5px; }
.mapx-labels text.lake { fill: #6f93a8; stroke: none; font-size: 15px; letter-spacing: 5px; }
.mapx-labels text.sand { fill: #ffd7a0; font-size: 11px; letter-spacing: 5px; }

/* Pins */
.pin {
  position: absolute;
  width: 0; height: 0;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  transform: scale(var(--inv, 1));
  transform-origin: 0 0;
  z-index: 2;
  color: #fff;
  font: inherit;
}
.pin:hover, .pin:focus-visible { z-index: 4; }
.pin:focus-visible { outline: none; }
.pin-icon {
  position: absolute; left: -32px; top: -32px;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a2d38, #0e0f14);
  border: 4px solid var(--c);
  box-shadow: 0 0 0 3px #000, 0 8px 16px rgba(0,0,0,.55), 0 0 30px var(--c);
  transition: transform .2s cubic-bezier(.2,.8,.2,1.4);
}
.pin-icon svg { width: 36px; height: 36px; }
.pin-icon::after {
  content: "";
  position: absolute; left: 50%; bottom: -14px;
  width: 0; height: 0;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top: 9px solid var(--c);
  border-bottom: 0;
}
.pin-ring {
  position: absolute; left: -32px; top: -32px;
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--c);
  animation: pinRing 2s ease-out infinite;
  pointer-events: none;
}
@keyframes pinRing { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.pin-label {
  position: absolute; left: 0; top: 46px;
  transform: translateX(-50%);
  padding: 4px 12px 5px;
  background: rgba(0,0,0,.88);
  border-bottom: 3px solid var(--c);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
  transition: background .2s, color .2s;
}
.pin-label b { display: block; font: 400 18px/1.25 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.pin-label small { display: block; font: 700 9px var(--f-body); letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.pin:hover .pin-icon, .pin:focus-visible .pin-icon, .pin.active .pin-icon { transform: scale(1.14) translateY(-3px); }
.pin:hover .pin-label, .pin:focus-visible .pin-label { background: var(--c); color: #000; }
.pin:focus-visible .pin-icon { box-shadow: 0 0 0 3px #000, 0 0 0 7px #fff; }

.mapx-zoom {
  position: absolute; z-index: 3;
  right: 16px; top: 16px;
  display: grid; gap: 6px;
}
.mapx-zoom button {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.8); color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  font: 400 1.6rem/1 var(--f-display);
  cursor: pointer;
  transition: background .15s;
}
.mapx-zoom button:hover { background: var(--pink); }

/* Shăfu' Orașului: city guide */
.mapx-main { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.shafu {
  --mx-r: 0px;
  position: absolute; z-index: 4;
  right: calc(var(--mx-r) + 8px); bottom: 0;
  display: flex; flex-direction: row-reverse; align-items: flex-start;
  pointer-events: none;
}
.shafu > * { pointer-events: auto; }
.shafu-fig {
  flex: none;
  padding: 0; border: 0; background: none; cursor: pointer;
  height: clamp(220px, 46vh, 360px);
  margin-bottom: -2px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.6));
  transition: transform .3s cubic-bezier(.2,1.4,.4,1);
}
.shafu-fig img { height: 100%; width: auto; max-width: none; transform: scaleX(-1); }
.shafu-fig:hover { transform: translateY(-4px); }
.shafu-bubble {
  position: relative;
  width: min(300px, 32vw);
  margin: clamp(20px, 6vh, 50px) -6px 0 0;
  padding: 12px 16px 14px;
  background: #fff; color: #120818;
  border: 3px solid #000;
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pink);
  font-size: .92rem; line-height: 1.45;
  transform-origin: 100% 30%;
  transition: opacity .25s, transform .3s cubic-bezier(.2,1.4,.4,1);
}
.shafu-bubble::after {
  content: ""; position: absolute; right: -16px; top: 26px;
  border: 10px solid transparent; border-left: 14px solid #000;
}
.shafu-bubble::before {
  content: ""; position: absolute; right: -10px; top: 29px; z-index: 1;
  border: 7px solid transparent; border-left: 10px solid #fff;
}
.shafu-name {
  display: block; margin-bottom: 4px;
  font: 400 1.05rem/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--pink);
}
.shafu-bubble p { margin: 0; }
.shafu-bubble p b { color: #000; font-weight: 800; }
.shafu-hide {
  position: absolute; top: 4px; right: 6px;
  width: 26px; height: 26px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: rgba(0,0,0,.45);
}
.shafu-hide:hover { color: #000; }
.shafu.min .shafu-bubble { opacity: 0; transform: scale(.6); pointer-events: none; }
.shafu.talk .shafu-bubble { animation: bubbleIn .5s cubic-bezier(.2,1.5,.4,1); }
.shafu.talk .shafu-fig { animation: shafuNod .6s ease; }
@keyframes bubbleIn { from { opacity: 0; transform: scale(.5) translateX(20px); } }
@keyframes shafuNod { 40% { transform: translateY(-8px) rotate(-2deg); } }

/* Shăfu in the shop popup, pointing at the text above */
.ms-shafu {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 clamp(10px, 2vh, 18px);
}
.ms-shafu img {
  flex: none; width: 54px; height: 54px; object-fit: cover; object-position: 50% 10%;
  border-radius: 50%; border: 3px solid var(--c); background: #1b0d24;
}
.ms-shafu p {
  position: relative; margin: 0;
  padding: 8px 12px;
  background: #fff; color: #120818;
  border: 2px solid #000; border-radius: 10px;
  box-shadow: 4px 4px 0 var(--c);
  font-size: .85rem; line-height: 1.4;
}
.ms-shafu p::before {
  content: ""; position: absolute; left: -11px; top: 50%; margin-top: -7px;
  border: 7px solid transparent; border-right: 10px solid #000; border-left: 0;
}
.ms-shafu p b { font-family: var(--f-display); font-weight: 400; letter-spacing: .04em; color: #000; }

/* Header CTA once the bag is full */
.hud-mission {
  align-self: flex-start; margin: 10px 10px 0 auto;
  display: grid; gap: 2px; text-align: center;
  padding: 9px 14px;
  background: var(--sun); color: #000;
  border: 2px solid #000; border-radius: 6px;
  box-shadow: 4px 4px 0 #000;
  font: 400 .95rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  animation: ctaPulse 2s ease-in-out infinite;
}
.hud-mission b { font-weight: 400; font-size: .8em; color: var(--pink); background: #000; padding: 3px 6px; border-radius: 3px; }
.hud-mission[hidden] { display: none; }
.hud-mission:not([hidden]) + .hud-right { margin-left: 0; }

/* Bottom bar: quick travel + unlock CTA, under the map so nothing is covered */
.mapx-bottom {
  position: relative; z-index: 2;
  flex: none;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: #0c0416;
  border-top: 3px solid #000;
}
.mapx-quick {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.mapx-quick button {
  min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,.05); color: #fff;
  border: 2px solid var(--c);
  font: 400 1rem/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mapx-quick button:hover { background: var(--c); color: #000; }
.q-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-icon {
  flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0e0f14; border: 2px solid var(--c);
}
.q-icon svg { width: 20px; height: 20px; }
.q-check {
  display: none; flex: none;
  width: 20px; height: 20px; margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--money); color: #000;
}
.q-check svg { width: 13px; height: 13px; }
.mapx-quick button.done { border-style: solid; opacity: .7; }
.mapx-quick button.done .q-check { display: grid; }

.mapx-mission { flex: none; display: flex; align-items: center; gap: 14px; }
.mapx-progress p {
  margin: 0 0 4px;
  display: flex; justify-content: space-between; gap: 10px;
  font: 800 .72rem var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.mapx-progress p b { color: #fff; }
.mapx-progress p span { color: var(--sun); }
.mapx-slots { display: flex; gap: 6px; }
#missionBtn { font-size: 1rem; padding: .8em 1.2em; white-space: nowrap; }
#missionBtn.btn-done { --bg: #1877f2; color: #fff; animation: ctaPulse 2s ease-in-out infinite; }
@keyframes ctaPulse { 50% { box-shadow: 5px 5px 0 var(--night), 0 0 0 8px rgba(255,201,74,.3); } }

/* Inventory slots (HUD + map bar) */
.slot {
  position: relative;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  border: 1.5px dashed rgba(255,255,255,.22);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.5);
  font-style: normal;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.slot svg { width: 22px; height: 22px; opacity: .2; filter: grayscale(1) brightness(1.4); transition: opacity .3s, filter .3s, transform .3s; }
.slot.full {
  border: 1.5px solid var(--c);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 38%, #0e0f14), #0e0f14 75%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}
.slot.full svg { opacity: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.slot::before, .slot::after { content: ""; position: absolute; pointer-events: none; opacity: 0; }
.slot::before { inset: -3px; border-radius: 9px; border: 2px solid var(--c); }
.slot::after {
  inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%) -120% 0 / 250% 100% no-repeat;
}
.slot.pop { animation: slotPop .7s cubic-bezier(.2,1.6,.4,1); z-index: 1; }
.slot.pop svg { animation: slotIcon .7s cubic-bezier(.2,1.6,.4,1); }
.slot.pop::before { animation: slotRing .8s ease-out; }
.slot.pop::after { animation: slotShine .9s .15s ease-out; }
@keyframes slotPop { 0% { transform: scale(.3); } 45% { transform: scale(1.35); } 70% { transform: scale(.92); } 100% { transform: none; } }
@keyframes slotIcon { 0% { transform: rotate(-30deg) scale(.4); } 60% { transform: rotate(10deg) scale(1.15); } 100% { transform: none; } }
@keyframes slotRing { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(2.3); } }
@keyframes slotShine { 0% { opacity: 1; background-position: -120% 0; } 100% { opacity: 1; background-position: 220% 0; } }

/* ---------- Modal ---------- */
html.modal-open, html.modal-open body { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 36px);
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,2,14,.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-box {
  position: relative;
  display: flex; flex-direction: column;
  width: min(1100px, 100%);
  max-height: min(92svh, 880px);
  background: #12061f;
  border: 3px solid #000;
  box-shadow: 0 0 0 2px rgba(255,255,255,.16), 16px 16px 0 rgba(0,0,0,.5);
  overflow: hidden;
  outline: none;
  opacity: 0;
  transform: translateY(26px) scale(.97);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.modal-content::-webkit-scrollbar { display: none; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: #000; color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.modal-close:hover { background: var(--pink); transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; }

/* Shop modal: sized to the viewport so it never needs to scroll */
.modal-shop { height: min(88svh, 800px); }
.ms {
  --accent: var(--c);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  height: 100%;
}
.ms-art {
  position: relative;
  min-height: 0;
  background: #000;
  border-right: 5px solid var(--c);
  overflow: hidden;
}
.ms-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  animation: msZoom .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes msZoom { from { transform: scale(1.08); opacity: .4; } }
.ms-bg {
  position: absolute; inset: -40px;
  width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
  object-fit: cover;
  filter: blur(28px) saturate(1.3) brightness(.6);
}
.ms-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 70%, rgba(0,0,0,.75));
  pointer-events: none;
}
.ms-who {
  position: absolute; z-index: 1; top: 14px; left: 14px; right: 14px;
  justify-self: start;
  width: fit-content;
  padding: 5px 12px;
  background: var(--c); color: #000;
  font: 400 1rem/1.3 var(--f-display); letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
}
.ms-thumbs {
  position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px;
  display: flex; gap: 8px;
}
.ms-thumb {
  --th: clamp(46px, 8.5vh, 74px);
  width: calc(var(--th) * .8); height: var(--th); padding: 0;
  border: 2px solid rgba(255,255,255,.45);
  background: #000; overflow: hidden; cursor: pointer;
  opacity: .75;
  transition: opacity .15s, border-color .15s, transform .15s;
}
.ms-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ms-thumb:hover { opacity: 1; transform: translateY(-2px); }
.ms-thumb.active { opacity: 1; border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }

.ms-body {
  min-height: 0;
  display: flex; flex-direction: column;
  padding: clamp(18px, 3.4vh, 36px) clamp(22px, 3vw, 40px) clamp(18px, 3vh, 30px);
}
.ms-head { display: flex; align-items: center; gap: 12px; padding-right: 56px; }
.ms-blip {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0e0f14; border: 3px solid var(--c);
  box-shadow: 0 0 18px var(--c);
}
.ms-blip svg { width: 25px; height: 25px; }
.ms-kicker {
  margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font: 800 .72rem var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.ms-kicker b { background: var(--c); color: #000; padding: 3px 8px; }
.ms-name {
  margin-top: clamp(8px, 1.6vh, 16px);
  font-family: var(--f-display);
  font-size: clamp(2.2rem, min(5vw, 7.6vh), 4.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 5px 5px 0 #000;
  white-space: nowrap;
}
.ms-tag {
  margin: 0 0 clamp(8px, 1.6vh, 16px);
  font-family: var(--f-script);
  font-size: clamp(1.3rem, min(2.4vw, 3.8vh), 2.1rem);
  line-height: 1.3;
  color: var(--c);
  text-shadow: 3px 3px 0 #000;
}
.ms-desc {
  margin: 0 0 clamp(10px, 2.2vh, 20px);
  font-size: clamp(.9rem, 1.9vh, 1.05rem);
  line-height: 1.6;
  color: rgba(255,246,232,.9);
}
.ms-stats { max-width: none; margin: 0 0 clamp(10px, 2.2vh, 20px); padding: 10px 14px; gap: 7px; }
.ms.in .stats b::after { transform: scaleX(1); }
.ms-actions { margin-top: auto; display: flex; gap: 10px; align-items: stretch; }
.ms-actions .btn { flex: 1; justify-content: center; }
.ms-nav {
  flex: none; width: 54px;
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  font: 900 1.25rem var(--f-body);
  cursor: pointer;
}
.ms-nav:hover { background: #fff; color: #000; }
@media (max-height: 700px) and (min-width: 861px) { .ms-stats { display: none; } }

/* Like modal */
.modal-passed { width: min(640px, 100%); }
.mp { position: relative; padding: clamp(40px, 7vh, 64px) clamp(20px, 5vw, 48px) clamp(20px, 3.5vh, 30px); text-align: center; overflow: hidden; }
.mp::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 18%, rgba(255,207,63,.22), transparent 70%);
  pointer-events: none;
}
.mp > * { position: relative; }
.mp-kicker { margin: 0 0 6px; font: 800 .74rem var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.mp-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, min(8vw, 9vh), 4.2rem);
  line-height: 1.15;
  padding: .2em .1em .06em;
  margin-top: -.2em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff2b0 0%, #ffd23f 45%, #e79a0c 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 #000);
  opacity: 0; transform: scale(1.4);
  transition: opacity .3s ease, transform .55s cubic-bezier(.2,1.3,.4,1);
}
.mp-respect {
  margin: 2px 0 clamp(14px, 3vh, 24px);
  font: 400 clamp(1.2rem, 3vw, 1.6rem) var(--f-display); letter-spacing: .3em; text-transform: uppercase;
  color: #fff; opacity: 0; transition: opacity .4s ease .5s;
}
.mp-respect b { color: var(--money); font-weight: 400; font-size: 1.7em; line-height: 0; vertical-align: -.12em; margin-left: .1em; }
.mp.in .mp-title { opacity: 1; transform: none; }
.mp.in .mp-respect { opacity: 1; }
.mp-items { list-style: none; margin: 0 0 clamp(12px, 2.4vh, 20px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mp-items li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 8px;
  background: rgba(255,255,255,.04);
  border: 2px solid var(--c);
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.mp.in .mp-items li { opacity: 1; transform: none; }
.mp.in .mp-items li:nth-child(1) { transition-delay: .7s; }
.mp.in .mp-items li:nth-child(2) { transition-delay: .8s; }
.mp.in .mp-items li:nth-child(3) { transition-delay: .9s; }
.mp.in .mp-items li:nth-child(4) { transition-delay: 1s; }
.mp-items span svg { width: 30px; height: 30px; }
.mp-items b { font: 400 .8rem/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.mp-stats { margin: 0 auto clamp(14px, 3vh, 24px); max-width: 420px; text-align: left; }
.mp-stats p {
  margin: 0; padding: 7px 0;
  display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font: 800 .78rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65);
}
.mp-stats b { color: #fff; font: 400 1.05rem var(--f-display); letter-spacing: .06em; }
.mp-stats .mp-stars { color: var(--sun); letter-spacing: .1em; }
.mp-unlock {
  padding: clamp(14px, 2.6vh, 22px);
  background: rgba(255,47,164,.08);
  border: 2px solid rgba(255,47,164,.5);
}
.mp-lock { margin: 0; font: 800 .78rem var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--pink); }
.mp-text { margin: 6px auto 14px; max-width: 460px; font-size: clamp(.92rem, 2vh, 1.02rem); color: rgba(255,246,232,.9); }
.mp-text strong { color: #fff; }
.mp .btn-fb { font-size: clamp(1.1rem, 3vw, 1.5rem); }
.ml-thanks { margin: 12px 0 0; font: 400 1.15rem var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--money); }
.ml-later {
  margin-top: 12px;
  background: none; border: 0;
  font: 800 .78rem var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  cursor: pointer;
}
.ml-later:hover { color: #fff; }

/* ---------- Shops ---------- */
.shop {
  --accent: var(--pink);
  --bg1: #ff2f8f;
  --bg2: #8a1a6a;
  position: relative;
  padding: clamp(80px, 12vw, 150px) clamp(18px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
.shop-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 70% at 75% 40%, rgba(255,255,255,.25), transparent 60%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
}
.shop-bg::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 26px, rgba(255,255,255,.05) 26px 52px);
}
.shop-fupu { --accent: #ff2fa4; --bg1: #e80f80; --bg2: #6b0b55; }
.shop-pate { --accent: #ffcf3f; --bg1: #1736a8; --bg2: #070b3e; }
.shop-crasma { --accent: #ffb20f; --bg1: #ffb20f; --bg2: #b34a00; }
.shop-lapte { --accent: #3ab4ff; --bg1: #49b6f0; --bg2: #0a3d7a; }

.shop-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.shop-rev .shop-text { order: 2; }
.shop-rev .shop-art { order: 1; }

.shop-num {
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 800 .85rem var(--f-body); letter-spacing: .18em; text-transform: uppercase;
}
.shop-num span { background: #000; color: #fff; padding: 5px 10px; }
.shop-name {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.15;
  padding-top: .08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 6px 6px 0 #000;
  white-space: nowrap;
}
.shop-crasma .shop-name { color: #fff; }
.shop-tag {
  margin: 10px 0 26px;
  font-family: var(--f-script);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  color: var(--tag, #fff);
  text-shadow: 0 0 18px rgba(255,255,255,.35), 3px 3px 0 #000;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.shop-fupu .shop-tag { --tag: #ffe45c; }
.shop-pate .shop-tag { --tag: var(--gold); }
.shop-crasma .shop-tag { --tag: #fff; }
.shop-lapte .shop-tag { --tag: #fff; }
.shop-desc {
  margin: 0 0 26px;
  max-width: 540px;
  font-size: 1.1rem; font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.stats {
  list-style: none; margin: 0 0 32px; padding: 16px 18px;
  max-width: 460px;
  display: grid; gap: 10px;
  background: rgba(0,0,0,.55);
  border-left: 4px solid var(--accent);
}
.stats li { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 12px; }
.stats span { font: 800 .78rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.stats b {
  height: 10px; background: rgba(255,255,255,.15); position: relative; overflow: hidden;
}
.stats b::after {
  content: ""; position: absolute; inset: 0;
  width: var(--v); background: #fff;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .2s;
}
.shop.in .stats b::after { transform: scaleX(1); }

/* Art cards */
.shop-art { position: relative; min-height: 520px; }
.card {
  position: absolute;
  margin: 0;
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 0 3px #000;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card:hover { z-index: 5; }

.art-1 .c-main { left: 50%; top: 50%; width: min(86%, 460px); transform: translate(-50%, -50%) rotate(3deg); }
.art-1 .c-main:hover { transform: translate(-50%, -50%) rotate(0) scale(1.03); }

.art-2 .c-a { left: 2%; top: 2%; width: 62%; transform: rotate(-5deg); z-index: 2; }
.art-2 .c-b { right: 0; bottom: 0; width: 56%; transform: rotate(6deg); z-index: 1; }
.art-2 .card:hover { transform: rotate(0) scale(1.04); z-index: 5; }

.art-3 { min-height: 600px; }
.art-3 .c-a { left: 0; top: 4%; width: 52%; transform: rotate(-7deg); z-index: 2; }
.art-3 .c-b { left: 26%; top: 0; width: 48%; transform: rotate(3deg); z-index: 3; }
.art-3 .c-c { right: 0; top: 18%; width: 50%; transform: rotate(8deg); z-index: 1; }
.art-3 .card:hover { transform: rotate(0) scale(1.05); z-index: 5; }

.sticker {
  position: absolute; z-index: 6;
  right: 4%; bottom: 4%;
  padding: 10px 16px;
  font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--sun); color: #000;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-8deg);
}
.shop-pate .sticker { background: var(--gold); }
.shop-crasma .sticker { background: #fff; }
.shop-lapte .sticker { background: #fff; color: #0a3d7a; }
.art-3 .sticker { bottom: 6%; right: 10%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.shop .card { opacity: 0; }
.shop.in .card { opacity: 1; transition: opacity .6s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.shop.in .card:nth-child(2) { transition-delay: .12s, 0s; }
.shop.in .card:nth-child(3) { transition-delay: .24s, 0s; }

/* ---------- Final ---------- */
.final {
  position: relative;
  padding: clamp(90px, 14vh, 140px) 20px clamp(70px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
  background: #0c0416;
  border-top: 12px solid #000;
  border-bottom: 12px solid #000;
}
.final-bg {
  position: absolute; inset: 0; z-index: -1;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.1); opacity: .22; transition: filter 1s, opacity 1s; }
.final.complete .final-bg img { filter: none; opacity: .35; }
.final-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 45%, rgba(12,4,22,.55), rgba(12,4,22,.96));
}
.final-inner { width: 100%; max-width: 760px; margin: 0 auto; text-align: center; }
.final-kicker { margin: 0 0 6px; font: 800 .78rem var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.final-title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  text-shadow: 4px 4px 0 #000;
}
.final.complete .final-title {
  padding: .2em .1em .06em;
  margin-top: -.12em;
  background: linear-gradient(180deg, #fff2b0 0%, #ffd23f 45%, #e79a0c 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none;
  filter: drop-shadow(4px 4px 0 #000);
}
.final-sub { margin: 8px auto 28px; max-width: 520px; font-size: 1.05rem; color: rgba(255,246,232,.85); }
.final-sub b { color: var(--sun); }
.final-bag { list-style: none; margin: 0 auto 26px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.final-bag li {
  position: relative;
  background: rgba(0,0,0,.5);
  border: 2px dashed rgba(255,255,255,.25);
  transition: transform .15s ease, background .15s;
}
.final-bag li:hover { transform: translateY(-4px); background: rgba(255,255,255,.06); }
.fb-btn {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px 12px;
  background: none; border: 0; color: inherit; font: inherit;
  cursor: pointer;
}
.fb-btn:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.fb-go::after {
  content: "Intră în magazin →";
  display: block; margin-top: 2px;
  font: 800 .64rem var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--c);
}
.final-bag li.full .fb-go::after { content: "Vezi magazinul →"; }
.final-bag li.full { border: 2px solid var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); }
.fb-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0e0f14; border: 3px solid rgba(255,255,255,.2);
}
.final-bag li.full .fb-icon { border-color: var(--c); }
.fb-icon svg { width: 30px; height: 30px; opacity: .25; filter: grayscale(1); }
.final-bag li.full .fb-icon svg { opacity: 1; filter: none; }
.fb-text b { display: block; font: 400 1rem/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.fb-text small { display: block; font: 700 .68rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.fb-check {
  position: absolute; top: -10px; right: -10px;
  width: 26px; height: 26px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--money); color: #000; border: 2px solid #000;
}
.fb-check svg { width: 15px; height: 15px; }
.final-bag li.full .fb-check { display: grid; }
.final-back { margin-bottom: 30px; }
.final-back[hidden] { display: none; }

.part2 {
  display: flex; align-items: center; gap: 18px;
  padding: 18px;
  text-align: left;
  background: rgba(10,2,18,.85);
  border: 2px solid rgba(255,255,255,.15);
  border-left: 5px solid var(--pink);
}
.final.complete .part2 { border-color: var(--pink); box-shadow: 0 0 40px rgba(255,47,164,.25); }
.part2-body { flex: 1; min-width: 0; }
.part2-kicker { margin: 0; font: 800 .76rem var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--pink); }
.part2-text { margin: 4px 0 0; font-size: .98rem; color: rgba(255,246,232,.88); }
.part2-text strong { color: #fff; }
.part2 .btn-fb { width: auto; flex: none; font-size: 1.15rem; padding: .9em 1.2em; }
.lock {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--pink); color: #fff;
  border: 3px solid #fff;
  animation: lockShake 3s ease-in-out infinite;
}
.lock svg { width: 26px; height: 26px; }
@keyframes lockShake {
  0%, 80%, 100% { transform: rotate(0); }
  84% { transform: rotate(-10deg); }
  88% { transform: rotate(9deg); }
  92% { transform: rotate(-6deg); }
  96% { transform: rotate(4deg); }
}

.btn-fb {
  --bg: #1877f2;
  width: 100%; justify-content: center;
  color: #fff;
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  padding: 1em 1.2em;
  border-color: #000;
  box-shadow: 6px 6px 0 #000;
  position: relative; overflow: hidden;
}
.btn-fb:hover { --bg: #2a86ff; box-shadow: 8px 8px 0 #000; }
.btn-fb svg { width: 1.3em; height: 1.3em; flex: none; }
.btn-fb::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-fb.pulse { animation: fbPulse 1.6s ease-in-out infinite; }
@keyframes fbPulse { 50% { box-shadow: 6px 6px 0 #000, 0 0 0 8px rgba(24,119,242,.35); } }
.part2-after { margin: 16px 0 0; text-align: center; font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .06em; text-transform: uppercase; color: var(--money); }
/* ---------- Desaga HUD, notifications, collect UI ---------- */
.hud-bag {
  --c: var(--sun);
  display: grid; gap: 6px;
  margin: 2px -6px -6px; width: calc(100% + 12px);
  padding: 7px 6px 6px;
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 5px 5px;
  text-decoration: none;
  transition: background .3s;
}
.hud-bag:hover { background: rgba(255,255,255,.04); }
.hud-bag-head { display: flex; align-items: center; gap: 6px; }
.hud-bag-head svg { width: 15px; height: 15px; color: var(--sun); }
.hud-bag-label { font: 800 .68rem var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hud-bag-count {
  margin-left: auto;
  font: 400 1rem/1 var(--f-display); letter-spacing: .06em;
  color: #fff;
}
.hud-bag-count.bump { animation: countBump .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes countBump { 0% { transform: scale(1.9); color: var(--c); } 100% { transform: none; } }
.hud-slots { display: flex; gap: 6px; justify-content: flex-end; }
.hud-bag.glow { animation: bagGlow 1.4s ease-out; }
@keyframes bagGlow {
  0% { background: color-mix(in srgb, var(--c) 45%, transparent); }
  100% { background: transparent; }
}
.hud-right:has(.hud-bag.glow) { animation: panelGlow 1.4s ease-out; }
@keyframes panelGlow {
  0%, 30% { border-color: var(--glow-c, var(--sun)); box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 26px var(--glow-c, var(--sun)); }
}
.hud-slots .slot { width: 34px; height: 34px; }
.hud-slots .slot svg { width: 22px; height: 22px; }
.hud-stars i.pop { animation: starPop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes starPop { 0% { transform: scale(2.2); } 100% { transform: none; } }

.notify {
  position: fixed; z-index: 160;
  left: 50%; top: calc(var(--hud-h) + 14px);
  transform: translate(-50%, -30px);
  display: flex; align-items: center; gap: 14px;
  min-width: min(380px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 10px 14px 10px 10px;
  background: rgba(10,4,18,.95);
  border: 2px solid var(--c, var(--sun));
  box-shadow: 8px 8px 0 rgba(0,0,0,.5), 0 0 30px color-mix(in srgb, var(--c, var(--sun)) 35%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,1.3,.4,1);
}
.notify.show { opacity: 1; transform: translate(-50%, 0); }
.nt-icon {
  flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0e0f14; border: 3px solid var(--c);
}
.nt-icon svg { width: 30px; height: 30px; }
.nt-text { flex: 1; min-width: 0; line-height: 1.25; }
.nt-text small { display: block; font: 800 .66rem var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.nt-text b { display: block; font: 400 1.35rem var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.nt-text em { display: block; font: 700 .78rem var(--f-body); font-style: normal; color: var(--money); }
.nt-text i { display: block; margin-top: 2px; font: 800 .66rem var(--f-body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.nt-count { flex: none; font: 400 1.4rem var(--f-display); color: rgba(255,255,255,.75); }

.fly {
  position: fixed; z-index: 170;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0e0f14; border: 3px solid var(--c);
  box-shadow: 0 0 24px var(--c);
  pointer-events: none;
}
.fly svg { width: 32px; height: 32px; }

.pin-check {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--money); color: #000; border: 2px solid #000;
}
.pin-check svg { width: 14px; height: 14px; }
.pin.done .pin-check { display: grid; }
.pin.done .pin-ring { display: none; }
.pin.done .pin-icon { box-shadow: 0 0 0 3px #000, 0 8px 16px rgba(0,0,0,.55); }

.shop-actions { display: flex; flex-wrap: wrap; gap: 14px; }
[data-collect] svg { width: 1.1em; height: 1.1em; }
[data-collect].is-done { --bg: var(--money); pointer-events: none; }

.ms-action-slot { flex: 1; min-width: 0; display: flex; }
.ms-collect { width: 100%; justify-content: center; }
.ms-collect svg { width: 1.1em; height: 1.1em; flex: none; }
.ms-collect.is-done { --bg: var(--money); font-size: .95rem; }
.ms-plus {
  display: inline-grid; place-items: center;
  width: 1.4em; height: 1.4em;
  border: 2px solid currentColor; border-radius: 50%;
  font-family: var(--f-body); font-weight: 900; line-height: 1;
}

/* ---------- Footer ---------- */
.footer {
  padding: 56px clamp(18px, 5vw, 64px) 34px;
  background: #07020c;
  border-top: 3px solid var(--pink);
  color: rgba(255,255,255,.6);
  font-size: .95rem;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap;
}
.footer-brand { max-width: 460px; }
.footer-brand p { margin: 16px 0 12px; }
.footer-brand p a { color: #fff; }
.footer-logo .gata-mark { --w: 150px; }
.footer-site {
  font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .06em;
  text-decoration: none; color: var(--sun);
}
.footer-site:hover { color: #fff; }
.footer-label { margin: 0 0 12px; font: 800 .78rem var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer-social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.footer-social a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.2);
  color: #fff;
  transition: background .15s, border-color .15s, transform .15s;
}
.footer-social a:hover { background: var(--pink); border-color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 22px; height: 22px; }
.footer-fine {
  max-width: 1320px; margin: 40px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; color: rgba(255,255,255,.4);
}

/* ---------- Responsive ---------- */
@media (min-width: 1241px) {
  .mapx { --mx: max(56px, calc((100% - 1320px) / 2)); background: #0c0416; }
  .mapx-top, .mapx-bottom { padding-inline: var(--mx); border: 0; }
  .mapx-bottom { padding-top: 16px; padding-bottom: 20px; }
  .shafu { --mx-r: var(--mx); }
  .mapx-viewport {
    margin-inline: var(--mx);
    border: 3px solid #000;
    box-shadow: 0 0 0 2px rgba(255,47,164,.35), 0 24px 60px rgba(0,0,0,.6);
  }
}
@media (max-width: 1240px) {
  .mapx-bottom { flex-wrap: wrap; }
  .mapx-quick { flex-basis: 100%; }
  .mapx-mission { flex: 1; justify-content: space-between; min-width: 0; }
}
@media (max-width: 860px) {
  .mapx { height: auto; min-height: 0; max-height: none; scroll-margin-top: var(--hud-h); }
  .mapx-top { padding-top: 26px; }
  .mapx-viewport { flex: none; height: clamp(280px, 64vw, 540px); }
  .mapx-main { flex: none; }
  .shop-inner { grid-template-columns: 1fr; }
  .shop-rev .shop-text, .shop-rev .shop-art { order: 0; }
  .shop-art { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; margin: 0 auto; }
  .art-3 { min-height: 0; aspect-ratio: 1 / 1.1; }
  .art-1 { aspect-ratio: 1 / 1.15; }
  .hero-collage { columns: 3; column-gap: 8px; left: -14%; right: -14%; }
  .hero-collage .p { margin-bottom: 8px; border-width: 3px; }

  .modal { padding: 0; }
  .modal-shop { position: fixed; inset: 0; width: auto; height: auto; max-height: none; border: 0; box-shadow: none; }
  .ms { grid-template-columns: 1fr; grid-template-rows: minmax(150px, 1fr) auto; }
  .ms-art { border-right: 0; border-bottom: 5px solid var(--c); }
  .ms-who { font-size: .85rem; padding: 4px 10px; }
  .ms-thumb { --th: clamp(44px, 7.5vh, 62px); }
  .ms-body { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
  .ms-head { padding-right: 0; }
  .ms-blip { width: 36px; height: 36px; }
  .ms-blip svg { width: 20px; height: 20px; }
  .ms-name { margin-top: 8px; font-size: clamp(2.2rem, 11vw, 3.4rem); text-shadow: 4px 4px 0 #000; }
  .ms-tag { font-size: clamp(1.2rem, 5.6vw, 1.7rem); margin-bottom: 8px; }
  .ms-desc { font-size: .92rem; line-height: 1.55; margin-bottom: 14px; }
  .ms-stats { display: none; }
  .ms-actions { gap: 8px; }
  .ms-actions .btn { font-size: .92rem; padding: .85em .8em; white-space: nowrap; letter-spacing: .04em; }
  .ms-collect.is-done { font-size: .85rem; }
  .ms-nav { width: 46px; font-size: 1.05rem; }
  .modal-passed { width: calc(100% - 24px); max-height: calc(100svh - 24px); }
}
@media (max-width: 640px) {
  .mapx-top { padding-top: 22px; padding-bottom: 12px; }
  .mapx-title { font-size: 12vw; }
  .mapx-objective { font-size: .88rem; margin: 0; }
  .mapx-viewport { flex: none; height: clamp(280px, 82vw, 380px); }
  .shafu {
    position: relative; right: auto; bottom: auto;
    flex-direction: row; align-items: flex-end; gap: 4px;
    padding: 0 12px 0 0;
    background: #0c0416;
    border-top: 3px solid #000;
  }
  .shafu-fig { height: 150px; margin-top: -48px; }
  .shafu-fig img { transform: none; }
  .shafu-bubble { flex: 1; width: auto; margin: 10px 0 12px; padding: 10px 12px 12px; font-size: .82rem; box-shadow: 4px 4px 0 var(--pink); transform-origin: 0 50%; }
  .shafu-bubble::after { right: auto; left: -16px; top: auto; bottom: 18px; border-left: 0; border-right: 14px solid #000; }
  .shafu-bubble::before { right: auto; left: -10px; top: auto; bottom: 21px; border-left: 0; border-right: 10px solid #fff; }
  .shafu-name { font-size: .92rem; }
  .shafu.min .shafu-bubble { display: none; }
  .shafu.min { justify-content: flex-start; }
  .ms-shafu { gap: 10px; margin-bottom: 12px; }
  .ms-shafu img { width: 42px; height: 42px; }
  .ms-shafu p { font-size: .78rem; padding: 6px 10px; }
  .hud-mission { margin: 8px 8px 0 auto; padding: 6px 8px; font-size: .72rem; }
  .mapx-zoom { display: none; }
  .pin { transform: scale(calc(var(--inv, 1) * .64)); }
  .mapx-bottom { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
  .mapx-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapx-quick button { padding: 5px 8px 5px 5px; font-size: .9rem; }
  .q-icon { width: 28px; height: 28px; }
  #missionBtn { flex: 1; min-width: 0; justify-content: center; font-size: .92rem; padding: .8em .7em; }
  .slot { width: 30px; height: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --hud-h: 56px; }
  .hud { padding: 0 14px; }
  .hud-logo .gata-mark { --w: 62px; }
  .hud-logo em { font-size: 1.1rem; }
  .hud-money { font-size: 1.55rem; }
  .hud-stars i { width: 19px; height: 19px; }
  .hud-right { margin-top: 8px; padding: 6px 8px 8px; gap: 4px; }

  .btn { font-size: 1rem; padding: .85em 1.2em; }
  .hero { padding: calc(var(--hud-h) + 24px) 18px 96px; }
  .hero-tag { font-size: 11vw; }
  .hero-tag span { box-shadow: 3px 3px 0 var(--pink); }
  .hero-sub { margin-top: 20px; padding: 9px 14px; font-size: .95rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-cta .btn { justify-content: center; }
  .t-gata { --w: min(82vw, 52svh); }
  .t-city { transform: rotate(-7deg) translateX(10%); font-size: 16vw; }
  .ticker { font-size: .8rem; }
  .ticker-label { padding: 10px 12px; }

  .shop { padding: 72px 18px; }
  .shop-name { font-size: 13vw; text-shadow: 4px 4px 0 #000; }
  .shop-desc { font-size: 1rem; }
  .stats li { grid-template-columns: 130px 1fr; }
  .stats span { font-size: .7rem; }
  .shop-art { margin-top: 8px; }
  .card { padding: 6px 6px 20px; }
  .sticker { font-size: 1rem; padding: 8px 12px; }

  .final { padding: 80px 16px 60px; }
  .final-bag { grid-template-columns: repeat(2, 1fr); }
  .final-bg { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
  .part2 { flex-wrap: wrap; }
  .part2 .btn-fb { width: 100%; }
  .mp-items { grid-template-columns: repeat(2, 1fr); }
  .hud-bag { margin: 0 -4px -4px; width: calc(100% + 8px); padding: 5px 4px 4px; gap: 4px; }
  .hud-bag-label { font-size: .6rem; letter-spacing: .14em; }
  .hud-bag-head svg { width: 13px; height: 13px; }
  .hud-bag-count { font-size: .9rem; }
  .hud-slots { gap: 4px; }
  .hud-slots .slot { width: 28px; height: 28px; border-radius: 6px; }
  .hud-slots .slot svg { width: 18px; height: 18px; }
  .shop-actions .btn { flex: 1 1 100%; justify-content: center; }

  .footer { padding: 44px 18px 28px; }
  .footer-inner { flex-direction: column; gap: 28px; }

  .loader-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
