/* ==========================================================================
   Link-in-bio page — styles
   Themes:  aurora | midnight | cloud | paper | sunset | glass | neon | forest
   Buttons: fill | outline | soft | hard | glass
   Shapes:  pill | rounded | square
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 30px;

  /* Theme tokens (aurora is the default) */
  --bg: linear-gradient(125deg, #6a5cff, #b84dff, #ff5e9a, #ffb35c, #6a5cff);
  --bg-size: 400% 400%;
  --bg-anim: drift 22s ease-in-out infinite;
  --card-bg: var(--bg);
  --text: #fff;
  --muted: rgba(255, 255, 255, .85);
  --accent: #fff;
  --accent-text: #1d1534;
  --line: #fff;
  --hard: #1d1534;
  --glass-bg: rgba(255, 255, 255, .16);
  --glass-border: rgba(255, 255, 255, .35);
  --surface: #ffffff;
  --surface-text: #16151c;
  --surface-muted: #6b6a75;
  --surface-line: rgba(20, 20, 30, .08);
  --theme-color: #7b5cff;
}

/* ---------- Themes ---------- */
[data-theme="midnight"] {
  --bg: radial-gradient(1100px 700px at 50% -15%, #26355a 0%, #101626 45%, #080b13 100%);
  --bg-size: cover; --bg-anim: none;
  --text: #f2f5fc; --muted: #a8b1c7;
  --accent: #19213a; --accent-text: #eef2ff;
  --line: #7c9cff; --hard: #7c9cff;
  --glass-bg: rgba(255, 255, 255, .06); --glass-border: rgba(255, 255, 255, .12);
  --surface: #141a2a; --surface-text: #f2f5fc; --surface-muted: #97a0b8; --surface-line: rgba(255, 255, 255, .09);
  --theme-color: #0b0f1a;
}
[data-theme="cloud"] {
  --bg: #eef0ec; --bg-size: cover; --bg-anim: none;
  --text: #121212; --muted: #55575c;
  --accent: #fff; --accent-text: #121212;
  --line: #121212; --hard: #121212;
  --glass-bg: rgba(255, 255, 255, .6); --glass-border: rgba(0, 0, 0, .08);
  --theme-color: #eef0ec;
}
[data-theme="paper"] {
  --bg: radial-gradient(circle at 1px 1px, rgba(0,0,0,.09) 1px, transparent 0) 0 0 / 22px 22px, #f6f1e7;
  --bg-size: auto; --bg-anim: none;
  --card-bg: #f6f1e7;
  --text: #1b1b1b; --muted: #59544b;
  --accent: #fffdf8; --accent-text: #1b1b1b;
  --line: #1b1b1b; --hard: #1b1b1b;
  --glass-bg: rgba(255, 255, 255, .55); --glass-border: rgba(0, 0, 0, .12);
  --theme-color: #f6f1e7;
}
[data-theme="sunset"] {
  --bg: linear-gradient(175deg, #ffb06b 0%, #ff6a6a 38%, #c13f8f 70%, #5b2a86 100%);
  --bg-size: cover; --bg-anim: none;
  --text: #fff; --muted: rgba(255, 255, 255, .88);
  --accent: #fff; --accent-text: #45163f;
  --line: #fff; --hard: #3a1236;
  --theme-color: #ff8a65;
}
[data-theme="glass"] {
  --bg: #15161c; --bg-size: cover; --bg-anim: none;
  --card-bg: linear-gradient(160deg, #353a4a, #14161d);
  --text: #fff; --muted: rgba(255, 255, 255, .8);
  --accent: rgba(255, 255, 255, .92); --accent-text: #15161c;
  --line: rgba(255, 255, 255, .75); --hard: #000;
  --glass-bg: rgba(255, 255, 255, .13); --glass-border: rgba(255, 255, 255, .25);
  --surface: #1c1e26; --surface-text: #f5f6fa; --surface-muted: #a0a4b3; --surface-line: rgba(255, 255, 255, .09);
  --theme-color: #15161c;
}
[data-theme="neon"] {
  --bg:
    radial-gradient(600px 420px at 10% 0%, rgba(255, 0, 170, .35), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(0, 220, 255, .28), transparent 70%),
    #07060d;
  --bg-size: cover; --bg-anim: none;
  --card-bg: linear-gradient(135deg, #2a0b3d, #07060d 60%, #003845);
  --text: #fff; --muted: #c3bfd9;
  --accent: #00e5ff; --accent-text: #07060d;
  --line: #00e5ff; --hard: #ff2bd6;
  --glass-bg: rgba(255, 255, 255, .06); --glass-border: rgba(0, 229, 255, .45);
  --surface: #120f1f; --surface-text: #f4f2ff; --surface-muted: #a49fc0; --surface-line: rgba(255, 255, 255, .09);
  --theme-color: #07060d;
}
[data-theme="forest"] {
  --bg: linear-gradient(165deg, #0e3b2c 0%, #1d6b48 55%, #9cc36a 100%);
  --bg-size: cover; --bg-anim: none;
  --text: #f4fbef; --muted: rgba(244, 251, 239, .85);
  --accent: #f4fbef; --accent-text: #0e3b2c;
  --line: #f4fbef; --hard: #082419;
  --theme-color: #0e3b2c;
}

[data-theme="winesnow"] {
  --bg: none; --bg-size: cover; --bg-anim: none;
  --page-bg: linear-gradient(180deg, #fff 0, #fdf4f5 90px, #f3cfd4 330px, #e9bcc0 52%, #d9aea9 78%, #c6a08c 100%);
  --card-bg: linear-gradient(180deg, #fbe9eb, #e6b4b9);
  --text: #121212; --muted: #4d3a3d;
  --accent: #fff; --accent-text: #121212;
  --line: #121212; --hard: #121212;
  --glass-bg: rgba(255, 255, 255, .16); --glass-border: rgba(255, 255, 255, .42);
  --label-weight: 500; --label-size: 16px;
  --theme-color: #f6dade;
}
[data-theme="winesnow"] body { background: var(--page-bg); }
[data-theme="winesnow"] .bg { display: none; }
[data-theme="winesnow"] .icon-btn { background: rgba(40, 30, 32, .38); color: #fff; }
[data-theme="winesnow"] .icon-btn:hover { background: rgba(40, 30, 32, .55); }
[data-theme="winesnow"] .topbar.is-scrolled .icon-btn { color: var(--surface-text); }
[data-theme="winesnow"] .social svg { width: 30px; height: 30px; }
[data-theme="winesnow"] .socials { gap: 12px; margin-top: 4px; }
[data-theme="winesnow"][data-button="glass"] .card { box-shadow: 0 6px 22px -14px rgba(90, 40, 50, .45); }

/* ---------- Shapes ---------- */
[data-shape="pill"]    { --radius: 30px; }
[data-shape="rounded"] { --radius: 14px; }
[data-shape="subtle"]  { --radius: 8px; }
[data-shape="square"]  { --radius: 4px; }

/* ---------- Button styles ---------- */
[data-button="fill"] {
  --btn-bg: var(--accent); --btn-text: var(--accent-text);
  --btn-border: 2px solid transparent; --btn-shadow: none;
}
[data-button="outline"] {
  --btn-bg: transparent; --btn-text: var(--text);
  --btn-border: 2px solid var(--line); --btn-shadow: none;
}
[data-button="soft"] {
  --btn-bg: var(--accent); --btn-text: var(--accent-text);
  --btn-border: 2px solid transparent;
  --btn-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45), 0 2px 6px -2px rgba(0, 0, 0, .18);
}
[data-button="hard"] {
  --btn-bg: var(--accent); --btn-text: var(--accent-text);
  --btn-border: 2px solid var(--hard); --btn-shadow: 5px 5px 0 var(--hard);
}
[data-button="glass"] {
  --btn-bg: var(--glass-bg); --btn-text: var(--text);
  --btn-border: 1px solid var(--glass-border);
  --btn-shadow: 0 8px 30px -12px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: #111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }

.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: var(--bg);
  background-size: var(--bg-size);
  animation: var(--bg-anim);
}
[data-theme="glass"] .bg::before {
  content: ""; position: absolute; inset: -80px;
  background: var(--avatar-bg) center / cover no-repeat;
  filter: blur(60px) saturate(1.5);
  transform: scale(1.15);
}
[data-theme="glass"] .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55));
}
@keyframes drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.noscript { text-align: center; padding: 40px 20px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; z-index: 20;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 656px); height: 56px;
  padding: 0 8px; border-radius: 999px;
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, .25);
}
.topbar__mini {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  color: var(--surface-text); font-weight: 700; font-size: 15px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.topbar__mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar.is-scrolled .topbar__mini { opacity: 1; transform: none; pointer-events: auto; }
.topbar__mini .avatar { width: 32px; height: 32px; font-size: 13px; border-width: 0; box-shadow: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--surface-text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .15s, background-color .2s;
}
.icon-btn:hover { transform: scale(1.06); background: var(--surface); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 20px; height: 20px; }
.topbar.is-scrolled .icon-btn { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar.is-scrolled .icon-btn:hover { background: var(--surface-line); }

/* ---------- Page ---------- */
.page {
  width: 100%; max-width: 680px; margin: 0 auto;
  padding: 84px 16px calc(24px + env(safe-area-inset-bottom));
}

.profile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; flex: none;
  object-fit: cover; display: grid; place-items: center;
  font-weight: 800; font-size: 34px; color: #fff; letter-spacing: -.02em;
  background: var(--avatar-bg, #888) center / cover;
  border: 3px solid color-mix(in srgb, var(--text) 25%, transparent);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  user-select: none;
}
.name {
  margin: 16px 0 0; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 6px;
}
.avatar--hero { background: #fff var(--avatar-bg) 50% 7% / 300% auto no-repeat; }

/* Hero header (big artwork + text logo) */
.page.has-hero { padding-top: 0; }
.hero { position: relative; width: calc(100% + 32px); margin: 0 -16px; height: 448px; overflow: hidden; }
.hero__img {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  height: 700px; width: auto; max-width: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 38%, transparent 62%);
  user-select: none; pointer-events: none;
}
.name--logo { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; display: flex; justify-content: center; }
.name--logo img {
  width: min(94%, 520px); height: auto;
  filter: drop-shadow(0 2px 10px rgba(110, 40, 55, .28));
}
.has-hero .profile { animation: none; }
.has-hero .hero__img { animation: hero-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.has-hero .name--logo { animation: rise .6s .15s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hero-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (min-width: 600px) {
  .hero { height: 540px; }
  .hero__img { height: 840px; }
}

.verified { display: inline-grid; width: 20px; height: 20px; flex: none; }
.verified svg { width: 100%; height: 100%; }
.handle { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.bio {
  margin: 8px 0 0; max-width: 520px;
  font-size: 15px; line-height: 1.5; color: var(--muted); white-space: pre-line;
}

/* ---------- Social icons ---------- */
.socials {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
}
.socials--bottom { margin-top: 32px; }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .2s;
}
.social svg { width: 26px; height: 26px; }
.social:hover { transform: translateY(-2px) scale(1.08); background: color-mix(in srgb, var(--text) 12%, transparent); }
.social:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- Links ---------- */
.links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.item { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.profile { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.section-title {
  margin: 14px 0 0; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .01em;
}
.item:first-child .section-title { margin-top: 0; }

.card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-text);
  border: var(--btn-border); box-shadow: var(--btn-shadow);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, background-color .2s;
}
[data-button="glass"] .card { -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.card:not(.is-open):hover { transform: scale(1.02); }
.card:not(.is-open):active { transform: scale(.985); }
[data-button="outline"] .card:hover { background: color-mix(in srgb, var(--line) 16%, transparent); }
[data-button="glass"] .card:hover { background: color-mix(in srgb, var(--glass-bg) 100%, rgba(255, 255, 255, .08)); }
[data-button="hard"] .card:not(.is-open):hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--hard); }
[data-button="hard"] .card:not(.is-open):active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--hard); }
[data-theme="neon"][data-button="outline"] .card,
[data-theme="neon"][data-button="glass"] .card { box-shadow: 0 0 22px -6px var(--line), inset 0 0 22px -14px var(--line); }
[data-theme="neon"][data-button="fill"] .card { box-shadow: 0 0 26px -6px var(--accent); }

.link {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 6px;
  color: inherit; text-decoration: none; text-align: center;
  background: none; border: 0; font: inherit; cursor: pointer;
  border-radius: inherit; -webkit-tap-highlight-color: transparent;
}
.link:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.text { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 8px 0; }
.label { font-size: var(--label-size, 15.5px); font-weight: var(--label-weight, 600); line-height: 1.3; overflow-wrap: anywhere; }

/* Picture card (link with `image`) */
.card--feature .link { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 16px 6px; }
.feature__img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: max(calc(var(--radius) - 8px), 4px); background: rgba(255, 255, 255, .3);
}
.feature__label { padding: 18px 44px 16px; }
.card--feature .sub { margin: -10px 0 12px; }
.card--feature .more { top: auto; bottom: 12px; right: 10px; }
.sub { font-size: 13px; font-weight: 500; opacity: .7; line-height: 1.3; }

.thumb {
  width: 44px; height: 44px; display: grid; place-items: center; position: relative;
  border-radius: max(calc(var(--radius) - 8px), 4px); overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 24px; height: 24px; }
.thumb--emoji { font-size: 24px; line-height: 1; }
.thumb__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .28); color: #fff;
}
.thumb__play svg { width: 18px; height: 18px; }

.more {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: inherit;
  opacity: 0; transition: opacity .2s, background-color .2s;
}
.more svg { width: 20px; height: 20px; }
.card:hover .more, .more:focus-visible { opacity: .8; }
.more:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.more:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
@media (hover: none) { .more { opacity: .6; } }

/* Embed (video / music) */
.embed { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.card.is-open .embed { grid-template-rows: 1fr; }
.embed__inner { overflow: hidden; min-height: 0; }
.card.is-open .embed__inner { padding: 0 8px 8px; }
.embed__frame {
  width: 100%; overflow: hidden; background: #000;
  border-radius: max(calc(var(--radius) - 12px), 4px);
}
.embed__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed__open {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 4px;
  font-size: 13px; font-weight: 600; color: inherit; opacity: .75; text-decoration: none;
}
.embed__open:hover { opacity: 1; text-decoration: underline; }
.embed__open svg { width: 14px; height: 14px; }

/* Featured animations */
.anim-wobble { animation: wobble 5s ease-in-out infinite; }
.anim-pulse  { animation: pulse 2.4s ease-in-out infinite; }
.anim-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, currentColor 14%, transparent) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes wobble {
  0%, 82%, 100% { transform: none; }
  85% { transform: rotate(-2deg) scale(1.02); }
  88% { transform: rotate(2deg) scale(1.02); }
  91% { transform: rotate(-1.5deg) scale(1.02); }
  94% { transform: rotate(1deg); }
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

/* ---------- Footer ---------- */
.footer {
  margin-top: 44px; padding-bottom: 12px;
  display: grid; justify-items: center; gap: 14px;
  text-align: center; font-size: 13px; color: var(--muted);
}
.footer p { margin: 0; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700;
  background: var(--surface); color: var(--surface-text);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35);
  transition: transform .18s;
}
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn svg { width: 18px; height: 18px; }

/* ---------- Sheet / modal ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 14, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  width: min(calc(100% - 24px), 420px); max-height: calc(100% - 24px); overflow-y: auto;
  padding: 18px 20px 22px; border-radius: 26px;
  background: var(--surface); color: var(--surface-text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
  transform: translateY(18px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.sheet-backdrop.is-open .sheet { transform: none; }
@media (max-width: 560px) {
  .sheet-backdrop { align-items: flex-end; }
  .sheet {
    width: 100%; border-radius: 26px 26px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .sheet::before {
    content: ""; display: block; width: 40px; height: 5px; border-radius: 9px;
    background: var(--surface-line); margin: -6px auto 12px;
  }
}
.sheet__head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 16px; }
.sheet__head h2 { margin: 0; text-align: center; font-size: 16px; font-weight: 700; }
.sheet-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: inherit;
}
.sheet-btn:hover { background: var(--surface-line); }
.sheet-btn svg { width: 20px; height: 20px; }

.share-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 26px 16px 22px; border-radius: 20px; text-align: center; color: var(--text);
}
.share-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--card-bg); background-size: var(--bg-size);
}
.share-card .avatar, .share-card .share-card__img { width: 76px; height: 76px; margin-bottom: 8px; font-size: 28px; }
.share-card__img { border-radius: 18px; object-fit: cover; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.share-card strong { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.share-card span { font-size: 13px; opacity: .85; overflow-wrap: anywhere; }

.copy-row {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px;
  padding: 6px 6px 6px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--surface-line); background: transparent; color: inherit; font: inherit;
}
.copy-row:hover { border-color: color-mix(in srgb, var(--surface-text) 25%, transparent); }
.copy-row__url { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--surface-muted); }
.copy-row__btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13px;
  background: var(--surface-text); color: var(--surface);
}
.copy-row__btn svg { width: 15px; height: 15px; }

.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; margin-top: 20px; }
.share-target {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: inherit; text-decoration: none; font: inherit; font-size: 12px; font-weight: 500;
}
.share-target__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c, var(--surface-line)); color: var(--ic, #fff);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}
.share-target__icon--plain { --ic: var(--surface-text); }
.share-target__icon svg { width: 24px; height: 24px; }
.share-target:hover .share-target__icon { transform: translateY(-3px); }
.share-target:focus-visible { outline: none; }
.share-target:focus-visible .share-target__icon { outline: 2px solid var(--surface-text); outline-offset: 2px; }

.qr-box {
  width: 256px; height: 256px; margin: 4px auto 0; padding: 14px;
  display: grid; place-items: center; border-radius: 20px; background: #fff; color: #555; font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.qr-box img { width: 228px; height: 228px; image-rendering: pixelated; }
.qr-caption { margin: 12px 0 16px; text-align: center; font-size: 14px; color: var(--surface-muted); overflow-wrap: anywhere; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .15s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--surface-text); color: var(--surface); }
.btn--ghost { background: var(--surface-line); color: var(--surface-text); }
.btn-row { display: flex; gap: 10px; margin-top: 22px; }
.btn-row .btn { flex: 1; }

.warn { text-align: center; padding-top: 8px; }
.warn__icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #fff1e0; color: #e07b00;
}
.warn__icon svg { width: 28px; height: 28px; }
.warn h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.warn p { margin: 0; color: var(--surface-muted); line-height: 1.5; font-size: 15px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: #16151c; color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #4ade80; }

/* ---------- Customizer (open the page with ?customize) ---------- */
.customizer {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 236px;
  background: var(--surface); color: var(--surface-text);
  border-radius: 18px; box-shadow: 0 16px 50px -12px rgba(0, 0, 0, .45);
  font-size: 13px;
}
.customizer summary {
  list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.customizer summary::-webkit-details-marker { display: none; }
.customizer summary svg { width: 16px; height: 16px; }
.customizer__body { display: grid; gap: 10px; padding: 0 16px 16px; }
.customizer label { display: grid; gap: 4px; font-weight: 600; color: var(--surface-muted); }
.customizer select {
  font: inherit; font-size: 14px; color: var(--surface-text); background: transparent;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--surface-line);
}
.customizer select option { color: #111; background: #fff; }
.customizer .btn { height: 40px; font-size: 13px; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
