:root {
  --accent: #ff2f8f;
  --button-color: #ff2f8f;
  --button-text: #ffffff;
  --text: #111111;
  --muted: #6f6f78;
  --page-bg: #fafafa;
  --content-width: 343px;
  --top-band-height: 160px;
  --avatar-size: 200px;
  --avatar-margin-top: -100px;
  --avatar-border-width: 6px;
  --avatar-object-position: center 22%;
  --avatar-scale: 1.5;
  --avatar-translate-x: 8%;
  --avatar-translate-y: 0%;
  --button-font-size: 18px;
  --button-border-color: #20252b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
}

body:not(.is-ready) .page-shell {
  visibility: hidden;
}

body.has-warning-modal {
  overflow: hidden;
}

.seo-snapshot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  min-height: 100vh;
  background: var(--page-bg);
}

.profile-card {
  min-height: 100vh;
  width: 100%;
  background: var(--page-bg);
  overflow: hidden;
}

.top-band {
  height: var(--top-band-height);
  background: var(--accent);
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
  text-align: center;
}

.avatar-frame {
  width: var(--avatar-size);
  height: var(--avatar-size);
  margin-top: var(--avatar-margin-top);
  border: var(--avatar-border-width) solid #ffffff;
  border-radius: 50%;
  background: #f6f6f7;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.16);
  overflow: hidden;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--avatar-object-position);
  transform: translate(var(--avatar-translate-x), var(--avatar-translate-y)) scale(var(--avatar-scale));
  transform-origin: var(--avatar-object-position);
}

.profile-name {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 7px;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.verified-badge {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--button-color);
  color: #ffffff;
}

.verified-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.button-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.main-button {
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: 999px;
  background: var(--button-color);
  color: var(--button-text);
  font-size: var(--button-font-size);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  -webkit-touch-callout: default;
  user-select: none;
}

body.is-landing-stage .main-button {
  border-radius: 16px;
}

body.is-content-stage .main-button {
  border-radius: 999px;
  border: 1px solid var(--button-border-color);
}

.main-button.has-icon {
  justify-content: flex-start;
  padding-left: 32px;
  padding-right: 32px;
}

.button-icon {
  width: var(--button-icon-size, 54px);
  height: var(--button-icon-size, 54px);
  flex: 0 0 auto;
  object-fit: contain;
}

.button-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.main-button.is-pressed {
  transform: translateY(1px) scale(0.992);
}

.main-button:focus {
  outline: none;
}

.main-button:focus-visible {
  outline: 3px solid rgb(17 17 17 / 0.18);
  outline-offset: 4px;
}

.hold-hint {
  display: none;
  margin: 18px 0 0;
  color: var(--button-color);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

body.is-landing-stage .hold-hint {
  display: block;
}

[hidden] {
  display: none !important;
}

.tap-message {
  min-height: 42px;
  margin: 16px 0 0;
  color: #3f3f46;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.tap-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.warning-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #ffffff;
}

.warning-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(80 80 80 / 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.warning-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 320px);
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0;
  text-align: center;
}

.warning-close {
  position: fixed;
  top: calc(26px + env(safe-area-inset-top));
  right: 28px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.78);
  font: inherit;
  font-size: 46px;
  line-height: 1;
}

.warning-icon {
  width: 48px;
  height: 48px;
  color: rgb(255 255 255 / 0.92);
}

.warning-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.warning-dialog h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.333;
  font-weight: 700;
  letter-spacing: 0;
}

.warning-dialog p {
  max-width: 260px;
  margin: 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 16px;
  line-height: 1.375;
  font-weight: 400;
}

.warning-continue {
  display: flex;
  min-width: 173px;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 48px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
