:root {
  --bg: #fbf6ef;
  --bg2: #ffffff;
  --line: #ebdfd2;
  --fg: #3a322c;
  --muted: #9c8f84;
  --accent: #f2b8c6;
  --accent2: #d99f7a;
}

* { 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%, #fff5ef 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 #fff;
  box-shadow: 0 3px 14px rgba(190, 150, 130, .22);
  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, #fdeee6 0%, #f7e7dc 55%, #fbe9ef 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: #dcc9b6; }

.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: #b4705c; }

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

.overlay {
  position: fixed; inset: 0;
  background: rgba(58, 50, 44, .42);
  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;
  box-shadow: 0 10px 30px rgba(120, 95, 80, .18);
}

.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; }
}
