* {
      box-sizing: border-box;
    }

    :root {
      --text: #fff7f7;
      --muted: #e7c9ce;
      --card: rgba(255,255,255,0.12);
      --card-hover: rgba(255,255,255,0.18);
      --border: rgba(255,255,255,0.16);
    }

    html, body {
      margin: 0;
      min-height: 100%;
      color: var(--text);
      font-family: Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at 18% 18%, rgba(180, 20, 50, 0.28), transparent 18rem),
        radial-gradient(circle at 82% 16%, rgba(115, 16, 34, 0.22), transparent 20rem),
        radial-gradient(circle at 50% 82%, rgba(90, 8, 24, 0.30), transparent 24rem),
        linear-gradient(160deg, #080506 0%, #12080b 22%, #1b0b10 45%, #2a0c14 68%, #12070a 100%);
      background-attachment: fixed;
    }

    body {
      display: flex;
      justify-content: center;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .page {
      width: 100%;
      max-width: 430px;
      min-height: 100vh;
      margin: 0 auto;
      padding: clamp(18px, 5vw, 34px) clamp(14px, 4.5vw, 20px) 22px;
      display: flex;
      flex-direction: column;
    }

    .hero {
      text-align: center;
      padding-top: 8px;
    }

    .profile-photo {
      display: block;
      width: clamp(154px, 48vw, 210px);
      height: clamp(154px, 48vw, 210px);
      margin: 0 auto clamp(18px, 5vw, 24px);
      padding: clamp(4px, 1.4vw, 6px);
      text-decoration: none;
      border-radius: 50%;
      overflow: hidden;
      background: linear-gradient(135deg, #ffd2e1 0%, #ff7a9b 28%, #c22d57 60%, #7a1639 100%);
      box-shadow: 0 20px 46px rgba(0,0,0,0.40);
    }

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

    h1 {
      margin: 0;
      font-size: clamp(30px, 8vw, 38px);
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: -0.04em;
      text-shadow: 0 4px 16px rgba(0,0,0,0.28);
    }

    .tagline {
      margin: 10px 0 clamp(18px, 5vw, 24px);
      font-size: clamp(15px, 4.2vw, 17px);
      line-height: 1.35;
      color: var(--muted);
    }

    .image-button {
      position: relative;
      display: block;
      width: 100%;
      padding: 3px;
      border-radius: clamp(18px, 5vw, 24px);
      overflow: hidden;
      background: linear-gradient(135deg,
        rgba(255, 214, 227, 0.96) 0%,
        rgba(255, 110, 148, 0.96) 28%,
        rgba(194, 45, 87, 0.96) 58%,
        rgba(122, 22, 57, 0.96) 100%);
      box-shadow: 0 12px 30px rgba(0,0,0,.26);
      transition: transform .15s ease, opacity .15s ease;
    }

    .image-button:hover {
      transform: translateY(-2px);
      opacity: .94;
    }

    .image-button img {
      width: 100%;
      display: block;
      height: auto;
      aspect-ratio: 900 / 1613;
      border-radius: clamp(15px, 4vw, 20px);
    }

    .of-badge {
      position: absolute;
      top: clamp(10px, 4vw, 16px);
      right: clamp(10px, 4vw, 16px);
      z-index: 2;
      width: clamp(42px, 11vw, 54px);
      height: clamp(42px, 11vw, 54px);
      display: grid;
      place-items: center;
      padding: 2px;
      border-radius: 999px;
      background: linear-gradient(135deg,
        rgba(255, 228, 236, 0.98) 0%,
        rgba(255, 126, 164, 0.98) 42%,
        rgba(122, 22, 57, 0.98) 100%);
      box-shadow:
        0 10px 22px rgba(0,0,0,0.22),
        0 0 0 1px rgba(255,255,255,0.18);
      overflow: hidden;
    }

    .of-badge::before {
      content: "";
      position: absolute;
      inset: 2px;
      border-radius: 999px;
      background: rgba(255,255,255,0.98);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
    }

    .of-badge img {
      position: relative;
      z-index: 1;
      width: 74%;
      height: 74%;
      display: block;
      object-fit: contain;
      border-radius: 0;
      background: transparent;
      padding: 0;
      box-shadow: none;
    }

    .image-button-label {
      position: absolute;
      left: clamp(10px, 4vw, 18px);
      bottom: clamp(10px, 4vw, 18px);
      max-width: calc(100% - 28px);
      padding: 2px;
      border-radius: clamp(14px, 4vw, 18px);
      background: linear-gradient(135deg,
        rgba(255, 214, 227, 0.98) 0%,
        rgba(255, 110, 148, 0.98) 30%,
        rgba(194, 45, 87, 0.98) 62%,
        rgba(122, 22, 57, 0.98) 100%);
      background-size: 220% 220%;
      animation: borderFlow 6s ease-in-out infinite;
      box-shadow: 0 8px 20px rgba(0,0,0,.24);
      display: inline-block;
    }

    .image-button-label-inner {
      max-width: 100%;
      padding: clamp(9px, 3vw, 12px) clamp(12px, 4vw, 16px);
      border-radius: calc(clamp(14px, 4vw, 18px) - 2px);
      background: rgba(0,0,0,0.42);
      border: 1px solid rgba(255,255,255,0.14);
      backdrop-filter: blur(10px);
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }

    .image-button-label-main {
      font-size: clamp(15px, 5vw, 20px);
      font-weight: 800;
      line-height: 1.05;
      white-space: nowrap;
    }

    .image-button-label-sub {
      font-size: clamp(10px, 3.2vw, 12px);
      font-weight: 700;
      line-height: 1;
      color: rgba(255,255,255,0.86);
    }

    .preview-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(7px, 2.5vw, 10px);
      margin: clamp(14px, 4vw, 18px) 0;
    }

    .preview-card {
      aspect-ratio: 1 / 1.2;
      border-radius: clamp(12px, 4vw, 18px);
      overflow: hidden;
      background: rgba(255,255,255,0.08);
      border: 1px solid var(--border);
      box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    }

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

    .social-grid {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: clamp(9px, 3vw, 12px);
      margin-top: clamp(12px, 4vw, 14px);
    }

    .social {
      width: clamp(44px, 12vw, 50px);
      height: clamp(44px, 12vw, 50px);
      border-radius: 999px;
      background: var(--card);
      border: 1px solid var(--border);
      display: grid;
      place-items: center;
      transition: transform .15s ease, background .15s ease;
      backdrop-filter: blur(8px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    }

    .social:hover {
      transform: translateY(-2px);
      background: var(--card-hover);
    }

    .social svg {
      width: clamp(20px, 5.8vw, 23px);
      height: clamp(20px, 5.8vw, 23px);
      display: block;
      fill: #fff6f7;
    }

    .social.snapchat svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: #fff6f7;
      stroke-width: 2.1;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    footer {
      margin-top: auto;
      padding-top: 32px;
      text-align: center;
      color: rgba(255, 234, 238, 0.68);
      font-size: 13px;
    }
    @keyframes borderFlow {
      0% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0% 50%;
      }
    }

    .browser-warning {
      position: fixed;
      top: 12px;
      left: 12px;
      right: 12px;
      z-index: 9999;
      max-width: 430px;
      margin: 0 auto;
      padding: 12px 14px;
      border-radius: 18px;
      background: rgba(12, 5, 8, 0.92);
      border: 1px solid rgba(255,255,255,0.18);
      box-shadow: 0 12px 28px rgba(0,0,0,0.34);
      backdrop-filter: blur(12px);
      color: #fff;
      display: none;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      line-height: 1.35;
      text-align: left;
    }

    .browser-warning strong {
      display: block;
      font-size: 14px;
      margin-bottom: 2px;
    }

    .browser-warning-text {
      flex: 1;
    }

    .browser-warning-copy,
    .browser-warning-close {
      border: 0;
      cursor: pointer;
      border-radius: 999px;
      font: inherit;
      font-weight: 800;
    }

    .browser-warning-copy {
      padding: 8px 10px;
      background: #fff;
      color: #12070a;
      white-space: nowrap;
    }

    .browser-warning-close {
      width: 30px;
      height: 30px;
      background: rgba(255,255,255,0.12);
      color: #fff;
      flex: 0 0 auto;
    }

    body.in-app-browser .browser-warning {
      display: flex;
    }

    body.in-app-browser .page {
      padding-top: 92px;
    }

    @media (max-width: 360px) {
      .browser-warning {
        font-size: 12px;
      }

      .browser-warning-copy {
        padding: 7px 9px;
      }
    }

    @media (max-width: 340px) {
      .page {
        padding-left: 12px;
        padding-right: 12px;
      }

      .profile-photo {
        width: 146px;
        height: 146px;
      }

      .image-button-label-main {
        white-space: normal;
      }

      .preview-row {
        gap: 6px;
      }
    }

    @media (min-width: 700px) {
      body {
        align-items: flex-start;
      }

      .page {
        max-width: 480px;
      }

      .hero {
        padding-top: 18px;
      }
    }

    @media (min-width: 1024px) {
      .page {
        max-width: 500px;
      }
    }


@media (prefers-reduced-motion: reduce) {
  .image-button-label {
    animation: none;
  }

  .image-button,
  .preview-card,
  .social,
  .profile-photo {
    transition: none;
  }
}


/* OF logo alignment fix */
.of-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.of-badge img {
  position: relative !important;
  z-index: 1 !important;
  width: 72% !important;
  height: 72% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: translateX(-1px);
}
