/* Glitter Tag business card. Used by the public card page and the live preview in the card designer. */
.gg-page { margin: 0; min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 28px 16px 40px;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--page, #000); color: var(--ink); }
:is(.gg-page, .gg-card) {
  --page: #000; --bg: #050505; --bg2: #0d0d0d; --ink: #f8f4ea; --muted: #bdb8ad; --accent: #f5c542;
  --accent-grad: linear-gradient(180deg, #ffe9a8 0%, #f5c542 55%, #e0a826 100%); --line: rgba(245, 197, 66, .38); --soft: rgba(255, 255, 255, .1); --btn-ink: #000;
}
.gg-card {
  width: 100%; max-width: 520px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
:is(.gg-page, .gg-card)[data-theme="midnight"] { --page: #050914; --bg: #0b1222; --bg2: #111a2e; --ink: #eef2fb; --muted: #a3afc7; --accent: #c7d2e8;
  --accent-grad: linear-gradient(180deg, #ffffff, #c7d2e8 60%, #93a3c4); --line: rgba(199, 210, 232, .35); }
:is(.gg-page, .gg-card)[data-theme="emerald"] { --page: #03100b; --bg: #071a12; --bg2: #0c241a; --ink: #eefaf4; --muted: #9fc4b2; --accent: #34d399;
  --accent-grad: linear-gradient(180deg, #a7f3d0, #34d399 60%, #059669); --line: rgba(52, 211, 153, .35); }
:is(.gg-page, .gg-card)[data-theme="rose"] { --page: #12060a; --bg: #1c0b12; --bg2: #26101a; --ink: #fdf0f4; --muted: #d6a8b8; --accent: #f9a8c4;
  --accent-grad: linear-gradient(180deg, #ffe4ee, #f9a8c4 55%, #e5679a); --line: rgba(249, 168, 196, .38); }
:is(.gg-page, .gg-card)[data-theme="sapphire"] { --page: #030716; --bg: #081133; --bg2: #0e1a45; --ink: #eef3ff; --muted: #a9b8e6; --accent: #60a5fa;
  --accent-grad: linear-gradient(180deg, #bfdbfe, #60a5fa 55%, #2563eb); --line: rgba(96, 165, 250, .38); --btn-ink: #03102e; }
:is(.gg-page, .gg-card)[data-theme="ivory"] { --page: #efe9dc; --bg: #fffdf7; --bg2: #f6f0e2; --ink: #1d1a14; --muted: #6d6555; --accent: #a87b12;
  --accent-grad: linear-gradient(180deg, #e9c46a, #c8962a 60%, #a87b12); --line: rgba(168, 123, 18, .35); --soft: rgba(0, 0, 0, .08); --btn-ink: #1d1a14; }

.gg-cover { height: 86px; background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .18), transparent 60%), var(--accent-grad); opacity: .9; }
.gg-body { padding: 0 24px 22px; }
.gg-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-top: -40px; }
.gg-avatar { width: 84px; height: 84px; border-radius: 20px; border: 3px solid var(--bg); background: var(--bg2); object-fit: cover; display: grid; place-items: center;
  font-size: 34px; font-weight: 900; color: var(--accent); flex: none; overflow: hidden; }
.gg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gg-cardqr { width: 92px; flex: none; text-align: center; font-size: 11px; color: var(--muted); }
.gg-cardqr svg { width: 92px; height: 92px; border-radius: 10px; display: block; background: #fff; }
.gg-name { margin: 12px 0 0; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.gg-handle { color: var(--accent); font-weight: 700; }
.gg-badge { display: inline-block; margin-left: 8px; font-size: 11px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 1px 8px; font-weight: 700; vertical-align: middle; }
.gg-title { color: var(--ink); font-weight: 600; margin-top: 4px; }
.gg-bio { color: var(--muted); margin: 6px 0 0; }
.gg-loc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.gg-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gg-links a { color: var(--ink); text-decoration: none; border: 1px solid var(--soft); background: var(--bg2); border-radius: 999px; padding: 6px 12px; font-size: 14px; overflow-wrap: anywhere; }
.gg-links a:hover { border-color: var(--accent); }
.gg-save { display: inline-flex; margin-top: 14px; background: var(--accent-grad); color: var(--btn-ink); font-weight: 800; text-decoration: none; border-radius: 12px; padding: 10px 16px; }
.gg-request { margin-top: 16px; border: 1px solid var(--accent); border-radius: 14px; padding: 12px 14px; background: var(--bg2); }
.gg-request b { color: var(--accent); font-size: 22px; }
.gg-route { border-top: 1px solid var(--soft); margin-top: 18px; padding-top: 14px; }
.gg-chain { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gg-ok { font-size: 11px; border: 1px solid #4ade80; color: #16a34a; border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.gg-rname { color: var(--muted); font-size: 14px; }
.gg-field { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
.gg-k { color: var(--muted); font-size: 13px; }
.gg-field code { overflow-wrap: anywhere; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.gg-must code { color: var(--accent); font-size: 16px; font-weight: 700; }
.gg-card button { background: var(--accent-grad); color: var(--btn-ink); border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; cursor: pointer; font: inherit; font-size: 14px; }
.gg-warn { color: #d97706; font-size: 12px; margin: 6px 0 0; }
.gg-qr { margin-top: 10px; } .gg-qr summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.gg-qrbox svg { width: 200px; height: 200px; border-radius: 10px; margin-top: 8px; display: block; background: #fff; }
.gg-qnote { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.gg-pending { border: 1px solid #d97706; color: #d97706; border-radius: 10px; padding: 8px 12px; margin-top: 14px; font-size: 13px; }
.gg-note { color: var(--muted); font-size: 12px; margin-top: 20px; }
.gg-note a { color: var(--accent); }
.gg-made { display: flex; align-items: center; justify-content: center; gap: 10px; border-top: 1px solid var(--soft); padding: 12px 16px; background: var(--bg2);
  color: var(--muted); font-size: 12px; text-decoration: none; }
.gg-made img { height: 26px; width: auto; }
.gg-made:hover { color: var(--ink); }
@media (max-width: 420px) { .gg-field { grid-template-columns: 1fr auto; } .gg-k { grid-column: 1 / -1; } .gg-cardqr { width: 72px; } .gg-cardqr svg { width: 72px; height: 72px; } }
.gg-body { position: relative; }
.gg-card code, .gg-card :not(pre) > code { background: none; padding: 0; border-radius: 0; color: inherit; }
.gg-card .gg-must code { color: var(--accent); }

/* "Pay @name": the QR code is the star */
.gg-pay { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--bg2); }
.gg-paytitle { margin: 0 0 10px; font-size: 20px; }
.gg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.gg-card .gg-tabs button { background: transparent; color: var(--muted); border: 1px solid var(--soft); border-radius: 999px; padding: 6px 14px; }
.gg-card .gg-tabs button[aria-selected="true"] { background: var(--accent-grad); color: var(--btn-ink); border-color: transparent; }
.gg-bigqr { background: #fff; border-radius: 16px; padding: 10px; width: min(300px, 100%); margin: 0 auto; }
.gg-bigqr svg { width: 100%; height: auto; display: block; }
.gg-pay .gg-qnote { text-align: center; }
.gg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gg-card .gg-actions button, .gg-btn { background: transparent; color: var(--accent); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.gg-card .gg-actions button[data-share] { background: var(--accent-grad); color: var(--btn-ink); border-color: transparent; }
.gg-askform { margin-top: 12px; } .gg-askrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.gg-askform input, .gg-askform select { background: var(--bg); color: var(--ink); border: 1px solid var(--soft); border-radius: 10px; padding: 8px 10px; font: inherit; min-width: 0; }
.gg-askform input { width: 120px; }
.gg-asklink { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .gg-asklink code { overflow-wrap: anywhere; font-size: 13px; }
.gg-sharebox { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gg-sharebox a { color: var(--ink); border: 1px solid var(--soft); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- Card Pro: banner, status, fonts, name styles, effects, video ---------- */
.gg-card { position: relative; }
.gg-cover--img { height: 150px; opacity: 1; background: var(--bg2); overflow: hidden; }
.gg-cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gg-status { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--soft); font-size: 14px; color: var(--ink); }
.gg-emoji { font-size: 16px; }

/* fonts (no downloads: these use fonts already on people's devices) */
.gg-card[data-font="elegant"] .gg-name, .gg-card[data-font="elegant"] .gg-title { font-family: Georgia, "Times New Roman", "Palatino Linotype", serif; }
.gg-card[data-font="rounded"] .gg-name { font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif; }
.gg-card[data-font="bold"] .gg-name { font-family: Impact, "Haettenschweiler", "Arial Black", "Franklin Gothic Bold", sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.gg-card[data-font="mono"] .gg-name { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; letter-spacing: -.01em; }
.gg-card[data-font="script"] .gg-name { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", "Apple Chancery", cursive; font-weight: 400; font-size: 32px; }

/* name styles */
.gg-name[data-style="gold"] { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gg-name[data-style="rainbow"] { background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #b06bff, #ff6b6b); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: gg-slide 6s linear infinite; }
.gg-name[data-style="glitter"] { background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px) 0 0 / 14px 14px, radial-gradient(circle at 70% 60%, #fff8 0 1px, transparent 2px) 0 0 / 11px 11px, var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: gg-twinkle-bg 3s linear infinite; }
.gg-name[data-style="neon"] { color: var(--ink); text-shadow: 0 0 6px var(--accent), 0 0 18px var(--accent); animation: gg-neon 2.4s ease-in-out infinite; }
@keyframes gg-slide { to { background-position: 300% 0; } }
@keyframes gg-twinkle-bg { to { background-position: 14px 28px, -22px 11px, 0 0; } }
@keyframes gg-neon { 50% { text-shadow: 0 0 3px var(--accent), 0 0 10px var(--accent); } }

/* effects */
.gg-card[data-effect="glow"] .gg-avatar { animation: gg-glow 2.6s ease-in-out infinite; }
@keyframes gg-glow { 0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 14px 2px var(--accent); } 50% { box-shadow: 0 0 0 2px var(--accent), 0 0 30px 8px var(--accent); } }
.gg-card[data-effect="aurora"] { border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(120deg, var(--accent), #fff, var(--accent), transparent, var(--accent)) border-box; background-size: 100% 100%, 300% 300%; animation: gg-aurora 8s ease infinite; border-width: 2px; }
.gg-card[data-effect="aurora"] .gg-cover:not(.gg-cover--img) { background-size: 300% 300%; background-image: linear-gradient(120deg, var(--accent), #fff6, var(--accent), var(--bg2), var(--accent)); animation: gg-aurora 8s ease infinite; }
@keyframes gg-aurora { 0%, 100% { background-position: 0 0, 0% 50%; } 50% { background-position: 0 0, 100% 50%; } }
.gg-card[data-effect="shimmer"] .gg-name { position: relative; }
.gg-card[data-effect="shimmer"] .gg-body::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%); background-size: 250% 100%; animation: gg-shine 4s ease-in-out infinite; }
@keyframes gg-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.gg-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit; overflow: hidden;
  background: radial-gradient(circle, var(--accent) 0 1.5px, transparent 2.5px) 0 0 / 60px 70px, radial-gradient(circle, #fff 0 1px, transparent 2px) 20px 30px / 90px 80px, radial-gradient(circle, var(--accent) 0 1px, transparent 2px) 45px 10px / 110px 120px;
  animation: gg-fall 9s linear infinite, gg-blink 2.2s ease-in-out infinite; opacity: .7; }
@keyframes gg-fall { to { background-position: 0 700px, 20px 830px, 45px 1210px; } }
@keyframes gg-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gg-card *, .gg-card, .gg-sparkles { animation: none !important; } }

/* intro video (loads only when someone presses play) */
.gg-video { margin-top: 16px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--soft); }
.gg-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.gg-card .gg-play { width: 100%; height: 100%; position: relative; padding: 0; border: 0; border-radius: 0; background: #000; cursor: pointer; }
.gg-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; }
.gg-play span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--accent-grad); color: var(--btn-ink); font-weight: 800; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
