/* =============================================
   Main CSS - GitHub Pages Compatible
   Converted from style.scss → plain CSS
============================================= */

:root {
  --bg0: #05020a;
  --bg1: #070b1c;

  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.58);

  --cyan: #00e5ff;
  --mag: #ff2bd6;
  --acid: #b7ff00;

  --shadow: 0 26px 90px rgba(0, 0, 0, 0.7);
  --radius: 20px;
  --max: 1120px;

  --mx: 50%;
  --my: 30%;
  --tiltX: 0deg;
  --tiltY: 0deg;

  --targetH: 120px;

  --openMs: 2000ms;
  --panelEase: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 18% 0%, rgba(124, 92, 255, 0.22), transparent 58%),
    radial-gradient(900px 650px at 88% 10%, rgba(0, 229, 255, 0.18), transparent 60%),
    radial-gradient(900px 650px at 60% 110%, rgba(255, 43, 214, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto;
}

/* =========================
   Background layers
========================= */

body::before {
  content: "";
  position: fixed;
  inset: -30vmax;
  pointer-events: none;
  z-index: -4;
  background:
    linear-gradient(to right, transparent 0 21px, rgba(0, 229, 255, 0.1) 22px),
    linear-gradient(to bottom, transparent 0 21px, rgba(255, 43, 214, 0.08) 22px);
  background-size: 22px 22px;
  transform: perspective(900px) rotateX(74deg) translateY(30vh);
  opacity: 0.55;
  filter: blur(0.15px);
}

.aurora {
  position: fixed;
  inset: -40vmax;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(900px 600px at var(--mx) var(--my), rgba(0, 229, 255, 0.22), transparent 60%),
    radial-gradient(900px 650px at calc(var(--mx) + 14%) calc(var(--my) + 10%), rgba(255, 43, 214, 0.18), transparent 62%),
    radial-gradient(900px 650px at calc(var(--mx) - 12%) calc(var(--my) + 18%), rgba(183, 255, 0, 0.10), transparent 60%);
  filter: blur(26px) saturate(180%);
  opacity: 0.95;
  transform: translateZ(0);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.20;
  mix-blend-mode: overlay;
  filter: contrast(120%);
  background-size: 420px 420px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, transparent 38%, rgba(0, 0, 0, 0.62) 95%),
    repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      rgba(0, 0, 0, 0) 3px,
      rgba(0, 0, 0, 0) 6px);
  mix-blend-mode: overlay;
  opacity: 0.38;
}

/* ...rest of the CSS remains identical... */

/* =========================
   Navigation
========================= */

.nav-menu {
  position: relative;
  flex: 0 0 auto;
}

.nav-menu>summary {
  list-style: none;
}

.nav-menu>summary::-webkit-details-marker {
  display: none;
}

.nav-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 6, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.7);
  z-index: 2000;
}

.nav-link {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link:hover {
  border-color: rgba(0, 229, 255, 0.28);
}

@media (max-width: 720px) {
  .nav-panel {
    left: 0;
    right: 0;
    min-width: 0;
    width: min(360px, calc(100vw - 24px));
  }
}

/* =========================
   Topbar / Brand
========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 229, 255, 0.22);
  background: linear-gradient(to bottom, rgba(5, 2, 10, 0.86), rgba(5, 2, 10, 0.50));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.75), rgba(255, 43, 214, 0.65), transparent);
  opacity: 0.65;
  pointer-events: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.32);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.20),
    0 16px 38px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(0, 229, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  display: block;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title strong {
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-title span {
  font-size: 12px;
  color: var(--muted2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Focus */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

/* =========================
   Layout / Tiles
========================= */

.hero {
  padding: 26px 0 36px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
}

.tile {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow: visible;
  position: relative;
}

/* Summary tile */
.hero-main {
  grid-column: span 12;
  padding: 22px;
  padding-bottom: 34px;
  overflow: visible !important;
  transform: perspective(1200px) rotateX(var(--tiltX)) rotateY(var(--tiltY));
  transform-origin: center;
  will-change: transform;
}

.hero-main .panel {
  overflow: visible;
}

.kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted2);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(183, 255, 0, 0.45);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(183, 255, 0, 0.38);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(183, 255, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(183, 255, 0, 0);
  }
}

.subtitle {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 920px;
}

/* Buttons */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  will-change: transform;
}

.btn.primary {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.25), rgba(255, 43, 214, 0.18));
  border-color: rgba(0, 229, 255, 0.28);
}

.btn.ghost {
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 26px rgba(0, 229, 255, 0.10);
  border-color: rgba(0, 229, 255, 0.35);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 95px rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 43, 214, 0.22);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.arrow {
  opacity: 0.85;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chip {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

/* Sections */
section {
  scroll-margin-top: 96px;
}

.section-card {
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.4px;
  font-weight: 950;
  text-transform: uppercase;
}

.tagline {
  margin: 0;
  color: var(--muted2);
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  padding: 22px 0 40px;
  color: var(--muted2);
  font-size: 13px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Glitch */
.glitch {
  position: relative;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0.45;
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}

.glitch::before {
  transform: translate(1px, 0);
  color: var(--cyan);
  animation: glitch1 2.8s infinite linear;
}

.glitch::after {
  transform: translate(-1px, 0);
  color: var(--mag);
  animation: glitch2 3.4s infinite linear;
}

@keyframes glitch1 {

  0%,
  100% {
    clip-path: inset(0 0 92% 0);
    opacity: 0;
  }

  10% {
    clip-path: inset(0 0 60% 0);
    opacity: 0.45;
  }

  11% {
    clip-path: inset(30% 0 35% 0);
  }

  12% {
    clip-path: inset(70% 0 10% 0);
    opacity: 0;
  }

  50% {
    clip-path: inset(10% 0 55% 0);
    opacity: 0.4;
  }

  51% {
    clip-path: inset(55% 0 15% 0);
    opacity: 0;
  }
}

@keyframes glitch2 {

  0%,
  100% {
    clip-path: inset(0 0 90% 0);
    opacity: 0;
  }

  20% {
    clip-path: inset(40% 0 40% 0);
    opacity: 0.4;
  }

  21% {
    clip-path: inset(65% 0 18% 0);
    opacity: 0;
  }

  64% {
    clip-path: inset(25% 0 52% 0);
    opacity: 0.35;
  }

  65% {
    clip-path: inset(52% 0 28% 0);
    opacity: 0;
  }
}

/* Toggles */
.toggle {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
}

.toggle.primary {
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.08);
}

/* XP bar */
.xp {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--mag), var(--acid));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

/* Boot overlay */
.boot {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 50% 40%, rgba(0, 229, 255, 0.12), transparent 60%),
    radial-gradient(800px 500px at 60% 55%, rgba(255, 43, 214, 0.10), transparent 60%),
    rgba(5, 2, 10, 0.92);
  backdrop-filter: blur(10px);
}

.boot-panel {
  width: min(720px, calc(100% - 48px));
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.75);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}

.boot-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg,
      transparent,
      rgba(0, 229, 255, 0.22),
      rgba(255, 43, 214, 0.16),
      rgba(183, 255, 0, 0.12),
      transparent);
  filter: blur(16px);
  opacity: 0.9;
  animation: sweep 2.2s linear infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% {
    transform: translateX(-35%);
  }

  100% {
    transform: translateX(35%);
  }
}

/* FX canvas */
.fx {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* Reticle */
.reticle {
  position: fixed;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.22);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  mix-blend-mode: screen;
}

.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(255, 43, 214, 0.35);
  border-radius: 50%;
  animation: spin 6s linear infinite;
  opacity: 0.8;
}

.reticle::after {
  inset: -12px;
  border-color: rgba(183, 255, 0, 0.25);
  animation-duration: 10s;
  opacity: 0.55;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .reticle {
    display: none;
  }
}

/* Muzzle flash */
.muzzle {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1200;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(0, 229, 255, 0.55), transparent 70%);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.55), 0 0 34px rgba(255, 43, 214, 0.35);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

.muzzle.fire {
  opacity: 1;
  animation: muzzlePop 140ms ease-out forwards;
}

@keyframes muzzlePop {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* Toasts */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1500;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
}

/* Panels */
.tile {
  --panel-open: 900px;
}

.panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height var(--openMs) var(--panelEase),
    opacity 500ms ease;
}

.tile.unlocked .panel {
  max-height: var(--panel-open);
  opacity: 1;
  pointer-events: auto;
}

.tile.unlocked .target.main-target {
  display: none;
}

.tile.locked .target.main-target {
  display: grid;
}

.tile.section-card {
  padding: 20px;
}

.tile.section-card.locked {
  padding: 0 !important;
}

.tile.section-card.unlocked {
  padding: 20px !important;
}

/* Subtargets (preview) use the same bullseye size as main targets */
.tile .target.subtarget .bullseye {
  width: 54px;
  height: 54px;
  margin: 0;
}

/* Ensure the button itself is relative */
.target.main-target,
.target.subtarget {
  position: relative;
  overflow: visible;
}

/* Bullseye styling: always centered inside the button */
.target.main-target .bullseye,
.target.subtarget .bullseye {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15, 15, 15, 0.95) 0 6px,
      rgba(245, 245, 245, 0.95) 6px 10px,
      rgba(190, 30, 30, 0.92) 10px 16px,
      rgba(245, 245, 245, 0.92) 16px 22px,
      rgba(25, 25, 25, 0.88) 22px 27px);
  border: 2px solid rgba(240, 240, 240, 0.65);
  box-shadow:
    0 16px 55px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  z-index: 1;
  cursor: crosshair;
}

.target.subtarget.preview .bullseye {
  display: block !important;
}

.target.main-target .target-label,
.target.main-target .target-sub,
.target.subtarget .target-label,
.target.subtarget .target-sub {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Target button */
.target {
  width: 100%;
  min-height: var(--targetH);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 24, 0.55);
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Remove the subtle grey silhouette overlay on the big target rectangles */
.target::before {
  display: none !important;
}

/* Big targets: whole box is clickable (body=125), bullseye is just visually/interaction special */
.target.main-target,
.target.subtarget {
  cursor: pointer;
}

/* Keep labels non-interactive so clicks feel like they hit the target, not the text */
.target.main-target .target-label,
.target.main-target .target-sub,
.target.subtarget .target-label,
.target.subtarget .target-sub {
  pointer-events: none;
}

/* Bullseye remains the obvious click zone */
.target.main-target .bullseye,
.target.subtarget .bullseye {
  cursor: crosshair;
}

.target.main-target:hover .bullseye,
.target.subtarget:hover .bullseye {
  box-shadow:
    0 16px 55px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(0, 229, 255, 0.20),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.target-label {
  font-weight: 900;
  font-size: 1.1rem;
}

.target-sub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  opacity: 0.75;
  letter-spacing: 0.08em;
}

.target.subtarget {
  min-height: var(--targetH);
  margin-top: 12px;
  border-radius: 16px;
}

/* Resume preview */
.resume-preview {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 24, 0.45);
}

.resume-preview.collapsed {
  height: 0;
  border-width: 0;
  margin-top: 0;
}

.resume-preview.expanded {
  height: calc(100vh - 170px);
  max-height: 980px;
}

@media (max-width: 720px) {
  .resume-preview.expanded {
    height: calc(100vh - 210px);
    max-height: none;
  }
}

.resume-object {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}

/* Points UI */
.points {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 24, 0.55);
  margin-left: 10px;
}

.points-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.points-value {
  font-weight: 900;
  font-size: 1.05rem;
}

.points-pop {
  position: fixed;
  pointer-events: none;
  z-index: 100000;

  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: 0.08em;

  padding: 6px 10px;
  border-radius: 999px;

  color: rgba(255, 255, 255, .92);
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(0, 229, 255, .28);

  box-shadow:
    0 14px 40px rgba(0, 0, 0, .55),
    0 0 18px rgba(0, 229, 255, .18);

  text-transform: uppercase;
}

/* HUD Targets (hidden on small screens) */
.targets-hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
}

.hud-target {
  pointer-events: auto;
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 24, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 980px) {
  #targetsHud {
    display: none;
  }
}

/* Game targets */
.game-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1190;
}

.game-target {
  pointer-events: auto;
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  cursor: crosshair;
  user-select: none;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(15, 15, 15, 0.95) 0 6px,
      rgba(245, 245, 245, 0.95) 6px 10px,
      rgba(190, 30, 30, 0.92) 10px 16px,
      rgba(245, 245, 245, 0.92) 16px 22px,
      rgba(25, 25, 25, 0.88) 22px 27px);
  border: 2px solid rgba(240, 240, 240, 0.65);
  box-shadow:
    0 16px 55px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.game-target::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background:
    linear-gradient(to right,
      transparent 0 48%,
      rgba(0, 0, 0, 0.35) 48% 52%,
      transparent 52% 100%),
    linear-gradient(to bottom,
      transparent 0 48%,
      rgba(0, 0, 0, 0.35) 48% 52%,
      transparent 52% 100%);
  opacity: 0.55;
  pointer-events: none;
}

.game-target.hit {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 240ms ease, transform 240ms ease;
}

/* Settings dropdown */
.topbar-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.settings {
  position: relative;
}

.settings-menu {
  position: relative;
}

.settings-menu>summary {
  list-style: none;
}

.settings-menu>summary::-webkit-details-marker {
  display: none;
}

.settings-summary {
  user-select: none;
}

.settings-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 6, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.7);
  z-index: 2000;
}

.icon-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  line-height: 1;
}

.settings-summary.icon-btn>span {
  font-size: 22px;
  line-height: 1;
  display: block;
}

#pointsResetBtn {
  min-width: 78px;
}

/* Shatter effect */
.shard-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

.shard {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(245, 247, 250, 0.95);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
  will-change: transform, opacity;
}

/* Mobile optimization (same UI, just clearer layout) */
@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .topbar-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .topbar-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .points {
    margin-left: 0;
  }

  .hero {
    padding: 18px 0 26px;
  }

  .bento {
    gap: 12px;
  }

  .hero-main {
    padding: 16px;
    padding-bottom: 22px;
    transform: none;
  }

  .section-card {
    padding: 16px;
  }

  .cta .btn {
    flex: 1 1 auto;
  }

  h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  h2 {
    font-size: 16px;
  }

  .target {
    padding: 16px;
    min-height: 108px;
  }

  .target-label {
    font-size: 1rem;
  }

  .target-sub {
    font-size: 0.82rem;
  }

  .resume-preview.expanded {
    height: min(62vh, 520px);
  }

  .toast {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }

  /* easier to tap targets on phones */
  .game-target {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    cursor: crosshair;
    user-select: none;
    background:
      radial-gradient(circle at 50% 50%,
        rgba(20, 22, 26, 0.95) 0 6px,
        rgba(235, 235, 235, 0.95) 6px 10px,
        rgba(200, 30, 30, 0.92) 10px 16px,
        rgba(235, 235, 235, 0.92) 16px 22px,
        rgba(25, 25, 25, 0.88) 22px 27px);
    border: 2px solid rgba(240, 240, 240, 0.65);
    box-shadow:
      0 16px 55px rgba(0, 0, 0, 0.55),
      inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    display: block;
  }
}

/* =========================
   Milestone Toast (HUD)
========================= */

#milestoneToast{
  position: fixed !important;
  left: 50% !important;
  top: 38% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;

  z-index: 3000 !important;
  width: min(560px, calc(100% - 28px)) !important;

  display: grid !important;
  gap: 10px !important;
  pointer-events: none;
}
#milestoneToast .t{ pointer-events: auto; }

#milestoneToast .t{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 16, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 90px rgba(0,0,0,0.7);
}

#milestoneToast .t .title{
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

#milestoneToast .t .msg{
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

#milestoneToast .t .bar{
  margin-top: 8px;
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
}

#milestoneToast .t .bar i{
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--mag), var(--acid));
  transform-origin: left;
  animation: msbar 5.2s linear forwards;
}

@keyframes msbar{
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
