/*
  ALMUS | PIXEL HOME
  Change the colors below to quickly create your own palette.
*/
:root {
  --ink: #050812;
  --deep: #090e20;
  --panel: #0d1730;
  --panel-light: #132348;
  --green: #78ff61;
  --cyan: #40f4ff;
  --blue: #3189ff;
  --purple: #b568ff;
  --yellow: #ffe66d;
  --pink: #ff5d9e;
  --white: #eefcff;
  --muted: #9ab0c8;
  --border: #273e67;
  --shadow: #02040b;
  --heading: "Press Start 2P", monospace;
  --body: "VT323", monospace;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 22px;
  line-height: 1.45;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(49, 137, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 137, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, #111f43 0, var(--ink) 52%);
  background-size: 32px 32px, 32px 32px, auto;
}

::selection { color: var(--ink); background: var(--green); }
a { color: inherit; }
img, svg { image-rendering: pixelated; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.section-alt {
  background: rgba(9, 14, 32, .82);
  border-block: 4px solid var(--border);
  box-shadow: inset 0 4px var(--shadow), inset 0 -4px var(--shadow);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* CRT texture sits above the page but never blocks clicks. */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .12;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #000 3px 4px);
}
.pixel-sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .65;
  background-image:
    radial-gradient(square, var(--cyan) 1px, transparent 2px),
    radial-gradient(circle, var(--yellow) 1px, transparent 2px);
  background-position: 20px 40px, 80px 110px;
  background-size: 170px 170px, 230px 230px;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--blue);
  background: rgba(5, 8, 18, .94);
  box-shadow: 0 4px 0 var(--shadow), 0 8px 20px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
}
.navbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font: 12px var(--heading); text-decoration: none; white-space: nowrap; }
.logo-prompt { color: var(--green); }
.logo-cursor { color: var(--cyan); animation: blink .8s steps(1) infinite; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 10px 9px 8px;
  color: var(--muted);
  font: 9px var(--heading);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); border-color: var(--green); transform: translateY(-2px); }
.nav-toggle { display: none; width: 42px; height: 38px; padding: 8px; border: 3px solid var(--cyan); background: var(--panel); }
.nav-toggle span:not(.sr-only) { display: block; height: 3px; margin: 4px 0; background: var(--cyan); }

/* Hero */
.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; overflow: hidden; padding-block: 80px 64px; }
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  opacity: .35;
  background: linear-gradient(180deg, transparent 0 30%, var(--blue) 31% 37%, transparent 38% 52%, var(--cyan) 53% 58%, transparent 59%);
  clip-path: polygon(0 40%, 8% 40%, 8% 22%, 18% 22%, 18% 52%, 31% 52%, 31% 32%, 43% 32%, 43% 58%, 57% 58%, 57% 28%, 68% 28%, 68% 48%, 82% 48%, 82% 16%, 92% 16%, 92% 46%, 100% 46%, 100% 100%, 0 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 72px; position: relative; z-index: 1; }
.eyebrow, .kicker { margin: 0 0 20px; color: var(--cyan); font: 9px/1.7 var(--heading); letter-spacing: 0; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.5s steps(1) infinite; }
.hero h1 { max-width: 700px; margin: 0; font: 42px/1.4 var(--heading); text-shadow: 5px 5px 0 #152a53; }
.hero h1 span { color: var(--yellow); text-shadow: 4px 4px 0 #8c5617, 0 0 22px rgba(255, 230, 109, .2); }
.hero-subtitle { margin: 20px 0 12px; color: var(--cyan); font-size: 34px; }
.terminal-line { min-height: 42px; margin: 0 0 28px; color: var(--green); font-size: 27px; }
.blink-cursor { animation: blink .7s steps(1) infinite; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--ink);
  font: 9px/1.4 var(--heading);
  text-align: center;
  text-decoration: none;
  background: var(--green);
  border: 0;
  box-shadow: 0 5px 0 #2d8e35, 4px 0 0 #2d8e35, -4px 0 0 #2d8e35;
  transition: transform .12s, box-shadow .12s;
}
.pixel-button:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #2d8e35, 4px 0 0 #2d8e35, -4px 0 0 #2d8e35; }
.pixel-button:active { transform: translateY(4px); box-shadow: 0 1px 0 #2d8e35, 4px 0 0 #2d8e35, -4px 0 0 #2d8e35; }
.pixel-button.cyan { background: var(--cyan); box-shadow: 0 5px 0 #157d94, 4px 0 0 #157d94, -4px 0 0 #157d94; }
.pixel-button.ghost { color: var(--white); background: var(--panel); border-block: 3px solid var(--purple); box-shadow: 4px 0 var(--purple), -4px 0 var(--purple), 0 5px #55258a; }
.pixel-button.small { min-height: 40px; padding: 10px 14px; font-size: 8px; }
.pixel-button.small span { margin-left: 10px; font-size: 16px; }

.avatar-station { max-width: 390px; width: 100%; margin-inline: auto; filter: drop-shadow(14px 18px 0 rgba(0, 0, 0, .35)); }
.avatar-screen { position: relative; height: 350px; overflow: hidden; border: 6px solid var(--purple); outline: 6px solid #40256c; background: linear-gradient(#101c40 0 67%, #073a62 68%); box-shadow: inset 0 0 0 5px var(--ink); }
.screen-label { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 5px 8px; color: var(--green); font: 8px var(--heading); background: var(--ink); border: 2px solid var(--green); }
.pixel-avatar { position: absolute; left: 50%; bottom: 56px; width: 190px; height: 230px; transform: translateX(-50%); }
.avatar-hair { position: absolute; z-index: 3; top: 18px; left: 48px; width: 94px; height: 42px; background: #17233e; box-shadow: -10px 10px #17233e, 10px 10px #17233e, 0 -10px #17233e; }
.avatar-face { position: absolute; z-index: 2; top: 48px; left: 54px; width: 82px; height: 72px; background: #f1b78a; box-shadow: -8px 0 #bc775b, 8px 0 #bc775b, 0 8px #bc775b; }
.avatar-eye { position: absolute; z-index: 4; top: 73px; width: 8px; height: 12px; background: var(--ink); }
.avatar-eye.left { left: 72px; }.avatar-eye.right { right: 72px; }
.avatar-body { position: absolute; z-index: 1; top: 120px; left: 35px; width: 120px; height: 105px; background: var(--blue); box-shadow: -12px 10px #1c57b5, 12px 10px #1c57b5, inset 0 -18px #1c57b5; }
.avatar-laptop { position: absolute; z-index: 5; left: 34px; bottom: 0; width: 126px; height: 72px; color: var(--green); font: 14px var(--heading); text-align: center; padding-top: 22px; background: #202c43; border: 5px solid #5d718d; box-shadow: 0 7px #0b1120; }
.avatar-rod { position: absolute; z-index: 0; top: 62px; right: -19px; width: 7px; height: 185px; background: var(--yellow); transform: rotate(-24deg); transform-origin: bottom; }
.avatar-line { position: absolute; top: -15px; right: -48px; width: 68px; height: 120px; border-top: 2px solid var(--white); border-right: 2px solid var(--white); }
.pixel-water { position: absolute; bottom: 0; width: 100%; height: 64px; background: #08629a; border-top: 8px solid var(--cyan); }
.pixel-water span { position: absolute; width: 60px; height: 6px; background: var(--cyan); animation: wave 2s steps(2) infinite; }
.pixel-water span:nth-child(1) { top: 17px; left: 20px; }.pixel-water span:nth-child(2) { top: 35px; left: 160px; animation-delay: -.7s; }.pixel-water span:nth-child(3) { top: 14px; right: 10px; animation-delay: -1.2s; }
.avatar-console { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 14px; font: 8px var(--heading); background: #24163d; border: 5px solid #40256c; border-top: 0; }
.mini-meter { width: 90px; height: 12px; padding: 2px; border: 2px solid var(--white); }.mini-meter i { display: block; width: 80%; height: 100%; background: var(--green); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; color: var(--cyan); font: 12px var(--heading); text-decoration: none; animation: bob 1.2s steps(2) infinite; }

/* Shared section pieces */
.section-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; }
.section-heading::after { content: ""; flex: 1; height: 4px; margin-left: 16px; background: repeating-linear-gradient(90deg, var(--border) 0 16px, transparent 16px 24px); }
.section-number { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; color: var(--ink); font: 13px var(--heading); background: var(--yellow); box-shadow: 6px 6px 0 #765c16; }
.section-heading .kicker { margin-bottom: 9px; }
h2 { margin: 0; font: 25px/1.4 var(--heading); text-shadow: 4px 4px 0 #182c53; }
h3 { font-family: var(--heading); }
.section-intro { max-width: 760px; margin: -18px 0 40px 80px; color: var(--muted); font-size: 25px; }
.pixel-panel { background: linear-gradient(135deg, rgba(19, 35, 72, .94), rgba(9, 18, 40, .94)); border: 4px solid var(--border); box-shadow: 8px 8px 0 var(--shadow), inset 3px 3px rgba(255, 255, 255, .04); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.story-panel { position: relative; padding: 36px; }
.story-panel p { margin: 0 0 20px; }.story-panel p:last-child { margin-bottom: 0; }
.story-panel strong { color: var(--yellow); }
.story-panel .panel-icon { float: left; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 22px 10px 0; font-size: 34px; background: var(--deep); border: 3px solid var(--cyan); }
.story-panel .quote { padding: 16px 18px; color: var(--green); border-left: 5px solid var(--green); background: rgba(120, 255, 97, .06); }
.stats-panel { padding: 30px; border-color: var(--purple); }
.stats-panel h3 { margin: 0 0 22px; color: var(--purple); font-size: 13px; }
.quick-stats { margin: 0; }
.quick-stats div { padding: 12px 0; border-bottom: 2px dashed var(--border); }
.quick-stats div:last-child { border: 0; }
.quick-stats dt { color: var(--muted); font-size: 19px; }.quick-stats dd { margin: 2px 0 0; color: var(--white); font-size: 22px; }

/* Code Lab */
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skill-card { min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px 8px; text-align: center; background: var(--panel); border: 3px solid var(--border); box-shadow: 4px 4px var(--shadow); transition: transform .15s, border-color .15s; }
.skill-card:hover { z-index: 1; transform: translateY(-5px); border-color: var(--cyan); }
.skill-card span { margin-bottom: 10px; font-size: 30px; }.skill-card strong { color: var(--cyan); font: 9px/1.5 var(--heading); }.skill-card small { color: var(--muted); font-size: 18px; }
.terminal-window { min-width: 0; overflow: hidden; border: 4px solid #4f678f; background: #03070e; box-shadow: 10px 10px var(--shadow); }
.terminal-bar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; color: var(--muted); font-size: 18px; background: #18243a; border-bottom: 4px solid #4f678f; }
.terminal-lights { display: flex; gap: 8px; }.terminal-lights i { width: 11px; height: 11px; background: var(--pink); }.terminal-lights i:nth-child(2) { background: var(--yellow); }.terminal-lights i:nth-child(3) { background: var(--green); }
.terminal-body { padding: 28px 24px; color: var(--white); font-size: 22px; }
.terminal-body p { margin: 0 0 15px; }.term-green { color: var(--green); }.term-blue { color: var(--blue); }.term-cyan { color: var(--cyan); }.term-muted { color: var(--muted); }
.load-bar { width: 100%; height: 20px; margin: 21px 0; padding: 3px; border: 2px solid var(--green); }.load-bar i { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, var(--green) 0 12px, transparent 12px 16px); animation: loading 3s steps(8) infinite; transform-origin: left; }

/* Pixel Pier */
.fishing-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: -5px 0 34px 80px; }
.fishing-tags span { padding: 8px 12px; color: var(--cyan); font-size: 19px; background: #0a1d36; border: 2px solid #1d6080; }
.pier-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.quest-board, .fish-dex { padding: 28px; }
.quest-board h3, .fish-dex h3 { margin: 0 0 24px; color: var(--yellow); font-size: 12px; }
.quest-board ul { list-style: none; margin: 0; padding: 0; }
.quest-board li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 15px 0; border-bottom: 2px dashed var(--border); }
.quest-board input { appearance: none; width: 18px; height: 18px; margin: 0; border: 3px solid var(--cyan); background: transparent; cursor: pointer; }
.quest-board input:checked { background: var(--green); box-shadow: inset 0 0 0 3px var(--panel); }
.quest-board label { cursor: pointer; line-height: 1.2; }.quest-board label span { display: block; color: var(--muted); font-size: 15px; }.quest-board b { color: var(--green); font-size: 17px; white-space: nowrap; }
.quest-board input:checked + label { color: var(--muted); text-decoration: line-through; }
.fish-dex h3 { display: flex; justify-content: space-between; }.fish-dex h3 span { color: var(--muted); font: 16px var(--body); }
.fish-list { display: grid; gap: 12px; }
.fish-entry { display: grid; grid-template-columns: 110px 1fr; align-items: center; min-height: 82px; padding: 10px; background: #08152c; border: 2px solid var(--border); }
.fish-sprite { color: var(--green); font-family: monospace; font-size: 18px; white-space: nowrap; image-rendering: pixelated; animation: fish-bob 1.8s steps(2) infinite; }.fish-sprite.bass { color: var(--cyan); }.fish-sprite.carp { color: var(--purple); text-shadow: 0 0 12px var(--purple); }
.fish-entry small { display: block; color: var(--muted); font-size: 14px; }.fish-entry strong { display: block; color: var(--white); font-size: 20px; }.fish-entry.locked { border-color: #5d4385; }
.pixel-waves { position: absolute; bottom: 0; width: 100%; height: 30px; overflow: hidden; opacity: .6; }.pixel-waves span { position: absolute; width: 120%; height: 6px; background: repeating-linear-gradient(90deg, var(--blue) 0 30px, transparent 30px 45px); }.pixel-waves span:nth-child(2) { top: 10px; left: -30px; background-image: repeating-linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px 35px); }.pixel-waves span:nth-child(3) { top: 21px; left: -10px; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { overflow: hidden; background: var(--panel); border: 4px solid var(--border); box-shadow: 8px 8px var(--shadow); transition: transform .15s, border-color .15s; }
.project-card:hover { transform: translateY(-7px); border-color: var(--green); }
.project-visual { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; background-color: #112653; border-bottom: 4px solid var(--border); }
.project-visual::before { content: ""; position: absolute; inset: 0; opacity: .3; background: linear-gradient(90deg, transparent 50%, rgba(255,255,255,.1) 50%), linear-gradient(transparent 50%, rgba(255,255,255,.1) 50%); background-size: 24px 24px; }
.project-visual span { z-index: 1; font-size: 56px; filter: drop-shadow(6px 6px #07122a); }.project-visual b { position: absolute; right: 10px; bottom: 8px; z-index: 2; color: var(--green); font: 7px var(--heading); }.project-visual i { position: absolute; width: 130px; height: 30px; bottom: 30px; background: rgba(64, 244, 255, .25); border-block: 5px solid var(--cyan); }
.project-visual.hk-map { background: #143c39; }.project-visual.hk-map span { color: var(--yellow); font: 27px var(--heading); }.project-visual.hk-map i { width: 150px; height: 105px; bottom: 41px; background: #247c66; border: 8px solid var(--green); clip-path: polygon(8% 15%, 43% 0, 55% 23%, 85% 15%, 100% 48%, 73% 62%, 85% 100%, 42% 82%, 16% 98%, 0 63%); }
.project-visual.aquarium { background: #082e55; }.project-visual.aquarium i { width: 100%; bottom: 18px; border-color: var(--blue); }
.project-content { padding: 24px; }.project-id { margin: 0 0 10px; color: var(--green); font: 7px var(--heading); }.project-content h3 { min-height: 44px; margin: 0 0 14px; color: var(--yellow); font-size: 12px; line-height: 1.7; }.project-content > p:not(.project-id) { min-height: 92px; margin: 0 0 18px; color: var(--muted); font-size: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; min-height: 32px; margin-bottom: 20px; }.project-tags span { padding: 4px 7px; color: var(--cyan); font: 7px var(--heading); background: #08132b; border: 2px solid #24527f; }

/* Interactive project arcade */
.project-dialog { width: min(920px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; color: var(--white); background: var(--deep); border: 5px solid var(--cyan); box-shadow: 12px 12px 0 rgba(0, 0, 0, .65), inset 0 0 0 4px var(--panel-light); }
.project-dialog::backdrop { background: rgba(1, 3, 10, .88); backdrop-filter: blur(5px); }
.dialog-shell { min-height: 560px; }
.dialog-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; background: #081226; border-bottom: 4px solid var(--blue); }
.dialog-header p { margin: 0 0 7px; color: var(--green); font: 7px var(--heading); }.dialog-header h2 { font-size: 17px; }
.dialog-close { width: 44px; height: 44px; flex: 0 0 auto; padding: 0; color: var(--ink); font: 30px/1 var(--body); background: var(--pink); border: 0; box-shadow: 4px 4px 0 #8f2452; cursor: pointer; }.dialog-close:hover { transform: translateY(-2px); }
.project-app { display: none; padding: 24px; }.project-app.active { display: block; }
.app-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding: 12px 14px; color: var(--yellow); font: 8px/1.5 var(--heading); background: var(--panel); border: 3px solid var(--border); }.app-toolbar strong { color: var(--green); }

.catch-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; background: #071126; border: 3px solid var(--border); }
.catch-form label { color: var(--cyan); font: 7px/1.5 var(--heading); }.catch-form input, .catch-form select { width: 100%; height: 42px; margin-top: 7px; padding: 6px 9px; color: var(--white); font: 20px var(--body); background: var(--ink); border: 2px solid #41638e; border-radius: 0; }.catch-form .pixel-button { grid-column: 1 / -1; justify-self: start; cursor: pointer; }
.catch-log-header { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }.catch-log-header h3 { color: var(--yellow); font-size: 11px; }.catch-log-header button { padding: 7px 9px; color: var(--pink); font: 7px var(--heading); background: transparent; border: 2px solid var(--pink); cursor: pointer; }
.catch-list { list-style: none; min-height: 80px; margin: 0; padding: 0; border-top: 3px solid var(--border); }.catch-list li { display: grid; grid-template-columns: 110px 1fr 1fr 90px auto; gap: 12px; align-items: center; padding: 13px 8px; border-bottom: 2px dashed var(--border); }.catch-list time, .catch-list small { color: var(--muted); }.catch-list strong { color: var(--green); }.catch-list button { color: var(--pink); font: 18px var(--body); background: transparent; border: 0; cursor: pointer; }.catch-list .empty-log { display: block; padding: 24px; color: var(--muted); text-align: center; }

.map-app { display: grid; grid-template-columns: 1.45fr .75fr; gap: 20px; }.interactive-map { position: relative; min-height: 410px; overflow: hidden; background: #072c48; border: 4px solid #2a7193; box-shadow: inset 0 0 40px #031329; }.map-grid-lines { position: absolute; inset: 0; opacity: .16; background: linear-gradient(#fff 2px, transparent 2px), linear-gradient(90deg, #fff 2px, transparent 2px); background-size: 42px 42px; }.hk-land { position: absolute; z-index: 1; background: #277b65; border: 6px solid var(--green); filter: drop-shadow(7px 7px #08231f); }.island-one { width: 64%; height: 33%; left: 10%; top: 23%; clip-path: polygon(0 40%, 18% 8%, 42% 20%, 58% 0, 100% 31%, 85% 70%, 52% 64%, 33% 100%, 8% 77%); }.island-two { width: 36%; height: 21%; right: 9%; bottom: 17%; clip-path: polygon(0 32%, 43% 0, 100% 26%, 82% 100%, 26% 81%); }.island-three { width: 17%; height: 12%; left: 18%; bottom: 11%; clip-path: polygon(17% 0, 100% 24%, 75% 100%, 0 72%); }
.map-pin { position: absolute; z-index: 4; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--ink); font: 9px var(--heading); background: var(--yellow); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--yellow); cursor: pointer; animation: pin-pulse 1.6s steps(2) infinite; }.map-pin span { position: absolute; top: 38px; color: var(--white); font: 7px var(--heading); text-shadow: 2px 2px var(--ink); }.map-pin:hover, .map-pin.selected { background: var(--pink); box-shadow: 0 0 0 3px var(--pink), 0 0 20px var(--pink); }.pin-west { left: 22%; top: 39%; }.pin-east { right: 17%; top: 30%; }.pin-south { left: 48%; bottom: 20%; }
.map-readout { align-self: stretch; padding: 22px; background: var(--panel); border: 3px solid var(--purple); }.map-readout small { color: var(--green); font: 7px var(--heading); }.map-readout h3 { margin: 18px 0; color: var(--yellow); font-size: 13px; line-height: 1.5; }.map-readout p { color: var(--muted); }.map-readout span { display: block; margin-top: 30px; color: var(--cyan); font-size: 18px; }

.code-aquarium { position: relative; height: 400px; overflow: hidden; background: linear-gradient(#062f5a, #041b38 75%); border: 5px solid #2f77a8; box-shadow: inset 0 0 45px #020b1e; }.tank-light { position: absolute; inset: 0; opacity: .17; background: repeating-linear-gradient(105deg, transparent 0 80px, var(--cyan) 82px 100px, transparent 102px 170px); }.tank-floor { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 48px; background: repeating-linear-gradient(135deg, #315c6e 0 12px, #17374c 12px 24px); border-top: 5px solid #5b8c93; }.seaweed { position: absolute; z-index: 3; bottom: 40px; width: 20px; height: 90px; background: var(--green); clip-path: polygon(35% 100%, 16% 77%, 33% 52%, 8% 29%, 36% 0, 57% 29%, 46% 50%, 78% 71%, 62% 100%); }.weed-one { left: 10%; }.weed-two { right: 12%; height: 125px; background: #21b988; }
.aquarium-fish { position: absolute; z-index: 4; left: -120px; top: var(--fish-y); color: var(--fish-color); font: bold var(--fish-size) monospace; white-space: nowrap; text-shadow: 3px 3px #001126; animation: tank-swim var(--fish-speed) linear infinite; animation-delay: var(--fish-delay); }.aquarium-fish.reverse { left: auto; right: -120px; transform: scaleX(-1); animation-name: tank-swim-reverse; }.food-pixel { position: absolute; z-index: 5; top: -10px; width: 7px; height: 7px; background: var(--yellow); animation: food-fall 2.6s linear forwards; }
.aquarium-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }.aquarium-controls button { cursor: pointer; }.aquarium-controls p { margin: 0 0 0 auto; color: var(--green); }
@keyframes pin-pulse { 50% { transform: translateY(-4px); } }
@keyframes tank-swim { to { left: calc(100% + 120px); } }
@keyframes tank-swim-reverse { to { right: calc(100% + 120px); } }
@keyframes food-fall { to { top: 90%; opacity: .3; } }

/* Player card */
.player-card { max-width: 900px; margin-inline: auto; display: grid; grid-template-columns: 290px 1fr; border: 6px solid var(--yellow); outline: 5px solid #745a16; background: var(--panel); box-shadow: 14px 14px var(--shadow); }
.player-portrait { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 450px; padding: 30px; text-align: center; background: #101b3a; border-right: 5px solid #745a16; }
.portrait-pixels { display: grid; place-items: center; width: 170px; height: 170px; margin-bottom: 24px; background: linear-gradient(135deg, #196a78, #18377c); border: 5px solid var(--cyan); box-shadow: inset 0 0 0 8px #0b1632, 7px 7px var(--shadow); }.portrait-pixels span { font-size: 84px; image-rendering: pixelated; }
.player-portrait p { margin: 0 0 5px; color: var(--muted); font: 8px var(--heading); }.player-portrait strong { color: var(--yellow); font: 21px var(--heading); }.player-portrait small { margin-top: 12px; color: var(--cyan); font: 7px var(--heading); }
.player-data { padding: 34px; }.level-row { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 3px dashed var(--border); }.level-row span { color: var(--muted); font: 8px var(--heading); }.level-row strong { color: var(--yellow); }
.meter-row { margin-top: 19px; }.meter-row label { display: flex; justify-content: space-between; color: var(--green); font: 9px var(--heading); }.stat-meter { height: 20px; margin-top: 8px; padding: 3px; border: 3px solid var(--white); }.stat-meter i { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, var(--green) 0 14px, #38be42 14px 17px); }.stat-meter.mp i { width: 88%; background: repeating-linear-gradient(90deg, var(--cyan) 0 14px, #1687b3 14px 17px); }
.data-block { margin-top: 22px; }.data-block h3 { margin: 0 0 7px; color: var(--purple); font-size: 9px; }.data-block p { margin: 0; color: var(--muted); font-size: 20px; }.inventory { display: flex; gap: 10px; margin: 12px 0; }.inventory span { display: grid; place-items: center; width: 45px; height: 45px; background: #071126; border: 2px solid var(--border); }

/* Contact and footer */
.contact-section { text-align: center; background: #071425; border-top: 4px solid var(--cyan); }
.contact-inner { max-width: 900px; }.contact-inner .kicker { margin-bottom: 15px; }.contact-inner h2 { color: var(--yellow); }.contact-inner > p:not(.kicker) { margin: 22px 0 34px; color: var(--muted); font-size: 26px; }
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-button { display: flex; align-items: center; gap: 16px; padding: 20px; text-align: left; text-decoration: none; background: var(--panel); border: 3px solid var(--border); box-shadow: 5px 5px var(--shadow); transition: transform .15s, border-color .15s; }.contact-button:hover { transform: translateY(-5px); border-color: var(--cyan); }.contact-button > span { display: grid; place-items: center; width: 44px; height: 44px; color: var(--green); font-size: 28px; background: var(--deep); border: 2px solid var(--green); }.contact-button small { display: block; color: var(--muted); font: 7px var(--heading); }.contact-button strong { color: var(--white); font: 10px var(--heading); }
.site-footer { padding: 30px 0; text-align: center; color: var(--muted); background: #02050c; border-top: 4px solid var(--purple); }.site-footer p { margin: 4px; font-size: 19px; }.site-footer strong, .pixel-heart { color: var(--pink); }.site-footer a { display: inline-block; margin-top: 13px; color: var(--cyan); font: 8px var(--heading); text-decoration: none; }

/* JavaScript-driven fish and reveal effects */
.swimming-fish { position: fixed; z-index: 80; left: -180px; bottom: 12%; padding: 8px 12px; color: var(--cyan); font: bold 20px monospace; background: rgba(5, 8, 18, .75); border: 2px solid var(--blue); pointer-events: none; opacity: 0; }
.swimming-fish span { color: var(--white); font-size: 12px; }
.swimming-fish.swim { animation: swim-screen 9s linear forwards; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s steps(5), transform .5s steps(5); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(8px); } }
@keyframes wave { 50% { transform: translateX(25px); } }
@keyframes loading { 0% { transform: scaleX(.08); } 100% { transform: scaleX(1); } }
@keyframes fish-bob { 50% { transform: translateY(-5px); } }
@keyframes swim-screen { 0% { left: -180px; opacity: 0; transform: translateY(0); } 5% { opacity: 1; } 45% { transform: translateY(-25px); } 75% { transform: translateY(18px); } 95% { opacity: 1; } 100% { left: calc(100vw + 40px); opacity: 0; transform: translateY(-8px); } }

/* Tablet */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 14px 20px 20px; background: var(--ink); border-bottom: 4px solid var(--blue); }
  .nav-links.open { display: flex; }.nav-links a { padding: 14px; border: 2px solid transparent; }.nav-links a:hover { border-color: var(--green); }
  .hero-grid { grid-template-columns: 1fr 330px; gap: 30px; }.hero h1 { font-size: 31px; }
  .about-grid, .code-grid, .pier-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }.project-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .section-intro, .fishing-tags { margin-left: 0; }
}

/* Mobile */
@media (max-width: 650px) {
  body { font-size: 20px; }.container { width: min(calc(100% - 28px), var(--max-width)); }.section { padding: 78px 0; }
  .hero { min-height: auto; padding-top: 60px; }.hero-grid { grid-template-columns: 1fr; gap: 55px; }.hero-copy { text-align: center; }.hero h1 { font-size: clamp(25px, 9vw, 34px); }.hero-subtitle { font-size: 28px; }.terminal-line { font-size: 22px; }.hero-actions { justify-content: center; }.avatar-station { max-width: 315px; }.avatar-screen { height: 310px; }.pixel-avatar { transform: translateX(-50%) scale(.88); transform-origin: bottom; }
  .scroll-cue { display: none; }.section-heading { gap: 14px; align-items: flex-start; }.section-heading::after { display: none; }.section-number { width: 45px; height: 45px; font-size: 10px; }.section-heading h2, h2 { font-size: 18px; }.section-heading .kicker { font-size: 7px; }
  .about-grid { gap: 18px; }.story-panel, .stats-panel, .quest-board, .fish-dex { padding: 22px; }.story-panel .panel-icon { width: 50px; height: 50px; font-size: 25px; }
  .skill-grid { grid-template-columns: 1fr 1fr; }.skill-card { min-height: 115px; }.terminal-body { padding: 20px 16px; font-size: 19px; }
  .quest-board li { grid-template-columns: 24px 1fr; }.quest-board li b { grid-column: 2; }.fish-entry { grid-template-columns: 92px 1fr; }.fish-sprite { font-size: 15px; }
  .project-grid { grid-template-columns: 1fr; }.project-card:last-child { grid-column: auto; max-width: none; }.project-content > p:not(.project-id) { min-height: auto; }
  .project-dialog { width: calc(100% - 12px); max-height: calc(100vh - 12px); }.dialog-shell { min-height: 520px; }.dialog-header { padding: 14px; }.dialog-header h2 { font-size: 13px; }.project-app { padding: 14px; }.app-toolbar { flex-direction: column; font-size: 7px; }.catch-form { grid-template-columns: 1fr 1fr; padding: 12px; }.catch-list li { grid-template-columns: 90px 1fr auto; }.catch-list li span:nth-of-type(2), .catch-list li small { grid-column: 2; }.map-app { grid-template-columns: 1fr; }.interactive-map { min-height: 310px; }.map-readout { min-height: 190px; }.code-aquarium { height: 330px; }.aquarium-controls p { width: 100%; margin-left: 0; }
  .player-card { grid-template-columns: 1fr; }.player-portrait { min-height: 340px; border-right: 0; border-bottom: 5px solid #745a16; }.player-data { padding: 24px 20px; }.level-row { gap: 14px; }.level-row span { font-size: 7px; }
  .contact-links { grid-template-columns: 1fr; }.contact-button { max-width: 330px; width: 100%; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .swimming-fish { display: none; }
}