:root {
  --sky-top: #3a7ecc;
  --sky-mid: #6eb5f2;
  --sky-bot: #c8ecff;
  --grass: #5a9e3a;
  --grass-light: #7bc855;
  --grass-dark: #3d7a28;
  --dirt: #8b5a2b;
  --dirt-dark: #6b4220;
  --wood: #c49a4a;
  --wood-dark: #8f6a2e;
  --diamond: #2ec4d4;
  --diamond-dark: #157a86;
  --ink: #0f1410;
  --muted: #2f4536;
  --panel: rgba(248, 252, 250, 0.92);
  --panel-solid: #f6faf7;
  --accent: #3d8b2e;
  --font: "Sora", "Noto Sans Arabic", system-ui, sans-serif;
  --display: "Pixelify Sans", "Noto Sans Arabic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
  --code-bg: #141a22;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --border: 3px solid #0a0a0a;
  --shadow: 6px 6px 0 #0a0a0a;
  --shadow-sm: 4px 4px 0 #0a0a0a;
  --err: #b42318;
  --ok: #1a7a3c;
  --radius: 4px;
  --pixel: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky-bot);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: url("/cursors/cursor-arrow.svg") 4 2, auto;
}

a,
button,
.slot,
.lang-toggle,
.btn-send,
.project {
  cursor: url("/cursors/cursor-pointer.svg") 6 2, pointer;
}

::selection {
  background: rgba(61, 184, 201, 0.35);
  color: var(--ink);
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Sora", system-ui, sans-serif;
}

html[dir="rtl"] .hero__brand,
html[dir="rtl"] .hero__headline,
html[dir="rtl"] .section h2,
html[dir="rtl"] .slot,
html[dir="rtl"] .skill-grid li,
html[dir="rtl"] .project__body strong,
html[dir="rtl"] .foot p,
html[dir="rtl"] .exp-meter__name,
html[dir="rtl"] .foot__brand {
  font-family: "Noto Sans Arabic", "Pixelify Sans", "Sora", sans-serif;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* Language */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
}

html[dir="rtl"] .lang-switch {
  right: auto;
  left: 16px;
}

.lang-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: var(--border);
  background: rgba(255, 253, 248, 0.92);
  padding: 8px 12px;
  font: 600 13px/1 var(--font);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.15s var(--ease);
}

.lang-toggle:hover {
  transform: translate(-1px, -1px);
}

.lang-toggle__chev {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink);
}

.lang-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  border: var(--border);
  background: var(--panel-solid);
  box-shadow: var(--shadow-sm);
  position: absolute;
  right: 0;
  min-width: 140px;
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu li {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.lang-menu li:hover,
.lang-menu li[aria-selected="true"] {
  background: #e8f6ea;
}

/* World — living Minecraft backdrop */
.world {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  --wx: 0px;
  --wy: 0px;
  --scroll-y: 0px;
}

.world > [data-depth] {
  will-change: transform;
  transform: translate3d(
    calc(var(--wx) * var(--d, 0)),
    calc(var(--wy) * var(--d, 0) + var(--scroll-y) * var(--d, 0) * 0.35),
    0
  );
}

.sky {
  --d: 0.02;
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 90% 55% at 72% 8%, rgba(255, 255, 255, 0.45), transparent 58%),
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(255, 220, 140, 0.22), transparent 50%),
    linear-gradient(
      180deg,
      #2f6db8 0%,
      var(--sky-top) 18%,
      var(--sky-mid) 48%,
      #a8dff8 78%,
      var(--sky-bot) 100%
    );
  animation: sky-breathe 22s ease-in-out infinite;
}

@keyframes sky-breathe {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.08) brightness(1.04); }
}

.sky-haze {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(200, 236, 255, 0.35) 100%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(255, 255, 255, 0.28), transparent 70%);
  animation: haze-drift 28s ease-in-out infinite alternate;
}

@keyframes haze-drift {
  from { opacity: 0.7; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-12px); }
}

.sky-glow {
  --d: 0.04;
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(circle at 16% 68%, rgba(90, 170, 55, 0.18), transparent 38%),
    radial-gradient(circle at 88% 55%, rgba(46, 196, 212, 0.16), transparent 32%),
    radial-gradient(circle at 74% 14%, rgba(255, 220, 90, 0.2), transparent 28%);
  animation: glow-pulse 16s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.stars {
  --d: 0.06;
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(2px 2px at 8% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 18% 6%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 27% 20%, #ffe9a8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 9%, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 49% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 61% 5%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 12%, #c8f4ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 95% 18%, #ffe9a8 50%, transparent 51%);
  animation: twinkle 5.5s ease-in-out infinite;
  mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 62%);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.32; }
  40% { opacity: 0.62; }
  70% { opacity: 0.4; }
}

.sun-wrap {
  --d: 0.08;
  position: absolute;
  top: 7%;
  right: 11%;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  animation: sun-bob 14s ease-in-out infinite;
}

.sun-rays {
  position: absolute;
  inset: -18%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 12deg,
    rgba(255, 220, 100, 0.22) 12deg 18deg,
    transparent 18deg 42deg,
    rgba(255, 235, 150, 0.16) 42deg 48deg,
    transparent 48deg 72deg,
    rgba(255, 220, 100, 0.2) 72deg 78deg,
    transparent 78deg 102deg,
    rgba(255, 235, 150, 0.14) 102deg 108deg,
    transparent 108deg 132deg,
    rgba(255, 220, 100, 0.18) 132deg 138deg,
    transparent 138deg 162deg,
    rgba(255, 235, 150, 0.12) 162deg 168deg,
    transparent 168deg 192deg,
    rgba(255, 220, 100, 0.2) 192deg 198deg,
    transparent 198deg 222deg,
    rgba(255, 235, 150, 0.14) 222deg 228deg,
    transparent 228deg 252deg,
    rgba(255, 220, 100, 0.18) 252deg 258deg,
    transparent 258deg 282deg,
    rgba(255, 235, 150, 0.12) 282deg 288deg,
    transparent 288deg 312deg,
    rgba(255, 220, 100, 0.16) 312deg 318deg,
    transparent 318deg 360deg
  );
  animation: sun-spin 48s linear infinite;
  filter: blur(0.4px);
  opacity: 0.9;
}

.sun {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 3px;
  background:
    linear-gradient(145deg, #fff8c8 0%, #ffe566 38%, #ffc938 72%, #e8a818 100%);
  border: 3px solid rgba(10, 10, 10, 0.14);
  box-shadow:
    5px 5px 0 rgba(10, 10, 10, 0.1),
    0 0 40px 12px rgba(255, 210, 80, 0.45),
    0 0 90px 28px rgba(255, 190, 60, 0.22);
  image-rendering: pixelated;
}

.sun::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), transparent 55%);
  border-radius: 2px;
}

@keyframes sun-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.04); }
}

@keyframes sun-spin {
  to { transform: rotate(360deg); }
}

.clouds {
  position: absolute;
  inset: 0;
}

.clouds--far { --d: 0.12; opacity: 0.72; }
.clouds--near { --d: 0.2; }

.cloud {
  position: absolute;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  border-radius: 3px;
  height: 26px;
  border: 2px solid rgba(10, 10, 10, 0.05);
  box-shadow:
    4px 5px 0 rgba(10, 10, 10, 0.07),
    0 8px 18px rgba(40, 90, 140, 0.12);
  animation: cloud-drift linear infinite;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.4));
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 4px;
  box-shadow: inherit;
}

.cloud::before {
  width: 40px;
  height: 40px;
  top: -22px;
  left: 14px;
}

.cloud::after {
  width: 30px;
  height: 30px;
  top: -14px;
  left: 46px;
}

.c1 { width: 110px; top: 10%; left: -14%; animation-duration: 64s; }
.c2 { width: 78px; top: 19%; left: -20%; animation-duration: 78s; animation-delay: -22s; height: 22px; }
.c3 { width: 130px; top: 14%; left: -10%; animation-duration: 70s; animation-delay: -40s; }
.c4 { width: 96px; top: 24%; left: -28%; animation-duration: 52s; animation-delay: -12s; height: 24px; }
.c5 { width: 68px; top: 8%; left: -32%; animation-duration: 86s; animation-delay: -55s; height: 20px; opacity: 0.8; }
.c6 { width: 118px; top: 28%; left: -16%; animation-duration: 58s; animation-delay: -33s; }
.c7 { width: 54px; top: 16%; left: -40%; animation-duration: 92s; animation-delay: -70s; height: 18px; opacity: 0.7; }

@keyframes cloud-drift {
  from { transform: translateX(0) translateY(0); }
  50% { transform: translateX(65vw) translateY(6px); }
  to { transform: translateX(130vw) translateY(0); }
}

.light-shafts {
  --d: 0.1;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 42%, rgba(255, 245, 200, 0.07) 46%, transparent 52%),
    linear-gradient(128deg, transparent 55%, rgba(255, 255, 255, 0.05) 58%, transparent 63%),
    linear-gradient(98deg, transparent 28%, rgba(255, 235, 170, 0.06) 33%, transparent 40%);
  animation: shafts 20s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}

@keyframes shafts {
  from { opacity: 0.45; transform: translateX(-2%); }
  to { opacity: 0.85; transform: translateX(2%); }
}

.birds {
  --d: 0.25;
  position: absolute;
  top: 16%;
  left: 0;
  width: 100%;
  height: 70px;
}

.birds span {
  position: absolute;
  width: 12px;
  height: 10px;
  animation: bird-fly linear infinite;
}

.birds span::before,
.birds span::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 8px;
  border: 2.5px solid rgba(18, 36, 48, 0.42);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  top: 0;
  animation: wing-flap 0.38s ease-in-out infinite;
}

.birds span::before {
  left: 0;
  transform-origin: right center;
  transform: rotate(-28deg);
}

.birds span::after {
  left: 8px;
  transform-origin: left center;
  transform: rotate(28deg);
  animation-delay: -0.19s;
}

.birds span:nth-child(1) { top: 4px; animation-duration: 24s; }
.birds span:nth-child(2) { top: 22px; animation-duration: 29s; animation-delay: -9s; }
.birds span:nth-child(3) { top: 10px; animation-duration: 21s; animation-delay: -15s; }
.birds span:nth-child(4) { top: 34px; animation-duration: 33s; animation-delay: -4s; }
.birds span:nth-child(5) { top: 16px; animation-duration: 26s; animation-delay: -19s; }

@keyframes bird-fly {
  0% { left: -6%; transform: translateY(0); }
  25% { transform: translateY(-10px); }
  50% { transform: translateY(4px); }
  75% { transform: translateY(-6px); }
  100% { left: 108%; transform: translateY(0); }
}

@keyframes wing-flap {
  0%, 100% { transform: rotate(var(--wing, -28deg)) scaleY(1); }
  50% { transform: rotate(calc(var(--wing, -28deg) * 0.35)) scaleY(0.55); }
}

.birds span::before { --wing: -28deg; }
.birds span::after { --wing: 28deg; }

.blocks {
  --d: 0.35;
  position: absolute;
  inset: 0;
}

.px-block {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(10, 10, 10, 0.35);
  box-shadow: 3px 3px 0 rgba(10, 10, 10, 0.18);
  image-rendering: pixelated;
  animation: block-float 11s ease-in-out infinite;
  opacity: 0.72;
}

.px-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 45%);
}

.px-block--grass {
  top: 32%;
  left: 6%;
  background:
    linear-gradient(#5a9e3a 0 38%, #8b5a2b 38% 100%);
  animation-delay: 0s;
}

.px-block--dirt {
  top: 48%;
  right: 8%;
  background: repeating-linear-gradient(90deg, #a06838 0 7px, #8b5a2b 7px 14px);
  animation-delay: -2.5s;
}

.px-block--stone {
  top: 62%;
  left: 12%;
  width: 22px;
  height: 22px;
  background: repeating-linear-gradient(45deg, #8a9199 0 6px, #6e757c 6px 12px);
  animation-delay: -5s;
  opacity: 0.55;
}

.px-block--diamond {
  top: 38%;
  right: 16%;
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 40% 40%, #7af0ff, #2ec4d4 55%, #157a86);
  box-shadow: 3px 3px 0 rgba(10, 10, 10, 0.18), 0 0 16px rgba(46, 196, 212, 0.45);
  animation-delay: -1.2s;
}

.px-block--wood {
  top: 55%;
  right: 24%;
  width: 20px;
  height: 26px;
  background: repeating-linear-gradient(180deg, #c49a4a 0 5px, #8f6a2e 5px 10px);
  animation-delay: -7s;
}

.px-block--leaf {
  top: 44%;
  left: 22%;
  width: 26px;
  height: 26px;
  background: repeating-linear-gradient(90deg, #3d8b2e 0 6px, #5a9e3a 6px 12px);
  animation-delay: -3.8s;
  opacity: 0.6;
}

@keyframes block-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-22px) rotate(5deg); }
}

.code-float {
  --d: 0.3;
  position: absolute;
  inset: 0;
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(16, 36, 28, 0.18);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.code-float span {
  position: absolute;
  padding: 4px 8px;
  border: 1.5px solid rgba(16, 36, 28, 0.08);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
  animation: float-code 13s ease-in-out infinite;
}

.code-float span:nth-child(1) { top: 26%; left: 5%; animation-delay: 0s; }
.code-float span:nth-child(2) { top: 40%; right: 7%; animation-delay: -2.4s; }
.code-float span:nth-child(3) { top: 56%; left: 14%; animation-delay: -5.2s; }
.code-float span:nth-child(4) { top: 33%; right: 18%; animation-delay: -8s; }
.code-float span:nth-child(5) { top: 66%; right: 12%; animation-delay: -3.5s; }
.code-float span:nth-child(6) { top: 50%; left: 28%; animation-delay: -6.8s; font-size: 13px; }
.code-float span:nth-child(7) { top: 72%; left: 8%; animation-delay: -1.5s; font-size: 13px; }

@keyframes float-code {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.28; }
  50% { transform: translateY(-20px) rotate(5deg); opacity: 0.58; }
}

.hills {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 48px;
}

.hills--far {
  --d: 0.4;
  height: min(34vh, 260px);
  opacity: 0.55;
  background:
    linear-gradient(180deg, rgba(70, 120, 55, 0.15), rgba(45, 90, 40, 0.55)),
    repeating-linear-gradient(90deg, #3a6e2a 0 8px, #4a8a32 8px 16px);
  clip-path: polygon(
    0 100%, 0 62%, 8% 54%, 18% 64%, 30% 42%, 42% 58%, 55% 36%, 68% 52%, 80% 30%, 92% 48%, 100% 28%, 100% 100%
  );
  filter: saturate(0.85) brightness(0.92);
}

.hills--mid {
  --d: 0.55;
  height: min(30vh, 230px);
  opacity: 0.82;
  background:
    linear-gradient(180deg, transparent 0%, rgba(61, 122, 40, 0.4) 100%),
    repeating-linear-gradient(90deg, var(--grass-dark) 0 var(--pixel), var(--grass) var(--pixel) calc(var(--pixel) * 2));
  clip-path: polygon(
    0 100%, 0 70%, 10% 58%, 22% 68%, 36% 46%, 50% 60%, 64% 40%, 78% 55%, 90% 38%, 100% 48%, 100% 100%
  );
}

.hills--near {
  --d: 0.7;
  height: min(22vh, 170px);
  background:
    linear-gradient(180deg, rgba(123, 200, 85, 0.25), rgba(61, 122, 40, 0.5)),
    repeating-linear-gradient(
      90deg,
      var(--grass-light) 0 var(--pixel),
      var(--grass) var(--pixel) calc(var(--pixel) * 2),
      var(--grass-dark) calc(var(--pixel) * 2) calc(var(--pixel) * 3)
    );
  clip-path: polygon(
    0 100%, 0 78%, 14% 62%, 28% 74%, 44% 54%, 60% 68%, 74% 48%, 88% 62%, 100% 52%, 100% 100%
  );
  box-shadow: 0 -2px 0 rgba(10, 10, 10, 0.08);
}

.tree {
  position: absolute;
  bottom: 42%;
  width: 10px;
  height: 28px;
  background: #6b4220;
  box-shadow: 2px 0 0 rgba(10, 10, 10, 0.15);
}

.tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  background:
    linear-gradient(135deg, #5a9e3a, #2f6b22);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  filter: drop-shadow(2px 2px 0 rgba(10, 10, 10, 0.15));
}

.tree::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7bc855, #3d7a28);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.t1 { left: 12%; transform: scale(0.85); }
.t2 { left: 38%; bottom: 48%; transform: scale(1.1); }
.t3 { left: 72%; transform: scale(0.95); }
.t4 { left: 22%; bottom: 55%; transform: scale(1.2); }
.t5 { left: 78%; bottom: 50%; transform: scale(0.9); }

.fireflies {
  --d: 0.75;
  position: absolute;
  inset: auto 0 60px 0;
  height: 42%;
}

.fireflies span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #d8ff7a;
  box-shadow: 0 0 8px 2px rgba(190, 255, 90, 0.7);
  animation: firefly 9s ease-in-out infinite;
  opacity: 0;
}

.fireflies span:nth-child(1) { left: 8%; bottom: 20%; animation-delay: 0s; }
.fireflies span:nth-child(2) { left: 18%; bottom: 40%; animation-delay: -1.2s; }
.fireflies span:nth-child(3) { left: 28%; bottom: 15%; animation-delay: -2.4s; }
.fireflies span:nth-child(4) { left: 38%; bottom: 55%; animation-delay: -0.6s; }
.fireflies span:nth-child(5) { left: 48%; bottom: 28%; animation-delay: -3.1s; }
.fireflies span:nth-child(6) { left: 58%; bottom: 45%; animation-delay: -4.2s; }
.fireflies span:nth-child(7) { left: 66%; bottom: 18%; animation-delay: -1.8s; }
.fireflies span:nth-child(8) { left: 74%; bottom: 50%; animation-delay: -5s; }
.fireflies span:nth-child(9) { left: 82%; bottom: 30%; animation-delay: -2.8s; }
.fireflies span:nth-child(10) { left: 90%; bottom: 42%; animation-delay: -3.6s; }
.fireflies span:nth-child(11) { left: 14%; bottom: 60%; animation-delay: -4.8s; }
.fireflies span:nth-child(12) { left: 52%; bottom: 8%; animation-delay: -0.9s; }

@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 1; }
  40% { opacity: 0.35; transform: translate(18px, -28px) scale(1); }
  65% { opacity: 0.9; transform: translate(-12px, -48px) scale(0.85); }
  85% { opacity: 0.2; transform: translate(8px, -64px) scale(0.7); }
}

.bubbles {
  --d: 0.5;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bubbles span {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.06) 55%, rgba(94, 184, 224, 0.14));
  box-shadow: inset -2px -3px 6px rgba(47, 143, 196, 0.18);
  animation: bubble-rise linear infinite;
}

.bubbles span:nth-child(1) { left: 6%; width: 14px; height: 14px; animation-duration: 16s; }
.bubbles span:nth-child(2) { left: 14%; width: 22px; height: 22px; animation-duration: 20s; animation-delay: -3s; }
.bubbles span:nth-child(3) { left: 22%; width: 10px; height: 10px; animation-duration: 13s; animation-delay: -6s; }
.bubbles span:nth-child(4) { left: 30%; width: 18px; height: 18px; animation-duration: 22s; animation-delay: -2s; }
.bubbles span:nth-child(5) { left: 38%; width: 12px; height: 12px; animation-duration: 17s; animation-delay: -8s; }
.bubbles span:nth-child(6) { left: 46%; width: 26px; height: 26px; animation-duration: 24s; animation-delay: -5s; }
.bubbles span:nth-child(7) { left: 54%; width: 11px; height: 11px; animation-duration: 14s; animation-delay: -9s; }
.bubbles span:nth-child(8) { left: 62%; width: 20px; height: 20px; animation-duration: 21s; animation-delay: -1s; }
.bubbles span:nth-child(9) { left: 70%; width: 15px; height: 15px; animation-duration: 18s; animation-delay: -7s; }
.bubbles span:nth-child(10) { left: 78%; width: 9px; height: 9px; animation-duration: 12s; animation-delay: -4s; }
.bubbles span:nth-child(11) { left: 86%; width: 16px; height: 16px; animation-duration: 19s; animation-delay: -11s; }
.bubbles span:nth-child(12) { left: 92%; width: 13px; height: 13px; animation-duration: 23s; animation-delay: -14s; }
.bubbles span:nth-child(13) { left: 10%; width: 24px; height: 24px; animation-duration: 15s; animation-delay: -7s; }
.bubbles span:nth-child(14) { left: 34%; width: 10px; height: 10px; animation-duration: 20s; animation-delay: -12s; }
.bubbles span:nth-child(15) { left: 58%; width: 18px; height: 18px; animation-duration: 25s; animation-delay: -16s; }
.bubbles span:nth-child(16) { left: 74%; width: 8px; height: 8px; animation-duration: 13s; animation-delay: -9s; }
.bubbles span:nth-child(17) { left: 42%; width: 15px; height: 15px; animation-duration: 18s; animation-delay: -10s; }
.bubbles span:nth-child(18) { left: 96%; width: 12px; height: 12px; animation-duration: 16s; animation-delay: -5s; }

@keyframes bubble-rise {
  0% { transform: translateY(0) translateX(0) scale(0.75); opacity: 0; }
  8% { opacity: 0.8; }
  45% { transform: translateY(-48vh) translateX(22px) scale(1); opacity: 0.65; }
  100% { transform: translateY(-112vh) translateX(-16px) scale(1.08); opacity: 0; }
}

.terrain {
  --d: 0.9;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  border-top: 3px solid #0a0a0a;
  box-shadow: 0 -8px 24px rgba(40, 80, 30, 0.15);
}

.grass-blade {
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 5px,
      rgba(90, 158, 58, 0.9) 5px 7px,
      transparent 7px 14px,
      rgba(61, 122, 40, 0.85) 14px 16px,
      transparent 16px 22px
    );
  clip-path: polygon(0 100%, 2% 20%, 4% 100%, 7% 0%, 10% 100%, 13% 30%, 16% 100%, 20% 10%, 24% 100%, 28% 40%, 32% 100%, 36% 5%, 40% 100%, 45% 25%, 50% 100%, 55% 0%, 60% 100%, 65% 35%, 70% 100%, 75% 15%, 80% 100%, 85% 45%, 90% 100%, 95% 20%, 100% 100%);
  animation: grass-sway 4.5s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes grass-sway {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(3deg); }
}

.grass-row {
  height: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--grass-light) 0 var(--pixel),
      var(--grass) var(--pixel) calc(var(--pixel) * 2),
      var(--grass-dark) calc(var(--pixel) * 2) calc(var(--pixel) * 3),
      var(--grass) calc(var(--pixel) * 3) calc(var(--pixel) * 4)
    );
}

.dirt-row {
  height: 34px;
  background:
    repeating-linear-gradient(
      90deg,
      #a06838 0 var(--pixel),
      var(--dirt) var(--pixel) calc(var(--pixel) * 2),
      var(--dirt-dark) calc(var(--pixel) * 2) calc(var(--pixel) * 3),
      var(--dirt) calc(var(--pixel) * 3) calc(var(--pixel) * 4)
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 10px,
      rgba(0, 0, 0, 0.06) 10px 12px
    );
}

.world-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 72px 16px 48px;
  text-align: center;
}

.hero__stage {
  position: relative;
  max-width: 820px;
  width: 100%;
  padding: 8px 12px 12px;
}

.hero__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  animation: hero-in 0.85s var(--ease) both;
}

.hero__portrait {
  position: relative;
  margin: 0;
  flex-shrink: 0;
}

.hero__avatar {
  display: block;
  width: 112px;
  height: 112px;
  border: var(--border);
  border-radius: var(--radius);
  image-rendering: pixelated;
  background: #6eb5f2;
  box-shadow: var(--shadow-sm);
}

.hero__status {
  position: absolute;
  right: -8px;
  bottom: -6px;
  background: #34a02c;
  color: #fff;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border: 2px solid #0a0a0a;
  box-shadow: 2px 2px 0 #0a0a0a;
}

.hero__brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 14vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow:
    4px 4px 0 #fff,
    5px 5px 0 #0a0a0a;
  animation: hero-in 0.85s var(--ease) 0.06s both;
}

.hero__aka {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  animation: hero-in 0.85s var(--ease) 0.22s both;
}

.hero__headline {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 600;
  animation: hero-in 0.85s var(--ease) 0.12s both;
}

.hero__sub {
  margin: 0 auto 22px;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  animation: hero-in 0.85s var(--ease) 0.18s both;
}

@media (min-width: 640px) {
  .hero__identity {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .hero__portrait {
    order: -1;
  }

  .hero__brand {
    text-align: start;
    align-self: center;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hotbar {
  animation: hero-in 0.85s var(--ease) 0.28s both;
}

.hotbar__rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 12px;
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border: 2px solid #0a0a0a;
  background: #e8ece8;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    2px 2px 0 #0a0a0a;
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), filter 0.14s;
}

.slot:hover {
  transform: translate(-2px, -3px) scale(1.04);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.65),
    5px 5px 0 #0a0a0a;
  filter: brightness(1.06);
  z-index: 1;
}

.slot:active {
  transform: translate(1px, 2px);
  box-shadow:
    inset 0 2px 0 rgba(0, 0, 0, 0.15),
    1px 1px 0 #0a0a0a;
}

.slot--wood { background: linear-gradient(180deg, #f0d898, #c9a24e); }
.slot--stone { background: linear-gradient(180deg, #eceff2, #b8bfc6); }
.slot--cyan { background: linear-gradient(180deg, #cceef5, #8fd4e4); }
.slot--diamond { background: linear-gradient(180deg, #a8e8f0, #4ec4d8); }
.slot--mc {
  background: linear-gradient(180deg, #9ee86a, #5a9e3a);
  font-weight: 700;
}

.scroll-hint {
  display: inline-block;
  margin-top: 40px;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(20, 32, 24, 0.35);
  border-radius: 14px;
  position: relative;
  animation: hero-in 0.9s var(--ease) 0.45s both;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(20, 32, 24, 0.5);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.25; }
}

/* Sections */
main {
  position: relative;
  z-index: 1;
  padding-bottom: 12px;
}

.section {
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 36px 28px;
  background: var(--panel);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--grass-light) 0 var(--pixel),
    var(--grass) var(--pixel) calc(var(--pixel) * 2)
  );
  border-bottom: 2px solid #0a0a0a;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.section__tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--diamond-dark);
  font-weight: 700;
  background: rgba(61, 184, 201, 0.12);
  border: 2px solid rgba(10, 10, 10, 0.75);
  padding: 2px 8px;
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.15rem);
}

.lead {
  font-size: 1.1rem;
}

.section p {
  margin: 0 0 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-tile {
  border: 2px solid #0a0a0a;
  background: var(--panel-solid);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.info-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(10, 10, 10, 0.65);
}

.info-tile__k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.info-tile__v {
  font-weight: 650;
  font-size: 0.95rem;
}

/* Coding */
.section--code {
  background:
    linear-gradient(180deg, rgba(246, 250, 247, 0.95), rgba(210, 238, 248, 0.92));
}

.terminal {
  margin: 20px 0 24px;
  border: var(--border);
  background: var(--code-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #243044, #1a2535);
  border-bottom: 2px solid #0a0a0a;
}

.terminal__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.terminal__bar span:nth-child(2) { background: #ffbd2e; }
.terminal__bar span:nth-child(3) { background: #27c93f; }

.terminal__bar em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: #8b95a8;
}

.terminal__body {
  margin: 0;
  padding: 18px;
  min-height: 130px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: #d0d8e8;
  white-space: pre-wrap;
  line-height: 1.55;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #82aaff;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.skill-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-grid li {
  padding: 8px 13px;
  border: 2px solid #0a0a0a;
  background: #fff;
  font-weight: 650;
  font-size: 0.88rem;
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.35);
  transition: transform 0.15s var(--ease), background 0.15s;
}

.skill-grid li:hover {
  transform: translate(-1px, -1px);
  background: #eef9f1;
}

/* Experience */
.exp-intro {
  margin: 0 0 20px;
  color: var(--muted);
}

.exp-meters {
  display: grid;
  gap: 16px;
}

.exp-meter {
  border: var(--border);
  background: linear-gradient(180deg, #fffefb, #f4fbf6);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.exp-meter:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #0a0a0a;
}

.exp-meter__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.exp-meter__info {
  min-width: 0;
}

.exp-meter__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.15;
}

.exp-meter__meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.exp-meter__score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex: 0 0 auto;
  font-family: var(--mono);
  line-height: 1;
  background: #fff;
  border: 2px solid #0a0a0a;
  padding: 8px 10px 6px;
  box-shadow: 2px 2px 0 #0a0a0a;
}

.exp-meter__num {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
}

.exp-meter__unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--diamond-dark);
}

.exp-meter__track {
  height: 20px;
  border: 2px solid #0a0a0a;
  background:
    repeating-linear-gradient(
      90deg,
      #e8ede9 0,
      #e8ede9 calc(10% - 1px),
      #d7ddd8 calc(10% - 1px),
      #d7ddd8 10%
    );
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.exp-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3f8c2c 0%, #6db84a 45%, #3db8c9 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  transition: width 1.15s var(--ease);
  position: relative;
}

.exp-meter__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 55%);
}

.reveal.is-visible .exp-meter__fill,
.exp-meter.is-animated .exp-meter__fill {
  width: var(--pct);
}

.exp-meter__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 12px;
}

.exp-meter__level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border: 2px solid #0a0a0a;
  background: #dff5e4;
}

.exp-meter__desc {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Featured product ad (Driftyy AFK) */
.product-ad {
  position: relative;
  margin: 0 auto 32px;
  max-width: 860px;
  padding: 1.5rem 1.6rem 1.55rem;
  border: 3px solid #0a0a0a;
  background:
    linear-gradient(135deg, rgba(94, 184, 224, 0.18), rgba(46, 160, 110, 0.12)),
    var(--panel-solid, #f4f7f2);
  box-shadow: 6px 6px 0 #0a0a0a;
  overflow: hidden;
}

.product-ad__glow {
  display: none;
}

.product-ad__kicker {
  position: relative;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a6b8a;
}

.product-ad h2 {
  position: relative;
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.product-ad > p {
  position: relative;
  margin: 0 0 1.1rem;
  max-width: 38rem;
  color: var(--muted, #3d4a42);
  line-height: 1.45;
}

.product-ad__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.product-ad__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.05rem;
  border: 2px solid #0a0a0a;
  background: #5eb8e0;
  color: #061018;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 #0a0a0a;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-ad__cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #0a0a0a;
}

.product-ad__link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.project {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  border: var(--border);
  background: var(--panel-solid);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.project:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 #0a0a0a;
}

.project:hover .project__go {
  opacity: 1;
  transform: translateX(3px);
}

.project--static {
  cursor: default;
}

.project--static:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.project__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 2px solid #0a0a0a;
  background: #e8f0e8;
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.25);
}

.project__icon--img {
  object-fit: contain;
  background: #fff;
}

.project__icon--sas {
  background: linear-gradient(135deg, #5eb8e0, #2a7a24);
}

.project__icon--pos {
  background: linear-gradient(135deg, #c49a4a, #8f6a2e);
}

.project__icon--default {
  background: linear-gradient(135deg, #7ec8e8, #3d9fd0);
}

.project__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.project__body strong {
  font-size: 1.08rem;
}

.project__body span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.tags em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  background: #eef6f0;
  border: 1px solid #0a0a0a;
}

.project__go {
  font-size: 1.35rem;
  font-weight: 700;
  opacity: 0.4;
  transition: opacity 0.15s, transform 0.15s var(--ease);
}

.c-empty-public {
  color: var(--muted);
}

/* Contact */
.section--contact {
  background: linear-gradient(180deg, rgba(246, 250, 247, 0.95), rgba(200, 236, 248, 0.9));
}

.contact-form {
  display: grid;
  gap: 14px;
  margin: 20px 0 22px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-weight: 650;
  font-size: 0.9rem;
}

.opt {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85em;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: var(--border);
  background: #fff;
  font: 500 1rem/1.4 var(--font);
  color: var(--ink);
  box-shadow: inset 2px 2px 0 rgba(10, 10, 10, 0.05);
  transition: box-shadow 0.15s, outline 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(61, 184, 201, 0.45);
  outline-offset: 1px;
  box-shadow: inset 2px 2px 0 rgba(10, 10, 10, 0.05), 0 0 0 4px rgba(61, 184, 201, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-send {
  appearance: none;
  justify-self: start;
  padding: 13px 24px;
  border: var(--border);
  background: linear-gradient(180deg, #6fd0dd, var(--diamond));
  color: #0a0a0a;
  font: 700 1rem/1 var(--font);
  box-shadow: 4px 4px 0 #0a0a0a;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s;
}

.btn-send:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0a0a0a;
  filter: brightness(1.04);
}

.btn-send:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #0a0a0a;
}

.btn-send:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  padding: 13px 15px;
  border: var(--border);
  margin-bottom: 14px;
  font-weight: 650;
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.25);
}

.form-alert--ok {
  background: #d8f5e2;
  color: var(--ok);
}

.form-alert--err {
  background: #fde8e6;
  color: var(--err);
}

.form-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.contact-box {
  border: 2px dashed #0a0a0a;
  background: rgba(255, 255, 255, 0.6);
  padding: 15px 16px;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.contact-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tok-kw { color: #2a7a24; font-weight: 700; }
.tok-op { color: var(--diamond-dark); }
.link {
  color: var(--diamond-dark);
  font-weight: 650;
}

/* Footer */
.foot {
  text-align: center;
  padding: 36px 16px 64px;
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.foot__inner {
  display: inline-block;
  padding: 18px 28px;
  background: rgba(255, 253, 248, 0.72);
  border: 2px solid rgba(10, 10, 10, 0.65);
  box-shadow: 3px 3px 0 rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(8px);
}

.foot__brand {
  margin: 0 0 4px !important;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.foot p {
  margin: 0 0 4px;
}

.foot__sub {
  font-size: 0.82rem;
  opacity: 0.8;
}

/* Reveal + scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--grass), var(--diamond), #ffd84a);
  z-index: 50;
  border-bottom: 2px solid #0a0a0a;
}

.toast-layer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 640px) {
  .section {
    margin-left: 12px;
    margin-right: 12px;
    padding: 28px 18px;
  }

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

  .hotbar__rail {
    padding: 8px;
    gap: 5px;
  }

  .slot {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
    font-size: 0.75rem;
    min-height: 40px;
  }

  .hero__avatar {
    width: 96px;
    height: 96px;
  }

  .hero__brand {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .exp-meter__head {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .world > [data-depth] {
    transform: none !important;
  }

  .fireflies span,
  .bubbles span,
  .px-block,
  .code-float span {
    opacity: 0.35;
  }

  .reveal,
  .hero__identity,
  .hero__brand,
  .hero__aka,
  .hero__headline,
  .hero__sub,
  .hotbar,
  .scroll-hint {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .px-block--stone,
  .px-block--wood,
  .code-float span:nth-child(6),
  .code-float span:nth-child(7),
  .birds span:nth-child(4),
  .birds span:nth-child(5) {
    display: none;
  }

  .sun-wrap {
    width: 110px;
    height: 110px;
    right: 6%;
  }

  .sun {
    width: 58px;
    height: 58px;
  }
}


/* Driftyy AFK site-wide promo */
.afk-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid #0a0a0a;
  background: linear-gradient(90deg, #5eb8e0, #7ad4a0);
  color: #061018;
}
.afk-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
}
.afk-banner__inner strong {
  font-family: "Pixelify Sans", sans-serif;
  letter-spacing: 0.03em;
}
.afk-banner__cta {
  margin-inline-start: 0.25rem;
  padding: 0.28rem 0.7rem;
  border: 2px solid #0a0a0a;
  background: #061018;
  color: #e8fbff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(10,10,10,0.35);
}
.afk-banner__cta:hover { transform: translate(-1px, -1px); }
.slot--afk {
  background: linear-gradient(180deg, #b8f0c8, #6eb5f2);
  font-weight: 700;
}
.foot__ad {
  margin: 0.55rem 0 0;
}
.foot__ad a {
  color: #1a6b8a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-ad { margin-top: 0.55rem; }
@media (max-width: 640px) {
  .afk-banner__inner { font-size: 0.84rem; }
}
