/* /link/ - dedicated Steam + Discord linking (owner 2026-10-10). Big, plain steps for players who arrive mid-ticket.
   The art is the Connections card's link-up motif (profile-editor.css .pe-la-*), carried over with an ln- prefix. */
.ln {
  --ln-gold: #e6c84a; --ln-gold-hi: #ffe08a; --ln-blurple: #5865f2; --ln-blurple-hi: #8b95ff; --ln-ok: #7dffb0; --ln-bad: #ff6b81;
  --ln-card: #141824; --ln-card-2: #1b2030; --ln-line: #2a3146; --ln-text: #f4f7ff; --ln-muted: #aab4ca;
  position: relative; overflow: hidden; padding: 0 0 4rem; color: var(--ln-text);
  background:
    radial-gradient(60rem 26rem at 50% -6rem, rgba(230, 200, 74, 0.10), transparent 70%),
    radial-gradient(40rem 22rem at 85% 18rem, rgba(88, 101, 242, 0.10), transparent 70%);
}
.ln *, .ln *::before, .ln *::after { box-sizing: border-box; }
.ln-wrap { width: min(760px, 100% - 32px); margin: 0 auto; }

/* ---------- hero ---------- */
.ln-hero { padding: 2.6rem 0 0.6rem; text-align: center; }
.ln-kicker { margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ln-gold); }
.ln-title { margin: 0; font-family: "Cinzel", serif; font-weight: 700; font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.08; letter-spacing: 0.01em; }
.ln-title b { font-weight: inherit; background: linear-gradient(90deg, var(--ln-gold-hi), #fff 50%, var(--ln-blurple-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ln-sub { max-width: 34rem; margin: 0.8rem auto 0; color: var(--ln-muted); font-size: 1.05rem; line-height: 1.55; }

/* ---------- the art: Steam and Discord emblems, joined by a beam once linked ---------- */
.ln-art { max-width: 520px; margin: 1.2rem auto 0.4rem; }
.ln-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.ln-la-em, .ln-la-node, .ln-la-glow, .ln-la-burst circle { transform-box: fill-box; transform-origin: center; }
.ln-la-disc { fill: #1b1e2a; stroke: rgba(255, 255, 255, 0.14); stroke-width: 2; transition: fill 0.5s ease, stroke 0.5s ease; }
.ln-la-em { color: #7d879d; transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2), color 0.5s ease; }
.ln-la-em.is-steam { transform: translateX(-10px); }
.ln-la-em.is-discord { transform: translateX(10px); }
.ln-la-glow { opacity: 0; transition: opacity 0.6s ease; }
.ln-la-gap { fill: none; stroke: #3a4054; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 7; animation: ln-la-drift 3s linear infinite; transition: stroke 0.3s ease; }
.ln-la-beam { opacity: 0; transition: opacity 0.4s ease; }
.ln-la-core { fill: none; stroke: url(#lnBeam); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45)); }
.ln-la-flow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 16; opacity: 0.85; animation: ln-la-flow 1.4s linear infinite; }
.ln-la-node-ring { fill: #1b1e2a; stroke: #3a4054; stroke-width: 2.5; transition: stroke 0.4s ease; }
.ln-la-node-tick { fill: none; stroke: var(--ln-ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.4s ease; }
.ln-la-burst circle { opacity: 0; fill: var(--ln-gold-hi); }
.ln-la-burst circle:nth-child(3n + 2) { fill: var(--ln-blurple-hi); }
.ln-la-burst circle:nth-child(3n) { fill: #fff; }
/* signed in with Steam: the Steam emblem lights */
.ln.is-steam .ln-la-em.is-steam { color: var(--ln-gold-hi); }
.ln.is-steam .ln-la-em.is-steam .ln-la-disc { stroke: rgba(230, 200, 74, 0.7); }
.ln.is-steam .ln-la-em.is-steam .ln-la-glow { opacity: 0.7; }
/* hovering or focusing Link Discord pulls the emblems together */
.ln.is-hint:not(.is-linked) .ln-la-em.is-steam { transform: translateX(-3px); }
.ln.is-hint:not(.is-linked) .ln-la-em.is-discord { transform: translateX(3px); color: #c9cfdc; }
.ln.is-hint:not(.is-linked) .ln-la-gap { stroke: var(--ln-blurple-hi); animation-duration: 0.9s; }
/* linked */
.ln.is-linked .ln-la-em { transform: none; }
.ln.is-linked .ln-la-em.is-steam { color: var(--ln-gold-hi); }
.ln.is-linked .ln-la-em.is-steam .ln-la-disc { stroke: rgba(230, 200, 74, 0.7); }
.ln.is-linked .ln-la-em.is-discord { color: #fff; }
.ln.is-linked .ln-la-em.is-discord .ln-la-disc { fill: var(--ln-blurple); stroke: rgba(139, 149, 255, 0.8); }
.ln.is-linked .ln-la-glow { opacity: 1; animation: ln-la-breathe 3.2s ease-in-out infinite; }
.ln.is-linked .ln-la-gap { opacity: 0; animation: none; }
.ln.is-linked .ln-la-beam { opacity: 1; }
.ln.is-linked .ln-la-node-ring { stroke: var(--ln-ok); }
.ln.is-linked .ln-la-node-tick { opacity: 1; }
/* the link-up, once, right after Discord sends you back linked */
.ln.is-celebrate .ln-la-core { stroke-dasharray: 168; animation: ln-la-draw 0.9s cubic-bezier(0.6, 0, 0.2, 1) both; }
.ln.is-celebrate .ln-la-flow { animation-delay: 0.9s; }
.ln.is-celebrate .ln-la-node { animation: ln-la-pop 0.6s 0.8s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.ln.is-celebrate .ln-la-glow { animation: ln-la-flash 1.2s 0.85s ease-out both; }
.ln.is-celebrate .ln-la-burst circle { animation: ln-la-burst 1.1s 0.9s ease-out both; }
.ln-la-burst circle:nth-child(1) { --dx: 46px; --dy: 0px; }
.ln-la-burst circle:nth-child(2) { --dx: 37px; --dy: 27px; }
.ln-la-burst circle:nth-child(3) { --dx: 14px; --dy: 44px; }
.ln-la-burst circle:nth-child(4) { --dx: -14px; --dy: 44px; }
.ln-la-burst circle:nth-child(5) { --dx: -37px; --dy: 27px; }
.ln-la-burst circle:nth-child(6) { --dx: -46px; --dy: 0px; }
.ln-la-burst circle:nth-child(7) { --dx: -37px; --dy: -27px; }
.ln-la-burst circle:nth-child(8) { --dx: -14px; --dy: -44px; }
.ln-la-burst circle:nth-child(9) { --dx: 14px; --dy: -44px; }
.ln-la-burst circle:nth-child(10) { --dx: 37px; --dy: -27px; }

/* ---------- notice ---------- */
.ln-notice { display: flex; gap: 0.8rem; align-items: flex-start; margin: 0.6rem 0 1rem; padding: 0.9rem 1.1rem; border-radius: 14px; border: 1px solid var(--ln-line); background: var(--ln-card); font-size: 0.98rem; line-height: 1.45; }
.ln-notice[hidden], .ln-act[hidden] { display: none; }
.ln-notice b { display: block; font-size: 1.02rem; }
.ln-notice span { color: var(--ln-muted); }
.ln-notice .ln-ni { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; }
.ln-notice.is-ok { border-color: rgba(125, 255, 176, 0.4); background: rgba(125, 255, 176, 0.06); } .ln-notice.is-ok .ln-ni { color: var(--ln-ok); }
.ln-notice.is-bad { border-color: rgba(255, 107, 129, 0.45); background: rgba(255, 107, 129, 0.07); } .ln-notice.is-bad .ln-ni { color: var(--ln-bad); }
.ln-notice.is-info .ln-ni { color: var(--ln-blurple-hi); }

/* ---------- steps ---------- */
.ln-steps { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.9rem; counter-reset: none; }
.ln-step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.4rem 1.4rem 1.5rem; border-radius: 20px; background: linear-gradient(180deg, var(--ln-card-2), var(--ln-card)); border: 1px solid var(--ln-line); transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, padding 0.3s ease; }
.ln-step + .ln-step::before { content: ""; position: absolute; left: calc(1.4rem + 31px); top: calc(-0.9rem - 1px); width: 2px; height: calc(0.9rem + 2px); background: var(--ln-line); }
.ln-num { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-family: "Inter", system-ui, sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--ln-muted); background: #0f121b; border: 2px solid var(--ln-line); }
.ln-num svg { width: 30px; height: 30px; }
.ln-step h2 { margin: 0.35rem 0 0.25rem; font-family: "Cinzel", serif; font-size: clamp(1.3rem, 3.6vw, 1.65rem); font-weight: 700; line-height: 1.2; }
.ln-step p { margin: 0; color: var(--ln-muted); font-size: 1rem; line-height: 1.5; }
.ln-act { margin-top: 1rem; }
.ln-act:empty { display: none; }
/* current step: lit gold (Steam) or blurple (Discord) */
.ln-step.is-current { border-color: rgba(230, 200, 74, 0.55); box-shadow: 0 0 0 1px rgba(230, 200, 74, 0.25), 0 18px 50px -18px rgba(230, 200, 74, 0.35); }
.ln-step.is-current .ln-num { color: #1a1405; background: var(--ln-gold); border-color: var(--ln-gold-hi); box-shadow: 0 0 0 6px rgba(230, 200, 74, 0.14); }
.ln-step[data-step="2"].is-current { border-color: rgba(88, 101, 242, 0.65); box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.3), 0 18px 50px -18px rgba(88, 101, 242, 0.5); }
.ln-step[data-step="2"].is-current .ln-num { color: #fff; background: var(--ln-blurple); border-color: var(--ln-blurple-hi); box-shadow: 0 0 0 6px rgba(88, 101, 242, 0.18); }
/* done: compact, a green tick in the number */
.ln-step.is-done { padding-top: 1rem; padding-bottom: 1rem; }
.ln-step.is-done .ln-num { width: 48px; height: 48px; margin: 8px; color: #0b2014; background: var(--ln-ok); border-color: #b9ffd5; }
.ln-step.is-done h2 { font-size: 1.15rem; margin-top: 0.2rem; }
.ln-step.is-done .ln-act { margin-top: 0.55rem; }
/* waiting: dimmed */
.ln-step.is-locked { opacity: 0.55; }
.ln-step.is-locked .ln-num { border-style: dashed; }
/* linked: steps 1 and 2 step aside (the pair below shows both accounts), so the finish card sits right under the art */
.ln.is-linked .ln-step:not([data-step="3"]) { display: none; }
.ln.is-linked .ln-step::before { display: none; }
/* step 3 when linked: the finish line */
.ln-step[data-step="3"].is-done { padding: 1.5rem 1.4rem 1.6rem; border-color: rgba(125, 255, 176, 0.45); box-shadow: 0 0 0 1px rgba(125, 255, 176, 0.2), 0 18px 60px -20px rgba(125, 255, 176, 0.35); }
.ln-step[data-step="3"].is-done .ln-num { width: 64px; height: 64px; margin: 0; }
.ln-step[data-step="3"].is-done h2 { font-size: clamp(1.45rem, 4.2vw, 1.9rem); margin-top: 0.4rem; }

/* ---------- buttons ---------- */
.ln-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 56px; padding: 0.85rem 1.6rem; border-radius: 14px; border: 0; font: inherit; font-size: 1.08rem; font-weight: 700; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.ln-btn svg { width: 24px; height: 24px; flex: 0 0 auto; }
.ln-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.6s ease; pointer-events: none; }
.ln-btn:hover, .ln-btn:focus-visible { transform: translateY(-1px); }
.ln-btn:hover::after, .ln-btn:focus-visible::after { transform: translateX(120%); }
.ln-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ln-btn.is-steam { color: #fff; background: linear-gradient(180deg, #2a475e, #171a21); border: 1px solid #66c0f4; box-shadow: 0 8px 26px -10px rgba(102, 192, 244, 0.6); }
.ln-btn.is-steam:hover, .ln-btn.is-steam:focus-visible { box-shadow: 0 10px 30px -8px rgba(102, 192, 244, 0.75); }
.ln-btn.is-discord { color: #fff; background: var(--ln-blurple); box-shadow: 0 8px 26px -10px rgba(88, 101, 242, 0.8); }
.ln-btn.is-discord:hover, .ln-btn.is-discord:focus-visible { box-shadow: 0 10px 32px -8px rgba(88, 101, 242, 0.95); }
.ln-btn[aria-disabled="true"], .ln-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.ln-btn.is-quiet { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.92rem; font-weight: 600; color: var(--ln-muted); background: transparent; border: 1px solid var(--ln-line); }
.ln-btn.is-quiet::after { display: none; }
.ln-btn.is-quiet:hover, .ln-btn.is-quiet:focus-visible { color: var(--ln-text); border-color: #4a5370; }
.ln-btn.is-danger { color: #fff; background: #b8384d; min-height: 40px; padding: 0.45rem 1rem; font-size: 0.92rem; }
.ln-btn.is-danger::after { display: none; }
@media (max-width: 520px) { .ln-step:not(.is-done) .ln-btn:not(.is-quiet):not(.is-danger) { width: 100%; } }

/* who you are on each side */
.ln-who { display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%; padding: 0.35rem 0.85rem 0.35rem 0.35rem; border-radius: 999px; background: #0f121b; border: 1px solid var(--ln-line); font-weight: 600; }
.ln-who img, .ln-who .ln-av { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.ln-who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-av { display: grid; place-items: center; background: #252a3a; color: #c9cfdc; }
.ln-av svg { width: 18px; height: 18px; }
.ln-who.is-discord .ln-av { background: var(--ln-blurple); color: #fff; }

/* step 3: the pair */
.ln-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.6rem; margin: 1.1rem 0 0.2rem; padding: 1rem; border-radius: 16px; background: #0d1018; border: 1px solid var(--ln-line); }
.ln-side { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.ln-side.is-discord { flex-direction: row-reverse; text-align: right; }
.ln-side img, .ln-side .ln-av { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.ln-side .ln-av svg { width: 26px; height: 26px; }
.ln-side.is-steam img, .ln-side.is-steam .ln-av { box-shadow: 0 0 0 2px var(--ln-gold); }
.ln-side.is-discord img, .ln-side.is-discord .ln-av { box-shadow: 0 0 0 2px var(--ln-blurple); }
.ln-side.is-discord .ln-av { background: var(--ln-blurple); color: #fff; }
.ln-side-t { min-width: 0; }
.ln-side-t small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ln-muted); }
.ln-side.is-steam small { color: var(--ln-gold); } .ln-side.is-discord small { color: var(--ln-blurple-hi); }
.ln-side-t b { display: block; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-side-t em { display: block; font-style: normal; font-size: 0.85rem; color: var(--ln-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-chain { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #0b2014; background: var(--ln-ok); box-shadow: 0 0 0 5px rgba(125, 255, 176, 0.15); }
.ln-chain svg { width: 22px; height: 22px; }
.ln-when { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--ln-muted); }
.ln-back { display: flex; align-items: center; gap: 0.75rem; margin: 1.1rem 0 0; padding: 0.95rem 1.1rem; border-radius: 14px; background: rgba(88, 101, 242, 0.12); border: 1px solid rgba(139, 149, 255, 0.4); font-size: 1.08rem; font-weight: 700; color: #fff; }
.ln-back svg { width: 28px; height: 28px; flex: 0 0 auto; color: var(--ln-blurple-hi); }
.ln-unlink { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.1rem; }
.ln-unlink p { flex: 1 1 100%; margin: 0; font-size: 0.92rem; color: #ffc2cc; }
@media (max-width: 520px) {
  .ln-step { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; padding: 1.1rem 1rem 1.2rem; }
  .ln-step + .ln-step::before { display: none; }
  .ln-step-head { display: flex; align-items: center; gap: 0.8rem; }
  .ln-num { width: 48px; height: 48px; font-size: 1.3rem; }
  .ln-step.is-done .ln-num { width: 40px; height: 40px; margin: 0; }
  .ln-step[data-step="3"].is-done .ln-num { width: 48px; height: 48px; }
  .ln-step[data-step="3"].is-done { padding: 1.2rem 1rem 1.3rem; }
  .ln-pair { gap: 0.4rem; padding: 0.9rem 0.6rem; }
  .ln-side, .ln-side.is-discord { flex-direction: column; text-align: center; gap: 0.45rem; }
  .ln-side img, .ln-side .ln-av { width: 46px; height: 46px; }
  .ln-side-t { max-width: 100%; }
  .ln-chain { width: 34px; height: 34px; }
  .ln-chain svg { width: 18px; height: 18px; }
}
/* desktop: the number sits beside the text; phones: beside the title only (.ln-step-head wraps number + title) */
@media (min-width: 521px) {
  .ln-step { row-gap: 0; }
  .ln-step-head { display: contents; }
  .ln-step > *, .ln-step-head > * { grid-column: 2; }
  .ln-step .ln-num { grid-column: 1; grid-row: 1 / span 3; }
}
@media (max-width: 520px) { .ln-step { row-gap: 0.2rem; } .ln-step-head h2 { margin: 0; } .ln-step > p { margin-top: 0.2rem; } }

/* ---------- why we ask ---------- */
.ln-why { margin: 2.4rem 0 0; padding: 1.6rem 1.4rem 1.5rem; border-radius: 20px; background: var(--ln-card); border: 1px solid var(--ln-line); }
.ln-why h2 { margin: 0 0 1rem; font-family: "Cinzel", serif; font-size: 1.45rem; }
.ln-why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.ln-why li { padding: 1rem; border-radius: 14px; background: #0f121b; border: 1px solid var(--ln-line); }
.ln-why li svg { width: 30px; height: 30px; color: var(--ln-gold); }
.ln-why li:nth-child(2) svg { color: var(--ln-ok); } .ln-why li:nth-child(3) svg { color: var(--ln-blurple-hi); }
.ln-why b { display: block; margin: 0.45rem 0 0.25rem; font-size: 1.02rem; }
.ln-why li span { display: block; color: var(--ln-muted); font-size: 0.93rem; line-height: 1.5; }
.ln-privacy { display: flex; align-items: center; gap: 0.8rem; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 14px; text-decoration: none; color: var(--ln-text); background: rgba(230, 200, 74, 0.08); border: 1px solid rgba(230, 200, 74, 0.45); transition: background 0.2s ease, transform 0.15s ease; }
.ln-privacy:hover, .ln-privacy:focus-visible { background: rgba(230, 200, 74, 0.14); transform: translateY(-1px); }
.ln-privacy svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--ln-gold); }
.ln-privacy b { display: block; font-size: 1.02rem; }
.ln-privacy small { display: block; color: var(--ln-muted); font-size: 0.85rem; }
.ln-privacy .ln-arrow { margin-left: auto; width: 20px; height: 20px; color: var(--ln-gold); }
@media (max-width: 760px) { .ln-why ul { grid-template-columns: minmax(0, 1fr); } }

/* loading */
.ln[data-state="loading"] .ln-act { min-height: 56px; border-radius: 14px; background: linear-gradient(90deg, #171b28 0%, #20263a 50%, #171b28 100%); background-size: 200% 100%; animation: ln-shimmer 1.2s linear infinite; }

@keyframes ln-la-drift { to { stroke-dashoffset: -20; } }
@keyframes ln-la-flow { to { stroke-dashoffset: -36; } }
@keyframes ln-la-breathe { 50% { opacity: 0.55; } }
@keyframes ln-la-draw { from { stroke-dashoffset: 168; } to { stroke-dashoffset: 0; } }
@keyframes ln-la-pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes ln-la-flash { 0% { opacity: 0.4; transform: scale(0.9); } 30% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ln-la-burst { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); } }
@keyframes ln-shimmer { to { background-position: -200% 0; } }
@keyframes ln-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ln.is-celebrate .ln-step[data-step="3"] { animation: ln-rise 0.6s 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }

@media (prefers-reduced-motion: reduce) {
  .ln-la-gap, .ln-la-flow, .ln.is-linked .ln-la-glow, .ln[data-state="loading"] .ln-act { animation: none; }
  .ln.is-celebrate .ln-la-core, .ln.is-celebrate .ln-la-node, .ln.is-celebrate .ln-la-glow, .ln.is-celebrate .ln-la-burst circle, .ln.is-celebrate .ln-step[data-step="3"] { animation: none; }
  .ln-la-em, .ln-la-glow, .ln-la-beam, .ln-la-disc, .ln-la-gap, .ln-la-node-ring, .ln-la-node-tick, .ln-btn, .ln-btn::after, .ln-step, .ln-privacy { transition: none; }
}
