/* ══════════════════════════════════════════════════════════════
   PINK CITY TOWN — UI
   neon Dhaka · hot pink · glass & chrome
   ══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Archivo Black';
  src: url('./assets/fonts/archivo-black-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'Hind Siliguri';
  src: url('./assets/fonts/hind-siliguri-bengali-600.woff2') format('woff2');
  font-weight: 600;
  font-display: block;
}

:root {
  --pink: #ff2d78;
  --pink-soft: #ff6fa5;
  --pink-pale: #ffd0e0;
  --teal: #38e8cf;
  --amber: #ffc857;
  --ink: #08050d;
  --ink-2: #140b18;
  --plum: #2a1030;
  --cream: #fff4f8;
  --glass: rgba(16, 8, 20, 0.58);
  --line: rgba(255, 120, 170, 0.32);
  --font-display: 'Archivo Black', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --font-ui: 'Avenir Next', 'Inter', system-ui, -apple-system, sans-serif;
  --font-bn: 'Hind Siliguri', 'Bangla Sangam MN', 'Kohinoor Bangla', 'Noto Sans Bengali', sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%; width: 100%;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* ───────────── boot / title ───────────── */
.overlay {
  position: fixed; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 110%, #4a0b2a 0%, #1a0614 45%, #08050d 100%);
  overflow: hidden;
  height: 100dvh;
}
.boot-glow {
  position: absolute; left: 50%; bottom: -22%;
  width: 120vmax; height: 70vmax; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 45, 120, 0.5), rgba(255, 45, 120, 0) 62%);
  filter: blur(14px);
  pointer-events: none;
}
.boot-grid {
  position: absolute; inset: -10% -20%;
  background-image:
    linear-gradient(rgba(255, 90, 150, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 90, 150, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(62deg) translateY(24%);
  mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  pointer-events: none;
}
/* the whole title block always fits: it scales to the shorter axis and
   scrolls only if a window is truly tiny */
.boot-content {
  position: relative; z-index: 2;
  width: min(960px, 92vw);
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: clamp(12px, 3.2vh, 30px) 24px clamp(12px, 2.6vh, 26px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
}
.boot-content::-webkit-scrollbar { display: none; }
.kicker {
  font-size: 10.5px; letter-spacing: 0.32em; font-weight: 600;
  color: var(--pink-pale); opacity: 0.85;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.kicker .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 14px var(--pink); animation: blink 1.8s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.logo {
  margin: clamp(6px, 1.6vh, 14px) 0 4px;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.035em;
  display: flex; flex-direction: column; align-items: center;
  transform: skewX(-5deg);
  filter: drop-shadow(0 10px 42px rgba(255, 20, 100, 0.55));
}
.logo span { display: block; }
.logo .l1, .logo .l2, .logo .l3 {
  /* clamp against vh as well as vw, so a short laptop screen still fits */
  font-size: clamp(34px, min(12.5vw, 17vh), 148px);
}
.logo .l1 {
  color: #fff1f6;
  text-shadow: 0 0 0 #fff, 0 0 34px rgba(255, 120, 170, 0.55);
}
.logo .l2 {
  color: var(--pink);
  text-shadow: 0 0 30px rgba(255, 45, 120, 0.9), 0 0 90px rgba(255, 45, 120, 0.45);
}
.logo .l3 {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 200, 220, 0.75);
  margin-top: 0.06em;
}
.bangla {
  font-family: var(--font-bn); font-weight: 600;
  font-size: clamp(16px, min(3.2vw, 4.4vh), 34px);
  color: var(--pink-pale);
  letter-spacing: 0.02em;
  margin-top: clamp(4px, 1.4vh, 12px);
  text-shadow: 0 0 30px rgba(255, 45, 120, 0.7);
}
.tagline {
  margin: clamp(6px, 1.6vh, 12px) 0 clamp(10px, 2.6vh, 22px);
  font-size: clamp(10.5px, 1.6vh, 13.5px); line-height: 1.55;
  color: rgba(255, 235, 244, 0.7);
  letter-spacing: 0.02em;
}
#play-btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.7vh, 15px); letter-spacing: 0.16em;
  color: #1a0410;
  background: linear-gradient(180deg, #ff8ab6, var(--pink) 55%, #e10f55);
  padding: clamp(10px, 1.9vh, 17px) clamp(24px, 4vw, 42px);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 210, 225, 0.65), 0 14px 40px rgba(255, 20, 100, 0.42);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
}
#play-btn:not(:disabled):hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px #fff, 0 20px 50px rgba(255, 20, 100, 0.6); }
#play-btn:not(:disabled):active { transform: translateY(1px) scale(0.99); }
#play-btn:disabled { cursor: progress; filter: saturate(0.4) brightness(0.7); }

.controls-grid {
  margin: clamp(10px, 2.4vh, 26px) auto 0;
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: clamp(4px, 0.9vh, 8px);
}
.controls-grid div {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 130, 175, 0.15);
  border-radius: 4px;
  padding: clamp(4px, 0.9vh, 8px) 4px clamp(4px, 0.8vh, 7px);
  display: flex; flex-direction: column; gap: 3px;
}
.controls-grid b {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(8.5px, 1.3vh, 10.5px); letter-spacing: 0.1em; color: var(--pink-pale);
}
.controls-grid span { font-size: clamp(7.5px, 1.1vh, 9px); letter-spacing: 0.06em; color: rgba(255, 240, 246, 0.45); }
.footnote { margin-top: clamp(8px, 1.8vh, 18px); font-size: clamp(7.5px, 1.1vh, 9.5px); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 230, 240, 0.32); }

/* short viewports: shrink the title block, drop the tagline on real tiny screens */
@media (max-height: 700px) {
  .logo .l1, .logo .l2, .logo .l3 { font-size: clamp(30px, min(10.5vw, 15vh), 110px); }
  .tagline { display: none; }
  .footnote { display: none; }
  #play-btn { padding: 10px 30px; }
  .controls-grid { margin-top: 10px; }
}
@media (max-height: 520px) {
  .bangla { display: none; }
  .logo .l1, .logo .l2, .logo .l3 { font-size: clamp(24px, 13vh, 64px); }
  .controls-grid { display: none; }
  .kicker { display: none; }
}

/* ───────────── HUD ───────────── */
#hud {
  position: fixed; inset: 0; z-index: 10;
  pointer-events: none;
  font-family: var(--font-ui);
  opacity: 0; transition: opacity 0.6s ease;
}
#hud.show { opacity: 1; }

.hud-tl { position: absolute; top: 20px; left: 22px; width: 268px; }
.brand {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 45, 120, 0.9);
}
.brand em { font-style: normal; color: var(--pink); }
.brand::after {
  content: ''; display: block; width: 46px; height: 2px; margin-top: 7px;
  background: var(--pink); box-shadow: 0 0 12px var(--pink);
}
.stat { margin-top: 14px; }
.stat .label {
  display: flex; justify-content: space-between;
  font-size: 8.5px; letter-spacing: 0.22em; color: rgba(255, 235, 244, 0.55);
  margin-bottom: 5px;
}
.stat .label span { color: var(--pink-pale); font-family: var(--font-display); letter-spacing: 0.05em; }
.bar {
  height: 7px; border-radius: 1px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
#health-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #ff2d78, #ff8a5c);
  box-shadow: 0 0 14px rgba(255, 45, 120, 0.8);
  transition: width 0.25s ease;
}
.stat-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.money {
  font-family: var(--font-display); font-size: 21px; letter-spacing: 0.01em;
  color: #c9ffe9; text-shadow: 0 0 20px rgba(56, 232, 207, 0.6);
}
.heat { display: flex; gap: 2px; font-size: 15px; line-height: 1; }
.heat i { color: rgba(255, 255, 255, 0.16); font-style: normal; transition: color 0.2s, text-shadow 0.2s; }
.heat i.on { color: var(--pink); text-shadow: 0 0 12px var(--pink); }
.district {
  margin-top: 9px; font-size: 8.5px; letter-spacing: 0.12em;
  color: rgba(255, 220, 235, 0.4);
}

.hud-top {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: min(460px, 42vw); text-align: center;
}
#objective {
  background: linear-gradient(180deg, rgba(20, 8, 26, 0.86), rgba(20, 8, 26, 0.45));
  border: 1px solid var(--line);
  border-top: 2px solid var(--pink);
  border-radius: 3px;
  padding: 10px 16px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.obj-kicker { font-size: 8px; letter-spacing: 0.3em; color: var(--pink); margin-bottom: 3px; }
#obj-title { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.04em; }
#obj-desc { font-size: 11px; color: rgba(255, 238, 245, 0.7); margin-top: 3px; line-height: 1.4; }
.obj-timer { font-family: var(--font-display); font-size: 17px; color: var(--amber); margin-top: 4px; letter-spacing: 0.04em; }
.obj-timer:empty { display: none; }

.hud-bl { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: flex-end; gap: 12px; }
.minimap-wrap {
  position: relative; width: 168px; height: 168px;
  border-radius: 50%;
  background: #0b0710;
  box-shadow: 0 0 0 2px rgba(255, 45, 120, 0.5), 0 0 34px rgba(255, 45, 120, 0.18), inset 0 0 40px #000;
  overflow: hidden;
}
#minimap { width: 100%; height: 100%; display: block; }
.minimap-ring {
  position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(255, 200, 220, 0.16);
  pointer-events: none;
}
.compass {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 9px; color: var(--pink-pale);
  letter-spacing: 0.05em; text-shadow: 0 0 8px #000;
}
.clockwrap { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; }
#clock { font-family: var(--font-display); font-size: 19px; color: #fff; letter-spacing: 0.04em; }
#area-name { font-size: 8px; letter-spacing: 0.24em; color: var(--pink-soft); }

.hud-br { position: absolute; right: 22px; bottom: 22px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
#speedo { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
#speed-num { font-family: var(--font-display); font-size: 44px; line-height: 0.9; text-shadow: 0 0 28px rgba(56, 232, 207, 0.55); }
#speedo .unit { font-size: 8.5px; letter-spacing: 0.2em; color: var(--teal); }
#car-name { font-size: 9px; letter-spacing: 0.18em; color: rgba(255, 235, 244, 0.55); margin-left: 6px; }
.radio-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--line);
  padding: 7px 11px; border-radius: 3px; backdrop-filter: blur(10px);
  font-size: 8.5px; letter-spacing: 0.18em; color: var(--pink-pale);
}
.wave { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.wave i { width: 2px; background: var(--pink); box-shadow: 0 0 6px var(--pink); animation: eq 0.9s infinite ease-in-out; }
.wave i:nth-child(1) { height: 4px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 9px; animation-delay: 0.12s; }
.wave i:nth-child(3) { height: 6px; animation-delay: 0.28s; }
.wave i:nth-child(4) { height: 10px; animation-delay: 0.4s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.radio-chip.muted { border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 235, 244, 0.4); }
.radio-chip.muted .wave i { animation: none; transform: scaleY(0.18); background: rgba(255,235,244,0.3); box-shadow: none; }

#prompt {
  position: absolute; left: 50%; bottom: 132px; transform: translateX(-50%);
  background: rgba(12, 6, 16, 0.8); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 3px; backdrop-filter: blur(10px);
  font-size: 11px; letter-spacing: 0.08em; color: #fff;
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
}
#prompt b {
  font-family: var(--font-display); font-weight: 400;
  background: var(--pink); color: #12040c; padding: 2px 7px; border-radius: 2px;
  font-size: 10px; letter-spacing: 0.05em;
}
#hintbar {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 8px; letter-spacing: 0.16em; color: rgba(255, 235, 244, 0.3);
  white-space: nowrap;
}
#crosshair {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1.5px rgba(255, 45, 120, 0.8), 0 0 10px rgba(255, 45, 120, 0.6);
}
#toasts {
  position: absolute; right: 22px; top: 22px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px;
  width: 300px;
}
.toast {
  background: linear-gradient(90deg, rgba(255, 45, 120, 0.14), rgba(14, 7, 18, 0.9));
  border-left: 2px solid var(--pink);
  border-radius: 2px;
  padding: 8px 12px; font-size: 11px; line-height: 1.4;
  color: rgba(255, 244, 248, 0.92);
  backdrop-filter: blur(8px);
  animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.toast b { color: var(--pink-soft); font-weight: 600; }
.toast.good { border-left-color: var(--teal); background: linear-gradient(90deg, rgba(56, 232, 207, 0.12), rgba(14, 7, 18, 0.9)); }
.toast.bad { border-left-color: #ff3b3b; background: linear-gradient(90deg, rgba(255, 59, 59, 0.16), rgba(14, 7, 18, 0.9)); }
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(26px); } }

#splash {
  position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%);
  text-align: center; width: min(720px, 90vw);
  animation: splashIn 0.45s ease both;
}
.splash-line { width: 90px; height: 2px; margin: 0 auto 14px; background: var(--pink); box-shadow: 0 0 20px var(--pink); }
#splash h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 5vw, 54px); margin: 0; letter-spacing: 0.01em;
  color: #fff; text-shadow: 0 0 40px rgba(255, 45, 120, 0.85);
}
#splash p { font-family: var(--font-bn); font-size: 15px; color: var(--pink-pale); margin: 8px 0 0; letter-spacing: 0.01em; }
@keyframes splashIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }

#vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(10, 0, 6, 0.55) 100%);
  mix-blend-mode: multiply;
}
#hitflash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(255, 20, 60, 0.55) 100%);
  opacity: 0; transition: opacity 0.35s ease;
}
#hitflash.on { opacity: 1; transition: opacity 0.05s; }

/* ───────────── phone ───────────── */
#phone {
  position: fixed; inset: 0; z-index: 25;
  background: rgba(5, 2, 8, 0.72); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.phone-body {
  width: min(440px, 92vw); max-height: 86vh;
  background: linear-gradient(160deg, #1b0d20, #0d0512 70%);
  border: 1px solid rgba(255, 120, 170, 0.4);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 0 6px rgba(255, 255, 255, 0.03), inset 0 0 80px rgba(255, 45, 120, 0.06);
  display: flex; flex-direction: column; overflow: hidden;
  animation: phoneIn 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.phone-notch { width: 90px; height: 5px; border-radius: 3px; background: #000; margin: 8px auto 0; opacity: 0.7; }
.phone-status {
  display: flex; justify-content: space-between; padding: 6px 22px 0;
  font-size: 8px; letter-spacing: 0.16em; color: rgba(255, 235, 244, 0.45);
}
.phone-head { padding: 10px 22px 14px; border-bottom: 1px solid rgba(255, 120, 170, 0.14); }
.phone-head h3 {
  font-family: var(--font-display); font-weight: 400; margin: 10px 0 2px;
  font-size: 24px; letter-spacing: 0.02em;
}
.phone-head h3 span { font-family: var(--font-bn); font-weight: 600; font-size: 12px; color: var(--pink-soft); margin-left: 8px; letter-spacing: 0.01em; }
.phone-head p { margin: 2px 0 0; font-size: 10px; color: rgba(255, 235, 244, 0.5); }
.phone-missions { padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.job-card {
  border: 1px solid rgba(255, 130, 175, 0.18);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px; padding: 11px 13px;
  display: flex; flex-direction: column; gap: 5px;
  pointer-events: auto;
}
.job-card.done { opacity: 0.5; }
.job-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.job-card h4 { margin: 0; font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.02em; }
.job-card .pay { font-family: var(--font-display); font-size: 12px; color: var(--teal); white-space: nowrap; }
.job-card p { margin: 0; font-size: 10px; line-height: 1.45; color: rgba(255, 235, 244, 0.6); }
.job-card .bn { font-family: var(--font-bn); font-size: 10px; color: var(--pink-soft); }
.job-card button {
  align-self: flex-start; margin-top: 3px;
  background: var(--pink); color: #15040d; border: 0; border-radius: 3px;
  font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.1em;
  padding: 7px 14px; cursor: pointer;
}
.job-card button:disabled { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.4); cursor: default; }
.phone-foot {
  margin-top: auto; padding: 12px 20px 16px;
  border-top: 1px solid rgba(255, 120, 170, 0.14);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-display); font-size: 12px; color: var(--teal);
}
#phone-heat { font-size: 8px; letter-spacing: 0.16em; color: rgba(255, 235, 244, 0.45); font-family: var(--font-ui); }
#phone-close {
  background: rgba(255, 255, 255, 0.06); color: var(--pink-pale);
  border: 1px solid rgba(255, 130, 175, 0.3); border-radius: 3px;
  font-family: var(--font-display); font-size: 9px; letter-spacing: 0.08em;
  padding: 7px 11px; cursor: pointer;
}

/* ───────────── pause ───────────── */
#pause { background: rgba(6, 2, 9, 0.82); backdrop-filter: blur(14px); z-index: 28; }
.pause-box { text-align: center; width: min(520px, 90vw); }
.pause-box h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 46px); margin: 10px 0 6px; }
.pause-box p { font-size: 11px; color: rgba(255, 235, 244, 0.55); margin: 0 0 20px; }
#resume-btn {
  background: var(--pink); border: 0; color: #15040d; cursor: pointer;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em;
  padding: 13px 34px; border-radius: 3px;
}
.pause-stats { display: flex; justify-content: center; gap: 26px; margin-top: 26px; }
.pause-stats div { display: flex; flex-direction: column; gap: 3px; }
.pause-stats span { font-family: var(--font-display); font-size: 19px; color: var(--pink-pale); }
.pause-stats small { font-size: 7.5px; letter-spacing: 0.2em; color: rgba(255, 235, 244, 0.4); }
.pause-note { margin-top: 24px; font-size: 9px; letter-spacing: 0.14em; color: rgba(255, 235, 244, 0.3); }

#fade {
  position: fixed; inset: 0; z-index: 40; background: #000;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
#fade.on { opacity: 1; }
#fade.ready { pointer-events: auto; }

/* ───────────── responsive ───────────── */
@media (max-width: 820px) {
  .hud-tl { width: 200px; }
  .minimap-wrap { width: 124px; height: 124px; }
  .hud-top { width: 54vw; }
  #hintbar { display: none; }
  #toasts { width: 220px; }
  .logo { transform: skewX(-4deg) scale(0.95); }
}

/* ══════════════════════════════════════════════════════════════
   GPS · MAP · SETTINGS
   ══════════════════════════════════════════════════════════════ */

/* ── GPS strip above the minimap ── */
#gps {
  position: absolute; left: 22px; bottom: 200px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(14,7,18,0.9), rgba(14,7,18,0.45));
  border: 1px solid rgba(124, 245, 255, 0.32);
  border-left: 2px solid var(--teal);
  border-radius: 3px;
  padding: 8px 14px 8px 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
}
#gps-arrow {
  font-size: 17px; line-height: 1; color: var(--teal);
  text-shadow: 0 0 14px rgba(56,232,207,0.9);
  transition: transform 0.12s linear;
  transform-origin: 50% 50%;
}
.gps-text { display: flex; flex-direction: column; line-height: 1.15; }
#gps-label { font-size: 7.5px; letter-spacing: 0.24em; color: rgba(255,235,244,0.5); }
#gps-dist { font-family: var(--font-display); font-size: 14px; color: #fff; letter-spacing: 0.02em; }

#altitude {
  position: absolute; right: 22px; bottom: 104px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em;
  color: var(--teal); text-shadow: 0 0 16px rgba(56,232,207,0.7);
}

/* ── full map ── */
#mapScreen {
  position: fixed; inset: 0; z-index: 26;
  background: radial-gradient(ellipse at 50% 40%, #180a20 0%, #06030a 75%);
  display: flex; align-items: center; justify-content: center;
  animation: mapIn 0.22s ease both;
}
@keyframes mapIn { from { opacity: 0; } to { opacity: 1; } }
#bigmap {
  width: min(78vh, 92vw); height: min(78vh, 92vw);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,45,120,0.28), 0 40px 120px rgba(0,0,0,0.8);
  cursor: crosshair;
}
.map-head {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 22px 30px; display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.map-head h2 {
  font-family: var(--font-display); font-weight: 400;
  margin: 0; font-size: 26px; letter-spacing: 0.03em;
  text-shadow: 0 0 30px rgba(255,45,120,0.7);
}
.map-head p { margin: 3px 0 0; font-family: var(--font-bn); font-size: 12px; color: var(--pink-soft); }
.map-hint { font-size: 9px; letter-spacing: 0.14em; color: rgba(255,235,244,0.45); }
.map-hint b { color: var(--pink-pale); }
.map-legend {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  font-size: 8px; letter-spacing: 0.18em; color: rgba(255,235,244,0.55);
}
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-foot {
  position: absolute; top: 50%; right: 28px; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 8px; letter-spacing: 0.2em;
  color: rgba(255,235,244,0.35);
}

/* ── settings ── */
#settings {
  position: fixed; inset: 0; z-index: 27;
  background: rgba(5,2,8,0.78); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
}
.set-card {
  width: min(560px, 94vw); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(160deg, #1a0d20, #0b0510 72%);
  border: 1px solid rgba(255,120,170,0.34);
  border-radius: 10px;
  box-shadow: 0 34px 100px rgba(0,0,0,0.8);
  animation: phoneIn 0.24s cubic-bezier(0.2,0.9,0.2,1) both;
}
.set-card header { padding: 20px 22px 14px; border-bottom: 1px solid rgba(255,120,170,0.16); }
.set-card header h2 {
  font-family: var(--font-display); font-weight: 400; margin: 0;
  font-size: 22px; letter-spacing: 0.04em;
}
.set-card header p { margin: 4px 0 0; font-family: var(--font-bn); font-size: 11px; color: var(--pink-soft); }
.set-body { padding: 8px 22px 16px; }
.set-body section { padding: 14px 0 6px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.set-body section:last-child { border-bottom: 0; }
.set-body h3 {
  margin: 0 0 10px; font-size: 8px; letter-spacing: 0.28em;
  color: var(--pink); font-weight: 600;
}
.set-body .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 7px 0; font-size: 11.5px; color: rgba(255,244,248,0.86);
}
.set-body .row input[type=range] { width: 190px; accent-color: var(--pink); }
.set-body .row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--pink); }
.set-body .row select {
  background: rgba(255,255,255,0.06); color: var(--cream);
  border: 1px solid rgba(255,130,175,0.3); border-radius: 3px;
  padding: 5px 8px; font-size: 10.5px; font-family: var(--font-ui);
}
.set-note { margin: 0 0 10px; font-size: 9.5px; line-height: 1.5; color: rgba(255,235,244,0.45); }
.set-btns { display: flex; gap: 8px; }
.set-btns button, .set-card footer button {
  cursor: pointer; border: 0; border-radius: 3px;
  font-family: var(--font-display); font-size: 9px; letter-spacing: 0.1em;
  padding: 9px 14px; background: rgba(255,255,255,0.08); color: var(--pink-pale);
  border: 1px solid rgba(255,130,175,0.3);
}
.set-btns button:first-child { background: var(--pink); color: #15040d; border-color: transparent; }
.set-card footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-top: 1px solid rgba(255,120,170,0.16);
  font-size: 9px; letter-spacing: 0.12em; color: rgba(255,235,244,0.4);
}

@media (max-width: 820px) {
  #gps { bottom: 148px; left: 16px; padding: 6px 10px; }
  #gps-dist { font-size: 12px; }
  .map-head { padding: 14px 16px; }
  .map-head h2 { font-size: 18px; }
  .map-foot { display: none; }
}
