@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #475569;
  --line: #e7dfd3;
  --primary: #1e293b;
  --primary-soft: #f1f5f9;
  --accent: #3b82f6;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --amber-border: #fcd34d;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
}

.hidden {
  display: none !important;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

.tag-anon {
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 10px 28px -12px rgba(30, 41, 59, 0.12);
}

@media (min-width: 640px) {
  .card {
    padding: 32px;
  }
}

.hero-card {
  margin-bottom: 20px;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pill-info {
  background: var(--amber-soft);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.progress-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #f3ede3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #334155, #6366f1, #f59e0b);
  transition: width 0.25s ease;
}

.hero-title {
  margin: 0;
  font-size: clamp(24px, 4.5vw, 36px);
  line-height: 1.12;
  color: var(--ink);
}

.hero-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.step-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.step-title {
  margin: 0;
  font-size: clamp(20px, 3.5vw, 26px);
  color: var(--ink);
}

.btn-back {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
}

.btn-back:hover {
  border-color: var(--ink);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .options-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .options-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  width: 100%;
}

.choice-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: #ffffff;
}

.choice-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-title {
  display: block;
  font-family: "Fredoka", ui-rounded, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.choice-sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.swipe-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.swipe-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.swipe-pill-neutral,
.swipe-pill-left,
.swipe-pill-right {
  background: var(--primary);
}

.duel-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  touch-action: pan-y;
  user-select: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

@media (min-width: 640px) {
  .duel-stage {
    gap: 22px;
  }
}

.duel-card {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

@media (min-width: 640px) {
  .duel-card {
    padding: 18px;
  }
}

.duel-card-left:hover,
.duel-card-right:hover {
  border-color: var(--ink);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(30, 41, 59, 0.18);
}

.duel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.badge-side {
  background: var(--primary-soft);
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9px;
  white-space: nowrap;
}

.price-showcase {
  margin-top: 10px;
  background: var(--amber-soft);
  border: 1.5px solid var(--amber-border);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.price-label {
  font-size: 10px;
  font-weight: 800;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.price-approx {
  font-family: "Fredoka", ui-rounded, sans-serif;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .price-label {
    font-size: 11px;
  }
  .price-approx {
    font-size: 28px;
  }
}

.photo-box {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.duel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.cat-left,
.cat-right {
  color: var(--muted);
}

.duel-age {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  display: none;
}

@media (min-width: 640px) {
  .duel-age {
    display: inline;
  }
}

.duel-name {
  margin: 0;
  font-family: "Fredoka", ui-rounded, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

@media (min-width: 640px) {
  .duel-name {
    font-size: 17px;
  }
}

.duel-cta {
  margin-top: 10px;
}

.btn-pick {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 10px;
  border-radius: 14px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.duel-card:hover .btn-pick {
  background: #0f172a;
}

.duel-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.btn-skip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.done-banner {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #ffffff;
  border-radius: 26px;
  padding: 28px;
  margin-bottom: 18px;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 14px;
}

.btn-restart {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 14px;
  cursor: pointer;
}

.note-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .note-row {
    display: flex;
    gap: 10px;
  }
}

.note-input {
  flex: 1;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
}

.btn-submit {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .btn-submit {
    margin-top: 0;
  }
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .winners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.winner-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.loading-box {
  text-align: center;
  padding: 48px 16px;
  font-weight: 700;
  color: var(--muted);
}

.site-foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 16px 16px 32px;
}
