/* =====================================================================
   P02 v2 — Footer concepts (lab pages): mini city, auto trip, arcade
   ===================================================================== */
.flhero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.flhero::before {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  right: -18vw;
  top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 255, 150, 0.12), transparent 62%);
}
.flhero .wrap {
  position: relative;
  display: grid;
  gap: 1.4rem;
}
.flhero h1 {
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.92;
  max-width: 14ch;
}
.flhero .lead {
  color: var(--fog);
  opacity: 1;
  max-width: 56ch;
}
.flswitch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.flswitch a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  font-size: 0.92rem;
  color: var(--fog);
  transition:
    background 0.4s,
    color 0.4s,
    border-color 0.4s;
}
.flswitch a span {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--signal);
}
.flswitch a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.flswitch a[aria-current='page'] {
  background: #fff;
  color: var(--night);
  border-color: #fff;
}
.flswitch a[aria-current='page'] span {
  color: var(--signal-deep);
}
.fldown {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--signal);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.fldown i {
  animation: flBob 1.6s ease-in-out infinite;
}
@keyframes flBob {
  50% {
    transform: translateY(5px);
  }
}

/* stage replaces the big logo in the footer */
.foot__brand-xl.fl-wrap {
  display: block;
  margin: 4.5rem 0 2.5rem;
  color: inherit;
}
.fl-stage {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line-d);
  background: #0a0d13;
}
.fl-stage svg {
  display: block;
  width: 100%;
  height: auto;
}
.fl-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--line-d);
  background: rgba(7, 9, 14, 0.6);
}
.fl-cap p {
  color: var(--fog);
  font-size: 0.98rem;
}
.fl-cap p b {
  color: #fff;
  font-weight: 500;
}
.fl-cap p span {
  color: var(--signal);
}
.fl-cap > div {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex: none;
}
.fl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  font-size: 0.86rem;
  color: #fff;
  transition:
    background 0.3s,
    color 0.3s;
}
.fl-btn:hover {
  background: #fff;
  color: var(--night);
}
.fl-hint {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
  background: rgba(7, 9, 14, 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}
@media (max-width: 700px) {
  .fl-cap {
    flex-direction: column;
    align-items: flex-start;
  }
  .fl-stage svg {
    height: 300px;
  }
}

/* ---------- shared mascot (the figure from the logo) ---------- */
.m__torso {
  fill: var(--pine);
  stroke: var(--signal);
  stroke-width: 2;
}
.m__tie {
  fill: var(--signal);
}
.m__arm,
.m__leg {
  stroke: #e9edf2;
  stroke-width: 5;
  stroke-linecap: round;
}
.m__leg {
  stroke: #cfd6df;
}
.m__head {
  fill: #fff;
}
.m__eyes circle {
  fill: var(--night);
}
.m__smile {
  fill: none;
  stroke: var(--night);
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ---------- 01 mini growth city ---------- */
.fc-star {
  fill: #fff;
  animation: fcTw 3s ease-in-out infinite;
}
@keyframes fcTw {
  50% {
    opacity: 0.15;
  }
}
.fc-moon {
  fill: #e9f5ef;
}
.fc-far {
  fill: #10141c;
}
.fc-ground {
  fill: #0d1016;
}
.fc-line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}
.shop {
  cursor: pointer;
}
.shop__b {
  fill: #11151d;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
  transition:
    fill 0.8s,
    stroke 0.8s;
}
.shop__awn {
  fill: #1a1f29;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
  transition: fill 0.8s;
}
.shop__sign {
  fill: #1a1f29;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.5;
  transition:
    fill 0.6s,
    stroke 0.6s;
}
.shop__name {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  fill: rgba(255, 255, 255, 0.35);
  transition: fill 0.6s;
}
.shop__win,
.shop__door {
  fill: #171c26;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
  transition: fill 0.8s;
}
.shop__frame {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
}
.shop.on .shop__b {
  fill: #141b1d;
  stroke: rgba(3, 255, 150, 0.55);
}
.shop.on .shop__awn {
  fill: var(--pine);
}
.shop.on .shop__sign {
  fill: var(--signal);
  stroke: var(--signal);
}
.shop.on .shop__name {
  fill: var(--night);
  font-weight: 600;
}
.shop.on .shop__win {
  fill: #ffe7a8;
  filter: drop-shadow(0 0 10px rgba(255, 214, 120, 0.65));
}
.shop.on .shop__door {
  fill: #2a3a35;
}
.shop:hover .shop__b {
  stroke: #fff;
}
.shop__pop rect {
  fill: #fff;
}
.shop__pop text {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  fill: var(--night);
}
.shop__pop circle {
  fill: var(--signal);
}
.shop__chat rect {
  fill: var(--signal);
}
.shop__chat text {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--night);
}
.fc-lamp line {
  stroke: #2a303b;
  stroke-width: 4;
}
.fc-lamp circle {
  fill: #2a303b;
  transition:
    fill 0.6s,
    filter 0.6s;
}
.fc-lamp.on circle {
  fill: #fff3c4;
  filter: drop-shadow(0 0 10px rgba(255, 236, 170, 0.9));
}
.fc-van .b {
  fill: #fff;
}
.fc-van .c {
  fill: var(--signal);
}
.fc-van .w {
  fill: var(--night);
  stroke: #3a404c;
  stroke-width: 3;
}
.fc-van .g {
  fill: #9fd8ff;
  opacity: 0.7;
}
.fc-van text {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  fill: var(--night);
  letter-spacing: 0.1em;
}

/* ---------- 02 auto-rickshaw trip ---------- */
.fa-sky-top {
  stop-color: #07090e;
}
.fa-sky-bot {
  stop-color: #11231d;
}
.fa-far {
  fill: #131924;
}
.fa-far .win {
  fill: #2b3a36;
}
.fa-beacon {
  fill: var(--signal);
  animation: faBeacon 1.8s ease-in-out infinite;
}
@keyframes faBeacon {
  50% {
    opacity: 0.15;
  }
}
.fa-near path {
  fill: none;
  stroke: #1f3a32;
  stroke-width: 5;
  stroke-linecap: round;
}
.fa-near .frond {
  stroke: #24463c;
  stroke-width: 4;
}
.fa-road {
  fill: #0d1016;
}
.fa-edge {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}
.fa-lane {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 4;
  stroke-dasharray: 30 26;
  animation: faLane 0.6s linear infinite;
  animation-play-state: paused;
}
.fl-auto.driving .fa-lane {
  animation-play-state: running;
}
@keyframes faLane {
  to {
    stroke-dashoffset: -56;
  }
}
.sign {
  cursor: pointer;
}
.sign line {
  stroke: #3a404c;
  stroke-width: 4;
}
.sign rect {
  fill: #151a23;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
  transition:
    fill 0.5s,
    stroke 0.5s;
}
.sign text {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  fill: rgba(255, 255, 255, 0.55);
  transition: fill 0.5s;
}
.sign .n {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--signal);
}
.sign.on rect {
  fill: var(--signal);
  stroke: var(--signal);
  filter: drop-shadow(0 0 14px rgba(3, 255, 150, 0.55));
}
.sign.on text {
  fill: var(--night);
}
.sign.on .n {
  fill: var(--pine);
}
.sign:hover rect {
  stroke: #fff;
}
.au-body {
  fill: #ffcc1a;
}
.au-canopy {
  fill: #101010;
}
.au-trim {
  fill: #03ff96;
}
.au-glass {
  fill: #bfe6ff;
  opacity: 0.55;
}
.au-dark {
  fill: #07090e;
}
.au-wheel {
  fill: #101010;
  stroke: #3a404c;
  stroke-width: 3;
}
.au-spoke {
  stroke: #6b7588;
  stroke-width: 2;
}
.au-plate rect {
  fill: #fff;
}
.au-plate text {
  font-family: var(--f-mono);
  font-size: 7px;
  font-weight: 700;
  fill: #101010;
}
.au-light {
  fill: #fff8d6;
}
.au-beam {
  fill: url(#faBeam);
}
.au-puff {
  fill: rgba(255, 255, 255, 0.35);
}
.fa-bub rect {
  fill: #fff;
}
.fa-bub text {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  fill: var(--night);
}

/* ---------- 03 growth run: compact, dinosaur-game sized ---------- */
.foot__brand-xl.fl-wrap {
  margin: 3.5rem auto 2rem;
}
.fg {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
/* the game box: 180px tall, 140px on phones (the game reads this height) */
.fg__box {
  position: relative;
  width: 100%;
}
.fg canvas {
  display: block;
  width: 100%;
  height: 180px;
  /* transparent like the footer, with a 1px line at 10% white (29 Nov 2026);
     the line is a shadow so the game keeps exactly the same size */
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
  border-radius: 10px;
}
.fg canvas:focus-visible {
  box-shadow: 0 0 0 1px rgba(3, 255, 150, 0.45);
}
/* game over: the line and two buttons, over the game */
.fg__over {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(7, 9, 14, 0.86); /* footer colour, not dark green (29 Nov 2026) */
  text-align: center;
}
.fg__over[hidden] {
  display: none;
}
.fg__line {
  font: 600 0.75rem/1.4 'JetBrains Mono', ui-monospace, monospace;
  color: #fff;
}
.fg__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.fg__btns > * {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font: 600 0.8rem/1 var(--f-sans);
  cursor: pointer;
}
.fg__again {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: none;
  color: #fff;
}
.fg__go {
  background: var(--signal);
  color: var(--night);
}
.fg__cap {
  font-size: 0.85rem;
  color: var(--fog-2);
}
@media (max-width: 600px) {
  .fg canvas {
    height: 140px;
  }
  .fg__over {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .fg__line {
    font-size: 0.65rem;
  }
  .fg__btns > * {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
  }
}
