/* ==========================================================================
   lerneule Üben – Kompaktes Fokus-Design für alle 20er-Übungen (Mobile-First)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html,
body {
    min-height: 100%;
    font-family: var(--le-font-sans);
    background: var(--le-bg);
    color: var(--le-ink);
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    transition: transform 0.1s ease, background-color 0.14s ease, border-color 0.14s ease;
}

button:active:not(:disabled) {
    transform: scale(0.97);
}

button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.mono {
    font-family: var(--le-font-mono);
    font-variant-numeric: tabular-nums;
}

math {
    font-family: "Cambria Math", "STIX Two Math", Georgia, "Times New Roman", serif;
    font-size: 1.2em;
}

mfrac {
    padding: 0 3px;
}

.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   SCHLANKE KOPFLEISTE
   ========================================================================== */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--le-border);
    padding: 6px 12px;
}

.top-bar-inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.back-pill {
    min-height: 44px;
    padding: 0 11px;
    border-radius: 11px;
    border: 1px solid var(--le-border-strong);
    background: var(--le-surface);
    text-decoration: none;
    color: var(--le-ink);
    font-size: 0.84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--le-green-soft);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand-titles {
    min-width: 0;
}

.brand-title {
    font-size: 0.98rem;
    font-weight: 900;
    color: var(--le-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    border: 1px solid var(--le-border-strong);
    background: var(--le-surface);
    font-size: 1.1rem;
    display: grid;
    place-items: center;
}

/* ==========================================================================
   DEZENZTE 20ER-FORTSCHRITTSLEISTE
   ========================================================================== */
.ueben-main {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    padding: 12px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-strip {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: 14px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.progress-strip.is-profi-mode {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-color: #f59e0b;
}

.mode-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    background: var(--le-surface-alt, #f1f5f9);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--le-border);
}

.mode-btn {
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--le-ink-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1.5px solid transparent;
    text-align: center;
    line-height: 1.2;
}

.mode-btn:focus-visible {
    outline: 2px solid var(--le-green);
    outline-offset: 2px;
}

.mode-btn.is-active[data-mode="standard"] {
    background: var(--le-surface, #ffffff);
    color: #166534;
    border-color: #86efac;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.mode-btn.is-active[data-mode="profi"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border-color: #f59e0b;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.22);
}

.mode-rule-hint {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--le-ink-muted);
    line-height: 1.3;
    text-align: center;
}

.progress-strip.is-profi-mode .mode-rule-hint {
    color: #92400e;
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.status-badges-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.status-pill {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
}

.profi-seal-badge {
    font-size: 0.74rem;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border: 1px solid #f59e0b;
}

.status-pill.status-ungeuebt {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.status-pill.status-geuebt {
    background: var(--le-amber-soft);
    color: #92400e;
    border-color: #fcd34d;
}

.status-pill.status-sicher {
    background: var(--le-green-soft);
    color: #166534;
    border-color: #86efac;
}

.progress-counter {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--le-ink-muted);
}

.progress-counter strong {
    color: var(--le-ink);
}

.segments-bar {
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    gap: 3px;
    align-items: center;
}

.seg-cell {
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background-color 0.18s ease;
}

.seg-cell.checkpoint-mark {
    margin-right: 4px;
}

.seg-cell.checkpoint-filled {
    background: #f59e0b;
}

.seg-cell.filled {
    background: #22c55e;
}

.progress-strip.is-profi-mode .seg-cell.checkpoint-filled {
    background: #d97706;
}

.progress-strip.is-profi-mode .seg-cell.filled {
    background: linear-gradient(90deg, #f59e0b 0%, #eab308 100%);
}

.seg-cell.current {
    background: #cbd5e1;
}

/* ==========================================================================
   AUFGABENKARTE (FOKUS PUR)
   ========================================================================== */
.stage-card,
.victory-card {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: var(--le-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prompt-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.prompt-text {
    font-size: clamp(1.65rem, 6vw, 2.35rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--le-ink);
    word-break: break-word;
}

.prompt-sub {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--le-ink-muted);
    max-width: 500px;
}

.prompt-svg {
    width: 100%;
    display: flex;
    justify-content: center;
}

.prompt-svg svg {
    max-width: 100%;
    height: auto;
}

.prompt-audio-btn {
    min-height: 44px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--le-border-strong);
    background: var(--le-surface-alt);
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--le-ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prompt-audio-btn:hover {
    border-color: var(--le-green);
    background: var(--le-green-soft);
}

.custom-stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* --- Interaktiver Groove-Editor (Musik-Übung) --- */
.groove-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.groove-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.groove-play-btn {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1.5px solid var(--le-border-strong);
    background: var(--le-surface-alt);
    font-size: 0.86rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.groove-play-btn.is-playing {
    background: var(--le-indigo-soft);
    border-color: var(--le-indigo);
    color: #312e81;
}

.groove-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 16px;
    background: #0f172a;
    color: #f8fafc;
}

.groove-row {
    display: grid;
    grid-template-columns: 72px repeat(8, minmax(0, 1fr));
    gap: 4px;
    align-items: center;
}

.groove-row-lbl {
    font-size: 0.74rem;
    font-weight: 800;
    color: #cbd5e1;
    text-align: left;
    padding-left: 4px;
    white-space: nowrap;
}

.groove-step-head {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    padding: 4px 0;
    border-radius: 6px;
}

.groove-step-head.is-beat {
    color: #ffffff;
}

.groove-step-head.is-now {
    background: #38bdf8;
    color: #0f172a;
}

.groove-pad {
    min-height: 44px;
    width: 100%;
    border-radius: 9px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.08s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.groove-pad.is-beat-col {
    background: rgba(255, 255, 255, 0.14);
}

.groove-pad.is-now {
    box-shadow: 0 0 0 2px #38bdf8;
}

.groove-pad.track-hihat.is-on {
    background: #f59e0b;
    border-color: #fef08a;
}

.groove-pad.track-snare.is-on {
    background: #e11d48;
    border-color: #fda4af;
}

.groove-pad.track-kick.is-on {
    background: #6366f1;
    border-color: #c7d2fe;
}

@media (max-width: 480px) {
    .groove-row {
        grid-template-columns: 54px repeat(8, minmax(0, 1fr));
        gap: 3px;
    }

    .groove-row-lbl {
        font-size: 0.68rem;
    }
}

/* --- Interaktive Klaviatur & Xylophon (Musik-Übungen) --- */
.piano-wrap {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 156px;
    margin: 0 auto;
    user-select: none;
}

.piano-whites {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
    height: 100%;
}

.piano-white {
    height: 100%;
    border-radius: 0 0 12px 12px;
    border: 2px solid #94a3b8;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #475569;
    box-shadow: 0 4px 0 #cbd5e1;
}

.piano-white:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: var(--le-green);
}

.piano-black {
    position: absolute;
    top: 0;
    width: 8.5%;
    height: 58%;
    border-radius: 0 0 8px 8px;
    border: 2px solid #0f172a;
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    z-index: 4;
    box-shadow: 0 3px 0 #020617;
}

.piano-black:hover:not(:disabled) {
    background: #334155;
}

.xylo-seq {
    min-height: 44px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 12px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.xylo-chip {
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 900;
}

.xylo-bars {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
}

.xylo-bar {
    min-height: 92px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 4px;
    box-shadow: 0 4px 0 rgba(15, 23, 42, 0.22);
}

@media (max-width: 480px) {
    .piano-wrap {
        height: 136px;
    }

    .xylo-bars {
        gap: 4px;
    }

    .xylo-bar {
        min-height: 80px;
        font-size: 0.85rem;
    }
}

.answer-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* --- Typ 1: Multiple Choice (mc) --- */
.mc-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mc-btn {
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 2px solid var(--le-border-strong);
    background: var(--le-surface-alt);
    font-size: 1.06rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}

.mc-btn:hover:not(:disabled) {
    border-color: var(--le-green);
    background: #f0fdf4;
}

.mc-btn.is-correct {
    background: var(--le-green-soft);
    border-color: var(--le-green);
    color: #14532d;
}

.mc-btn.is-wrong {
    background: var(--le-rose-soft);
    border-color: var(--le-rose);
    color: #881337;
}

/* --- Typ 2: Zahlen-Eingabe + Touch-Ziffernblock (keypad) --- */
.keypad-wrap {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keypad-screen {
    min-height: 50px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 2px solid var(--le-border-strong);
    background: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--le-ink);
}

.keypad-screen.placeholder {
    color: var(--le-ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.keypad-screen.is-correct {
    background: var(--le-green-soft);
    border-color: var(--le-green);
    color: #14532d;
}

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

.pad-key {
    min-height: 48px;
    border-radius: 12px;
    border: 1.5px solid var(--le-border-strong);
    background: var(--le-surface-alt);
    font-size: 1.2rem;
    font-weight: 900;
}

.pad-key:hover:not(:disabled) {
    background: var(--le-bg-soft);
}

.pad-actions {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 6px;
}

.submit-btn,
.next-btn,
.primary-btn {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 13px;
    background: var(--le-green);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.22);
}

/* --- Typ 3: Bruch-Eingabe (fraction mit Touch-Ziffernblock) --- */
.frac-keypad-wrap {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.frac-answer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.frac-input-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.frac-slot {
    min-width: 82px;
    height: 46px;
    padding: 0 10px;
    border-radius: 12px;
    border: 2px solid var(--le-border-strong);
    background: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--le-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.frac-slot.is-empty {
    color: var(--le-ink-soft);
    font-size: 0.85rem;
    font-weight: 700;
}

.frac-slot.is-active {
    border-color: var(--le-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.frac-slot.is-correct {
    background: var(--le-green-soft);
    border-color: var(--le-green);
    color: #14532d;
}

.frac-field-bar {
    width: 88px;
    height: 3.5px;
    border-radius: 999px;
    background: var(--le-ink);
}

/* --- Typ 4: Text-Eingabe (text) --- */
.text-answer-form {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-answer-input {
    width: 100%;
    min-height: 50px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 2px solid var(--le-border-strong);
    background: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

.text-answer-input:focus,
.frac-field:focus {
    outline: none;
    border-color: var(--le-green);
}

/* --- Typ 5: Schieberegler (slider) --- */
.slider-wrap {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.slider-readout {
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--le-green-soft);
    color: #14532d;
    font-size: 1.2rem;
    font-weight: 900;
}

.slider-input {
    width: 100%;
    height: 44px;
    accent-color: var(--le-green);
    cursor: pointer;
}

.slider-bounds {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--le-ink-muted);
}

/* ==========================================================================
   KURZES RICHTIG-SIGNAL & FEHLER-ERKLÄRUNG
   ========================================================================== */
.right-toast {
    align-self: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--le-green-soft);
    border: 1px solid #86efac;
    color: #14532d;
    font-size: 0.9rem;
    font-weight: 900;
}

.feedback-box {
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.feedback-box.is-wrong {
    background: var(--le-rose-soft);
    border: 1.5px solid rgba(225, 29, 72, 0.35);
    color: #881337;
}

.feedback-title {
    font-size: 1rem;
    font-weight: 900;
}

.feedback-detail {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

/* ==========================================================================
   SIEGES-KARTE BEI 20/20
   ========================================================================== */
.victory-card {
    align-items: center;
    text-align: center;
    padding: 24px 18px;
}

.victory-badge {
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--le-green-soft);
    color: #166534;
    font-size: 0.82rem;
    font-weight: 900;
}

.victory-badge.is-profi {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border: 1.5px solid #f59e0b;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.22);
}

.victory-profile-wrap {
    width: 100%;
    max-width: 500px;
}

.victory-profile-card {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1.5px solid var(--le-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.victory-profile-card.is-animated {
    background-size: 220% 220% !important;
}

.victory-profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.victory-avatar-stage {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.victory-avatar-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.victory-avatar-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.victory-badge-chip {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    z-index: 3;
}

.victory-avatar-stage.frame-gold { background: linear-gradient(135deg, #fde047, #d97706); }
.victory-avatar-stage.frame-leaf { background: linear-gradient(135deg, #4ade80, #16a34a); }
.victory-avatar-stage.frame-stars { background: linear-gradient(135deg, #38bdf8, #818cf8, #f472b6); }
.victory-avatar-stage.frame-neon { background: linear-gradient(135deg, #2dd4bf, #06b6d4); }
.victory-avatar-stage.frame-aurora { background: linear-gradient(135deg, #34d399, #38bdf8, #a78bfa); }
.victory-avatar-stage.frame-flame,
.victory-avatar-stage.frame-ember { background: linear-gradient(135deg, #fde047, #f97316, #dc2626); }
.victory-avatar-stage.frame-diamond { background: linear-gradient(135deg, #e0f2fe, #38bdf8, #a5b4fc); }
.victory-avatar-stage.frame-prism::before,
.victory-avatar-stage.frame-galaxy::before,
.victory-avatar-stage.frame-kalenderstern::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    z-index: 0;
    animation: leVictorySpin 4s linear infinite;
}
.victory-avatar-stage.frame-prism::before { background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #06b6d4, #8b5cf6, #f43f5e); }
.victory-avatar-stage.frame-galaxy::before { background: conic-gradient(#0f172a, #38bdf8, #818cf8, #f472b6, #fde047, #0f172a); }
.victory-avatar-stage.frame-kalenderstern::before { background: conic-gradient(#fde047, #10b981, #fbbf24, #059669, #fde047); }

@keyframes leVictorySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.victory-profile-meta {
    flex: 1;
    min-width: 0;
}

.victory-profile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.victory-title-pill,
.victory-meta-pill {
    font-size: 0.76rem;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 999px;
}

.victory-title-pill {
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #451a03;
}

.victory-milestone-line {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.victory-shop-hint {
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.victory-title {
    font-size: 1.5rem;
    font-weight: 900;
}

.victory-desc {
    font-size: 0.92rem;
    color: var(--le-ink-muted);
    max-width: 460px;
}

.reward-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.reward-chip {
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--le-surface-alt);
    border: 1.5px solid var(--le-border-strong);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.reward-chip.is-profi-seal {
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #78350f;
}

.reward-chip svg {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.victory-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.profi-cta-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1.5px solid #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    font-size: 0.94rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
}

.profi-cta-btn:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.secondary-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1.5px solid var(--le-border-strong);
    background: var(--le-surface-alt);
    text-decoration: none;
    color: var(--le-ink);
    font-size: 0.94rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 560px) {
    .hide-sm {
        display: none;
    }

    .ueben-main {
        padding: 10px 10px 20px;
    }

    .stage-card {
        padding: 14px 12px;
        gap: 12px;
    }
}
