/* ── My Tournaments — Interactive Tutorial ─────────────────────────────── */

.mt-tut-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: transparent;
}

.mt-tut-overlay--dimmed {
    background: rgba(0, 0, 0, .72);
}

.mt-tut-spotlight {
    position: fixed;
    z-index: 10001;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72);
    pointer-events: none;
    outline: 2px solid rgba(22, 163, 74, .55);
    outline-offset: 3px;
    transition:
        top    .36s cubic-bezier(.4, 0, .2, 1),
        left   .36s cubic-bezier(.4, 0, .2, 1),
        width  .36s cubic-bezier(.4, 0, .2, 1),
        height .36s cubic-bezier(.4, 0, .2, 1),
        opacity .2s ease;
}

.mt-tut-tooltip {
    position: fixed;
    z-index: 10002;
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 18px 20px 14px;
    background: #1c1f25;
    border: 1px solid #2e3138;
    border-radius: 14px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, .7),
        0 0 0 1px rgba(22, 163, 74, .08),
        inset 0 1px 0 rgba(255, 255, 255, .04);
    font-family: Montserrat, system-ui, sans-serif;
    transition:
        top  .36s cubic-bezier(.4, 0, .2, 1),
        left .36s cubic-bezier(.4, 0, .2, 1);
}

.mt-tut-tooltip.mt-tut-enter {
    animation: mtTutIn .38s cubic-bezier(.34, 1.56, .64, 1) both;
    transform-origin: center center;
}

.mt-tut-tooltip.mt-tut-leave {
    animation: mtTutOut .38s cubic-bezier(.34, 1.56, .64, 1) both;
    transform-origin: center center;
}

@keyframes mtTutIn {
    from { opacity: 0; transform: scale(.55); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes mtTutOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(.55); }
}

/* ── progress dots ─────────────────────────────────────────────────────── */

.mt-tut-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 16px;
}

.mt-tut-dot {
    height: 4px;
    width: 4px;
    border-radius: 2px;
    background: #2e3138;
    transition: background .25s, width .25s;
}

.mt-tut-dot.is-active {
    background: #16a34a;
    width: 14px;
}

/* ── eyebrow row + lang toggle ─────────────────────────────────────────── */

.mt-tut-eyebrow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.mt-tut-eyebrow {
    margin-bottom: 0;
}

.mt-tut-lang {
    background: none;
    border: 1px solid #2e3138;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 10px;
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: .08em;
    color: #54596a;
    cursor: var(--custom-pointer, pointer);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: border-color .15s, color .15s;
    flex-shrink: 0;
}
.mt-tut-lang:hover {
    border-color: #16a34a;
    color: #c8cbd2;
}
.mt-tut-lang-active {
    color: #fafafa;
}
.mt-tut-lang-sep {
    color: #2e3138;
}

/* ── content ───────────────────────────────────────────────────────────── */

.mt-tut-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #69d38f;
    margin-bottom: 0;
}

.mt-tut-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #fafafa;
    margin: 0 0 8px;
    line-height: 1.3;
    transition: opacity .12s ease;
}

.mt-tut-text {
    font-size: 12.5px;
    line-height: 1.7;
    color: #9a9da6;
    margin: 0 0 16px;
    font-weight: 500;
    transition: opacity .12s ease;
}

.mt-tut-title.is-fading,
.mt-tut-text.is-fading { opacity: 0; }

/* ── footer ────────────────────────────────────────────────────────────── */

.mt-tut-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #24272d;
}

.mt-tut-skip {
    background: none;
    border: none;
    font-size: 11px;
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 600;
    color: #54596a;
    cursor: var(--custom-pointer, pointer);
    padding: 0;
    letter-spacing: .04em;
    transition: color .2s;
    white-space: nowrap;
}
.mt-tut-skip:hover { color: #9a9da6; }

.mt-tut-nav {
    display: flex;
    gap: 6px;
}

/* match mt2-btn style */
.mt-tut-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 7px 15px;
    font-size: 12px;
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 700;
    cursor: var(--custom-pointer, pointer);
    line-height: 1;
    letter-spacing: .02em;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.mt-tut-btn:disabled {
    opacity: .28;
    cursor: default;
    pointer-events: none;
}

.mt-tut-btn--ghost {
    background: #22252b;
    border-color: #32363e;
    color: #c8cbd2;
}
.mt-tut-btn--ghost:not(:disabled):hover {
    border-color: #16a34a;
    color: #fafafa;
}

.mt-tut-btn--primary {
    background: #16a34a;
    border-color: #16a34a;
    color: #0e1a12;
}
.mt-tut-btn--primary:hover {
    background: #22c55e;
    border-color: #22c55e;
}

/* ── replay button — match mt2-icon-btn ────────────────────────────────── */

.mt-tut-replay {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 38px;
    height: 38px;
    z-index: 2;
    border-radius: 8px;
    border: 1px solid #32363e;
    background: #22252b;
    color: #7e838d;
    cursor: var(--custom-pointer, pointer);
    display: none;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, color .15s;
    text-decoration: none;
    line-height: 1;
}
.mt-tut-replay:hover {
    border-color: #16a34a;
    color: #fafafa;
}
.mt-tut-replay svg { pointer-events: none; }

/* wariant inline — wewnątrz topbara modala */
.mt-tut-replay--inline {
    position: static;
    width: 32px;
    height: 32px;
    bottom: auto;
    right: auto;
}

/* ── bottom-sheet (mobile ≤ 560px) ────────────────────────────────────── */

.mt-tut-tooltip--sheet {
    top: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    transition: none !important;
    border-radius: 14px !important;
}

@supports (padding: env(safe-area-inset-bottom)) {
    .mt-tut-tooltip--sheet {
        bottom: calc(10px + env(safe-area-inset-bottom)) !important;
        padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 560px) {
    /* Replay button nie koliduje z paskiem systemu */
    .mt-tut-replay {
        bottom: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
    }

    /* Mniejszy tekst + padding żeby zmieściło się w sheet */
    .mt-tut-tooltip {
        padding: 14px 16px 12px;
    }
    .mt-tut-text {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .mt-tut-title {
        font-size: 13.5px;
    }
    .mt-tut-btn {
        padding: 7px 12px;
        font-size: 11.5px;
    }
}

/* ── waitFor — pulse animation ─────────────────────────────────────────── */

.mt-tut-spotlight.is-waiting {
    animation: mtTutPulse 1.4s ease-in-out infinite;
}

@keyframes mtTutPulse {
    0%, 100% { outline-color: rgba(22, 163, 74, .55); }
    50%       { outline-color: rgba(34, 197, 94, 1); }
}
