:root {
  --bg-0: #081018;
  --bg-1: #13283d;
  --panel: rgba(14, 25, 38, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ecf2fa;
  --muted: #9fb4c8;
  --accent: #56c6ff;
  --accent-2: #ff8c62;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0, #1a3f62 0%, var(--bg-1) 40%, var(--bg-0) 100%);
}

.bg-glow {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
}

.bg-glow-1 {
  background: #339dff;
  top: -10rem;
  right: -8rem;
}

.bg-glow-2 {
  background: #ff8f5d;
  left: -8rem;
  bottom: -10rem;
}

.app {
  width: min(1160px, 95vw);
  margin: 1.5rem auto 2rem;
}

.hero {
  margin-bottom: 0.9rem;
}

.kicker {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: 1.8rem;
}

.phone-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 340px));
  gap: 1rem;
  justify-content: center;
}

.phone-screen {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.avatar-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50% 50% 45% 45%;
  background: #ca9e7c;
  position: relative;
  transition: all 200ms ease;
}

.hair {
  position: absolute;
  left: 10px;
  top: -8px;
  width: 120px;
  height: 45px;
  border-radius: 40px 40px 20px 20px;
  background: #3b2d26;
}

.eyes {
  position: absolute;
  width: 68px;
  height: 7px;
  border-radius: 10px;
  background: #2a2a2a;
  left: 36px;
  top: 58px;
}

.jaw {
  position: absolute;
  width: 80px;
  height: 36px;
  border: 3px solid rgba(34, 24, 18, 0.5);
  border-top: 0;
  border-radius: 0 0 35px 35px;
  left: 30px;
  bottom: 18px;
  transition: all 200ms ease;
}

.bars {
  display: grid;
  gap: 0.5rem;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.numbers > div,
.social-grid article,
.match-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
}

.label {
  color: var(--muted);
  font-size: 0.8rem;
}

.rank {
  margin: 0;
  color: var(--muted);
}

.match-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(170deg, rgba(86, 198, 255, 0.18), rgba(255, 140, 98, 0.16));
}

.match-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.match-bio {
  margin: 0.3rem 0 0;
  color: #d4e2ef;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.big {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

button {
  border: 1px solid transparent;
  color: var(--text);
  font: inherit;
  border-radius: 11px;
  cursor: pointer;
}

.action {
  text-align: left;
  padding: 0.7rem;
  background: linear-gradient(160deg, #17304a, #0f2234);
  border-color: var(--line);
}

.swipe,
.next-day {
  padding: 0.7rem;
}

.swipe {
  background: linear-gradient(90deg, #ff9d57, #ff7a66);
}

.next-day {
  margin-top: auto;
  background: linear-gradient(90deg, #2f8eff, #37b4ff);
}

.log {
  margin: 0;
  padding-left: 1rem;
  max-height: 170px;
  overflow: auto;
}

.log li {
  margin-bottom: 0.45rem;
  color: #ccdaea;
}

@media (max-width: 1040px) {
  .phone-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
  }

  .phone-screen {
    min-width: min(92vw, 340px);
    scroll-snap-align: center;
  }
}
