/* --- base.css --- */
/* ============================================
   ACHIEVEMENTS 2.0 — A ESTRADA DO VENCEDOR
   BASE v3.1 — iPHONE CARTOON PRETO & BRANCO
   Squircle iOS + traço cartoon + halftone + mola
   100% monocromático (só o visual, design intacto)
   © 2026 LITE STUDIO
   ============================================ */

/* ---------- CONTAINER ---------- */
.st-ach2-container {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: #000000;
    /* pontinhos halftone (cartoon) */
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.6px);
    background-size: 16px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: ach2FadeIn 0.5s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Rajdhani', sans-serif;
}

@media (min-width: 600px) {
    .st-ach2-container {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
        border-left: 2px solid rgba(255,255,255,0.35);
        border-right: 2px solid rgba(255,255,255,0.35);
    }
}

@keyframes ach2FadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ícones brancos (override do dourado global) */
.st-ach2-container .st-icon { color: #ffffff !important; }

.st-ach2-container > * { position: relative; z-index: 1; }

/* ---------- HEADER ---------- */
.st-ach2-header {
    text-align: center;
    padding: max(18px, env(safe-area-inset-top, 18px)) 20px 8px;
    flex-shrink: 0;
}

.st-ach2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.st-ach2-eyebrow::before,
.st-ach2-eyebrow::after {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
}

.st-ach2-eyebrow::after { background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent); }

/* título grande estilo lock screen (escopo do header) */
.st-ach2-header .st-ach2-title {
    font-family: inherit;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 4px 0.14em;
    text-shadow: 0 0 24px rgba(255,255,255,0.35), 3px 3px 0 rgba(255,255,255,0.12);
}

.st-ach2-header .st-ach2-subtitle {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 0 0.28em;
}

/* ---------- STATS (widget iOS) ---------- */
.st-ach2-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px 4px;
    flex-shrink: 0;
}

.st-ach2-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 22px;
    background: #101010;
    border: 2px solid #ffffff;
    border-radius: 22px;
    box-shadow: 0 4px 0 rgba(255,255,255,0.15);
    min-width: 96px;
}

.st-ach2-stat-value {
    font-family: inherit;
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.st-ach2-stat.best .st-ach2-stat-value {
    text-shadow: 0 0 16px rgba(255,255,255,0.6);
}

.st-ach2-stat-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- ESTRADA ---------- */
.st-ach2-road {
    position: relative;
    height: 64px;
    margin: 4px 0 -32px;
    flex-shrink: 0;
    z-index: 0;
    pointer-events: none;
    contain: layout style;
}

.st-ach2-road-asphalt {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    background: linear-gradient(180deg, #0d0d0d 0%, #161616 50%, #0d0d0d 100%);
    border-top: 2px solid rgba(255,255,255,0.25);
    border-bottom: 2px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}

/* faixa tracejada branca: anima via TRANSLATE (GPU) */
.st-ach2-road-line {
    position: absolute;
    left: 0; right: -48px;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg,
        rgba(255,255,255,0.65) 0 26px, transparent 26px 48px);
    animation: ach2RoadMove 1.6s linear infinite;
    will-change: transform;
    opacity: 0.8;
}

@keyframes ach2RoadMove {
    from { transform: translateY(-50%) translateX(0); }
    to   { transform: translateY(-50%) translateX(-48px); }
}

/* progresso percorrido (branco gelo) */
.st-ach2-road-progress {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    width: 0%;
    border-radius: 8px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.0) 0%,
        rgba(255,255,255,0.14) 60%,
        rgba(255,255,255,0.30) 100%);
    border-right: 2px solid #ffffff;
    box-shadow: 0 0 24px rgba(255,255,255,0.35);
    transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}

/* brilho que percorre */
.st-ach2-road-shimmer {
    position: absolute;
    top: 50%;
    left: -100px;
    width: 90px;
    height: 44px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
    animation: ach2Shimmer 3.6s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes ach2Shimmer {
    0%   { transform: translateY(-50%) translateX(0);     opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(-50%) translateX(620px); opacity: 0; }
}

.st-ach2-road-meta {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: #ffffff;
    background: rgba(16,16,16,0.9);
    border: 2px solid rgba(255,255,255,0.7);
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 3px 0 rgba(255,255,255,0.15);
    z-index: 3;
}

/* ---------- DECK (cartas 3D) ---------- */
.st-ach2-deck-wrap {
    flex: 1;
    position: relative;
    min-height: 0;
    perspective: 1300px;
    perspective-origin: 50% 45%;
    touch-action: pan-y;
    overflow: visible;
    z-index: 2;
}

.st-ach2-deck {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.st-ach2-hint {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    white-space: nowrap;
    animation: ach2HintPulse 2.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
    will-change: transform, opacity;
}

@keyframes ach2HintPulse {
    0%,100% { opacity: 0.35; transform: translateX(-50%); }
    50%     { opacity: 0.8;  transform: translateX(-50%) translateX(4px); }
}

/* ---------- RODAPÉ ---------- */
.st-ach2-footer {
    flex-shrink: 0;
    padding: 8px 20px calc(84px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.st-ach2-dots { display: flex; align-items: center; gap: 7px; }

.st-ach2-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.st-ach2-dot.unlocked { background: rgba(255,255,255,0.55); }

.st-ach2-dot.active {
    width: 26px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255,255,255,0.7);
}

.st-ach2-counter {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}

.st-ach2-counter b { color: #ffffff; font-weight: 700; }

/* ---------- LOADING ---------- */
.st-ach2-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 18px;
}

.st-ach2-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.12);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: ach2Spin 0.9s linear infinite;
}

@keyframes ach2Spin { to { transform: rotate(360deg); } }

.st-ach2-loading-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    animation: ach2Blink 1.6s ease-in-out infinite;
}

@keyframes ach2Blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 380px) {
    .st-ach2-stat { padding: 8px 16px; min-width: 84px; }
    .st-ach2-stat-value { font-size: 1.4rem; }
    .st-ach2-road { height: 56px; margin-bottom: -28px; }
}

@media (min-width: 600px) {
    .st-ach2-header .st-ach2-title { font-size: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .st-ach2-road-line, .st-ach2-road-shimmer, .st-ach2-hint { animation: none !important; }
}


/* --- ui.css --- */
/* ============================================
   ACHIEVEMENTS - UI v4.1 — DOSSIÊ CARTOON B&W
   Modal de detalhes + animação de BLOQUEIO
   + partículas / banner / celebração
   100% preto & branco (design intacto)
   © 2026 LITE STUDIO
   ============================================ */

/* ícones dentro do modal (ele mora no body, fora do container) */
.st-ach2-modal-overlay .st-icon { color: #ffffff !important; }

/* ---------- OVERLAY ---------- */
.st-ach2-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.05) 0%, transparent 60%),
        rgba(0,0,0,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: ach2OverlayIn 0.3s ease;
}

@keyframes ach2OverlayIn { from { opacity: 0; } to { opacity: 1; } }
.st-ach2-modal-overlay.closing { animation: ach2OverlayOut 0.25s ease forwards; }
@keyframes ach2OverlayOut { to { opacity: 0; } }

/* ---------- CAIXA DO MODAL (squircle iOS) ---------- */
.st-ach2-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 34px 26px 26px;
    text-align: center;
    background: #101010;
    border: 2px solid #ffffff;
    border-radius: 34px;
    box-shadow: 0 8px 0 rgba(255,255,255,0.12), 0 24px 70px rgba(0,0,0,0.85);
    animation: ach2ModalIn 0.42s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes ach2ModalIn {
    0% { opacity: 0; transform: translateY(34px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.st-ach2-modal-overlay.closing .st-ach2-modal { animation: ach2ModalOut 0.25s ease forwards; }
@keyframes ach2ModalOut { to { opacity: 0; transform: translateY(22px) scale(0.95); } }

/* linha de luz no topo (branca) */
.st-ach2-modal-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 34px 34px 0 0;
    background: linear-gradient(90deg, transparent, #ffffff 30%, #e5e5e5 50%, #ffffff 70%, transparent);
    background-size: 200% 100%;
    animation: ach2AccentSlide 3s linear infinite;
}

@keyframes ach2AccentSlide { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* rebites → pontinhos cartoon brancos */
.st-ach2-modal-rivet {
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 30%, #8a8a8a 72%);
    box-shadow: 0 0 6px rgba(255,255,255,0.4);
    z-index: 6;
}

.st-ach2-modal-rivet-tl { top: 10px; left: 10px; }
.st-ach2-modal-rivet-tr { top: 10px; right: 10px; }
.st-ach2-modal-rivet-bl { bottom: 10px; left: 10px; }
.st-ach2-modal-rivet-br { bottom: 10px; right: 10px; }

/* fechar */
.st-ach2-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 10;
}

.st-ach2-modal-close:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000 !important; /* fundo branco no hover → texto preto */
    transform: rotate(90deg) scale(1.08);
}

/* ---------- BANNER DE BLOQUEIO (tracejado cartoon) ---------- */
.st-ach2-modal-lockbanner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    margin-bottom: 20px;
    text-align: left;
    background: #1c1c1c;
    border: 2px dashed rgba(255,255,255,0.55);
    border-radius: 22px;
    animation: ach2LockGlow 2s ease-in-out infinite;
}

@keyframes ach2LockGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(255,255,255,0.10); }
    50% { box-shadow: 0 0 24px rgba(255,255,255,0.28); }
}

.st-ach2-modal-lockicon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: grayscale(1) brightness(2);
    animation: ach2LockRattle 0.9s cubic-bezier(0.36,0.07,0.19,0.97) 0.45s both;
    transform-origin: 50% 20%;
}

@keyframes ach2LockRattle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    12% { transform: rotate(-14deg) scale(1.12); }
    28% { transform: rotate(12deg) scale(1.12); }
    44% { transform: rotate(-9deg) scale(1.06); }
    60% { transform: rotate(7deg) scale(1.06); }
    76% { transform: rotate(-4deg); }
    88% { transform: rotate(2deg); }
}

.st-ach2-modal-locktitle {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 0 12px rgba(255,255,255,0.35);
}

.st-ach2-modal-locksub {
    font-family: var(--font-main);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
    line-height: 1.35;
}

.st-ach2-modal-locksub b { color: #ffffff !important; font-weight: 700; }

/* banner "em progresso" (borda sólida branca) */
.st-ach2-modal-currentbanner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    margin-bottom: 20px;
    text-align: left;
    background: #1c1c1c;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 22px;
    box-shadow: 0 4px 0 rgba(255,255,255,0.12);
}

.st-ach2-modal-currenticon {
    font-size: 1.9rem;
    flex-shrink: 0;
    filter: grayscale(1) brightness(2);
    animation: ach2Hourglass 2.2s ease-in-out infinite;
}

@keyframes ach2Hourglass { 0%,100% { transform: rotate(0); } 50% { transform: rotate(180deg); } }

.st-ach2-modal-currenttitle {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 0 12px rgba(255,255,255,0.35);
}

.st-ach2-modal-currentbanner .st-ach2-modal-locksub b { color: #ffffff !important; }

/* ---------- IMAGEM ---------- */
.st-ach2-modal-imgwrap {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 16px;
}

.st-ach2-modal-ring {
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.45);
    animation: ach2RingSpin 22s linear infinite;
}

@keyframes ach2RingSpin { to { transform: rotate(360deg); } }

.st-ach2-modal-img {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    background: #0d0d0d;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 26px rgba(0,0,0,0.5), 0 0 26px rgba(255,255,255,0.35);
}

/* B&W: imagens sempre em grayscale */
.st-ach2-modal-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: grayscale(1) contrast(1.05);
}

.st-ach2-modal-imgfallback {
    font-family: inherit;
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
}

/* check (desbloqueado) — branco cartoon */
.st-ach2-modal-check {
    position: absolute;
    bottom: -3px; right: -3px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
    border: 3px solid #0a0a0a;
    box-shadow: 0 0 16px rgba(255,255,255,0.7);
    z-index: 5;
    animation: ach2CheckPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}

@keyframes ach2CheckPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* cadeado (bloqueado) */
.st-ach2-modal-lockbadge {
    position: absolute;
    bottom: -3px; right: -3px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #1c1c1c;
    border: 2.5px solid rgba(255,255,255,0.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    filter: grayscale(1) brightness(2);
    z-index: 5;
    box-shadow: 0 0 14px rgba(255,255,255,0.25);
}

/* ---------- ESTADO BLOQUEADO (seletores corrigidos) ---------- */
.st-ach2-modal.is-locked {
    border-color: rgba(255,255,255,0.35);
    animation: ach2ModalIn 0.42s cubic-bezier(0.16,1,0.3,1), ach2ModalShake 0.55s cubic-bezier(0.36,0.07,0.19,0.97) 0.4s both;
}

@keyframes ach2ModalShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-9px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
    88% { transform: translateX(2px); }
}

.st-ach2-modal.is-locked .st-ach2-modal-accent {
    background: linear-gradient(90deg, transparent, #8a8a8a 30%, #ffffff 50%, #8a8a8a 70%, transparent);
    background-size: 200% 100%;
}

.st-ach2-modal.is-locked .st-ach2-modal-img {
    border-color: #3a3a3a;
    box-shadow: inset 0 0 26px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.6);
}

.st-ach2-modal.is-locked .st-ach2-modal-img img { filter: grayscale(1) brightness(0.45) contrast(1.1); }

.st-ach2-modal.is-locked .st-ach2-modal-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.st-ach2-modal.is-locked .st-ach2-modal-ring { border-color: rgba(255,255,255,0.15); }
.st-ach2-modal.is-locked .st-ach2-modal-title { color: rgba(255,255,255,0.4); text-shadow: none; }
.st-ach2-modal.is-locked .st-ach2-modal-level { color: rgba(255,255,255,0.35); border-color: rgba(255,255,255,0.15); }
.st-ach2-modal.is-locked .st-ach2-modal-progress-fill { background: linear-gradient(90deg, #3a3a3a, #525252); box-shadow: none; }
.st-ach2-modal.is-locked .st-ach2-modal-reward { opacity: 0.45; filter: grayscale(0.6); }

/* ---------- TEXTOS ---------- */
.st-ach2-modal-level {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 5px 16px;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    margin-bottom: 12px;
}

.st-ach2-modal-title {
    font-family: inherit;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 4px;
    text-shadow: 0 0 18px rgba(255,255,255,0.35);
}

.st-ach2-modal-sub {
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin-bottom: 18px;
}

/* ---------- STATS ---------- */
.st-ach2-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #1c1c1c;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 18px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.st-ach2-modal-stat {
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.st-ach2-modal-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%; right: 0; bottom: 15%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
}

.st-ach2-modal-stat-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.st-ach2-modal-stat-value {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.st-ach2-modal-stat-value.st-unlocked { text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.st-ach2-modal-stat-value.st-current { color: #E5E5E5; }
.st-ach2-modal-stat-value.st-locked { color: rgba(255,255,255,0.45); }

/* ---------- PROGRESSO ---------- */
.st-ach2-modal-progress { margin-bottom: 16px; }

.st-ach2-modal-progress-track {
    height: 8px;
    background: #141414;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    overflow: hidden;
}

.st-ach2-modal-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6b6b6b, #ffffff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: width 1s cubic-bezier(0.16,1,0.3,1);
}

/* ---------- DESCRIÇÃO ---------- */
.st-ach2-modal-desc {
    font-family: var(--font-main);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 16px;
    padding: 0 4px;
}

/* ---------- RECOMPENSA ---------- */
.st-ach2-modal-reward {
    padding: 13px 16px;
    background: rgba(255,255,255,0.04);
    border: 2px dashed rgba(255,255,255,0.45);
    border-radius: 18px;
    margin-bottom: 18px;
    text-align: left;
}

.st-ach2-modal-reward-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.st-ach2-modal-reward-value {
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

/* ---------- CTA (pill branco cartoon) ---------- */
.st-ach2-modal-cta {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    border: none;
    color: #000000;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    box-shadow: 0 5px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.15s ease;
}

.st-ach2-modal-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.10), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.st-ach2-modal-cta:hover::before { transform: translateX(100%); }
.st-ach2-modal-cta:hover { box-shadow: 0 5px 0 rgba(255,255,255,0.3), 0 0 24px rgba(255,255,255,0.35); }
.st-ach2-modal-cta:active { transform: translateY(3px) scale(0.97); box-shadow: 0 1px 0 rgba(255,255,255,0.3); }

.st-ach2-modal.is-locked .st-ach2-modal-cta {
    background: #2a2a2a;
    color: rgba(255,255,255,0.8);
    box-shadow: 0 5px 0 rgba(255,255,255,0.08);
}

.st-ach2-modal.is-locked .st-ach2-modal-cta:active { box-shadow: 0 1px 0 rgba(255,255,255,0.08); }

/* ============================================
   PARTÍCULAS / BANNER / CELEBRAÇÃO
   ============================================ */

/* partículas SEMPRE brancas (override das cores inline do JS) */
.st-ach2-particle {
    position: fixed;
    width: 9px; height: 9px;
    pointer-events: none;
    z-index: 10000;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(255,255,255,0.8) !important;
    animation: ach2ParticleFly 1.15s ease-out forwards;
    animation-delay: var(--delay);
}

@keyframes ach2ParticleFly {
    0% { transform: translate(0,0) scale(1) rotate(0deg); opacity: 1; }
    100% {
        transform: translate(calc(cos(var(--angle)) * 190px), calc(sin(var(--angle)) * 190px - 40px)) scale(0) rotate(680deg);
        opacity: 0;
    }
}

/* banner de conquista — cartão branco cartoon */
.st-ach2-banner {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 16px));
    left: 50%;
    transform: translateX(-50%) translateY(-140%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 14px 34px;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 22px;
    box-shadow: 0 6px 0 rgba(255,255,255,0.35), 0 12px 40px rgba(0,0,0,0.7);
    transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
    text-align: center;
    max-width: 88vw;
}

.st-ach2-banner.show { transform: translateX(-50%) translateY(0); }

.st-ach2-banner-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(0,0,0,0.6);
    text-transform: uppercase;
}

.st-ach2-banner-title {
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #000000;
    text-transform: uppercase;
    line-height: 1;
}

.st-ach2-card.celebrating .st-ach2-card-inner {
    animation: ach2Celebrate 1.1s cubic-bezier(0.34,1.56,0.64,1);
    border-color: #ffffff;
    box-shadow: 0 0 50px rgba(255,255,255,0.55), 0 18px 48px rgba(0,0,0,0.7);
}

@keyframes ach2Celebrate {
    0% { transform: scale(0.85) rotate(-2deg); }
    45% { transform: scale(1.07) rotate(1.5deg); }
    70% { transform: scale(0.99) rotate(-0.5deg); }
    100% { transform: scale(1) rotate(0); }
}

/* ---------- ANIMAÇÕES GERAIS ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.st-fade-in { animation: fadeIn 0.6s var(--ease-out); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 380px) {
    .st-ach2-modal { padding: 30px 20px 22px; }
    .st-ach2-modal-imgwrap { width: 104px; height: 104px; }
    .st-ach2-modal-title { font-size: 1.7rem; }
    .st-ach2-modal-stat-value { font-size: 0.95rem; }
    .st-ach2-modal-lockicon { font-size: 1.7rem; }
}

@media (min-width: 600px) {
    .st-ach2-modal-imgwrap { width: 132px; height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
    .st-ach2-modal, .st-ach2-modal.is-locked,
    .st-ach2-modal-ring, .st-ach2-modal-accent,
    .st-ach2-modal-lockicon, .st-ach2-modal-lockbanner,
    .st-ach2-modal-currenticon, .st-ach2-particle,
    .st-ach2-card.celebrating .st-ach2-card-inner { animation: none !important; }
}


/* --- cards.css --- */
/* ============================================
   ACHIEVEMENTS 2.0 — CARTAS DA JORNADA
   CARDS v3.1 — iPHONE CARTOON PRETO & BRANCO
   Squircle iOS + borda branca 2px + sombra dura
   Mesmo comportamento 3D (drag/fling/snap)
   © 2026 LITE STUDIO
   ============================================ */

/* ---------- CARTA (wrapper 3D) ---------- */
.st-ach2-card {
    position: absolute;
    left: 50%;
    top: 47%;
    width: min(272px, 76vw);
    height: min(424px, 58vh);
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), opacity 0.45s ease;
}

/* durante o drag o JS adiciona .dragging no deck → sem transition */
.st-ach2-deck.dragging .st-ach2-card { transition: none; }
.st-ach2-deck.dragging { cursor: grabbing; }

/* ---------- CORPO DA CARTA (squircle iOS) ---------- */
.st-ach2-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 18px 16px;
    background: #101010;
    border: 2px solid #ffffff;
    border-radius: 34px;
    box-shadow: 0 7px 0 rgba(255,255,255,0.16);
    overflow: hidden;
    contain: layout style;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* textura halftone sutil (estática) */
.st-ach2-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1.6px);
    background-size: 14px 14px;
    pointer-events: none;
}

/* ---------- REBITES → pontinhos cartoon ---------- */
.st-ach2-rivet {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 30%, #8a8a8a 72%);
    box-shadow: 0 0 6px rgba(255,255,255,0.35);
    z-index: 6;
}

.st-ach2-rivet-tl { top: 9px; left: 9px; }
.st-ach2-rivet-tr { top: 9px; right: 9px; }
.st-ach2-rivet-bl { bottom: 9px; left: 9px; }
.st-ach2-rivet-br { bottom: 9px; right: 9px; }

/* ---------- TOPO ---------- */
.st-ach2-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.st-ach2-level {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 999px;
}

.st-ach2-status {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ---------- IMAGEM ---------- */
.st-ach2-img-wrap {
    position: relative;
    width: 108px;
    height: 108px;
    margin-bottom: 12px;
    flex-shrink: 0;
    z-index: 2;
}

.st-ach2-img-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.35);
    animation: ach2RingSpin 24s linear infinite;
    will-change: transform;
}

.st-ach2-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2a2a2a;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.5), 0 6px 18px rgba(0,0,0,0.5);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* B&W: imagens das conquistas sempre em grayscale */
.st-ach2-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: grayscale(1) contrast(1.05);
}

.st-ach2-img .st-achievement-fallback {
    display: flex; align-items: center; justify-content: center;
    font-family: inherit; font-weight: 800; color: rgba(255,255,255,0.3);
}

/* check branco cartoon */
.st-ach2-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    border: 3px solid #0a0a0a;
    box-shadow: 0 0 14px rgba(255,255,255,0.6);
    z-index: 4;
}

/* ---------- TEXTOS (carta) ---------- */
.st-ach2-title {
    font-family: inherit;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    color: #ffffff;
    margin: 0 0 3px;
    z-index: 2;
    transition: color 0.4s ease;
}

.st-ach2-subtitle {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    margin: 0 0 10px;
    z-index: 2;
}

.st-ach2-days {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.06);
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
    z-index: 2;
}

/* ---------- PROGRESSO ---------- */
.st-ach2-progress { width: 88%; z-index: 2; margin-bottom: 10px; }

.st-ach2-progress-track {
    height: 6px;
    background: #1c1c1c;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.st-ach2-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6b6b6b, #ffffff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}

.st-ach2-progress-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
}

/* ---------- RECOMPENSA / BOTÃO ---------- */
.st-ach2-reward {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.5);
    border-left: 3px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.04);
    border-radius: 0 14px 14px 0;
    padding: 7px 12px;
    text-align: left;
    width: 88%;
    z-index: 2;
    margin-top: auto;
}

/* botão detalhes — pill branco cartoon */
.st-ach2-detail-btn {
    margin-top: 10px;
    padding: 11px 28px;
    background: #ffffff;
    border: none;
    color: #000000;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    box-shadow: 0 4px 0 rgba(255,255,255,0.3);
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.15s ease, opacity 0.25s ease;
    z-index: 6;
}

.st-ach2-detail-btn:hover { box-shadow: 0 4px 0 rgba(255,255,255,0.3), 0 0 18px rgba(255,255,255,0.35); }
.st-ach2-detail-btn:active { transform: translateY(2px) scale(0.96); box-shadow: 0 1px 0 rgba(255,255,255,0.3); }

/* ---------- OVERLAY DE BLOQUEIO ---------- */
.st-ach2-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.st-ach2-lock-icon { font-size: 2.4rem; opacity: 0.6; filter: grayscale(1) brightness(2); }

.st-ach2-lock-days {
    font-family: inherit;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1;
}

.st-ach2-lock-text {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

/* ============================================
   STATUS
   ============================================ */

/* DESBLOQUEADA — brilho branco */
.st-ach2-card.unlocked .st-ach2-card-inner {
    background: #121212;
    border-color: #ffffff;
    box-shadow: 0 7px 0 rgba(255,255,255,0.2), 0 0 32px rgba(255,255,255,0.22), inset 0 0 32px rgba(255,255,255,0.04);
}

.st-ach2-card.unlocked .st-ach2-img {
    border-color: #ffffff;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.4), 0 0 26px rgba(255,255,255,0.45);
}

.st-ach2-card.unlocked .st-ach2-title { text-shadow: 0 0 16px rgba(255,255,255,0.5); }
.st-ach2-card.unlocked .st-ach2-level { color: #ffffff; border-color: rgba(255,255,255,0.5); }

.st-ach2-card.unlocked .st-ach2-status {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

/* ATUAL — pulso branco via OPACITY em camada ::after */
.st-ach2-card.current .st-ach2-card-inner {
    background: #161616;
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 7px 0 rgba(255,255,255,0.14), 0 0 22px rgba(255,255,255,0.14);
}

.st-ach2-card.current .st-ach2-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: 32px;
    box-shadow: 0 0 34px rgba(255,255,255,0.28), inset 0 0 26px rgba(255,255,255,0.05);
    animation: ach2CurrentPulse 2.4s ease-in-out infinite;
    will-change: opacity;
}

@keyframes ach2CurrentPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }

.st-ach2-card.current .st-ach2-img { border-color: rgba(255,255,255,0.65); }

.st-ach2-card.current .st-ach2-status {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.5);
}

.st-ach2-card.current .st-ach2-img-ring { border-color: rgba(255,255,255,0.4); }

/* BLOQUEADA — cinza e sem vida */
.st-ach2-card.locked .st-ach2-card-inner {
    background: #0e0e0e;
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 7px 0 rgba(255,255,255,0.05);
}

.st-ach2-card.locked .st-ach2-img { filter: grayscale(1) brightness(0.6); border-color: #1e1e1e; }
.st-ach2-card.locked .st-ach2-title { color: rgba(255,255,255,0.35); }
.st-ach2-card.locked .st-ach2-subtitle { color: rgba(255,255,255,0.25); }

.st-ach2-card.locked .st-ach2-days {
    color: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

.st-ach2-card.locked .st-ach2-rivet {
    background: radial-gradient(circle, #4a4a4a 30%, #2a2a2a 72%);
    box-shadow: none;
}

.st-ach2-card.locked .st-ach2-detail-btn { opacity: 0.4; }

/* ---------- CARTA CENTRAL: flutuação ---------- */
.st-ach2-card.center .st-ach2-card-inner {
    animation: ach2CardFloat 4.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes ach2CardFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-7px); }
}

/* ---------- CELEBRAÇÃO ---------- */
.st-ach2-card.celebrating .st-ach2-card-inner {
    animation: ach2Celebrate 1.1s cubic-bezier(0.34,1.56,0.64,1);
    border-color: #ffffff;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 380px) {
    .st-ach2-card { width: min(246px, 78vw); height: min(400px, 56vh); }
    .st-ach2-img-wrap { width: 92px; height: 92px; }
    .st-ach2-title { font-size: 1.35rem; }
    .st-ach2-reward { font-size: 0.58rem; }
}

@media (min-width: 600px) {
    .st-ach2-card { width: 290px; height: 450px; }
    .st-ach2-img-wrap { width: 120px; height: 120px; }
    .st-ach2-title { font-size: 1.75rem; }
}

@media (max-height: 660px) {
    .st-ach2-card { height: min(380px, 54vh); }
    .st-ach2-img-wrap { width: 84px; height: 84px; margin-bottom: 8px; }
    .st-ach2-subtitle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .st-ach2-card-inner, .st-ach2-img-ring,
    .st-ach2-card.current .st-ach2-card-inner::after,
    .st-ach2-card.celebrating .st-ach2-card-inner { animation: none !important; }
}


/* ============================================
   ✅ OVERRIDES PRETO-NO-BRANCO (v3.1)
   O global.css força `color:#FFFFFF !important` em todos
   os botões/spans/divs do app. Estes seletores têm
   especificidade MAIOR + !important, então vencem e
   garantem texto PRETO nos elementos de fundo branco.
   ============================================ */

/* Botão "Detalhes" da carta */
.st-ach2-container .st-ach2-detail-btn { color: #000000 !important; }

/* Selo ✓ das cartas (fundo branco) */
.st-ach2-card .st-ach2-check { color: #000000 !important; }

/* Badge de status "CONQUISTADO" (fundo branco) */
.st-ach2-card.unlocked .st-ach2-status { color: #000000 !important; }

/* CTA do modal (fundo branco) */
.st-ach2-modal-overlay .st-ach2-modal-cta { color: #000000 !important; }

/* CTA do modal BLOQUEADO (fundo escuro → volta a ser branco) */
.st-ach2-modal.is-locked .st-ach2-modal-cta { color: rgba(255,255,255,0.8) !important; }

/* Selo ✓ do modal (fundo branco) */
.st-ach2-modal .st-ach2-modal-check { color: #000000 !important; }

/* Banner de conquista desbloqueada (cartão branco) */
.st-ach2-banner .st-ach2-banner-label { color: rgba(0,0,0,0.6) !important; }
.st-ach2-banner .st-ach2-banner-title { color: #000000 !important; }