*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:    #08080f;
    --bg2:   #0f0f1a;
    --text:  #ffffff;
    --muted: rgba(255,255,255,0.45);
    --accent:#7c3aed;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* ─── BACKGROUND CANVAS ─────────────────────────────── */
#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ─── MUTE BUTTON ────────────────────────────────────── */
.mute-btn {
    position: fixed;
    top: .85rem;
    right: .85rem;
    z-index: 1010;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    color: #fff;
    backdrop-filter: blur(6px);
}
.mute-btn:hover { background: rgba(255,255,255,.15); transform: scale(1.1); }

/* ─── SCREENS ────────────────────────────────────────── */
.screen {
    position: relative;
    z-index: 1;
    display: none;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    transition: opacity .35s ease;
}
.screen.active { display: flex; opacity: 1; overscroll-behavior-y: none; }

/* ─── SCREEN SHAKE ───────────────────────────────────── */
@keyframes shake {
    0%,100% { transform: translateX(0) rotate(0); }
    10%     { transform: translateX(-7px) rotate(-.8deg); }
    20%     { transform: translateX(7px)  rotate(.8deg); }
    30%     { transform: translateX(-5px) rotate(-.5deg); }
    40%     { transform: translateX(5px)  rotate(.5deg); }
    55%     { transform: translateX(-3px); }
    65%     { transform: translateX(3px); }
    80%     { transform: translateX(-1px); }
    90%     { transform: translateX(1px); }
}
.screen.shake { animation: shake .55s cubic-bezier(.36,.07,.19,.97) both; }

/* ─── COMBO DISPLAY ──────────────────────────────────── */
.combo-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0);
    font-size: 2.8rem;
    font-weight: 900;
    color: #eab308;
    text-shadow: 0 0 40px #eab308cc, 0 0 80px #eab30888;
    pointer-events: none;
    z-index: 2000;
    white-space: nowrap;
    opacity: 0;
    letter-spacing: .04em;
}
.combo-display.show {
    animation: combo-pop 1.85s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes combo-pop {
    0%   { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(-8deg); }
    12%  { opacity: 1; transform: translate(-50%,-50%) scale(1.25) rotate(2deg); }
    22%  { transform: translate(-50%,-50%) scale(.92) rotate(0deg); }
    32%  { transform: translate(-50%,-50%) scale(1.06); }
    45%  { transform: translate(-50%,-50%) scale(1); opacity: 1; }
    75%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(.85) translateY(-20px); }
}


/* ─── LANDING ────────────────────────────────────────── */
.landing-content { text-align: center; max-width: 460px; width: 100%; }

h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: .9rem;
    background: linear-gradient(135deg, #fff 40%, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h1 + p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6d28d9, #a855f7);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 30px #7c3aed55;
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover  { transform: translateY(-3px); box-shadow: 0 10px 45px #7c3aed88; }
.btn-primary:active { transform: translateY(0) scale(.97); }

/* ─── QUIZ ───────────────────────────────────────────── */
#screen-quiz {
    min-height: unset;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    padding: 1rem 1.4rem 1.5rem;
    justify-content: flex-start;
    gap: .6rem;
}

.quiz-content {
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.quiz-orb-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    height: min(180px, 26vh);
}
.quiz-orb-wrap .orb-canvas {
    margin: 0;
    width: min(160px, 24vh);
    height: min(160px, 24vh);
}

/* Live score below orb */
.live-score {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.28);
    letter-spacing: .1em;
    white-space: nowrap;
    transition: color .4s, transform .2s;
    pointer-events: none;
}
.live-score.pulse {
    animation: score-pulse .35s ease;
}
@keyframes score-pulse {
    0%   { transform: translateX(-50%) scale(1); }
    40%  { transform: translateX(-50%) scale(1.35); color: rgba(255,255,255,.7); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Esfera de partículas 3D */
.orb-canvas {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    flex-shrink: 0;
    cursor: grab;
    touch-action: none;
    transition: opacity .4s ease;
    border-radius: 50%;
}
.orb-canvas:active { cursor: grabbing; }

/* pts flash */
.pts-flash {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    text-shadow: 0 0 20px currentColor;
    z-index: 10;
}
.pts-flash.size-sm { font-size: 1rem; }
.pts-flash.size-md { font-size: 1.65rem; }
.pts-flash.size-lg { font-size: 2.5rem; letter-spacing: .02em; }
.pts-flash.fire    { animation: pts-rise .78s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes pts-rise {
    0%   { opacity: 1;  transform: translateX(-50%) translateY(10px) scale(.75); }
    18%  { opacity: 1;  transform: translateX(-50%) translateY(0)     scale(1.15); }
    100% { opacity: 0;  transform: translateX(-50%) translateY(-65px)  scale(.88); }
}

/* option button */
.option-btn.pop { animation: btn-pop .28s ease; }
@keyframes btn-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(.91); }
    100% { transform: scale(1.03); }
}

/* ─── SLIDE-IN FOR QUESTIONS ─────────────────────────── */
@keyframes slide-in-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.slide-in { animation: slide-in-up .28s ease forwards; }

/* ─── PARTICLES ──────────────────────────────────────── */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%,-50%);
    animation: particle-fly linear forwards;
}
.particle.result-particle {
    position: absolute;
    z-index: 2;
}
@keyframes particle-fly {
    0%   { opacity: 1; transform: translate(-50%,-50%) translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(-50%,-50%) translate(var(--tx),var(--ty)) scale(0); }
}

/* ─── RINGS ──────────────────────────────────────────── */
.ring {
    position: fixed;
    border-radius: 50%;
    border: 2px solid;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%,-50%) scale(1);
    animation: ring-expand .72s ease-out forwards;
}
@keyframes ring-expand {
    0%   { opacity: .9; transform: translate(-50%,-50%) scale(1); }
    100% { opacity: 0;  transform: translate(-50%,-50%) scale(3.8); }
}
.result-bloom {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: blur(8px);
    animation: result-bloom-pulse 2.0s ease-out forwards;
}
@keyframes result-bloom-pulse {
    0%   { opacity: 1;   transform: translate(-50%,-50%) scale(0.82); }
    55%  { opacity: 0.6; transform: translate(-50%,-50%) scale(1.02); }
    100% { opacity: 0;   transform: translate(-50%,-50%) scale(1.1);  }
}

/* ─── SCREEN FLASH ───────────────────────────────────── */
#screenFlash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 998;
    opacity: 0;
}
#screenFlash.flash { animation: scr-flash .42s ease forwards; }
@keyframes scr-flash {
    0%   { opacity: .38; }
    100% { opacity: 0; }
}

/* ─── PROGRESS ───────────────────────────────────────── */
.quiz-timer-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    margin-bottom: .5rem;
}

.quiz-countdown {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    color: #a78bfa;
    letter-spacing: .05em;
    min-width: 5ch;
    text-align: center;
    padding: .15rem .6rem;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(124,58,237,.4);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(124,58,237,.3), inset 0 0 6px rgba(0,0,0,.4);
    text-shadow: 0 0 8px currentColor;
    transition: color .15s, box-shadow .15s, border-color .15s;
    flex-shrink: 0;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,.09);
    border-radius: 99px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6d28d9, #a855f7);
    border-radius: 99px;
    transition: width .42s cubic-bezier(.34,1.56,.64,1);
}

.quiz-dots {
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin-bottom: .75rem;
}
.quiz-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.2);
    transition: all .3s ease;
}
.quiz-dot.done {
    background: #7c3aed;
    border-color: #a855f7;
    box-shadow: 0 0 8px rgba(168,85,247,.6);
}
.quiz-dot.active {
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    border-color: transparent;
    box-shadow: 0 0 14px rgba(168,85,247,.8);
    transform: scale(1.3);
}

.question-counter {
    display: inline-block;
    background: rgba(124,58,237,.2);
    border: 1px solid rgba(124,58,237,.35);
    color: #a78bfa;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: .2rem .7rem;
    border-radius: 99px;
    margin-bottom: .6rem;
    align-self: flex-start;
}

.question-text {
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: .9rem;
}

.options { display: flex; flex-direction: column; gap: .55rem; }

.option-btn {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.85);
    padding: .8rem 1.1rem;
    border-radius: 14px;
    font-size: .92rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s, color .15s;
    line-height: 1.45;
    position: relative;
    overflow: hidden;
}
.option-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #7c3aed, #a855f7);
    border-radius: 99px 0 0 99px;
    opacity: 0;
    transition: opacity .15s;
}
@media (hover: hover) {
    .option-btn:hover {
        background: rgba(124,58,237,.18);
        border-color: rgba(124,58,237,.5);
        color: #fff;
        transform: translateX(4px);
    }
    .option-btn:hover::before { opacity: 1; }
}
.option-btn.selected {
    background: rgba(124,58,237,.28);
    border-color: #a855f7;
    color: #fff;
}
.option-btn.selected::before { opacity: 1; }

/* ─── LOADING ────────────────────────────────────────── */
.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.loading-content .orb-canvas { margin-bottom: .6rem; }

#loadingOrbCanvas.orb-charging {
    animation: orb-charge-grow 3.5s cubic-bezier(0.2, 0, 0.55, 1) forwards;
    transform-origin: 50% 50%;
    will-change: transform;
    position: relative;
    z-index: 10;
}
/* Empurra os textos pra baixo à medida que o orb cresce, evitando sobreposição */
#loadingOrbCanvas.orb-charging ~ .loading-text,
#loadingOrbCanvas.orb-charging ~ #slotMachine {
    animation: text-follow-orb 3.5s cubic-bezier(0.2, 0, 0.55, 1) forwards;
}
@keyframes text-follow-orb {
    0%   { transform: translateY(0); }
    65%  { transform: translateY(72px); }
    100% { transform: translateY(120px); }
}

/* Esconde só durante a explosão */
#loadingOrbCanvas.orb-exploding ~ .loading-text,
#loadingOrbCanvas.orb-exploding ~ #slotMachine {
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
#loadingOrbCanvas.orb-exploding {
    animation: orb-explode 0.85s ease-out forwards;
    transform-origin: 50% 50%;
    position: relative;
    z-index: 10;
}
@keyframes orb-charge-grow {
    0%   { transform: scale(1); }
    65%  { transform: scale(1.9); }
    100% { transform: scale(2.5); }
}
@keyframes orb-explode {
    0%   { transform: scale(2.5); opacity: 1; filter: brightness(1.5); }
    35%  { transform: scale(4);   opacity: 0.8; filter: brightness(3); }
    100% { transform: scale(8);   opacity: 0;   filter: brightness(1); }
}
.loading-text {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 0;
    transition: opacity .4s;
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .28; } }

/* ─── RESULT ─────────────────────────────────────────── */
.result-content { text-align: center; max-width: 460px; width: 100%; }

.result-orb-clip {
    position: relative;
    width: 234px;
    height: 234px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    overflow: hidden;
}
#resultOrbCanvas {
    width: 234px;
    height: 234px;
    display: block;
}
#resultOrbCanvas.aura-alive {
    animation: result-orb-breathe 1.6s ease-in-out infinite;
}
@keyframes result-orb-breathe {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(1.11); }
}

.score-display {
    margin-bottom: .5rem;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
}

.score-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg,
        #fde68a 0%,
        #f59e0b 22%,
        #fbbf24 40%,
        #fffbeb 52%,
        #fbbf24 64%,
        #d97706 80%,
        #fde68a 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shimmer 3.5s linear infinite;
    letter-spacing: -.02em;
}
@keyframes gold-shimmer {
    0%   { background-position: 0%   center; }
    100% { background-position: 250% center; }
}
.score-number.score-landed {
    animation: gold-shimmer 3.5s linear infinite, score-land-pop .55s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes score-land-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.score-pts {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(251,191,36,.75);
    text-shadow: 0 0 18px rgba(251,191,36,.35);
}

.level-badge {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    padding: .35rem 1.4rem;
    border-radius: 50px;
    border: 2px solid currentColor;
    margin-bottom: .9rem;
    transition: color .5s, border-color .5s;
}

.percentile-text { color: var(--muted); font-size: .92rem; margin-bottom: .75rem; }

.level-desc {
    font-size: .98rem;
    line-height: 1.65;
    color: rgba(255,255,255,.75);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ─── SHARE ──────────────────────────────────────────── */
.share-section { width: 100%; margin-bottom: 1.6rem; }

.share-challenge {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: .2rem;
}
.share-sub {
    font-size: .88rem;
    color: rgba(255,255,255,.45);
    margin-bottom: 1.1rem;
}


/* Grade 2×2 de compartilhamento */
.share-primary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin-bottom: .6rem;
}

.btn-share-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: none;
    border-radius: 14px;
    padding: .95rem .5rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: transform .18s, filter .18s, box-shadow .18s;
    color: #fff;
}
.btn-share-grid i    { font-size: 1.45rem; }
.btn-share-grid span { font-size: .75rem; font-weight: 700; }
.btn-share-grid:hover  { transform: translateY(-3px); filter: brightness(1.1); }
.btn-share-grid:active { transform: scale(.96); }

.btn-sg-zap    { background: #25D366; box-shadow: 0 4px 20px #25D36644; }
.btn-sg-fb     { background: #1877F2; box-shadow: 0 4px 20px #1877F244; }
.btn-sg-tg     { background: #2AABEE; box-shadow: 0 4px 20px #2AABEE44; }
.btn-sg-native { background: linear-gradient(135deg, #6d28d9, #a855f7); box-shadow: 0 4px 20px #7c3aed44; }

/* Mini buttons row */
.share-mini-row {
    display: flex;
    gap: .5rem;
    justify-content: center;
}

.btn-mini {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    border-radius: 12px;
    padding: .65rem .4rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background .18s, transform .18s;
}
.btn-mini i    { font-size: 1rem; }
.btn-mini span { font-size: .62rem; font-weight: 600; }
.btn-mini:hover  { background: rgba(255,255,255,.13); transform: translateY(-2px); }
.btn-mini:active { transform: scale(.95); }
.btn-mini.btn-tg      { background: rgba(42,171,238,.15);  border-color: rgba(42,171,238,.3); }
.btn-mini.btn-dc      { background: rgba(88,101,242,.15);  border-color: rgba(88,101,242,.3); }
.btn-mini.btn-threads { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }

.btn-retry {
    background: rgba(109,40,217,.12);
    border: 1.5px solid rgba(168,85,247,.35);
    color: #c4b5fd;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    padding: .7rem 2rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: .5rem auto 0;
    transition: all .2s;
}
.btn-retry:hover {
    background: rgba(109,40,217,.28);
    border-color: rgba(168,85,247,.65);
    color: #e9d5ff;
    transform: translateY(-1px);
}

.btn-cta-pulse {
    background: linear-gradient(135deg, #6d28d9 0%, #a855f7 50%, #06b6d4 100%) !important;
    background-size: 200% 200% !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 1rem 2.2rem !important;
    border-radius: 50px !important;
    width: 100%;
    max-width: 340px;
    display: block;
    margin: 0 auto;
    letter-spacing: .02em;
    animation: cta-pulse 2.2s ease-in-out infinite;
}
.btn-cta-pulse:hover {
    color: #fff !important;
    filter: brightness(1.12);
}
@keyframes cta-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 22px rgba(124,58,237,.55), 0 5px 24px rgba(0,0,0,.35);
    }
    50% {
        transform: scale(1.045);
        box-shadow: 0 0 44px rgba(168,85,247,.85), 0 0 64px rgba(6,182,212,.35), 0 5px 24px rgba(0,0,0,.35);
    }
}

/* ─── SOCIAL PROOF ───────────────────────────────────── */
.social-proof {
    margin-top: 1.2rem;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.live-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
    0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 #22c55e66; }
    50%      { opacity: .8; transform: scale(1.15); box-shadow: 0 0 0 4px transparent; }
}

/* ─── SLOT MACHINE ───────────────────────────────────── */
.slot-machine {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: .6rem;
    opacity: 0;
    transition: opacity .5s ease;
}
.slot-machine.visible { opacity: 1; }

.slot-label {
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: .8rem;
    animation: blink 1.6s ease-in-out infinite;
}

.slot-reel {
    position: relative;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: min(92vw, 400px);
}
.slot-reel::before,
.slot-reel::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 22px;
    z-index: 1;
    pointer-events: none;
}
.slot-reel::before { top: 0;    background: linear-gradient(to bottom, var(--bg), transparent); }
.slot-reel::after  { bottom: 0; background: linear-gradient(to top,    var(--bg), transparent); }

.slot-item {
    font-size: clamp(1.2rem, 5.5vw, 1.9rem);
    font-weight: 900;
    white-space: nowrap;
    transition: color .06s;
    will-change: transform;
}
.slot-item.locked {
    animation: slot-lock .6s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes slot-lock {
    0%   { transform: scale(1); }
    22%  { transform: scale(1.28); filter: brightness(1.8); }
    52%  { transform: scale(.9); }
    78%  { transform: scale(1.06); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* ─── SHARED FROM BANNER ────────────────────────────── */
.shared-from {
    font-size: .95rem;
    color: rgba(255,255,255,.55);
    margin-bottom: .5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ─── STREAK BADGE ───────────────────────────────────── */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(234,179,8,.12);
    border: 1px solid rgba(234,179,8,.5);
    color: #eab308;
    padding: .28rem .9rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: .6rem;
    animation: badge-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes badge-pop {
    from { transform: scale(.65); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ─── NEAR MISS ──────────────────────────────────────── */
.near-miss {
    background: rgba(249,115,22,.08);
    border: 1px solid rgba(249,115,22,.32);
    border-radius: 14px;
    padding: .8rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    color: #f97316;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    animation: badge-pop .5s .3s cubic-bezier(.34,1.56,.64,1) both;
}

/* ─── TRAIT BARS ─────────────────────────────────────── */
.trait-bars-section {
    width: 100%;
    margin-bottom: 1.6rem;
    text-align: left;
}
.trait-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.35);
    margin-bottom: 0;
    text-align: center;
}
.trait-bars {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.trait-item {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.trait-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.trait-name {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.72);
}
.trait-pct {
    font-size: .78rem;
    font-weight: 900;
    min-width: 36px;
    text-align: right;
    transition: color .5s;
}
.trait-track {
    height: 6px;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    overflow: hidden;
}
.trait-fill {
    height: 100%;
    border-radius: 8px;
    width: 0%;
    transition: width 1.1s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}
.trait-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: inherit;
    filter: brightness(1.6);
    box-shadow: 0 0 6px currentColor;
    opacity: 0;
    transition: opacity .3s .8s;
}
.trait-fill.done::after { opacity: 1; }

/* ─── RECORDE PESSOAL HINT ──────────────────────────── */
.prev-score-hint {
    font-size: .78rem;
    font-weight: 700;
    color: #a78bfa;
    margin-top: .55rem;
    padding: .35rem .9rem;
    background: rgba(124,58,237,.12);
    border: 1px solid rgba(124,58,237,.28);
    border-radius: 50px;
    animation: badge-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}

/* ─── LANDING LEADERBOARD REVEAL ────────────────────── */
.lb-reveal-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    margin-top: 1.6rem;
    padding: .5rem 1.2rem;
    cursor: pointer;
    border-radius: 14px;
    transition: background .2s;
    width: 100%;
}
.lb-reveal-btn:hover { background: rgba(255,255,255,.05); }

.lb-reveal-label {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lb-reveal-arrow {
    font-size: 1rem;
    color: rgba(255,255,255,.35);
    animation: arrow-bounce 1.3s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0);   opacity: .35; }
    50%       { transform: translateY(6px); opacity: .85; }
}

.landing-lb.revealed {
    animation: lb-drop-in .38s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes lb-drop-in {
    from { opacity: 0; transform: translateY(-14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* ─── LEADERBOARD ────────────────────────────────────── */
.landing-lb,
.leaderboard-section {
    width: 100%;
    border: 1px solid rgba(124,58,237,.28);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(124,58,237,.1) 0%, rgba(10,8,20,.95) 55%);
    box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset,
                0 8px 40px rgba(124,58,237,.14),
                0 2px 8px rgba(0,0,0,.5);
    position: relative;
}
.landing-lb::before,
.leaderboard-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(167,139,250,.5) 40%, rgba(167,139,250,.5) 60%, transparent 95%);
    pointer-events: none;
}
.landing-lb {
    margin-top: 1.8rem;
}
.leaderboard-section {
    margin-top: .5rem;
    margin-bottom: 1.2rem;
    animation: lb-rise .5s .1s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes lb-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.2rem .75rem;
    border-bottom: 1px solid rgba(124,58,237,.18);
    background: linear-gradient(90deg, rgba(124,58,237,.18) 0%, rgba(124,58,237,.06) 100%);
}
.lb-title {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #c4b5fd, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.lb-title .fa-trophy {
    -webkit-text-fill-color: #eab308;
    background: none;
    filter: drop-shadow(0 0 6px rgba(234,179,8,.5));
}
.lb-refresh-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.45);
    font-size: .95rem;
    cursor: pointer;
    padding: .3rem .45rem;
    border-radius: 8px;
    transition: color .2s, background .2s, transform .5s;
    line-height: 1;
}
.lb-refresh-btn:hover { color: #fff; background: rgba(124,58,237,.3); transform: rotate(180deg); }

/* Claim form */
.lb-claim {
    padding: .85rem 1.1rem .9rem;
    border-bottom: 1px solid rgba(124,58,237,.15);
    background: rgba(124,58,237,.06);
}
.lb-claim-text {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.65);
    margin-bottom: .55rem;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    line-height: 1.4;
}
.lb-claim-text i { font-size: .95rem; margin-top: .05rem; flex-shrink: 0; }
.lb-claim-row { display: flex; gap: .5rem; }

.nick-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, background .2s, box-shadow .2s;
    min-width: 0;
}
.nick-wrap:focus-within {
    border-color: #7c3aed;
    background: rgba(124,58,237,.12);
    box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}
.nick-at {
    padding: 0 .1rem 0 .8rem;
    color: rgba(255,255,255,.4);
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
}
.nick-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    padding: .65rem .75rem .65rem .1rem;
    outline: none;
    min-width: 0;
}
.nick-input::placeholder { color: rgba(255,255,255,.18); }

.btn-claim {
    background: linear-gradient(135deg, #6d28d9, #a855f7);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .65rem 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s, box-shadow .18s, opacity .18s;
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.btn-claim:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,.55); }
.btn-claim:active { transform: scale(.95); opacity: .85; }
.btn-claim:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }

.lb-claim-hint {
    font-size: .68rem;
    color: rgba(255,255,255,.28);
    margin-top: .4rem;
}

/* Scroll wrapper com fade no rodapé */
.lb-scroll-wrap {
    position: relative;
}
.lb-scroll-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 42px;
    background: linear-gradient(to bottom, transparent, rgba(8,5,18,.92));
    pointer-events: none;
    transition: opacity .25s;
    border-radius: 0 0 18px 18px;
}
.lb-scroll-wrap.at-bottom::after { opacity: 0; }

/* List */
.lb-list {
    padding: .1rem 0 .25rem;
    max-height: 272px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(124,58,237,.4) transparent;
}
.lb-list::-webkit-scrollbar { width: 3px; }
.lb-list::-webkit-scrollbar-track { background: transparent; }
.lb-list::-webkit-scrollbar-thumb { background: rgba(124,58,237,.5); border-radius: 2px; }

.lb-empty {
    text-align: center;
    color: rgba(255,255,255,.3);
    font-size: .82rem;
    padding: 1.4rem 1rem;
}

/* Entry base */
.lb-entry {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .58rem 1rem;
    transition: background .18s;
    animation: entry-in .38s ease both;
    border-bottom: 1px solid rgba(255,255,255,.04);
    position: relative;
    cursor: pointer;
}
.lb-entry:last-child { border-bottom: none; }
.lb-entry:hover { background: rgba(124,58,237,.1); }

/* Top 3 highlights */
.lb-entry:nth-child(1) {
    background: linear-gradient(90deg, rgba(234,179,8,.12) 0%, transparent 65%);
}
.lb-entry:nth-child(1):hover {
    background: linear-gradient(90deg, rgba(234,179,8,.2) 0%, transparent 65%);
}
.lb-entry:nth-child(2) {
    background: linear-gradient(90deg, rgba(203,213,225,.08) 0%, transparent 65%);
}
.lb-entry:nth-child(3) {
    background: linear-gradient(90deg, rgba(180,100,40,.09) 0%, transparent 65%);
}

.lb-entry.mine {
    background: rgba(124,58,237,.15);
    border-left: 3px solid #a78bfa;
    box-shadow: inset 0 0 20px rgba(124,58,237,.08);
}

@keyframes entry-in {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Rank */
.lb-rank {
    min-width: 28px;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}
.lb-rank-num {
    font-size: .76rem;
    font-weight: 900;
    color: rgba(255,255,255,.28);
}

/* Avatar */
.lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    border: 2px solid rgba(255,255,255,.12);
}
.lb-avatar:hover {
    transform: scale(1.12);
    border-color: rgba(255,255,255,.38);
    box-shadow: 0 0 18px rgba(255,255,255,.18);
}
.lb-entry:nth-child(1) .lb-avatar {
    border-color: rgba(234,179,8,.7);
    box-shadow: 0 0 10px rgba(234,179,8,.25);
}
.lb-entry:nth-child(2) .lb-avatar {
    border-color: rgba(203,213,225,.5);
    box-shadow: 0 0 8px rgba(203,213,225,.15);
}
.lb-entry:nth-child(3) .lb-avatar {
    border-color: rgba(205,127,50,.55);
    box-shadow: 0 0 8px rgba(205,127,50,.15);
}

.lb-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}
.lb-av-letter { position: relative; z-index: 1; }

/* Info */
.lb-info { flex: 1; min-width: 0; }

.lb-nick-link {
    font-size: .88rem;
    font-weight: 700;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .28rem;
    transition: color .18s;
}
.lb-nick-link:hover { color: #c4b5fd; }

.lb-ig-icon {
    font-size: .9rem;
    flex-shrink: 0;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lb-you {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #22c55e;
    background: rgba(34,197,94,.18);
    border: 1px solid rgba(34,197,94,.4);
    border-radius: 99px;
    padding: .05rem .42rem;
    margin-right: .35rem;
    vertical-align: middle;
}

.lb-level {
    font-size: .7rem;
    color: rgba(255,255,255,.38);
    margin-top: .08rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
}

/* Score */
.lb-score-unit {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .65;
    vertical-align: middle;
}
.lb-score-col {
    font-size: 1.25rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 30%, #fffbeb 52%, #f59e0b 74%, #fde68a 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shimmer 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(251,191,36,.6));
}

/* Footer */
.lb-footer {
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    padding: .5rem 1rem .75rem;
    border-top: 1px solid rgba(124,58,237,.12);
    background: rgba(124,58,237,.04);
}

/* ─── SIX SEVEN MINI-GAME ────────────────────────────── */
#screen-sixseven {
    min-height: unset;
    padding: 0;
}

.ss-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    padding: .8rem 1.2rem;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.ss-header-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c4b5fd, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#ssOrbCanvas {
    width: min(110px, 18vh);
    height: min(110px, 18vh);
    margin: 0;
}

.ss-tap-display {
    font-size: clamp(3.5rem, 12vh, 5.5rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -.04em;
    text-shadow: 0 0 40px rgba(124,58,237,.7);
    transition: color .2s;
    text-align: center;
}

.ss-speed-label {
    font-size: .95rem;
    font-weight: 700;
    min-height: 1.3rem;
    color: #fff;
    transition: color .25s;
    text-align: center;
    letter-spacing: .01em;
}

.ss-timer-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: min(320px, 88vw);
    margin-top: .2rem;
}

.ss-timer-bar {
    flex: 1;
    height: 7px;
    background: rgba(255,255,255,.1);
    border-radius: 99px;
    overflow: hidden;
}

.ss-timer-fill {
    height: 100%;
    width: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: background .4s;
}

.ss-countdown {
    font-size: 1.7rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', monospace;
    color: #a78bfa;
    letter-spacing: .05em;
    min-width: 5ch;
    text-align: center;
    padding: .2rem .7rem;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(124,58,237,.4);
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(124,58,237,.35), inset 0 0 8px rgba(0,0,0,.4);
    text-shadow: 0 0 10px currentColor;
    transition: color .15s, box-shadow .15s, border-color .15s;
    flex-shrink: 0;
}
.ss-cd-pop {
    animation: ss-cd-pop .18s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ss-cd-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.ss-meme-img {
    width: min(220px, 60vw);
    max-height: 26vh;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0,0,0,.55);
}

.ss-btns {
    display: flex;
    gap: 2.6rem;
    align-items: flex-start;
}

.ss-tip-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.35);
    border-radius: 99px;
    padding: .3rem .85rem;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}
.ss-tip-badge i {
    color: #a78bfa;
    font-size: .72rem;
    flex-shrink: 0;
}
#ssTipBottom { transition: background .3s, border-color .3s, color .3s; }
#ssTipBottom #ssTipIcon { transition: color .3s; }
#ssTipBottom.tip-pop { animation: ss-tip-pop .25s cubic-bezier(.34,1.56,.64,1); }
@keyframes ss-tip-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.ss-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

.ss-btn-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
}

/* ── Arcade button ─────────────────────────────────── */
.ss-btn {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    border: none;
    font-size: 2.8rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: transform .07s cubic-bezier(.34,1.56,.64,1), filter .07s, box-shadow .07s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}

/* Specular dome highlight */
.ss-btn::before {
    content: '';
    position: absolute;
    top: 10%; left: 14%;
    width: 54%; height: 40%;
    background: radial-gradient(ellipse at 38% 35%,
        rgba(255,255,255,.62) 0%,
        rgba(255,255,255,.12) 55%,
        transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ss-btn-6 {
    background: radial-gradient(circle at 36% 30%,
        #e879f9,
        #a855f7 38%,
        #7c3aed 62%,
        #3b0764 90%);
    color: #fff;
    text-shadow: 0 0 22px rgba(255,255,255,.9), 0 2px 6px rgba(0,0,0,.55);
    box-shadow:
        /* outer neon glow */
        0 0 44px rgba(168,85,247,.95),
        0 0 88px rgba(124,58,237,.55),
        0 0 140px rgba(124,58,237,.22),
        /* housing dark surround */
        0 0 0 7px #1a0730,
        0 0 0 10px rgba(168,85,247,.28),
        /* depth drop shadow */
        0 12px 28px rgba(0,0,0,.8),
        /* inner dome shading */
        inset 0 4px 12px rgba(255,255,255,.25),
        inset 0 -7px 14px rgba(0,0,0,.55);
}

.ss-btn-7 {
    background: radial-gradient(circle at 36% 30%,
        #7dd3fc,
        #38bdf8 35%,
        #2563eb 60%,
        #1e1b4b 90%);
    color: #fff;
    text-shadow: 0 0 22px rgba(255,255,255,.9), 0 2px 6px rgba(0,0,0,.55);
    box-shadow:
        0 0 44px rgba(56,189,248,.95),
        0 0 88px rgba(37,99,235,.55),
        0 0 140px rgba(37,99,235,.22),
        0 0 0 7px #0a0a28,
        0 0 0 10px rgba(56,189,248,.28),
        0 12px 28px rgba(0,0,0,.8),
        inset 0 4px 12px rgba(255,255,255,.25),
        inset 0 -7px 14px rgba(0,0,0,.55);
}

.ss-btn:active,
.ss-btn.ss-active {
    transform: scale(.87) translateY(4px);
    filter: brightness(.72);
}

.ss-btn.ss-wrong {
    animation: ss-shake .28s ease;
    background: radial-gradient(circle at 36% 30%,
        #fca5a5, #ef4444 38%, #b91c1c 62%, #7f1d1d 90%) !important;
    box-shadow:
        0 0 44px rgba(239,68,68,.95),
        0 0 88px rgba(185,28,28,.5),
        0 0 0 7px #2a0404,
        0 0 0 10px rgba(239,68,68,.3),
        0 12px 28px rgba(0,0,0,.8),
        inset 0 4px 12px rgba(255,255,255,.2),
        inset 0 -7px 14px rgba(0,0,0,.55) !important;
}

@keyframes ss-shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-6px) rotate(-3deg); }
    40%  { transform: translateX(6px)  rotate(3deg); }
    60%  { transform: translateX(-4px) rotate(-2deg); }
    80%  { transform: translateX(4px)  rotate(2deg); }
    100% { transform: translateX(0); }
}

/* ─── SS TAP FEEDBACK ───────────────────────────────── */
.ss-tap-display.tap-pop {
    animation: ss-tap-pop .17s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ss-tap-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.28); }
    100% { transform: scale(1); }
}

.ss-speed-label.label-slide {
    animation: ss-label-slide .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ss-label-slide {
    from { transform: scale(.6) translateY(12px); opacity: 0; }
    to   { transform: scale(1)  translateY(0);    opacity: 1; }
}

.ss-pts-pop {
    position: fixed;
    font-size: 1.25rem;
    font-weight: 900;
    pointer-events: none;
    z-index: 800;
    white-space: nowrap;
    animation: ss-pts-float .78s ease-out forwards;
}

/* Contagem regressiva — pequeno, desbotado */
.ss-pts-pop.ss-pts-pre {
    font-size: 0.9rem;
    font-weight: 700;
    color: #a78bfa88;
    animation-duration: .6s;
}

/* Tier atingido — tamanho normal, flutua normalmente */
.ss-pts-pop.ss-pts-sustain {
    animation: ss-pts-float .75s ease-out forwards;
}

/* Breakthrough — enorme, explode para cima */
.ss-pts-pop.ss-pts-breakthrough {
    font-size: 1.6rem;
    animation: ss-pts-breakthrough 1.05s cubic-bezier(.22,.68,0,1.4) forwards;
}

@keyframes ss-pts-float {
    0%   { opacity: 1;   transform: translate(-50%,-100%) scale(.8)  translateY(0); }
    15%  { opacity: 1;   transform: translate(-50%,-100%) scale(1.15) translateY(-12px); }
    100% { opacity: 0;   transform: translate(-50%,-100%) scale(.85)  translateY(-65px); }
}
@keyframes ss-pts-breakthrough {
    0%   { opacity: 0;   transform: translate(-50%,-100%) scale(.4)  translateY(10px); }
    18%  { opacity: 1;   transform: translate(-50%,-100%) scale(1.35) translateY(-18px); }
    55%  { opacity: 1;   transform: translate(-50%,-100%) scale(1.1)  translateY(-38px); }
    100% { opacity: 0;   transform: translate(-50%,-100%) scale(.9)   translateY(-90px); }
}

/* ─── PASSINHO ───────────────────────────────────────── */
.trait-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
}

.trait-passinho {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(124,58,237,.4);
    box-shadow: 0 0 24px rgba(124,58,237,.3);
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 420px) {
    h1              { font-size: 2.1rem; }
    .question-text  { font-size: 1.2rem; }
    .score-number   { font-size: 3.4rem; }
    .orb-canvas     { width: 130px; height: 130px; }
    .slot-item      { font-size: 1.5rem; }
    .combo-display  { font-size: 2rem; }

    /* Result orb */
    .result-orb-clip,
    #resultOrbCanvas { width: 200px; height: 200px; }

    /* Six Seven buttons */
    .ss-btns        { gap: 1.4rem; }
    .ss-btn         { width: 108px; height: 108px; }

    /* Score label */
    .score-pts      { font-size: 1.2rem; }
}

@media (max-width: 360px) {
    h1              { font-size: 1.85rem; }
    .score-number   { font-size: 2.9rem; }
    .score-pts      { font-size: 1rem; }

    /* Result orb */
    .result-orb-clip,
    #resultOrbCanvas { width: 180px; height: 180px; }

    /* Six Seven buttons — ficam menores mas não somem */
    .ss-btns        { gap: 1rem; }
    .ss-btn         { width: 96px; height: 96px; }
    .ss-timer-wrap  { width: 90vw; }

    /* Containers */
    .landing-content,
    .result-content,
    .quiz-content   { padding: 0 .5rem; }
}
