:root {
  --bg: #12080c;
  --ink: #f7f1ea;
  --muted: #d9c7be;
  --gold: #e7c98a;
  --line: rgba(247, 241, 234, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

button { font: inherit; color: inherit; cursor: pointer; }

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 50% at 50% -10%, rgba(120, 32, 58, 0.45), transparent 60%),
    var(--bg);
}

.orb, .grain { display: none; }

.shell {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  height: 100dvh;
  margin: 0 auto;
  padding:
    calc(12px + env(safe-area-inset-top))
    14px
    calc(12px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 10px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.mark i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 201, 138, 0.7);
  font-style: normal;
  font-family: var(--serif);
  letter-spacing: 0;
}

.city-pill {
  color: #2a160c;
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
}

.deck {
  position: relative;
  flex: 1;
  min-height: 0;
}

.card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #241016;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  touch-action: none;
  user-select: none;
}

.card.top { z-index: 2; }

.card.next {
  z-index: 1;
  transform: scale(0.96) translateY(12px);
  filter: brightness(0.72);
  pointer-events: none;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  pointer-events: none;
}

.shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(12, 6, 8, 0.92) 58%);
}

.who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.age,
.where {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.age {
  color: var(--ink);
  background: rgba(12, 6, 8, 0.62);
  border: 1px solid rgba(247, 241, 234, 0.28);
}

.where {
  color: #2a160c;
  background: var(--gold);
}

.where svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.about {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.stamp {
  position: absolute;
  top: 24px;
  padding: 6px 12px;
  border: 3px solid;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0;
  background: rgba(12, 6, 8, 0.25);
}

.stamp.like {
  left: 18px;
  color: #c8f5d0;
  border-color: #c8f5d0;
  transform: rotate(-16deg);
}

.stamp.nope {
  right: 18px;
  color: #ffc1cb;
  border-color: #ffc1cb;
  transform: rotate(16deg);
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding-top: 14px;
}

.actions button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 244, 238, 0.06);
  border: 1px solid var(--line);
}

.actions .no { color: #ffb4c0; }
.actions .yes {
  width: 76px;
  height: 76px;
  color: #2a160c;
  border: 0;
  background: linear-gradient(180deg, #f3d7a4, #e2b56a);
  box-shadow: 0 12px 28px rgba(226, 181, 106, 0.22);
}

.actions button:active { transform: scale(0.96); }

.actions svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.actions .yes svg { fill: currentColor; stroke: none; }

.empty, .loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 12px;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 11vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
  max-width: 28ch;
}

.primary {
  margin-top: 22px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f3d7a4, #e2b56a);
  color: #2a160c;
  font-weight: 700;
  font-size: 16px;
}

.error {
  margin: 10px 0 0;
  color: #ffb4a8;
  font-size: 13px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none !important; }
}
