/* ============================================================
   RANNE.EXE — award portfolio
   Theme: neon CRT on near-black (cyan / magenta / green / gold)
   ============================================================ */

:root {
  --bg: hsl(240 12% 4%);
  --bg-soft: hsl(240 12% 8%);
  --fg: hsl(180 100% 95%);
  --muted: hsl(190 18% 62%);
  --cyan: hsl(180 100% 50%);
  --magenta: hsl(327 100% 60%);
  --green: hsl(135 100% 55%);
  --gold: hsl(50 100% 55%);
  --line: hsl(190 40% 24%);
  --font-pixel: "Press Start 2P", system-ui, sans-serif;
  --font-retro: "VT323", monospace;
  --font-mono: "Space Mono", monospace;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, hsl(190 60% 10% / 0.7), transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--magenta); color: var(--bg); }

section[id] { scroll-margin-top: 84px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10000;
  background: var(--cyan); color: var(--bg);
  padding: 0.7rem 1.2rem; font-family: var(--font-pixel); font-size: 0.6rem;
  text-decoration: none; transition: top 0.25s var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- CRT overlays ---------- */
.crt-scanlines {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    rgba(0, 0, 0, 0.22) 3px, rgba(0, 0, 0, 0.22) 4px
  );
  mix-blend-mode: multiply; opacity: 0.55;
}
.crt-vignette {
  position: fixed; inset: 0; z-index: 9001; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.5) 100%);
}

/* ---------- XP scroll progress ---------- */
.xp {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 9600;
  background: hsl(240 12% 10%);
}
.xp__fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px hsl(180 100% 50% / 0.7);
}
.xp__label {
  position: absolute; top: 9px; right: 10px;
  font-family: var(--font-pixel); font-size: 0.45rem; color: var(--muted);
  opacity: 0; transition: opacity 0.3s;
}
.xp.is-scrolling .xp__label { opacity: 1; }

/* ---------- pixel cursor ---------- */
.px-cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background: var(--cyan); z-index: 9500; pointer-events: none;
  mix-blend-mode: screen; opacity: 0;
  box-shadow: 0 0 12px var(--cyan);
}
.px-cursor.is-active { opacity: 0.9; }
.px-cursor.is-hover { background: var(--magenta); box-shadow: 0 0 14px var(--magenta); transform: scale(1.6); }
.px-trail {
  position: fixed; top: 0; left: 0; width: 7px; height: 7px;
  background: var(--cyan); z-index: 9490; pointer-events: none;
  mix-blend-mode: screen; opacity: 0;
}
@media (hover: none) { .px-cursor, .px-trail { display: none; } }

/* ---------- boot preloader ---------- */
.boot {
  position: fixed; inset: 0; z-index: 9999;
  background: #050508;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.boot__inner { width: min(640px, 88vw); }
.boot__pre {
  font-family: var(--font-retro); font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  line-height: 1.5; color: var(--green); white-space: pre-wrap;
  text-shadow: 0 0 8px hsl(135 100% 55% / 0.5);
  min-height: 14em;
}
.boot__skip {
  display: block; margin-top: 1.5rem;
  font-family: var(--font-pixel); font-size: 0.55rem; color: var(--muted);
  animation: blink 1.2s step-end infinite;
}

/* ---------- shared bits ---------- */
@keyframes blink { 50% { opacity: 0.15; } }
.blink { animation: blink 1.4s step-end infinite; }

.caret { color: var(--cyan); animation: blink 1s step-end infinite; }

.btn {
  display: inline-block; padding: 0.85rem 1.5rem;
  font-family: var(--font-pixel); font-size: 0.62rem; line-height: 1.4;
  text-decoration: none; cursor: pointer; border: none;
  color: var(--fg);
  transition: transform 0.15s var(--ease), box-shadow 0.15s, background 0.2s, color 0.2s;
}
.btn--primary {
  background: var(--cyan); color: var(--bg);
  box-shadow: 4px 4px 0 hsl(180 100% 25%);
}
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 hsl(180 100% 25%); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 hsl(180 100% 25%); }
.btn--ghost {
  background: transparent; border: 2px solid var(--line); color: var(--fg);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--lg { padding: 1.1rem 2rem; font-size: 0.72rem; }

.chip {
  display: inline-block; padding: 0.4rem 0.7rem;
  font-family: var(--font-pixel); font-size: 0.5rem;
  border: 1px solid currentColor;
}
.chip--cyan { color: var(--cyan); }
.chip--magenta { color: var(--magenta); }
.chip--green { color: var(--green); }
.chip--gold { color: var(--gold); }

/* window chrome */
.window {
  background: var(--bg-soft);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}
.window__bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(90deg, hsl(190 45% 16%), hsl(240 20% 10%));
  border-bottom: 2px solid var(--line);
  font-family: var(--font-pixel); font-size: 0.55rem; color: var(--cyan);
  letter-spacing: 0.06em;
}
.window__bar--magenta { color: var(--magenta); }
.window__bar--cyan { color: var(--cyan); }
.window__bar--green { color: var(--green); }
.window__dots { display: inline-flex; gap: 5px; }
.window__dots i { width: 8px; height: 8px; background: var(--line); }
.window__dots i:first-child { background: var(--magenta); }
.window__dots i:nth-child(2) { background: var(--gold); }
.window__dots i:last-child { background: var(--green); }
.window__body { padding: 1.4rem; }

/* section scaffolding */
.section { padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 4rem); max-width: var(--max); margin: 0 auto; }
.section__head { margin-bottom: 3rem; }
.section__kicker {
  display: block; font-family: var(--font-pixel); font-size: 0.6rem;
  color: var(--magenta); margin-bottom: 1rem; letter-spacing: 0.1em;
}
.section__title {
  font-family: var(--font-pixel); font-weight: 400;
  font-size: clamp(1.4rem, 4.5vw, 2.6rem); line-height: 1.25;
  color: var(--fg);
  text-shadow: 3px 3px 0 hsl(327 100% 60% / 0.35);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.35s, box-shadow 0.35s, transform 0.4s var(--ease);
}
.nav.is-scrolled {
  background: hsl(240 12% 4% / 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand {
  font-family: var(--font-pixel); font-size: 0.8rem; color: var(--fg);
  text-decoration: none; text-shadow: 0 0 10px hsl(180 100% 50% / 0.6);
}
.nav__brand span { color: var(--cyan); }
.nav__links { display: flex; gap: 1.4rem; }
.nav__links a {
  font-family: var(--font-pixel); font-size: 0.55rem; color: var(--muted);
  text-decoration: none; transition: color 0.2s, text-shadow 0.2s;
}
.nav__links a:hover { color: var(--cyan); text-shadow: 0 0 8px hsl(180 100% 50% / 0.7); }
.nav__cta { white-space: nowrap; }
.nav__links .nav__alt { color: var(--gold); }
.nav__links .nav__alt:hover { color: var(--gold); text-shadow: 0 0 8px hsl(50 100% 55% / 0.7); }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.25rem 6rem; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid {
  position: absolute; inset: -10% -10% -30%;
  background-image:
    linear-gradient(hsl(180 100% 50% / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, hsl(180 100% 50% / 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(28deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}
body.webgl .hero__grid { display: none; }
.hero > *:not(.hero__grid):not(.hero__canvas) { position: relative; z-index: 2; }

.hero__eyebrow {
  font-family: var(--font-pixel); font-size: 0.58rem; color: var(--green);
  margin-bottom: 2rem; letter-spacing: 0.12em;
}
.hero__title {
  font-family: var(--font-pixel); font-weight: 400;
  font-size: clamp(1.7rem, 6.5vw, 4.6rem); line-height: 1.25;
  color: var(--fg);
}
.hero__subtitle {
  margin-top: 1.6rem;
  font-family: var(--font-retro); font-size: clamp(1.25rem, 3vw, 1.8rem);
  color: var(--cyan); letter-spacing: 0.12em;
}
.hero__motto {
  margin-top: 1rem; font-family: var(--font-retro);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--gold);
}
.hero__bio { max-width: 38rem; margin-top: 1.5rem; color: var(--muted); font-size: 0.92rem; }
.hero__bio strong { color: var(--fg); }
.hero__badges { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.4rem; }
.hero__scrollcue {
  position: absolute; bottom: 4.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 0.55rem; color: var(--muted);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translate(-50%, 8px); opacity: 0.5; } }

/* glitch */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none;
}
.glitch::before {
  color: var(--magenta); z-index: -1;
  animation: glitch-a 3.2s steps(2, end) infinite;
}
.glitch::after {
  color: var(--cyan); z-index: -2;
  animation: glitch-b 2.7s steps(2, end) infinite;
}
@keyframes glitch-a {
  0%, 91%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); }
  92% { transform: translate(-4px, 2px); clip-path: inset(18% 0 55% 0); }
  94% { transform: translate(4px, -2px); clip-path: inset(60% 0 12% 0); }
  96% { transform: translate(-2px, 0); clip-path: inset(35% 0 40% 0); }
}
@keyframes glitch-b {
  0%, 88%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); }
  89% { transform: translate(4px, -1px); clip-path: inset(45% 0 28% 0); }
  92% { transform: translate(-4px, 1px); clip-path: inset(8% 0 70% 0); }
  95% { transform: translate(2px, 2px); clip-path: inset(70% 0 5% 0); }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  overflow: hidden; padding: 0.8rem 0; background: var(--bg-soft);
}
.marquee__track {
  display: flex; white-space: nowrap; width: max-content;
  font-family: var(--font-pixel); font-size: 0.62rem; color: var(--magenta);
  animation: marquee 30s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats__layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem; align-items: start;
}
.stats__id { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.stats__avatar {
  display: grid; place-items: center;
  width: 72px; height: 72px; background: var(--bg);
  border: 2px solid var(--cyan); box-shadow: 0 0 16px hsl(180 100% 50% / 0.35);
}
.stats__avatar svg { width: 48px; height: 48px; fill: var(--cyan); image-rendering: pixelated; }
.stats__avatar .px-alt { fill: var(--magenta); }
.stats__name { display: block; font-family: var(--font-pixel); font-size: 0.8rem; }
.stats__class { display: block; margin-top: 0.5rem; font-family: var(--font-retro); font-size: 1.05rem; color: var(--green); }

.attr { display: flex; flex-direction: column; gap: 0.9rem; }
.attr__row { display: grid; grid-template-columns: 3.2rem 1fr 2.6rem; align-items: center; gap: 0.9rem; }
.attr__row dt { font-family: var(--font-pixel); font-size: 0.6rem; color: var(--muted); }
.attr__num { font-family: var(--font-retro); font-size: 1.25rem; color: var(--cyan); text-align: right; }

.bar {
  display: block; height: 16px; background: var(--bg);
  border: 2px solid var(--line); position: relative; overflow: hidden;
}
.bar__fill {
  display: block; height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 10px, hsl(180 100% 38%) 10px 12px);
  box-shadow: 0 0 10px hsl(180 100% 50% / 0.5);
}
.bar--sm { height: 12px; }

.abilities { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; padding-top: 0.4rem; }
.abilities li {
  font-family: var(--font-retro); font-size: 1.25rem; line-height: 1.45;
  color: var(--muted); padding-left: 1.6rem; position: relative;
}
.abilities li::before { content: ">"; position: absolute; left: 0; color: var(--green); }
.abilities em { font-style: normal; color: var(--cyan); }
@media (max-width: 880px) { .stats__layout { grid-template-columns: 1fr; } }

/* ---------- quests ---------- */
.quests { background: linear-gradient(180deg, transparent, hsl(240 14% 6%) 12%, hsl(240 14% 6%) 88%, transparent); }
.quests__pin { overflow: hidden; }
.quests__head {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 5vw, 4rem) 1rem;
  display: flex; align-items: baseline; gap: 2rem; flex-wrap: wrap;
}
.quests__head .section__title { flex: 1; }
.quests__counter {
  font-family: var(--font-pixel); font-size: 0.6rem; color: var(--gold);
  border: 1px solid var(--gold); padding: 0.5rem 0.8rem;
}
.quests__track { display: flex; width: max-content; padding: 1.5rem 0 4.5rem; }

.quest {
  position: relative; width: 100vw; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem clamp(1.25rem, 6vw, 6rem);
}
.quest__win { width: min(720px, 100%); position: relative; z-index: 2; }
.quest__num {
  position: absolute; right: clamp(0.5rem, 3vw, 3rem); bottom: -1.2rem;
  font-family: var(--font-pixel); font-size: clamp(6rem, 18vh, 12rem);
  color: hsl(180 100% 50% / 0.05); user-select: none; z-index: 1;
}
.quest__body { padding: 1.8rem; }
.quest__meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.quest__id { margin-left: auto; font-family: var(--font-retro); font-size: 1.05rem; color: var(--muted); }
.quest__title {
  font-family: var(--font-pixel); font-weight: 400;
  font-size: clamp(1.3rem, 3.6vw, 2.1rem); margin-bottom: 0.9rem;
  color: var(--fg); text-shadow: 3px 3px 0 hsl(180 100% 50% / 0.3);
}
.quest__pitch { font-family: var(--font-retro); font-size: 1.35rem; color: var(--gold); margin-bottom: 0.8rem; }
.quest__desc { color: var(--muted); font-size: 0.92rem; max-width: 36rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.5rem; }
.tags li {
  font-family: var(--font-pixel); font-size: 0.48rem; color: var(--green);
  border: 1px solid hsl(135 100% 55% / 0.4); padding: 0.35rem 0.55rem;
}
.quest__links { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.quest--side { flex-direction: column; align-items: stretch; gap: 1.5rem; justify-content: center; }
.quest__sidetitle {
  font-family: var(--font-pixel); font-weight: 400; font-size: clamp(1rem, 2.6vw, 1.5rem);
  color: var(--magenta); text-align: center;
}
.side-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; max-width: 860px; margin: 0 auto; width: 100%;
}
.side-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--bg-soft); border: 2px solid var(--line);
  padding: 1.2rem 1.3rem; text-decoration: none; color: var(--fg);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.side-card:hover {
  transform: translate(-3px, -3px); border-color: var(--cyan);
  box-shadow: 6px 6px 0 hsl(180 100% 50% / 0.25);
}
.side-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-family: var(--font-retro); font-size: 1rem; color: var(--muted); }
.side-card strong { font-family: var(--font-pixel); font-size: 0.72rem; }
.side-card p { font-size: 0.82rem; color: var(--muted); }

/* quests: mobile vertical */
@media (max-width: 820px) {
  .quests__track { flex-direction: column; width: 100%; padding-bottom: 3rem; }
  .quest { width: 100%; padding-top: 2rem; padding-bottom: 2rem; }
  .quest__num { display: none; }
  .side-grid { grid-template-columns: 1fr; }
  .quests__counter { display: none; }
}

/* ---------- skills ---------- */
.skills__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
}
.skill .window__bar { justify-content: space-between; }
.skill__mastery { font-family: var(--font-retro); font-size: 1.1rem; color: var(--gold); }
.skill__mastery::after { content: "/100"; color: var(--muted); font-size: 0.85em; }
.skill__row {
  display: grid; grid-template-columns: 1fr; gap: 0.35rem;
  font-family: var(--font-retro); font-size: 1.02rem; color: var(--muted);
  margin-bottom: 0.9rem;
}
.skill__row:last-child { margin-bottom: 0; }
@media (max-width: 1024px) { .skills__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .skills__grid { grid-template-columns: 1fr; } }

/* ---------- career terminal ---------- */
.terminal__body { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.6rem; }
.job__cmd {
  font-family: var(--font-retro); font-size: 1.2rem; color: var(--green);
  text-shadow: 0 0 6px hsl(135 100% 55% / 0.35);
}
.job__cmd strong { color: var(--cyan); font-weight: 400; }
.job__date { color: var(--gold); }
.job__line { margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; max-width: 56rem; }
.job__cmd--cursor { margin-top: 0.6rem; }

/* ---------- save point ---------- */
.save { text-align: center; }
.save__inner { max-width: 46rem; margin: 0 auto; }
.save__title { margin-bottom: 2.2rem; }
.save__floppy { display: inline-block; }
.save__floppy svg {
  width: clamp(72px, 12vw, 110px); height: auto; fill: var(--magenta);
  filter: drop-shadow(0 0 18px hsl(327 100% 60% / 0.5));
}
.save__copy { margin: 1.8rem auto 0; color: var(--muted); max-width: 30rem; }
.save__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.2rem; }
.save__coin { margin-top: 2.6rem; font-family: var(--font-pixel); font-size: 0.58rem; color: var(--gold); }

/* ---------- footer + taskbar ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem) 5.5rem;
  border-top: 2px solid var(--line);
  font-family: var(--font-retro); font-size: 1.05rem; color: var(--muted);
}
.footer__hint { color: hsl(190 18% 35%); }
.footer__link { color: var(--gold); text-decoration: none; }
.footer__link:hover { text-shadow: 0 0 8px hsl(50 100% 55% / 0.7); }

/* ---------- 3D tilt ---------- */
.quest, .skills__grid, .side-grid { perspective: 1100px; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt] .window__body, [data-tilt] .window__bar { transform: translateZ(1px); }

.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.45rem 0.8rem;
  background: hsl(240 12% 9% / 0.95);
  border-top: 2px solid var(--line);
  backdrop-filter: blur(8px);
  font-family: var(--font-retro); font-size: 1.02rem; color: var(--muted);
}
.taskbar__start {
  font-family: var(--font-pixel); font-size: 0.55rem;
  background: var(--bg-soft); color: var(--cyan);
  border: 2px solid var(--line); padding: 0.45rem 0.8rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.taskbar__start:hover { border-color: var(--cyan); }
.taskbar__app { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taskbar__spacer { flex: 1; }
.taskbar__led { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--green); }
.taskbar__led i { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 2s step-end infinite; }
.taskbar__clock { font-variant-numeric: tabular-nums; color: var(--fg); }
@media (max-width: 680px) { .taskbar__app, .taskbar__led { display: none; } }

/* ---------- achievement toast ---------- */
.achievement {
  position: fixed; top: 5rem; right: 1.25rem; z-index: 9700;
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--bg-soft); border: 2px solid var(--gold);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5), 0 0 24px hsl(50 100% 55% / 0.35);
  padding: 1rem 1.2rem; max-width: 320px;
  font-family: var(--font-retro); font-size: 1.05rem; line-height: 1.35;
  transform: translateX(130%); transition: transform 0.5s var(--ease);
}
.achievement.is-shown { transform: translateX(0); }
.achievement__icon { font-size: 1.6rem; color: var(--gold); }
.achievement strong { color: var(--gold); font-weight: 400; font-family: var(--font-pixel); font-size: 0.6rem; }

body.konami { animation: konami-flash 0.7s steps(3, end) 2; }
@keyframes konami-flash { 50% { filter: invert(1) hue-rotate(90deg); } }

/* ---------- reveal defaults ---------- */
.reveal { opacity: 0; transform: translateY(22px); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .glitch::before, .glitch::after { display: none; }
  .marquee__track, .blink, .caret, .hero__scrollcue, .taskbar__led i { animation: none; }
  .bar__fill { width: 100% !important; }
  .hero__canvas, .px-trail { display: none; }
}
