:root {
  --bg-1: #051726;
  --bg-2: #0b2d1f;
  --panel: #10202f;
  --panel-border: #2b4f67;
  --text: #e7f4ff;
  --muted: #a9c4d8;
  --accent: #6fe36b;
  --accent-2: #34a853;
  --danger: #ff7f50;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: 24px;
  line-height: 1.25;
  background:
    radial-gradient(circle at 15% 20%, #15395f 0%, transparent 35%),
    radial-gradient(circle at 82% 70%, #1a4a35 0%, transparent 32%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(920px, 92vw);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
  animation: fadeIn 420ms ease-out;
}

.version-pill {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 2px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 1px;
}

h1,
h2 {
  font-family: "Press Start 2P", monospace;
  margin: 0;
}

h1 {
  font-size: clamp(28px, 6vw, 46px);
  color: #b7f8ff;
  text-shadow: 0 4px 0 #0e2437;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
}

.card {
  border: 3px solid var(--panel-border);
  background: color-mix(in srgb, var(--panel) 92%, #0f1f14 8%);
  box-shadow: 0 16px 28px -12px var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.02);
  padding: 22px;
  margin-bottom: 18px;
  animation: riseIn 460ms ease-out;
}

.card h2 {
  font-size: clamp(16px, 3.2vw, 22px);
  margin-bottom: 14px;
}

.desc {
  margin: 0 0 18px;
  color: var(--muted);
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  text-decoration: none;
  color: #082113;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border: 3px solid #173326;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(12px, 2.4vw, 16px);
  line-height: 1.4;
  transition: transform 120ms ease, filter 120ms ease;
  cursor: pointer;
}

.download-btn:hover,
.download-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  outline: none;
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn.secondary {
  color: #05172d;
  background: linear-gradient(180deg, #7bd4ff, #4d8ec4);
  border-color: #1f3f59;
}

.download-btn.tertiary {
  color: #05172d;
  background: linear-gradient(180deg, #ff6c6c, #ff7f50);
  border-color: #1f3f59;
}

.download-btn.is-missing {
  background: linear-gradient(180deg, #9fa9b0, #6f7c86);
  border-color: #32404a;
  color: #1f2d39;
  pointer-events: none;
}

.meta {
  margin: 16px 0 0;
  padding: 0;
}

.meta div {
  margin: 10px 0;
}

.meta dt {
  color: var(--muted);
  margin-bottom: 4px;
}

.meta dd {
  margin: 0;
  word-break: break-word;
}

code {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: #d7f7bc;
}

.hint {
  margin-top: 18px;
  color: #ffe4d6;
}

.hint.error {
  color: var(--danger);
}

.features ul {
  margin: 0;
  padding-left: 22px;
}

.features li {
  margin: 8px 0;
  color: var(--muted);
}

.donation-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.donation-modal[aria-hidden="false"] {
  display: flex;
}

.donation-modal__panel {
  width: min(680px, 94vw);
  border: 3px solid var(--panel-border);
  background: color-mix(in srgb, var(--panel) 92%, #0f1f14 8%);
  box-shadow: 0 16px 28px -12px var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.02);
  padding: 22px;
}

.donation-modal__panel h2 {
  margin-bottom: 16px;
  font-size: clamp(16px, 3.2vw, 22px);
}

.donation-modal__iban-label {
  margin: 16px 0 6px;
  color: var(--muted);
}

.donation-modal__iban {
  margin: 0;
  padding: 10px 12px;
  border: 2px dashed #2b4f67;
  background: rgba(0, 0, 0, 0.18);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(11px, 2.2vw, 14px);
  color: #d7f7bc;
  word-break: break-all;
}

.donation-modal__countdown {
  margin: 18px 0 0;
  color: #ffe4d6;
}

.donation-modal__actions {
  margin-top: 18px;
}

.donation-modal__cancel {
  width: 100%;
  color: #fbe8dc;
  background: linear-gradient(180deg, #425364, #2a3846);
  border-color: #17222c;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .container {
    width: min(96vw, 920px);
    padding-top: 22px;
  }

  .card {
    padding: 18px;
  }

  body {
    font-size: 22px;
  }
}
