/* ---- v4-make.css ---- */
/* ============================================================================
   Starwink website v4 - MAKE (founder 2026-09-29: "the main selling point of the Studio plan").
   One file so the whole chapter can be dropped as a unit while gate G6 (Make delivery) is open.
   Four beats on one stage: the look, the family, tonight's thing, the finished story.
   ========================================================================== */
.make4 { position: relative; overflow: clip; isolation: isolate; padding: var(--site-section) 0; }
.mk-glow { position: absolute; right: -10rem; top: 6rem; width: 46rem; height: 46rem; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--cta-rgb), 0.16), rgba(var(--cta-rgb), 0.05) 55%, transparent); animation: k4-twinkle calc(8s * var(--dz-air)) var(--ease-loop) infinite alternate; }
.mk-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 4vw, 5rem); margin-top: var(--sp-6); }
.mk-grid > * { min-width: 0; }
.mk-stage-col { order: -1; position: relative; }
.mk-beats { list-style: none; margin: 0; padding: 0; }
.mk-beat { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--sp-4); align-items: start; min-height: 60vh; padding-top: 18vh; opacity: 0.34;
  transition: opacity calc(var(--dur-large) * var(--dz-k)) var(--ease-light); }
.mk-beat:first-child { padding-top: 8vh; }
.mk-beat:last-child { min-height: 66vh; }
.mk-beat.is-now { opacity: 1; }
.mk-n { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.5rem; color: var(--cta); text-shadow: var(--glow-numeral);
  box-shadow: inset 0 0 0 1.5px rgba(var(--cta-rgb), 0.4); transition: transform calc(var(--dur-medium) * var(--dz-k)) var(--ease-settle), box-shadow calc(var(--dur-medium) * var(--dz-k)) var(--ease-light); }
.mk-beat.is-now .mk-n { transform: scale(1.12); box-shadow: inset 0 0 0 1.5px rgba(var(--cta-rgb), 0.85), 0 0 22px rgba(var(--cta-rgb), 0.35); }
.mk-beat .h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem); }
.mk-beat .step-d { font-size: 1.0625rem; max-width: 27rem; }
.mk-stage { position: sticky; top: 12vh; aspect-ratio: 1 / 0.94; border-radius: var(--radius-sheet); overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, rgba(var(--cta-rgb), 0.14), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(var(--sage-rgb), 0.14), transparent 60%), var(--l1);
  box-shadow: var(--sh-lg), inset 0 0 0 1px var(--hairline-strong); }
.mk-layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); padding: var(--sp-5);
  opacity: 0; visibility: hidden; transform: scale(0.96) translateY(14px);
  transition: opacity calc(520ms * var(--dz-k)) var(--ease-light), transform calc(700ms * var(--dz-k)) var(--ease-settle), visibility 0s linear calc(520ms * var(--dz-k)); }
.mk-stage[data-beat="1"] .mk-look, .mk-stage[data-beat="2"] .mk-cast, .mk-stage[data-beat="3"] .mk-compose, .mk-stage[data-beat="4"] .mk-book {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity calc(520ms * var(--dz-k)) var(--ease-light) calc(160ms * var(--dz-k)), transform calc(700ms * var(--dz-k)) var(--ease-settle) calc(160ms * var(--dz-k)), visibility 0s; }

/* 1. the look: which drawing looks like her, then the sheet every story reuses */
.mk-ask { margin: 0; padding: 8px 16px; border-radius: var(--radius-pill); background: rgba(242, 239, 232, 0.1); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.16);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink-title);
  transition: opacity calc(var(--dur-medium) * var(--dz-k)) var(--ease-light), transform calc(600ms * var(--dz-k)) var(--ease-soft); }
.mk-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.4rem, 0.2rem + 0.8vw, 0.9rem); width: 88%;
  transition: opacity calc(500ms * var(--dz-k)) var(--ease-light), transform calc(600ms * var(--dz-k)) var(--ease-soft); }
.mk-face { position: relative; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px rgba(242, 239, 232, 0.2), 0 8px 18px -6px rgba(var(--shadow-rgb), 0.6);
  transition: transform calc(520ms * var(--dz-k)) var(--ease-settle), opacity calc(400ms * var(--dz-k)) var(--ease-light), box-shadow calc(400ms * var(--dz-k)) var(--ease-light); }
.mk-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mk-stage[data-beat="1"] .mk-face { animation: w4-pop calc(560ms * var(--dz-k)) var(--ease-settle) backwards; animation-delay: calc(var(--i) * 60ms * var(--dz-k) + 200ms); }
.mk-look.is-picked .mk-face:not(.is-pick) { opacity: 0.28; transform: scale(0.88); }
.mk-look.is-picked .mk-face.is-pick { transform: scale(1.16); z-index: 1; box-shadow: 0 0 0 3px var(--cta), 0 0 26px rgba(var(--cta-rgb), 0.55), 0 12px 24px -8px rgba(var(--shadow-rgb), 0.6); }
.mk-tick { position: absolute; right: -6%; top: -6%; display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 50%; color: var(--feature-bg); background: var(--cta);
  box-shadow: 0 0 0 3px var(--l1); transform: scale(0); transition: transform calc(420ms * var(--dz-k)) var(--ease-settle) calc(200ms * var(--dz-k)); }
.mk-tick svg { width: 70%; height: 70%; fill: currentColor; }
.mk-look.is-picked .mk-tick { transform: scale(1); }
.mk-sheet { position: absolute; left: 6%; right: 6%; top: 50%; margin: 0; translate: 0 -46%; opacity: 0; transform: scale(0.9) translateY(24px); pointer-events: none;
  transition: opacity calc(600ms * var(--dz-k)) var(--ease-light), transform calc(800ms * var(--dz-k)) var(--ease-settle); }
.mk-sheet img { width: 100%; border-radius: var(--radius-tile); box-shadow: var(--sh-lg); background: var(--onart-ink); }
.mk-sheet figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--sp-3); font-weight: 800; color: var(--ink-title); }
.mk-sheet figcaption .ico { width: 18px; height: 18px; color: var(--cta); }
.mk-look.is-drawn .mk-faces, .mk-look.is-drawn .mk-ask { opacity: 0; transform: scale(0.94) translateY(-18px); }
.mk-look.is-drawn .mk-sheet { opacity: 1; transform: none; }

/* 2. the family joins, one by one */
.mk-cast { display: block; }
.mk-who { position: absolute; margin: 0; display: grid; justify-items: center; gap: 6px; transform: translate(-50%, -50%); }
.mk-who img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px rgba(242, 239, 232, 0.3), 0 14px 26px -8px rgba(var(--shadow-rgb), 0.7);
  animation: k4-bob calc(5.5s * var(--dz-air)) var(--ease-loop) infinite alternate; }
.mk-who figcaption { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--onart-ink); color: var(--feature-bg); font-weight: 800; font-size: var(--fs-label); box-shadow: var(--sh-sm); }
.mk-hero { left: 50%; top: 45%; width: 36%; }
.mk-hero img { box-shadow: 0 0 0 4px var(--cta), 0 0 34px rgba(var(--cta-rgb), 0.45), 0 18px 32px -8px rgba(var(--shadow-rgb), 0.7); }
.mk-w1 { left: 20%; top: 24%; width: 22%; --fx: -60px; } .mk-w2 { left: 18%; top: 72%; width: 22%; } .mk-w3 { left: 81%; top: 34%; width: 20%; --fx: 60px; }
.mk-w2 img { animation-delay: -1.8s; } .mk-w3 img { animation-delay: -3.3s; }
.mk-stage[data-beat="2"] .mk-w1, .mk-stage[data-beat="2"] .mk-w2, .mk-stage[data-beat="2"] .mk-w3 { animation: mk-join calc(820ms * var(--dz-k)) var(--ease-settle) backwards; }
.mk-stage[data-beat="2"] .mk-w1 { animation-delay: calc(380ms * var(--dz-k)); }
.mk-stage[data-beat="2"] .mk-w2 { animation-delay: calc(640ms * var(--dz-k)); }
.mk-stage[data-beat="2"] .mk-w3 { animation-delay: calc(900ms * var(--dz-k)); }
@keyframes mk-join { from { opacity: 0; transform: translate(calc(-50% + var(--fx, 0px)), calc(-50% + 40px)) scale(0.4) rotate(-10deg); } }
.mk-add { position: absolute; left: 78%; top: 74%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1.5px dashed rgba(242, 239, 232, 0.4); color: var(--ink-body); font-weight: 800; font-size: var(--fs-label); }
.mk-add .ico { width: 16px; height: 16px; }

/* 3. tonight's thing: the paper composer, a mood, ends in sleep */
.mk-paper { width: 86%; padding: var(--sp-5); border-radius: var(--radius-card); background: var(--onart-ink); color: var(--feature-bg); box-shadow: var(--sh-lg); transform: rotate(-1deg); }
.mk-about { margin: 0; font-weight: 800; font-size: var(--fs-label); color: rgba(var(--feature-bg-rgb), 0.72); }
.mk-idea { margin: 6px 0 0; min-height: 3.1em; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem); line-height: 1.3; color: var(--feature-bg); }
.mk-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.12em; background: var(--cta); animation: mk-blink 1s steps(1) infinite; }
@keyframes mk-blink { 50% { opacity: 0; } }
.mk-cast-row { display: flex; margin-top: var(--sp-3); }
.mk-cast-row img { width: 2.3rem; height: 2.3rem; margin-right: -0.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.5px var(--onart-ink); }
.mk-moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 88%; }
.mk-moods span { padding: 6px 14px; border-radius: var(--radius-pill); font-weight: 800; font-size: var(--fs-label); color: var(--ink-body); background: rgba(242, 239, 232, 0.07);
  box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.16);
  transition: background-color calc(var(--dur-medium) * var(--dz-k)) var(--ease-light), color calc(var(--dur-medium) * var(--dz-k)) var(--ease-light), transform calc(420ms * var(--dz-k)) var(--ease-settle); }
.mk-moods span.is-sel { background: var(--sage-light); color: var(--feature-bg); box-shadow: none; transform: scale(1.08); }
.mk-sleep { display: flex; align-items: center; gap: var(--sp-2); font-weight: 800; color: var(--ink-title); }
.mk-sleep > .ico { width: 18px; height: 18px; color: var(--cta); }

/* 4. the finished story, with the child in it (example pages, labelled) */
.mk-pages { position: relative; width: 92%; aspect-ratio: 16 / 9; border-radius: var(--radius-tile); overflow: hidden; box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(242, 239, 232, 0.1); }
.mk-pages img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05);
  transition: opacity calc(1000ms * var(--dz-k)) var(--ease-light), transform calc(4200ms * var(--dz-k)) var(--ease-soft); }
.mk-pages img.is-on { opacity: 1; transform: none; }
.mk-ex { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(var(--feature-bg-rgb), 0.78); color: var(--onart-ink); font-weight: 800; font-size: var(--fs-micro, 0.72rem); }
.mk-btitle { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); color: var(--ink-title); text-align: center; }
.mk-cap { margin: -6px 0 0; min-height: 1.5em; max-width: 30rem; text-align: center; color: var(--ink-body); transition: opacity calc(400ms * var(--dz-k)) var(--ease-light); }
.mk-cap.is-swap { opacity: 0; }
.mk-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mk-tags > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); font-weight: 800; font-size: var(--fs-label); color: var(--ink-title);
  background: rgba(242, 239, 232, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.16); }
.mk-tags .ico { width: 15px; height: 15px; color: var(--cta); }

/* after the beats: the plans in one line, the safety line, the honest note */
.mk-foot { margin-top: var(--sp-7); display: grid; justify-items: start; gap: var(--sp-3); }

.mk-safe { display: flex; align-items: center; gap: 8px; margin: var(--sp-2) 0 0; font-weight: 700; color: var(--ink-title); }
.mk-safe .ico { width: 20px; height: 20px; color: var(--sage-light); flex: none; }
.mk-ai { margin: 0; font-size: var(--fs-meta); color: var(--ink-body); }

/* plans: the Studio card shows the child's own face over their made page */
.p4-face { position: absolute; left: 14px; bottom: 12px; z-index: 2; width: 3.4rem; height: 3.4rem; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px var(--cta), 0 8px 18px rgba(var(--shadow-rgb), 0.6); animation: sw-bob calc(4s * var(--dz-air)) var(--ease-loop) infinite alternate; }
.p4-face img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899.98px) {
  .mk-grid { grid-template-columns: 1fr; }
  .mk-stage-col { position: sticky; top: 4.25rem; z-index: 2; }
  .mk-stage { position: static; aspect-ratio: 1 / 0.86; }
  .mk-layer { padding: var(--sp-3); gap: var(--sp-3); }
  .mk-beat { min-height: 48vh; padding-top: 44vh; }
  .mk-beat:first-child { padding-top: 40vh; }
  .mk-paper { padding: var(--sp-4); }
  .mk-moods span { padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-beat { opacity: 1; }
  .mk-who img, .mk-glow, .p4-face, .mk-caret { animation: none !important; }
}

/* ---- v5.css ---- */
/* ============================================================================
   Starwink website v5 (founder review of v4, 2026-09-29). Loads after v4.css and v4-make.css; overrides only.
   Every value is a V36 token or derived from one. Hue roles for soft tiles: the app's tag colours
   (gold, sage, violet, warm) with their own ink per theme.
   ========================================================================== */

/* 1. the ribbon: one row, each card a little over the one on its left */
.ribbon { cursor: grab; user-select: none; -webkit-user-select: none; }
.ribbon:active { cursor: grabbing; }
.rb-card { border-radius: calc(var(--radius-tile) + 2px); transform-origin: 50% 85%;
  box-shadow: -16px 0 26px -16px rgba(var(--shadow-rgb), 0.7), 0 18px 32px -16px rgba(var(--shadow-rgb), 0.6), inset 0 0 0 2px rgba(242, 239, 232, 0.16); }
.rb-card img { -webkit-user-drag: none; }
#app-frame.dz-light .rb-card { box-shadow: -14px 0 24px -16px rgba(var(--shadow-rgb), 0.38), 0 16px 28px -16px rgba(var(--shadow-rgb), 0.34), inset 0 0 0 2px rgba(255, 255, 255, 0.7); }

/* 2. the worlds heading sits on the stage; the half that matches the time of day is lit */
.worlds4 { padding-top: 0; }
.w4-head { position: absolute; left: 0; right: 0; top: clamp(5.25rem, 4rem + 3vh, 7rem); z-index: 7; width: 100%; max-width: calc(var(--site-max) + 2 * var(--site-gutter));
  margin: 0 auto; padding: 0 var(--site-gutter); pointer-events: none; }

.w4-scrim { background: linear-gradient(0deg, rgba(var(--feature-bg-rgb), 0.9) 0%, rgba(var(--feature-bg-rgb), 0.5) 30%, rgba(var(--feature-bg-rgb), 0) 56%),
  linear-gradient(90deg, rgba(var(--feature-bg-rgb), 0.55) 0%, rgba(var(--feature-bg-rgb), 0) 48%),
  linear-gradient(180deg, rgba(var(--feature-bg-rgb), 0.78) 0%, rgba(var(--feature-bg-rgb), 0.4) 22%, rgba(var(--feature-bg-rgb), 0) 38%); }
.w4-list-head { padding-top: var(--site-section); }

@media (max-width: 819.98px) {
  .w4-head { top: 4.9rem; }
  
  .w4-scrim { background: linear-gradient(0deg, rgba(var(--feature-bg-rgb), 0.94) 0%, rgba(var(--feature-bg-rgb), 0.7) 38%, rgba(var(--feature-bg-rgb), 0) 66%),
    linear-gradient(180deg, rgba(var(--feature-bg-rgb), 0.82) 0%, rgba(var(--feature-bg-rgb), 0.45) 26%, rgba(var(--feature-bg-rgb), 0) 42%); }
}

/* 3. keepsakes: the moonlit cloud sea; five depths, each treasure floating on its own */

.keeps4::before { background: linear-gradient(180deg, var(--feature-bg) 0%, rgba(var(--feature-bg-rgb), 0.3) 16%, rgba(var(--feature-bg-rgb), 0.12) 50%, rgba(var(--feature-bg-rgb), 0.3) 84%, var(--feature-bg) 100%); }
.k4-head .h2, .k4-head .lead { text-shadow: 0 2px 18px rgba(var(--feature-bg-rgb), 0.9); }
.k4-t { width: calc(3rem + var(--d) * 1.75rem); z-index: calc(1 + var(--d));
  transform: translate(-50%, -50%) translate(calc(var(--mx) * (var(--d) + 1) * -5px), calc(var(--sp) * var(--pz) * -1px + var(--my) * (var(--d) + 1) * -3px));
  transition: transform calc(1400ms * var(--dz-k)) var(--ease-soft); }
.k4-t[data-depth="3"], .k4-t[data-depth="4"] { z-index: 6; }
.k4-t img { animation: k5-float calc(var(--bob) * var(--dz-air)) ease-in-out var(--delay) infinite alternate; }
@keyframes k5-float { 0% { translate: 0 0; rotate: -5deg; } 50% { translate: calc(var(--fx) * 0.4) calc(var(--fy) * 1) ; rotate: 2deg; } 100% { translate: var(--fx) calc(var(--fy) * 0.35); rotate: 6deg; } }
.k4-t[data-depth="0"] img { opacity: 0.55; filter: drop-shadow(0 6px 10px rgba(var(--shadow-rgb), 0.45)) blur(1.3px) saturate(0.75); }
.k4-t[data-depth="1"] img { opacity: 0.78; filter: drop-shadow(0 8px 12px rgba(var(--shadow-rgb), 0.5)) blur(0.5px) saturate(0.9); }
.k4-t[data-depth="4"] img { filter: drop-shadow(0 18px 24px rgba(var(--shadow-rgb), 0.6)); }
.k4-t[data-depth="0"] .k4-halo, .k4-t[data-depth="1"] .k4-halo { opacity: 0.3; }
.k4-card { z-index: 10; }   /* the open card stays readable: every floating treasure passes behind its glass */
@media (max-width: 819.98px) { .k4-t { width: 100%; transform: none; } }

/* 4. the idea note leaves once the picture arrives */
.m4-stage.at-6 .m4-note { opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(-8deg); pointer-events: none; }

/* 5. ready for the shelf: a real shelf under the page, the new story arriving in the middle */
.m4-stage { display: flex; flex-direction: column; gap: 0; top: 9vh; }
.m4-page { order: 1; }
.m4-shelf { order: 2; position: relative; left: auto; right: auto; bottom: auto; z-index: auto; height: auto; max-height: 0; opacity: 0; overflow: visible;
  display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 0 var(--sp-4); margin-top: 0;
  transition: max-height calc(700ms * var(--dz-k)) var(--ease-soft), opacity calc(500ms * var(--dz-k)) var(--ease-light), margin-top calc(700ms * var(--dz-k)) var(--ease-soft); }
.m4-shelf::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -8px; height: 8px; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(242, 239, 232, 0.2), rgba(242, 239, 232, 0.06)); box-shadow: 0 10px 18px -6px rgba(var(--shadow-rgb), 0.7); }
.m4-stage.at-8 .m4-shelf { max-height: 8rem; opacity: 1; margin-top: var(--sp-5); }
.m5-book { position: relative; flex: none; width: 3.5rem; aspect-ratio: 3 / 4; border-radius: 8px; transform: rotate(var(--r)) translateY(12px); opacity: 0;
  box-shadow: 0 10px 18px -8px rgba(var(--shadow-rgb), 0.7), inset 0 0 0 1px rgba(242, 239, 232, 0.14);
  transition: transform calc(700ms * var(--dz-k)) var(--ease-settle), opacity calc(400ms * var(--dz-k)) var(--ease-light); transition-delay: calc(var(--j) * 70ms * var(--dz-k) + 200ms); }
.m5-book img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.m4-stage.at-8 .m5-book { transform: rotate(var(--r)); opacity: 1; }
.m5-book.is-new { width: 4.3rem; transition-delay: calc(700ms * var(--dz-k)); box-shadow: 0 0 0 2.5px var(--cta), 0 0 24px rgba(var(--cta-rgb), 0.5), 0 12px 20px -8px rgba(var(--shadow-rgb), 0.7); }
.m4-stage:not(.at-8) .m5-book.is-new { transform: translateY(-60px) scale(0.8); }
.m5-new { position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cta); color: var(--feature-bg); box-shadow: 0 0 0 3px var(--l1); }
.m5-new svg { width: 13px; height: 13px; fill: currentColor; }
.m4-shelf img { opacity: 1; transform: none; box-shadow: none; }
.m4-stage.at-8 .m4-page { transform: none; }
@media (max-width: 899.98px) { .m4-shelf { display: none; } }

/* 8. you're in charge: rows you can scan, and six clear badges */

/* 9. why rhyme: four light, friendly question cards with their sources up front */

/* 10. the finale's own night: the scrim sits over the calm lower middle */
.finale4 .finale-sky { object-position: 50% 45%; }
.finale4::before { background: radial-gradient(ellipse 58% 44% at 50% 72%, rgba(var(--feature-bg-rgb), 0.8), rgba(var(--feature-bg-rgb), 0) 100%),
  linear-gradient(0deg, rgba(var(--feature-bg-rgb), 0.96) 0%, rgba(var(--feature-bg-rgb), 0.55) 40%, rgba(var(--feature-bg-rgb), 0) 70%); }
@media (max-width: 819.98px) { .finale4 .finale-sky { object-position: 30% 50%; } }

@media (prefers-reduced-motion: reduce) {
  .k4-t img { animation: none !important; }
  
}

/* ---- v6.css ---- */
/* ============================================================================
   Starwink website v6 (founder review of v5, 2026-09-29). Loads after v5.css; overrides only.
   Controls and Why rhyme are built from the app's own parts (UI-Style-V36 sections 3, 4, 6, 7):
   page cards (--l1 + hairline), round marks (PopGlyph: the gold wash or sage disc with a line icon),
   rows and lines between hairlines (DzbRow / DzbLine), the gold switch, numerals on paper in --tag-ink-gold.
   ========================================================================== */

/* 1. the shelf: headroom for the peek (the card rises inside the row, never under its edge) */
.rb-card { will-change: transform, opacity; }

/* 2. the worlds title: day, and the night rising over it as you scroll */

.wt-pin { position: relative; height: 190vh; }

.wt-day, .wt-night { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.wt-night { transform: scale(calc(1.1 - var(--wt) * 0.1)); will-change: mask-image, transform; }

.wt-orb { position: absolute; z-index: 1; width: 4.5rem; height: 4.5rem; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cta-rgb), 0.35), rgba(var(--cta-rgb), 0) 70%); transition: background calc(var(--dur-large) * var(--dz-k)) var(--ease-light); }
.wt-orb .ico { grid-area: 1 / 1; width: 2.4rem; height: 2.4rem; transition: opacity calc(var(--dur-large) * var(--dz-k)) var(--ease-light), transform calc(var(--dur-large) * var(--dz-k)) var(--ease-settle); }

.worlds4 { padding-top: 0; }
@media (max-width: 819.98px) { .wt-pin { height: 160vh; } .wt-orb { width: 3.5rem; height: 3.5rem; } .wt-orb .ico { width: 1.9rem; height: 1.9rem; } }
@media (prefers-reduced-motion: reduce) { .wt-pin { height: auto; }  }

/* 3. keepsakes on the page's own ground: no picture behind them */
.keeps4::before { content: none; }
.k4-head .h2, .k4-head .lead { text-shadow: none; }
.k4-card { background: var(--l1); background-image: var(--corner-glow); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink-title);
  box-shadow: var(--sh-lg), inset 0 0 0 1px var(--hairline); }
.k4-cname { color: var(--ink-title); }
.k4-desc { color: var(--ink-body); }
.k4-fact { background: var(--gold-wash); box-shadow: inset 0 0 0 1px rgba(var(--tag-gold-rgb), 0.45); }
.k4-fact p { color: var(--ink-title); }
.k4-fk { color: var(--tag-ink-gold) !important; }
.k4-fact .src { color: var(--ink-body); }
.k4-from { color: var(--ink-body); }
.k4-from strong { color: var(--ink-title); }
.k4-name { background: var(--l1); color: var(--ink-title); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--hairline); }
.k4-hint, .keeps4 .foot-note { color: var(--ink-body); }
#app-frame.dz-light .k4-halo { background: radial-gradient(circle, rgba(var(--tag-gold-rgb), 0.55) 0%, rgba(var(--tag-gold-rgb), 0.12) 40%, transparent 64%); }

/* shared: the app's round mark (PopGlyph) */
.c6-mark { flex: none; display: grid; place-items: center; width: var(--sp-8); height: var(--sp-8); border-radius: var(--radius-pill); background: var(--gold-wash); color: var(--tag-ink-gold); }
.c6-mark .ico { width: 18px; height: 18px; }

.c6-mark--sm { width: 1.75rem; height: 1.75rem; }
.c6-mark--sm .ico { width: 15px; height: 15px; }

/* 8. you're in charge: one page card, settings as rows with gold switches, what is always on as lines */
.c6-card { padding: var(--sp-5) var(--sp-6) var(--sp-4); border-radius: var(--radius-card); background: var(--l1); box-shadow: var(--sh-card), inset 0 0 0 1px var(--hairline); }
.c6-label { margin: 0 0 var(--sp-1); font-size: var(--fs-meta); font-weight: 800; color: var(--ink-body); }

.c6-rows, .c6-lines { list-style: none; margin: 0; padding: 0; }
.c6-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-top: 1px solid var(--hairline); }
.c6-rows li:first-child { border-top: 0; }
.c6-t { display: grid; gap: 2px; }
.c6-t b { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; color: var(--ink-title); }
.c6-t span { font-size: 0.95rem; color: var(--ink-body); }
.c4-sw.c6-sw { width: 48px; height: 28px; background: var(--l3); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.c4-sw.c6-sw i { background: var(--onart-ink); box-shadow: 0 2px 6px rgba(var(--shadow-rgb), 0.35); }
.c4-sw.c6-sw.is-on { background: var(--gold-grad); box-shadow: none; }
.c4-sw.c6-sw.is-on i { transform: translateX(20px); background: var(--onart-ink); }

/* 9. why rhyme: each finding next to its demonstration, on a real line from our stories */

.y6-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.y6-row > * { min-width: 0; }

/* demo 1: a week of calm bedtimes, lit one night after another */
.y6-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-2); }
.y6-night { display: grid; justify-items: center; gap: 6px; }
.y6-disc { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius-pill); background: var(--l2); color: var(--meta, var(--ink-body));
  transition: background-color calc(500ms * var(--dz-k)) var(--ease-light), color calc(500ms * var(--dz-k)) var(--ease-light), transform calc(600ms * var(--dz-k)) var(--ease-settle);
  transition-delay: calc(var(--d) * 220ms * var(--dz-k) + 300ms); }
.y6-disc .ico { width: 18px; height: 18px; }
.y6-day { font-size: var(--fs-micro, 0.72rem); font-weight: 700; color: var(--ink-body); text-transform: capitalize; }
.y6-row.is-live .y6-disc { background: var(--gold-wash); color: var(--tag-ink-gold); transform: scale(1.08); box-shadow: 0 0 0 1px rgba(var(--tag-gold-rgb), 0.5); }
/* demo 2: the shared ending of two rhyme words, lit */
.y6-verse { margin: 0; font-family: var(--font-verse, var(--font-display)); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.7; color: var(--ink-title); }
.y6-verse .ln { display: block; }
.y6-end { color: var(--tag-ink-gold); background: linear-gradient(transparent 62%, rgba(var(--tag-gold-rgb), 0.45) 62%) no-repeat 0 0 / 0% 100%;
  transition: background-size calc(600ms * var(--dz-k)) var(--ease-soft); }
.y6-row.is-live .y6-end { background-size: 100% 100%; }
.y6-row.is-live .ln + .ln .y6-end { transition-delay: calc(450ms * var(--dz-k)); }
.y6-rime { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-weight: 700; color: var(--ink-title); }
.y6-rime > span:not(.y6-arrow) { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--l2); }
.y6-arrow { color: var(--ink-body); }
.y6-rime .y6-chip { background: var(--gold-wash); color: var(--tag-ink-gold); transform: scale(0.6); opacity: 0;
  transition: transform calc(520ms * var(--dz-k)) var(--ease-settle) calc(1000ms * var(--dz-k)), opacity calc(300ms * var(--dz-k)) var(--ease-light) calc(1000ms * var(--dz-k)); }
.y6-row.is-live .y6-chip { transform: none; opacity: 1; }
/* demo 3: the cue lights, then the rhyme word lands on its own */
.y6-row[data-demo="guess"] .y6-verse .ln:first-child .y6-end { transition-delay: calc(300ms * var(--dz-k)); }
.y6-land { display: inline-block; color: var(--tag-ink-gold); font-weight: 800; opacity: 0; transform: translateY(-0.7em) rotate(-8deg); }
.y6-row.is-live .y6-land { animation: y6-land calc(700ms * var(--dz-k)) var(--ease-settle) calc(1400ms * var(--dz-k)) forwards; }
@keyframes y6-land { to { opacity: 1; transform: none; } }
/* demo 4: the same line, in both languages */
.y6-pair { display: grid; gap: var(--sp-3); }
.y6-pair p { margin: 0; display: flex; align-items: baseline; gap: var(--sp-3); font-family: var(--font-verse, var(--font-display)); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem); line-height: 1.5; color: var(--ink-title); }
.y6-pair p[lang="ro"] { opacity: 0; transform: translateY(8px); transition: opacity calc(600ms * var(--dz-k)) var(--ease-light) calc(700ms * var(--dz-k)), transform calc(600ms * var(--dz-k)) var(--ease-settle) calc(700ms * var(--dz-k)); }
.y6-row.is-live .y6-pair p[lang="ro"] { opacity: 1; transform: none; }
.y6-tag { flex: none; padding: 2px 8px; border-radius: var(--radius-chip); font-family: var(--font-body, inherit); font-size: var(--fs-micro, 0.72rem); font-weight: 800; color: var(--tag-ink-gold); background: var(--gold-wash); }
.y6-note { display: flex; align-items: center; gap: var(--sp-3); max-width: 44rem; margin: var(--sp-8) 0 0; color: var(--ink-body); }
@media (max-width: 860px) {
  .y6-row { grid-template-columns: 1fr; }
  
  
  .y6-disc { width: 2.1rem; height: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .y6-disc, .y6-end, .y6-chip, .y6-pair p[lang="ro"] { transition: none; }
  .y6-land { opacity: 1; transform: none; animation: none !important; }
}

/* 10. the finale: the sleeping valley under the moon */
.finale4 .finale-sky { object-position: 50% 38%; }
.finale4::before { background: radial-gradient(ellipse 60% 42% at 50% 74%, rgba(var(--feature-bg-rgb), 0.78), rgba(var(--feature-bg-rgb), 0) 100%),
  linear-gradient(0deg, rgba(var(--feature-bg-rgb), 0.95) 0%, rgba(var(--feature-bg-rgb), 0.45) 38%, rgba(var(--feature-bg-rgb), 0) 64%); }

/* v6.1 - the night line waits for the night; the rhyme mark is a thin gold underline, not a block */

.y6-end { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 2px; padding-bottom: 1px; }
.y6-row.is-live .y6-end { background-size: 100% 2px; }

/* phones: the moon hangs above the words, never behind them */
@media (max-width: 819.98px) { .finale4 .finale-sky { object-position: 50% 22%; } .finale4 .finale-grid { padding-top: 52vh; } }

