/* Raster Magic / Fire Without Flames. Self-contained launcher vestments.
   Fonts and palette follow the website; icon.png mirrors Resources/icon.png.
   Gold frames the rite. Cyan opens it. Magenta lives only in the icon's caret. */
@font-face {
    font-family: "Cinzel";
    src: url("fonts/cinzel-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Cinzel";
    src: url("fonts/cinzel-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "EB Garamond";
    src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "EB Garamond";
    src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Plex Mono";
    src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --launcher-font: "EB Garamond", Garamond, Georgia, serif;
    --launcher-page-bg: #060509;
    --launcher-overlay-bg: rgba(6, 5, 9, 0.98);
    --launcher-glow: rgba(200, 161, 79, 0.12);
    --launcher-logo: url("icon.png");
    --launcher-logo-height: 8rem;
    --launcher-card-bg: #0e0c12;
    --launcher-card-border: rgba(200, 161, 79, 0.30);
    --launcher-card-radius: 0rem;
    --launcher-shadow-color: rgba(0, 0, 0, 0.55);
    --launcher-tooltip-bg: #0e0c12;
    --launcher-text: #e6dfd0;
    --launcher-text-muted: #b7ae9e;
    --launcher-text-faint: #968e80;
    --launcher-accent: #c8a14f;
    --launcher-accent-soft: rgba(200, 161, 79, 0.12);
    --launcher-button-bg: rgba(200, 161, 79, 0.04);
    --launcher-button-border: rgba(200, 161, 79, 0.30);
    --launcher-button-radius: 0rem;
    --launcher-primary-bg: rgba(70, 232, 255, 0.06);
    --launcher-primary-text: #46e8ff;
    --launcher-option-bg: #0e0c12;
    --launcher-option-text: #e6dfd0;
    --launcher-progress-track: rgba(200, 161, 79, 0.12);
    --launcher-progress-fill: linear-gradient(90deg, #c8a14f, #ecc96f);
    --launcher-chrome-bg: rgba(6, 5, 9, 0.85);
    --launcher-chrome-bg-hover: rgba(14, 12, 18, 0.96);
    --launcher-chrome-track: rgba(200, 161, 79, 0.25);
}

#launch-overlay, #end-overlay {
    overflow-y: auto;
}
.launch-card {
    box-sizing: border-box;
    flex-shrink: 0;
    width: min(34rem, 100%);
    margin: auto;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    font-size: 1.1rem;
    background: linear-gradient(180deg, rgba(200, 161, 79, 0.035), transparent 55%),
        var(--launcher-card-bg);
}
.launch-logo {
    background-position: center;
    margin-bottom: 1.5rem;
    mix-blend-mode: screen;
}
#demo-title { display: block; }
.launch-card h1, #demo-byline {
    font-family: "Cinzel", Georgia, serif;
    text-align: center;
}
.launch-card h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
#demo-byline {
    margin-bottom: 0.65rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
}
#demo-description, #end-description {
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}
.profile, select, #loading-status, #loading-percent, media-controller {
    font-family: "Plex Mono", Consolas, monospace;
    font-size: 0.75rem;
}
.profile:hover, #end-overlay .end-actions :hover {
    border-color: #ecc96f;
}
.profile.selected {
    color: #ecc96f;
    box-shadow: none;
}
summary {
    cursor: pointer;
}
input[type="checkbox"] {
    accent-color: var(--launcher-accent);
}
#primary-action, #start-demo, #end-overlay .end-actions :is(button, a).primary {
    border: 1px solid #46e8ff;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(70, 232, 255, 0.10);
}
#primary-action:hover:enabled, #start-demo:hover:enabled,
#end-overlay .end-actions :is(button, a).primary:hover {
    background: rgba(70, 232, 255, 0.12);
    border-color: #46e8ff;
}
.launch-card :focus-visible, #exit-button:focus-visible {
    outline: 2px solid #ecc96f;
    outline-offset: 3px;
}
#demo-footer, #end-footer {
    border-top: 1px solid var(--launcher-card-border);
    padding-top: 1rem;
    text-align: center;
}
media-controller {
    --media-font-family: "Plex Mono", Consolas, monospace;
}
.progress-track {
    height: 0.4rem;
    border-radius: 0;
}
@media (max-height: 740px) {
    :root { --launcher-logo-height: 5rem; }
    .launch-logo { margin-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    #progress-fill { transition: none; }
    #progress-fill.indeterminate { animation: none; left: 32.5%; }
}
