.game {
  width: 100%;
  max-width: 480px;
  padding: 0 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

.hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.25rem;
}
.counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.counter.likes { color: var(--accent); }

.stack-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.stack {
  position: absolute;
  inset: 0;
}

.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform;
}
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.snap-back { transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
.swipe-card.fling { transition: transform 420ms cubic-bezier(.4,.1,.6,1), opacity 320ms ease; }

.swipe-card .img {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-color: #0a0b10;
  position: relative;
}
.swipe-card .img::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(13,14,18,0.95) 5%, rgba(13,14,18,0) 100%);
  pointer-events: none;
}
.swipe-card .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1;
}
.swipe-card .meta h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.swipe-card .meta .sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.swipe-card .meta .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}

/* Decision badge that fades in while dragging */
.swipe-card .badge {
  position: absolute;
  top: 1.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 120ms ease;
  border: 2px solid currentColor;
  background: rgba(13,14,18,0.6);
  pointer-events: none;
  z-index: 2;
}
.swipe-card .badge.like { right: 1rem; color: var(--green); transform: rotate(12deg); }
.swipe-card .badge.pass { left: 1rem; color: var(--red); transform: rotate(-12deg); }

/* Action buttons */
.action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.action {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 0;
}
.action.pass { color: var(--red); }
.action.like { color: var(--green); }
.action.info {
  width: 48px; height: 48px; font-size: 1.1rem;
  color: var(--text-dim);
}
.action:disabled { opacity: 0.35; cursor: not-allowed; }
.action:hover:not(:disabled) { transform: translateY(-1px); }

.hint {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 0;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  padding: 1rem;
  text-align: center;
}

/* Reveal modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(7, 8, 12, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-card h2 { margin: 0 0 0.25rem; }
.reveal-sub { color: var(--text-dim); margin: 0 0 1rem; font-size: 0.9rem; }
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}
.reveal-grid .empty { grid-column: 1 / -1; padding: 1.5rem; text-align: center; color: var(--text-dim); }
.match-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 100ms ease, border-color 120ms ease;
}
.match-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.match-tile .img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #0a0b10;
  position: relative;
}
.match-stage {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(13, 14, 18, 0.82);
  color: var(--accent);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.match-tile .price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-right: 0.25rem;
  font-weight: 600;
}
.match-tile .body { padding: 0.55rem 0.65rem 0.7rem; display: flex; flex-direction: column; gap: 0.2rem; }
.match-tile .title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.match-tile .price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.row { display: flex; gap: 0.5rem; }
.row.buttons { margin-top: 1rem; }
.row.buttons button { flex: 1; }

/* "Live & coming soon near you" carousel */
.nearby-section { margin-top: 1.5rem; }
.nearby-section[hidden] { display: none; }
.nearby-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.nearby-label { color: var(--accent); }
.nearby-carousel {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.nearby-carousel::-webkit-scrollbar { height: 6px; }
.nearby-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.nearby-carousel .empty { padding: 0.75rem 0; color: var(--text-dim); }

.nearby-tile {
  flex: 0 0 190px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 100ms ease, border-color 120ms ease;
}
.nearby-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.nearby-tile .img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #0a0b10;
  position: relative;
}
.nearby-tile .stage-chip {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(13, 14, 18, 0.82);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.nearby-tile .body { padding: 0.55rem 0.65rem 0.7rem; display: flex; flex-direction: column; gap: 0.18rem; }
.nearby-tile .title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nearby-tile .place {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.nearby-tile .price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}
.nearby-tile .price-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-right: 0.2rem;
  font-weight: 600;
}
