:root {
  color-scheme: light;
  --pink: #f2a4bf;
  --pink-dark: #e98eae;
  --ink: #171317;
  --muted: #7b7781;
  --surface: #ffffff;
  --soft: #f4f6f9;
  --line: #e8e8ec;
  --blue: #2f9de5;
  --green: #55d899;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--pink);
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.gate-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--soft);
}

.gate-card {
  width: min(100%, 360px);
  padding: 34px 28px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(20, 20, 25, 0.04);
  border-radius: 18px;
  box-shadow: 0 14px 42px rgba(24, 29, 39, 0.08);
}

.gate-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  color: #272a2f;
  background: #f0f1f3;
  border-radius: 50%;
}

.gate-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.gate-card h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  outline: none;
}

.gate-card > p:not(.gate-status) {
  margin: 13px auto 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.turnstile-widget {
  width: 100%;
  min-height: 68px;
  display: grid;
  place-items: center;
}

.gate-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: #9a97a0;
  font-size: 11px;
  line-height: 1.45;
}

.primary-action,
.text-action {
  width: 100%;
  min-height: 48px;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #050505;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.primary-action[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.age-form {
  width: 100%;
}

.age-form .primary-action {
  width: 100%;
}

.text-action {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aaa6af;
  background: transparent;
  text-decoration: none;
}

.primary-action:hover,
.profile-link:hover {
  transform: translateY(-1px);
}

.primary-action:focus-visible,
.text-action:focus-visible,
.profile-link:focus-visible {
  outline: 3px solid rgba(48, 157, 229, 0.4);
  outline-offset: 3px;
}

.profile-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--pink);
}

.profile {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-photo {
  width: 224px;
  height: 224px;
  flex: 0 0 224px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(20, 15, 20, 0.34);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  background: rgba(255, 255, 255, 0.36);
  border: 5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(112, 45, 72, 0.18);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 42%;
}

.name-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.name-row h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 660;
  line-height: 1;
  letter-spacing: -0.035em;
}

.verified-badge {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.badge-shape {
  fill: var(--blue);
}

.badge-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.online {
  margin: 10px 0 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(46, 32, 39, 0.68);
  font-size: 12px;
  font-weight: 600;
}

.online span {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(85, 216, 153, 0.18);
}

.profile-link {
  width: min(100%, 320px);
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  color: #fff;
  font-size: 17px;
  font-weight: 760;
  text-decoration: none;
  background: #030303;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(74, 31, 48, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.profile-link:hover {
  box-shadow: 0 15px 32px rgba(74, 31, 48, 0.28);
}

.profile-link.is-disabled {
  opacity: 0.56;
  pointer-events: none;
}

.noscript {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 10;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px;
  color: #fff;
  font-size: 12px;
  text-align: center;
  background: #171317;
  border-radius: 12px;
}

.status-card {
  width: min(calc(100% - 32px), 430px);
  margin: 12vh auto 0;
  padding: clamp(24px, 5vw, 52px);
  text-align: center;
  background: #fff;
  border: 1px solid #ebe7e9;
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(40, 30, 38, 0.05);
}

.status-card h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 50px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.status-card p {
  margin: 16px 0 25px;
  color: #7c7580;
}

.status-card .primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .gate-screen {
    padding: 18px;
  }

  .gate-card {
    padding: 30px 22px 24px;
  }

  .name-row h1 {
    font-size: 28px;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
