﻿:root {
  --bg: #12100b;
  --bg-deep: #1a1710;
  --panel: #2a241a;
  --panel-dark: #1b1711;
  --line: #4d4030;
  --text: #f3e7c8;
  --muted: #c4b796;
  --grass: #6ea642;
  --grass-light: #8ac657;
  --dirt: #7a5530;
  --dirt-dark: #5b3e21;
  --stone: #7d7a73;
  --stone-dark: #5f5c56;
  --diamond: #67d6df;
  --emerald: #34d27d;
  --redstone: #dd5348;
  --gold: #f3c04c;
  --shadow: 0 12px 0 #0f0d09, 0 24px 42px rgba(0, 0, 0, 0.42);
  --content-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: 1.35rem;
  background:
    linear-gradient(180deg, rgba(103, 214, 223, 0.08), transparent 18%),
    linear-gradient(180deg, #18140f 0%, #0f0c08 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.sky-glow,
.pixel-noise {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.sky-glow {
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.35;
}

.sky-glow-a {
  width: 340px;
  height: 340px;
  top: 70px;
  left: -120px;
  background: rgba(103, 214, 223, 0.22);
}

.sky-glow-b {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: 80px;
  background: rgba(52, 210, 125, 0.16);
}

.pixel-noise {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.12;
}

.top-hud,
.world-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.pixel-panel,
.pixel-slot,
.pixel-button,
.contact-links a,
.project-card,
.photo-card,
.achievement-card,
.stat-row {
  border: 4px solid #000;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.3), inset 4px 4px 0 rgba(255, 255, 255, 0.04), var(--shadow);
}

.pixel-panel,
.pixel-slot,
.contact-links a,
.project-card,
.photo-card,
.achievement-card,
.stat-row {
  background: linear-gradient(180deg, var(--panel), var(--panel-dark));
}

.panel-deep {
  background: linear-gradient(180deg, #332b1e, #1e1a12);
}

.top-hud {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 18px auto 0;
  padding: 16px 18px;
}

.world-title,
.pixel-nav,
.panel-title,
.panel-coord,
.section-tag,
.pixel-button,
.project-tag,
.stat-key,
.projects-status,
.achievement-card h3,
.photo-card figcaption,
.hud-meta,
.hud-label,
.window-title {
  font-family: "Press Start 2P", cursive;
}

.world-title {
  display: inline-block;
  color: var(--gold);
  font-size: clamp(0.78rem, 1.3vw, 1.08rem);
  text-shadow: 2px 2px 0 #000;
}

.hud-meta {
  display: flex;
  gap: 16px;
  margin: 14px 0 0;
  color: var(--diamond);
  font-size: 0.58rem;
  flex-wrap: wrap;
}

.pixel-nav {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 0.58rem;
}

.pixel-nav a,
.text-link {
  color: var(--text);
}

.pixel-nav a:hover,
.text-link:hover,
.contact-links a:hover,
.project-title-link:hover h3 {
  color: var(--diamond);
}

.world-main {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}

.panel-title-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  margin: -36px -36px 26px;
  background: linear-gradient(180deg, #74ab44, #5e9035);
  color: #101010;
  border-bottom: 4px solid #000;
}

.hero-copy,
.hero-avatar,
.section-panel {
  padding: 36px;
}

.panel-title,
.panel-coord {
  font-size: 0.54rem;
}

.section-tag {
  margin: 0 0 10px;
  color: var(--diamond);
  font-size: 0.56rem;
  line-height: 1.7;
}

.hero-name {
  margin: 0 0 12px;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1.06rem, 3vw, 2.15rem);
  line-height: 1.45;
  color: var(--diamond);
  text-shadow: 3px 3px 0 #000;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-shadow: 3px 3px 0 #000;
}

h1 {
  font-size: clamp(1.22rem, 3.2vw, 2.2rem);
  line-height: 1.18;
  color: var(--gold);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1rem, 2.6vw, 1.8rem);
  color: var(--grass-light);
}

h3 {
  font-size: 1.02rem;
  color: var(--gold);
}

.hero-text,
.about-story p,
.about-cards p,
.project-card p,
.photography-intro,
.contact-text,
.projects-status,
.project-meta,
.readme-box,
.stat-value {
  margin: 0;
  color: var(--text);
  font-size: 1.32rem;
  line-height: 1.45;
}

.accent-gold {
  color: var(--gold);
}

.hud-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 18px;
}

.hud-stat,
.about-story,
.about-cards article,
.photo-card,
.contact-links a,
.stat-row {
  padding: 14px;
}

.hud-label {
  display: block;
  font-size: 0.52rem;
  color: var(--diamond);
  margin-bottom: 8px;
}

.hud-stat strong {
  display: block;
  color: var(--gold);
  font-size: 1.22rem;
  font-weight: 400;
}

.xp-module {
  margin-bottom: 18px;
}

.xp-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
}

.xp-bar {
  height: 24px;
  border: 4px solid #000;
  background: #3b2c17;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.04), inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

.xp-fill {
  display: block;
  width: 88%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--grass) 0 16px, var(--grass-light) 16px 32px);
}

.action-row,
.detail-action-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  font-size: 0.56rem;
  text-transform: uppercase;
}

.pixel-button-primary {
  background: linear-gradient(180deg, var(--grass-light), var(--grass));
  color: #111;
}

.pixel-button-secondary {
  background: linear-gradient(180deg, #a98b53, #826536);
  color: #111;
}

.hero-avatar {
  display: flex;
  flex-direction: column;
}

.avatar-scene {
  position: relative;
  flex: 1;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #4ea5ff 0 46%, #83d3ff 46% 58%, #b2e8ff 58% 60%, #5f9f3b 60% 100%);
  border: 4px solid #000;
}

.sun-block,
.cloud,
.avatar-platform,
.pixel-avatar-frame,
.floating-ui,
.inventory-slot,
.achievement-icon {
  image-rendering: pixelated;
}

.sun-block {
  position: absolute;
  top: 36px;
  right: 42px;
  width: 56px;
  height: 56px;
  background: var(--gold);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.28);
}

.cloud {
  position: absolute;
  height: 22px;
  background: #fff;
  box-shadow: 22px 0 0 #fff, 44px 0 0 #fff, 12px -12px 0 #fff, 34px -12px 0 #fff;
}

.cloud-a {
  top: 86px;
  left: 40px;
  width: 44px;
}

.cloud-b {
  top: 142px;
  left: 230px;
  width: 44px;
}

.avatar-platform {
  position: absolute;
  left: 0;
  width: 100%;
}

.grass-top {
  bottom: 152px;
  height: 46px;
  background: repeating-linear-gradient(90deg, var(--grass-light) 0 28px, var(--grass) 28px 56px);
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
}

.dirt-core {
  bottom: 0;
  height: 152px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 20%),
    repeating-linear-gradient(90deg, var(--dirt) 0 32px, var(--dirt-dark) 32px 64px);
  border-top: 4px solid #000;
}

.pixel-avatar-frame {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: linear-gradient(180deg, var(--stone), var(--stone-dark));
  border: 6px solid #000;
  box-shadow: inset 6px 6px 0 rgba(255,255,255,0.08), inset -6px -6px 0 rgba(0,0,0,0.28), 12px 12px 0 rgba(0,0,0,0.25);
  display: grid;
  place-items: center;
}

.pixel-avatar-face {
  width: 148px;
  height: 148px;
  background: linear-gradient(180deg, #2f2c28, #191712);
  border: 6px solid #000;
  display: grid;
  place-items: center;
  color: var(--diamond);
  font-family: "Press Start 2P", cursive;
  font-size: 2.4rem;
}

.floating-ui {
  position: absolute;
  padding: 10px 12px;
  background: rgba(26, 23, 16, 0.94);
  border: 4px solid #000;
  font-family: "Press Start 2P", cursive;
  font-size: 0.48rem;
  line-height: 1.6;
}

.ui-top {
  left: 20px;
  top: 22px;
  color: var(--gold);
}

.ui-bottom {
  right: 20px;
  bottom: 166px;
  color: var(--diamond);
}

.inventory-strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.inventory-slot {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #3a342b, #1c1812);
  border: 4px solid #000;
  box-shadow: inset 4px 4px 0 rgba(255,255,255,0.08), inset -4px -4px 0 rgba(0,0,0,0.3);
}

.inventory-slot.filled.emerald {
  background: linear-gradient(180deg, #49f097, var(--emerald));
}

.inventory-slot.filled.diamond {
  background: linear-gradient(180deg, #8ef1ff, var(--diamond));
}

.inventory-slot.filled.redstone {
  background: linear-gradient(180deg, #ef7b74, var(--redstone));
}

.inventory-slot.filled.map {
  background: linear-gradient(180deg, #dbc178, #b58f47);
}

.inventory-slot.filled.book {
  background: linear-gradient(180deg, #d9e7f3, #7c4d28);
}

.inventory-slot.active {
  outline: 4px solid #fff;
  outline-offset: 2px;
}

.section-panel {
  margin-top: 28px;
}

.section-stack {
  margin-top: 28px;
}

.section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-header-inline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.text-link {
  font-family: "Press Start 2P", cursive;
  font-size: 0.54rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
}

.about-cards {
  display: grid;
  gap: 12px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.achievement-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}

.achievement-card p {
  margin: 8px 0 0;
}

.achievement-card.unlocked {
  background: linear-gradient(180deg, #33401d, #252f18);
}

.achievement-card.locked {
  opacity: 0.72;
  filter: saturate(0.6);
}

.achievement-icon {
  width: 64px;
  height: 64px;
  border: 4px solid #000;
  background-color: #20170f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80%;
  box-shadow: inset 4px 4px 0 rgba(255,255,255,0.08), inset -4px -4px 0 rgba(0,0,0,0.28);
}

.emerald-icon {
  background-image: url("assets/icons/oak-log.svg");
}

.diamond-icon {
  background-image: url("assets/icons/diamond-pickaxe.svg");
}

.redstone-icon {
  background-image: url("assets/icons/redstone-dust.svg");
}

.portal-icon {
  background-image: url("assets/icons/ender-eye.svg");
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card::before {
  content: "BUILD WORLD";
  align-self: flex-start;
  padding: 8px 10px;
  background: linear-gradient(180deg, #5d8f34, #4a712a);
  color: #111;
  border: 3px solid #000;
  font-family: "Press Start 2P", cursive;
  font-size: 0.48rem;
}

.project-index,
.project-tag,
.stat-key {
  font-size: 0.5rem;
  color: var(--diamond);
}

.project-title-link h3 {
  color: var(--gold);
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  line-height: 1.35;
}

.project-description {
  min-height: 8.2rem;
}

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

.project-tag-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.project-tag {
  display: inline-flex;
  padding: 8px 10px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #364c2c, #293720);
}

.project-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #7ac54f, #5d8f34);
  color: #111;
  font-family: "Press Start 2P", cursive;
  font-size: 0.5rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-detail-button:hover {
  color: #111;
  filter: brightness(1.08);
}

.projects-status {
  margin-top: 14px;
  font-size: 0.54rem;
  color: var(--grass-light);
}

.photography-intro {
  margin-bottom: 18px;
}

.photo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.photo-marquee-reverse {
  margin-top: 14px;
}

.photo-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee-left 46s linear infinite;
}

.photo-track-reverse {
  animation-name: marquee-right;
  animation-duration: 50s;
}

.photo-marquee:hover .photo-track {
  animation-play-state: paused;
}

.photo-card {
  width: 260px;
  flex: 0 0 auto;
  margin: 0;
  position: relative;
}

.photo-card::before {
  content: "REC";
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  background: linear-gradient(180deg, #ff8d85, #cd473a);
  color: #120808;
  border: 3px solid #000;
  font-family: "Press Start 2P", cursive;
  font-size: 0.42rem;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 4px solid #000;
  margin-bottom: 10px;
}

.photo-card figcaption {
  font-size: 0.5rem;
  color: var(--gold);
}

.photo-card-error {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  padding: 16px 18px;
  font-family: "VT323", monospace;
  font-size: 1.34rem;
  line-height: 1.15;
  background: linear-gradient(180deg, #322a1e, #201a12);
}

.site-footer {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 0 0 42px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.detail-shell .top-hud {
  display: grid;
  gap: 12px;
}

.detail-main {
  padding-top: 24px;
}

.detail-hero h1 {
  max-width: none;
}

.hidden-link {
  display: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  margin-top: 22px;
}

.detail-card {
  padding: 24px;
}

.compact-header {
  margin-bottom: 14px;
}

.stat-list {
  display: grid;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stat-value {
  color: var(--gold);
}

.readme-box {
  max-height: 720px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 14px;
  border: 4px solid #000;
  background: linear-gradient(180deg, #19150f, #120f0a);
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(calc(-50% - 6px));
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 1100px) {
  .hero-section,
  .about-grid,
  .detail-grid,
  .contact-grid,
  .projects-grid,
  .achievement-grid,
  .hud-stats {
    grid-template-columns: 1fr;
  }

  .section-header-inline {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1.18rem;
  }

  .top-hud,
  .world-main,
  .site-footer {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .hero-copy,
  .hero-avatar,
  .section-panel,
  .detail-card {
    padding: 20px;
  }

  .panel-title-bar {
    margin: -20px -20px 18px;
    flex-direction: column;
  }

  .pixel-nav,
  .hud-meta,
  .action-row,
  .detail-action-row {
    gap: 10px;
  }

  .pixel-button {
    width: 100%;
  }

  .avatar-scene {
    min-height: 400px;
  }

  .pixel-avatar-frame {
    width: 160px;
    height: 160px;
  }

  .pixel-avatar-face {
    width: 108px;
    height: 108px;
    font-size: 1.8rem;
  }

  .inventory-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-card {
    width: 220px;
  }

  .stat-row {
    flex-direction: column;
  }
}


