/* ==========================================================================
   RUST WOOD - OFFICIAL PIXEL GAME WEBSITE STYLESHEET
   Pure 8-bit retro aesthetic, authentic bitmap typography, stepped geometry.
   Strictly uses local 04B_03 font only. 100% ASCII characters.
   ========================================================================== */

@font-face {
  font-family: '04B03';
  src: url('../assets/font/04B_03.ttf') format('truetype'),
       url('../assets/rustwood.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

:root {
  /* Color Palette - Forest Arcade & Rust Wood */
  --c-bg: #07120a;
  --c-bg-forest: #0d1e13;
  --c-panel: #0b2414;
  --c-panel-dark: #08170e;
  --c-panel-light: #163c24;
  
  --c-grass: #4fa434;
  --c-grass-dark: #2f6b22;
  
  --c-rust: #d93c1d;
  --c-rust-dark: #7d2008;
  --c-rust-light: #ff6538;
  
  --c-gold: #ffbe33;
  --c-gold-dark: #b87810;
  --c-gold-light: #ffe08a;
  
  --c-cyan: #3ca2e0;
  --c-cyan-dark: #1f6491;
  
  --c-term-green: #59d678;
  --c-term-dark: #1b4d29;
  
  --c-bone: #f2e9d2;
  --c-cream: #fffae8;
  --c-muted: #95a897;
  
  --c-black: #000000;

  /* Typography */
  --font-pixel: '04B03', monospace;
}

/* ==========================================================================
   Global Reset & Pixel Art Fundamentals
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-pixel) !important;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
  text-rendering: geometricPrecision;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

html {
  background-color: var(--c-bg);
  color: var(--c-bone);
  font-size: 16px;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 50% 0%, #173822 0%, var(--c-bg) 70%);
  color: var(--c-bone);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Subtle CRT scanline effect on background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 4px,
    rgba(0, 0, 0, 0.18) 4px 6px
  );
  z-index: 99;
}

img, video {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

:focus-visible {
  outline: 4px solid var(--c-gold);
  outline-offset: 4px;
}

/* ==========================================================================
   Top Navigation Bar (WORLD | EARLY ACCESS | X | SFX)
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(7, 18, 10, 0.96);
  border-bottom: 4px solid var(--c-black);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.site-nav .wrap {
  width: min(96%, 1160px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(2px 2px 0 var(--c-black));
  flex-shrink: 0;
}

.brand-text {
  font-size: 16px;
  color: var(--c-rust-light);
  text-shadow: 2px 2px 0 var(--c-black);
  letter-spacing: 2px;
}

.brand-text span {
  color: var(--c-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-item {
  font-size: 8px;
  color: var(--c-bone);
  padding: 6px 12px;
  background: transparent;
  border: 2px solid transparent;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.1s steps(2);
  user-select: none;
}

.nav-item:hover {
  color: var(--c-gold);
  background: #112d1c;
  border-color: var(--c-gold-dark);
}

.nav-item.active {
  color: var(--c-gold);
  background: #0d2817;
  border: 2px solid var(--c-gold);
  box-shadow: inset 1px 1px 0 var(--c-gold-light), 2px 2px 0 var(--c-black);
}

.nav-mint-btn {
  background: #c62828 !important;
  color: #ffffff !important;
  border: 3px solid var(--c-black) !important;
  box-shadow: inset -2px -2px 0 #7f0000,
              inset 2px 2px 0 #ef5350,
              2px 2px 0 var(--c-black) !important;
  letter-spacing: 1px;
}

.nav-mint-btn:hover {
  background: #d32f2f !important;
}

.nav-mint-btn:active {
  box-shadow: inset 2px 2px 0 #7f0000, 0 0 0 var(--c-black) !important;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: var(--c-panel-dark);
  border: 3px solid var(--c-black);
  box-shadow: 2px 2px 0 var(--c-black);
  font-size: 8px;
  color: var(--c-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.1s steps(2);
}

.sound-toggle:hover {
  background: #122f1c;
  color: var(--c-cream);
}

.sound-toggle.active {
  color: var(--c-term-green);
  border-color: var(--c-term-dark);
  background: #0d2a17;
  box-shadow: inset 1px 1px 0 var(--c-term-green), 2px 2px 0 var(--c-black);
}

/* ==========================================================================
   Stepped Pixel Buttons
   ========================================================================== */
.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1;
  padding: 12px 22px;
  background: var(--c-panel-light);
  color: var(--c-cream);
  border: 4px solid var(--c-black);
  box-shadow: inset -4px -4px 0 var(--c-panel-dark),
              inset 4px 4px 0 #286644,
              4px 4px 0 var(--c-black);
  cursor: pointer;
  text-transform: uppercase;
  user-select: none;
  transition: transform 0.05s steps(2), box-shadow 0.05s steps(2);
}

.px-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: inset -4px -4px 0 var(--c-panel-dark),
              inset 4px 4px 0 #286644,
              2px 2px 0 var(--c-black);
}

.px-btn:active {
  transform: translate(4px, 4px);
  box-shadow: inset -4px -4px 0 var(--c-panel-dark),
              inset 4px 4px 0 #286644,
              0 0 0 var(--c-black);
}

.px-btn.primary {
  background: var(--c-rust);
  color: var(--c-cream);
  box-shadow: inset -4px -4px 0 var(--c-rust-dark),
              inset 4px 4px 0 var(--c-rust-light),
              4px 4px 0 var(--c-black);
}

.px-btn.primary:hover {
  box-shadow: inset -4px -4px 0 var(--c-rust-dark),
              inset 4px 4px 0 var(--c-rust-light),
              2px 2px 0 var(--c-black);
}

.px-btn.gold {
  background: var(--c-gold);
  color: var(--c-black);
  box-shadow: inset -4px -4px 0 var(--c-gold-dark),
              inset 4px 4px 0 var(--c-gold-light),
              6px 6px 0 var(--c-black);
  font-weight: bold;
}

.px-btn.gold:hover {
  box-shadow: inset -4px -4px 0 var(--c-gold-dark),
              inset 4px 4px 0 var(--c-gold-light),
              4px 4px 0 var(--c-black);
}

.px-btn.sm {
  font-size: 8px;
  padding: 6px 12px;
  border-width: 3px;
  box-shadow: 2px 2px 0 var(--c-black);
}

.px-btn.sm:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--c-black);
}

/* ==========================================================================
   HOMEPAGE (index.html) - Full-Screen Pixel-Art Hero (Strictly No-Scroll)
   ========================================================================== */
.home-body {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px 16px;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(7, 24, 13, 0.42) 0%,
    rgba(5, 17, 9, 0.76) 70%,
    rgba(4, 11, 6, 0.94) 100%
  );
  z-index: 2;
}

.hero-center-box {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 840px);
  margin: 0 auto;
}

/* Main Pixel Leaf Logo Emblem */
.hero-main-logo-wrap {
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-logo {
  width: clamp(76px, 11vw, 112px);
  height: clamp(76px, 11vw, 112px);
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.85));
  animation: floatLeaf 3.6s ease-in-out infinite;
  user-select: none;
}

@keyframes floatLeaf {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-logo-wrap {
  margin-bottom: 12px;
}

.hero-title-img-wrap {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.hero-title-img {
  width: clamp(260px, 34vw, 420px);
  max-width: 90vw;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.85));
  display: block;
  user-select: none;
}

/* Chunky 3D Extruded Pixel Title Matching Visual Reference */
.hero-pixel-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(40px, 9vw, 84px);
  line-height: 0.88;
  letter-spacing: 4px;
  user-select: none;
}

.hero-pixel-title span:first-child {
  color: var(--c-rust);
  text-shadow:
    -3px -3px 0 var(--c-rust-light),
     3px -3px 0 var(--c-rust-light),
    -3px  3px 0 var(--c-rust-dark),
     3px  3px 0 var(--c-rust-dark),
     0    4px 0 var(--c-rust-dark),
     0    8px 0 #571505,
     0   12px 0 var(--c-black),
     4px 12px 0 var(--c-black),
    -4px 12px 0 var(--c-black);
}

.hero-pixel-title span:last-child {
  color: var(--c-gold);
  text-shadow:
    -3px -3px 0 var(--c-gold-light),
     3px -3px 0 var(--c-gold-light),
    -3px  3px 0 var(--c-gold-dark),
     3px  3px 0 var(--c-gold-dark),
     0    4px 0 var(--c-gold-dark),
     0    8px 0 #734a05,
     0   12px 0 var(--c-black),
     4px 12px 0 var(--c-black),
    -4px 12px 0 var(--c-black);
}

.hero-tagline {
  font-size: clamp(14px, 3vw, 22px);
  color: var(--c-cream);
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 var(--c-black), 4px 4px 0 rgba(0, 0, 0, 0.7);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   WORLD PAGE (world.html) - Interactive Pixel Realm Showcase
   ========================================================================== */
.subpage-body {
  min-height: 100vh;
  background: #051208;
}

.page-container {
  padding: 72px 16px 24px;
  width: min(96%, 1160px);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-header {
  text-align: center;
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(22px, 4vw, 36px);
  color: var(--c-cream);
  text-shadow: 3px 3px 0 var(--c-black);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 8px;
  color: var(--c-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Retro Console Frame Layout */
.world-showcase-box {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  background: #06140b;
  border: 6px solid var(--c-black);
  outline: 3px solid #1c4528;
  outline-offset: -9px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 6px 6px 0 var(--c-black);
  margin-bottom: 16px;
}

.world-map-wrap {
  position: relative;
  border: 4px solid var(--c-black);
  background: #020904;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.world-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.world-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world-pin {
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  font-size: 8px;
  background: rgba(5, 12, 7, 0.94);
  border: 2px solid var(--c-gold-dark);
  color: var(--c-gold);
  box-shadow: 3px 3px 0 var(--c-black);
  cursor: pointer;
  transition: transform 0.08s steps(2), border-color 0.08s, background-color 0.08s;
  user-select: none;
  z-index: 10;
}

.world-pin:hover {
  transform: translate(-50%, -54%);
  border-color: var(--c-gold-light);
  color: #ffffff;
  background: #0d2817;
}

.world-pin.active {
  transform: translate(-50%, -54%);
  background: var(--c-gold);
  color: var(--c-black);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 190, 51, 0.7), 4px 4px 0 var(--c-black);
  font-weight: bold;
  z-index: 20;
}

.world-pin .pin-icon {
  font-weight: bold;
}

/* Pin Coordinates matching screenshot reference */
.pin-forest {
  top: 48%;
  left: 24%;
}

.pin-fishing {
  top: 73%;
  left: 41%;
}

.pin-market {
  top: 60%;
  left: 31%;
}

.pin-workshop {
  top: 45%;
  left: 44%;
}

/* Dynamic Information Panel */
.world-detail-panel {
  background: #092013;
  border: 4px solid var(--c-black);
  outline: 2px solid #275635;
  outline-offset: -6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-header {
  margin-bottom: 10px;
}

.detail-badge {
  display: inline-block;
  font-size: 8px;
  color: var(--c-term-green);
  background: #07190e;
  border: 2px solid var(--c-grass-dark);
  padding: 4px 8px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.detail-title {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--c-gold);
  text-shadow: 2px 2px 0 var(--c-black);
  letter-spacing: 1px;
}

.detail-preview-frame {
  border: 3px solid var(--c-black);
  background: #030a05;
  margin-bottom: 12px;
  overflow: hidden;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-img,
.detail-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: opacity 0.15s steps(2);
  display: block;
}

.hidden {
  display: none !important;
}

.detail-desc {
  font-size: 8px;
  color: var(--c-bone);
  line-height: 1.8;
  margin-bottom: 12px;
}

.detail-resources {
  margin-bottom: 12px;
}

.res-label {
  font-size: 8px;
  color: var(--c-term-green);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.res-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.res-tag {
  font-size: 8px;
  background: #0e2b19;
  border: 2px solid #366d48;
  color: var(--c-cream);
  padding: 4px 8px;
  box-shadow: 1px 1px 0 var(--c-black);
}

.detail-status {
  font-size: 8px;
  color: var(--c-gold-dark);
  border-top: 2px dashed #1c4528;
  padding-top: 8px;
  margin-top: auto;
  letter-spacing: 1px;
}

.page-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   EARLY ACCESS PAGE (early-access.html) - Coming Soon Portal (Strictly No-Scroll)
   ========================================================================== */
.early-body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #020704;
}

/* Nav is positioned relative in early-body so it occupies space and never clips the card */
.early-body .site-nav {
  position: relative !important;
  flex-shrink: 0;
  z-index: 50;
}

.early-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.early-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(6, 26, 13, 0.42) 0%,
    rgba(3, 14, 7, 0.78) 75%,
    rgba(1, 6, 3, 0.94) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.early-center-box {
  position: relative;
  z-index: 3;
  width: min(100%, 480px);
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   PROVE YOUR LOYALTY - QUEST CARD (Match Mockup 1:1)
   ========================================================================== */
.quest-card {
  background: #02200e;
  border: 3px solid #35944d;
  outline: 3px solid #011107;
  outline-offset: -6px;
  border-radius: 10px;
  box-shadow: 0 0 0 3px #010a04, 0 0 0 6px #246f38, 0 20px 50px rgba(0, 0, 0, 0.95);
  padding: clamp(10px, 1.8vh, 16px) clamp(16px, 3vw, 22px) clamp(8px, 1.4vh, 12px);
  width: min(94vw, 470px);
  margin: auto;
}

.quest-illustration-frame {
  width: clamp(120px, 18vw, 136px);
  height: clamp(62px, 10vh, 70px);
  margin: 0 auto clamp(4px, 1vh, 8px);
  border: 3px solid #d4a017;
  outline: 2px solid #855d0a;
  outline-offset: -4px;
  background: #5aa434;
  box-shadow: 2px 2px 0 #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quest-illustration-video,
.quest-illustration-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.quest-subtitle {
  font-size: 8px;
  color: #ffbe33;
  text-align: center;
  margin-bottom: clamp(4px, 0.8vh, 6px);
  line-height: 1.45;
  letter-spacing: 0.5px;
}

.quest-title {
  font-size: clamp(18px, 3.2vw, 22px);
  color: #ffffff;
  text-align: center;
  text-shadow: 2px 2px 0 #000000;
  letter-spacing: 1.5px;
  margin-bottom: clamp(6px, 1.2vh, 10px);
  font-weight: normal;
}

.tasks-container {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.8vh, 6px);
  margin-bottom: clamp(6px, 1.2vh, 10px);
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #02140a;
  border: 2px solid #144923;
  padding: clamp(3px, 0.7vh, 5px) clamp(8px, 2vw, 12px);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.06), 2px 2px 0 #000000;
  gap: 8px;
}

.task-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.task-label {
  font-size: 8px;
  color: #ffffff;
  letter-spacing: 1px;
}

.task-btn {
  background: #e6a817;
  border-top: 2px solid #ffe666;
  border-left: 2px solid #ffe666;
  border-right: 2px solid #8f5f08;
  border-bottom: 2px solid #8f5f08;
  color: #000000;
  font-size: 8px;
  font-weight: bold;
  padding: clamp(4px, 0.7vh, 5px) clamp(10px, 2vw, 14px);
  min-width: 82px;
  text-align: center;
  box-shadow: 2px 2px 0 #000000;
  cursor: pointer;
  transition: transform 0.05s, filter 0.1s;
  font-family: inherit;
}

.task-btn:hover {
  filter: brightness(1.1);
}

.task-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000000;
}

.task-btn.done {
  background: #15803d !important;
  color: #bbf7d0 !important;
  border-color: #22c55e #14532d #14532d #22c55e !important;
  box-shadow: inset 2px 2px 0 #16a34a, 2px 2px 0 #000000 !important;
  cursor: default;
}

.wallet-field-box {
  margin-bottom: clamp(4px, 1vh, 8px);
  text-align: left;
}

.wallet-label {
  font-size: 8px;
  color: #b4e33d;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

.wallet-input-wrap {
  width: 100%;
}

.wallet-input {
  width: 100%;
  height: clamp(32px, 5vh, 36px);
  background: #011308;
  border: 2px solid #2da64f;
  padding: 6px 10px;
  font-size: 14px;
  color: #ffffff;
  box-shadow: inset 2px 2px 0 #000000;
  font-family: inherit;
}

.wallet-input::placeholder {
  color: #2da64f;
  opacity: 0.7;
}

.wallet-input:focus {
  border-color: #52e67e;
  outline: none;
}

.wallet-error-msg {
  font-size: 8px;
  color: #ff5252;
  min-height: 10px;
  margin-top: 2px;
  letter-spacing: 1px;
}

.submit-btn-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: clamp(4px, 0.8vh, 6px) 0 clamp(4px, 1vh, 8px);
}

.submit-btn {
  width: 84%;
  height: clamp(36px, 5.5vh, 40px);
  background: #e6a817;
  border-top: 3px solid #ffeb7a;
  border-left: 3px solid #ffeb7a;
  border-right: 3px solid #8f5f08;
  border-bottom: 3px solid #8f5f08;
  border-radius: 4px;
  color: #000000;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  box-shadow: 0 4px 0 #734c03, 3px 6px 0 #000000;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: transform 0.05s, filter 0.1s;
}

.submit-btn:hover {
  filter: brightness(1.1);
}

.submit-btn:active {
  transform: translate(1px, 2px);
  box-shadow: 0 2px 0 #734c03, 2px 4px 0 #000000;
}

.submit-btn.shake {
  animation: shakeError 0.35s ease-in-out;
}

.submit-btn.unlock-ready {
  animation: submitPulse 1.2s infinite alternate;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

@keyframes submitPulse {
  0% { filter: brightness(1); box-shadow: 0 4px 0 #734c03, 3px 6px 0 #000000; }
  100% { filter: brightness(1.2); box-shadow: 0 4px 0 #734c03, 0 0 14px rgba(255, 190, 51, 0.7); }
}

.status-banner {
  font-size: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  text-align: center;
  border: 2px solid var(--c-black);
  box-shadow: 2px 2px 0 var(--c-black);
  letter-spacing: 1px;
}

.status-banner.success {
  background: #10381e;
  color: #72e38c;
  border-color: #27703e;
}

.status-banner.duplicate {
  background: #362908;
  color: #ffbe33;
  border-color: #6d5412;
}

.status-banner.error {
  background: #381010;
  color: #ff7373;
  border-color: #702727;
}

.quest-bottom-nav {
  border-top: 2px dashed #1b6330;
  padding-top: clamp(6px, 1vh, 8px);
  margin-top: clamp(3px, 0.7vh, 5px);
  display: flex;
  justify-content: center;
}

.return-world-btn {
  background: #082813;
  border: 2px solid #2ba84f;
  color: #f0fdf4;
  font-size: 8px;
  padding: clamp(4px, 0.8vh, 6px) clamp(10px, 2vw, 14px);
  box-shadow: 2px 2px 0 #000000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  font-family: inherit;
  letter-spacing: 1px;
}

.return-world-btn:hover {
  background: #0e3b1c;
  border-color: #52e67e;
  color: #ffffff;
}

.honeypot-field {
  display: none !important;
}

/* ==========================================================================
   Minimal Pixel Footer
   ========================================================================== */
.site-footer {
  padding: 12px 0;
  background: #040905;
  border-top: 4px solid var(--c-black);
  text-align: center;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 8px;
  color: #7d8a7c;
  line-height: 1.6;
  letter-spacing: 1px;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints & Reduced Motion
   ========================================================================== */
@media (max-width: 860px) {
  .world-showcase-box {
    grid-template-columns: 1fr;
  }
  .detail-preview-frame {
    height: 150px;
  }
}

@media (max-width: 640px) {
  .site-nav .wrap {
    height: auto;
    padding: 8px 12px;
    gap: 8px;
  }
  .nav-links {
    gap: 6px;
  }
  .nav-item {
    padding: 4px 6px;
    font-size: 8px;
  }
  .hero-viewport {
    padding-top: 64px;
    padding-bottom: 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .px-btn {
    width: 100%;
  }
  .page-footer-actions {
    flex-direction: column;
    width: 100%;
  }
  .page-footer-actions .px-btn {
    width: 100%;
  }
  .early-return-wrap {
    flex-direction: column;
  }
  .early-return-wrap .px-btn {
    width: 100%;
  }
}

/* Enable vertical scrolling if viewport height is too short */
@media (max-height: 600px) {
  .home-body,
  .early-body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
