@font-face {
  font-family: 'Pixel';
  src: url('./../fonts/pixel.ttf');
}

/* --- COLORS --- */
:root {
  --sky: #bfe6ff;
  --sky-dark: #9fd4f5;
  --grass: #4caf1c;
  --grass-dark: #2f7d13;
  --ink: #0a0a0a;
  --white: #ffffff;
  --panel: #eaf6ff;
  --panel-border: #1b1b1b;
}

/* --- BASE --- */
body {
  background: linear-gradient(
    to bottom,
    var(--sky),
    var(--sky-dark)
  );
  font-family: monospace;
}

/* --- HEADER --- */
.flup-header {
  width: 100%;
  image-rendering: pixelated;
  border-bottom: 4px solid var(--panel-border);
}

/* --- CLOUDS --- */
.cloud {
  position: absolute;
  top: 40px;
  width: 120px;
  height: 32px;
  background: #ffffff;
  opacity: 0.9;
  image-rendering: pixelated;
  animation: drift linear infinite;
}

.cloud::after,
.cloud::before {
  content: '';
  position: absolute;
  background: #ffffff;
}

.cloud::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 10px;
}

.cloud::after {
  width: 50px;
  height: 50px;
  top: -25px;
  right: 10px;
}

.cloud-1 { left: -150px; animation-duration: 60s; }
.cloud-2 { top: 90px; left: -200px; animation-duration: 90s; }
.cloud-3 { top: 140px; left: -250px; animation-duration: 120s; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}

/* --- PIXEL CARD --- */
.pixel-card {
  background: var(--panel);
  border: 3px solid var(--panel-border);
  box-shadow:
    0 0 0 3px var(--white),
    0 0 0 6px var(--panel-border);
}

/* --- TEXT --- */
.pixel {
  font-family: 'Pixel', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pixel-step {
  font-size: 10px;
  opacity: 0.6;
}

/* --- INPUTS --- */
.pixel-input {
  width: 100%;
  padding: 10px;
  border: 3px solid var(--panel-border);
  font-size: 12px;
}

.pixel-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--grass);
}

/* --- BUTTONS (PIXEL PRESS) --- */
.pixel-btn {
  background: var(--grass);
  color: white;
  border: 3px solid var(--panel-border);
  padding: 10px;
  font-size: 12px;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.2);
  transition: transform 0.05s ease;
}

.pixel-btn:hover {
  background: var(--grass-dark);
}

.pixel-btn:active {
  transform: translateY(3px);
  box-shadow: inset 3px 3px 0 rgba(0,0,0,0.25);
}

.pixel-btn:disabled {
  background: #9ccc9c;
  opacity: 0.6;
}

/* --- LINKS --- */
.pixel-link {
  display: block;
  font-size: 12px;
  text-decoration: underline;
  margin-bottom: 6px;
}

/* --- SUCCESS --- */
.pixel-success {
  background: #e6ffe6;
  border: 3px solid var(--grass-dark);
  padding: 12px;
  text-align: center;
}

/* --- GRASS --- */
.grass-strip {
  position: relative;
  height: 40px;
  background: var(--grass);
  border-top: 4px solid var(--panel-border);
  overflow: hidden;
}

.grass-blade {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 24px;
  background: var(--grass-dark);
  animation: sway 3s ease-in-out infinite;
}

.grass-blade:nth-child(1) { left: 10%; animation-delay: 0s; }
.grass-blade:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.grass-blade:nth-child(3) { left: 50%; animation-delay: 1s; }
.grass-blade:nth-child(4) { left: 70%; animation-delay: 0.3s; }
.grass-blade:nth-child(5) { left: 90%; animation-delay: 0.8s; }

@keyframes sway {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

/* --- MESSAGE BOX --- */
.pixel-message {
  border: 3px solid;
  padding: 12px;
  text-align: center;
  font-size: 12px;
}

.pixel-message.success {
  background: #e6ffe6;
  border-color: #2f7d13;
  color: #2f7d13;
}

.pixel-message.error {
  background: #ffe6e6;
  border-color: #b71c1c;
  color: #b71c1c;
}
