@import url("/games/lenoflap/lenoflap.css?v=20261019-ui-reference-v2");

:root {
    --flap-bg: #fff8fb;
    --flap-side-bg: #fff0f7;
    --flap-board-bg: linear-gradient(180deg, #ffd5ec 0%, #bdeeff 52%, #d9f1c9 52%, #9bcf84 100%);
}

/* Keep results compact and give replay the primary action. */
.result-panel {
    box-sizing: border-box;
    gap: 14px;
    width: min(90%, 320px);
    padding: 22px 18px;
    text-align: center;
}

.result-score {
    margin: 0;
}

.result-score dt {
    color: var(--flap-muted);
    font-size: 12px;
}

.result-score dd {
    margin: 4px 0 0;
    color: var(--flap-ink);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
}

.result-best {
    color: var(--flap-muted);
    font-size: 12px;
    line-height: 1.6;
}

.result-best strong {
    color: var(--flap-ink);
}

.result-best .game-ranking-feedback {
    margin-top: 2px;
    color: #65416e;
    font: inherit;
}

.result-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.result-stats > div {
    padding: 9px 4px;
}

.result-panel #retryButton,
.result-panel .game-ranking-open {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    line-height: 1.5;
}

.result-panel .game-ranking-open {
    border: 1px solid #dfcddd;
    color: #65416e;
    background: #fff8fb;
    box-shadow: none;
    font-size: 12px;
    font-weight: 700;
}

/* The board owns the vampire palette; surrounding controls follow Lenoas. */
:root {
    --flap-bg: #fff;
    --flap-side-bg: #f3f4f6;
    --flap-board-bg: #21182f;
    --flap-ink: #2a2328;
    --flap-muted: #6e626a;
}
.flap-shell { min-height: 0; padding: 4px 0 max(4px, env(safe-area-inset-bottom)); }
.flap-stage { width: 100%; }
.fixed-cast { pointer-events: none; background: #ede9ee; box-shadow: none; }
.flap-overlay-panel { background: #fff; box-shadow: none; }
.flap-overlay-panel button {
    min-height: 44px; border: 0; border-radius: 8px;
    color: #2a2328; background: #f3f4f6; box-shadow: none;
}
.flap-hud > div { color: #fff; background: rgba(41, 29, 51, .82); box-shadow: none; }
.flap-hud-icon { color: #f0c7d5; }
.flap-pause-button { color: #2a2328; background: #f3f4f6; box-shadow: none; }
.flight-help { margin: 0; color: #6e626a; font-size: 12px; line-height: 1.7; }
.nero-comment { margin: 5px 0 0; min-height: 2.8em; font-size: 12px; line-height: 1.4; }
.result-best small { display: block; font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.course-choice { display: grid; gap: 4px; width: 100%; text-align: left; font-size: 12px; }
.course-choice select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid #d9d5da; border-radius: 8px; background: #f3f4f6; color: #2a2328; font: inherit; font-size: 14px; }
.start-panel { max-height: 96%; overflow-y: auto; gap: 9px; }
.start-hero { width: 64px; height: 64px; }
.start-hero img { width: 64px; height: 64px; }
#changeCourseButton { width: 100%; }
#resultCourseName { color: #6e626a; font-size: 12px; }
