/* W4ST3D V7 — one-page 3x3 wall, floating 3D patches */

html.one-page,
body.one-page {
  height: 100%;
  overflow: hidden;
}

body.one-page .header.compact {
  height: 56px;
  padding: 0 16px;
  gap: 18px;
}

body.one-page .header.compact .logo { font-size: 1.35rem; }
body.one-page .nav a { padding: 0 10px; font-size: .68rem; }
body.one-page .header-actions button { padding: .5rem .75rem; font-size: .68rem; }

.live-wall {
  --season-accent: #fff;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 56px);
  background: #000;
}

.wall-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 6px;
}

.wall-board {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px;
  height: 100%;
  background: #000;
}

.cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  color: #fff;
}

.cell.flat {
  z-index: 1;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #050505;
}

.cell.flat canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell-meta,
.cell.flat > b {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 10px #000;
}

.cell-meta {
  left: 8px;
  top: 8px;
  font-size: .52rem;
  letter-spacing: .12em;
  color: #999;
}

.cell.flat > b {
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-size: clamp(.7rem, 1.35vw, 1.15rem);
  line-height: .9;
  letter-spacing: -.04em;
  font-weight: 950;
}

/* 3D sits in wall slots without rectangular frames, slightly larger than the slot */
.cell.patch {
  z-index: 5;
  overflow: visible;
  border: 0;
  background: radial-gradient(circle at 50% 58%, #1a1a1a 0%, #050505 55%, #000 100%);
  display: grid;
  place-items: center;
}

.cell.patch:nth-child(2) { z-index: 7; }
.cell.patch:nth-child(4),
.cell.patch:nth-child(6) { z-index: 6; }

.floater {
  position: relative;
  width: 92%;
  height: 92%;
  margin: 0;
  background: transparent;
  filter:
    drop-shadow(0 6px 4px rgba(0, 0, 0, .45))
    drop-shadow(0 26px 34px rgba(0, 0, 0, .8));
  animation: float-bob 6s ease-in-out infinite;
  transform-origin: 50% 60%;
}

.cell.patch:nth-child(2) .floater {
  width: 100%;
  height: 100%;
}

.cell.patch:nth-child(4) .floater {
  width: 94%;
  height: 94%;
  animation-delay: -.8s;
}

.cell.patch:nth-child(6) .floater {
  width: 88%;
  height: 98%;
  animation-delay: -1.5s;
}

.floater canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.floater figcaption {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border: 1px solid #666;
  background: rgba(0, 0, 0, .85);
  color: #fff;
  font-size: .5rem;
  letter-spacing: .12em;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .floater { animation: none; }
}

.board-toolbar {
  flex: 0 0 52px;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px) auto;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-top: 1px solid #2b2b2b;
  background: #050505;
}

.board-toolbar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.board-toolbar b {
  font-size: .68rem;
  letter-spacing: .06em;
}

.board-toolbar > div span,
.board-toolbar .month-control span {
  color: #777;
  font-size: .55rem;
  letter-spacing: .1em;
}

.board-toolbar .month-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.board-toolbar .month-control span { margin: 0; }

.board-toolbar .month-control select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #333;
  background: #070707;
  color: #fff;
  font-size: .65rem;
}

.board-toolbar .stage-cta {
  margin: 0;
  min-width: 140px;
  padding: .55rem .8rem;
  background: var(--season-accent);
  color: #000;
  border-color: var(--season-accent);
  font-size: .68rem;
}

.floating-claim { display: none !important; }

.template-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid #2b2b2b;
  background: #050505;
}

.template-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
  padding: 14px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #fff;
}

.template-card strong { font-size: .78rem; letter-spacing: .04em; }
.template-card span { color: #777; font-size: .62rem; letter-spacing: .08em; }
.template-card:hover,
.template-card.active { border-color: #fff; background: #fff; color: #000; }
.template-card:hover span,
.template-card.active span { color: #444; }

@media (max-width: 900px) {
  body.one-page { overflow: auto; }
  .live-wall { height: auto; min-height: calc(100vh - 56px); }
  .wall-stage { min-height: 72vh; }
  .board-toolbar {
    grid-template-columns: 1fr auto;
    padding: 10px 12px;
  }
  .board-toolbar > div span { display: none; }
  .board-toolbar .month-control { grid-column: 1 / -1; }
  .template-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
