@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Rubik:wght@400;500;600;700&display=swap');

:root {
  --asphalt: #1b1f2e;
  --asphalt-deep: #10121c;
  --horizon: #ff8c42;
  --armageddon-red: #e63946;
  --armageddon-red-dark: #c1202c;
  --postcard-cream: #f6ecd9;
  --highway-yellow: #ffd23f;
  --ink: #14161f;
  --ink-soft: #4a4d5c;
  --card-farm: #e8b04b;
  --card-alien: #4bd9c0;
  --card-armageddon: #e63946;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Rubik', sans-serif;
  color: var(--postcard-cream);
  background: radial-gradient(ellipse at 50% 100%, var(--horizon) 0%, transparent 55%),
    linear-gradient(180deg, var(--asphalt) 0%, var(--asphalt-deep) 70%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 64px;
}

.marquee {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.01em;
  margin: 12px 0 4px;
  color: var(--postcard-cream);
  text-shadow: 3px 3px 0 var(--armageddon-red-dark);
}

.marquee-sub {
  font-size: 0.95rem;
  text-align: center;
  color: var(--horizon);
  font-weight: 500;
  margin: 0 0 20px;
  max-width: 320px;
}

.road-stripe {
  width: 140px;
  height: 6px;
  margin: 4px 0 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--highway-yellow) 0 16px,
    transparent 16px 26px
  );
  border-radius: 3px;
}

.setup-card {
  width: 100%;
  max-width: 420px;
  background: rgba(16, 18, 28, 0.55);
  border: 1px solid rgba(246, 236, 217, 0.15);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--postcard-cream);
  margin-bottom: 6px;
}

.field-hint {
  font-size: 0.78rem;
  color: rgba(246, 236, 217, 0.6);
  margin: -2px 0 10px;
}

input[type='text'] {
  width: 100%;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid rgba(246, 236, 217, 0.25);
  background: rgba(246, 236, 217, 0.08);
  color: var(--postcard-cream);
  margin-bottom: 22px;
  outline: none;
  transition: border-color 0.15s ease;
}

input[type='text']::placeholder {
  color: rgba(246, 236, 217, 0.4);
}

input[type='text']:focus {
  border-color: var(--highway-yellow);
}

.theme-row {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.theme-card {
  --tilt: 0deg;
  flex: 1 1 108px;
  min-width: 108px;
  cursor: pointer;
  background: var(--postcard-cream);
  color: var(--ink);
  border-radius: 4px;
  padding: 14px 10px 12px;
  text-align: center;
  transform: rotate(var(--tilt));
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  border: 3px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.theme-card:nth-child(1) { --tilt: -3deg; }
.theme-card:nth-child(2) { --tilt: 2deg; }
.theme-card:nth-child(3) { --tilt: -1.5deg; }

.theme-card:hover {
  transform: rotate(0deg) translateY(-2px);
}

.theme-card.selected {
  border-color: var(--highway-yellow);
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}

.theme-card-swatch {
  width: 100%;
  height: 42px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.theme-card-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.theme-card-tagline {
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.btn-primary {
  width: 100%;
  font-family: 'Bungee', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: var(--armageddon-red);
  color: var(--postcard-cream);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--armageddon-red-dark);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--armageddon-red-dark);
}

.btn-primary:disabled {
  background: rgba(246, 236, 217, 0.15);
  color: rgba(246, 236, 217, 0.4);
  box-shadow: none;
  cursor: not-allowed;
}

.version-footer {
  margin-top: 28px;
  font-size: 0.7rem;
  color: rgba(246, 236, 217, 0.35);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .theme-card, .btn-primary {
    transition: none;
  }
}
