/* MyQRMart — 4-col footer, sun cursor, planets, body cubes. */

.sitefoot {
  margin-top: 56px;
  padding: 40px 0 0;
  border-top: 3px solid var(--gold, #c9a24e);
  background: linear-gradient(180deg, #fff, #fff8eb);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr 0.95fr;
  gap: 28px 24px;
  align-items: center;
  padding-bottom: 28px;
}
.foot-brand .foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--halo-bright, #4a3a18);
  margin-bottom: 10px;
}
.foot-brand .foot-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.foot-brand p {
  color: var(--muted, #8a7344);
  font-size: 0.92rem;
  margin: 0 0 16px;
  max-width: 28rem;
}
.foot-cta,
.foot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  font: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.foot-cta {
  border-radius: 999px;
  background: var(--gold, #c9a24e);
  color: #fff;
  border: 0;
  margin-bottom: 16px;
}
.foot-cta:hover,
.foot-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px 2px rgba(201, 162, 78, 0.45);
  color: #fff;
}
.foot-map {
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--border, #e6d4a0);
  min-height: 160px;
  background: #f3ead4;
}
.foot-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

.foot-tower {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background: linear-gradient(90deg, #cbb888 0%, #fbf6ea 10%, #fffdf6 50%, #fbf6ea 90%, #cbb888 100%);
  border: 3px solid var(--gold, #c9a24e);
  box-shadow: 10px 14px 0 rgba(47, 127, 179, 0.14), inset 0 0 0 2px #fff;
}
.tower-roof {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold, #c9a24e);
  color: #fff;
  padding: 10px 8px 8px;
  clip-path: polygon(8% 100%, 0 0, 100% 0, 92% 100%);
}
.tower-ground {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1e5a82;
  padding: 8px;
  border-top: 2px solid var(--gold, #c9a24e);
  background: #d9c48a;
}
.foot-tower .storey {
  border-top: 1px solid rgba(201, 162, 78, 0.35);
  background: rgba(255,255,255,0.4);
  position: relative;
}
.foot-tower .storey > summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  min-height: 46px;
  list-style: none;
  cursor: pointer;
  color: var(--halo, #5c4a22);
  font-family: var(--font-display);
}
.foot-tower .storey > summary::-webkit-details-marker { display: none; }
.foot-tower .wins { display: flex; gap: 3px; }
.foot-tower .win {
  display: inline-block;
  width: 8px;
  height: 11px;
  font-style: normal;
  background: #8a7d62;
  box-shadow: inset 0 -3px 0 #5a4e38;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.foot-tower .fl-no {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted, #8a7344);
}
.foot-tower .storey:hover,
.foot-tower .storey[open] {
  background: #fff3b0;
  box-shadow: inset 0 0 22px rgba(255, 210, 70, 0.4);
}
.foot-tower .storey:hover .win,
.foot-tower .storey[open] .win {
  background: #ffe566;
  box-shadow: 0 0 9px 2px rgba(255, 229, 102, 0.9);
  animation: wink 0.55s ease;
}
@keyframes wink {
  0% { transform: scaleY(0.4); }
  55% { transform: scaleY(1.15); }
  100% { transform: scaleY(1); }
}
.foot-tower .drop {
  display: flex;
  flex-direction: column;
  padding: 0 12px 10px 34px;
  background: rgba(255,255,255,0.55);
}
.foot-tower .drop a {
  color: var(--halo, #5c4a22);
  font-size: 0.85rem;
  padding: 5px 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.foot-tower .drop a:hover {
  color: var(--gold, #c9a24e);
  text-shadow: 0 0 10px rgba(201, 162, 78, 0.5);
}

.foot-glow p {
  color: var(--muted, #8a7344);
  font-size: 0.88rem;
  margin: 0 0 8px;
}
.foot-glow .glow {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  color: var(--halo-bright, #4a3a18);
  text-shadow: 0 0 18px rgba(201, 162, 78, 0.45);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.foot-card {
  border: 1px solid var(--border, #e6d4a0);
  border-radius: 18px;
  padding: 22px 18px;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.foot-card:hover {
  background: #fff;
  border-color: var(--gold, #c9a24e);
  box-shadow: 0 0 28px rgba(201, 162, 78, 0.3);
}
.foot-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold, #c9a24e);
  margin-bottom: 10px;
}
.foot-card .who {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--halo-bright, #4a3a18);
  margin: 0;
}
.foot-card .role {
  color: var(--gold, #c9a24e);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}
.foot-card .bio {
  color: var(--muted, #8a7344);
  font-size: 0.85rem;
  margin: 0 0 14px;
}
.socials {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--border, #e6d4a0);
  display: grid;
  place-items: center;
  color: var(--halo, #5c4a22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.socials a:hover {
  transform: scale(1.05);
  color: var(--gold, #c9a24e);
  box-shadow: 0 0 14px rgba(201, 162, 78, 0.4);
}
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.foot-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.foot-pill {
  border-radius: 999px;
  border: 0.5px solid var(--gold, #c9a24e);
  color: var(--halo-bright, #4a3a18);
  background: transparent;
  width: 100%;
}
.foot-pill:hover {
  background: var(--gold, #c9a24e);
  color: #fff;
}

.foot-copy {
  border-top: 0.5px solid var(--border, #e6d4a0);
  text-align: center;
  padding: 16px 12px 22px;
  font-size: 0.82rem;
  color: var(--muted, #8a7344);
}

/* sun + planets */
#solar {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
#solar .sun {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c8, #e8cc7a 40%, #c9a24e 70%, #8a6a20);
  box-shadow:
    0 0 18px 6px rgba(201, 162, 78, 0.55),
    0 0 40px 14px rgba(201, 162, 78, 0.22);
}
#solar .planet {
  position: absolute;
  width: var(--ps, 10px);
  height: var(--ps, 10px);
  margin: calc(var(--ps, 10px) / -2) 0 0 calc(var(--ps, 10px) / -2);
  border-radius: 50%;
  background: var(--pc, #2f7fb3);
  box-shadow: 0 0 8px var(--pc, #2f7fb3);
}
#solar .planet.cubeish {
  border-radius: 2px;
  transform: rotate(45deg);
}

.space-cubes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.space-cubes .vox {
  opacity: 0.28;
}
main, .sitefoot { position: relative; z-index: 2; }

@media (pointer: fine) {
  html.solar-on, html.solar-on * { cursor: none; }
}

@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-tower { max-width: none; }
  .foot-map iframe { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  #solar, .space-cubes { display: none; }
  html.solar-on, html.solar-on * { cursor: auto; }
  .foot-cta:hover, .foot-pill:hover { transform: none; }
}
