* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  text-align: center;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #1a2744 0%, #0d1117 45%, #0a0a0a 100%);
  color: #e6edf3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

h1 {
  font-weight: 600;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #f0f6fc;
}

#flash-container {
  width: min(100%, 800px);
  aspect-ratio: 800 / 600;
  max-height: min(70vh, 600px);
  overflow: hidden;
  background: #000;
}

#flash-container ruffle-player {
  display: block;
  width: 100%;
  height: 100%;
}

.back-row {
  margin-top: 16px;
}

.back-link {
  font-size: 0.85rem;
  color: #58a6ff;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.github-row {
  margin: 20px 0 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.github-icon-link {
  display: inline-flex;
  color: #8b949e;
  transition: color 0.15s, transform 0.1s;
}

.github-icon-link:hover {
  color: #f0f6fc;
}

.github-icon-link:active {
  transform: scale(0.97);
}

.github-icon-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
