:root {
  --bg: #0b0810;
  --bg2: #150f1e;
  --line: #2a1f3a;
  --fg: #ece7f4;
  --muted: #9a8fb0;
  --accent: #7d3cff;
  --accent2: #c0173f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% 0%, #1c1129 0%, var(--bg) 60%),
    var(--bg);
  color: var(--fg);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
}

.card { width: 100%; max-width: 380px; }

.head { text-align: center; margin-bottom: 22px; }

.avatar {
  width: 92px; height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent2) 100%);
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-size: 38px; font-weight: 700; letter-spacing: .02em;
  color: #fff;
}

h1 { font-size: 25px; font-weight: 650; letter-spacing: .01em; }

.tag { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.tile {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, #241733 0%, #140d1e 55%, #1d1329 100%);
}

.tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }

.links { display: flex; flex-direction: column; gap: 10px; }

.btn {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, border-color .12s ease;
}

.btn:active { transform: scale(.985); }
.btn:hover { border-color: #40305c; }

.btn-vip {
  margin-top: 6px;
  border-color: transparent;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  letter-spacing: .12em;
}

.note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--accent2); }

.foot { margin-top: 30px; text-align: center; font-size: 12px; color: var(--muted); }

.overlay {
  position: fixed; inset: 0;
  background: rgba(5, 3, 9, .82);
  display: grid; place-items: center;
  padding: 20px;
  z-index: 10;
}

.overlay[hidden] { display: none; }

.modal {
  width: 100%; max-width: 320px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
}

.modal p { font-size: 17px; font-weight: 600; margin-bottom: 18px; }

.modal-row { display: flex; gap: 10px; }

.btn-yes { background: linear-gradient(100deg, var(--accent) 0%, var(--accent2) 100%); border-color: transparent; color: #fff; }
.btn-no { background: transparent; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
