/* Engagement widgets — изолированные стили, без Tailwind preflight. */

.eng-quests-strip { margin: 18px 0; }
.eng-quests-widget {
    background: linear-gradient(180deg, #16181f 0%, #1d2029 100%);
    border: 1px solid #2a2e3a;
    border-radius: 10px;
    padding: 14px 18px;
    color: #e8e8ec;
    font-family: inherit;
    font-size: 13px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.eng-quests-widget .eng-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    color: #ffb84d;
}
.eng-quests-widget .eng-widget-header a {
    color: #8aa0ff;
    text-decoration: none;
    font-weight: 500;
    text-transform: none;
    font-size: 11px;
}
#eng-quests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.eng-quest-card {
    background: #20242f;
    border: 1px solid #2c3140;
    border-radius: 8px;
    padding: 10px 12px;
    transition: border-color .2s, background .2s;
}
.eng-quest-card.eng-quest-done { border-color: #4a7a3a; background: #232a26; }
.eng-quest-title { font-weight: 600; color: #fff; margin-bottom: 2px; font-size: 13px; }
.eng-quest-desc { color: #9aa0b3; font-size: 11px; line-height: 1.35; margin-bottom: 8px; }
.eng-progress { background: #14171e; border-radius: 4px; height: 6px; overflow: hidden; margin-bottom: 8px; }
.eng-progress-bar { height: 100%; background: linear-gradient(90deg, #ffb84d, #ff6b35); border-radius: 4px; transition: width .4s ease; }
.eng-quest-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eng-quest-counter { color: #b9beca; font-size: 11px; font-weight: 600; }
.eng-btn {
    border: none; cursor: pointer; padding: 5px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
    transition: transform .1s, opacity .2s;
}
.eng-btn:active { transform: scale(.97); }
.eng-btn-claim { background: linear-gradient(180deg, #ffb84d, #ff7e3a); color: #1a1b22; }
.eng-btn-claim:hover { opacity: .9; }
.eng-btn-done { background: #2b3a2b; color: #6aaa6a; cursor: default; }
.eng-btn-progress { background: #232838; color: #6f7588; cursor: default; opacity: .85; }
.eng-empty { color: #6f7588; font-style: italic; text-align: center; padding: 20px 8px; }

@media (max-width: 720px) {
    .eng-quests-strip { margin: 12px 0; }
    .eng-quests-widget { padding: 12px; }
}

/* Streak icon в шапке */
.eng-streak-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #232838;
    color: #6f7588;
    border-radius: 999px;
    padding: 4px 10px;
    margin-left: 8px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    transition: background .25s, color .25s;
    vertical-align: middle;
}
.eng-streak-icon.eng-streak-active {
    background: linear-gradient(135deg, #ff6b35, #ffb84d);
    color: #1a1b22;
    box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.15);
}
.eng-streak-flame {
    display: inline-block;
    width: 14px; height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2s5 5 5 10a5 5 0 11-10 0c0-2 1-3 1-3s-1 4 2 4 4-3 2-7 0-4 0-4z'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2s5 5 5 10a5 5 0 11-10 0c0-2 1-3 1-3s-1 4 2 4 4-3 2-7 0-4 0-4z'/></svg>") center / contain no-repeat;
}

/* Toasts */
.eng-toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translate(-50%, 30px);
    background: #1a1b22;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #2c3140;
    box-shadow: 0 8px 22px rgba(0,0,0,0.5);
    font-size: 13px;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
}
.eng-toast.eng-toast-in { transform: translate(-50%, 0); opacity: 1; }
.eng-toast-error { border-color: #913a3a; }

/* /season page */
.eng-season-page { padding: 20px; color: #e8e8ec; }
.eng-season-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.eng-season-name { font-size: 22px; font-weight: 700; color: #ffb84d; }
.eng-season-meta { color: #9aa0b3; font-size: 13px; }
.eng-season-xpbar { background: #14171e; border-radius: 6px; height: 12px; margin: 14px 0 6px; overflow: hidden; }
.eng-season-xpbar > div { height: 100%; background: linear-gradient(90deg, #ffb84d, #ff6b35); transition: width .4s; }
.eng-season-level-info { display: flex; justify-content: space-between; font-size: 12px; color: #b9beca; margin-bottom: 18px; }
.eng-season-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.eng-tier {
    background: #1d2029; border: 1px solid #2a2e3a; border-radius: 10px; padding: 12px;
}
.eng-tier.eng-tier-current { border-color: #ffb84d; box-shadow: 0 0 0 2px rgba(255,184,77,.2); }
.eng-tier-level { font-weight: 700; color: #ffb84d; font-size: 14px; margin-bottom: 8px; }
.eng-tier-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 12px; }
.eng-tier-row + .eng-tier-row { border-top: 1px dashed #2c3140; }
.eng-tier-row-label { color: #9aa0b3; text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.eng-tier-row-value { font-weight: 600; }
.eng-tier-claim {
    margin-top: 4px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
    background: linear-gradient(180deg, #ffb84d, #ff7e3a); color: #1a1b22; border: none; cursor: pointer;
}
.eng-tier-claim[disabled] { background: #2b3a2b; color: #6aaa6a; cursor: default; }
.eng-tier-locked { color: #555a6a; font-size: 11px; }
.eng-premium-card {
    background: linear-gradient(135deg, #2a2438 0%, #1d2029 100%);
    border: 1px solid #5e4a8b;
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.eng-premium-card h3 { margin: 0 0 6px; color: #c8a8ff; }
.eng-premium-card p { margin: 0; color: #9aa0b3; font-size: 13px; }
.eng-premium-buy {
    background: linear-gradient(180deg, #c8a8ff, #8b6cff);
    color: #1a1b22;
    border: none; cursor: pointer;
    padding: 10px 22px; border-radius: 8px; font-weight: 700;
}

/* Battle Pass page — info cards */
.eng-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.eng-info-card {
    background: linear-gradient(180deg, #1d2029 0%, #16181f 100%);
    border: 1px solid #2a2e3a;
    border-radius: 10px;
    padding: 16px 18px;
    color: #d3d6df;
    font-size: 13px;
    line-height: 1.5;
}
.eng-info-card h4 {
    margin: 0 0 8px;
    color: #ffb84d;
    font-size: 14px;
    font-weight: 700;
}
.eng-info-card p { margin: 0 0 8px; }
.eng-info-card p:last-child { margin-bottom: 0; }
.eng-info-card ul { margin: 0; padding-left: 18px; }
.eng-info-card ul li { margin-bottom: 4px; }
.eng-info-card b { color: #fff; }

/* Playdrop header: уплотняем меню, чтобы BATTLE PASS поместился рядом с .user-panel
   и не выталкивал её на следующую строку. .user-panel остаётся float:right как в оригинале. */
.header .nav li { margin: 0 14px; }
.header .nav li:after { right: -19px; }
@media (max-width: 1200px) {
    .header .nav li { margin: 0 10px; }
    .header .nav li:after { right: -15px; }
    .header .nav li a { font-size: 13px; }
}

/* Streak badge — компактный значок в углу .logged */
.header .logged { position: relative; }
.header .logged .eng-streak-icon {
    position: absolute;
    right: 8px;
    bottom: 6px;
    margin: 0;
    padding: 2px 7px;
    font-size: 10px;
    line-height: 1;
    z-index: 2;
}
.header .logged .eng-streak-flame { width: 10px; height: 10px; }
