/* Sunup intro (first-open animation, js/intro.js). Loaded after app.css; uses its colour variables. */
.sl-intro { position: fixed; inset: 0; z-index: 80; background: var(--sky, #2B2A5C); overflow: hidden; transition: opacity .4s ease; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.sl-intro .in-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .26s ease; }
.sl-intro .in-scene text { font-family: inherit; }
.sl-intro.fading .in-scene { opacity: 0; }
.sl-intro.leaving { opacity: 0; pointer-events: none; }
body.intro-open { overflow: hidden; }

.in-skip { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top)); right: 14px; font: inherit; font-weight: 800; font-size: var(--fs-sm); color: var(--ink); background: rgba(255, 249, 241, .85); border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; box-shadow: var(--shadow); }

.in-panel { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 28px)); box-sizing: border-box; background: var(--paper); border-radius: 26px; padding: 16px 18px 18px; box-shadow: var(--shadow-lg); text-align: center; animation: in-rise .35s cubic-bezier(.2, .9, .3, 1.2); }
.in-panel[hidden] { display: none; }
.in-pick, .in-hatch, .in-end { bottom: calc(16px + env(safe-area-inset-bottom)); }
.in-name { top: calc(60px + env(safe-area-inset-top)); text-align: left; }
.in-hatch { width: auto; background: none; box-shadow: none; padding: 0; }
.in-title { display: block; margin: 0 0 10px; font-size: var(--fs-lg); font-weight: 900; color: var(--ink); line-height: 1.25; }
.in-end p { margin: 0; color: var(--muted); font-size: var(--fs-md); }
.in-end .btn.big { margin-bottom: 0; }

.in-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.in-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: var(--fs-2xs); font-weight: 800; color: var(--muted); cursor: pointer; border-radius: 14px; }
.in-sw span { width: 38px; height: 38px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08), 0 2px 6px rgba(70, 45, 90, .18); transition: transform .12s; }
.in-sw:hover span, .in-sw:focus-visible span { transform: scale(1.1); }
.in-sw[aria-pressed="true"] span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.in-sw:focus-visible { outline: none; }

.in-name input { width: 100%; box-sizing: border-box; font: inherit; font-size: var(--fs-md); font-weight: 800; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.in-name input:focus { outline: none; border-color: var(--btn-edge); }
.in-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.in-chips .chip { font-size: var(--fs-sm); padding: 6px 12px; }
.in-row { display: flex; align-items: center; gap: 10px; }
.in-row .btn { flex: 1; }

@keyframes in-rise { from { opacity: 0; transform: translate(-50%, 14px); } }
@media (prefers-reduced-motion: reduce) {
  .in-panel { animation: none; }
  .sl-intro, .sl-intro .in-scene { transition-duration: .01s; }
}
