/* One landscape joins the heading and the download dock. */
.punch-launcher {
    --launcher-ink: var(--punch-bg);
    --punch-accent: #b6b3ee !important;
    --punch-accent-hover: #cbc8ff !important;
    --punch-on-accent: #1a1b35 !important;
    --punch-focus: #d6d2ff !important;
}
.launcher-page { background: var(--launcher-ink); }
.launcher-hero { position: relative; isolation: isolate; overflow: clip; }
.launcher-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 800px;
    min-height: clamp(760px, 90svh, 960px);
    max-width: 1264px;
    margin-inline: auto;
    padding: 180px 32px 160px;
}
.launcher-install { display: flex; flex-direction: column; width: 100%; min-width: 0; gap: 40px; }
.launcher-heading { max-width: 510px; }
.launcher-heading h1 {
    margin: 0 0 24px;
    color: var(--punch-text);
    font: 550 clamp(38px, 4.6vw, 64px)/1.15 var(--punch-font-display);
    letter-spacing: -.02em;
}
.launcher-lead { max-width: 40ch; margin: 0; color: #c4cbd9; font-size: 16px; line-height: 1.8; }
.launcher-downloads { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: min(100%, 400px); animation: launcher-dock-enter 800ms var(--punch-ease-enter) both; }
.launcher-platforms {
    display: flex;
    gap: 4px;
    min-width: 0;
    flex: 1;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 14px;
    background: color-mix(in srgb, var(--punch-surface-raised) 72%, transparent);
}
.launcher-platform {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    isolation: isolate;
    border: 0;
    border-radius: var(--punch-radius-control);
    color: var(--punch-muted);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 220ms, transform 220ms var(--punch-ease);
}
.launcher-platform::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--punch-accent) 14%, transparent); opacity: 0; transform: scale(.88); transition: opacity 240ms, transform 360ms var(--punch-ease-enter); }
.launcher-platform > i { font-size: 18px; line-height: 1; transition: transform 360ms var(--punch-ease-enter), color 240ms; }
.launcher-platform:has(input:checked) { color: var(--punch-text); }
.launcher-platform:has(input:checked)::before { opacity: 1; transform: scale(1); }
.launcher-platform:has(input:checked) > i { animation: launcher-platform-select 450ms var(--punch-ease-enter); }
.launcher-platform:has(input:focus-visible) { outline: 2px solid var(--punch-focus); outline-offset: 3px; }
.launcher-platform:hover { color: var(--punch-text); }
.launcher-platform:active { transform: scale(.96); }
.launcher-files { flex: 1; }
.launcher-file { display: flex; align-items: center; gap: 12px; animation: launcher-file-enter 320ms var(--punch-ease-enter) both; }
.launcher-file + .launcher-file { margin-top: 12px; }
/* Native radios work without JavaScript. Older browsers retain all download links. */
@supports selector(:has(input:checked)) {
    .launcher-file { display: none; }
    .launcher-file + .launcher-file { margin-top: 0; }
    .launcher-downloads:has(input[value="windows"]:checked) .launcher-file[data-platform="windows"],
    .launcher-downloads:has(input[value="linux"]:checked) .launcher-file[data-platform="linux"] { display: flex; }
}
.punch-site .launcher-download-button {
    flex: 1;
    min-height: 48px;
    padding: 12px 18px;
}
.punch-site .launcher-download-button:is(:hover, :focus-visible) > i { animation: launcher-download-flow 650ms var(--punch-ease-enter); }
.launcher-format { flex: none; color: var(--punch-muted); font-size: 13px; }
.launcher-guide { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; max-width: 1264px; margin: auto; padding: 24px 32px 144px; }
.launcher-questions { min-width: 0; }
.launcher-questions details { scroll-margin-top: calc(var(--navbar-height, 96px) + 24px); }
.launcher-questions summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 10px 0;
    color: var(--punch-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}
.launcher-questions summary::-webkit-details-marker { display: none; }
.launcher-questions summary:hover, .launcher-questions details[open] summary { color: var(--punch-text); }
.launcher-questions summary > i { flex: none; font-size: 12px; transition: transform var(--punch-motion-fast) var(--punch-ease); }
.launcher-questions details[open] summary > i { transform: rotate(45deg); }
.launcher-questions details > div { padding: 4px 24px 20px 0; }
.launcher-questions p { margin: 0; color: var(--punch-muted); font-size: 14px; line-height: 1.8; }
.launcher-questions p + p { margin-top: 12px; }
.launcher-questions code {
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--punch-text);
    background: var(--punch-surface-raised);
    font-size: .85em;
    overflow-wrap: anywhere;
}
.launcher-world { position: absolute; z-index: -1; inset: 0; margin: 0; overflow: hidden; background: #252a41; }
.launcher-world > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 55%; filter: saturate(.6) brightness(.83); animation: launcher-land-enter 1600ms var(--punch-ease-enter) both; }
.launcher-world::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(140deg, #273c68, #4b426c 55%, #314b67); mix-blend-mode: color; opacity: .55; }
.launcher-world::after { content: ''; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, var(--launcher-ink), #15191fba 25%, #1d27422b 65%, #15191f26), linear-gradient(180deg, var(--launcher-ink), #39304f66 28%, #2535571a 55%, var(--launcher-ink) 100%); }
.launcher-heading { animation: launcher-heading-enter 900ms var(--punch-ease-enter) both; }
.launcher-companion { position: absolute; top: 29%; right: 1%; width: clamp(310px, 31vw, 440px); pointer-events: none; user-select: none; }
.launcher-companion img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 24px #4386bd38); rotate: -12deg; animation: launcher-allay-enter 1500ms var(--punch-ease-enter) both; }
.launcher-start { padding-top: 8px; scroll-margin-top: 120px; }
.launcher-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: launcher-steps;
}
.launcher-steps > li { position: relative; padding-left: 24px; counter-increment: launcher-steps; }
.launcher-steps > li::before { content: counter(launcher-steps) "."; position: absolute; top: 0; left: 0; color: var(--punch-muted); font-size: 14px; line-height: 1.6; }
.launcher-steps h2 { margin: 0 0 8px; font: 500 15px/1.6 var(--punch-font-body); }
.launcher-steps p { margin: 0; color: var(--punch-muted); font-size: 14px; line-height: 1.8; }
.launcher-steps a { color: var(--punch-accent); text-decoration: underline; text-underline-offset: .2em; }
.launcher-steps a:hover { color: var(--punch-accent-hover); }
.launcher-empty { padding: 24px; border-radius: var(--punch-radius-control); background: var(--punch-surface); }
.launcher-empty h2 { margin: 0 0 8px; font: 500 18px/1.5 var(--punch-font-body); }
.launcher-empty p { margin: 0; color: var(--punch-muted); font-size: 14px; }

@keyframes launcher-land-enter { from { transform: scale(1.045); } to { transform: scale(1); } }
@keyframes launcher-heading-enter { from { transform: translateY(12px); } to { transform: translateY(0); } }
@keyframes launcher-dock-enter { from { transform: translateY(20px); } to { transform: translateY(0); } }
@keyframes launcher-allay-enter { from { opacity: 0; transform: translate(50px, 35px) rotate(16deg) scale(.9); } to { opacity: 1; transform: translate(0) rotate(0) scale(1); } }
@keyframes launcher-file-enter { from { opacity: .45; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@keyframes launcher-platform-select { 0% { transform: translateY(3px) scale(.9); } 55% { transform: translateY(-2px) scale(1.08); } 100% { transform: none; } }
@keyframes launcher-download-flow { 0% { transform: translateY(0); opacity: 1; } 44% { transform: translateY(18px); opacity: 0; } 45% { transform: translateY(-16px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

@media (hover: hover) and (pointer: fine) {
    .launcher-platform:hover::before { opacity: .7; transform: scale(1); }
    .launcher-platform:hover > i { transform: translateY(-2px) rotate(-8deg); }
}

@media (max-width: 1000px) {
    .launcher-companion { display: none; }
    .launcher-platform { gap: 6px; padding-inline: 6px; font-size: 13px; }
    .launcher-guide { gap: 48px; }
    .launcher-steps p { max-width: 48ch; }
}
@media (max-width: 760px) {
    .launcher-shell { min-height: 640px; padding: 144px 24px 120px; }
    .launcher-install { gap: 32px; }
    .launcher-heading h1 { margin-bottom: 16px; font-size: 38px; }
    .launcher-lead { max-width: 38ch; font-size: 14px; line-height: 1.75; }
    .launcher-downloads { gap: 12px; }
    .launcher-platform { gap: 8px; font-size: 14px; }
    .launcher-file { gap: 12px; }
    .launcher-download-button { max-width: none; }
    .launcher-guide { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 16px 24px 104px; }
    .launcher-world { inset: 150px 0 0; }
    .launcher-world > img { object-position: 66% center; }
    .launcher-world::after { background: linear-gradient(180deg, var(--launcher-ink) 0%, #242c454d 25%, #18273d1a 60%, var(--launcher-ink) 100%); }
    .launcher-start { padding-top: 0; }
    .launcher-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 440px) {
    .launcher-shell { padding-inline: 20px; }
    .launcher-guide { padding-inline: 20px; }
    .launcher-heading h1 { font-size: 34px; }
    .launcher-platform { gap: 6px; padding-inline: 5px; font-size: 13px; }
    .launcher-platform > i { font-size: 16px; }
    .launcher-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 360px) {
    .launcher-platform > i { display: none; }
    .launcher-platform { font-size: 14px; }
    .punch-site .launcher-download-button { gap: 8px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .launcher-page *, .launcher-page *::before { animation: none !important; transition: none !important; }
    .punch-site .launcher-download-button:is(:hover, :focus-visible), .launcher-platform:hover > i { transform: none; }
    .launcher-download-button:is(:hover, :focus-visible) .launcher-download-label { translate: none; }
}
.punch-launcher[data-motion=reduce] .launcher-page *, .punch-launcher[data-motion=reduce] .launcher-page *::before { animation: none !important; transition: none !important; }
.punch-launcher[data-motion=reduce] .launcher-download-button:is(:hover, :focus-visible), .punch-launcher[data-motion=reduce] .launcher-platform:hover > i { transform: none; }
.punch-launcher[data-motion=reduce] .launcher-download-button:is(:hover, :focus-visible) .launcher-download-label { translate: none; }
@media (forced-colors: active) {
    .launcher-world, .launcher-companion { display: none; }
    .launcher-platform:has(input:checked) { outline: 1px solid Highlight; }
}
