/* The launcher page: the hero with the live launcher, the skin switcher, what the launcher does, the player skin preview. */

.hero__title { font-size: clamp(4.5rem, 11vw, 9rem); }
.hero { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); min-height: calc(100dvh - var(--head-h) - 40px); }
.hero__facts { gap: var(--s-4) var(--s-6); }
.hero__facts dd { font-size: var(--t-base); }

/* No data-tilt here on purpose: the replica is a window you click in, and on some GPUs a 3D tilted window loses its SVG icons. */
.lstage { position: relative; z-index: 1; width: 100%; display: grid; gap: var(--s-3); }
.lstage__cap { font-size: var(--t-xs); color: var(--ink-3); }
.lstage .try__frame { min-height: 0; }

/* The skin switcher ------------------------------------------------------- */
.lookbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-7); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-2); }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--paper); }
.seg button { min-height: 40px; padding: 0.2em 1.4em; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-weight: 600; transition: background-color var(--d-1) var(--ease), color var(--d-1) var(--ease); }
.seg button[aria-checked="true"] { background: var(--violet-soft); color: var(--violet-deep); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.swatch { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-2); border: 0; border-radius: var(--r-pill); background: var(--paper); color: var(--ink-2); font-weight: 600; transition: transform var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease); }
.swatch i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--c); color: var(--ink); }

/* What it does ------------------------------------------------------------ */
.features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.feature { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-1); }
.feature:nth-child(3n + 2) { background: linear-gradient(160deg, var(--violet-soft), var(--card) 70%); }
.feature h3 { font-size: var(--t-md); line-height: 1.5; }

/* The player skin --------------------------------------------------------- */
.launchskin__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: center; }
.launchskin__text { display: grid; gap: var(--s-4); align-content: start; }
.launchskin__text .display { font-size: var(--t-2xl); }
.skinform { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-3); margin-block-start: var(--s-3); max-width: 28em; }
.launchskin__stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--card) 80%, transparent), color-mix(in srgb, var(--mist-2) 80%, transparent)); box-shadow: var(--shadow-3); }
.launchskin__canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; touch-action: pan-y; }
.poses { position: absolute; inset-inline: var(--s-3); inset-block-end: var(--s-3); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2); border-radius: var(--r-pill); background: color-mix(in srgb, var(--card) 85%, transparent); transform: translateZ(30px); }
.poses button { min-height: 36px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-pill); background: var(--mist-1); color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; }
.poses button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

@media (max-width: 1100px) {
	.features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature:nth-child(3n + 2) { background: var(--card); }
	.feature:nth-child(4n + 2), .feature:nth-child(4n + 3) { background: linear-gradient(160deg, var(--violet-soft), var(--card) 70%); }
}
@media (max-width: 1000px) {
	.hero { grid-template-columns: 1fr; }
	.launchskin__grid { grid-template-columns: 1fr; gap: var(--s-7); }
	.launchskin__stage { max-width: 440px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
	.features__grid { grid-template-columns: 1fr; }
	.lookbar { padding: var(--s-4); }
}
