/* QR Click — Sticker Wall. Not the sat topbar/rig/ledger template. Motor IDs untouched. */
:root {
  --ink: #f4ffe8;
  --asphalt: #10140c;
  --panel: #1a2114;
  --mute: #9aaf86;
  --hot: #ff3d5a;
  --acid: #f5e642;
  --mint: #3dffa8;
  --line: #2f3a24;
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--asphalt);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--asphalt);
  color: var(--ink) !important;
  font: 16px/1.5 var(--font-body);
}

.fx-grid { display: none !important; }

.fx-wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 12% 0%, rgba(255, 61, 90, 0.22), transparent 55%),
    radial-gradient(560px 360px at 90% 10%, rgba(245, 230, 66, 0.16), transparent 50%),
    radial-gradient(480px 300px at 70% 100%, rgba(61, 255, 168, 0.12), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      transparent 0 40px,
      rgba(244, 255, 232, 0.025) 40px 41px
    );
}

.fx-wall__stickers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255, 61, 90, 0.08) 0 40%, transparent 40%),
    linear-gradient(-20deg, rgba(245, 230, 66, 0.07) 0 28%, transparent 28%);
  background-size: 180px 120px, 140px 90px;
  background-position: 8% 70%, 85% 30%;
  background-repeat: no-repeat;
  animation: wall-drift 18s ease-in-out infinite alternate;
}

@keyframes wall-drift {
  from { transform: translateY(0); opacity: 0.85; }
  to { transform: translateY(-12px); opacity: 1; }
}

/* —— Mast (not sticky sat topbar) —— */
.mast {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 10px;
}

.mast__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.mast__mark {
  width: 72px;
  height: 72px;
  border: 3px solid var(--acid);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--hot);
  background: #0a0d08;
  animation: mark-slap 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes mark-slap {
  from { transform: scale(1.35) rotate(-12deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.mast__stack { display: grid; gap: 2px; }

.mast__kicker {
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.mast__word {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--acid);
  text-shadow: 4px 4px 0 var(--hot);
  animation: brand-slam 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes brand-slam {
  from { transform: translateX(-24px) skewX(-8deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.mast__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.mast__scan,
.scanband__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 3px solid var(--acid);
  border-radius: 999px;
  background: var(--hot);
  color: #fff !important;
  font: 800 13px/1 var(--font-body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 5px 5px 0 var(--mint);
  transform: rotate(-2deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mast__scan:hover,
.scanband__btn:hover {
  background: var(--acid);
  color: #10140c !important;
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--hot);
}

.langlist { position: relative; }

.langlist summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 36px 10px 14px;
  border: 2px solid var(--mint);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: 700 13px/1.2 var(--font-body);
  transform: rotate(1.5deg);
}

.langlist summary::-webkit-details-marker { display: none; }

.langlist summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--acid);
  border-bottom: 2px solid var(--acid);
  transform: translateY(-70%) rotate(45deg);
}

.langlist ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  margin: 0;
  padding: 6px 0;
  min-width: 220px;
  max-height: min(70vh, 480px);
  overflow: auto;
  list-style: none;
  border: 2px solid var(--acid);
  border-radius: 14px;
  background: #0a0d08;
  box-shadow: 6px 6px 0 var(--hot);
}

.langlist a {
  display: block;
  padding: 9px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.langlist a:hover,
.langlist a[aria-current="page"] {
  background: var(--hot);
  color: #fff;
}

html[dir="rtl"] .langlist ul { right: auto; left: 0; }

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding-bottom: 40px;
}

/* —— Billboard home: centered copy, full-width motor —— */
.bill {
  width: calc(100% - 28px);
  max-width: none;
  margin: 12px auto 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

.bill__copy {
  position: static;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px 8px 4px;
  text-align: center;
}

.bill__mark {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border: 4px solid var(--acid);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--hot);
  background: #0a0d08;
}

.bill__tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 2px solid var(--mint);
  border-radius: 999px;
  background: rgba(61, 255, 168, 0.12);
  color: var(--mint);
  font: 800 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.bill__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 3px 3px 0 rgba(255, 61, 90, 0.55);
}

.bill__lead {
  margin: 0 auto;
  max-width: none;
  width: max-content;
  max-width: min(100%, 52rem);
  color: var(--mute);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .bill__lead {
    white-space: normal;
    width: auto;
    max-width: 36ch;
  }
}

.bill__poster {
  position: relative;
  width: 100%;
  background: #f7ffe9;
  color: #10140c;
  border: 4px solid #10140c;
  border-radius: 4px 18px 8px 22px;
  box-shadow:
    10px 12px 0 var(--hot),
    0 0 0 1px rgba(245, 230, 66, 0.35);
  transform: none;
  overflow: clip;
}

.bill__tape {
  position: absolute;
  z-index: 5;
  width: 72px;
  height: 22px;
  background: rgba(245, 230, 66, 0.78);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.bill__tape--a {
  top: 10px;
  left: -8px;
  transform: rotate(-18deg);
}

.bill__tape--b {
  top: 14px;
  right: 18px;
  transform: rotate(12deg);
  background: rgba(61, 255, 168, 0.75);
}

.bill__motor {
  padding: 28px 14px 16px;
  background: transparent !important;
}

/* —— Sticker wall notes —— */
.stickers {
  width: min(1200px, calc(100% - 28px));
  margin: 8px auto 24px;
}

.stickers__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.stickers__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--acid);
}

.stickers__all {
  color: var(--mint) !important;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stickers__wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.sticker {
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 16px 14px;
  text-decoration: none;
  color: #10140c !important;
  background: #f5e642;
  border: 3px solid #10140c;
  border-radius: 3px 16px 10px 18px;
  box-shadow: 5px 5px 0 rgba(255, 61, 90, 0.85);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sticker:nth-child(2n) {
  background: #3dffa8;
  transform: rotate(-1.4deg);
}

.sticker:nth-child(3n) {
  background: #ffd0d8;
  transform: rotate(1.8deg);
}

.sticker:nth-child(4n) {
  background: #f7ffe9;
  transform: rotate(-0.6deg);
}

.sticker:hover {
  transform: rotate(0deg) translate(-3px, -3px) scale(1.02);
  box-shadow: 8px 8px 0 var(--hot);
}

.sticker__n {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #10140c;
  opacity: 0.55;
}

.sticker__t {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
}

.scanband {
  width: min(1200px, calc(100% - 28px));
  margin: 10px auto 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 3px dashed var(--mint);
  border-radius: 18px;
  background: rgba(61, 255, 168, 0.06);
}

.scanband__mark {
  width: 48px;
  height: 48px;
  border: 3px solid var(--acid);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--hot);
  background: #0a0d08;
}

.scanband__note {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.endrail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-top: 3px solid var(--acid);
  background: #0a0d08;
}

.endrail__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.endrail a {
  color: var(--ink) !important;
  font-weight: 700;
  text-decoration: none;
}

.endrail a:hover { color: var(--acid) !important; }

.endrail__biz {
  appearance: none;
  border: 3px solid var(--ink);
  background: var(--acid);
  color: #10140c;
  font: 800 13px/1 var(--font-body);
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--hot);
  cursor: pointer;
  text-transform: uppercase;
}

.endrail__biz:hover {
  background: var(--hot);
  color: #fff;
}

/* Inner pages keep working */
.folio {
  width: min(820px, calc(100% - 28px));
  margin: 24px auto;
  padding: 28px 24px;
  background: #f7ffe9;
  color: #10140c !important;
  border: 4px solid #10140c;
  border-radius: 4px 18px 10px 20px;
  box-shadow: 8px 8px 0 var(--hot);
}

.folio__head h1 {
  font-family: var(--font-display) !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #10140c !important;
}

.folio__head p,
.folio p,
.folio li {
  color: #2a3224 !important;
}

.folio a,
.folio__more a {
  color: #c21830 !important;
  font-weight: 800;
}

.ledger__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ledger__list li {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f5e642;
  border: 3px solid #10140c;
  border-radius: 12px;
  color: #10140c;
}

.ledger__n {
  font-family: var(--font-display);
  color: #10140c !important;
}

.ledger__list a {
  color: #10140c !important;
  font-weight: 800;
  text-decoration: none;
}

/* Legacy class hooks if any leftover markup */
.topbar, .colophon, .deck, .rig, .ledger, .sat-scan, .mark { }

@media (max-width: 900px) {
  .bill { width: calc(100% - 16px); }
  .mast { grid-template-columns: 1fr; }
  .mast__tools { justify-content: flex-start; }
  .mast__word { font-size: 2.4rem; }
}
