@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/press-start-2p.ttf') format('truetype');
}

:root {
  --bg: #1a0b3b;
  --bg-deep: #0d0524;
  --panel: rgba(21, 10, 53, .92);
  --border: #4ecfd8;
  --accent: #d06bc0;
  --violet: #9d7cd8;
  --text: #cdd8e8;
  --star: rgba(205, 216, 232, .8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  height: 100%;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, #2b1266 100%);
  color: var(--text);
  font-family: 'Press Start 2P', monospace;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Sterne */
.stars {
  position: fixed;
  inset: 0;
  color: var(--star);
  z-index: 0;
  pointer-events: none;
}

.stars span {
  position: absolute;
  color: inherit;
}

.stars .twinkle {
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: .25; }
  50% { opacity: .9; }
}

/* Pixel-Planeten */
.planet {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
}

.planet svg {
  display: block;
  width: 100%;
  height: auto;
}

.planet-big {
  top: 8%;
  right: 6%;
  width: 140px;
  animation: float1 6s ease-in-out infinite;
}

.planet-small {
  bottom: 14%;
  left: 5%;
  width: 90px;
  animation: float2 8s ease-in-out infinite;
}

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

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Pixel-Astronaut */
.astronaut {
  position: fixed;
  top: 15%;
  left: 6%;
  width: 72px;
  z-index: 0;
  opacity: .85;
  animation: drift 12s ease-in-out infinite;
}

.astronaut svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(20px) rotate(4deg); }
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

.welcome {
  font-size: clamp(28px, 6vw, 48px);
  color: var(--text);
  text-shadow: 3px 3px 0 rgba(208, 107, 192, .5);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.subtitle {
  font-size: clamp(8px, 2vw, 12px);
  color: var(--accent);
  margin-bottom: 48px;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: .4; }
}

/* Panel */
.panel {
  border: 3px solid rgba(78, 207, 216, .55);
  background: var(--panel);
  box-shadow: 0 0 24px rgba(78, 207, 216, .12);
  text-align: left;
}

.panel-header {
  background: rgba(157, 124, 216, .18);
  border-bottom: 3px solid rgba(78, 207, 216, .55);
  color: var(--border);
  font-size: 12px;
  padding: 12px 16px;
  letter-spacing: 2px;
}

.panel-body {
  padding: 24px;
}

.panel-body p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--text);
}

.panel-body a {
  color: var(--accent);
  text-decoration: none;
}

.panel-body a:hover {
  text-decoration: underline;
}

footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 20px;
  font-size: 8px;
  color: rgba(205, 216, 232, .45);
  letter-spacing: 1px;
  text-align: center;
}

@media (max-width: 480px) {
  .panel-body { padding: 16px; }
  .astronaut { width: 48px; top: 10%; left: 4%; }
  .planet-big { width: 90px; right: 4%; }
  .planet-small { width: 60px; bottom: 10%; left: 4%; }
  .stars span { font-size: 6px; }
}
