/* ==================================================================
   FansSport login — v4 "Túnel" (2026-10-24)
   Split layout: a framed stadium "screen" (photo carousel + scoreboard
   strip synced to the slides) on the left, a calm form column on the
   right. Containers use a double bezel (outer tray + inner core). The
   stage is always dark-graded; the form column follows the theme.
   Loaded only by login.php, after app.css.
 * ================================================================== */
body.lg {
  --lg-ease: cubic-bezier(.32, .72, 0, 1);
  --lg-bg: #07080b;
  --lg-ink: #f4f5f7;
  --lg-dim: rgba(228, 232, 240, .66);
  --lg-mute: rgba(214, 220, 232, .46);
  --lg-tray: rgba(255, 255, 255, .035);
  --lg-tray-line: rgba(255, 255, 255, .08);
  --lg-core: #0d0f14;
  --lg-core-hi: rgba(255, 255, 255, .06);
  --lg-field: #0a0c10;
  --lg-glow: rgba(242, 106, 18, .16);
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--lg-bg);
  color: var(--lg-ink);
  font-family: var(--ff);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] body.lg {
  --lg-bg: #f3f1ec;
  --lg-ink: #14161b;
  --lg-dim: #4a4f5b;
  --lg-mute: #7a7f8a;
  --lg-tray: rgba(20, 22, 27, .035);
  --lg-tray-line: rgba(20, 22, 27, .07);
  --lg-core: #ffffff;
  --lg-core-hi: rgba(255, 255, 255, 1);
  --lg-field: #fbfaf8;
  --lg-glow: rgba(242, 106, 18, .10);
}
/* film grain over everything, fixed and inert */
body.lg::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Stage (left) ---------------- */
.lg-stage {
  position: relative; border-radius: 30px; padding: 7px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  animation: lg-in 1s var(--lg-ease) both;
}
:root[data-theme="light"] .lg-stage { background: rgba(20, 22, 27, .06); box-shadow: inset 0 0 0 1px rgba(20, 22, 27, .06); }
.lg-screen {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100%; min-height: 560px; border-radius: 23px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 3.2vw, 44px);
  background: #05070b; color: #f4f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.lg-slides { position: absolute; inset: 0; z-index: -2; }
.lg-slides i {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center 55%;
  animation: lg-fade 28s cubic-bezier(.4, 0, .2, 1) infinite, lg-zoom 28s cubic-bezier(.2, .6, .3, 1) infinite;
}
.lg-slides i:nth-child(2) { animation-delay: 7s, 7s; }
.lg-slides i:nth-child(3) { animation-delay: 14s, 14s; }
.lg-slides i:nth-child(4) { animation-delay: 21s, 21s; }
@keyframes lg-fade { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes lg-zoom { 0% { transform: scale(1.12); } 30% { transform: scale(1.02); } 100% { transform: scale(1.02); } }
/* grade: dark floor for the headline, warm brand cast, open middle */
.lg-screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5,7,11,.94) 0%, rgba(5,7,11,.55) 34%, rgba(5,7,11,0) 62%),
    linear-gradient(180deg, rgba(5,7,11,.55) 0%, rgba(5,7,11,0) 22%),
    radial-gradient(70% 50% at 0% 100%, rgba(242,106,18,.28), transparent 70%),
    linear-gradient(135deg, rgba(242,106,18,.10), rgba(40,70,190,.10));
}

/* ---- Intro: "lights on" ----
   The screen opens from black (the photos brighten from 0), two floodlight
   beams swing in from the top corners and keep a slow sway, and the pitch
   markings draw themselves. All transform/opacity/stroke — no layout. */
.lg-stage { perspective: 1400px; }
.lg-screen {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--lg-ease);
}
.lg-slides { animation: lg-lights 1.6s .1s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes lg-lights { 0% { opacity: 0; filter: brightness(.2); } 35% { opacity: 1; filter: brightness(1.5); } 100% { opacity: 1; filter: none; } }
.lg-beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.lg-beams b {
  position: absolute; top: -30%; width: 46%; height: 150%;
  background: linear-gradient(180deg, rgba(255,226,190,.34), rgba(255,200,150,.08) 45%, transparent 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(14px); opacity: 0;
  transform-origin: 50% 0;
}
.lg-beams b:nth-child(1) { left: -6%; animation: lg-beam-l 1.5s .2s var(--lg-ease) forwards, lg-sway-l 9s 1.7s ease-in-out infinite alternate; }
.lg-beams b:nth-child(2) { right: -6%; animation: lg-beam-r 1.5s .35s var(--lg-ease) forwards, lg-sway-r 11s 1.85s ease-in-out infinite alternate; }
@keyframes lg-beam-l { from { opacity: 0; transform: rotate(-58deg); } to { opacity: .9; transform: rotate(-24deg); } }
@keyframes lg-beam-r { from { opacity: 0; transform: rotate(58deg); } to { opacity: .75; transform: rotate(26deg); } }
@keyframes lg-sway-l { from { opacity: .9; transform: rotate(-24deg); } to { opacity: .6; transform: rotate(-14deg); } }
@keyframes lg-sway-r { from { opacity: .75; transform: rotate(26deg); } to { opacity: .5; transform: rotate(16deg); } }
.lg-pitch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; color: rgba(255,255,255,.3); }
.lg-pitch * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lg-draw 2.2s .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.lg-pitch :nth-child(2) { animation-delay: .8s; }
.lg-pitch :nth-child(3), .lg-pitch :nth-child(4) { animation-delay: 1s; }
.lg-pitch :nth-child(5), .lg-pitch :nth-child(6) { animation-delay: 1.3s; }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
/* soft light that tracks the pointer across the screen */
.lg-sheen {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background: radial-gradient(420px circle at var(--px, 70%) var(--py, 20%), rgba(255,180,120,.14), transparent 65%);
}
.lg-top > * { animation: lg-rise 1s .4s var(--lg-ease) both; }

.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lg-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.lg-brand img {
  width: 38px; height: 38px; border-radius: 11px; object-fit: contain;
  background: rgba(0,0,0,.35); box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.lg-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: rgba(244,245,247,.86);
}
.lg-live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.lg-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: lg-ping 2.2s var(--lg-ease) infinite; }
@keyframes lg-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }

.lg-copy { max-width: 46rem; }
.lg-headline {
  margin: 0 0 16px;
  font-family: var(--ff-score); font-style: italic; font-weight: 800;
  font-size: clamp(3rem, 6.2vw, 6.4rem); line-height: .86; letter-spacing: -.012em;
  text-transform: uppercase; text-wrap: balance;
  color: #f4f5f7; /* the stage is always dark, whatever the theme */
}
/* masked line reveal: each line slides up out of its own clipping box */
.lg-headline .ln { display: block; overflow: hidden; padding: 0 .06em .04em 0; margin-bottom: -.04em; }
.lg-headline .ln > span { display: block; transform: translateY(105%); animation: lg-line 1.2s .55s var(--lg-ease) forwards; }
.lg-headline .ln:nth-child(2) > span { animation-delay: .68s; }
@keyframes lg-line { to { transform: none; } }
.lg-headline em { font-style: inherit; color: #ff8a3d; }
.lg-lead { margin: 0 0 28px; max-width: 27rem; color: rgba(228,232,240,.72); font-size: 1rem; line-height: 1.55; animation: lg-rise 1.1s .9s var(--lg-ease) both; }

/* scoreboard strip: one segment per slide, filling in sync */
.lg-board {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: 6px; border-radius: 18px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: lg-rise 1.1s 1.02s var(--lg-ease) both;
}
.lg-board li {
  position: relative; overflow: hidden; list-style: none;
  padding: 11px 12px 13px; border-radius: 12px;
  background: rgba(5,7,11,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.lg-board b { display: block; font-family: var(--ff-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: #ff8a3d; }
.lg-board span { display: block; margin-top: 3px; font-size: .84rem; font-weight: 500; color: rgba(244,245,247,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-board li::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px;
  background: #ff8a3d; transform: scaleX(0); transform-origin: left;
  animation: lg-fill 28s linear infinite;
}
.lg-board li:nth-child(2)::after { animation-delay: 7s; }
.lg-board li:nth-child(3)::after { animation-delay: 14s; }
.lg-board li:nth-child(4)::after { animation-delay: 21s; }
@keyframes lg-fill { 0% { transform: scaleX(0); } 25% { transform: scaleX(1); } 25.1%, 100% { transform: scaleX(0); } }

/* ---------------- Form column (right) ---------------- */
.lg-side {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 72px clamp(20px, 4vw, 64px) 28px;
}
.lg-side::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 38%, var(--lg-glow), transparent 70%);
}
.lg-theme {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lg-tray); box-shadow: inset 0 0 0 1px var(--lg-tray-line);
  color: var(--lg-dim);
  transition: color .4s var(--lg-ease), transform .5s var(--lg-ease), background .4s var(--lg-ease);
}
.lg-theme:hover { color: var(--lg-ink); transform: rotate(-18deg); }
.lg-theme:active { transform: scale(.94); }
.lg-theme svg { width: 18px; height: 18px; }
.lg-theme .icon-sun { display: none; }
:root[data-theme="light"] .lg-theme .icon-sun { display: block; }
:root[data-theme="light"] .lg-theme .icon-moon { display: none; }

.lg-form { width: 100%; max-width: 400px; }
.lg-form > :not(.alert) { animation: lg-rise .9s .3s var(--lg-ease) both; }
.lg-form > :nth-child(2) { animation-delay: .36s; }
.lg-form > :nth-child(3) { animation-delay: .42s; }
.lg-form > :nth-child(4) { animation-delay: .48s; }
.lg-form > :nth-child(5) { animation-delay: .54s; }
.lg-form > :nth-child(6) { animation-delay: .60s; }
.lg-form > :nth-child(n+7) { animation-delay: .66s; }

.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-hi); background: var(--accent-weak); box-shadow: inset 0 0 0 1px var(--accent-line);
}
.lg-eyebrow svg { width: 13px; height: 13px; }
.lg-title { margin: 0 0 10px; font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 650; line-height: 1.04; letter-spacing: -.035em; color: var(--lg-ink); text-wrap: balance; }
.lg-sub { margin: 0 0 34px; font-size: .95rem; line-height: 1.5; color: var(--lg-dim); }

.lg-form .field { margin-bottom: 16px; }
.lg-form label { display: block; margin: 0 0 8px 4px; font-size: .8rem; font-weight: 550; color: var(--lg-dim); }
/* double-bezel field: tray + core */
.lg-input {
  position: relative; padding: 4px; border-radius: 18px;
  background: var(--lg-tray); box-shadow: inset 0 0 0 1px var(--lg-tray-line);
  transition: background .45s var(--lg-ease), box-shadow .45s var(--lg-ease);
}
.lg-input:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-tray-line) 50%, var(--lg-ink) 14%); }
.lg-input:focus-within { background: var(--accent-weak); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 4px rgba(242,106,18,.08); }
.lg-input > svg.lead {
  position: absolute; left: 19px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--lg-mute); pointer-events: none;
  transition: color .4s var(--lg-ease);
}
.lg-input:focus-within > svg.lead { color: var(--accent-hi); }
.lg-form .lg-input input {
  width: 100%; min-height: 50px; margin: 0;
  padding: 0 16px 0 46px; border: 0; border-radius: 14px;
  font: inherit; font-size: 1rem; color: var(--lg-ink);
  background: var(--lg-field);
  box-shadow: inset 0 1px 0 var(--lg-core-hi), 0 1px 2px rgba(0,0,0,.12);
  outline: none;
}
.lg-form .lg-input input:hover, .lg-form .lg-input input:focus { border: 0; box-shadow: inset 0 1px 0 var(--lg-core-hi), 0 1px 2px rgba(0,0,0,.12); }
.lg-form .lg-input input::placeholder { color: var(--lg-mute); }
.lg-form .lg-input input:-webkit-autofill,
.lg-form .lg-input input:-webkit-autofill:hover,
.lg-form .lg-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lg-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--lg-field) inset;
  caret-color: var(--lg-ink);
}
.lg-form .lg-input input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px rgba(244,63,94,.45); }
.lg-form .pw input { padding-right: 52px; }
.lg-form .toggle-password {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  color: var(--lg-mute); transition: color .3s var(--lg-ease), background .3s var(--lg-ease);
}
.lg-form .toggle-password:hover { color: var(--lg-ink); background: var(--lg-tray); }
.lg-form .toggle-password svg { width: 19px; height: 19px; }
.lg-form .toggle-password .eye-off { display: none; }
.lg-form .toggle-password[aria-pressed="true"] .eye-on { display: none; }
.lg-form .toggle-password[aria-pressed="true"] .eye-off { display: block; }
.lg-form .toggle-password:focus-visible, .lg-theme:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.caps-hint { display: flex; align-items: center; gap: 6px; margin: 8px 0 0 4px; font-size: .78rem; color: #fbbf24; }
:root[data-theme="light"] .caps-hint { color: #b45309; }
.caps-hint svg { width: 14px; height: 14px; }
.caps-hint[hidden] { display: none; }

.lg-form .alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 20px; padding: 12px 14px; border-radius: 16px; border: 0;
  font-size: .88rem; line-height: 1.4;
  background: rgba(244,63,94,.10); box-shadow: inset 0 0 0 1px rgba(244,63,94,.32); color: #ffc9d3;
  animation: lg-rise .6s var(--lg-ease) both, lg-shake .42s .1s var(--lg-ease) both;
}
.lg-form .alert.lg-notice {
  background: var(--accent-weak); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--lg-ink);
  animation: lg-rise .6s .3s var(--lg-ease) both;
}
:root[data-theme="light"] .lg-form .alert.lg-notice { background: var(--accent-weak); color: var(--lg-ink); }
.lg-form .alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
:root[data-theme="light"] .lg-form .alert { background: rgba(225,29,72,.07); color: #9f1239; }
@keyframes lg-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.auth-captcha { display: flex; justify-content: center; margin: 4px 0 12px; }

/* pill CTA with the arrow in its own island */
.lg-submit {
  position: relative; overflow: hidden;
  width: 100%; min-height: 58px; margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -.005em;
  color: #fff; background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 40px -16px rgba(242,106,18,.75);
  transition: transform .5s var(--lg-ease), background .4s var(--lg-ease), box-shadow .5s var(--lg-ease), opacity .3s;
}
.lg-submit:hover { background: var(--accent-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 22px 48px -16px rgba(242,106,18,.85); }
.lg-submit:active { transform: scale(.98); }
.lg-submit:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.lg-submit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-110%);
}
.lg-submit:hover::after { transform: translateX(110%); transition: transform .9s var(--lg-ease); }
.lg-submit .orb {
  flex: none; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .5s var(--lg-ease), background .4s var(--lg-ease);
}
.lg-submit:hover .orb { transform: translateX(2px) scale(1.05); background: rgba(0,0,0,.22); }
.lg-submit .arrow { width: 18px; height: 18px; }
.lg-submit .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lg-spin .7s linear infinite; }
.lg-submit.is-loading { pointer-events: none; }
.lg-submit.is-loading .spin { display: block; }
.lg-submit.is-loading .arrow { display: none; }
.lg-submit:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.lg-submit:disabled .arrow { display: none; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

/* secondary pill (passkey button, retry link) */
.lg-submit.lg-alt { color: var(--lg-ink); background: var(--lg-tray); box-shadow: inset 0 0 0 1px var(--lg-tray-line); text-decoration: none; }
.lg-submit.lg-alt:hover { background: var(--accent-weak); box-shadow: inset 0 0 0 1px var(--accent-line); }
.lg-submit.lg-alt .orb { background: var(--accent); color: #fff; box-shadow: none; }
.lg-submit.lg-alt .orb svg { width: 18px; height: 18px; }
.lg-submit[hidden] { display: none; }
.lg-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: .78rem; color: var(--lg-mute); }
.lg-divider::before, .lg-divider::after { content: ""; flex: 1; height: 1px; background: var(--lg-tray-line); }
.lg-link { display: block; margin-top: 20px; text-align: center; font-size: .84rem; color: var(--lg-dim); text-decoration: none; transition: color .3s var(--lg-ease); }
.lg-link:hover { color: var(--accent-hi); }
.lg-link:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
/* 6-digit code: big mono digits, no leading icon */
.lg-form .lg-code input {
  padding: 0 16px; text-align: center;
  font-family: var(--ff-mono); font-size: 1.6rem; font-weight: 600; letter-spacing: .5em; text-indent: .5em;
}
.lg-form .lg-code input::placeholder { letter-spacing: .5em; }
/* security_check progress */
.lg-progress { height: 4px; border-radius: 99px; background: var(--lg-tray); box-shadow: inset 0 0 0 1px var(--lg-tray-line); overflow: hidden; margin: 6px 0 14px; }
.lg-progress i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transform: scaleX(.12); transform-origin: left; transition: transform .9s var(--lg-ease); }
.lg-progress i.go { transform: scaleX(1); }
.lg-progress i.fail { background: #f43f5e; transform: scaleX(1); }
.lg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.lg-steps li { font-size: .78rem; font-weight: 500; color: var(--lg-mute); transition: color .4s var(--lg-ease); }
.lg-steps li:nth-child(2) { text-align: center; }
.lg-steps li:nth-child(3) { text-align: right; }
.lg-steps li.done { color: var(--accent-hi); }
#scRetry { margin-top: 22px; }

.lg-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 22px;
  font-size: .76rem; color: var(--lg-mute);
}
.lg-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lg-meta svg { width: 14px; height: 14px; }
.lg-foot { padding-top: 36px; font-family: var(--ff-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; color: var(--lg-mute); text-align: center; }

@keyframes lg-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------------- Responsive ---------------- */
/* the form sits centred in its column; the footer stays at the bottom */
.lg-side > .lg-form { margin-block: auto; }

/* big monitors: the form grows with the stage instead of staying a 400px strip */
@media (min-width: 1600px) {
  body.lg { grid-template-columns: minmax(0, 1.3fr) minmax(480px, 1fr); }
  .lg-form { max-width: 460px; }
  .lg-title { font-size: 2.9rem; }
  .lg-sub { font-size: 1.02rem; }
  .lg-form .lg-input input { min-height: 56px; font-size: 1.05rem; }
  .lg-submit { min-height: 62px; font-size: 1.05rem; }
}
@media (min-width: 2200px) {
  .lg-form { max-width: 520px; }
  .lg-title { font-size: 3.3rem; }
  .lg-headline { font-size: 7.4rem; }
}
@media (max-width: 1180px) {
  .lg-board span { font-size: .78rem; }
}
/* tablets + phones: stage becomes a banner on top, form below */
@media (max-width: 960px) {
  body.lg {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start;
    gap: 0; padding: 10px; overflow-x: hidden;
  }
  .lg-side, .lg-stage { min-width: 0; }
  .lg-screen { min-height: clamp(170px, 28vh, 300px); height: auto; padding: 20px 20px 22px; gap: 40px; }
  .lg-headline { font-size: clamp(2.4rem, 9vw, 3.6rem); margin-bottom: 0; }
  .lg-lead, .lg-board { display: none; }
  .lg-pill { display: none; }
  .lg-side { padding: 34px 8px 18px; }
  .lg-theme { position: fixed; top: 18px; right: 18px; z-index: 2; background: rgba(5,7,11,.35); color: #e8ebf0; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
  .lg-sub { margin-bottom: 26px; }
  .lg-foot { padding-top: 28px; }
  /* zoom under blur repaints every frame on phones: crossfade only */
  .lg-slides i { animation: lg-fade 28s cubic-bezier(.4, 0, .2, 1) infinite; transform: scale(1.02); }
  .lg-slides i:nth-child(2) { animation-delay: 7s; }
  .lg-slides i:nth-child(3) { animation-delay: 14s; }
  .lg-slides i:nth-child(4) { animation-delay: 21s; }
}
/* small or short phones: tighter banner and spacing so the button is on screen */
@media (max-width: 960px) and (max-height: 760px), (max-width: 380px) {
  .lg-screen { min-height: 0; padding: 16px 16px 18px; gap: 26px; border-radius: 20px; }
  .lg-stage { border-radius: 26px; padding: 5px; }
  .lg-brand img { width: 32px; height: 32px; border-radius: 9px; }
  .lg-headline { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .lg-side { padding: 22px 4px 12px; }
  .lg-eyebrow { margin-bottom: 14px; }
  .lg-title { font-size: 1.75rem; margin-bottom: 6px; }
  .lg-sub { font-size: .9rem; margin-bottom: 18px; }
  .lg-form .field { margin-bottom: 12px; }
  .lg-form label { margin-bottom: 6px; }
  .lg-form .lg-input input { min-height: 48px; }
  .lg-submit { min-height: 54px; }
  .lg-meta { margin-top: 16px; }
  .lg-foot { padding-top: 18px; }
  .lg-theme { top: 14px; right: 14px; width: 36px; height: 36px; }
}
/* very short phones (iPhone SE class): drop the extras so the button fits */
@media (max-width: 960px) and (max-height: 640px) {
  .lg-eyebrow, .lg-meta { display: none; }
  .lg-screen { gap: 18px; }
  .lg-side { padding-top: 16px; }
}
/* phones held sideways: no room for the stage at all — form only */
@media (max-height: 520px) and (orientation: landscape) {
  body.lg { grid-template-rows: 1fr; padding: 0; }
  .lg-stage { display: none; }
  .lg-side { padding: 14px 64px 10px; }
  .lg-form { max-width: 480px; }
  .lg-eyebrow, .lg-meta, .lg-foot { display: none; }
  .lg-title { font-size: 1.5rem; margin-bottom: 2px; }
  .lg-sub { margin-bottom: 12px; }
  .lg-form .field { margin-bottom: 8px; }
  .lg-form label { margin-bottom: 4px; }
  .lg-form .lg-input input { min-height: 44px; }
  .lg-submit { min-height: 50px; margin-top: 6px; }
  .lg-theme { position: absolute; top: 12px; right: 12px; background: var(--lg-tray); color: var(--lg-dim); box-shadow: inset 0 0 0 1px var(--lg-tray-line); }
}
@media (prefers-reduced-motion: reduce) {
  body.lg *, body.lg *::before, body.lg *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .lg-slides i, .lg-board li::after, .lg-live::after, .lg-submit .spin, .lg-beams b { animation: none !important; }
  .lg-beams b { opacity: .6; }
  .lg-pitch * { stroke-dashoffset: 0; }
  .lg-headline .ln > span { transform: none; }
  .lg-slides i:first-child { opacity: 1; }
}
