:root {
  --bg-lilac: #d18bff;
  --bg-mint: #7fffd1;
  --bg-sky: #9de3ff;
  --bg-lemon: #ffd443;
  --bg-peach: #ff9776;
  --bg-rose: #ff6db6;
  --ink: #1c1032;
  --paper: #fff9ea;
  --shadow: #2d0e49;
  --grid: rgba(255, 255, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55) 0 4%, transparent 4.5%),
    radial-gradient(circle at 78% 11%, rgba(255, 243, 122, 0.75) 0 3%, transparent 3.5%),
    radial-gradient(circle at 82% 70%, rgba(110, 255, 190, 0.65) 0 8%, transparent 8.5%),
    linear-gradient(180deg, #bd84ff 0%, #ffb8e0 42%, #8ce8ff 100%);
  background-size: 240px 240px, 280px 280px, 340px 340px, cover;
  font-family: "DotGothic16", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.95) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 70% 60%, rgba(28, 16, 50, 0.55) 0 0.6px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.75) 0 0.8px, transparent 1.2px);
  background-size: 18px 18px, 22px 22px, 26px 26px;
  mix-blend-mode: soft-light;
}

body.lang-transition::before {
  opacity: 0.52;
}

body.lang-transition::after {
  opacity: 0.38;
}

.page-shell {
  width: min(1480px, calc(100% - 96px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.top-controls {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0 4px 18px;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 3px solid var(--shadow);
  border-radius: 50%;
  background: rgba(255, 249, 234, 0.92);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.music-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--shadow);
}

.music-toggle.is-on {
  background: #18111f;
  color: #fff6ba;
}

.music-icon {
  position: relative;
  width: 18px;
  height: 22px;
  display: inline-block;
}

.music-icon::before,
.music-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.music-icon::before {
  left: 8px;
  top: 0;
  width: 4px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 6px -2px 0 currentColor;
}

.music-icon::after {
  left: 1px;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 10px -2px 0 0 currentColor;
}

.music-toggle.is-on .music-icon {
  animation: speaker-bounce 900ms steps(2) infinite;
}

.lang-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lang-button {
  position: relative;
  min-width: 64px;
  padding: 10px 14px;
  border: 3px solid var(--shadow);
  border-radius: 999px;
  background: rgba(255, 249, 234, 0.92);
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  overflow: hidden;
}

.lang-button.is-active {
  background: #18111f;
  color: #fff6ba;
}

.lang-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--shadow);
}

.lang-button::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 16%, rgba(255, 102, 184, 0.55) 30%, rgba(132, 232, 255, 0.18) 52%, transparent 70%);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
}

.lang-button.jump-glow::after,
.track-button.jump-glow::after {
  animation: button-jump-glow 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.pixel-flash {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 50%, rgba(28, 16, 50, 0.06) 50%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 247, 183, 0.12) 0 14px,
      rgba(255, 94, 169, 0.14) 14px 28px,
      rgba(132, 232, 255, 0.14) 28px 42px,
      rgba(255, 255, 255, 0.08) 42px 56px
    );
  background-size: 100% 6px, 56px 56px;
  mix-blend-mode: screen;
}

.pixel-flash.active {
  animation: pixel-flicker 460ms steps(5) forwards;
}

.card.reassemble,
.hero.reassemble {
  animation: card-reassemble 560ms steps(6) both;
  animation-delay: var(--delay, 0ms);
}

.card.reassemble::before,
.hero.reassemble::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 50%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 246, 165, 0.18) 0 12px,
      rgba(255, 105, 180, 0.15) 12px 24px,
      rgba(132, 232, 255, 0.15) 24px 36px,
      rgba(255, 255, 255, 0.08) 36px 48px
    );
  background-size: 100% 8px, 48px 48px;
  mix-blend-mode: screen;
  animation: overlay-flicker 560ms steps(6) both;
  animation-delay: var(--delay, 0ms);
}

.panel {
  position: relative;
  border: 5px solid var(--shadow);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--shadow);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px dashed rgba(28, 16, 50, 0.2);
  border-radius: 18px;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 40px;
  background: linear-gradient(135deg, #ffd83f 0%, #ff98b8 45%, #8ce8ff 100%);
  transform: rotate(-1deg);
}

.hero-copy {
  padding: 18px 10px 20px 8px;
}

.system-tag,
.panel-kicker,
.screen-label,
.track-time,
.quest-time,
.project-rank,
.quest-badge {
  font-family: "Press Start 2P", monospace;
  letter-spacing: 0.08em;
}

.system-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #18111f;
  color: #fff9a3;
  border-radius: 14px;
  font-size: 11px;
}

.hero h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #fff7be, 8px 8px 0 var(--shadow);
}

.hero-intro {
  max-width: 34rem;
  margin: 28px 0 34px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.9;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-favorites {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 42rem;
  margin-top: 22px;
}

.hero-meta span,
.hero-favorites span,
.chip-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 3px solid var(--shadow);
  border-radius: 999px;
  background: rgba(255, 249, 234, 0.9);
  box-shadow: 4px 4px 0 var(--shadow);
}

.hero-favorites span {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-stage {
  align-self: end;
  display: grid;
  gap: 20px;
}

.marquee {
  justify-self: start;
  padding: 12px 18px;
  background: #18111f;
  color: #ffffff;
  border-radius: 18px;
  border: 4px solid #fff;
  font-family: "Silkscreen", monospace;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  box-shadow: 8px 8px 0 #ff5fa9;
  animation: floaty 4s ease-in-out infinite;
}

.screen {
  position: relative;
  min-height: 440px;
  padding: 34px;
  border-radius: 34px;
  border: 8px solid #dd5f8d;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15)),
    linear-gradient(135deg, #a4ddff, #c7ffd6 50%, #ffe0ff 100%);
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.65) 0 2px, transparent 2.4px),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.75) 0 1.6px, transparent 2px),
    radial-gradient(circle at 55% 72%, rgba(255, 219, 84, 0.75) 0 1.8px, transparent 2.4px);
  background-size: 120px 120px, 140px 140px, 110px 110px;
  opacity: 0.6;
  pointer-events: none;
}

.screen-playfield {
  position: absolute;
  left: 36px;
  top: 34px;
  bottom: 34px;
  right: 36px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, rgba(166, 235, 255, 0.6), rgba(204, 255, 209, 0.72));
  border: 5px solid rgba(45, 14, 73, 0.9);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.screen-playfield::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
}

.card h2 {
  margin: 10px 0 12px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 0.95;
}

.hero-art,
.hero-art-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.hero-art {
  z-index: 2;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

.hero-art-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 24px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  color: rgba(28, 16, 50, 0.65);
  text-align: center;
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.75) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 20%, rgba(255, 235, 116, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 75%, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px),
    linear-gradient(145deg, rgba(166, 235, 255, 0.6), rgba(204, 255, 209, 0.72));
}

.layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "education education"
    "journey journey"
    "portfolio skills"
    "resume contact";
  gap: 38px;
  margin-top: 52px;
}

.card {
  padding: 34px;
  background: var(--paper);
}

.education-card {
  grid-area: education;
  background: linear-gradient(180deg, #9cf0dd 0%, #f2fff8 100%);
}

.xp-card {
  grid-area: journey;
  background: linear-gradient(135deg, #ffaac5 0%, #ffe2b2 52%, #fff6dd 100%);
}

.portfolio-card {
  grid-area: portfolio;
  background: linear-gradient(180deg, #99dfff 0%, #d7f4ff 100%);
}

.skills-card {
  grid-area: skills;
  background: linear-gradient(180deg, #ffb4e5 0%, #ffe4f4 100%);
}

.resume-card {
  grid-area: resume;
  background: linear-gradient(180deg, #c7ff98 0%, #ecffd1 100%);
}

.contact-card {
  grid-area: contact;
  background: linear-gradient(180deg, #ffc0aa 0%, #ffefe7 100%);
  transform: rotate(1deg);
}

.panel-kicker {
  margin: 0;
  font-size: 11px;
}

.resume-card p,
.contact-line,
.skill-card p,
.boss-card p,
.boss-card small,
.reward-item span,
.section-lead {
  line-height: 1.75;
}

.section-lead {
  max-width: 50rem;
  margin: 8px 0 0;
  opacity: 0.84;
}

.boss-lane {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 34vw);
  gap: 22px;
  margin-top: 28px;
  padding: 6px 6px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.track-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.track-button {
  position: relative;
  min-height: 46px;
  padding: 10px 16px;
  border: 3px solid var(--shadow);
  border-radius: 999px;
  background: rgba(255, 249, 234, 0.88);
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  overflow: hidden;
  flex: 0 0 auto;
}

.track-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--shadow);
}

.track-button.is-active {
  background: #18111f;
  color: #fff6ba;
}

.track-button::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 16%, rgba(255, 102, 184, 0.55) 30%, rgba(132, 232, 255, 0.18) 52%, transparent 70%);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
}

.boss-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border: 4px solid var(--shadow);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 8px 8px 0 rgba(45, 14, 73, 0.34);
}

.boss-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(28, 16, 50, 0.14);
  border-radius: 18px;
  pointer-events: none;
}

.boss-card h3,
.skill-card h3 {
  margin: 8px 0;
  font-size: 1.25rem;
}

.boss-status,
.boss-time {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.boss-status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #18111f;
  color: #fff4a4;
}

.boss-time {
  opacity: 0.65;
}

.is-active {
  background: linear-gradient(180deg, rgba(255, 249, 171, 0.9), rgba(255, 255, 255, 0.7));
}

.is-cleared {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(234, 245, 255, 0.86));
}

.wide-card {
  min-width: min(520px, 42vw);
}

.journey-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.journey-topbar h2 {
  margin: 10px 0 0;
}

.journey-lane {
  grid-auto-columns: minmax(420px, 520px);
  align-items: stretch;
  padding-bottom: 22px;
  scroll-snap-type: x proximity;
}

.journey-lane .boss-card {
  min-width: 0;
  width: 100%;
  scroll-snap-align: start;
}

.journey-lane .wide-card {
  min-width: 0;
}

.skill-deck {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.skill-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 4px solid var(--shadow);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 8px 8px 0 rgba(45, 14, 73, 0.32);
}

.rarity-ssr {
  background: linear-gradient(135deg, #fff899, #ffbecc 56%, #bbf0ff);
}

.rarity-sr {
  background: linear-gradient(135deg, #ffd1ef, #fff2a6 56%, #d7feff);
}

.rarity-r {
  background: linear-gradient(135deg, #edf4ff, #ffe7ff 56%, #e8ffd6);
}

.qr-showcase {
  display: grid;
  grid-template-columns: 158px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 3px solid rgba(45, 14, 73, 0.75);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 78%, rgba(255, 234, 119, 0.5) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.qr-frame {
  position: relative;
  width: 158px;
  aspect-ratio: 1;
  padding: 10px;
  border: 4px solid var(--shadow);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff6a6, #ffd4e8 58%, #b9f3ff);
  box-shadow: 6px 6px 0 rgba(45, 14, 73, 0.28);
  overflow: hidden;
}

.qr-frame.has-image .qr-fallback {
  display: none;
}

.qr-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(45, 14, 73, 0.26);
  border-radius: 16px;
  pointer-events: none;
}

.qr-image,
.qr-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.qr-image {
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(1.06) contrast(1.08);
}

.qr-fallback {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: rgba(28, 16, 50, 0.7);
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.03) 50%),
    linear-gradient(135deg, #fff8c7, #ffd8ea 58%, #d7f7ff);
  background-size: 100% 8px, cover;
}

.qr-copy {
  display: grid;
  gap: 10px;
}

.qr-copy p {
  margin: 0;
  line-height: 1.7;
}

.qr-chip {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  border: 3px solid var(--shadow);
  background: #18111f;
  color: #fff6ba;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.project-rank {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #18111f;
  color: #fff4a4;
  border-radius: 12px;
  font-size: 12px;
}

.skill-card a,
.resume-button {
  display: inline-flex;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 3px solid var(--shadow);
  background: #fff46c;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.skill-card a:hover,
.resume-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--shadow);
}

.cta-button {
  animation: cta-breathe 2.6s ease-in-out infinite;
}

.cta-button:hover {
  animation-play-state: paused;
}

.github-portal {
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff46c, #ffd8a1 58%, #ffb8db);
}

.pixel-octocat {
  position: relative;
  width: 20px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-block;
  image-rendering: pixelated;
  background:
    linear-gradient(#1c1032 0 0) 6px 4px / 8px 8px no-repeat,
    linear-gradient(#fff6ba 0 0) 8px 8px / 2px 2px no-repeat,
    linear-gradient(#fff6ba 0 0) 12px 8px / 2px 2px no-repeat,
    linear-gradient(#1c1032 0 0) 4px 2px / 4px 4px no-repeat,
    linear-gradient(#1c1032 0 0) 12px 2px / 4px 4px no-repeat,
    linear-gradient(#1c1032 0 0) 2px 6px / 2px 8px no-repeat,
    linear-gradient(#1c1032 0 0) 16px 6px / 2px 8px no-repeat,
    linear-gradient(#1c1032 0 0) 6px 12px / 2px 4px no-repeat,
    linear-gradient(#1c1032 0 0) 12px 12px / 2px 4px no-repeat;
  filter: drop-shadow(2px 2px 0 rgba(45, 14, 73, 0.25));
}

.pixel-octocat::before,
.pixel-octocat::after {
  content: "";
  position: absolute;
  background: #1c1032;
}

.pixel-octocat::before {
  left: 8px;
  bottom: 1px;
  width: 4px;
  height: 2px;
}

.pixel-octocat::after {
  right: -4px;
  top: 7px;
  width: 6px;
  height: 2px;
  box-shadow: 2px 2px 0 #1c1032, 4px 4px 0 #1c1032;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.reward-item {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 3px solid var(--shadow);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 6px 6px 0 rgba(45, 14, 73, 0.22);
}

.reward-item strong {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
}

.resume-button.disabled {
  opacity: 0.72;
}

.resume-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.resume-option {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 4px solid var(--shadow);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 8px 8px 0 rgba(45, 14, 73, 0.28);
}

.resume-option strong {
  font-size: 1.18rem;
}

.resume-option small {
  line-height: 1.65;
}

.resume-option-tag,
.resume-option-cta {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 3px solid var(--shadow);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

.resume-option-tag {
  background: #18111f;
  color: #fff6ba;
  box-shadow: 4px 4px 0 var(--shadow);
}

.resume-option-cta {
  background: #fff46c;
  box-shadow: 4px 4px 0 var(--shadow);
}

.resume-card code {
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(28, 16, 50, 0.08);
}

.contact-line {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 3px solid var(--shadow);
  background: rgba(255, 255, 255, 0.52);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pixel-flicker {
  0% {
    opacity: 0;
    transform: scale(1.01);
  }
  12% {
    opacity: 0.95;
  }
  28% {
    opacity: 0.2;
  }
  44% {
    opacity: 0.78;
  }
  66% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes card-reassemble {
  0% {
    opacity: 0.22;
    transform: translateY(20px) scale(0.96);
    filter: saturate(1.45) contrast(1.2) blur(1px);
    clip-path: inset(0 0 78% 0);
  }
  18% {
    opacity: 0.55;
    clip-path: inset(12% 0 46% 0);
  }
  36% {
    opacity: 0.8;
    transform: translateY(-8px) scale(1.01);
    clip-path: inset(42% 0 18% 0);
  }
  54% {
    clip-path: inset(18% 0 32% 0);
  }
  78% {
    opacity: 0.94;
    transform: translateY(4px) scale(0.995);
    filter: saturate(1.12) contrast(1.08) blur(0);
    clip-path: inset(6% 0 8% 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes overlay-flicker {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.92;
  }
  42% {
    opacity: 0.24;
  }
  68% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

@keyframes button-jump-glow {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  24% {
    opacity: 1;
  }
  55% {
    opacity: 0.82;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes speaker-bounce {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(255, 246, 186, 0.7));
  }
}

@keyframes cta-breathe {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    box-shadow: 5px 5px 0 var(--shadow);
  }
  50% {
    transform: translate(-1px, -2px) scale(1.03);
    box-shadow: 9px 9px 0 var(--shadow);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    transform: none;
  }

  .screen {
    min-height: 620px;
  }

  .screen-playfield {
    left: 28px;
    right: 28px;
    top: 28px;
    width: auto;
    min-width: 0;
    bottom: 28px;
  }

  .layout-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "education"
      "journey"
      "portfolio"
      "skills"
      "resume"
      "contact";
  }

  .portfolio-card,
  .skills-card,
  .contact-card {
    transform: none;
  }

  .boss-lane {
    grid-auto-columns: minmax(280px, 82vw);
  }

  .journey-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .track-switch {
    justify-content: flex-start;
  }

  .journey-lane {
    grid-auto-columns: minmax(300px, 84vw);
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .resume-options {
    grid-template-columns: 1fr;
  }

  .qr-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1440px);
    padding-top: 14px;
  }

  .top-controls {
    top: 10px;
    margin-bottom: 14px;
  }

  .panel {
    border-radius: 22px;
    box-shadow: 7px 7px 0 var(--shadow);
  }

  .hero,
  .card {
    padding: 20px;
  }

  .screen {
    min-height: 560px;
    padding: 20px;
  }

  .screen-playfield {
    left: 20px;
    right: 20px;
    top: 20px;
    bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 17vw, 4.4rem);
  }

  .card h2 {
    font-size: clamp(1.45rem, 8vw, 2.25rem);
  }

  .boss-card,
  .skill-card,
  .reward-item {
    padding: 18px;
  }
}
