/* ============================================================
   GG33 - Links (link-in-bio). Uses home.css tokens.
   Elite ember/dark Beacons-style hub with animated entrance,
   halo avatar, shimmer-on-hover link rows, real social icons.
   No em dashes, no banned AI words.
   ============================================================ */

.lk-body {
  margin: 0; min-height: 100svh;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background (matches the rest of the site) */
.lk-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(130% 80% at 50% -10%, rgba(255, 107, 20, 0.2), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(255, 107, 20, 0.08), transparent 60%),
    var(--bg);
}
.lk-bg::before, .lk-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.42;
}
.lk-bg::before { top: -10%; left: -18%; width: 60vw; height: 60vw; max-width: 520px; max-height: 520px;
  background: radial-gradient(circle, rgba(255, 107, 20, 0.55), transparent 70%); animation: lkOrbA 18s ease-in-out infinite; }
.lk-bg::after { bottom: -14%; right: -16%; width: 52vw; height: 52vw; max-width: 460px; max-height: 460px;
  background: radial-gradient(circle, rgba(255, 138, 44, 0.4), transparent 70%); animation: lkOrbB 22s ease-in-out infinite; }
@keyframes lkOrbA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%, 10%) scale(1.14); } }
@keyframes lkOrbB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7%, -9%) scale(1.1); } }

/* Layout */
.lk-main { position: relative; z-index: 1; max-width: 30rem; margin: 0 auto;
  padding: max(2rem, env(safe-area-inset-top)) 1.15rem calc(2.5rem + env(safe-area-inset-bottom)); }

/* Entrance choreography: children fade-up with stagger */
.lk-stagger > * { opacity: 0; transform: translateY(16px); animation: lkUp 620ms var(--ease) forwards; }
.lk-stagger > *:nth-child(1) { animation-delay: 60ms; }
.lk-stagger > *:nth-child(2) { animation-delay: 130ms; }
.lk-stagger > *:nth-child(3) { animation-delay: 180ms; }
.lk-stagger > *:nth-child(4) { animation-delay: 270ms; }
.lk-stagger > *:nth-child(5) { animation-delay: 340ms; }
.lk-stagger > *:nth-child(6) { animation-delay: 410ms; }
.lk-stagger > *:nth-child(7) { animation-delay: 480ms; }
.lk-stagger > *:nth-child(8) { animation-delay: 550ms; }
.lk-stagger > *:nth-child(9) { animation-delay: 620ms; }
.lk-stagger > *:nth-child(10) { animation-delay: 690ms; }
.lk-stagger > *:nth-child(11) { animation-delay: 760ms; }
.lk-stagger > *:nth-child(12) { animation-delay: 830ms; }
.lk-stagger > *:nth-child(13) { animation-delay: 900ms; }
.lk-stagger > *:nth-child(n+14) { animation-delay: 960ms; }
@keyframes lkUp { to { opacity: 1; transform: translateY(0); } }

/* Profile */
.lk-profile { text-align: center; }
.lk-avatar-wrap { position: relative; width: 8.4rem; height: 8.4rem; margin: 0 auto; }
/* Rotating conic halo */
.lk-avatar-wrap::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--orange), #ffd9a8, var(--orange-2), #df520d, var(--orange));
  filter: blur(7px); opacity: 0.85; animation: lkSpin 7s linear infinite; z-index: 0;
}
@keyframes lkSpin { to { transform: rotate(360deg); } }
.lk-avatar { position: relative; z-index: 1; width: 8.4rem; height: 8.4rem; border-radius: 50%;
  overflow: hidden; border: 2px solid rgba(255, 138, 44, 0.55); background: #0a0604;
  box-shadow: 0 14px 50px rgba(255, 107, 20, 0.4); display: grid; place-items: center; }
.lk-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Landing-page GG33 wordmark sits inside the halo (contained, not cropped) */
.lk-avatar.is-wordmark { background: radial-gradient(circle, #140a05, #0a0604 70%); }
.lk-avatar.is-wordmark img { width: 78%; height: auto; object-fit: contain; }

/* Sports / receipts ticker */
.lk-ticker { margin: 1.1rem 0 0; padding: 0.55rem 0; border-radius: 999px;
  border: 1px solid rgba(255, 138, 44, 0.28); background: rgba(255, 107, 20, 0.07);
  overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lk-ticker-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: lkTick 26s linear infinite; }
.lk-ticker-track span { display: inline-flex; align-items: center; font-size: 0.78rem; color: var(--soft); padding: 0 0.5rem; }
.lk-ticker-track span strong { color: var(--orange-2); font-weight: 700; margin-right: 0.3rem; }
.lk-ticker-track span::after { content: "\2022"; color: rgba(255,138,44,0.5); margin-left: 1rem; }
@keyframes lkTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Verified tick */
.lk-verify { position: absolute; right: 0.2rem; bottom: 0.2rem; z-index: 2; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; background: linear-gradient(135deg, #ff8a2c, #df520d); display: grid; place-items: center;
  border: 2px solid #0a0604; box-shadow: 0 4px 14px rgba(255, 107, 20, 0.5); }
.lk-verify svg { width: 1.05rem; height: 1.05rem; display: block; }

.lk-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 6.6vw, 2.1rem); letter-spacing: -0.02em; margin: 1rem auto 0; line-height: 1.1; max-width: 16ch; text-wrap: balance; }
.lk-handle { font-size: 0.92rem; color: var(--orange-2); margin: 0.25rem 0 0; font-weight: 600; }
.lk-tag { font-size: 0.95rem; color: var(--soft); line-height: 1.5; margin: 0.7rem auto 0; max-width: 26ch; }

/* Reach chips */
.lk-reach { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 1rem 0 0; }
.lk-reach span { font-size: 0.78rem; color: var(--soft); padding: 0.35rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(247, 244, 236, 0.04); }
.lk-reach span strong { color: var(--ink); font-weight: 700; }

/* Social icon row */
.lk-socials { display: flex; justify-content: center; gap: 0.6rem; margin: 1.2rem 0 0; }
.lk-soc { width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(247, 244, 236, 0.04); color: var(--ink);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease); }
.lk-soc svg { width: 1.25rem; height: 1.25rem; display: block; fill: currentColor; }
.lk-soc:hover { transform: translateY(-3px) scale(1.06); border-color: rgba(255, 138, 44, 0.6);
  background: rgba(255, 107, 20, 0.12); color: var(--orange-2); }

/* Featured hero link */
.lk-featured { display: block; position: relative; overflow: hidden; margin: 1.5rem 0 0;
  border-radius: 20px; border: 1px solid rgba(255, 107, 20, 0.4); text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 107, 20, 0.22), rgba(255, 138, 44, 0.08));
  box-shadow: 0 18px 50px rgba(255, 107, 20, 0.22);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.lk-featured:hover { transform: translateY(-3px); box-shadow: 0 26px 64px rgba(255, 107, 20, 0.34); }
.lk-featured-inner { display: flex; align-items: center; gap: 0.9rem; padding: 1.15rem 1.2rem; position: relative; z-index: 1; }
.lk-featured .lk-ico { background: linear-gradient(135deg, #ff8a2c, #df520d); color: #160a04; border: 0; }
.lk-featured .lk-tt { color: var(--ink); }
.lk-featured-pill { position: absolute; top: 0.7rem; right: 0.8rem; z-index: 2; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #160a04; background: linear-gradient(135deg, #ff8a2c, #df520d);
  padding: 0.2rem 0.5rem; border-radius: 999px; }

/* Link rows */
.lk-section-label { text-align: center; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 1.7rem 0 0.8rem; }
.lk-links { display: grid; gap: 0.7rem; }
.lk-row { position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0.9rem; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.035); text-decoration: none; color: var(--ink);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease); }
.lk-row:hover { transform: translateY(-2px); border-color: rgba(255, 138, 44, 0.5); background: rgba(255, 107, 20, 0.07); }
/* Free rows get a warm tint so the two free offers read as a matched pair */
.lk-row-free { border-color: rgba(255, 107, 20, 0.32); background: linear-gradient(180deg, rgba(255, 107, 20, 0.1), rgba(247, 244, 236, 0.02)); }
.lk-row-free .lk-price { color: var(--orange-2); }
/* Shimmer sweep on hover */
.lk-row::after, .lk-featured::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg); transition: left 600ms var(--ease); pointer-events: none;
}
.lk-row:hover::after, .lk-featured:hover::after { left: 140%; }

.lk-ico { flex: none; width: 3rem; height: 3rem; border-radius: 13px; display: grid; place-items: center;
  border: 1px solid rgba(255, 138, 44, 0.22); background: linear-gradient(150deg, #211207, #0c0704);
  box-shadow: inset 0 1px 0 rgba(255, 180, 110, 0.12); color: var(--orange-2); position: relative; z-index: 1; overflow: hidden; }
.lk-ico svg { width: 1.6rem; height: 1.6rem; display: block; }
.lk-ico svg [stroke] { stroke: url(#lkEmber); }
.lk-ico svg [fill]:not([fill="none"]) { fill: url(#lkEmber); }
/* Cue keeps its own wordmark logo */
.lk-ico-cue { background: linear-gradient(150deg, #211207, #0c0704); }
.lk-ico-cue img { width: 70%; height: 70%; object-fit: contain; display: block; }
.lk-meta { flex: 1; min-width: 0; position: relative; z-index: 1; }
.lk-tt { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.15; margin: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-sub { font-size: 0.78rem; color: var(--muted); margin: 0.15rem 0 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-price { flex: none; white-space: nowrap; font-size: 0.82rem; font-weight: 700; color: var(--orange-2); position: relative; z-index: 1; }
/* Row chevrons are redundant (the whole row is the link); keep the chevron only on the featured card. */
.lk-row .lk-chev { display: none; }
.lk-chev { flex: none; color: var(--muted); position: relative; z-index: 1; transition: transform 180ms var(--ease), color 180ms var(--ease); }
.lk-featured:hover .lk-chev { transform: translateX(3px); color: var(--orange-2); }
.lk-chev svg { width: 1.1rem; height: 1.1rem; display: block; }

/* Explore (internal) chips */
.lk-explore { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.lk-explore a { font-size: 0.85rem; font-weight: 500; color: var(--soft); padding: 0.5rem 0.9rem;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(247, 244, 236, 0.04);
  text-decoration: none; transition: color 180ms var(--ease), border-color 180ms var(--ease); }
.lk-explore a:hover { color: var(--orange-2); border-color: rgba(255, 138, 44, 0.45); }

/* Footer */
.lk-footer { text-align: center; margin: 2.2rem 0 0; }
.lk-footer img { height: 1.5rem; width: auto; opacity: 0.9; }
.lk-footer p { font-size: 0.78rem; color: var(--muted); margin: 0.7rem 0 0; }
.lk-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(247, 244, 236, 0.16); }
.lk-footer a:hover { color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .lk-bg::before, .lk-bg::after, .lk-avatar-wrap::before { animation: none; }
  .lk-stagger > * { opacity: 1; transform: none; animation: none; }
  .lk-row:hover, .lk-featured:hover, .lk-soc:hover { transform: none; }
}

/* keyboard focus - same orange treatment as the homepage */
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange-2, #ff8a2c); outline-offset: 2px; }

/* press feedback on touch */
@media (hover: none) {
  .lk-row:active, .lk-featured:active { transform: scale(0.985); transition: transform 80ms ease; }
  .lk-soc:active { transform: scale(0.92); transition: transform 80ms ease; }
}

/* ============================================================
   Desktop layer (min-width: 761px) — mobile rendering untouched.
   The hub stays a centered column (the right shape for a link
   hub) but earns desktop scale: bigger identity, wider line,
   roomier rows.
   ============================================================ */
@media (min-width: 761px) {
  .lk-main { max-width: 36rem; padding-top: 3.6rem; padding-bottom: 4rem; }
  .lk-avatar-wrap, .lk-avatar { width: 10rem; height: 10rem; }
  .lk-name { font-size: 2.2rem; }
  .lk-ticker { margin-top: 1.4rem; }
  .lk-ticker-track span { font-size: 0.84rem; }
}
