/* ==========================================================================
   deleo.dev — retro arcade portfolio
   Zero-dependency, token-based CSS. Sections mirror the page top-to-bottom.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subset) ---- */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/press-start-2p-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/vt323-latin.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --ink: #0e261f;
  --cream: #f4f2e9;
  --cream-hud: #faf7ec;
  --paper: #ffffff;
  --blue: #2f7fd6;
  --blue-dark: #2668b0;
  --blue-tint: #e2edf8;
  --blue-arcade: #4aa3ff;
  --green: #1f8a3d;
  --green-dark: #166b2f;
  --green-tint: #e3f0e0;
  --gold: #f2c400;
  --gold-dark: #d4ab00;
  --gold-ink: #181300;
  --gold-deep: #9c7a00;
  --gold-tint: #faf0cf;
  --night: #0a1d16;
  --night-panel: #0d211a;
  --night-deep: #06120f;
  --night-muted: #8fa596;
  --body-muted: #465a4d;
  --body-soft: #33544a;
  --sub-muted: #5b6f60;
  --shadow-sage: #b9cdb4;
  --font-pixel: 'Press Start 2P', 'Courier New', monospace;
  --font-body: 'VT323', 'Courier New', monospace;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.35;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #f2f7f0; }
h1, h2, h3 { font-family: var(--font-pixel); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  font-family: var(--font-pixel); font-size: 11px;
  background: var(--ink); color: #f2f7f0; padding: 12px 16px;
}
.skip-link:focus { left: 0; color: #f2f7f0; }

.wrap { max-width: 1000px; margin: 0 auto; }
.wrap--narrow { max-width: 880px; }
.wrap--wide { max-width: 1100px; }
.wrap--tight { max-width: 660px; }

/* ---- Shared section headings ---- */
.section-kicker {
  font-family: var(--font-pixel); font-size: 10px;
  color: var(--blue); margin: 0 0 12px;
}
.section-kicker--arcade { color: var(--blue-arcade); }
.section-title {
  font-size: clamp(18px, 2.6vw, 30px);
  margin: 0 0 10px; color: var(--ink); line-height: 1.5;
}
.section-title--light { color: #f2f7f0; }
.section-sub { font-size: 22px; color: var(--sub-muted); margin: 0 0 36px; }
.section-sub--arcade { color: var(--night-muted); }

/* ---- Animations ---- */
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(60px); } }
@keyframes bobY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blinkOp { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes confettiFall { from { transform: translateY(-6vh) rotate(0deg); } to { transform: translateY(106vh) rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
@keyframes toastIn { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes sunGlow { 0%, 100% { box-shadow: 0 0 0 8px rgba(242, 196, 0, .35); } 50% { box-shadow: 0 0 0 16px rgba(242, 196, 0, .18); } }
@keyframes bugWiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.blink { animation: blinkOp 1.2s steps(1) infinite; }
.bob { animation: bobY 2.4s ease-in-out infinite; }

/* Scroll reveal: hidden only when JS is available (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.on { animation: fadeUp .7s ease both; }

/* ---- Buttons ---- */
.btn-pixel {
  display: inline-block;
  font-family: var(--font-pixel); font-size: 12px;
  padding: 16px 24px;
  background: var(--blue); color: #f2f7f0;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  cursor: pointer;
  transition: background .1s steps(1), color .1s steps(1);
}
.btn-pixel:hover { background: var(--gold); color: var(--gold-ink); }
.btn-pixel:active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--ink); }
.btn-pixel--lg { font-size: 14px; padding: 18px 30px; }
.btn-pixel--sm {
  font-size: 9px; padding: 8px 10px;
  border-width: 3px; box-shadow: 3px 3px 0 0 var(--ink);
}
.btn-pixel--sm:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--ink); }
.btn-pixel--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--blue); box-shadow: none;
}
.btn-pixel--ghost:hover { background: var(--blue-tint); color: var(--ink); }
.btn-pixel--ghost:active { transform: none; }
.btn-pixel--arcade {
  font-size: 10px; padding: 12px 16px;
  background: var(--blue-arcade); color: var(--night-deep);
  border: 3px solid var(--cream-hud);
  box-shadow: 4px 4px 0 0 #000;
}
.btn-pixel--arcade:active { transform: translate(3px, 3px); box-shadow: 0 0 0 0 #000; }

/* ==========================================================================
   HUD
   ========================================================================== */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--cream-hud);
  border-bottom: 4px solid var(--blue);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 20px; flex-wrap: wrap;
}
.hud__brand { display: flex; align-items: center; gap: 14px; }
.hud__logo { font-family: var(--font-pixel); font-size: 12px; color: var(--ink); }
.hud__logo span { color: var(--blue); }
.hud__hearts { color: var(--green); font-size: 22px; letter-spacing: 2px; }
.hud__nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hud__links {
  display: flex; gap: 16px; font-size: 20px;
  list-style: none; margin: 0; padding: 0;
}
.hud__links a { color: var(--ink); }
.hud__links a:hover { color: var(--blue); }
.hud__ach { font-family: var(--font-pixel); font-size: 9px; color: var(--blue); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  background: linear-gradient(#d6e9f5 0%, #d6e9f5 30%, #e0edea 30%, #e0edea 58%, #ebf0e4 58%, #ebf0e4 82%, var(--cream) 82%);
}
.hero__sun {
  position: absolute; top: 110px; right: 14%;
  width: 56px; height: 56px; background: var(--gold);
  animation: sunGlow 3.5s ease-in-out infinite;
}
.hero__cloud { position: absolute; background: #fff; }
.hero__cloud--1 {
  top: 170px; left: 8%; width: 56px; height: 20px;
  box-shadow: 20px -12px 0 0 #fff, 44px -6px 0 0 #fff, 66px 0 0 0 #fff;
  animation: drift 11s ease-in-out infinite alternate;
}
.hero__cloud--2 {
  top: 260px; right: 32%; width: 44px; height: 16px;
  box-shadow: 16px -10px 0 0 #fff, 36px -4px 0 0 #fff;
  animation: drift 14s ease-in-out infinite alternate-reverse;
}
.hero__inner {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 130px 24px 24px; position: relative; z-index: 2;
}
.hero__kicker {
  font-family: var(--font-pixel); font-size: 11px; color: var(--green);
  margin: 0 0 20px; letter-spacing: 1px;
}
.hero__title {
  font-size: clamp(26px, 4.6vw, 52px); line-height: 1.35;
  margin: 0 0 18px; color: var(--ink);
  text-shadow: 4px 4px 0 #c3d9e8;
}
.hero__role {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.4vw, 16px); color: var(--blue); margin: 0 0 14px;
}
.hero__tagline { font-size: 24px; max-width: 620px; margin: 0 0 30px; color: var(--body-muted); }
.hero__hint { font-family: var(--font-pixel); font-size: 9px; color: #8a9a8e; margin: 26px 0 0; }
.hero__stage {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 18px; padding: 0 24px;
}
.hero__bubble {
  position: relative; background: var(--paper); color: var(--ink);
  border: 4px solid var(--ink); padding: 10px 16px;
  margin: 0 0 70px; font-size: 22px;
  box-shadow: 4px 4px 0 0 var(--ink);
}
.hero__bubble::after {
  content: ''; position: absolute; left: -14px; bottom: 12px;
  width: 10px; height: 10px; background: var(--paper);
  border-left: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  transform: rotate(45deg);
}
.hero__grass {
  height: 56px;
  background: repeating-linear-gradient(90deg, var(--green) 0 16px, #27a04a 16px 32px);
  border-top: 6px solid var(--green-dark);
  position: relative; z-index: 2;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: #e8eee2; padding: 90px 24px; }
.about__card {
  display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start;
  background: var(--paper); border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--shadow-sage); padding: 30px;
}
.about .section-title { margin-bottom: 34px; }
.about__portraits { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.about__avatar { background: var(--blue-tint); border: 4px solid var(--blue); padding: 20px 26px; }
.about__polaroid {
  margin: 0; background: var(--cream-hud); border: 4px solid var(--ink);
  padding: 8px 8px 10px; transform: rotate(-3deg);
  box-shadow: 4px 4px 0 0 var(--shadow-sage);
}
.about__polaroid img { display: block; width: 150px; height: 120px; object-fit: cover; }
.about__polaroid figcaption { font-size: 17px; color: var(--ink); text-align: center; margin-top: 6px; }
.about__level { font-family: var(--font-pixel); font-size: 9px; color: var(--green); margin: 0; }
.about__stats {
  display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 8px 24px; font-size: 22px; margin: 0 0 20px;
}
.about__stats div { display: block; }
.about__stats dt { display: inline; color: var(--blue); }
.about__stats dd { display: inline; margin: 0; }
.about__bio p { font-size: 23px; line-height: 1.4; margin: 0 0 12px; color: var(--body-soft); }
.about__buffs {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 20px 0 0; padding: 0; list-style: none;
}
.buff { font-family: var(--font-pixel); font-size: 9px; padding: 8px 10px; }
.buff--blue { background: var(--blue-tint); border: 3px solid var(--blue); color: var(--blue); }
.buff--gold { background: var(--gold-tint); border: 3px solid var(--gold); color: var(--gold-deep); }
.buff--green { background: var(--green-tint); border: 3px solid var(--green); color: var(--green-dark); }

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills { background: var(--cream); padding: 90px 24px; border-top: 6px solid var(--green); }
.skills__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.skill {
  display: grid; grid-template-columns: 230px 1fr 80px;
  gap: 16px; align-items: center;
}
.skill__name { font-family: var(--font-pixel); font-size: 10px; color: var(--ink); line-height: 1.6; }
.skill__bar {
  display: block; height: 26px; background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 rgba(14, 38, 31, .15);
  overflow: hidden;
}
.skill__fill {
  display: block; height: 100%; width: 0;
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}
/* Without JS the bars render full — content first */
.no-js .skill__fill, .skills__list.on .skill__fill { width: var(--pct); }
.skill__bar--blue .skill__fill { background: repeating-linear-gradient(90deg, var(--blue) 0 14px, var(--blue-dark) 14px 28px); }
.skill__bar--green .skill__fill { background: repeating-linear-gradient(90deg, var(--green) 0 14px, var(--green-dark) 14px 28px); }
.skill__bar--gold .skill__fill { background: repeating-linear-gradient(90deg, var(--gold) 0 14px, var(--gold-dark) 14px 28px); }
.skill__lv { font-family: var(--font-pixel); font-size: 10px; color: var(--blue); text-align: right; }

/* ==========================================================================
   QUESTS
   ========================================================================== */
.quests { background: #dbe6d2; padding: 90px 24px; border-top: 6px solid var(--green-dark); }
.quests .section-sub { color: #54685a; margin-bottom: 40px; }
.quests__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.quest {
  background: var(--paper); border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 0 #a8bfa0; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.quest__head { display: flex; justify-content: space-between; align-items: center; }
.quest__rank { font-family: var(--font-pixel); font-size: 9px; padding: 6px 8px; }
.quest__rank--legendary { color: var(--gold-ink); background: var(--gold); }
.quest__rank--origin { color: #f2f7f0; background: var(--blue); }
.quest__rank--epic { color: #f2f7f0; background: var(--blue); }
.quest__rank--epic-green { color: #f2f7f0; background: var(--green); }
.quest__rank--side { color: #f2f7f0; background: var(--green); }
.quest__stars { color: #e0b100; font-size: 20px; letter-spacing: 3px; }
.quest__star--off { color: #c8d2c0; }
.quest__name { font-family: var(--font-pixel); font-size: 14px; color: var(--ink); line-height: 1.5; margin: 0; }
.quest__desc { font-size: 21px; line-height: 1.35; margin: 0; color: var(--body-soft); flex: 1; }
.quest__tags {
  display: flex; gap: 8px; flex-wrap: wrap; font-size: 18px;
  list-style: none; margin: 0; padding: 0;
}
.quest__tags li { background: var(--blue-tint); border: 2px solid var(--blue); padding: 2px 8px; color: var(--blue); }
.quest__foot { display: flex; justify-content: space-between; font-family: var(--font-pixel); font-size: 9px; }
.quest__status { color: var(--green); }
.quest__xp { color: var(--gold-deep); }

.quest--cta {
  background: var(--ink); border: 4px dashed var(--blue-arcade);
  box-shadow: none; justify-content: center; text-align: center;
}
.quest__new { font-family: var(--font-pixel); font-size: 10px; color: var(--blue-arcade); margin: 0; animation-duration: 1.4s; }
.quest--cta .quest__name { color: #f2f7f0; line-height: 1.6; }
.quest__desc--light { color: #a9bcae; flex: 0 1 auto; }
.quest--cta .btn-pixel--arcade { align-self: center; }

/* ==========================================================================
   JOURNEY
   ========================================================================== */
.journey { background: var(--cream); padding: 90px 24px; }
.journey .section-sub { margin-bottom: 40px; }
.journey__track {
  position: relative; display: flex; flex-direction: column;
  list-style: none; margin: 0; padding: 0;
  counter-reset: none;
}
.journey__bus {
  position: absolute; left: 32px; top: 0;
  transform: translate(-50%, -50%); z-index: 3;
  pointer-events: none; transition: top .3s linear;
}
.stop { display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.stop__rail { display: flex; flex-direction: column; align-items: center; }
.stop__year {
  width: 44px; height: 40px; background: var(--green);
  border: 4px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-pixel); font-size: 9px; color: #f2f7f0;
  flex: 0 0 auto;
}
.stop__year--gold { background: var(--gold); color: var(--gold-ink); }
.stop__year--blue { background: var(--blue); }
.stop__year--next { font-size: 14px; animation-duration: 1.4s; }
.stop__line {
  flex: 1; width: 6px; min-height: 34px;
  background: repeating-linear-gradient(var(--green) 0 8px, transparent 8px 16px);
}
.stop__body { padding-bottom: 30px; }
.stop__role {
  font-family: var(--font-pixel); font-size: 12px; color: var(--ink);
  margin: 0 0 6px; line-height: 1.7;
}
.stop__role--next { color: var(--blue); }
.stop__place { color: var(--green); }
.stop__body p { font-size: 22px; margin: 0; color: var(--body-muted); }

/* CSS scroll-driven fallback when JS is off but the browser supports it */
@supports (animation-timeline: view()) {
  .no-js .reveal {
    animation: fadeUp .7s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

/* ==========================================================================
   ARCADE
   ========================================================================== */
.arcade {
  background: var(--night); padding: 90px 24px;
  border-top: 6px solid var(--blue-arcade);
  position: relative; overflow: hidden;
}
.arcade__stars { position: absolute; inset: 0; pointer-events: none; }
.arcade__stars i { position: absolute; display: block; animation: twinkle 3s ease-in-out infinite; }
.arcade__inner { position: relative; }
.arcade .section-sub { margin-bottom: 36px; }

.ach__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin: 0 0 70px; padding: 0; list-style: none;
}
.ach {
  background: var(--night-panel); border: 3px solid #3fa34d;
  padding: 16px; display: flex; gap: 12px; align-items: center;
}
.ach--locked { border: 3px dashed #2d4437; opacity: .6; }
.ach--unlocked { border: 3px solid var(--blue-arcade); opacity: 1; }
.ach__icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  border: 3px solid #f2f7f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #f2f7f0;
}
.ach__icon--green { background: #3fa34d; font-size: 26px; }
.ach__icon--blue { background: var(--blue-arcade); color: var(--night-deep); }
.ach__icon--gold { background: var(--gold); color: var(--gold-ink); font-size: 20px; }
.ach__icon--locked { background: #123a2c; font-size: 20px; }
.ach__icon--won { background: var(--blue); font-size: 20px; }
.ach__title { font-family: var(--font-pixel); font-size: 9px; color: #f2f7f0; margin: 0 0 4px; }
.ach__title--locked { color: #5f7a68; }
.ach--unlocked .ach__title { color: var(--blue-arcade); }
.ach__desc { font-size: 18px; color: var(--night-muted); margin: 0; }

/* ---- Debug Dungeon ---- */
.dungeon {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  background: var(--night-panel); border: 4px solid var(--blue-arcade);
  box-shadow: 10px 10px 0 0 #000; padding: 36px;
}
.dungeon__title { font-size: clamp(14px, 2vw, 22px); margin: 0 0 12px; color: #f2f7f0; }
.dungeon__desc { font-size: 22px; color: var(--night-muted); margin: 0 0 22px; max-width: 380px; }
.dungeon__controls { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dungeon__controls .btn-pixel--arcade { font-size: 12px; padding: 14px 20px; border-width: 4px; box-shadow: 5px 5px 0 0 #000; }
.dungeon__score { font-family: var(--font-pixel); font-size: 10px; color: var(--gold); }
.dungeon__best { font-family: var(--font-pixel); font-size: 10px; color: var(--night-muted); }
.dungeon__screen { background: var(--night-deep); border: 4px solid #1f6b33; padding: 6px; justify-self: center; }
.dungeon__board {
  position: relative; width: 312px; height: 312px;
  background: var(--night);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(63, 163, 77, .12) 25px 26px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(63, 163, 77, .12) 25px 26px);
}
.dungeon__idle {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-pixel); font-size: 10px; color: #3fa34d;
  text-align: center; line-height: 2;
}
.dungeon__idle[hidden] { display: none; }
.dungeon__cell { position: absolute; width: 24px; height: 24px; }
.dungeon__cell--head { background: var(--blue-arcade); box-shadow: inset -4px -4px 0 0 var(--blue-dark); }
.dungeon__cell--body { background: var(--blue); box-shadow: inset -3px -3px 0 0 var(--blue-dark); }
.dungeon__bug { position: absolute; animation: bugWiggle .4s ease-in-out infinite; }

/* Touch D-pad — only shown on coarse pointers */
.dungeon__dpad { display: none; }
@media (pointer: coarse) {
  .dungeon__dpad {
    display: grid; margin-top: 20px;
    grid-template-areas: ". up ." "left down right";
    gap: 8px; width: max-content;
  }
  .dungeon__dpad button {
    font-family: var(--font-pixel); font-size: 14px;
    width: 56px; height: 48px;
    background: var(--night-deep); color: var(--blue-arcade);
    border: 3px solid var(--blue-arcade); cursor: pointer;
  }
  .dungeon__dpad button:active { background: var(--blue-arcade); color: var(--night-deep); }
  .dungeon__dpad [data-dir="up"] { grid-area: up; }
  .dungeon__dpad [data-dir="left"] { grid-area: left; }
  .dungeon__dpad [data-dir="down"] { grid-area: down; }
  .dungeon__dpad [data-dir="right"] { grid-area: right; }
}

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact {
  background: #e8eee2; padding: 100px 24px 60px;
  border-top: 6px solid var(--blue); text-align: center;
}
.contact__continue {
  font-family: var(--font-pixel); font-size: 10px; color: var(--blue);
  margin: 0 0 16px; animation-duration: 1.4s;
}
.contact .section-title { font-size: clamp(20px, 3vw, 34px); margin-bottom: 16px; }
.contact__note { font-size: 24px; color: #54685a; margin: 0 0 36px; }
.contact__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer { background: #e8eee2; text-align: center; padding: 0 24px 60px; }
.footer p { font-size: 19px; color: #7a8b7c; margin: 0; }

/* ==========================================================================
   OVERLAYS
   ========================================================================== */
.crt {
  position: fixed; inset: 0; z-index: 950; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(14, 38, 31, .045) 2px 4px);
}
.confetti { position: fixed; inset: 0; z-index: 940; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -20px; display: block;
  width: 9px; height: 9px;
  animation: confettiFall 3s linear infinite;
}
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 980; background: var(--ink); border: 4px solid var(--blue-arcade);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .4);
  padding: 16px 22px; text-align: center;
  animation: toastIn .3s ease-out;
}
.toast__title { font-family: var(--font-pixel); font-size: 10px; color: var(--blue-arcade); margin: 0 0 6px; }
.toast__desc { font-size: 20px; color: #f2f7f0; margin: 0; }
.cookiebar {
  position: fixed; left: 18px; bottom: 18px; z-index: 985;
  max-width: 440px; padding-right: 18px;
  animation: fadeUp .4s ease-out;
}
.cookiebar__box {
  background: var(--ink); border: 4px solid var(--gold);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .4);
  padding: 18px 20px;
}
.cookiebar__title { font-family: var(--font-pixel); font-size: 10px; color: var(--gold); margin: 0 0 10px; }
.cookiebar__desc { font-size: 20px; color: #f2f7f0; margin: 0 0 16px; }
.cookiebar__btn { border-color: var(--cream-hud); box-shadow: 3px 3px 0 0 #000; }
.cookiebar__btn:active { box-shadow: 0 0 0 0 #000; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .about__card { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr; }
  .dungeon { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hud { padding: 8px 12px; gap: 8px; }
  .hud__hearts { display: none; }
  .hud__links { gap: 10px; font-size: 18px; }
  .hero__inner { padding-top: 150px; }
  .skill { grid-template-columns: 1fr 64px; }
  .skill__name { grid-column: 1 / -1; }
  .hero__bubble { font-size: 18px; margin-bottom: 40px; }
  .dungeon { padding: 20px; }
  .dungeon__board { width: 260px; height: 260px; }
  .dungeon__cell { width: 20px; height: 20px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blink, .bob, .hero__sun, .hero__cloud--1, .hero__cloud--2,
  .arcade__stars i, .confetti i, .dungeon__bug, .stop__year--next,
  .quest__new, .contact__continue, .cookiebar { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.on { animation: none; }
  .skill__fill { transition: none; }
  .journey__bus { display: none; }
}

/* ==========================================================================
   PRINT — clean CV-ish output
   ========================================================================== */
@media print {
  .hud, .crt, .arcade, .hero__hint, .dungeon, .confetti, .toast, .cookiebar { display: none !important; }
  .hero { min-height: auto; }
  body { font-size: 16px; }
}
