/*
 * css/landing.css - the public landing / sign-in page (login.php), 2026-10-08 revamp;
 * Direction A header + graffiti accents merged 2026-10-08 (feature/header-a).
 * Same palette as the in-game revamps (css/home.css, css/chat.css). Everything is
 * scoped under #ld; login.php doesn't load front_styles.css, so nothing from the old
 * fixed-width guest layout applies here.
 */
body.ld-body {
  margin: 0;
  /* Direction A accents (Oct 8): purple/teal glows behind the charcoal page. */
  background:
    radial-gradient(50% 40% at 8% 18%, rgba(155,107,255,.10), transparent 70%),
    radial-gradient(45% 40% at 95% 30%, rgba(47,195,207,.08), transparent 70%),
    radial-gradient(120% 60% at 50% 0%, #22252a 0%, #0f1012 70%) #0f1012 no-repeat;
  min-height: 100vh;
}
#ld {
  --ink:#0f1012; --steel:#17191c; --steel2:#1f2226; --steel3:#2a2e33; --line:#33383e;
  --text:#e7e3dc; --muted:#a19d95; --dim:#77736c;
  --amber:#dc8100; --amber-hi:#ffad33; --cash:#5fae5a;
  /* Graffiti accents from header Direction A (Marc, Oct 8). Amber stays primary actions. */
  --teal:#2fc3cf; --teal-hi:#63dbe4; --purple:#9b6bff; --magenta:#e8457f;
  --wire:#4fd3dc; /* was steel-blue; now teal so links match the spray */
  --head: "Oswald", "Bahnschrift SemiCondensed", "Bahnschrift", "Arial Narrow", sans-serif;
  color: var(--text);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  text-align: left;
}
#ld *, #ld *::before, #ld *::after { box-sizing: border-box; }
#ld h1, #ld h2, #ld h3, #ld p, #ld ul { margin: 0; }
#ld a { color: inherit; text-decoration: none; }
#ld a:focus-visible, #ld button:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 2px; border-radius: 3px; }
#ld svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
#ld main, #ld .ld-foot { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---- header: graffiti-wall brand band (images/brand/bands, Higgsfield art 2026-10-10), site links under it ---- */
#ld .ld-top {
  background: #1b1c1f; border-bottom: 0; box-shadow: 0 6px 24px rgba(0,0,0,.45);
  /* spray-stripe instead of a solid amber bar */
}
#ld .ld-top::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--purple) 38%, var(--magenta) 66%, var(--amber-hi) 100%);
}
#ld .ld-logo {
  /* 160px tall. The painted logo is the centre ~370px of the band, so narrower screens only
     lose wall at the sides; the art's outer edges fade into #1b1c1f on very wide screens. */
  display: block; height: 160px; border-bottom: 1px solid #000;
  background-color: #1b1c1f;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100%;
  /* jpg first for old browsers; image-set prefers webp */
  background-image: url("../images/brand/bands/header-desktop@2x.jpg");
  background-image: -webkit-image-set(
    url("../images/brand/bands/header-desktop@2x.webp") type("image/webp"),
    url("../images/brand/bands/header-desktop@2x.jpg") type("image/jpeg")
  );
  background-image: image-set(
    url("../images/brand/bands/header-desktop@2x.webp") type("image/webp"),
    url("../images/brand/bands/header-desktop@2x.jpg") type("image/jpeg")
  );
}
#ld .ld-nav { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 8px 12px; background: #121214; }
#ld .ld-nav a {
  padding: 7px 14px; border-radius: 4px; color: var(--muted);
  font: 500 14px var(--head); letter-spacing: 1.2px; text-transform: uppercase;
}
#ld .ld-nav a:not(.ld-nav-cta):hover { color: #fff; background: var(--steel2); box-shadow: inset 0 -2px 0 var(--teal); }
#ld .ld-nav a.ld-nav-cta { margin-left: 8px; color: #140c00; background: var(--amber); }
#ld .ld-nav a.ld-nav-cta:hover { background: var(--amber-hi); box-shadow: none; }

/* ---- buttons ---- */
#ld .ld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 5px; border: 1px solid transparent; cursor: pointer;
  font: 600 15px var(--head); letter-spacing: 1.3px; text-transform: uppercase; white-space: nowrap;
}
#ld .ld-btn-amber { color: #140c00; background: linear-gradient(180deg, var(--amber-hi), var(--amber)); border-color: #a05c00; box-shadow: 0 2px 0 #6b3d00; }
#ld .ld-btn-amber:hover { background: linear-gradient(180deg, #ffc266, #ef8f00); }
#ld .ld-btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.03); }
#ld .ld-btn-ghost:hover { border-color: var(--muted); color: #fff; }

#ld .ld-card { background: var(--steel); border: 1px solid var(--line); border-radius: 8px; }
#ld .ld-kicker { font: 600 12px var(--head); letter-spacing: 2.4px; text-transform: uppercase; color: var(--amber-hi); }

/* ---- hero: pitch on the left, sign-in on the right ---- */
#ld .ld-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; padding: 48px 0 36px; }
#ld .ld-hero .ld-kicker { color: var(--teal-hi); }
#ld .ld-hero h1 { margin: 8px 0 14px; font: 600 50px/1.05 var(--head); letter-spacing: .5px; text-transform: uppercase; color: #fff; }
#ld .ld-hero h1 span {
  background: linear-gradient(90deg, var(--magenta), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#ld .ld-lead { max-width: 30em; color: var(--muted); font-size: 17px; }
#ld .ld-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 20px; }
#ld .ld-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13.5px; }
#ld .ld-chips li { display: flex; align-items: center; gap: 6px; }
#ld .ld-chips svg { width: 15px; height: 15px; color: var(--cash); stroke-width: 2.4; }

#ld .ld-signin {
  position: relative; padding: 22px 22px 18px; border-top: 0; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  background: radial-gradient(120% 100% at 100% 0%, rgba(155,107,255,.12), transparent 60%), var(--steel);
}
#ld .ld-signin::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--purple), var(--magenta));
}
#ld .ld-signin h2 { margin-bottom: 14px; font: 600 22px var(--head); letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
#ld .ld-signin label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
#ld .ld-signin input {
  display: block; width: 100%; height: 44px; margin: 0 0 14px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--ink); color: var(--text);
  font: 16px "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;  /* 16px: no zoom-on-focus on iPhone */
  outline: none; box-shadow: none; text-indent: 0;
}
#ld .ld-signin input:hover { border-color: #4a5058; }
#ld .ld-signin input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,195,207,.22); }
/* The wrapper carries the field's bottom margin, so the button can be pinned to the input's
   own top and bottom. min-height: responsive.css gives every form button 40px on phones. */
#ld .ld-pass { position: relative; margin: 0 0 14px; }
#ld .ld-signin .ld-pass input { margin: 0; padding-right: 64px; }
#ld .ld-show {
  position: absolute; top: 6px; bottom: 6px; right: 6px; height: auto; min-height: 0; padding: 0 10px; cursor: pointer;
  display: flex; align-items: center; line-height: 1;
  border: 0; border-radius: 4px; background: var(--steel2); color: var(--muted); font: 600 12px "Segoe UI", system-ui, sans-serif;
}
#ld .ld-show:hover { color: #fff; background: var(--steel3); }
#ld .ld-submit { width: 100%; margin-top: 4px; padding: 12px; font-size: 16px; }
#ld .ld-signin-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 14px; color: var(--muted); font-size: 13px; }
#ld .ld-signin-links a { color: var(--wire); }
#ld .ld-signin-links a:hover { text-decoration: underline; }

/* ---- live numbers ---- */
#ld .ld-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--steel); }
#ld .ld-stats div { padding: 16px 12px; text-align: center; border-right: 1px solid var(--line); }
#ld .ld-stats div:last-child { border-right: 0; }
#ld .ld-stats b { display: block; font: 600 30px/1.1 var(--head); color: var(--amber-hi); }
#ld .ld-stats div:nth-child(1) b { color: var(--teal-hi); }
#ld .ld-stats div:nth-child(2) b { color: var(--magenta); }
#ld .ld-stats div:nth-child(3) b { color: var(--amber-hi); }
#ld .ld-stats span { color: var(--muted); font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase; }

/* ---- what the game is ---- */
#ld .ld-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
#ld .ld-features .ld-card { padding: 20px 22px; border-top: 3px solid var(--c, var(--amber-hi)); }
#ld .ld-features .ld-card:nth-child(1) { --c: var(--teal); }
#ld .ld-features .ld-card:nth-child(2) { --c: var(--purple); }
#ld .ld-features .ld-card:nth-child(3) { --c: var(--magenta); }
#ld .ld-features .ld-card:nth-child(4) { --c: var(--amber-hi); }
#ld .ld-features svg {
  width: 30px; height: 30px; padding: 6px; margin-bottom: 10px; border-radius: 6px;
  color: var(--c, var(--amber-hi));
  background: color-mix(in srgb, var(--c, var(--amber-hi)) 14%, transparent);
  stroke-width: 1.9;
}
#ld .ld-features h3 { margin-bottom: 6px; font: 600 18px var(--head); letter-spacing: 1.2px; text-transform: uppercase; color: #fff; }
#ld .ld-features p { color: var(--muted); font-size: 14.5px; }

/* ---- the street: a random player, and the last push to sign up ---- */
#ld .ld-street { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; margin-bottom: 40px; }
#ld .ld-street .ld-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
#ld .ld-mug { flex: 0 0 64px; height: 72px; overflow: hidden; border: 1px solid #4a4f56; border-radius: 4px;
  background: repeating-linear-gradient(180deg, transparent 0 11px, rgba(255,255,255,.13) 11px 12px), linear-gradient(180deg, #3a3f45, #2a2e33); }
#ld .ld-mug svg { display: block; width: 64px; height: 72px; fill: #121416; stroke: none; }
#ld .ld-who { margin: 2px 0; font: 600 22px/1.15 var(--head); letter-spacing: .5px; color: #fff; overflow-wrap: anywhere; }
#ld .ld-meta { color: var(--muted); font-size: 13.5px; }
#ld .ld-meta b { color: var(--text); font-weight: 600; }
#ld .ld-join { justify-content: space-between; border-left: 3px solid var(--teal); }
#ld .ld-spotted .ld-kicker { color: var(--magenta); }
#ld .ld-join .ld-kicker { color: var(--teal-hi); }

/* ---- footer ---- */
#ld .ld-foot { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: 13px; }
#ld .ld-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
#ld .ld-foot nav a { color: var(--muted); }
#ld .ld-foot nav a:hover, #ld .ld-fb:hover { color: #fff; }
#ld .ld-fb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
#ld .ld-fb svg { width: 16px; height: 16px; }
#ld .ld-copy-line { margin-top: 8px; }

/* ---- sign-up page (register.php) ---- */
#ld .ld-reg { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
#ld .ld-reg .ld-copy { padding-top: 24px; }
#ld .ld-steps { list-style: none; counter-reset: st; padding: 0; margin: 24px 0 20px; display: grid; gap: 12px; max-width: 32em; }
#ld .ld-steps li { counter-increment: st; position: relative; padding: 2px 0 0 44px; color: var(--muted); font-size: 14.5px; }
#ld .ld-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(220,129,0,.14); border: 1px solid rgba(220,129,0,.45); color: var(--amber-hi); font: 600 15px var(--head); }
#ld .ld-steps b { display: block; color: #fff; font: 600 16px var(--head); letter-spacing: 1px; text-transform: uppercase; }
#ld .ld-aside { color: var(--muted); font-size: 14px; }
#ld .ld-aside a, #ld .ld-terms a { color: var(--wire); }
#ld .ld-aside a:hover, #ld .ld-terms a:hover { text-decoration: underline; }

#ld .ld-closed { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 6px;
  background: rgba(194,65,47,.12); border: 1px solid rgba(194,65,47,.55); color: #f0c9c2; font-size: 13.5px; line-height: 1.45; }
#ld .ld-closed svg { width: 22px; height: 22px; color: #e0705f; margin-top: 1px; }
#ld .ld-closed b { display: block; color: #fff; font: 600 15px var(--head); letter-spacing: 1px; text-transform: uppercase; }
#ld .ld-closed-note { margin-top: 10px; text-align: center; color: var(--muted); font-size: 13px; }
#ld .ld-closed-note a { color: var(--wire); }
#ld .ld-notify .ld-closed { margin-bottom: 20px; }
#ld .ld-notify .ld-hint { margin-top: -6px; }
#ld .ld-done { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 6px;
  background: rgba(95,174,90,.12); border: 1px solid rgba(95,174,90,.5); color: #cfe8cc; font-size: 14px; }
#ld .ld-done svg { width: 22px; height: 22px; color: var(--cash); stroke-width: 2.4; }
#ld .ld-done b { display: block; color: #fff; font: 600 15px var(--head); letter-spacing: 1px; text-transform: uppercase; }
/* Honeypot: hidden from people, left in for bots. */
#ld .ld-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

#ld .ld-signin label small { font-weight: 400; color: var(--dim); }
#ld .ld-signup input + .ld-hint { margin-top: -8px; }
#ld .ld-signup .ld-pass + .ld-meter { margin-top: -10px; }
#ld .ld-hint { min-height: 0; margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
#ld .ld-hint:empty { display: none; }
#ld .ld-hint.ok { color: var(--cash); }
#ld .ld-hint.bad { color: #e0705f; }
#ld .ld-meter { height: 4px; margin: 0 0 6px; border-radius: 3px; background: var(--ink); overflow: hidden; }
#ld .ld-meter i { display: block; width: 0; height: 100%; transition: width .2s; background: #c2412f; }
#ld .ld-meter i.s2 { background: var(--amber); }
#ld .ld-meter i.s3, #ld .ld-meter i.s4 { background: var(--cash); }

#ld .ld-signin input[type=checkbox] { width: auto; height: auto; margin: 0; padding: 0; box-shadow: none; }
#ld .ld-signin label.ld-terms { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 16px; font-weight: 400; line-height: 1.45; color: var(--muted); }
#ld .ld-terms input { flex: 0 0 auto; width: 18px !important; height: 18px !important; margin-top: 1px !important; accent-color: var(--amber); }
#ld .ld-btn[disabled] { cursor: not-allowed; opacity: .45; filter: grayscale(.6); box-shadow: none; }
#ld .ld-btn[disabled]:hover { background: linear-gradient(180deg, var(--amber-hi), var(--amber)); }

#ld .ld-result { margin: 40px auto; max-width: 560px; padding: 22px; color: var(--text); font-size: 15px; }
#ld .ld-result a { color: var(--wire); }


/* ---- brand band: phone asset below ~640px ---- */
@media (max-width: 640px) {
  #ld .ld-logo {
    /* the logo is the centre ~285px at 124px tall; scale down only on very narrow phones */
    height: min(124px, calc(100vw * 124 / 300));
    background-image: url("../images/brand/bands/header-mobile@2x.jpg");
    background-image: -webkit-image-set(
      url("../images/brand/bands/header-mobile@2x.webp") type("image/webp"),
      url("../images/brand/bands/header-mobile@2x.jpg") type("image/jpeg")
    );
    background-image: image-set(
      url("../images/brand/bands/header-mobile@2x.webp") type("image/webp"),
      url("../images/brand/bands/header-mobile@2x.jpg") type("image/jpeg")
    );
  }
}

/* ---- tablets ---- */
@media (max-width: 900px) {
  #ld .ld-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  #ld .ld-signin { max-width: 460px; }
  #ld .ld-hero h1 { font-size: 42px; }
  #ld .ld-street { grid-template-columns: minmax(0, 1fr); }
  #ld .ld-reg { grid-template-columns: minmax(0, 1fr); }
  #ld .ld-reg .ld-copy { padding-top: 0; }
  #ld .ld-signup { max-width: 520px; }
}

/* ---- phones ---- */
@media (max-width: 600px) {
  #ld main, #ld .ld-foot { padding: 0 16px; }
  #ld .ld-nav { justify-content: flex-start; overflow-x: auto; gap: 2px; padding: 6px 8px; scrollbar-width: none; }
  #ld .ld-nav::-webkit-scrollbar { display: none; }
  #ld .ld-nav a { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  #ld .ld-nav a.ld-nav-cta { margin-left: auto; }
  #ld .ld-hero { padding: 24px 0 24px; gap: 22px; }
  #ld .ld-hero h1 { font-size: 34px; }
  #ld .ld-lead { font-size: 15.5px; }
  #ld .ld-ctas { margin: 18px 0 14px; }
  #ld .ld-ctas .ld-btn { flex: 1 1 auto; }
  #ld .ld-signin { max-width: none; padding: 18px 16px 16px; }
  #ld .ld-stats b { font-size: 24px; }
  #ld .ld-stats div { padding: 12px 6px; }
  #ld .ld-stats span { font-size: 11px; }
  #ld .ld-features { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 24px 0; }
  #ld .ld-features .ld-card { padding: 16px; }
  #ld .ld-join { flex-wrap: wrap; }
  #ld .ld-join .ld-btn { width: 100%; }
  #ld .ld-foot { padding-top: 18px; }
}
