/* Pagina /link (bio di Instagram): una colonna stretta, sfondo a strisce rosso-giallo che si muove piano */
.lk-body { margin: 0; min-height: 100vh; background: #0a0204; color: #f1f5f9; font-family: Inter, system-ui, sans-serif; overflow-x: hidden; }
.lk-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 8%, rgba(197, 0, 15, .55), transparent 70%), radial-gradient(50% 35% at 50% 100%, rgba(245, 192, 0, .12), transparent 70%), #0a0204; }
.lk-bg i { position: absolute; inset: -50%; opacity: .09;
  background: repeating-linear-gradient(115deg, #c5000f 0 46px, #f5c000 46px 92px); animation: lk-drift 40s linear infinite; }
.lk-bg i + i { opacity: .05; animation-duration: 70s; animation-direction: reverse; transform: rotate(8deg); }
@keyframes lk-drift { from { background-position: 0 0; } to { background-position: 920px 0; } }

.lk { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: max(32px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px; }

.lk-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lk-crest { width: 116px; height: 116px; position: relative; margin-bottom: 6px; animation: lk-float 6s ease-in-out infinite; }
.lk-crest::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 192, 0, .45), rgba(197, 0, 15, .25) 45%, transparent 70%); filter: blur(6px); animation: lk-glow 3s ease-in-out infinite; }
.lk-crest img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6)); }
@keyframes lk-float { 50% { transform: translateY(-6px); } }
@keyframes lk-glow { 50% { opacity: .55; } }
.lk-name { margin: 0; font-family: Anton, Impact, "Arial Narrow", sans-serif; font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: #fff; text-shadow: 0 4px 24px rgba(197, 0, 15, .6); text-wrap: balance; }
.lk-sub { margin: 0; font-size: 14px; font-weight: 600; color: #f3d27a; }
.lk-socials { display: flex; gap: 10px; margin-top: 10px; }
.lk-social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: transform .2s, background .2s; }
.lk-social:hover { background: rgba(245, 192, 0, .2); transform: translateY(-2px); }

.lk-label { display: flex; align-items: center; gap: 2px; margin: 0 0 10px 4px; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.lk-label small { margin-left: auto; margin-right: 4px; font-size: 11px; letter-spacing: .08em; color: #94a3b8; font-weight: 700; }
.lk-label--center { justify-content: center; margin-left: 0; color: #94a3b8; }

/* Partite: una scheda alla volta, si scorre col dito e si intravede la successiva */
.lk-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; scroll-padding: 0 16px; }
.lk-strip::-webkit-scrollbar { display: none; }
.lk-strip.is-single { grid-auto-columns: 100%; }
.lk-slide { scroll-snap-align: start; min-width: 0; display: flex; }
.lk-slide .md-card { flex: 1; }
.lk-slide .md-card[data-state="live"] { animation: lk-live 1.6s ease-in-out infinite; }
@keyframes lk-live { 50% { box-shadow: 0 0 0 1px rgba(239, 68, 68, .7), 0 0 36px rgba(239, 68, 68, .45); } }

/* Pulsanti */
.lk-buttons { display: flex; flex-direction: column; gap: 12px; }
.lk-btn { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(40, 20, 26, .92), rgba(22, 12, 17, .92)); border: 1px solid rgba(197, 0, 15, .35); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease; animation: lk-in .5s ease both; animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
.lk-btn:hover { transform: translateY(-2px) scale(1.01); border-color: var(--yellow); }
.lk-btn:active { transform: scale(.98); }
.lk-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(197, 0, 15, .25); }
.lk-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lk-txt b { font-size: 16px; font-weight: 800; }
.lk-txt small { font-size: 13px; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-arrow { font-size: 18px; color: var(--yellow); font-weight: 800; transition: transform .18s; }
.lk-btn:hover .lk-arrow { transform: translateX(3px); }
.lk-btn.is-highlight { background: linear-gradient(135deg, #f5c000, #e39500); border-color: #ffd84d; color: #1a0508; }
.lk-btn.is-highlight .lk-ico { background: rgba(26, 5, 8, .15); }
.lk-btn.is-highlight small { color: #3d1a00; }
.lk-btn.is-highlight .lk-arrow { color: #1a0508; }
.lk-btn.is-highlight::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-100%); animation: lk-shine 3.5s ease-in-out 1s infinite; }
@keyframes lk-shine { 30%, 100% { transform: translateX(100%); } }
@keyframes lk-in { from { opacity: 0; transform: translateY(12px); } }

/* Sponsor che scorrono */
.lk-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lk-marquee-track { display: flex; gap: 10px; width: max-content; animation: lk-marquee 30s linear infinite; }
.lk-marquee:hover .lk-marquee-track { animation-play-state: paused; }
@keyframes lk-marquee { to { transform: translateX(calc(-50% - 5px)); } }
.lk-sponsor { flex: none; width: 110px; height: 56px; padding: 8px 12px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: #3b1d10; font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; }
.lk-sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; }

.lk-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; text-align: center; }
.lk-foot a, .lk-foot button { color: #cbd5e1; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.lk-foot .lk-site { font-family: Anton, Impact, sans-serif; font-size: 20px; letter-spacing: .03em; color: var(--yellow); }
.lk-credit { color: #64748b; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .lk-bg i, .lk-crest, .lk-crest::before, .lk-btn, .lk-btn.is-highlight::after, .lk-marquee-track, .lk-slide .md-card[data-state="live"] { animation: none; }
}
