@font-face {
  font-family: Inter;
  src: url("./assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --surface: #35162f;
  --surface-soft: #32172d;
  --ink: #fff7f8;
  --muted: #e5bdcb;
  --peach: #ff9eb2;
  --peach-bright: #ffc5d0;
  font-family: Inter, Arial, sans-serif;
  background: #1a0c1b;
  color: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-width: 320px;
  margin: 0;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--peach-bright);
  outline-offset: 4px;
}

.instagram-gate {
  display: none;
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
  background: #1a0c1b;
}

.instagram-gate::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -56px;
  background: url("./assets/instruction.webp") center / cover no-repeat;
  filter: blur(34px) brightness(0.5);
  transform: scale(1.06);
}

.instruction-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: contain;
  box-shadow: 0 0 45px rgb(0 0 0 / 18%);
}

.mode-instagram .instagram-gate {
  display: grid;
}

.mode-instagram .landing {
  display: none;
}

.landing {
  display: grid;
  position: relative;
  isolation: isolate;
  height: 100svh;
  place-items: center;
  padding: clamp(8px, 2svh, 18px) 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -12%, #923254 0%, #572044 40%, #1a0c1b 90%);
}

.profile-card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: min(calc(100% - 28px), 500px);
  height: 100%;
  max-height: 900px;
  overflow: hidden;
  border: 1px solid rgb(255 164 190 / 34%);
  border-radius: 26px;
  background: linear-gradient(158deg, #642346 0%, #37172f 37%, #2b132a 100%);
  box-shadow: 0 24px 70px rgb(16 2 17 / 48%);
  animation: reveal 550ms ease-out both;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  padding: clamp(10px, 2.4svh, 24px) 16px 0;
  text-align: center;
}

.avatar-photo {
  display: block;
  width: clamp(92px, min(38vw, 18svh), 150px);
  height: clamp(92px, min(38vw, 18svh), 150px);
  border: 4px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
  box-shadow: 0 8px 26px rgb(0 0 0 / 26%);
}

.feature-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  margin-top: clamp(6px, 1.7svh, 14px);
  text-align: center;
}

.profile-identity h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 clamp(4px, 0.8svh, 7px);
  font-size: clamp(27px, 8.3vw, 38px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-shadow: none;
}

.verified-mark {
  width: 24px;
  height: 24px;
  flex: none;
  transform: translateY(1px);
}

.profile-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.25;
  text-shadow: none;
}

.meta-divider {
  color: var(--muted);
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2acb65;
  box-shadow: 0 0 0 2px rgb(42 203 101 / 15%);
}

.handle {
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 180ms ease;
}

.handle:hover,
.handle:focus-visible {
  text-decoration-color: currentColor;
}

.profile-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(8px, 2svh, 20px) 16px clamp(8px, 1.6svh, 18px);
}

.instagram-link {
  display: grid;
  width: clamp(38px, 5.5svh, 46px);
  height: clamp(38px, 5.5svh, 46px);
  place-items: center;
  margin: clamp(8px, 2svh, 18px) auto 0;
  border-radius: 50%;
  background: var(--peach);
  color: #381326;
  box-shadow: 0 6px 22px rgb(255 126 159 / 25%);
  transition: transform 180ms ease, background-color 180ms ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  background: var(--peach-bright);
}

.instagram-link svg {
  width: 23px;
  height: 23px;
}

.feature-card {
  display: block;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: #49283b;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / 35%);
  transition: transform 500ms ease, box-shadow 400ms ease;
}

.feature-card img {
  object-position: center 55%;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px -8px rgb(0 0 0 / 45%);
    animation: feature-pulse 2200ms ease-in-out 500ms infinite;
  }
}

@keyframes feature-pulse {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.015;
  }
}

.feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 8 7 / 8%), transparent 65%, rgb(17 11 9 / 38%));
}

.feature-label {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgb(0 0 0 / 90%);
}

.feature-status {
  position: absolute;
  top: 15px;
  right: 15px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgb(46 14 37 / 78%);
  color: #fffaf6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.feature-status[hidden] {
  display: none;
}

.feature-card:disabled {
  cursor: default;
}

.age-dialog {
  width: min(calc(100% - 36px), 380px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 24px;
  padding: 0;
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: 0 26px 70px rgb(0 0 0 / 48%);
}

.age-dialog::backdrop {
  background: rgb(14 11 10 / 72%);
  backdrop-filter: blur(8px);
}

.age-dialog-content {
  display: grid;
  justify-items: center;
  padding: 33px 27px 26px;
  text-align: center;
}

.age-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgb(243 173 136 / 48%);
  border-radius: 50%;
  background: rgb(243 173 136 / 10%);
  color: var(--peach-bright);
  font-size: 20px;
  font-weight: 750;
}

.age-dialog h2 {
  margin: 20px 0 10px;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.age-dialog p {
  max-width: 270px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.confirm-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 49px;
  border-radius: 12px;
  background: var(--peach);
  color: #24201e;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.confirm-link:hover {
  background: var(--peach-bright);
}

.confirm-link span {
  font-size: 21px;
  font-weight: 400;
}

.cancel-button {
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.cancel-button:hover {
  color: var(--ink);
}

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

@media (max-width: 420px) {
  .profile-card {
    width: calc(100% - 22px);
    border-radius: 23px;
  }

  .profile-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .feature-card {
    border-radius: 15px;
  }

  .feature-card img {
    object-position: center 45%;
  }
}

@media (max-height: 650px) {
  .profile-hero {
    padding-top: 8px;
  }

  .avatar-photo {
    width: min(16svh, 100px);
    height: min(16svh, 100px);
  }

  .profile-identity {
    margin-top: 6px;
  }

  .profile-identity h1 {
    margin-bottom: 3px;
    font-size: 26px;
  }

  .profile-meta {
    font-size: 12px;
  }

  .instagram-link {
    width: 38px;
    height: 38px;
    margin-top: 8px;
  }

  .profile-content {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .feature-card img {
    object-position: center 58%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .feature-card:hover {
    transform: none;
    animation: none;
  }
}
