*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #08080a;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button {
  font-family: inherit;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(430px, 100%);
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #08080a;
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(12px + env(safe-area-inset-top)) 10px 10px;
  overflow-x: auto;
}

.nav-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #8e8e93;
  white-space: nowrap;
}

.nav-tab.is-on {
  color: #ffffff;
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.screen {
  display: none;
  height: 100%;
}

.screen.is-on {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-card {
  position: relative;
  width: 92vw;
  max-width: 396px;
  height: 70vh;
  margin-top: 6px;
  border-radius: 24px;
  overflow: hidden;
  background: #111114;
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111114;
}

.profile-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.profile-caption {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.swipe-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.swipe-btn:active {
  transform: scale(0.92);
}

.swipe-btn.pass {
  color: #8e8e93;
}

.swipe-btn.like {
  color: #ff9500;
  border-color: rgba(255, 149, 0, 0.45);
}
