:root {
  --blue: #00a8df;
  --cream: #fffaf0;
  --gold: #f7b52c;
  --green: #3fc34f;
  --ink-soft: #314052;
  --ink: #111a2a;
  --red-dark: #bf351b;
  --red: #e24a2a;
  --sand: #f3ead8;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.announcement {
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  padding: 10px 16px;
  text-align: center;
}
.announcement a { color: var(--gold); text-decoration: none; font-weight: 600; margin-left: 8px; }

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(17, 26, 42, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand img { height: 40px; width: auto; }
.back-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}

h1 { font-size: 34px; margin: 0 0 12px; line-height: 1.1; }
p.lede { color: var(--ink-soft); font-size: 16px; line-height: 1.5; margin-bottom: 28px; }

.card {
  background: var(--white);
  border: 1px solid rgba(17, 26, 42, 0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(17, 26, 42, 0.06);
}

.step { display: none; }
.step.active { display: block; }

label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 18px 0 6px;
}
label:first-of-type { margin-top: 0; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(17, 26, 42, 0.18);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.checkbox-row input { margin-top: 3px; }
.checkbox-row a { color: var(--red); font-weight: 600; }

.item-grid { display: grid; gap: 10px; margin-top: 8px; }
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(17, 26, 42, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--sand);
}
.item-row span { font-weight: 600; }
.item-row span small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.item-row input[type="number"] {
  width: 72px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(17, 26, 42, 0.2);
  text-align: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 480px) {
  .game-grid { grid-template-columns: 1fr; }
}

.game-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 2px solid rgba(17, 26, 42, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--sand);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.game-tile input {
  width: 56px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(17, 26, 42, 0.2);
  text-align: center;
  flex-shrink: 0;
}
.game-tile.active {
  border-color: var(--red);
  background: #fdeceb;
}

.game-price-summary {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(63, 195, 79, 0.1);
  color: #1f7a2d;
  font-weight: 700;
  font-size: 14px;
}
.game-price-summary.empty {
  background: transparent;
  color: var(--ink-soft);
  font-weight: 400;
  padding: 0;
}

.address-box {
  margin-top: 24px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.address-box strong { font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; }
.address-box span { color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.address-box a {
  margin-top: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.address-box a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.button:hover { background: var(--red-dark); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.button-ghost:hover { background: var(--ink); color: var(--white); }

.note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.error {
  background: #fdeceb;
  color: var(--red-dark);
  border: 1px solid var(--red);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 16px;
  display: none;
}
.error.visible { display: block; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(63, 195, 79, 0.12);
  color: #1f7a2d;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
