/* Tägliche Versorgung - die rh-daily-Regeln aus public/style (live), unverändert.
   Einsatzprotokoll - die Regeln, die public/script/tutorial.js (injectTutorialStyles) live in den Kopf schreibt. */

/* aus style/modules.css */
body.rh-daily-reward-open {
    overflow: hidden !important;
}

.rh-daily-reward-overlay {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vw, 24px);
    background:
        radial-gradient(circle at 50% 0%, rgba(205, 209, 214, 0.12), transparent 38%),
        radial-gradient(circle at 18% 82%, rgba(251, 103, 86, 0.08), transparent 34%),
        rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.rh-daily-reward-modal {
    position: relative;
    width: min(760px, 96vw);
    max-height: min(88vh, 780px);
    overflow: auto;
    border: 1px solid rgba(205, 209, 214, 0.26);
    border-radius: 24px;
    padding: clamp(16px, 2.4vw, 24px);
    color: rgba(240, 241, 243, 0.95);
    background:
        linear-gradient(145deg, rgba(18, 21, 24, 0.96), rgba(6, 7, 9, 0.98) 58%, rgba(12, 14, 17, 0.96)),
        #090a0c;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.035) inset,
        0 0 38px rgba(205, 209, 214, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(205, 209, 214, 0.38) rgba(0, 0, 0, 0.22);
}

.rh-daily-reward-modal::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.07), transparent 24%, transparent 76%, rgba(205, 209, 214, 0.055));
    opacity: 0.78;
}

.rh-daily-reward-modal > * {
    position: relative;
    z-index: 1;
}

.rh-daily-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.30);
    color: rgba(240, 241, 243, 0.78);
    cursor: pointer;
    font: 900 1.35rem/1 var(--font-main, inherit);
    transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.rh-daily-close:hover,
.rh-daily-close:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(205, 209, 214, 0.38);
    background: rgba(205, 209, 214, 0.08);
    color: #fff;
    outline: none;
}

.rh-daily-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding-right: 44px;
    margin-bottom: 16px;
}

.rh-daily-hero .rh-kicker {
    margin: 0 0 6px;
    color: rgba(205, 209, 214, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.rh-daily-hero h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(205, 209, 214, 0.12);
}

.rh-daily-hero p:not(.rh-kicker) {
    max-width: 64ch;
    margin: 9px 0 0;
    color: rgba(236, 238, 240, 0.66);
    line-height: 1.55;
}

.rh-daily-streak-badge {
    min-width: 112px;
    padding: 12px 14px;
    border: 1px solid rgba(252, 147, 135, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(150deg, rgba(252, 147, 135, 0.10), rgba(205, 209, 214, 0.045)),
        rgba(0, 0, 0, 0.24);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.rh-daily-streak-badge span {
    display: block;
    color: rgba(253, 182, 174, 0.70);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rh-daily-streak-badge strong {
    display: block;
    margin-top: 4px;
    color: rgba(253, 198, 192, 0.96);
    font-size: 1.18rem;
}

.rh-daily-summary-card,
.rh-daily-base-card {
    border: 1px solid rgba(205, 209, 214, 0.145);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(205, 209, 214, 0.052), transparent 48%),
        rgba(0, 0, 0, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 14px 34px rgba(0,0,0,0.20);
}

.rh-daily-summary-card {
    padding: 14px;
    margin-bottom: 14px;
}

.rh-daily-summary-card.is-active {
    border-color: rgba(252, 147, 135, 0.26);
    background:
        linear-gradient(145deg, rgba(252, 147, 135, 0.075), rgba(205, 209, 214, 0.045)),
        rgba(0, 0, 0, 0.28);
}

.rh-daily-summary-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rh-daily-summary-top p {
    margin: 0;
    color: rgba(236, 238, 240, 0.78);
    line-height: 1.45;
}

.rh-daily-status-chip {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(205, 209, 214, 0.20);
    background: rgba(205, 209, 214, 0.065);
    color: rgba(205, 209, 214, 0.88);
    font-size: 0.71rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rh-daily-status-chip.active {
    border-color: rgba(252, 147, 135, 0.30);
    background: rgba(252, 147, 135, 0.075);
    color: rgba(253, 182, 174, 0.95);
}

.rh-daily-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rh-daily-reward-grid.compact {
    gap: 6px;
}

.rh-daily-reward-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(205, 209, 214, 0.105);
    background: rgba(9, 11, 13, 0.58);
    color: rgba(236, 238, 240, 0.80);
}

.rh-daily-reward-pill b {
    min-width: max-content;
    color: rgba(205, 209, 214, 0.96);
    font-weight: 900;
}

.rh-daily-reward-label {
    overflow: hidden;
    color: rgba(236, 238, 240, 0.58);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rh-daily-base-list {
    max-height: 42vh;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(205, 209, 214, 0.32) rgba(0,0,0,0.22);
}

.rh-daily-base-card {
    padding: 12px;
}

.rh-daily-base-card + .rh-daily-base-card {
    margin-top: 10px;
}

.rh-daily-base-card.is-critical {
    border-color: rgba(255, 98, 98, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 98, 98, 0.055), rgba(205, 209, 214, 0.035)),
        rgba(0, 0, 0, 0.28);
}

.rh-daily-base-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.rh-daily-base-header strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rh-daily-power {
    min-width: max-content;
    color: rgba(214, 239, 247, 0.50);
    font-size: 0.82rem;
}

.rh-daily-power-critical {
    display: inline-flex;
    margin-left: 7px;
    color: rgba(255, 165, 165, 0.96);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.rh-daily-empty {
    padding: 14px;
    border: 1px dashed rgba(205, 209, 214, 0.16);
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    color: rgba(236, 238, 240, 0.58);
}

.rh-daily-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.rh-daily-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    font: 900 0.84rem/1 var(--font-main, inherit);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
}

.rh-daily-button:hover:not(:disabled),
.rh-daily-button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    outline: none;
}

.rh-daily-button.secondary {
    border: 1px solid rgba(236, 238, 240, 0.14);
    background: rgba(0,0,0,0.24);
    color: rgba(236, 238, 240, 0.70);
}

.rh-daily-button.secondary:hover,
.rh-daily-button.secondary:focus-visible {
    border-color: rgba(205, 209, 214, 0.28);
    background: rgba(205, 209, 214, 0.055);
    color: #fff;
}

.rh-daily-button.primary {
    border: 1px solid rgba(205, 209, 214, 0.38);
    background: linear-gradient(90deg, rgba(205, 209, 214, 0.95), rgba(229, 231, 234, 0.88));
    color: #0c0e10;
    box-shadow: 0 12px 28px rgba(205, 209, 214, 0.16);
}

.rh-daily-button.primary:hover,
.rh-daily-button.primary:focus-visible {
    border-color: rgba(255, 255, 255, 0.55);
    background: linear-gradient(90deg, rgba(229, 231, 234, 0.98), rgba(253, 182, 174, 0.92));
}

.rh-daily-button:disabled,
.rh-daily-button.is-loading {
    cursor: wait;
    opacity: 0.66;
    transform: none !important;
}

/* aus style/mobile-fix.css */
/* aus style/redesign.css */
/* aus style/ui.css */

/* aus public/script/tutorial.js (injectTutorialStyles) */
.rh-tutorial-highlight {
    position: relative !important;
    z-index: 13450 !important;
    outline: 1px solid rgba(194, 199, 205, 0.88) !important;
    box-shadow: 0 0 0 3px rgba(194, 199, 205, 0.10), 0 0 22px rgba(194, 199, 205, 0.28), inset 0 0 18px rgba(194, 199, 205, 0.08) !important;
    border-radius: 10px !important;
}
#rhTutorialPanel, #rhTutorialCollapsed {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 13500;
    font-family: 'Rajdhani', 'Orbitron', system-ui, sans-serif;
    color: rgba(245, 246, 247, 0.93);
}
#rhTutorialPanel {
    width: min(520px, calc(100vw - 32px));
    max-height: min(76vh, 760px);
    overflow: auto;
    background:
        radial-gradient(circle at 18% 0%, rgba(194, 199, 205, 0.11), transparent 36%),
        linear-gradient(145deg, rgba(21, 24, 28, 0.96), rgba(9, 11, 13, 0.985));
    border: 1px solid rgba(223, 225, 229, 0.12);
    border-top-color: rgba(194, 199, 205, 0.34);
    border-radius: 18px;
    box-shadow:
        0 24px 68px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    padding: 16px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(194, 199, 205, 0.38) rgba(255,255,255,0.04);
}
#rhTutorialPanel::-webkit-scrollbar { width: 8px; }
#rhTutorialPanel::-webkit-scrollbar-track { background: rgba(255,255,255,0.035); border-radius: 10px; }
#rhTutorialPanel::-webkit-scrollbar-thumb { background: rgba(194, 199, 205, 0.28); border-radius: 10px; }
#rhTutorialPanel h3 {
    margin: 2px 0 0 0;
    color: rgba(245, 250, 255, 0.96);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.02em;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(194, 199, 205, 0.16);
}
#rhTutorialPanel p {
    margin: 0;
    color: rgba(224, 226, 229, 0.92);
    line-height: 1.45;
    font-size: 0.98em;
}
.rh-tutorial-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.rh-tutorial-phase {
    color: rgba(196, 200, 206, 0.78);
    font-size: 0.76em;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
.rh-tutorial-objective {
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(194, 199, 205, 0.08), rgba(228, 82, 66, 0.035));
    border: 1px solid rgba(194, 199, 205, 0.20);
    border-radius: 12px;
    color: rgba(237, 239, 241, 0.96);
    font-size: 0.92em;
    line-height: 1.38;
}
.rh-tutorial-objective b,
.rh-tutorial-existing-note b {
    color: #fff;
}
.rh-tutorial-tip-list {
    margin: 12px 0 0 0;
    padding: 10px 12px 10px 30px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(223, 225, 229, 0.11);
    border-radius: 12px;
    color: rgba(224, 226, 229, 0.88);
    font-size: 0.9em;
    line-height: 1.36;
}
.rh-tutorial-tip-list li { margin: 4px 0; }
.rh-tutorial-statusline {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}
.rh-tutorial-chip,
.rh-tutorial-reward-pill {
    border: 1px solid rgba(194, 199, 205, 0.15);
    background: rgba(194, 199, 205, 0.055);
    color: rgba(237, 239, 241, 0.9);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.78em;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.rh-tutorial-progress-bg {
    height: 9px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(223, 225, 229, 0.10);
    border-radius: 999px;
    margin: 12px 0;
    overflow: hidden;
}
.rh-tutorial-progress-fill {
    height: 100%;
    width: var(--rh-tutorial-progress, 0%);
    background: linear-gradient(90deg, rgba(194, 199, 205, 0.88), rgba(228, 82, 66, 0.82));
    box-shadow: 0 0 14px rgba(194, 199, 205, 0.25);
    transition: width 0.25s ease;
}
.rh-tutorial-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(223, 225, 229, 0.11);
    border-radius: 12px;
}
.rh-tutorial-reward-pill {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-radius: 10px;
    background: rgba(15, 18, 21, 0.72);
}
.rh-tutorial-reward-pill span { color: rgba(196, 200, 206, 0.82); }
.rh-tutorial-reward-pill b { color: rgba(194, 199, 205, 0.95); font-family: 'Orbitron', sans-serif; }
.rh-tutorial-existing-note {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(228, 82, 66, 0.25);
    background: rgba(228, 82, 66, 0.075);
    border-radius: 12px;
    color: rgba(253, 179, 171, 0.94);
    font-size: 0.9em;
    line-height: 1.35;
}
.rh-tutorial-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}
.rh-tutorial-btn {
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    border: 1px solid rgba(223, 225, 229, 0.16);
    background: linear-gradient(180deg, rgba(45, 49, 54, 0.94), rgba(13, 15, 18, 0.98));
    color: rgba(235, 244, 255, 0.92);
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 0.74em;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.04);
}
.rh-tutorial-btn:hover:not(:disabled) {
    border-color: rgba(194, 199, 205, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.rh-tutorial-btn.primary {
    border-color: rgba(194, 199, 205, 0.38);
    background: linear-gradient(180deg, rgba(63, 68, 76, 0.92), rgba(21, 25, 28, 0.98));
}
.rh-tutorial-btn.claim {
    border-color: rgba(228, 82, 66, 0.44);
    background: linear-gradient(180deg, rgba(120, 27, 17, 0.92), rgba(31, 22, 9, 0.98));
}
.rh-tutorial-btn.danger {
    border-color: rgba(255, 77, 96, 0.32);
    background: linear-gradient(180deg, rgba(82, 26, 34, 0.85), rgba(23, 7, 10, 0.96));
    color: rgba(255, 195, 202, 0.95);
}
.rh-tutorial-btn.collapse {
    min-width: 32px;
    padding: 5px 9px;
}
.rh-tutorial-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#rhTutorialCollapsed {
    border: 1px solid rgba(194, 199, 205, 0.28);
    background: linear-gradient(145deg, rgba(21, 24, 28, 0.94), rgba(9, 11, 13, 0.98));
    box-shadow: 0 14px 32px rgba(0,0,0,0.45), 0 0 18px rgba(194, 199, 205, 0.08);
    border-radius: 14px;
    padding: 9px 12px;
    cursor: pointer;
    color: rgba(238, 239, 241, 0.95);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 1.2px;
}
@media (max-width: 900px) {
    #rhTutorialPanel, #rhTutorialCollapsed {
        right: 10px;
        bottom: 10px;
    }
    #rhTutorialPanel {
        width: calc(100vw - 20px);
        max-height: 66vh;
    }
    .rh-tutorial-reward-grid {
        grid-template-columns: 1fr;
    }
    .rh-tutorial-btn-row {
        justify-content: stretch;
    }
    .rh-tutorial-btn-row .rh-tutorial-btn {
        flex: 1 1 140px;
    }
}
/* Handy (24.10.2026): das Einsatzprotokoll deckte zwei Drittel des
   Bildschirms ab. Kompakter als Leiste unten, Tipps und Kennchips aus -
   Ziel, Belohnung und Knöpfe bleiben. */
@media (max-width: 760px) {
    #rhTutorialPanel {
        max-height: 44vh;
        padding: 12px;
        border-radius: 14px;
    }
    #rhTutorialPanel h3 {
        font-size: 1.05em;
    }
    #rhTutorialPanel p {
        font-size: 0.92em;
        line-height: 1.4;
    }
    #rhTutorialPanel .rh-tutorial-tip-list,
    #rhTutorialPanel .rh-tutorial-statusline {
        display: none;
    }
}

/* Handy (24.10.2026): Tägliche Versorgung - Serie unter den Titel statt
   daneben (der Text lief in einer schmalen Spalte), Rohstoffe einspaltig. */
@media (max-width: 560px) {
    .rh-daily-hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-right: 36px;
    }
    .rh-daily-streak-badge {
        justify-self: start;
        min-width: 0;
        padding: 8px 14px;
        display: flex;
        align-items: baseline;
        gap: 10px;
    }
    .rh-daily-reward-grid,
    .rh-daily-reward-grid.compact {
        grid-template-columns: 1fr 1fr;
    }
    .rh-daily-summary-top {
        flex-wrap: wrap;
    }
}
@media (max-width: 400px) {
    .rh-daily-reward-grid,
    .rh-daily-reward-grid.compact {
        grid-template-columns: 1fr;
    }
}
