/* Kanal König 4.1.6 – Boss-Einleitung, Bewegungswarnung, Kontrollpunkte und Pausenhilfe */

.boss-motion-warning {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 72px;
    width: max-content;
    max-width: calc(100% - 36px);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 228, 105, .7);
    border-radius: 999px;
    color: #fff7c5;
    background: rgba(88, 37, 7, .88);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .32);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px) scale(.94);
    transition: opacity .16s ease, transform .16s ease;
}

.boss-motion-warning span { font-size: 16px; }
.boss-motion-warning b { font-size: 9px; letter-spacing: .08em; }
.boss-motion-warning small { font-size: 8px; opacity: .88; }
.boss-warning .boss-motion-warning { opacity: 1; transform: translate(-50%, 0) scale(1); }
.boss-warning .boss-glow { animation: boss-motion-warning .38s ease-in-out 2; }
.boss-shielded .boss-wheel::after {
    content: "";
    position: absolute;
    z-index: 12;
    inset: -15px;
    border: 5px solid rgba(86, 227, 255, .88);
    border-radius: 50%;
    box-shadow: 0 0 22px #43cfff, inset 0 0 18px rgba(50, 208, 255, .4);
    animation: boss-shield-pulse .72s ease;
}

@keyframes boss-motion-warning {
    0%, 100% { opacity: .58; }
    50% { opacity: 1; }
}

@keyframes boss-shield-pulse {
    0% { opacity: 0; transform: scale(.88); }
    35% { opacity: 1; transform: scale(1.03); }
    100% { opacity: 0; transform: scale(1.12); }
}

.boss-support-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: max(14px, env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom));
    background: linear-gradient(rgba(3, 11, 39, .82), rgba(4, 13, 42, .94));
}

.boss-support-overlay .dialog-card,
.boss-support-overlay .result-card {
    width: min(100%, 520px);
    max-height: none;
    margin: auto;
    border: 1px solid rgba(255, 221, 108, .58);
    background: linear-gradient(165deg, #fffdf4, #eef7ff);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .44);
}

.boss-briefing-card { text-align: center; }
.boss-briefing-card > small,
.boss-pause-heading small,
.boss-skip-card > small {
    color: #9a6510;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .1em;
}

.boss-briefing-card h2,
.boss-pause-heading h2,
.boss-skip-card h3 { margin: 3px 0; }
.boss-subtitle { margin: 0 0 8px; color: #47718e; font-weight: 800; }

.boss-briefing-preview {
    position: relative;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    margin: 0 auto 9px;
}

.boss-briefing-preview i {
    position: absolute;
    inset: 5px;
    border: 7px solid #e2b53a;
    border-radius: 50%;
    background: repeating-conic-gradient(#177ebd 0 17deg, #0f4e8c 18deg 35deg);
    box-shadow: inset 0 0 0 4px #ffe98f, 0 0 20px rgba(32, 164, 234, .45);
    animation: boss-preview-spin 2.4s cubic-bezier(.5, 0, .5, 1) infinite alternate;
}

.boss-briefing-preview span { z-index: 2; font-size: 42px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .38)); }
.boss-briefing-preview b,
.boss-briefing-preview em {
    position: absolute;
    z-index: 3;
    top: 43px;
    color: #fff4a5;
    font-size: 25px;
    font-style: normal;
    text-shadow: 0 2px 4px #173466;
}
.boss-briefing-preview b { left: -4px; }
.boss-briefing-preview em { right: -4px; }

@keyframes boss-preview-spin {
    0%, 16% { transform: rotate(0); }
    45% { transform: rotate(135deg); }
    57% { transform: rotate(135deg); }
    100% { transform: rotate(-92deg); }
}

.boss-briefing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
}

.boss-briefing-grid > span {
    min-height: 60px;
    display: grid;
    place-content: center;
    gap: 3px;
    padding: 7px 5px;
    border: 1px solid #c8dceb;
    border-radius: 13px;
    background: #f6fbff;
}

.boss-briefing-grid small { color: #55758c; font-size: 7px; font-weight: 950; }
.boss-briefing-grid b { color: #173f61; font-size: 9px; line-height: 1.25; }
.boss-mechanic { margin: 8px 0; color: #405a6e; font-size: 10px; line-height: 1.45; }
.boss-checkpoint-note,
.boss-royal-support {
    margin: 7px 0;
    padding: 8px;
    border-radius: 11px;
    color: #1e6844;
    background: #e6faee;
    font-size: 9px;
}
.boss-royal-support { color: #714b02; background: #fff3c4; }
.boss-intro-setting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 10px 0 5px;
    color: #567084;
    font-size: 9px;
}
.boss-intro-setting input { width: 17px; height: 17px; accent-color: #157ad7; }
.boss-briefing-actions { margin-top: 8px; }
.boss-resume-skip { margin-top: 7px; }

.boss-countdown-overlay {
    background: rgba(3, 11, 39, .72);
    backdrop-filter: blur(3px);
}

.boss-countdown-card {
    min-width: 210px;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 22px;
    border: 2px solid #ffe172;
    border-radius: 25px;
    color: white;
    background: radial-gradient(circle at 50% 15%, #405fc0, #18245e);
    box-shadow: 0 15px 42px rgba(0, 0, 0, .5);
}

.boss-countdown-card small { color: #bfeeff; font-size: 9px; font-weight: 900; }
.boss-countdown-card b {
    min-width: 100px;
    color: #ffe358;
    font-size: 68px;
    line-height: 1;
    text-align: center;
    text-shadow: 0 4px 0 #7a4c08;
    animation: boss-count-pop 1s ease infinite;
}
.boss-countdown-card span { font-size: 11px; font-weight: 800; }

@keyframes boss-count-pop {
    0% { opacity: .4; transform: scale(.72); }
    28%, 72% { opacity: 1; transform: scale(1); }
    100% { opacity: .82; transform: scale(.9); }
}

.boss-pause-card { text-align: left; }
.boss-pause-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.boss-pause-heading > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: white;
    background: linear-gradient(145deg, #ed5d45, #a91f3b);
    font-size: 25px;
}
.boss-pause-card > p { margin: 7px 0; color: #536d80; font-size: 10px; line-height: 1.4; }
.boss-checkpoint-state {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 9px 0;
    padding: 9px 11px;
    border: 1px solid #b8d8e8;
    border-radius: 13px;
    background: #effaff;
}
.boss-checkpoint-state > span { color: #168568; font-size: 24px; }
.boss-checkpoint-state small,
.boss-checkpoint-state b { display: block; }
.boss-checkpoint-state small { color: #55798e; font-size: 7px; font-weight: 900; }
.boss-checkpoint-state b { color: #17465f; font-size: 11px; }

.boss-wait-button,
.boss-skip-button {
    min-height: 46px;
    margin-top: 7px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(145deg, #267ec5, #174b9c);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .025em;
}
.boss-wait-button:disabled { color: #d4e3ed; background: linear-gradient(145deg, #6f8798, #526979); }
.boss-pause-card .rewarded-continue-button {
    min-height: 48px;
    margin-top: 7px;
    border: 1px solid #ffdd69;
    border-radius: 14px;
    color: #543400;
    background: linear-gradient(145deg, #ffe877, #f7ae2b);
    font-size: 9px;
    font-weight: 950;
}
.boss-pause-card .rewarded-continue-button:disabled { opacity: .55; }

.boss-skip-card {
    margin-top: 10px;
    padding: 11px;
    border: 1px solid #e8bd51;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff8d9, #fff);
}
.boss-skip-card h3 { color: #663e00; font-size: 13px; }
.boss-skip-card p { margin: 5px 0; color: #725c3a; font-size: 9px; line-height: 1.4; }
.boss-skip-card strong { display: block; min-height: 16px; color: #5d460c; font-size: 9px; }
.boss-ad-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 8px 0 6px; }
.boss-ad-progress i {
    height: 8px;
    border-radius: 999px;
    background: #dacda8;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .16);
}
.boss-ad-progress i.done { background: linear-gradient(90deg, #2dc879, #72e29f); }
.boss-skip-button { width: 100%; background: linear-gradient(145deg, #ee8e1d, #ca4d19); }
.boss-ad-unavailable { padding: 8px; border-radius: 10px; background: #fff0ee; }
.boss-pause-actions { margin-top: 10px; }
.boss-banner-hint { text-align: center; opacity: .74; }

.boss-skipped-card { text-align: center; }
.boss-skipped-card .result-stars span { color: #bdc5cb; text-shadow: none; }
.boss-skipped-card > p { color: #526d80; font-size: 10px; line-height: 1.45; }

@media (max-width: 390px) {
    .boss-briefing-grid { grid-template-columns: 1fr; }
    .boss-briefing-grid > span { min-height: 45px; }
    .boss-support-overlay { padding-inline: 8px; }
    .boss-pause-actions,
    .boss-briefing-actions { grid-template-columns: 1fr; }
}

@media (min-width: 700px) {
    .boss-support-overlay .dialog-card,
    .boss-support-overlay .result-card { padding: 20px; }
    .boss-briefing-card h2,
    .boss-pause-heading h2 { font-size: 24px; }
    .boss-mechanic,
    .boss-pause-card > p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .boss-briefing-preview i,
    .boss-countdown-card b,
    .boss-warning .boss-glow { animation: none !important; }
}
