/* ---------- MISSÕES DIÁRIAS (home) ---------- */
.ms-secao {
    position: relative; margin: 26px 0 8px; padding: 22px 20px 20px; border-radius: 18px;
    border: 1px solid rgba(229, 52, 58, 0.55);
    background:
        radial-gradient(ellipse 50% 70% at 0% 0%, rgba(229, 52, 58, 0.16), transparent 70%),
        radial-gradient(ellipse 40% 60% at 100% 100%, rgba(229, 52, 58, 0.10), transparent 70%),
        linear-gradient(180deg, #120c0e, #0d0f13);
    box-shadow: 0 0 40px rgba(229, 52, 58, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.ms-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ms-topo-titulo { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ms-alvo {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff;
    background: radial-gradient(circle at 35% 30%, #ff5a60, #c4161d 70%); box-shadow: 0 0 24px rgba(229, 52, 58, 0.5);
}
.ms-alvo svg { width: 28px; height: 28px; }
.ms-topo h2 { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 20px; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.ms-topo p { margin: 4px 0 0; font-size: 13.5px; color: #c9cbd1; }
.ms-pill { padding: 3px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #ff8a8f; border: 1px solid rgba(229, 52, 58, 0.55); background: rgba(229, 52, 58, 0.1); }
.ms-topo-acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-reinicia { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-size: 13px; color: #c9cbd1; background: rgba(8, 10, 13, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); }
.ms-reinicia svg { width: 18px; height: 18px; color: var(--accent-bright); }
.ms-reinicia strong { color: #fff; font-variant-numeric: tabular-nums; }
.ms-bldouble {
    display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 10px; cursor: pointer; font-family: inherit; text-align: left;
    color: #fff; background: linear-gradient(135deg, rgba(255, 201, 59, 0.12), rgba(229, 52, 58, 0.12)); border: 1px solid rgba(255, 201, 59, 0.45);
    transition: transform 0.15s, box-shadow 0.2s;
}
.ms-bldouble:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgba(255, 201, 59, 0.25); }
.ms-bldouble-x { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: #1b1300; background: linear-gradient(160deg, #ffe08a, #ffb300); }
.ms-bldouble strong { display: block; font-size: 13px; }
.ms-bldouble small { display: block; font-size: 11px; color: #e8d9a8; }
.ms-bldouble.ativo { border-color: #ffc93b; box-shadow: 0 0 22px rgba(255, 201, 59, 0.35); animation: ms-brilho 2.4s ease-in-out infinite; }
@keyframes ms-brilho { 50% { box-shadow: 0 0 34px rgba(255, 201, 59, 0.55); } }

.ms-grade { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ms-card {
    position: relative; display: flex; flex-direction: column; padding: 18px 16px 16px; border-radius: 14px; min-width: 0; cursor: pointer; text-align: left;
    color: var(--text); font-family: inherit; background: linear-gradient(180deg, #15181e, #0f1216); border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ms-card:hover { transform: translateY(-3px); border-color: rgba(229, 52, 58, 0.4); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
/* concluída e ainda não resgatada: destaque vermelho (id visual); resgatada: verde, discreta */
.ms-card.concluida { border-color: rgba(255, 59, 66, 0.7); box-shadow: 0 0 26px rgba(229, 52, 58, 0.25); }
.ms-card.resgatada { border-color: rgba(62, 207, 110, 0.4); box-shadow: none; }
.ms-icone {
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    color: #ff4d55; background: rgba(229, 52, 58, 0.14); border: 1px solid rgba(229, 52, 58, 0.45); box-shadow: 0 0 16px rgba(229, 52, 58, 0.18);
}
.ms-icone svg { width: 24px; height: 24px; }
.ms-card.resgatada .ms-icone { color: var(--green); background: rgba(62, 207, 110, 0.12); border-color: rgba(62, 207, 110, 0.45); }
.ms-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.ms-card p { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.45; min-height: 36px; }
.ms-prog { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; font-size: 12px; color: #c9cbd1; font-variant-numeric: tabular-nums; }
.ms-trilho { flex: 1; height: 7px; border-radius: 999px; background: #262a32; overflow: hidden; }
.ms-trilho i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c4161d, #ff3b42); transition: width 0.4s; }
.ms-card.resgatada .ms-trilho i { background: linear-gradient(90deg, #22a352, #3ecf6e); }
.ms-premio { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 40px; }
.ms-moedas { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(255, 201, 59, 0.35)); }
.ms-premio strong { display: block; font-size: 15px; }
.ms-premio small { display: block; font-size: 11px; color: var(--text-dim); }
.ms-premio-itens { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ms-premio-itens span { font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: #d9dbe0; }
.ms-dobro { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 5px; color: #1b1300; background: #ffc93b; margin-left: 4px; vertical-align: middle; }
.ms-botao {
    margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 9px; width: 100%;
    font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none;
    color: #ff6a70; background: transparent; border: 1px solid rgba(229, 52, 58, 0.6);
}
.ms-botao:hover { background: rgba(229, 52, 58, 0.1); color: #fff; }
.ms-botao.primario { color: #fff; border-color: transparent; background: linear-gradient(180deg, #ff3b42, #c4161d); box-shadow: 0 6px 18px rgba(229, 52, 58, 0.35); }
.ms-botao.resgatar { color: #fff; border-color: transparent; background: linear-gradient(180deg, #ff3b42, #c4161d); box-shadow: 0 6px 18px rgba(229, 52, 58, 0.4); animation: ms-pulso 1.6s ease-in-out infinite; }
.ms-botao.resgatar:hover { color: #fff; background: linear-gradient(180deg, #ff5258, #d81c24); }
@keyframes ms-pulso { 50% { box-shadow: 0 6px 28px rgba(229, 52, 58, 0.7); } }
.ms-botao.ok { color: var(--green); border-color: rgba(62, 207, 110, 0.45); background: rgba(62, 207, 110, 0.08); }
.ms-botao.ok:hover { color: #fff; background: rgba(62, 207, 110, 0.18); }
.ms-botao.ok svg { width: 16px; height: 16px; }
.ms-botao:disabled { opacity: 0.6; cursor: not-allowed; }
.ms-botao.bloqueado, .ms-botao.bloqueado:disabled { opacity: 1; cursor: not-allowed; color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1); }
.ms-botao.bloqueado:hover { background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.32); }
.ms-cadeado { width: 15px; height: 15px; flex-shrink: 0; }
.ms-vazio { grid-column: 1 / -1; padding: 30px 10px; text-align: center; color: var(--text-dim); font-size: 14px; }

/* modal (quem concluiu / quem falta) */
.ms-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 5, 8, 0.86); backdrop-filter: blur(6px); }
.ms-modal[hidden] { display: none; }
.ms-modal-caixa {
    position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 22px; border-radius: 16px;
    background: linear-gradient(170deg, #1a1114, #101217 40%); border: 1px solid rgba(229, 52, 58, 0.4); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.ms-modal-fechar { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--text-dim); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 18px; }
.ms-modal h3 { margin: 0 0 4px; font-size: 19px; padding-right: 36px; }
.ms-modal-sub { margin: 0 0 16px; font-size: 13px; color: var(--text-dim); }
.ms-modal h4 { margin: 18px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #c9cbd1; display: flex; justify-content: space-between; }
.ms-pessoa { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ms-pessoa img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #1b2028; }
.ms-pessoa a { font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none; }
.ms-pessoa a:hover { color: var(--accent-bright); }
.ms-pessoa-info { flex: 1; min-width: 0; }
.ms-pessoa-info .ms-trilho { height: 5px; margin-top: 6px; }
.ms-pessoa em { font-style: normal; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.ms-tag-ok { font-size: 11px; font-weight: 700; color: var(--green); }
.ms-modal-vazio { padding: 14px 4px; font-size: 13px; color: var(--text-dim); }
.ms-modal-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.ms-modal-acoes .ms-botao { width: auto; padding: 0 18px; margin: 0; }

/* modal da missão (estilo ranking: chips, meu progresso, duas listas) */
.ms-modal-caixa.larga { width: min(1000px, 100%); padding: 0 26px 20px; }
.ms-modal-caixa.larga::before { content: ""; position: sticky; top: 0; display: block; height: 3px; margin: 0 -26px 22px; background: linear-gradient(90deg, #c4161d, #ff3b42 50%, #c4161d); z-index: 2; }
.ms-modal-caixa.larga .ms-modal-fechar { top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 12px; color: #fff; font-size: 20px; }
.ms-mm-topo { padding: 4px 56px 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 18px; }
.ms-mm-topo h3 { margin: 0 0 4px; padding: 0; font-size: 26px; font-weight: 900; letter-spacing: -0.01em; }
.ms-mm-topo .ms-modal-sub { margin: 0; font-size: 14px; }
.ms-mm-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ms-mm-chip {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 12px; text-align: center;
    font-size: 14px; font-weight: 800; color: #ffd0d2; background: linear-gradient(180deg, rgba(229, 52, 58, 0.16), rgba(229, 52, 58, 0.06)); border: 1px solid rgba(229, 52, 58, 0.32);
}
.ms-mm-chip svg { width: 17px; height: 17px; flex-shrink: 0; color: #ff4d55; }
.ms-mm-chip.premio { color: #ffe08a; background: linear-gradient(180deg, rgba(255, 201, 59, 0.14), rgba(255, 201, 59, 0.04)); border-color: rgba(255, 201, 59, 0.35); }
.ms-mm-chip.premio svg { color: #ffc93b; }
.ms-mm-meu {
    display: flex; align-items: center; gap: 24px; padding: 18px 22px 18px 18px; margin-bottom: 18px; border-radius: 16px;
    background: radial-gradient(ellipse 40% 120% at 0% 50%, rgba(229, 52, 58, 0.22), transparent 70%), linear-gradient(180deg, #171a20, #12151a);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ms-mm-pct {
    width: 112px; height: 112px; flex-shrink: 0; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #2a2f39, #1a1e25); border: 6px solid #0d0f13; box-shadow: 0 0 0 1px rgba(229, 52, 58, 0.35), 0 0 28px rgba(229, 52, 58, 0.25);
}
.ms-mm-pct strong { font-size: 32px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ms-mm-pct small { margin-top: 4px; font-size: 11px; font-weight: 700; color: #b8bcc6; }
.ms-mm-meu.ok .ms-mm-pct { box-shadow: 0 0 0 1px rgba(62, 207, 110, 0.5), 0 0 28px rgba(62, 207, 110, 0.3); }
.ms-mm-meu.ok .ms-mm-pct strong { color: var(--green); }
.ms-mm-meu-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ms-mm-meu-info .ms-trilho { width: 100%; flex: none; height: 9px; }
.ms-mm-meu.ok .ms-trilho i { background: linear-gradient(90deg, #22a352, #3ecf6e); }
.ms-mm-meu-rotulo { font-size: 12.5px; font-weight: 700; color: #b8bcc6; }
.ms-mm-meu-linha { font-size: 14px; font-weight: 800; color: #ff6a70; }
.ms-mm-meu.ok .ms-mm-meu-linha { color: var(--green); }
.ms-mm-meu-info .ms-botao { width: auto; height: 38px; padding: 0 18px; margin: 0; }
.ms-mm-listas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ms-mm-lista { min-width: 0; padding: 14px 10px 10px 14px; border-radius: 16px; background: linear-gradient(180deg, #161920, #111419); border: 1px solid rgba(255, 255, 255, 0.08); }
.ms-mm-lista h4 { margin: 0 0 10px; display: flex; justify-content: flex-start; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; color: #c9cbd1; }
.ms-ponto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ms-ponto.verde { background: var(--green); box-shadow: 0 0 10px rgba(62, 207, 110, 0.8); }
.ms-ponto.vermelho { background: var(--accent-bright); box-shadow: 0 0 10px rgba(255, 59, 66, 0.8); }
.ms-mm-rolagem { max-height: 340px; overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: #4a4f5a transparent; }
.ms-jogador {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--text);
    background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color 0.15s, background 0.15s;
}
.ms-jogador:hover { border-color: rgba(229, 52, 58, 0.45); background: rgba(229, 52, 58, 0.06); }
.ms-jogador img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1b2028; border: 2px solid rgba(255, 255, 255, 0.85); }
.ms-jogador-nick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.ms-jogador-st { display: inline-flex; flex-shrink: 0; }
.ms-jogador-st svg { width: 16px; height: 16px; }
.ms-jogador-st.ok { color: #ffc93b; }
.ms-jogador-st.pend { color: #8a90a0; }
.ms-jogador-valor { margin-left: auto; flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #ff6a70; background: rgba(229, 52, 58, 0.12); border: 1px solid rgba(229, 52, 58, 0.28); font-variant-numeric: tabular-nums; }
.ms-mm-lista:first-child .ms-jogador-valor { color: #6fe39a; background: rgba(62, 207, 110, 0.1); border-color: rgba(62, 207, 110, 0.3); }
.ms-mm-rodape { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.ms-mm-cont { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #c9cbd1; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.ms-mm-cont b { color: #ff6a70; margin-right: 3px; }
.ms-mm-cont b.verde { color: var(--green); }
.ms-mm-data { margin-left: auto; font-size: 12.5px; color: var(--text-dim); }
@media (max-width: 760px) {
    .ms-modal-caixa.larga { padding: 0 16px 16px; }
    .ms-modal-caixa.larga::before { margin: 0 -16px 18px; }
    .ms-mm-topo h3 { font-size: 21px; }
    .ms-mm-chips { grid-template-columns: 1fr; gap: 8px; }
    .ms-mm-chip { min-height: 42px; }
    .ms-mm-meu { gap: 14px; padding: 14px; }
    .ms-mm-pct { width: 84px; height: 84px; border-radius: 18px; border-width: 4px; }
    .ms-mm-pct strong { font-size: 24px; }
    .ms-mm-listas { grid-template-columns: 1fr; }
    .ms-mm-rolagem { max-height: 260px; }
    .ms-mm-data { margin-left: 0; width: 100%; }
}

@media (max-width: 1280px) { .ms-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ms-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .ms-secao { padding: 18px 14px; }
    .ms-grade { grid-template-columns: 1fr; }
    .ms-topo-acoes { width: 100%; }
    .ms-bldouble, .ms-reinicia { flex: 1; }
}
/* selo do BLDouble ativo ao lado do nick (lista de participantes da missão) */
.ms-jogador-2x { display: inline-flex; align-items: center; justify-content: center; margin-left: 7px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 900; line-height: 1.4; color: #1b1300; background: linear-gradient(160deg, #ffe08a, #ffb300); box-shadow: 0 0 10px rgba(255, 201, 59, 0.35); vertical-align: middle; }

/* Missão exclusiva do Clube VIP: todo mundo vê, só VIP resgata. */
.ms-card.ms-vip { border-color: rgba(255, 201, 59, 0.45); background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 201, 59, 0.12), transparent 70%), var(--bg-card); }
.ms-card.ms-vip .ms-icone { color: #ffc93b; border-color: rgba(255, 201, 59, 0.5); background: rgba(255, 201, 59, 0.1); }
.ms-vip-selo { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 900; letter-spacing: 0.06em; color: #1a1306; background: linear-gradient(180deg, #ffe27a, #ffc93b); }
.ms-botao.vip { color: #1a1306; border-color: transparent; background: linear-gradient(180deg, #fff3b8, #ffc93b); box-shadow: 0 6px 18px rgba(255, 201, 59, 0.3); text-decoration: none; }
.ms-mm-chip.vip { color: #1a1306; background: linear-gradient(180deg, #ffe27a, #ffc93b); border-color: transparent; font-weight: 800; }
.ms-mm-chip.vip { grid-column: 1 / -1; justify-content: center; }
.ms-vip-selo, .ms-botao.vip, .ms-mm-chip.vip { display: inline-flex; align-items: center; gap: 5px; }
.ms-vip-selo { cursor: pointer; }
.ms-botao.vip { justify-content: center; }
.ms-mm-chip.vip { cursor: pointer; }
