/* ==========================================================================
   Keiber Urbila — portafolio
   Editorial técnico + arcade pixel
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/press-start-2p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #080D18;
  --bg-2: #0B1220;
  --surface: #0F182F;
  --surface-soft: rgba(15, 24, 47, 0.55);
  --line: rgba(244, 233, 216, 0.12);
  --line-strong: rgba(244, 233, 216, 0.22);
  --text: #F4E9D8;
  --muted: #93A1B5;
  --green: #21A64A;
  --green-bright: #58E27A;
  --cyan: #66E0D0;
  --peach: #C68864;
  --amber: #E7B45A;
  --ink: #041009;
  --font-sans: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 700px at 82% -12%, rgba(33, 166, 74, 0.12), transparent 64%),
    radial-gradient(850px 620px at -8% 32%, rgba(198, 136, 100, 0.07), transparent 68%),
    linear-gradient(to right, rgba(244, 233, 216, 0.027) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 233, 216, 0.027) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body.game-pseudo-fs {
  overflow: hidden;
}

main:focus {
  outline: none;
}

.page-texture {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.42;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.024) 0,
    rgba(255, 255, 255, 0.024) 1px,
    transparent 1px,
    transparent 3px
  );
}

::selection {
  background: var(--green-bright);
  color: var(--ink);
}

h1, h2, h3, h4, p, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled) {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--green-bright);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Shared typography ---------- */

.pixel-8 {
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pixel-16 {
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pixel-24 {
  font-family: var(--font-pixel);
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(88, 226, 122, 0.1);
  vertical-align: 1px;
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition:
    color 180ms var(--ease),
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(33, 166, 74, 0.22);
}

.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
  box-shadow: 2px 2px 0 rgba(33, 166, 74, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--green-bright);
  background: rgba(88, 226, 122, 0.05);
  color: var(--green-bright);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12.5px;
}

.btn-arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms var(--ease);
}

.btn:hover .btn-arrow {
  transform: translate(2px, 1px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(8, 13, 24, 0.92);
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms var(--ease),
    border-color 220ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 13, 24, 0.98);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(88, 226, 122, 0.4);
  background: var(--bg-2);
  box-shadow: 2px 2px 0 rgba(33, 166, 74, 0.24);
}

.brand-mark img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.brand-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-cursor {
  color: var(--green-bright);
  animation: blink 1.15s steps(1, end) infinite;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms var(--ease);
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--text);
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-index {
  display: none;
}

.nav-extras {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.header-cv:hover {
  color: var(--green-bright);
  border-bottom-color: var(--green-bright);
}

.header-cv-arrow {
  color: var(--green-bright);
}

.header-contact {
  min-width: 108px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}

.menu-lines {
  display: flex;
  width: 18px;
  height: 12px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-lines span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.site-header.nav-open .menu-lines span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header.nav-open .menu-lines span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .menu-lines span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  scroll-margin-top: 24px;
  padding-top: calc(var(--header-h) + clamp(44px, 7vw, 92px));
  padding-bottom: clamp(36px, 4.5vw, 58px);
}

.hero::after {
  content: "";
  position: absolute;
  top: calc(var(--header-h) + 18px);
  right: var(--gutter);
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.7fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(22px, 3.2vw, 34px);
}

.eyebrow-slash {
  color: var(--muted);
}

.hero-title {
  max-width: 900px;
  font-size: clamp(2.55rem, 6.4vw, 5.6rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.06em;
  color: var(--text);
  text-wrap: balance;
}

.title-line {
  display: block;
}

.title-line--accent {
  color: var(--green-bright);
}

.hero-lede {
  max-width: 590px;
  margin-top: clamp(26px, 3.4vw, 38px);
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 38px);
}

.hero-meta {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta > span:first-child {
  margin-right: 5px;
  color: var(--green-bright);
}

.hero-meta-sep {
  color: var(--line-strong);
}

.hero-side {
  position: relative;
  min-width: 0;
  align-self: center;
}

.coordinate-tag {
  margin: 0 2px 16px auto;
  max-width: 160px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-align: right;
  color: var(--muted);
}

.player-card {
  position: relative;
  width: min(100%, 348px);
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow:
    10px 10px 0 rgba(33, 166, 74, 0.12),
    0 28px 70px rgba(0, 0, 0, 0.22);
  transform: rotate(0.9deg);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.player-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    12px 12px 0 rgba(33, 166, 74, 0.16),
    0 34px 80px rgba(0, 0, 0, 0.26);
}

.player-card::before,
.player-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.player-card::before {
  top: -1px;
  left: -1px;
  width: 20px;
  height: 3px;
  background: var(--green-bright);
}

.player-card::after {
  right: -1px;
  bottom: -1px;
  width: 3px;
  height: 20px;
  background: var(--green-bright);
}

.player-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 35px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-2);
}

.player-lv {
  color: var(--green-bright);
}

.player-screen {
  position: relative;
  height: 192px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(33, 166, 74, 0.24), transparent 62%),
    #060B15;
}

.player-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(88, 226, 122, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88, 226, 122, 0.11) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), #000 70%);
}

.player-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(6, 11, 21, 0) 0,
    rgba(6, 11, 21, 0) 3px,
    rgba(6, 11, 21, 0.24) 3px,
    rgba(6, 11, 21, 0.24) 4px
  );
  opacity: 0.4;
}

.player-grid {
  position: absolute;
  inset: 0;
}

.player-coords {
  position: absolute;
  top: 11px;
  left: 13px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.player-ready {
  position: absolute;
  top: 11px;
  right: 13px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--green-bright);
}

.player-ready span {
  width: 4px;
  height: 4px;
  background: var(--green-bright);
  animation: blink 1.4s steps(1, end) infinite;
}

.player-sprite-wrap {
  position: absolute;
  top: 42px;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-sprite {
  background-image: url("../img/poch-sheet.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 500% 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: sprite-cycle 1.05s steps(1, end) infinite;
}

.player-sprite {
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.35));
}

.player-platform {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  width: 132px;
  transform: translateX(-50%);
}

.player-platform span {
  display: block;
  height: 4px;
  background: var(--green);
}

.player-platform span:nth-child(1) {
  width: 18px;
  margin-top: 3px;
}

.player-platform span:nth-child(2) {
  flex: 1;
  background: var(--green-bright);
}

.player-platform span:nth-child(3) {
  width: 18px;
  margin-top: 3px;
}

.player-info {
  padding: 15px 15px 12px;
}

.player-name-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.player-name {
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.player-role {
  max-width: 140px;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-align: right;
  color: var(--green-bright);
}

.player-stats {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.player-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(244, 233, 216, 0.08);
}

.player-stats dt {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.player-stats dd {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.player-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.player-signal > span:last-child {
  color: var(--green-bright);
}

.signal-pips {
  display: flex;
  flex: 1;
  gap: 3px;
}

.signal-pips i {
  display: block;
  height: 5px;
  flex: 1;
  background: var(--green-bright);
}

.signal-pips i:last-child {
  background: rgba(147, 161, 181, 0.25);
}

.player-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 31px;
  padding: 0 13px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.player-foot-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-bright);
}

.hero-side-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: right;
  color: var(--muted);
}

.hero-side-note span {
  color: var(--peach);
}

/* ---------- Hero metrics ---------- */

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  position: relative;
  padding: 22px clamp(14px, 2vw, 26px) 20px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border-right: 0;
  padding-right: 0;
}

.metric-code {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  color: var(--green-bright);
}

.metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.055em;
  color: var(--text);
}

.metric-label {
  display: block;
  max-width: 220px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.scroll-cue > span {
  display: block;
  width: 1px;
  height: 18px;
  background: linear-gradient(to bottom, var(--green-bright), transparent);
  animation: scroll-cue 1.8s var(--ease) infinite;
}

.hero-footcode {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(78px, 10vw, 136px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1.62fr);
  gap: clamp(24px, 4.5vw, 68px);
  margin-bottom: clamp(44px, 6.5vw, 76px);
}

.section-rail {
  min-width: 0;
}

.section-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label > span:first-child {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(88, 226, 122, 0.3);
  color: var(--green-bright);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.label-build {
  color: var(--peach);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.section-rail-note {
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.72;
}

.section-heading {
  min-width: 0;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.65rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-intro {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.15vw, 1.05rem);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(290px, 0.66fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.about-copy {
  max-width: 760px;
}

.about-copy > p {
  margin-bottom: 1.35em;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  text-wrap: pretty;
}

.about-copy > .about-lead {
  color: var(--text);
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.about-pull {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 32px 0 0 !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--cyan) !important;
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem) !important;
  line-height: 1.7 !important;
  letter-spacing: 0.01em;
}

.about-pull span {
  color: var(--green-bright);
  font-size: 12px;
  line-height: 1.9;
}

.profile-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 8px 8px 0 rgba(33, 166, 74, 0.09);
}

.profile-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 2px;
  background: var(--green-bright);
}

.profile-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.window-dots {
  display: flex;
  gap: 4px;
}

.window-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(147, 161, 181, 0.45);
}

.profile-list {
  padding: 7px 15px;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(244, 233, 216, 0.08);
}

.profile-list > div:last-child {
  border-bottom: 0;
}

.profile-list dt {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-list dd {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}

.profile-list dd > span:not(.status-dot) {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.profile-list dd.available {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-bright);
}

.profile-list dd.available .status-dot {
  background: var(--green-bright);
}

.terminal {
  margin: 5px 15px 16px;
  border: 1px solid rgba(244, 233, 216, 0.13);
  background: #060b15;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(244, 233, 216, 0.08);
}

.terminal-bar span {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--line-strong);
}

.terminal-bar span:first-child {
  background: var(--peach);
}

.terminal-bar em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.terminal-body {
  padding: 11px 10px 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.9;
  color: var(--muted);
}

.terminal-prompt {
  margin-right: 6px;
  color: var(--green-bright);
}

.terminal-out {
  padding-left: 13px;
  color: var(--text);
}

.terminal-cursor {
  display: inline-block;
  width: 5px;
  height: 10px;
  margin-left: 4px;
  background: var(--green-bright);
  vertical-align: -1px;
  animation: blink 1.05s steps(1, end) infinite;
}

.profile-cv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 15px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.profile-cv span:last-child {
  color: var(--green-bright);
}

.profile-cv:hover {
  background: rgba(88, 226, 122, 0.05);
  color: var(--green-bright);
}

/* ---------- Game ---------- */

.section-game {
  background:
    radial-gradient(820px 460px at 78% 20%, rgba(33, 166, 74, 0.1), transparent 70%),
    var(--bg-2);
  border-top-color: rgba(244, 233, 216, 0.16);
  overflow: hidden;
}

.section-game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(244, 233, 216, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 233, 216, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 82%, transparent);
}

.section-game > .container {
  position: relative;
  z-index: 1;
}

.game-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.game-head-main {
  min-width: 0;
}

.game-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 23px;
}

.game-title-pixel {
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 rgba(33, 166, 74, 0.28);
}

.game-title-sub {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--green-bright);
}

.game-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.game-tagline {
  margin-bottom: 14px;
  color: var(--text) !important;
  font-size: clamp(1.4rem, 2.4vw, 2rem) !important;
  font-weight: 500;
  line-height: 1.1 !important;
  letter-spacing: -0.035em;
}

.game-tagline span {
  color: var(--green-bright);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 24px;
  align-items: start;
}

.game-column {
  min-width: 0;
}

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #050a12;
  border: 1px solid rgba(244, 233, 216, 0.23);
  box-shadow:
    7px 7px 0 rgba(33, 166, 74, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.2);
}

.game-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.35) 3px,
    rgba(0, 0, 0, 0.35) 4px
  );
}

.game-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
}

.game-frame.is-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 350;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
}

body.game-pseudo-fs .section-game > .container {
  z-index: 360;
}

body.game-pseudo-fs .site-header {
  visibility: hidden;
  pointer-events: none;
}

.game-mount {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.game-mount iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050a12;
}

.game-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  background: #070d18;
}

.poster-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.poster-stars {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(244, 233, 216, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 20% 34%, rgba(244, 233, 216, 0.5), transparent),
    radial-gradient(1px 1px at 32% 12%, rgba(102, 224, 208, 0.8), transparent),
    radial-gradient(2px 2px at 46% 24%, rgba(244, 233, 216, 0.55), transparent),
    radial-gradient(1px 1px at 63% 9%, rgba(244, 233, 216, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 78% 28%, rgba(198, 136, 100, 0.75), transparent),
    radial-gradient(1px 1px at 91% 16%, rgba(244, 233, 216, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 56% 47%, rgba(88, 226, 122, 0.65), transparent),
    radial-gradient(1px 1px at 14% 61%, rgba(244, 233, 216, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 86% 57%, rgba(244, 233, 216, 0.4), transparent);
}

.poster-glow {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 166, 74, 0.22), transparent 65%);
}

.poster-grid-floor {
  position: absolute;
  right: 0;
  bottom: 22%;
  left: 0;
  height: 32%;
  background-image:
    linear-gradient(to right, rgba(88, 226, 122, 0.17) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88, 226, 122, 0.17) 1px, transparent 1px);
  background-size: 28px 18px;
  transform: perspective(150px) rotateX(48deg);
  transform-origin: bottom center;
  opacity: 0.38;
  mask-image: linear-gradient(to top, #000 5%, transparent 92%);
}

.poster-skyline {
  position: absolute;
  right: 0;
  bottom: 22%;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 1.2%;
  height: 19%;
  opacity: 0.72;
}

.poster-skyline i {
  display: block;
  flex: 1;
  background: #0b1730;
  border-top: 1px solid rgba(88, 226, 122, 0.22);
}

.poster-skyline i:nth-child(1) { height: 32%; }
.poster-skyline i:nth-child(2) { height: 58%; }
.poster-skyline i:nth-child(3) { height: 42%; }
.poster-skyline i:nth-child(4) { height: 76%; }
.poster-skyline i:nth-child(5) { height: 50%; }
.poster-skyline i:nth-child(6) { height: 88%; }
.poster-skyline i:nth-child(7) { height: 37%; }

.poster-platform {
  position: absolute;
  right: 14%;
  bottom: 23%;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 22%;
  min-width: 90px;
}

.poster-platform span {
  display: block;
  height: 5px;
  background: var(--green);
}

.poster-platform span:nth-child(1) {
  width: 14%;
  margin-top: 4px;
}

.poster-platform span:nth-child(2) {
  flex: 1;
  height: 6px;
  background: var(--green-bright);
}

.poster-platform span:nth-child(3) {
  width: 14%;
  margin-top: 4px;
}

.poster-platform span:nth-child(4) {
  width: 5%;
  margin-top: 9px;
  background: rgba(88, 226, 122, 0.45);
}

.poster-sprite-wrap {
  position: absolute;
  right: 16%;
  bottom: calc(23% + 15px);
  z-index: 1;
}

.poster-sprite {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.4));
}

.poster-sprite-shadow {
  position: absolute;
  right: 6%;
  bottom: -14px;
  left: 6%;
  height: 4px;
  background: rgba(33, 166, 74, 0.35);
  filter: blur(2px);
}

.poster-crosshair {
  position: absolute;
  top: 38%;
  right: 7%;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(102, 224, 208, 0.38);
  border-radius: 50%;
}

.poster-crosshair::before,
.poster-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(102, 224, 208, 0.5);
}

.poster-crosshair::before {
  top: 11px;
  right: -6px;
  left: -6px;
  height: 1px;
}

.poster-crosshair::after {
  top: -6px;
  bottom: -6px;
  left: 11px;
  width: 1px;
}

.poster-coin {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(231, 180, 90, 0.12);
}

.poster-coin--a {
  top: 35%;
  left: 53%;
}

.poster-coin--b {
  top: 51%;
  left: 63%;
  width: 5px;
  height: 5px;
  background: var(--peach);
}

.poster-meta {
  position: absolute;
  right: clamp(14px, 2.2vw, 24px);
  left: clamp(14px, 2.2vw, 24px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.poster-meta--top {
  top: 13px;
}

.poster-meta--bottom {
  bottom: 11px;
}

.poster-build {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-bright);
}

.poster-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(38px, 5vw, 52px) clamp(18px, 3.8vw, 36px) clamp(34px, 4.5vw, 48px);
}

.poster-copy {
  position: relative;
  width: 62%;
  min-width: 0;
}

.poster-kicker {
  color: var(--muted);
  font-size: 8px;
}

.poster-logo {
  margin-top: 12px;
  color: var(--text);
  font-size: 24px;
  text-shadow: 3px 3px 0 rgba(33, 166, 74, 0.22);
}

.poster-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green-bright);
}

.poster-action {
  position: relative;
  z-index: 4;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--text);
  border-radius: 1px;
  background: var(--text);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.btn-start:hover {
  background: var(--green-bright);
  border-color: var(--green-bright);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--green);
}

.btn-start:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--green);
}

.btn-start-arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 160ms var(--ease);
}

.btn-start:hover .btn-start-arrow {
  transform: translateX(3px);
}

.poster-hint {
  margin-top: 11px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.game-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(33, 166, 74, 0.12), transparent 62%),
    rgba(5, 10, 18, 0.97);
  text-align: center;
}

.game-loading:focus {
  outline: none;
}

.loader-pixels {
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
}

.loader-pixels span {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--line-strong);
  animation: loader-blocks 1.2s steps(1, end) infinite;
}

.loader-pixels span:nth-child(2) { animation-delay: 0.12s; }
.loader-pixels span:nth-child(3) { animation-delay: 0.24s; }
.loader-pixels span:nth-child(4) { animation-delay: 0.36s; }
.loader-pixels span:nth-child(5) { animation-delay: 0.48s; }

.loader-kicker {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
  color: var(--green-bright);
}

.loader-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

.loader-meter {
  width: min(210px, 60%);
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  background: rgba(244, 233, 216, 0.12);
}

.loader-meter span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--green-bright);
  animation: loader-meter 1.4s var(--ease) infinite;
}

.loader-note {
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--muted);
  opacity: 0.7;
}

.loader-fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 5px;
  padding: 0 4px;
  border-bottom: 1px solid var(--green-bright);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.fs-exit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 24, 0.9);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-frame.is-pseudo-fullscreen .fs-exit {
  display: inline-flex;
}

.game-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.045em;
  color: var(--muted);
}

.game-caption p:first-child span {
  color: var(--green-bright);
}

.game-caption-right {
  white-space: nowrap;
  opacity: 0.8;
}

/* HUD */

.hud {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(33, 166, 74, 0.09);
  transition: border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.hud::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 2px;
  background: var(--green-bright);
}

.hud.is-online {
  border-color: rgba(88, 226, 122, 0.35);
  box-shadow: 6px 6px 0 rgba(33, 166, 74, 0.16);
}

.hud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.hud-kicker {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.hud-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.hud-state .status-dot {
  background: var(--muted);
  box-shadow: none;
}

.hud.is-online .hud-state {
  color: var(--green-bright);
}

.hud.is-online .hud-state .status-dot {
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(88, 226, 122, 0.1);
  animation: blink 1.5s steps(1, end) infinite;
}

.hud-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--green-bright);
}

.signal-bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(244, 233, 216, 0.15);
  background: #060b15;
}

.signal-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green-bright);
  box-shadow: 0 0 12px rgba(88, 226, 122, 0.45);
  transition: width 350ms var(--ease);
}

.signal-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(10% - 1px),
    var(--surface) calc(10% - 1px),
    var(--surface) 10%
  );
}

.hud-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  color: rgba(147, 161, 181, 0.6);
}

.hud-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hud-counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--bg-2);
}

.hud-count {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hud-event-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 4px 0;
}

.hud-event-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: var(--green);
}

.hud-event {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-event.is-active {
  color: var(--green-bright);
  animation: hud-flash 480ms var(--ease);
}

.hud.is-online .hud-event-dot {
  background: var(--green-bright);
}

.hud-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  transition: border-color 170ms var(--ease), color 170ms var(--ease), background-color 170ms var(--ease);
}

.hud-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.hud-btn:hover {
  border-color: rgba(88, 226, 122, 0.6);
  background: rgba(88, 226, 122, 0.055);
  color: var(--green-bright);
}

.hud-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.hud-btn:disabled:hover {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.hud-btn--link {
  grid-column: 1 / -1;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.045em;
  transition: color 170ms var(--ease), opacity 170ms var(--ease);
}

.sound-toggle:hover {
  color: var(--green-bright);
}

.sound-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.sound-icon {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid currentColor;
}

.sound-icon span {
  width: 4px;
  height: 4px;
  background: currentColor;
}

.sound-toggle[aria-pressed="true"] .sound-icon span {
  width: 8px;
  height: 1px;
}

.hud-help {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.hud-help-title {
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
  color: var(--text);
}

.hud-help kbd {
  display: inline-block;
  padding: 1px 4px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text);
}

.hud-footnote {
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.8;
}

.game-credit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.025em;
  color: var(--muted);
  transition: color 170ms var(--ease), border-color 170ms var(--ease);
}

.game-credit:hover {
  color: var(--green-bright);
  border-bottom-color: rgba(88, 226, 122, 0.45);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 164px 22px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
  padding-bottom: 26px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-when {
  padding-top: 9px;
  text-align: right;
}

.timeline-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.035em;
  color: var(--text);
}

.timeline-place {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 11px;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -26px;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::before {
  display: none;
}

.timeline-marker span {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border: 1px solid var(--green);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-item:first-child .timeline-marker span {
  background: var(--green-bright);
  border-color: var(--green-bright);
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(88, 226, 122, 0.5);
}

.timeline-card {
  min-width: 0;
  padding: clamp(19px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: rgba(15, 24, 47, 0.4);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.timeline-card:hover {
  border-color: rgba(244, 233, 216, 0.2);
  background: rgba(15, 24, 47, 0.66);
}

.timeline-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.timeline-card-head h3 {
  font-size: clamp(1.34rem, 2vw, 1.72rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.timeline-role {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.025em;
  color: var(--green-bright);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(244, 233, 216, 0.16);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--live {
  border-color: rgba(88, 226, 122, 0.3);
  color: var(--green-bright);
}

.tag--live .status-dot {
  width: 4px;
  height: 4px;
  box-shadow: none;
}

.bullets {
  display: grid;
  gap: 7px;
  max-width: 76ch;
}

.bullets li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 0.73em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--green);
}

.timeline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.timeline-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(244, 233, 216, 0.1);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--peach);
  background: rgba(8, 13, 24, 0.35);
}

.timeline-metrics span:first-child {
  border-color: rgba(88, 226, 122, 0.22);
  color: var(--green-bright);
}

/* ---------- Stack ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stack-card {
  min-width: 0;
  min-height: 196px;
  padding: clamp(18px, 2.3vw, 26px);
  background: var(--bg-2);
  transition: background-color 200ms var(--ease);
}

.stack-card:hover {
  background: var(--surface);
}

.stack-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}

.stack-code,
.stack-index {
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.4;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.stack-code {
  color: var(--green-bright);
}

.stack-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.16rem, 1.55vw, 1.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: rgba(8, 13, 24, 0.36);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.stack-card:hover .chips li {
  border-color: rgba(244, 233, 216, 0.2);
}

.chips li:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.stack-note {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack-note-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--green-bright);
}

.stack-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.stack-note-line {
  width: 1px;
  height: 26px;
  margin-left: auto;
  background: linear-gradient(to bottom, var(--green-bright), transparent);
}

/* ---------- Projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  overflow: hidden;
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    background-color 220ms var(--ease);
}

.project-card:hover {
  border-color: rgba(88, 226, 122, 0.32);
  background: rgba(15, 24, 47, 0.72);
  transform: translateY(-3px);
}

.project-card--seven {
  grid-column: span 7;
}

.project-card--five {
  grid-column: span 5;
}

.project-card--twelve {
  grid-column: span 12;
}

.project-visual {
  position: relative;
  min-height: 234px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #08101e;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-meta > span:first-child {
  color: var(--green-bright);
}

.project-year {
  color: var(--muted);
}

.project-body h3 {
  max-width: 480px;
  font-size: clamp(1.4rem, 2vw, 1.72rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.project-body h3 span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-role {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--peach);
}

.project-bullets {
  display: grid;
  gap: 5px;
  margin-top: 15px;
}

.project-bullets li {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.project-bullets li::before {
  content: "";
  position: absolute;
  top: 0.71em;
  left: 0;
  width: 3px;
  height: 3px;
  background: var(--green);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
}

.project-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(244, 233, 216, 0.1);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.project-card--horizontal {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
}

.project-card--horizontal .project-visual {
  order: 2;
  min-height: 286px;
  border-bottom: 0;
  border-left: 1px solid var(--line);
}

.project-card--horizontal .project-body {
  justify-content: center;
}

/* Project: dashboard */

.project-visual--dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(ellipse at 60% 20%, rgba(33, 166, 74, 0.14), transparent 60%),
    #08101e;
}

.ui-window {
  width: min(100%, 460px);
  border: 1px solid rgba(244, 233, 216, 0.18);
  background: #0b1424;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(-1deg);
}

.ui-window-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 27px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(244, 233, 216, 0.1);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ui-window-bar > span:nth-child(2) {
  margin-inline: auto;
}

.ui-dots {
  display: flex;
  gap: 3px;
}

.ui-dots i {
  width: 4px;
  height: 4px;
  background: var(--line-strong);
}

.ui-dots i:first-child {
  background: var(--peach);
}

.ui-window-body {
  display: grid;
  grid-template-columns: 36px 1fr;
  min-height: 142px;
}

.ui-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding-top: 14px;
  border-right: 1px solid rgba(244, 233, 216, 0.08);
}

.ui-sidebar span {
  display: block;
  width: 10px;
  height: 2px;
  background: rgba(147, 161, 181, 0.35);
}

.ui-sidebar span:nth-child(2) {
  background: var(--green-bright);
}

.ui-dashboard {
  min-width: 0;
  padding: 12px 13px;
}

.ui-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ui-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 82px;
  margin-top: 13px;
  padding-top: 8px;
  border-bottom: 1px solid rgba(244, 233, 216, 0.13);
  background-image: linear-gradient(to bottom, rgba(244, 233, 216, 0.06) 1px, transparent 1px);
  background-size: 100% 21px;
}

.ui-bar {
  flex: 1;
  height: 50%;
  background: rgba(147, 161, 181, 0.25);
}

.ui-bar:nth-child(1) { height: 38%; }
.ui-bar:nth-child(2) { height: 56%; }
.ui-bar:nth-child(3) { height: 44%; }
.ui-bar:nth-child(4) { height: 82%; }
.ui-bar:nth-child(5) { height: 64%; }
.ui-bar:nth-child(6) { height: 72%; }
.ui-bar:nth-child(7) { height: 94%; }
.ui-bar:nth-child(8) { height: 79%; }

.ui-bar--hot {
  background: var(--green);
}

.ui-rows {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.ui-rows span {
  display: block;
  width: 100%;
  height: 4px;
  background: rgba(147, 161, 181, 0.16);
}

.ui-rows span:nth-child(2) {
  width: 78%;
}

.ui-rows span:nth-child(3) {
  width: 90%;
}

.visual-float {
  position: absolute;
  right: clamp(16px, 3.5vw, 28px);
  bottom: 17px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(88, 226, 122, 0.3);
  background: rgba(8, 13, 24, 0.86);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--green-bright);
}

/* Project: AR */

.project-visual--ar {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(198, 136, 100, 0.15), transparent 58%),
    #08101e;
}

.ar-grid {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(to right, rgba(198, 136, 100, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 136, 100, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(140px) rotateX(48deg) rotateZ(-6deg);
  opacity: 0.45;
  mask-image: radial-gradient(circle at center, #000, transparent 68%);
}

.ar-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(102, 224, 208, 0.65);
  border-style: solid;
}

.ar-corner--tl {
  top: 18px;
  left: 18px;
  border-width: 1px 0 0 1px;
}

.ar-corner--tr {
  top: 18px;
  right: 18px;
  border-width: 1px 1px 0 0;
}

.ar-corner--bl {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 1px 1px;
}

.ar-corner--br {
  right: 18px;
  bottom: 18px;
  border-width: 0 1px 1px 0;
}

.ar-label,
.ar-tech {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ar-label {
  top: 27px;
  left: 50%;
  color: var(--cyan);
  transform: translateX(-50%);
}

.ar-tech {
  right: 26px;
  bottom: 25px;
  color: var(--peach);
}

.ar-object {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  transform: rotate(30deg) skew(-6deg, -6deg);
}

.ar-object span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(198, 136, 100, 0.7);
  background: rgba(198, 136, 100, 0.06);
}

.ar-object span:nth-child(1) {
  transform: translate(-14px, -14px);
  border-color: rgba(244, 233, 216, 0.32);
}

.ar-object span:nth-child(2) {
  transform: translate(0, 0);
  border-color: var(--peach);
}

.ar-object span:nth-child(3) {
  transform: translate(14px, 14px);
  border-color: rgba(88, 226, 122, 0.55);
}

.ar-ring {
  position: absolute;
  z-index: 1;
  width: 190px;
  height: 76px;
  border: 1px solid rgba(88, 226, 122, 0.32);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.ar-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(102, 224, 208, 0.18);
}

/* Project: telemetry */

.project-visual--telemetry {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(88, 226, 122, 0.08), transparent 65%),
    #08101e;
}

.telemetry-head,
.telemetry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.telemetry-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-bright);
}

.telemetry-live i {
  width: 4px;
  height: 4px;
  background: var(--green-bright);
  animation: blink 1.6s steps(1, end) infinite;
}

.telemetry-chart {
  position: relative;
  flex: 1;
  min-height: 100px;
  margin: 12px 0 8px;
  overflow: hidden;
  border: 1px solid rgba(244, 233, 216, 0.1);
  background-image:
    linear-gradient(to right, rgba(244, 233, 216, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 233, 216, 0.055) 1px, transparent 1px);
  background-size: 24px 20px;
}

.telemetry-gridline {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(244, 233, 216, 0.055);
}

.telemetry-gridline:nth-child(1) { top: 25%; }
.telemetry-gridline:nth-child(2) { top: 50%; }
.telemetry-gridline:nth-child(3) { top: 75%; }

.telemetry-area {
  position: absolute;
  inset: 22% 0 0;
  background: rgba(33, 166, 74, 0.13);
  clip-path: polygon(0 64%, 9% 52%, 18% 59%, 29% 34%, 39% 42%, 50% 22%, 61% 38%, 72% 17%, 83% 30%, 92% 13%, 100% 22%, 100% 100%, 0 100%);
}

.telemetry-path {
  position: absolute;
  inset: 22% 0 0;
  border-top: 1px solid var(--green-bright);
  clip-path: polygon(0 64%, 9% 52%, 18% 59%, 29% 34%, 39% 42%, 50% 22%, 61% 38%, 72% 17%, 83% 30%, 92% 13%, 100% 22%, 100% 25%, 92% 16%, 83% 33%, 72% 20%, 61% 41%, 50% 25%, 39% 45%, 29% 37%, 18% 62%, 9% 55%, 0 67%);
  background: var(--green-bright);
}

.telemetry-point {
  position: absolute;
  z-index: 2;
  width: 5px;
  height: 5px;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(88, 226, 122, 0.13);
}

.telemetry-point--1 { top: 31%; left: 29%; }
.telemetry-point--2 { top: 16%; left: 50%; }
.telemetry-point--3 { top: 9%; left: 92%; }

.telemetry-numbers {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.telemetry-big {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text);
}

.telemetry-numbers > span:last-child {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.telemetry-foot {
  margin-top: 11px;
  padding-top: 8px;
  border-top: 1px solid rgba(244, 233, 216, 0.1);
}

.telemetry-foot span:last-child {
  color: var(--peach);
}

/* Project: stream */

.project-visual--stream {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(102, 224, 208, 0.12), transparent 56%),
    #07101c;
}

.stream-noise {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    radial-gradient(rgba(244, 233, 216, 0.5) 0.5px, transparent 0.5px),
    radial-gradient(rgba(244, 233, 216, 0.35) 0.5px, transparent 0.5px);
  background-position: 0 0, 7px 9px;
  background-size: 14px 14px, 19px 19px;
  mask-image: radial-gradient(circle at center, transparent 10%, #000 90%);
}

.stream-kicker {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.stream-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  transform: translate(-50%, -50%);
}

.stream-play {
  position: relative;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  padding-left: 4px;
  place-items: center;
  border: 1px solid var(--text);
  background: rgba(8, 13, 24, 0.7);
  color: var(--text);
  font-size: 16px;
}

.stream-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(102, 224, 208, 0.27);
  border-radius: 50%;
  animation: stream-pulse 3.2s var(--ease) infinite;
}

.stream-ring--2 {
  inset: -20px;
  animation-delay: 1.3s;
}

.stream-eq {
  position: absolute;
  right: 20px;
  bottom: 48px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  opacity: 0.48;
}

.stream-eq span {
  flex: 1;
  height: 30%;
  background: var(--cyan);
  animation: eq 1.1s steps(1, end) infinite;
}

.stream-eq span:nth-child(2) { height: 68%; animation-delay: -0.2s; }
.stream-eq span:nth-child(3) { height: 44%; animation-delay: -0.6s; }
.stream-eq span:nth-child(4) { height: 86%; animation-delay: -0.4s; }
.stream-eq span:nth-child(5) { height: 55%; animation-delay: -0.8s; }
.stream-eq span:nth-child(6) { height: 32%; animation-delay: -0.1s; }
.stream-eq span:nth-child(7) { height: 74%; animation-delay: -0.5s; }
.stream-eq span:nth-child(8) { height: 48%; animation-delay: -0.3s; }
.stream-eq span:nth-child(9) { height: 92%; animation-delay: -0.7s; }
.stream-eq span:nth-child(10) { height: 36%; animation-delay: -0.9s; }
.stream-eq span:nth-child(11) { height: 62%; animation-delay: -0.25s; }
.stream-eq span:nth-child(12) { height: 42%; animation-delay: -0.55s; }

.stream-data {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.stream-data strong {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
}

.stream-data span:last-child {
  margin-left: auto;
  color: var(--cyan);
}

/* Project: bracket */

.project-visual--bracket {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background:
    radial-gradient(ellipse at 65% 50%, rgba(33, 166, 74, 0.1), transparent 66%),
    #08101e;
}

.bracket-head,
.bracket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bracket-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-bright);
}

.bracket-live i {
  width: 4px;
  height: 4px;
  background: var(--green-bright);
}

.bracket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  flex: 1;
  gap: 10px 60px;
  padding: 17px 10px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.bracket-round span {
  display: block;
  padding: 5px 7px;
  border: 1px solid rgba(244, 233, 216, 0.13);
  background: #0b1424;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.bracket-round--r1 {
  justify-content: center;
  gap: 12px;
}

.bracket-round--r1:first-of-type {
  align-self: start;
  margin-top: 9px;
}

.bracket-round span.is-win {
  border-color: rgba(88, 226, 122, 0.35);
  color: var(--green-bright);
}

.bracket-round--final {
  position: relative;
  align-self: center;
  margin-top: 0;
}

.bracket-connector {
  position: absolute;
  height: 1px;
  background: rgba(244, 233, 216, 0.18);
}

.bracket-connector--a {
  top: 27%;
  left: 22%;
  width: 23%;
}

.bracket-connector--b {
  top: 73%;
  left: 22%;
  width: 23%;
}

.bracket-connector--c {
  top: 50%;
  left: 45%;
  width: 11%;
}

.bracket-connector--a::after,
.bracket-connector--b::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: var(--connector-h, 56px);
  background: rgba(244, 233, 216, 0.18);
}

.bracket-foot {
  padding-top: 8px;
  border-top: 1px solid rgba(244, 233, 216, 0.1);
}

.bracket-foot span:last-child {
  color: var(--peach);
}

/* ---------- Contact ---------- */

.section-contact {
  padding-bottom: clamp(64px, 8vw, 100px);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 3px;
  background: var(--green-bright);
}

.contact-panel::after {
  content: "KU";
  position: absolute;
  right: 4%;
  bottom: -7%;
  z-index: 0;
  font-family: var(--font-sans);
  font-size: 120px;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  color: rgba(244, 233, 216, 0.025);
  pointer-events: none;
}

.contact-main,
.contact-side {
  position: relative;
  z-index: 1;
}

.contact-main {
  padding: clamp(28px, 4.5vw, 56px);
}

.contact-main .section-label {
  margin-bottom: 26px;
}

.contact-main h2 {
  font-size: clamp(2.35rem, 4.9vw, 4.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.contact-lede {
  max-width: 51ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  margin-top: clamp(24px, 3vw, 36px);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(88, 226, 122, 0.45);
  color: var(--green-bright);
  font-size: clamp(1rem, 2.15vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.contact-email span {
  font-family: var(--font-mono);
  font-size: 0.75em;
  font-weight: 400;
}

.contact-email:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.contact-side {
  padding: clamp(26px, 3.5vw, 42px);
  border-left: 1px solid var(--line);
  background: var(--bg-2);
}

.contact-side-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-list {
  display: grid;
}

.contact-list li {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(244, 233, 216, 0.09);
}

.contact-list-label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-static {
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  border-bottom: 1px solid transparent;
  transition: color 170ms var(--ease), border-color 170ms var(--ease);
}

.contact-list a:hover {
  color: var(--green-bright);
  border-bottom-color: rgba(88, 226, 122, 0.5);
}

.contact-list a span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-bright);
}

.contact-static {
  color: var(--muted);
}

.contact-static span {
  color: var(--line-strong);
}

.contact-cta {
  width: 100%;
  margin-top: 24px;
}

.contact-marquee {
  display: block;
  width: max-content;
  margin-inline: auto;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.contact-marquee span:nth-child(even) {
  color: var(--green-bright);
}

.contact-marquee span {
  display: inline-flex;
  align-items: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(30px, 4vw, 44px) 0 22px;
  background: rgba(8, 13, 24, 0.62);
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 26px;
}

.footer-brand {
  min-height: 40px;
}

.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
}

.footer-brand .brand-mark img {
  width: 14px;
  height: 14px;
}

.footer-brand .brand-text {
  font-size: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 170ms var(--ease);
}

.footer-nav a:hover {
  color: var(--green-bright);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
}

.footer-top-link span {
  color: var(--green-bright);
  font-size: 12px;
}

.footer-top-link:hover {
  color: var(--green-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-status .status-dot {
  width: 4px;
  height: 4px;
  box-shadow: none;
}

.footer-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid rgba(88, 226, 122, 0.28);
  color: var(--green-bright);
  letter-spacing: 0.02em;
}

/* ---------- Animation ---------- */

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes sprite-cycle {
  0%, 19.99% { background-position: 0% 0; }
  20%, 39.99% { background-position: 25% 0; }
  40%, 59.99% { background-position: 50% 0; }
  60%, 79.99% { background-position: 75% 0; }
  80%, 100% { background-position: 100% 0; }
}

@keyframes scroll-cue {
  0%, 100% { transform: scaleY(0.55); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes loader-blocks {
  0%, 100% { background: var(--line-strong); }
  30%, 49% { background: var(--green-bright); }
  50%, 100% { background: var(--line-strong); }
}

@keyframes loader-meter {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

@keyframes hud-flash {
  0% { background: rgba(88, 226, 122, 0.18); }
  100% { background: transparent; }
}

@keyframes stream-pulse {
  0% { transform: scale(0.75); opacity: 0.7; }
  70%, 100% { transform: scale(1.3); opacity: 0; }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.58); }
  25% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
  75% { transform: scaleY(0.82); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1160px) {
  .nav-list {
    gap: 16px;
  }

  .header-inner {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(278px, 0.75fr);
    gap: 42px;
  }

  .player-card {
    width: 100%;
  }

  .game-layout {
    grid-template-columns: minmax(0, 1fr) 304px;
  }
}

@media (max-width: 1040px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hud {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px 24px;
    padding: 18px;
  }

  .hud-head,
  .hud-event-row,
  .hud-actions {
    grid-column: 1 / -1;
  }

  .hud-head {
    padding-bottom: 10px;
  }

  .hud-block {
    grid-column: 1;
  }

  .hud-counters {
    grid-column: 2;
    align-self: end;
  }

  .hud-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hud-btn--link {
    grid-column: auto;
  }

  .sound-toggle {
    grid-column: 1;
    align-self: center;
  }

  .hud-help {
    grid-column: 1;
    margin-top: 0;
  }

  .game-credit {
    grid-column: 2;
    align-self: end;
    justify-self: end;
    text-align: right;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
    gap: 38px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 68px;
  }

  body {
    background-attachment: scroll;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-contact,
  .header-cv {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px var(--gutter) 26px;
    overflow-y: auto;
    background:
      radial-gradient(700px 500px at 85% 10%, rgba(33, 166, 74, 0.1), transparent 65%),
      var(--bg);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 200ms var(--ease),
      transform 200ms var(--ease),
      visibility 0s linear 200ms;
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 200ms var(--ease),
      transform 200ms var(--ease),
      visibility 0s linear 0s;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 6px;
  }

  .nav-list a {
    justify-content: flex-start;
    gap: 18px;
    min-height: 60px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-sans);
    font-size: clamp(1.7rem, 6vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    text-transform: none;
    color: var(--text);
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a.is-active,
  .nav-list a:hover {
    color: var(--green-bright);
  }

  .nav-index {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--muted);
  }

  .nav-extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
  }

  .nav-extras .btn {
    min-height: 48px;
  }

  .nav-note {
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    color: var(--muted);
  }

  .nav-note span {
    color: var(--green-bright);
  }

  .hero {
    padding-top: calc(var(--header-h) + 54px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 9.4vw, 5.3rem);
  }

  .hero-side {
    width: min(100%, 380px);
  }

  .coordinate-tag {
    margin-left: 0;
    text-align: left;
  }

  .player-card {
    margin-left: 0;
  }

  .hero-side-note {
    text-align: left;
  }

  .hero::after {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .section-rail-note {
    margin-top: 0;
    text-align: right;
  }

  .game-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .game-intro {
    max-width: 620px;
  }

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

  .profile-card {
    position: static;
    max-width: 560px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 16px 26px;
  }

  .footer-nav {
    order: 3;
    width: 100%;
    gap: 2px 18px;
  }
}

@media (max-width: 800px) {
  .section {
    padding: clamp(68px, 9vw, 96px) 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    padding: 19px 18px;
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(1),
  .metric:nth-child(3) {
    padding-left: 0;
  }

  .metric:nth-child(2),
  .metric:nth-child(4) {
    padding-right: 0;
    border-right: 0;
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-bottom: 0;
  }

  .projects-grid {
    gap: 16px;
  }

  .project-card--seven,
  .project-card--five {
    grid-column: span 12;
  }

  .project-card--horizontal {
    grid-template-columns: 1fr;
  }

  .project-card--horizontal .project-visual {
    order: 0;
    min-height: 260px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-visual {
    min-height: 230px;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 128px 20px minmax(0, 1fr);
    gap: 15px;
  }

  .timeline-when {
    text-align: left;
  }

  .timeline-marker {
    justify-content: flex-start;
  }

  .timeline-marker::before {
    left: 4px;
  }

  .timeline-marker span {
    margin-left: 0;
  }

  .timeline-card-head {
    flex-direction: column;
    gap: 10px;
  }

  .tag {
    align-self: flex-start;
  }

  .stack-note {
    align-items: flex-start;
  }

  .stack-note-line {
    display: none;
  }

  .contact-marquee {
    animation-duration: 36s;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-h) + 38px);
  }

  .hero-title {
    font-size: clamp(2.45rem, 11.4vw, 3.5rem);
    letter-spacing: -0.062em;
  }

  .hero-lede {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 310px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    max-width: 290px;
    line-height: 1.7;
  }

  .player-card {
    transform: rotate(0);
  }

  .player-screen {
    height: 181px;
  }

  .player-sprite {
    width: 104px;
    height: 104px;
  }

  .hero-side {
    width: 100%;
    max-width: 370px;
  }

  .hero-side-note {
    font-size: 7.5px;
  }

  .hero-metrics {
    margin-top: 42px;
  }

  .metric-value {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .metric-label {
    font-size: 10.5px;
  }

  .hero-footline {
    margin-top: 16px;
  }

  .hero-footcode {
    display: none;
  }

  .section-rail {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .section-rail-note {
    text-align: left;
  }

  .section-label {
    font-size: 8.5px;
  }

  .section-label > span:first-child {
    width: 20px;
    height: 20px;
    font-size: 7.5px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
  }

  .section-intro {
    margin-top: 15px;
    font-size: 0.94rem;
  }

  .about-copy > p {
    font-size: 14.5px;
  }

  .about-copy > .about-lead {
    font-size: 1.13rem;
  }

  .profile-list {
    padding-inline: 13px;
  }

  .profile-list > div {
    grid-template-columns: 83px minmax(0, 1fr);
  }

  .game-title {
    gap: 9px 13px;
    margin-top: 18px;
  }

  .game-title-pixel {
    font-size: 16px;
  }

  .game-title-sub {
    font-size: 10px;
  }

  .game-tagline {
    font-size: 1.4rem !important;
  }

  .game-layout {
    gap: 18px;
  }

  .game-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    font-size: 7.5px;
  }

  .poster-content {
    padding: 32px 14px 30px;
  }

  .poster-copy {
    width: 68%;
  }

  .poster-logo {
    font-size: 16px;
    margin-top: 9px;
  }

  .poster-kicker {
    font-size: 8px;
    max-width: 160px;
    line-height: 1.7;
  }

  .poster-sub {
    margin-top: 4px;
    font-size: 8px;
  }

  .poster-meta--top {
    top: 10px;
  }

  .poster-meta--bottom {
    bottom: 8px;
    font-size: 6.5px;
  }

  .poster-meta {
    right: 12px;
    left: 12px;
    font-size: 6.5px;
  }

  .poster-sprite-wrap {
    right: 13%;
    bottom: calc(22% + 10px);
  }

  .poster-sprite {
    width: 80px;
    height: 80px;
  }

  .poster-platform {
    right: 10%;
    bottom: 23%;
    min-width: 70px;
  }

  .poster-skyline {
    height: 17%;
  }

  .poster-hint {
    display: none;
  }

  .btn-start {
    min-height: 44px;
    gap: 8px;
    padding: 0 11px;
    font-size: 8px;
    box-shadow: 3px 3px 0 var(--green);
  }

  .poster-action {
    margin-top: auto;
  }

  .game-loading {
    gap: 7px;
    padding: 15px;
  }

  .loader-kicker {
    font-size: 6.5px;
  }

  .loader-title {
    font-size: 1.25rem;
  }

  .loader-status {
    font-size: 8px;
  }

  .loader-note {
    font-size: 6.5px;
  }

  .loader-fallback {
    min-height: 40px;
    font-size: 8px;
  }

  .hud {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }

  .hud-block,
  .hud-counters,
  .hud-actions {
    align-self: stretch;
  }

  .hud-head,
  .hud-event-row {
    align-self: stretch;
  }

  .sound-toggle,
  .game-credit {
    align-self: flex-start;
  }

  .hud-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hud-btn--link {
    grid-column: 1 / -1;
  }

  .sound-toggle,
  .hud-help,
  .game-credit {
    grid-column: auto;
    justify-self: stretch;
    text-align: left;
  }

  .hud-help {
    margin-top: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 0 0 27px 20px;
  }

  .timeline-item::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: -1px;
    left: 3px;
    width: 1px;
    background: var(--line);
  }

  .timeline-item:last-child::before {
    display: none;
  }

  .timeline-when {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 0;
  }

  .timeline-place {
    margin-top: 0;
  }

  .timeline-marker {
    position: absolute;
    top: 7px;
    left: 0;
    width: 7px;
    height: 7px;
    padding: 0;
  }

  .timeline-marker::before {
    display: none;
  }

  .timeline-marker span {
    width: 7px;
    height: 7px;
    box-shadow: none;
  }

  .timeline-item:first-child .timeline-marker span {
    box-shadow: 0 0 14px rgba(88, 226, 122, 0.55);
  }

  .timeline-card {
    padding: 17px;
  }

  .timeline-card-head {
    gap: 8px;
  }

  .timeline-card-head h3 {
    font-size: 1.38rem;
  }

  .bullets li {
    font-size: 13px;
  }

  .timeline-metrics span {
    min-height: 22px;
    font-size: 7px;
  }

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

  .stack-card {
    min-height: 0;
    padding: 19px;
  }

  .stack-card-top {
    margin-bottom: 17px;
  }

  .stack-note {
    flex-direction: column;
    gap: 7px;
    margin-top: 18px;
    padding: 14px 0;
  }

  .stack-note p {
    font-size: 11.5px;
  }

  .project-visual {
    min-height: 205px;
  }

  .project-card--horizontal .project-visual {
    min-height: 225px;
  }

  .project-body {
    padding: 19px;
  }

  .project-bullets li {
    font-size: 12px;
  }

  .ui-window {
    transform: rotate(0);
  }

  .ui-window-body {
    grid-template-columns: 28px 1fr;
    min-height: 126px;
  }

  .ui-dashboard {
    padding: 10px;
  }

  .ui-chart {
    height: 70px;
    gap: 4px;
  }

  .visual-float {
    right: 13px;
    bottom: 12px;
    font-size: 7px;
  }

  .ar-ring {
    width: 170px;
    height: 66px;
  }

  .telemetry-big {
    font-size: 1.8rem;
  }

  .bracket {
    gap: 10px 38px;
    padding: 12px 4px;
  }

  .contact-main {
    padding: 26px 19px;
  }

  .contact-main .section-label {
    margin-bottom: 21px;
  }

  .contact-main h2 {
    font-size: clamp(1.95rem, 8.4vw, 2.75rem);
  }

  .contact-lede {
    margin-top: 18px;
    font-size: 13px;
  }

  .contact-email {
    margin-top: 22px;
    font-size: clamp(0.94rem, 4.5vw, 1.2rem);
  }

  .contact-side {
    padding: 24px 19px;
  }

  .contact-list li {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
  }

  .contact-list a,
  .contact-static {
    font-size: 12.5px;
  }

  .contact-marquee {
    font-size: 7px;
    margin-top: 19px;
  }

  .site-footer {
    padding-bottom: 18px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 18px;
  }

  .footer-top-link {
    order: 2;
  }

  .footer-nav {
    order: 3;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
  }

  .footer-status {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .brand-text {
    font-size: 17px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 12vw, 2.8rem);
  }

  .hero-eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .player-name-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .player-role {
    max-width: none;
    text-align: left;
  }

  .metric {
    padding-inline: 12px;
  }

  .metric:nth-child(1),
  .metric:nth-child(3) {
    padding-left: 0;
  }

  .metric:nth-child(2),
  .metric:nth-child(4) {
    padding-right: 0;
  }

  .metric-value {
    font-size: 1.55rem;
  }

  .game-title {
    display: block;
  }

  .game-title-sub {
    display: block;
    margin-top: 9px;
  }

  .poster-logo {
    font-size: 16px;
  }

  .poster-copy {
    width: 62%;
  }

  .poster-sprite-wrap {
    right: 11%;
  }

  .poster-sprite {
    width: 68px;
    height: 68px;
  }

  .poster-platform {
    right: 8%;
    bottom: 24%;
    min-width: 62px;
  }

  .btn-start {
    font-size: 7.5px;
    padding: 0 9px;
  }

  .btn-start-arrow {
    font-size: 12px;
  }

  .poster-meta--bottom span:first-child {
    display: none;
  }

  .poster-meta--bottom {
    justify-content: flex-end;
  }

  .hud-counters {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hud-counters .hud-counter:first-child {
    border-bottom: 1px solid var(--line);
  }

  .hud-count {
    font-size: 18px;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .pixel-sprite {
    animation: none;
    background-position: 0 0;
  }

  .contact-marquee {
    animation: none;
  }
}

@media print {
  .site-header,
  .page-texture,
  .hero-side,
  .section-game,
  .contact-marquee,
  .footer-nav,
  .footer-top-link,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section {
    padding: 24px 0;
    border-color: #ddd;
  }
}

/* Hint de orientación en móvil: no bloquea el juego, vive en la franja superior */
.game-rotate {
  display: none;
}

@media (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
  body.game-pseudo-fs .game-rotate {
    position: fixed;
    top: max(12vh, 72px);
    left: 50%;
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(310px, 84vw);
    padding: 18px 20px 16px;
    border: 1px solid rgba(88, 226, 122, 0.32);
    background: rgba(8, 13, 24, 0.92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
  }

  .game-rotate-phone {
    position: relative;
    display: block;
    width: 36px;
    height: 22px;
    margin-bottom: 2px;
    border: 1px solid var(--green-bright);
    border-radius: 2px;
    animation: rotate-phone 2.8s var(--ease) infinite;
  }

  .game-rotate-phone i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: var(--green-bright);
    transform: translate(-50%, -50%);
  }

  .game-rotate-kicker {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.22em;
    color: var(--green-bright);
  }

  .game-rotate-title {
    font-family: var(--font-pixel);
    font-size: 13px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--text);
  }

  .game-rotate-copy {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
  }
}

@keyframes rotate-phone {
  0%, 18% { transform: rotate(0deg); }
  45%, 75% { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .game-rotate-phone { animation: none; }
}

/* ============================================================
   POCHLAND · entorno ambiental de fondo
   ============================================================ */

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.ambient-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.ambient-bg {
  position: absolute;
  inset: -2%;
  background: url("../img/ambient/bg.png") center top / cover no-repeat;
  opacity: 0.56;
  image-rendering: pixelated;
  transform: scale(1.035);
  transform-origin: center top;
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.ambient-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(8, 13, 24, 0.02) 0%, rgba(8, 13, 24, 0.26) 70%, rgba(8, 13, 24, 0.56) 100%),
    linear-gradient(180deg, rgba(8, 13, 24, 0.52) 0%, rgba(8, 13, 24, 0.2) 26%, rgba(8, 13, 24, 0.28) 62%, rgba(8, 13, 24, 0.68) 100%);
}

/* ---------- Boot del entorno ---------- */

body.is-booting {
  overflow: hidden;
}

.ambient-boot {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #080d18;
  transition: opacity 420ms var(--ease), visibility 420ms var(--ease);
}

.ambient-boot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ambient/bg.png") center / cover no-repeat;
  image-rendering: pixelated;
  opacity: 0.34;
}

.ambient-boot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8, 13, 24, 0.05), rgba(8, 13, 24, 0.88) 78%),
    repeating-linear-gradient(to bottom,
      transparent 0,
      transparent 3px,
      rgba(0, 0, 0, 0.18) 3px,
      rgba(0, 0, 0, 0.18) 4px);
  pointer-events: none;
}

.ambient-boot.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ambient-boot__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-boot__sprite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin-top: -210px;
  margin-left: -32px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(88, 226, 122, 0.35));
  animation: ambient-bob 2.2s var(--ease) infinite;
}

.ambient-boot__star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--text);
  opacity: 0.45;
  animation: ambient-twinkle 3s ease-in-out infinite;
}

.ambient-boot__star--a { top: 23%; left: 27%; animation-delay: -0.8s; }
.ambient-boot__star--b { top: 31%; right: 24%; background: var(--cyan); animation-delay: -1.9s; }
.ambient-boot__star--c { bottom: 24%; left: 34%; background: var(--green-bright); animation-delay: -2.4s; }

.ambient-boot__panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 22px 26px 18px;
  border: 1px solid rgba(88, 226, 122, 0.3);
  background: rgba(8, 13, 24, 0.88);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55), inset 0 0 50px rgba(33, 166, 74, 0.035);
  text-align: center;
}

.ambient-boot__panel::before,
.ambient-boot__panel::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: var(--green-bright);
  border-style: solid;
  opacity: 0.72;
}

.ambient-boot__panel::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.ambient-boot__panel::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.ambient-boot__kicker {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.ambient-boot__kicker span { color: var(--green-bright); }

.ambient-boot__title {
  margin-top: 11px;
  font-family: var(--font-pixel);
  font-size: clamp(21px, 4vw, 27px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(33, 166, 74, 0.25);
}

.ambient-boot__sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--green-bright);
}

.ambient-boot__meter {
  height: 7px;
  margin-top: 22px;
  border: 1px solid rgba(244, 233, 216, 0.16);
  background: rgba(244, 233, 216, 0.055);
  overflow: hidden;
}

.ambient-boot__meter i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transition: width 180ms linear;
}

.ambient-boot__status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ambient-boot__status span:last-child { color: var(--cyan); }

.ambient-boot__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.65;
  color: var(--muted);
}

.ambient-boot__skip {
  margin-top: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(244, 233, 216, 0.16);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.ambient-boot__skip:hover,
.ambient-boot__skip:focus-visible {
  color: var(--green-bright);
  border-color: var(--green-bright);
  outline: none;
}

/* ---------- HUD del entorno ---------- */

.ambient-hud {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 120;
  width: 238px;
  color: var(--text);
  background: rgba(8, 13, 24, 0.975);
  border: 1px solid rgba(244, 233, 216, 0.15);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
  font-family: var(--font-mono);
  pointer-events: auto;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms var(--ease);
}

.ambient-hud.is-suppressed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}

.ambient-hud::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 2px;
  background: var(--green-bright);
}

.ambient-hud__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 9px 8px 10px;
}

.ambient-hud__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(244, 233, 216, 0.08);
  overflow: hidden;
}

.ambient-hud__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green-bright);
  transition: width 180ms linear;
}

.ambient-hud.is-open .ambient-hud__progress {
  display: none;
}

.ambient-hud.is-open {
  width: 300px;
}

.ambient-hud__avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: url("../img/poch-sheet.png") 0 0 / 150px 30px no-repeat;
  image-rendering: pixelated;
  border: 1px solid rgba(88, 226, 122, 0.4);
  background-color: var(--bg-2);
}

.ambient-hud__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ambient-hud__name strong {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.ambient-hud__name small {
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ambient-hud__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(88, 226, 122, 0.7);
  animation: ambient-status 2.4s steps(1, end) infinite;
}

.ambient-hud__toggle {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.ambient-hud__toggle span,
.ambient-hud__toggle span::before {
  position: absolute;
  display: block;
  width: 9px;
  height: 1px;
  background: var(--muted);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), opacity 180ms var(--ease);
}

.ambient-hud__toggle {
  position: relative;
}

.ambient-hud__toggle span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ambient-hud__toggle span::before {
  content: "";
  top: 0;
  left: 4px;
  transform: rotate(90deg);
}

.ambient-hud__toggle:hover span,
.ambient-hud__toggle:hover span::before,
.ambient-hud__toggle:focus-visible span,
.ambient-hud__toggle:focus-visible span::before {
  background: var(--green-bright);
}

.ambient-hud__toggle:focus-visible {
  border-color: var(--green-bright);
  outline: none;
}

.ambient-hud.is-open .ambient-hud__toggle span::before {
  opacity: 0;
  transform: rotate(90deg) scaleY(0);
}

.ambient-hud__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 12px 12px;
}

.ambient-hud:not(.is-open) .ambient-hud__body {
  display: none;
}

.ambient-hud__statusrow,
.ambient-hud__stats,
.ambient-preload__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ambient-hud__kicker {
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ambient-hud__value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-bright);
}

.ambient-hud__bar {
  height: 4px;
  background: rgba(244, 233, 216, 0.08);
  overflow: hidden;
}

.ambient-hud__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transition: width 160ms linear;
}

.ambient-hud__stats {
  font-size: 9px;
  color: var(--muted);
}

.ambient-hud__stats b {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
}

.ambient-hud__state {
  color: var(--green-bright);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.ambient-preload {
  padding-top: 7px;
  border-top: 1px solid rgba(244, 233, 216, 0.09);
}

.ambient-preload__state {
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.ambient-preload__bar {
  height: 2px;
  margin-top: 6px;
  background: rgba(244, 233, 216, 0.08);
  overflow: hidden;
}

.ambient-preload__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
  transition: width 160ms linear;
}

.ambient-preload.is-indeterminate .ambient-preload__bar i {
  width: 34% !important;
  animation: ambient-preload-slide 1.4s ease-in-out infinite;
}

.ambient-preload.is-done .ambient-preload__bar i {
  width: 100% !important;
  background: var(--green-bright);
}

.ambient-preload.is-done .ambient-preload__state {
  color: var(--green-bright);
}

.ambient-preload__note {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.55;
  color: rgba(147, 161, 181, 0.86);
}

.ambient-hud__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}

.ambient-hud__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid rgba(88, 226, 122, 0.35);
  color: var(--green-bright);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.ambient-hud__cta:hover,
.ambient-hud__cta:focus-visible {
  background: var(--green-bright);
  color: var(--ink);
  outline: none;
}

.ambient-hud__pause {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ambient-hud__pause:hover,
.ambient-hud__pause:focus-visible {
  color: var(--green-bright);
  outline: none;
}

body.game-pseudo-fs .ambient-hud,
body.game-pseudo-fs .ambient-world,
body.menu-open .ambient-hud {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Responsive del entorno ---------- */

@media (max-width: 720px) {
  .ambient-hud {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 200px;
    max-width: calc(100vw - 24px);
  }

  .ambient-hud.is-open {
    width: min(300px, calc(100vw - 24px));
  }

  .ambient-hud__top {
    min-height: 44px;
    padding: 6px 7px 6px 8px;
  }

  .ambient-hud__name small {
    display: none;
  }

  .ambient-hud__body {
    display: none;
    width: min(246px, calc(100vw - 24px));
  }

  .ambient-hud.is-open .ambient-hud__body {
    display: flex;
  }

  .ambient-hud__avatar {
    width: 28px;
    height: 28px;
    background-size: 140px 28px;
  }

  .ambient-boot__sprite {
    width: 52px;
    height: 52px;
    margin-top: -178px;
    margin-left: -26px;
  }

  .ambient-boot__panel {
    padding: 18px 18px 15px;
  }

  .ambient-boot__note {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .ambient-hud {
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .ambient-hud__name strong {
    font-size: 8px;
  }

  .ambient-boot__sprite {
    margin-top: -160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-boot__sprite,
  .ambient-boot__star,
  .ambient-hud__dot,
  .ambient-preload.is-indeterminate .ambient-preload__bar i {
    animation: none !important;
  }

  .ambient-boot__meter i,
  .ambient-hud__bar i,
  .ambient-preload__bar i {
    transition: none;
  }
}

@media print {
  .ambient-world,
  .ambient-boot,
  .ambient-hud {
    display: none !important;
  }

  main,
  .site-footer {
    position: static;
    z-index: auto;
  }
}

@keyframes ambient-sprite {
  from { background-position-x: 0; }
  to { background-position-x: -320px; }
}

@keyframes ambient-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes ambient-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

@keyframes ambient-status {
  0%, 88% { opacity: 1; }
  90%, 100% { opacity: 0.35; }
}

@keyframes ambient-preload-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
