/* dp-home-sizes.css — the floor-size card (views/partials/home-lbe-sizes.ejs, public/js/dp-home-sizes.js).
 *
 * The card is the page's own wide "why" panel (.lp-why__card--wide); this file only adds the stage
 * (an isometric floor grid with attraction renders on it) and the big size label. Everything is
 * scoped under .hs. White ink on the page violet, no second colour. */

.lp .hs { overflow: hidden; }

/* ── stage ─────────────────────────────────────────────────────────── */
.lp .hs__stage {
  position: relative; overflow: hidden; flex: none;
  aspect-ratio: 1 / 0.92;
  background: radial-gradient(48% 44% at 50% 60%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 100%);
}
@media (min-width: 760px) {
  .lp .hs.lp-why__card--wide { min-height: 480px; }
  .lp .hs__stage { flex: 1.35 1 0; aspect-ratio: auto; min-height: 480px; }
}
.lp .hs__world {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform-origin: 0 0; will-change: transform;
}
.lp .hs__floor { position: absolute; left: 0; top: 0; overflow: visible; }
.lp .hs__tiles { position: absolute; left: 0; top: 0; }

/* The floor: a white veil, faint 1-ft lines, brighter lines between 12 × 18 cells, a crisp edge. */
.lp .hs__fill { fill: rgba(255, 255, 255, 0.1); }
.lp .hs__minor { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lp .hs__major { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.lp .hs__edge { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lp .hs__flash { fill: #fff; opacity: 0; animation: hs-flash 0.85s ease-out forwards; }
@keyframes hs-flash { 0% { opacity: 0.55; } 100% { opacity: 0; } }

/* A render: drops in from above and settles with a small bounce; the outgoing one lifts and fades. */
.lp .hs__tile { position: absolute; pointer-events: none; opacity: 0; transform: translateY(-34%) scale(0.86); }
.lp .hs__tile img { display: block; width: 100%; height: 100%; max-width: none; }
.lp .hs__tile--in {
  opacity: 1; transform: none;
  transition: transform 0.62s cubic-bezier(0.34, 1.5, 0.6, 1), opacity 0.28s ease-out;
}
.lp .hs__tile--out {
  opacity: 0; transform: translateY(-10%) scale(0.92);
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.4s ease-in;
}

/* Edge lengths, set along the two front edges by the script. */
.lp .hs__dim {
  position: absolute; left: 0; top: 0; z-index: 2; white-space: nowrap; pointer-events: none;
  font: 800 13px/1 var(--lp-display); letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 1px 8px rgba(27, 11, 74, 0.55);
  opacity: 0; transition: opacity 0.4s ease;
}
.lp .hs--ready .hs__dim { opacity: 0.95; }

/* Before the renders arrive the grid draws on its own; with no renders (or no script) the still art. */
.lp .hs__still { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp .hs:not(.hs--live) .hs__still,
.lp .hs--still .hs__still { display: block; }
.lp .hs--still .hs__world,
.lp .hs--still .hs__dim { display: none; }
.lp .hs--live:not(.hs--ready):not(.hs--still) .hs__fill { animation: hs-wait 1.4s ease-in-out infinite alternate; }
@keyframes hs-wait { from { fill: rgba(255, 255, 255, 0.06); } to { fill: rgba(255, 255, 255, 0.16); } }

/* ── copy ──────────────────────────────────────────────────────────── */
.lp .hs__size { margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.lp .hs__size-t {
  display: block; font: 800 clamp(40px, 9.5vw, 52px)/1 var(--lp-display); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (min-width: 760px) { .lp .hs__size-t { font-size: clamp(44px, 4.6vw, 64px); } }
.lp .hs__size-t i { font-style: normal; font-weight: 700; font-size: 0.62em; margin: 0 0.16em; opacity: 0.75; vertical-align: 0.08em; }
.lp .hs__size-t small { font-size: 0.42em; font-weight: 800; margin-left: 0.22em; letter-spacing: 0; }
.lp .hs__size-d { font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--lp-ink-2); min-height: 2.8em; }
@media (min-width: 420px) { .lp .hs__size-d { min-height: 1.4em; } }
.lp .hs--pop { animation: hs-pop 0.5s cubic-bezier(0.34, 1.5, 0.6, 1); }
@keyframes hs-pop { 0% { opacity: 0.2; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

/* Size picker: three plain buttons, the current one solid white (no outlined labels). */
.lp .hs__tabs { display: flex; gap: 8px; margin: 20px 0 18px; flex-wrap: wrap; }
.lp .hs__tab {
  appearance: none; border: 0; cursor: pointer; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); color: var(--lp-ink-2);
  font: 700 15px/1 var(--lp-body); font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lp .hs__tab:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.lp .hs__tab[aria-pressed="true"] { background: #fff; color: var(--lp-ink-deep); }
.lp .hs__note { font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .lp .hs__tile { transform: none; }
  .lp .hs__tile--in { transition: opacity 0.5s ease; }
  .lp .hs__tile--out { transform: none; transition: opacity 0.5s ease; }
  .lp .hs--pop { animation: none; }
}

/* Step 2's copy (home-lbe-floor-mini): fills the step's art box. */
.lp .hs--mini { position: absolute; inset: 0; display: block; overflow: visible; }
.lp .hs--mini .hs__stage { position: absolute; inset: 0; display: block; min-height: 0; aspect-ratio: auto; background: none; }
.lp .hs--mini.hs--still .hs__world { display: block; }
.lp .hs--mini .hs__dim { font-size: 11px; }
.lp .hs--mini .hs__dim--l, .lp .hs--mini .hs__dim--w { z-index: 2; }
