/* ==========================================================================
   SoalOpen - 8-Bit Retro Maintenance Page Stylesheet
   Designed with authentic arcade aesthetics, zero AI slop, crisp pixel rendering
   ========================================================================== */

:root {
  /* Authentic 8-bit / Arcade Palette */
  --bg-space: #0b0e17;
  --bg-card: #151a28;
  --bg-card-inner: #1a2236;
  --border-outer: #05070a;
  --border-rim: #2d3748;
  
  --pixel-gold: #f4b41b;
  --pixel-yellow: #ffe600;
  --pixel-cyan: #00e5ff;
  --pixel-green: #00e676;
  --pixel-red: #ff3860;
  --pixel-purple: #7c4dff;
  --pixel-pink: #ff4081;
  --pixel-orange: #ff6d00;
  
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-arcade: 'Press Start 2P', monospace;
  --font-retro: 'Silkscreen', monospace;
  --font-terminal: 'VT323', monospace;

  /* Pixel Shadows & Chunky Borders */
  --pixel-border-gold: 
    0 -4px 0 0 var(--pixel-gold),
    0 4px 0 0 var(--pixel-gold),
    -4px 0 0 0 var(--pixel-gold),
    4px 0 0 0 var(--pixel-gold),
    0 -8px 0 0 var(--border-outer),
    0 8px 0 0 var(--border-outer),
    -8px 0 0 0 var(--border-outer),
    4px 0 0 0 var(--border-outer),
    -4px -4px 0 0 var(--border-outer),
    4px -4px 0 0 var(--border-outer),
    -4px 4px 0 0 var(--border-outer),
    4px 4px 0 0 var(--border-outer);
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-retro);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ==========================================================================
   CRT Screen Effects & Scanlines (Toggleable)
   ========================================================================== */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.75), inset 0 0 30px rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s ease;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 998;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  );
  background-size: 100% 4px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* When CRT is toggled off */
body:not(.crt-active) .crt-overlay,
body:not(.crt-active) .scanlines {
  opacity: 0;
  display: none;
}

/* ==========================================================================
   Animated Retro Background Stars & Grid
   ========================================================================== */
.pixel-stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 80px 140px, var(--pixel-gold), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 160px 80px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 240px 310px, var(--pixel-cyan), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 320px 190px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 70px, var(--pixel-pink), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 580px 260px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 700px 150px, var(--pixel-yellow), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 820px 380px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 940px 90px, var(--pixel-green), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 1050px 220px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 1200px 340px, var(--pixel-cyan), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 600px 400px;
  animation: starsTwinkle 4s steps(4) infinite alternate;
}

@keyframes starsTwinkle {
  0% { opacity: 0.6; }
  50% { opacity: 0.9; }
  100% { opacity: 0.7; }
}

/* ==========================================================================
   Page Wrapper & Container
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 32px 20px;
}

/* ==========================================================================
   Top HUD / Header
   ========================================================================== */
.retro-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background-color: #080a11;
  border: 4px solid var(--border-rim);
  box-shadow: 0 4px 0 0 #000;
  font-family: var(--font-arcade);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-label {
  color: var(--pixel-red);
}

.hud-val {
  color: #ffffff;
}

.hud-badge {
  color: var(--pixel-green);
  font-size: 0.65rem;
}

.pulse {
  animation: pulseBlink 1s steps(2) infinite;
}

@keyframes pulseBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hud-controls {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Chunky 8-Bit Pixel Buttons
   ========================================================================== */
.pixel-btn-tiny {
  background-color: #1a2236;
  color: #fff;
  border: 2px solid #3d4a63;
  padding: 4px 8px;
  font-family: var(--font-retro);
  font-size: 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 2px 2px 0 0 #000;
  transition: transform 0.05s ease;
}

.pixel-btn-tiny:hover {
  background-color: #273452;
  border-color: var(--pixel-cyan);
  color: var(--pixel-cyan);
}

.pixel-btn-tiny:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 #000;
}

.pixel-btn {
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  background-color: var(--pixel-gold);
  color: #0b0e17;
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    -4px 0 0 0 #000,
    4px 0 0 0 #000,
    0 -4px 0 0 #000,
    0 4px 0 0 #000,
    0 8px 0 0 rgba(0,0,0,0.5);
  transition: all 0.05s steps(1);
}

.pixel-btn:hover {
  background-color: var(--pixel-yellow);
  transform: translateY(-2px);
}

.pixel-btn:active {
  transform: translateY(4px);
  box-shadow: 
    -4px 0 0 0 #000,
    4px 0 0 0 #000,
    0 -4px 0 0 #000,
    0 4px 0 0 #000;
}

.pixel-btn-secondary {
  background-color: #242c3f;
  color: #e2e8f0;
}

.pixel-btn-secondary:hover {
  background-color: #313c54;
  color: #fff;
}

/* ==========================================================================
   Main Maintenance Container
   ========================================================================== */
.maintenance-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0;
}

/* ==========================================================================
   ANIMASI DI ATAS (Above Animation: Floating Island & Cat Mechanic)
   ========================================================================== */
.above-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  position: relative;
}

.floating-island {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: islandBob 3.5s ease-in-out infinite alternate;
}

@keyframes islandBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Pixel Clouds */
.pixel-cloud {
  position: absolute;
  height: 16px;
  background-color: #ffffff;
  opacity: 0.85;
  box-shadow: 
    0 -4px 0 0 #fff,
    -4px 0 0 0 #fff,
    4px 0 0 0 #fff,
    -8px 4px 0 0 #fff,
    8px 4px 0 0 #fff,
    0 4px 0 0 #b0bec5;
  pointer-events: none;
}

.cloud-1 {
  width: 48px;
  top: -24px;
  left: -50px;
  animation: cloudDrift1 12s linear infinite;
}

.cloud-2 {
  width: 64px;
  top: -10px;
  right: -55px;
  animation: cloudDrift2 16s linear infinite;
}

@keyframes cloudDrift1 {
  0% { transform: translateX(0); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}

@keyframes cloudDrift2 {
  0% { transform: translateX(0); }
  50% { transform: translateX(-24px); }
  100% { transform: translateX(0); }
}

/* The Mechanic Scene */
.mechanic-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  margin-bottom: -4px;
}

/* Cat Character Box */
.pixel-character-box {
  position: relative;
  width: 96px;
  height: 96px;
  cursor: pointer;
  user-select: none;
}

.pixel-sprite {
  width: 100%;
  height: 100%;
  display: block;
}

/* Cat animations */
.cat-mechanic .cat-sprite {
  animation: catBreath 1.5s steps(2) infinite alternate;
}

@keyframes catBreath {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

/* Cat Tail Wagging */
.cat-tail {
  transform-origin: 7px 20px;
  animation: tailWiggle 1.2s steps(3) infinite alternate;
}

@keyframes tailWiggle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-12deg); }
}

/* Wrench Arm Hammering Animation */
.wrench-arm {
  transform-origin: 21px 18px;
  animation: wrenchHammer 0.7s steps(3) infinite;
}

@keyframes wrenchHammer {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(-30deg); }
  75% { transform: rotate(20deg); }
  100% { transform: rotate(0deg); }
}

/* Eyes Blinking */
.sprite-eyes {
  animation: eyeBlink 4s steps(1) infinite;
}

@keyframes eyeBlink {
  0%, 94%, 100% { transform: scaleY(1); }
  95%, 99% { transform: scaleY(0.1); transform-origin: center; }
}

/* Speech Bubble above Cat */
.pixel-speech-bubble {
  position: absolute;
  top: -38px;
  left: -20px;
  background-color: #ffffff;
  color: #10141f;
  padding: 4px 10px;
  font-family: var(--font-retro);
  font-size: 0.65rem;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 
    -2px 0 0 0 #000,
    2px 0 0 0 #000,
    0 -2px 0 0 #000,
    0 2px 0 0 #000;
  animation: bubbleBounce 2s ease-in-out infinite alternate;
  z-index: 5;
}

.pixel-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 36px;
  width: 6px;
  height: 6px;
  background-color: #fff;
  box-shadow: 
    2px 2px 0 0 #000,
    -2px 0 0 0 #000;
}

@keyframes bubbleBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* Sparks & Floating Hearts */
.sparkle-container {
  position: absolute;
  top: 10px;
  right: -8px;
  pointer-events: none;
}

.pixel-spark, .pixel-heart {
  position: absolute;
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  animation: sparkRise 1.4s steps(4) infinite;
}

.s-1 {
  color: var(--pixel-gold);
  left: 0;
  top: 0;
  animation-delay: 0.1s;
}

.s-2 {
  color: var(--pixel-cyan);
  left: 10px;
  top: -12px;
  animation-delay: 0.5s;
}

.h-1 {
  color: var(--pixel-pink);
  left: -16px;
  top: -24px;
  animation-delay: 0.8s;
}

@keyframes sparkRise {
  0% { opacity: 0; transform: translateY(8px) scale(0.6); }
  30% { opacity: 1; transform: translateY(-4px) scale(1.1); }
  80% { opacity: 0.8; transform: translateY(-16px) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(0.7); }
}

/* Server Rack */
.pixel-server-rack {
  position: relative;
  width: 84px;
  height: 96px;
}

/* Server LED Blinking */
.led-blink-1 {
  animation: ledFlash1 0.4s steps(2) infinite;
}
.led-blink-2 {
  animation: ledFlash2 0.7s steps(2) infinite;
}
.led-blink-3 {
  animation: ledFlash3 1.1s steps(2) infinite;
}
.led-blink-alert {
  animation: ledAlert 0.3s steps(2) infinite alternate;
}

@keyframes ledFlash1 { 0%, 100% { fill: #00E676; } 50% { fill: #004D40; } }
@keyframes ledFlash2 { 0%, 100% { fill: #2979FF; } 50% { fill: #0D47A1; } }
@keyframes ledFlash3 { 0%, 100% { fill: #FFD600; } 50% { fill: #FF6F00; } }
@keyframes ledAlert  { 0% { fill: #FF1744; } 100% { fill: #500; } }

/* Steam Puffs */
.steam-puff {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #eceff1;
  opacity: 0;
  pointer-events: none;
  animation: steamRise 2s steps(6) infinite;
}

.puff-1 {
  top: 10px;
  left: 20px;
  animation-delay: 0.3s;
}

.puff-2 {
  top: 14px;
  left: 36px;
  animation-delay: 1.1s;
}

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  40% { opacity: 0.7; transform: translateY(-14px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-28px) scale(2); }
}

/* Pixel Island Base */
.pixel-island-base {
  width: 260px;
  height: 24px;
  position: relative;
}

.grass-layer {
  width: 100%;
  height: 10px;
  background-color: #2e7d32;
  box-shadow: 
    0 -3px 0 0 #4caf50,
    0 -6px 0 0 #81c784 inset;
  border-left: 4px solid #1b5e20;
  border-right: 4px solid #1b5e20;
}

.dirt-layer {
  width: 100%;
  height: 14px;
  background-color: #5d4037;
  box-shadow: 0 4px 0 0 #3e2723;
  border-left: 4px solid #3e2723;
  border-right: 4px solid #3e2723;
  background-image: 
    radial-gradient(2px 2px at 20px 4px, #8d6e63, transparent),
    radial-gradient(3px 3px at 80px 6px, #3e2723, transparent),
    radial-gradient(2px 2px at 150px 8px, #8d6e63, transparent),
    radial-gradient(3px 3px at 210px 4px, #3e2723, transparent);
}

/* ============================================== */
/* TULISAN DI TENGAH (Center Banner Card) */
/* ============================================== */
.center-banner-card {
  background-color: var(--bg-card);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  /* Stepped 8-bit border with arcade gold highlight */
  border: 4px solid var(--pixel-gold);
  box-shadow: 
    0 -4px 0 0 #000,
    0 4px 0 0 #000,
    -4px 0 0 0 #000,
    4px 0 0 0 #000,
    0 8px 0 0 rgba(0, 0, 0, 0.7),
    0 0 24px rgba(244, 180, 27, 0.15);
}

/* Corner pixel accents */
.center-banner-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 8px;
  height: 8px;
  background-color: #fff;
  box-shadow: 
    calc(100% + 8px) 0 0 0 #fff;
}

.pixel-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0b0e17;
  color: var(--pixel-cyan);
  font-family: var(--font-arcade);
  font-size: 0.65rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border: 2px solid var(--pixel-cyan);
  box-shadow: 2px 2px 0 0 #000;
}

.blinking-arrow {
  color: var(--pixel-yellow);
  animation: pulseBlink 0.8s steps(2) infinite;
}

/* The exact requested text in center */
.main-maintenance-title {
  font-family: var(--font-arcade);
  font-size: 1.65rem;
  line-height: 1.5;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-shadow: 
    3px 3px 0 var(--border-outer),
    -2px -2px 0 #1b263b,
    0 0 12px rgba(255, 230, 0, 0.35);
}

.maintenance-description {
  font-family: var(--font-retro);
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 28px auto;
  line-height: 1.7;
}

.highlight-text {
  color: var(--pixel-gold);
  font-weight: bold;
}

/* Status Grid */
.status-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card-inner);
  border: 2px solid #2e3b55;
  padding: 6px 14px;
  font-size: 0.75rem;
  box-shadow: 2px 2px 0 0 #000;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
}

.status-indicator-dot.online {
  background-color: var(--pixel-green);
  box-shadow: 0 0 6px var(--pixel-green);
  animation: pulseBlink 1.2s steps(2) infinite;
}

.status-indicator-dot.busy {
  background-color: var(--pixel-yellow);
  box-shadow: 0 0 6px var(--pixel-yellow);
  animation: pulseBlink 0.9s steps(2) infinite;
}

.status-indicator-dot.pending {
  background-color: var(--pixel-cyan);
  box-shadow: 0 0 6px var(--pixel-cyan);
  animation: pulseBlink 1.5s steps(2) infinite;
}

.status-title {
  color: var(--text-muted);
}

.status-state {
  color: #fff;
  font-weight: bold;
}

/* ==========================================================================
   ANIMASI DI BAWAH (Below Animation: Runway, Progress, Slime & Runner)
   ========================================================================== */
.below-animation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Progress Box */
.progress-box {
  background-color: #0b0e17;
  border: 3px solid #2b364e;
  padding: 12px 16px;
  box-shadow: 0 4px 0 0 #000;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-arcade);
  font-size: 0.65rem;
}

.progress-label {
  color: var(--pixel-gold);
  letter-spacing: 0.5px;
}

.progress-percent {
  color: var(--pixel-green);
}

.pixel-progress-bar-track {
  height: 18px;
  background-color: #151a28;
  border: 2px solid #3d4a63;
  position: relative;
  overflow: hidden;
}

.pixel-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b0ff, #00e676);
  position: relative;
  transition: width 0.4s steps(10);
}

.stripe-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.25) 8px,
    transparent 8px,
    transparent 16px
  );
  animation: progressStripeMove 1.5s linear infinite;
}

@keyframes progressStripeMove {
  0% { background-position: 0 0; }
  100% { background-position: 32px 0; }
}

/* Retro Runway Runner Mini-Game Scene */
.retro-runway-container {
  background-color: #0a0e1a;
  border: 4px solid #1f293d;
  box-shadow: 0 4px 0 0 #000;
  padding: 16px 16px 14px 16px;
  position: relative;
  overflow: hidden;
  outline: none;
}

.retro-runway-container:focus {
  border-color: var(--pixel-gold);
}

/* Runway Stage */
.runway-stage {
  position: relative;
  height: 130px;
  overflow: hidden;
  border-bottom: 2px solid #141b27;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, rgba(14, 20, 36, 0.6) 0%, rgba(10, 14, 26, 0.9) 100%);
}

/* Runner Hero (Dino) */
.pixel-runner-wrapper {
  width: 52px;
  height: 52px;
  position: absolute;
  left: 36px;
  bottom: 20px;
  z-index: 5;
  transition: filter 0.15s ease;
  cursor: pointer;
  will-change: transform;
}

.runner-legs .leg-left {
  animation: legCycle1 0.25s steps(2) infinite alternate;
}
.runner-legs .leg-right {
  animation: legCycle2 0.25s steps(2) infinite alternate;
}

@keyframes legCycle1 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

@keyframes legCycle2 {
  0% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.pixel-runner-wrapper.in-air .runner-legs .leg-left,
.pixel-runner-wrapper.in-air .runner-legs .leg-right {
  animation: none;
  transform: translateY(-2px);
}

/* Hero crashed state */
.pixel-runner-wrapper.crashed {
  filter: hue-rotate(180deg) brightness(1.3) contrast(1.2);
  animation: dinoHurt 0.4s steps(3);
}

@keyframes dinoHurt {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-10px) rotate(-18deg); }
  70% { transform: translateY(-4px) rotate(12deg); }
  100% { transform: translateY(0) rotate(-10deg); }
}

/* Dynamic Items Layer */
.dynamic-items-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Slime Obstacle */
.slime-obstacle {
  position: absolute;
  bottom: 20px;
  width: 36px;
  height: 36px;
  animation: slimeSquish 0.6s steps(2) infinite alternate;
  will-change: left;
}

@keyframes slimeSquish {
  0% { transform: scale(1, 1); }
  50% { transform: scale(1.15, 0.85); }
  100% { transform: scale(0.9, 1.1) translateY(-4px); }
}

/* Coin Item */
.game-coin {
  position: absolute;
  width: 24px;
  height: 24px;
  animation: coinBob 0.5s ease-in-out infinite alternate;
  will-change: left;
}

@keyframes coinBob {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-5px) scale(1.1); }
}

/* Coin Popup */
.coin-popup {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-arcade);
  font-size: 0.8rem;
  color: var(--pixel-yellow);
  opacity: 0;
  pointer-events: none;
  text-shadow: 2px 2px 0 #000;
  z-index: 8;
}

.coin-popup.show-coin {
  animation: coinPop 0.8s ease-out forwards;
}

@keyframes coinPop {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -20px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -32px) scale(0.9); }
}

/* Ground Runway / Brick Path */
.runway-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: #37474f;
  border-top: 3px solid #263238;
  overflow: hidden;
  z-index: 2;
}

.brick-pattern {
  width: 200%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, #263238 2px, transparent 2px),
    linear-gradient(0deg, #263238 2px, transparent 2px);
  background-size: 20px 10px;
  animation: groundScroll 1.4s linear infinite;
}

@keyframes groundScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}

/* Game Overlays */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: fadeIn 0.15s ease-out;
}

.game-overlay-box {
  background-color: #121826;
  border: 3px solid var(--pixel-gold);
  box-shadow: 0 4px 0 0 #000, inset 0 0 10px rgba(244, 180, 27, 0.2);
  padding: 10px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.game-overlay-box.alert-box {
  border-color: var(--pixel-red);
  box-shadow: 0 4px 0 0 #000, inset 0 0 10px rgba(255, 56, 96, 0.25);
}

.game-overlay-title {
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  color: var(--pixel-gold);
  letter-spacing: 1px;
}

.game-overlay-title.alert-text {
  color: var(--pixel-red);
}

.game-overlay-hint {
  font-family: var(--font-retro);
  font-size: 0.72rem;
  color: var(--text-primary);
  animation: pulseBlink 1.2s steps(2) infinite;
}

.game-over-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-arcade);
  font-size: 0.68rem;
  color: #fff;
}

.new-best-badge {
  background-color: var(--pixel-gold);
  color: #0b0e17;
  padding: 2px 6px;
  font-size: 0.55rem;
  font-weight: bold;
  animation: pulseBlink 0.8s steps(2) infinite;
}

.restart-btn {
  margin-top: 4px;
}

/* Interactive Hint Bar */
.interactive-hint-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed #202b3f;
}

.pixel-btn-action {
  background-color: #1b263b;
  color: var(--pixel-yellow);
  font-family: var(--font-arcade);
  font-size: 0.65rem;
  padding: 8px 14px;
  border: 2px solid var(--pixel-yellow);
  box-shadow: 2px 2px 0 0 #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.05s ease;
}

.pixel-btn-action:hover {
  background-color: var(--pixel-yellow);
  color: #0b0e17;
}

.pixel-btn-action:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 #000;
}

.stats-counter {
  font-family: var(--font-arcade);
  font-size: 0.65rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-counter strong {
  color: #fff;
}

.divider {
  color: #37474f;
}

/* ==========================================================================
   DI BAWAH FOOTER: JUDUL SoalOpen (Footer Styling)
   ========================================================================== */
.soalopen-footer {
  margin-top: 16px;
  background-color: #080b12;
  border: 4px solid #1f2738;
  box-shadow: 0 4px 0 0 #000;
  position: relative;
}

.footer-pixel-border {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--pixel-gold) 0,
    var(--pixel-gold) 8px,
    var(--pixel-cyan) 8px,
    var(--pixel-cyan) 16px,
    var(--pixel-pink) 16px,
    var(--pixel-pink) 24px,
    var(--pixel-green) 24px,
    var(--pixel-green) 32px
  );
}

.footer-inner {
  padding: 24px 24px 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-simple {
  padding: 26px 20px 22px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-simple .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-crest {
  width: 44px;
  height: 44px;
  background-color: #121824;
  border: 2px solid var(--pixel-gold);
  box-shadow: 2px 2px 0 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.footer-brand-title {
  font-family: var(--font-arcade);
  font-size: 1.6rem;
  color: var(--pixel-gold);
  letter-spacing: 2px;
  text-shadow: 
    2px 2px 0 #000,
    -1px -1px 0 #3e2723,
    0 0 10px rgba(244, 180, 27, 0.4);
  line-height: 1.2;
}

.footer-return-text {
  font-family: var(--font-retro);
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-top: 2px;
  text-shadow: 1px 1px 0 #000;
  animation: pulseBlink 3s steps(2) infinite alternate;
}

.footer-bottom-bar {
  border-top: 2px solid #141a27;
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-retro);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.copyright-text strong {
  color: var(--pixel-gold);
}

.server-tag {
  color: var(--pixel-cyan);
  font-family: var(--font-terminal);
  font-size: 0.95rem;
}

.dot-live {
  color: var(--pixel-green);
  animation: pulseBlink 1s steps(2) infinite;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 12px 14px 24px 14px;
  }
  
  .main-maintenance-title {
    font-size: 1.2rem;
    line-height: 1.6;
  }
  
  .maintenance-description {
    font-size: 0.85rem;
  }
  
  .status-grid {
    flex-direction: column;
    align-items: stretch;
  }
  
  .status-pill {
    justify-content: center;
  }
  
  .mechanic-scene {
    gap: 12px;
  }
  
  .pixel-character-box {
    width: 80px;
    height: 80px;
  }
  
  .pixel-server-rack {
    width: 68px;
    height: 80px;
  }
  
  .pixel-island-base {
    width: 210px;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-actions {
    width: 100%;
  }
  
  .footer-actions .pixel-btn {
    width: 100%;
  }
  
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .interactive-hint-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pixel-btn-action {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .retro-hud {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hud-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .main-maintenance-title {
    font-size: 1.05rem;
  }
  
  .runway-stage {
    padding: 0 10px;
  }
}
