:root {
  color-scheme: dark;
  --ink: #f7f1e3;
  --muted: #b8c0d4;
  --night: #070914;
  --panel: rgba(20, 24, 43, 0.82);
  --panel-strong: #15182e;
  --gold: #f5d36a;
  --coral: #ff8b7b;
  --aqua: #7cc7ff;
  --green: #8de0b1;
  --line: rgba(255, 255, 255, 0.14);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-family: var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  display: block;
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 199, 255, 0.26), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(245, 211, 106, 0.16), transparent 26%),
    linear-gradient(140deg, #070914 0%, #14162c 45%, #10131d 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  max-width: 100dvw;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior-x: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--night);
  background-size: 36px 36px;
  border-inline: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.sky-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.85;
}

.sky-layer span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    42px 18px 0 rgba(255, 255, 255, 0.55),
    118px 72px 0 rgba(124, 199, 255, 0.7),
    220px 44px 0 rgba(245, 211, 106, 0.65),
    310px 120px 0 rgba(255, 255, 255, 0.45),
    370px 30px 0 rgba(255, 139, 123, 0.55);
  animation: driftStars 11s linear infinite;
}

.sky-layer span:nth-child(1) { left: 8%; top: 9%; animation-duration: 13s; }
.sky-layer span:nth-child(2) { left: 58%; top: 18%; animation-duration: 17s; animation-delay: -4s; }
.sky-layer span:nth-child(3) { left: 22%; top: 64%; animation-duration: 19s; animation-delay: -8s; }
.sky-layer span:nth-child(4) { left: 78%; top: 74%; animation-duration: 15s; animation-delay: -2s; }

.screen {
  position: relative;
  z-index: 1;
  padding: 18px 18px 118px;
}

.app-header,
.section-header,
.metric-grid,
.chart-summary,
.person-chip,
.compat-controls,
.chat-form {
  display: flex;
  align-items: center;
}

.app-header {
  justify-content: space-between;
  gap: 16px;
}

.section-header {
  display: grid;
  gap: 4px;
  align-items: start;
  margin-bottom: 18px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 10px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  max-width: 300px;
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-display);
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.icon-button,
.pill-button,
.period-tab,
.birth-form button,
.compat-controls button,
.prompt-chips button,
.chat-form button,
.nav-item {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
}

.cosmic-orbit {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 26px auto 18px;
  border: 1px solid rgba(245, 211, 106, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 2px) 4px 12px / 38px 38px,
    radial-gradient(circle, rgba(124, 199, 255, 0.9) 1px, transparent 2px) 22px 6px / 46px 46px;
  animation: breathe 6s ease-in-out infinite, slowSpin 28s linear infinite;
}

.cosmic-orbit::before,
.cosmic-orbit::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.cosmic-orbit::after {
  inset: 62px;
}

.sun-core {
  position: absolute;
  inset: 75px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff8d7, var(--gold) 48%, var(--coral));
  box-shadow: 0 0 46px rgba(245, 211, 106, 0.52);
  animation: sunPulse 4.8s ease-in-out infinite;
}

.planet {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 22px currentColor;
}

.p1 { top: 20px; left: 102px; color: var(--aqua); animation: planetBob 3.2s ease-in-out infinite; }
.p2 { right: 33px; top: 118px; color: var(--coral); background: var(--coral); animation: planetBob 3.8s ease-in-out infinite -1s; }
.p3 { bottom: 34px; left: 53px; color: var(--green); background: var(--green); animation: planetBob 4.4s ease-in-out infinite -1.7s; }
.p4 { left: 27px; top: 70px; color: var(--gold); background: var(--gold); animation: planetBob 3.6s ease-in-out infinite -0.4s; }

.sign-card,
.reading-panel,
.compat-card,
.report-card,
.chat-window,
.onboarding-card,
.profile-preview,
.submission-screen .check-list {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  border-radius: 8px;
}

.onboarding-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.onboarding-hero p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.onboarding-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.onboarding-card button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: #160c0c;
  font-weight: 720;
}

.profile-preview {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 13px 14px;
}

.profile-preview span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-preview strong {
  font-size: 17px;
}

.cosmic-dashboard,
.transit-list,
.match-notes {
  display: grid;
  gap: 10px;
}

.cosmic-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 14px;
}

.cosmic-dashboard article,
.transit-list article,
.match-notes article,
.chart-insight-card,
.memory-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #15182e;
}

.cosmic-dashboard article {
  min-height: 78px;
  padding: 10px;
  animation: cardSettle 420ms ease both;
}

.cosmic-dashboard article:nth-child(2) {
  animation-delay: 90ms;
}

.cosmic-dashboard article:nth-child(3) {
  animation-delay: 180ms;
  grid-column: 1 / -1;
  min-height: auto;
}

.cosmic-dashboard span,
.transit-list span,
.match-notes span,
.memory-card span {
  display: block;
  color: #c9d3e9;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cosmic-dashboard strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 660;
  line-height: 1.15;
}

.sign-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.sign-card h2 {
  font-size: 16px;
  font-weight: 700;
}

.pill-button,
.birth-form button,
.compat-controls button,
.chat-form button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: #160c0c;
  font-weight: 700;
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.period-tab {
  min-height: 40px;
  border-radius: 999px;
  color: var(--muted);
}

.period-tab.active {
  color: #101323;
  background: var(--aqua);
  font-weight: 700;
}

.reading-panel,
.report-card {
  padding: 18px;
}

.reading-panel {
  position: relative;
  overflow: hidden;
}

.reading-panel::before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 199, 255, 0.24), transparent 68%);
  animation: floatGlow 7s ease-in-out infinite;
}

.panel-refresh {
  animation: panelRefresh 420ms ease both;
}

.reading-panel p:not(.panel-kicker),
.report-card p,
.message {
  color: var(--muted);
  line-height: 1.55;
}

.metric-grid,
.chart-summary {
  justify-content: space-between;
  gap: 10px;
}

.chart-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.metric-grid {
  margin-top: 18px;
}

.metric-grid div,
.chart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-grid div {
  position: relative;
  overflow: hidden;
}

.metric-grid div::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--gold), var(--coral));
  transform-origin: left;
  animation: fillLine 1s ease both;
}

.metric-grid span,
.chart-summary span,
.house-list span,
.person-chip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid strong,
.chart-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 19px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.chart-summary strong {
  max-width: 70%;
  font-size: 18px;
  text-align: right;
}

.birth-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 24, 43, 0.82);
  backdrop-filter: blur(16px);
}

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

.action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(245, 211, 106, 0.22);
  border-radius: 8px;
  background: rgba(245, 211, 106, 0.08);
}

.action-strip span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.action-strip button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(245, 211, 106, 0.36);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(245, 211, 106, 0.16);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.transit-list {
  margin-top: 12px;
}

.transit-list article {
  padding: 12px;
  animation: riseIn 480ms ease both;
}

.transit-list article:nth-child(2) { animation-delay: 80ms; }
.transit-list article:nth-child(3) { animation-delay: 160ms; }

.transit-list strong,
.match-notes strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 680;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 16px;
  min-width: 0;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

select {
  -webkit-appearance: none;
  appearance: none;
}

.location-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.location-field small {
  color: rgba(184, 192, 212, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.location-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
  overflow: visible;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.location-suggestions::-webkit-scrollbar,
.prompt-chips::-webkit-scrollbar {
  display: none;
}

.location-suggestions[hidden] {
  display: none;
}

.location-suggestions button {
  min-height: 34px;
  border: 1px solid rgba(124, 199, 255, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(124, 199, 255, 0.12);
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-layout {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.wheel-card {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(124, 199, 255, 0.14), transparent 48%),
    rgba(20, 24, 43, 0.72);
}

.wheel-card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.wheel-card-header span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
}

.wheel-card-header strong {
  font-size: 12px;
  font-weight: 650;
}

.zodiac-wheel {
  width: min(68vw, 216px);
  max-width: 100%;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.45));
}

.zodiac-wheel line,
.zodiac-wheel circle,
.zodiac-wheel text {
  transform-origin: center;
}

.chart-pulse {
  animation: chartPulse 700ms ease both;
}

.chart-insight-card {
  margin-top: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(124, 199, 255, 0.12), rgba(245, 211, 106, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.chart-insight-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.house-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.house-list article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.house-list strong {
  display: inline-block;
  margin: 0 0 0 6px;
}

.compat-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 14px;
}

.compat-pair-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.compat-card .score-ring {
  justify-self: center;
}

.person-chip {
  width: 100%;
  min-width: 0;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.person-chip div {
  min-width: 0;
}

.person-chip strong,
.person-chip small {
  overflow-wrap: anywhere;
}

.person-chip > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #111421;
  background: var(--gold);
  font-weight: 760;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #111421 56%, transparent 58%),
    conic-gradient(var(--green) 0 var(--score, 88%), rgba(255, 255, 255, 0.14) var(--score, 88%) 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 780;
  transition: background 500ms ease, transform 260ms ease;
}

.score-pop {
  animation: scorePop 520ms ease both;
}

.compat-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
  min-width: 0;
}

.compat-controls button {
  width: 100%;
}

.compat-controls label {
  flex: 1;
}

.report-bars {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.report-card h3 {
  font-size: 19px;
}

.report-card p {
  font-size: 15px;
  line-height: 1.48;
}

.report-bars span {
  position: relative;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 680;
}

.report-bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: linear-gradient(90deg, rgba(124, 199, 255, 0.4), rgba(141, 224, 177, 0.45));
  z-index: -1;
  animation: barGrow 720ms ease both;
}

.match-notes {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.match-notes article {
  min-height: auto;
  padding: 12px;
}

.match-notes strong {
  line-height: 1.3;
}

.chat-window {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  overflow: visible;
  padding: 14px;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  animation: messageIn 240ms ease both;
}

.message.user {
  justify-self: end;
  color: #101323;
  background: var(--gold);
}

.message.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 74px;
}

.message.typing i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  animation: typingDot 900ms ease-in-out infinite;
}

.message.typing i:nth-child(2) { animation-delay: 120ms; }
.message.typing i:nth-child(3) { animation-delay: 240ms; }

.follow-up-row {
  display: grid;
  gap: 8px;
}

.follow-up-row button {
  min-height: 36px;
  border: 1px solid rgba(124, 199, 255, 0.26);
  border-radius: 999px;
  background: rgba(124, 199, 255, 0.1);
  color: var(--ink);
  font-size: 13px;
}

.memory-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(124, 199, 255, 0.1), rgba(245, 211, 106, 0.06)),
    #15182e;
}

.memory-card div {
  display: grid;
  gap: 3px;
}

.memory-card strong,
.memory-card p {
  min-width: 0;
}

.memory-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.2;
}

.memory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.prompt-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  margin: 14px 0;
  padding-bottom: 2px;
}

.prompt-chips button {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: normal;
}

.prompt-chips button:first-child {
  grid-column: 1 / -1;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
  min-width: 0;
}

.chat-form input {
  min-width: 0;
}

.chat-form button {
  min-width: 0;
  padding: 0 12px;
}

.check-list {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 24, 43, 0.82);
}

.saved-list span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.saved-list strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.saved-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list input {
  width: 18px;
  min-height: 18px;
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7, 9, 20, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.28);
}

.nav-item {
  min-height: 42px;
  border-radius: 999px;
  color: var(--muted);
}

.nav-item.active {
  color: #101323;
  background: var(--ink);
  font-weight: 720;
}

@keyframes breathe {
  50% {
    transform: scale(1.025);
    box-shadow: 0 0 70px rgba(124, 199, 255, 0.16);
  }
}

@keyframes slowSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes sunPulse {
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 64px rgba(245, 211, 106, 0.74);
  }
}

@keyframes planetBob {
  50% {
    transform: translateY(-7px) scale(1.16);
  }
}

@keyframes driftStars {
  to {
    transform: translate3d(18px, -42px, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardSettle {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes panelRefresh {
  from {
    opacity: 0.78;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fillLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes floatGlow {
  50% {
    transform: translate(-24px, 18px);
  }
}

@keyframes chartPulse {
  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 30px 54px rgba(124, 199, 255, 0.28));
  }
}

@keyframes scorePop {
  50% {
    transform: scale(1.08);
  }
}

@keyframes barGrow {
  from {
    width: 0;
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes typingDot {
  50% {
    transform: translateY(-5px);
    opacity: 0.5;
  }
}

@media (min-width: 760px) {
  body {
    padding: 28px;
  }

  .phone-shell {
    min-height: 100dvh;
    border-radius: 32px;
    overflow-y: visible;
  }

  .bottom-nav {
    bottom: 28px;
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 370px) {
  .compat-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .person-chip {
    width: 100%;
  }

  .match-notes {
    grid-template-columns: 1fr;
  }

  .action-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
