/* ============================================================
   PIXEL PORTFOLIO — design tokens
   bg: #0b0b1e | panel: #14142b | outline: #05050f
   cyan: #23e5db | pink: #ff3d7f | yellow: #ffd23f | text: #eef0ff
   ============================================================ */
:root {
  --bg: #0b0b1e;
  --bg-panel: #14142b;
  --bg-panel-2: #1c1c3a;
  --outline: #05050f;
  --cyan: #23e5db;
  --pink: #ff3d7f;
  --yellow: #ffd23f;
  --green: #00ff41;
  --text: #eef0ff;
  --text-dim: #8a8ab0;
  --px: 4px;
  --stars-opacity: 1;
}
[data-theme="light"] {
  --bg: #f0f0eb;
  --bg-panel: #ffffff;
  --bg-panel-2: #e8e8dd;
  --outline: #2a2a2a;
  --cyan: #1a8a7a;
  --pink: #cc2d60;
  --yellow: #c49a00;
  --green: #007a2e;
  --text: #1a1a1a;
  --text-dim: #666655;
  --stars-opacity: 0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  background: var(--bg);
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffffff22 1px, transparent 0),
    radial-gradient(2px 2px at 120px 90px, #ffffff18 1px, transparent 0),
    radial-gradient(1px 1px at 60px 150px, #ffffff14 1px, transparent 0),
    radial-gradient(1px 1px at 200px 60px, #ffffff1a 1px, transparent 0);
  background-size: 240px 200px;
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><rect x='10' y='0' width='4' height='4' fill='%2323e5db'/><rect x='10' y='4' width='4' height='4' fill='%2323e5db'/><rect x='0' y='10' width='4' height='4' fill='%2323e5db'/><rect x='4' y='10' width='4' height='4' fill='%2323e5db'/><rect x='16' y='10' width='4' height='4' fill='%2323e5db'/><rect x='20' y='10' width='4' height='4' fill='%2323e5db'/><rect x='10' y='16' width='4' height='4' fill='%2323e5db'/><rect x='10' y='20' width='4' height='4' fill='%2323e5db'/><rect x='10' y='10' width='4' height='4' fill='%23ff3d7f'/></svg>")
      12 12,
    auto;
}
[data-theme="light"] body {
  background-image: none;
}
[data-theme="light"] #world::before {
  display: none;
}
[data-theme="light"] #hero h1 {
  text-shadow: 4px 4px 0 var(--text-dim);
}
[data-theme="light"] #world {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 78%,
    #d5d5c8 78%,
    #d5d5c8 100%
  );
  border-color: var(--outline);
}
[data-theme="light"] #world .ground-deco {
  background: repeating-linear-gradient(
    90deg,
    #e0e0d4 0 18px,
    #d5d5c8 18px 36px
  );
  border-top-color: var(--outline);
}
[data-theme="light"] .world-bg-tile {
  display: none;
}
[data-theme="light"] .konami-hint::after {
  background: var(--bg-panel);
}
[data-theme="light"] .section-label {
  background: var(--bg-panel-2);
  color: var(--green);
}
[data-theme="light"] .speech-bubble {
  background: var(--bg-panel-2);
}
h1,
h2,
h3,
.pixel-font {
  font-family: "Press Start 2P", monospace;
}
img {
  image-rendering: pixelated;
}
::selection {
  background: var(--pink);
  color: var(--bg);
}

/* ---------- utility ---------- */
.pixel-panel {
  background: var(--bg-panel);
  border: 4px solid var(--outline);
  box-shadow: 6px 6px 0 var(--outline);
}
.pixel-btn {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--bg);
  background: var(--green);
  border: 4px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
  padding: 14px 18px;
  cursor: pointer;
  transition:
    transform 0.05s steps(1),
    box-shadow 0.05s steps(1);
  display: inline-block;
  text-decoration: none;
}
.pixel-btn.alt {
  background: var(--pink);
}
.pixel-btn.gold {
  background: var(--yellow);
}
.pixel-btn.green {
  background: var(--green);
}
.pixel-btn:hover {
  filter: brightness(1.1);
}
.pixel-btn:active,
.pixel-btn.pressed {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--outline);
}
.section-label {
  display: inline-block;
  font-size: 12px;
  color: var(--yellow);
  background: var(--outline);
  padding: 6px 10px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.section-title {
  font-size: clamp(20px, 4vw, 34px);
  margin-bottom: 30px;
  line-height: 1.6;
}
section {
  max-width: 980px;
  margin: 0 auto;
  padding: 90px 16px;
  position: relative;
}
@media (max-width: 480px) {
  section { padding: 60px 12px; }
  .pixel-btn { font-size: 10px; padding: 10px 12px; }
}
.blink {
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ============================================================
   LOADER (fast)
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
#loader .logo-pixel {
  width: 64px;
  background: var(--bg);
  border: 4px solid var(--outline);
  box-shadow: 6px 6px 0 var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  image-rendering: pixelated;
}
#loader .logo-pixel svg {
  width: 48px;
  height: 48px;
  display: block;
}
#loader .bar-outer {
  width: min(340px, 80vw);
  height: 24px;
  border: 4px solid var(--outline);
  background: var(--bg-panel);
}
#loader .bar-inner {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    var(--pink) 0 8px,
    var(--yellow) 8px 16px
  );
  transition: width 0.05s steps(4); /* impeccable-disable layout-transition — intentional loading bar */
}
#loader .press-start {
  font-family: "Press Start 2P";
  font-size: 13px;
  color: var(--yellow);
  cursor: pointer;
  display: none;
}
#loader.ready .press-start {
  display: block;
}
#loader.hide {
  animation: fadeOut 0.5s steps(6) forwards;
  pointer-events: none;
}
@media (max-width: 400px) {
  #loader .pixel-font {
    font-size: 11px !important;
    letter-spacing: 0 !important;
    word-break: break-all;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* ============================================================
   HUD
   ============================================================ */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--bg-panel);
  border-bottom: 4px solid var(--outline);
  overflow: hidden;
}

@media (max-width: 400px) {
  #hud {
    padding: 8px 10px;
  }
  #hud .hud-left,
  #hud .hud-right {
    font-size: 8px;
    gap: 6px;
  }
  #hud .coins {
    font-size: 9px;
  }
}
#hud .hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Press Start 2P";
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}
#hud .hud-left .dot {
  width: 14px;
  height: 14px;
  background: var(--green);
  border: 2px solid var(--outline);
}
#hud nav {
  display: none;
  gap: 6px;
}
#hud .hud-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Press Start 2P";
  font-size: 11px;
  overflow: hidden;
}
#hud .coins {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
}
#hud .coin-icon {
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border: 2px solid var(--outline);
  display: inline-block;
}
#hud button.icon-btn {
  background: var(--bg-panel-2);
  border: 2px solid var(--outline);
  color: var(--text);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
}
@media (min-width: 720px) {
  #hud nav {
    display: flex;
  }
  #hud nav a {
    font-family: "Press Start 2P";
    font-size: 10px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 8px;
    border: 2px solid transparent;
  }
  #hud nav a:hover,
  #hud nav a.active {
    color: var(--green);
    border-color: var(--green);
  }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  padding-top: 150px;
  text-align: center;
}
#hero .eyebrow {
  color: var(--text-dim);
  font-size: 16px;
  letter-spacing: 2px;
}
#hero h1 {
  font-size: clamp(22px, 6vw, 44px);
  color: var(--cyan);
  text-shadow: 4px 4px 0 var(--pink);
  margin: 18px 0 14px;
}
#hero .role {
  color: var(--yellow);
  font-family: "Press Start 2P";
  font-size: 11px;
  margin-bottom: 16px;
}
#hero p.tag {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--text-dim);
  font-size: 17px;
  letter-spacing: 0;
  word-break: break-word;
}
#hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

#world {
  position: relative;
  height: 180px;
  margin: 0 auto;
  max-width: 820px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 78%,
    #1c1c3a 78%,
    #1c1c3a 100%
  );
  border: 4px solid var(--outline);
  overflow: hidden;
}
@media (max-width: 700px) {
  #world { display: none; }
  #hero-hint { display: none; }
}
#world::before {
  content: "";
  position: absolute;
  inset: 0;
}
#world .ground-deco {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: repeating-linear-gradient(
    90deg,
    #14142b 0 18px,
    #191938 18px 36px
  );
  border-top: 3px solid var(--outline);
}
/* scrolling bg tiles + obstacles */
.world-bg-tile {
  position: absolute;
  bottom: 22%;
  width: 60px;
  height: 60px;
  image-rendering: pixelated;
  pointer-events: none;
}
.world-bg-tile svg {
  width: 100%;
  height: 100%;
  display: block;
}
.world-obstacle {
  position: absolute;
  bottom: calc(22% + 2px);
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  pointer-events: none;
}
.world-obstacle svg {
  width: 100%;
  height: 100%;
  display: block;
}
#world-score {
  position: absolute;
  top: 6px;
  right: 12px;
  font-family: "Press Start 2P";
  font-size: 9px;
  color: var(--yellow);
  z-index: 2;
  pointer-events: none;
  display: none;
}
#world-score.show {
  display: block;
}
#hero-hint {
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 14px;
}
#hero-hint kbd {
  font-family: "Press Start 2P";
  font-size: 22px;
}

.sprite {
  position: absolute;
  bottom: 22%;
  left: 20px;
  width: 36px;
  height: 52px;
  transform-origin: bottom center;
}
.sprite .cap {
  position: absolute;
  top: 0;
  left: 6px;
  width: 24px;
  height: 8px;
  background: var(--pink);
  border: 2px solid var(--outline);
}
.sprite .head {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 20px;
  height: 16px;
  background: #ffd6a8;
  border: 2px solid var(--outline);
}
.sprite .eye {
  position: absolute;
  top: 12px;
  left: 20px;
  width: 4px;
  height: 4px;
  background: var(--outline);
}
.sprite .torso {
  position: absolute;
  top: 20px;
  left: 6px;
  width: 24px;
  height: 18px;
  background: var(--cyan);
  border: 2px solid var(--outline);
}
.sprite .arm {
  position: absolute;
  top: 22px;
  width: 6px;
  height: 14px;
  background: #ffd6a8;
  border: 2px solid var(--outline);
}
.sprite .arm-l {
  left: 0;
  transform-origin: top center;
}
.sprite .arm-r {
  right: 0;
  transform-origin: top center;
}
.sprite .leg {
  position: absolute;
  top: 37px;
  width: 8px;
  height: 15px;
  background: var(--bg-panel-2);
  border: 2px solid var(--outline);
}
.sprite .leg-l {
  left: 8px;
  transform-origin: top center;
}
.sprite .leg-r {
  right: 8px;
  transform-origin: top center;
}
.sprite.face-left {
  transform: scaleX(-1);
}

.sprite.walking .leg-l {
  animation: legL 0.3s steps(2) infinite;
}
.sprite.walking .leg-r {
  animation: legR 0.3s steps(2) infinite;
}
.sprite.walking .arm-l {
  animation: armL 0.3s steps(2) infinite;
}
.sprite.walking .arm-r {
  animation: armR 0.3s steps(2) infinite;
}
@keyframes legL {
  50% {
    transform: rotate(28deg);
  }
}
@keyframes legR {
  50% {
    transform: rotate(-28deg);
  }
}
@keyframes armL {
  50% {
    transform: rotate(-24deg);
  }
}
@keyframes armR {
  50% {
    transform: rotate(24deg);
  }
}
.sprite.jumping {
  animation: jump 0.55s ease-in-out;
}
@keyframes jump {
  0% { transform: translateY(0); }
  25% { transform: translateY(-60px); }
  75% { transform: translateY(0); }
  100% { transform: translateY(0); }
}
.sprite.face-left.jumping {
  animation: jumpFlip 0.55s ease-in-out;
}
@keyframes jumpFlip {
  0% { transform: scaleX(-1) translateY(0); }
  25% { transform: scaleX(-1) translateY(-60px); }
  75% { transform: scaleX(-1) translateY(0); }
  100% { transform: scaleX(-1) translateY(0); }
}
.sprite.dead {
  animation: death 0.4s ease-in forwards;
  transform-origin: center bottom;
}
@keyframes death {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-90deg) translateY(-28px); opacity: 0.6; }
}

.speech-bubble {
  position: absolute;
  bottom: calc(22% + 60px);
  left: 20px;
  background: var(--text);
  color: var(--outline);
  font-family: "Press Start 2P";
  font-size: 9px;
  line-height: 1.6;
  padding: 8px 10px;
  border: 2px solid var(--outline);
  max-width: 200px;
  opacity: 0;
  transition: opacity 0.2s steps(4);
  pointer-events: none;
}
.speech-bubble.show {
  opacity: 1;
}
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 14px;
  border: 6px solid transparent;
  border-top-color: var(--text);
}

/* ============================================================
   ABOUT / STATUS
   ============================================================ */
.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 760px) {
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.stat-row {
  margin-bottom: 16px;
}
.stat-row .label {
  display: flex;
  justify-content: space-between;
  font-family: "Press Start 2P";
  font-size: 10px;
  margin-bottom: 6px;
}
.bar-outer {
  height: 18px;
  border: 3px solid var(--outline);
  background: var(--bg);
}
.bar-inner {
  height: 100%;
}
.bar-cyan {
  background: var(--cyan);
}
.bar-pink {
  background: var(--pink);
}
.bar-yellow {
  background: var(--yellow);
}
.bar-green {
  background: var(--green);
}
.dialogue-box {
  padding: 24px;
}
.dialogue-box p {
  font-size: 22px;
  color: var(--text);
}
.dialogue-box .name-tag {
  font-family: "Press Start 2P";
  font-size: 11px;
  color: var(--pink);
  margin-bottom: 12px;
}

/* ============================================================
   SKILLS / INVENTORY
   ============================================================ */
.inv-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.inv-tab {
  font-family: "Press Start 2P";
  font-size: 10px;
  padding: 10px 14px;
  background: var(--bg-panel-2);
  border: 3px solid var(--outline);
  cursor: pointer;
  color: var(--text-dim);
}
.inv-tab.active {
  background: var(--green);
  color: var(--bg);
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.inv-slot {
  background: var(--bg-panel);
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
  padding: 14px 10px;
  text-align: center;
  cursor: default;
  position: relative;
  transition: transform 0.05s steps(1);
}
.inv-slot:hover {
  transform: translateY(-4px);
}
.inv-slot .icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border: 3px solid var(--outline);
}
/* per-category colors */
.inv-slot[data-cat="Frontend"] .icon {
  background: var(--cyan);
}
.inv-slot[data-cat="Frontend"] .lvl-fill {
  background: var(--cyan);
}
.inv-slot[data-cat="Backend"] .icon {
  background: var(--pink);
}
.inv-slot[data-cat="Backend"] .lvl-fill {
  background: var(--pink);
}
.inv-slot[data-cat="Tools"] .icon {
  background: var(--yellow);
}
.inv-slot[data-cat="Tools"] .lvl-fill {
  background: var(--yellow);
}
.inv-slot[data-cat="Database"] .icon {
  background: var(--green);
}
.inv-slot[data-cat="Database"] .lvl-fill {
  background: var(--green);
}
.inv-slot .name {
  font-size: 12px;
  font-family: "Press Start 2P";
  margin-bottom: 8px;
  line-height: 1.5;
}
.inv-slot .lvl-bar {
  height: 8px;
  border: 2px solid var(--outline);
  background: var(--bg);
}
.inv-slot .lvl-fill {
  height: 100%;
  background: var(--yellow);
}

/* ============================================================
   PROJECTS / LEVEL SELECT
   ============================================================ */
.level-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 700px) {
  .level-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.level-card {
  background: var(--bg-panel);
  border: 4px solid var(--outline);
  box-shadow: 6px 6px 0 var(--outline);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.06s steps(1);
}
.level-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--outline);
}
.level-card .lvl-num {
  font-family: "Press Start 2P";
  font-size: 11px;
  color: var(--yellow);
  margin-bottom: 10px;
}
.level-card h3 {
  font-size: 16px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.level-card .stars {
  color: var(--pink);
  margin-bottom: 10px;
  font-size: 16px;
}
.level-card p {
  color: var(--text-dim);
  font-size: 20px;
  margin-bottom: 12px;
}
.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tag {
  font-size: 10px;
  font-family: "Press Start 2P";
  background: var(--bg-panel-2);
  border: 2px solid var(--outline);
  padding: 4px 6px;
  color: var(--text-dim);
}
.level-card .actions {
  display: flex;
  gap: 10px;
}
.level-card .actions .pixel-btn {
  font-size: 10px;
  padding: 9px 12px;
}

/* modal */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: #000000cc;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
#modal-overlay.show {
  display: flex;
}
#modal {
  max-width: 520px;
  width: 100%;
  background: var(--bg-panel);
  border: 4px solid var(--outline);
  box-shadow: 8px 8px 0 var(--outline);
  padding: 26px;
  position: relative;
}
#modal .close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 34px;
  height: 34px;
  background: var(--pink);
  border: 3px solid var(--outline);
  cursor: pointer;
  font-family: "Press Start 2P";
  font-size: 12px;
  color: var(--bg);
}
#modal h3 {
  color: var(--cyan);
  font-size: 18px;
  margin-bottom: 14px;
}
#modal p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 21px;
}

/* ============================================================
   TIMELINE / QUEST LOG (alternating)
   ============================================================ */
.quest-log {
  position: relative;
  padding: 0;
}
.quest-log::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--yellow);
  transform: translateX(-50%);
}
.quest {
  position: relative;
  width: 50%;
  padding: 0 30px 40px;
  opacity: 0;
  transition:
    opacity 0.3s steps(6),
    transform 0.3s steps(6);
}
.quest:nth-child(odd) {
  left: 0;
  text-align: right;
  transform: translateX(-30px);
}
.quest:nth-child(even) {
  left: 50%;
  transform: translateX(30px);
}
.quest.visible {
  opacity: 1;
  transform: translateX(0);
}
.quest:nth-child(2) {
  transition-delay: 0.15s;
}
.quest:nth-child(3) {
  transition-delay: 0.3s;
}
.quest:nth-child(4) {
  transition-delay: 0.45s;
}
.quest::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--cyan);
  border: 3px solid var(--outline);
  z-index: 1;
}
.quest:nth-child(odd)::before {
  right: -10px;
}
.quest:nth-child(even)::before {
  left: -10px;
}
.quest.complete::before {
  background: var(--green);
}
.quest .qhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.quest:nth-child(odd) .qhead {
  flex-direction: row-reverse;
}
.quest h3 {
  font-size: 14px;
  color: var(--text);
}
.quest .status {
  font-family: "Press Start 2P";
  font-size: 8px;
  padding: 4px 6px;
  border: 2px solid var(--outline);
  white-space: nowrap;
}
.status.complete {
  background: var(--green);
  color: var(--bg);
}
.status.active {
  background: var(--yellow);
  color: var(--bg);
}
.quest .period {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 8px;
  display: block;
}
.quest p {
  color: var(--text-dim);
  font-size: 19px;
}
.quest .xp {
  color: var(--pink);
  font-size: 13px;
  font-family: "Press Start 2P";
  margin-top: 8px;
  display: inline-block;
}
@media (max-width: 600px) {
  .quest-log::before {
    left: 12px;
  }
  .quest,
  .quest:nth-child(odd),
  .quest:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 34px 34px;
  }
  .quest:nth-child(odd) .qhead {
    flex-direction: row;
  }
  .quest::before,
  .quest:nth-child(odd)::before,
  .quest:nth-child(even)::before {
    left: 2px;
    right: auto;
  }
}

/* ============================================================
   CONTACT / SAVE
   ============================================================ */
.save-slot {
  padding: 30px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: "Press Start 2P";
  font-size: 10px;
  margin-bottom: 8px;
  color: var(--yellow);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 3px solid var(--outline);
  color: var(--text);
  font-family: "VT323";
  font-size: 20px;
  padding: 10px 12px;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--cyan);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.save-status {
  margin-top: 16px;
  font-family: "Press Start 2P";
  font-size: 11px;
  color: var(--green);
  display: none;
}
.save-status.show {
  display: block;
}
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.social-row a {
  font-family: "Press Start 2P";
  font-size: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-panel-2);
  border: 3px solid var(--outline);
  padding: 10px 14px;
}
.social-row a:hover {
  color: var(--green);
  border-color: var(--green);
}

footer {
  text-align: center;
  padding: 40px 20px 70px;
  color: var(--text-dim);
  font-size: 16px;
}

/* konami tooltip */
.konami-hint {
  position: relative;
  cursor: help;
  color: var(--yellow);
  border-bottom: 1px dashed var(--yellow);
}
.konami-hint::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 2px solid var(--yellow);
  color: var(--text);
  padding: 6px 12px 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 22px;
  white-space: nowrap;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.konami-hint:hover::after {
  opacity: 1;
}

/* achievement toast */
#toast-wrap {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-panel);
  border: 3px solid var(--yellow);
  box-shadow: 5px 5px 0 var(--outline);
  padding: 12px 16px;
  max-width: 280px;
  transform: translateX(120%);
  transition: transform 0.3s steps(6);
}
.toast.show {
  transform: translateX(0);
}
.toast .t-title {
  font-family: "Press Start 2P";
  font-size: 9px;
  color: var(--yellow);
  margin-bottom: 6px;
}
.toast .t-body {
  font-size: 16px;
  color: var(--text-dim);
}

/* konami overlay */
#konami-banner {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000000dd;
  text-align: center;
  flex-direction: column;
  gap: 16px;
}
#konami-banner.show {
  display: flex;
}
#konami-banner h2 {
  color: var(--pink);
  font-size: clamp(18px, 5vw, 30px);
  text-shadow: 4px 4px 0 var(--cyan);
}
#konami-banner p {
  color: var(--yellow);
  font-family: "Press Start 2P";
  font-size: 12px;
}
.coin-fall {
  position: fixed;
  top: -20px;
  width: 16px;
  height: 16px;
  background: var(--yellow);
  border: 2px solid var(--outline);
  z-index: 299;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
