/* ===== GUESS THE POSTER ===== */

.pq-main {
    max-width: 520px;
    margin: 8px auto 12px;
    padding: 0 16px;
}

body.pq-game-active {
    overflow: hidden;
}

body.pq-game-active.has-mnav {
    padding-bottom: 0;
}

body.pq-game-active .topbar,
body.pq-game-active .mnav,
body.pq-game-active .pq-brand {
    display: none;
}

body.pq-game-active .pq-main {
    min-height: 100dvh;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body.pq-game-active .pq-game {
    width: 100%;
}

/* ===== Logo nova: pixel art "?" + texto ===== */
.pq-brand {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}
.pq-brand .pq-logo-new { grid-column: 2; }
.pq-brand-actions { grid-column: 3; justify-self: end; }
.pq-brand-actions { display: flex; gap: 6px; }
.pq-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.pq-icon-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.pq-icon-btn[title="Ranking"]:hover { color: #fbbf24; }

.pq-logo-new {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 10px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

.pq-logo-pixel {
    display: grid;
    grid-template-columns: repeat(5, 6px);
    grid-template-rows: repeat(6, 6px);
    gap: 1px;
}
.pq-logo-pixel span {
    background: rgba(255,255,255,0.06);
    border-radius: 1px;
}
.pq-logo-pixel span.on {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239,68,68,0.6);
}

.pq-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.pq-logo-row1 {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
}
.pq-logo-row2 {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    margin-top: 3px;
    text-shadow: 0 0 12px rgba(239,68,68,0.4);
}

/* ===== HUB compacto ===== */
.pq-hub { display: flex; flex-direction: column; gap: 10px; }

/* Stats em barra horizontal compacta */
.pq-stats-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 10px;
}
.pq-stats-fils { display: flex; gap: 4px; flex-wrap: wrap; }
.pq-stats-nums { display: flex; gap: 14px; margin-left: auto; }
.pq-stats-nums > div { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.pq-stats-nums b { font-size: 0.95rem; color: #fff; }
.pq-stats-nums span {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Daily cards: 2 colunas, mais horizontais */
.pq-daily-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pq-daily-card {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02));
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform .15s, border-color .2s, background .2s;
}
.pq-daily-card:hover {
    transform: translateY(-2px);
    border-color: rgba(239,68,68,0.55);
    background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05));
}
.pq-daily-icon {
    font-size: 1.6rem;
    color: #ef4444;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.pq-daily-info { flex: 1; min-width: 0; line-height: 1.2; }
.pq-daily-tag {
    font-size: 0.55rem;
    color: rgba(239,68,68,0.85);
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}
.pq-daily-label {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.pq-daily-status { font-size: 0.7rem; color: rgba(255,255,255,0.55); }
.pq-daily-status.ok { color: #22c55e; }
.pq-daily-status.fail { color: #ef4444; }
.pq-daily-status.pending { color: #f59e0b; }
.pq-daily-status.open { color: #06b6d4; }

/* Modo livre em chips horizontais */
.pq-livre-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pq-livre-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    margin-right: 2px;
}
.pq-livre-label i { color: #3b82f6; margin-right: 4px; }
.pq-livre-btn {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 8px;
    padding: 6px 12px;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
}
.pq-livre-btn:hover {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.5);
    transform: translateY(-1px);
}
.pq-livre-btn i { color: #3b82f6; font-size: 0.75rem; }

/* Tabs (filtros) */
.pq-stats-fil, .pq-cal-tab, .pq-modal-tab {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 3px 9px;
    color: rgba(255,255,255,0.55);
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 600;
    transition: all .15s;
}
.pq-stats-fil.active, .pq-cal-tab.active, .pq-modal-tab.active {
    background: rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.5);
    color: #fff;
}
.pq-stats-fil:hover, .pq-cal-tab:hover, .pq-modal-tab:hover { color: #fff; }

/* Calendário horizontal */
.pq-cal-wrap {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 10px;
}
.pq-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.pq-cal-title {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}
.pq-cal-title i { color: rgba(255,255,255,0.4); margin-right: 4px; }
.pq-cal-tabs { display: flex; gap: 4px; }
.pq-cal-grid {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.pq-cal-grid::-webkit-scrollbar { height: 6px; }
.pq-cal-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.pq-cal-loading, .pq-cal-empty {
    width: 100%;
    text-align: center;
    padding: 14px;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}
.pq-cal-day {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 5px 4px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    transition: transform .12s, border-color .15s;
    min-width: 38px;
    flex-shrink: 0;
}
.pq-cal-day:hover { transform: translateY(-1px); }
.pq-cal-d { font-weight: 800; font-size: 0.85rem; line-height: 1; }
.pq-cal-m { font-size: 0.55rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

.pq-cal-day.ok { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.4); }
.pq-cal-day.fail { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); }
.pq-cal-day.pending { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); }
.pq-cal-day.open { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.4); }
.pq-cal-day.none { opacity: 0.35; cursor: not-allowed; }

/* ===== Game ===== */
.pq-game {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: clamp(10px, 1.5vh, 14px);
    box-shadow: 0 18px 46px rgba(0,0,0,0.28);
}

.pq-game-header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    margin-bottom: clamp(6px, 1vh, 10px);
}
.pq-game-mode {
    grid-column: 2;
    justify-self: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    text-align: center;
}
.pq-game-mode i { color: #ef4444; margin-right: 4px; }
.pq-game-back {
    grid-column: 3;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}
.pq-game-back:hover { background: rgba(255,255,255,0.08); color: #fff; }

.pq-poster-frame {
    position: relative;
    width: min(100%, 320px);
    margin: 0 auto;
    aspect-ratio: 2 / 3;
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
}
.pq-poster-frame.music-cover { aspect-ratio: 1; }
.pq-canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}
.pq-poster-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.6rem;
    background: rgba(0,0,0,0.6);
}

/* Tentativas */
.pq-attempts,
.pq-input-wrap,
.pq-actions,
.pq-feedback,
.pq-history {
    width: min(100%, max(280px, calc(var(--pq-poster-width, 320px) + 36px)));
    margin-left: auto;
    margin-right: auto;
}

.pq-attempts {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: clamp(8px, 1.4vh, 12px);
    margin-bottom: clamp(8px, 1.4vh, 12px);
}
.pq-att {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.25);
    transition: all .25s;
}
.pq-att.used {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,0.5);
}

/* Input + autocomplete */
.pq-input-wrap { position: relative; margin-bottom: 8px; }
.pq-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color .15s, background .15s;
    box-sizing: border-box;
}
.pq-input:focus { border-color: #3b82f6; background: rgba(59,130,246,0.06); }
.pq-input::placeholder { color: rgba(255,255,255,0.35); }

.pq-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #1a1a1f;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    max-height: min(240px, 34dvh);
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.pq-suggest-item {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background .12s;
}
.pq-suggest-item:last-child { border-bottom: none; }
.pq-suggest-item:hover { background: rgba(59,130,246,0.12); }
.pq-suggest-title {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action buttons */
.pq-actions { display: flex; gap: 10px; margin-bottom: 8px; }
.pq-btn-guess, .pq-btn-skip {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .12s, background .2s;
}
.pq-btn-guess { background: #3b82f6; }
.pq-btn-guess:hover { background: #2563eb; transform: translateY(-1px); }
.pq-btn-skip { background: #ef4444; }
.pq-btn-skip:hover { background: #dc2626; transform: translateY(-1px); }
.pq-btn-guess:disabled, .pq-btn-skip:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.pq-feedback {
    min-height: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pq-feedback.err { color: #ef4444; }
.pq-feedback.warn { color: #f59e0b; }
.pq-feedback.info { color: #06b6d4; }

.pq-history {
    display: flex;
    flex-direction: row;
    gap: 6px;
    min-height: 26px;
    margin-top: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.pq-history::-webkit-scrollbar { display: none; }
.pq-hist-item {
    display: flex; align-items: center; gap: 8px;
    flex: 0 0 auto;
    max-width: 190px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.03);
}
.pq-hist-item i { width: 14px; text-align: center; }
.pq-hist-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pq-hist-item.ok { color: #22c55e; background: rgba(34,197,94,0.1); }
.pq-hist-item.err { color: #ef4444; background: rgba(239,68,68,0.08); }
.pq-hist-item.skip { color: rgba(255,255,255,0.5); }

/* ===== Buttons primary/secondary ===== */
.pq-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s, box-shadow .2s;
}
.pq-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,130,246,0.4); }
.pq-btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
}
.pq-btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ===== Tela final ===== */
.pq-end {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
}
.pq-end-icon { font-size: 3.5rem; margin-bottom: 12px; }
.pq-end h2 { margin: 0 0 4px; font-size: 1.6rem; color: #fff; }
.pq-end p { margin: 0 0 24px; color: rgba(255,255,255,0.55); }

.pq-end-poster {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: left;
}
.pq-end-poster img { width: 80px; height: 120px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.pq-end-poster.music-cover img { width: 120px; height: 120px; }
.pq-end-info { flex: 1; min-width: 0; }
.pq-end-label { font-size: 0.7rem; color: #ef4444; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.pq-end-name { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.pq-end-link { color: #3b82f6; text-decoration: none; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 4px; }
.pq-end-link:hover { text-decoration: underline; }

.pq-end-points { font-size: 1.4rem; color: #fbbf24; font-weight: 800; margin-bottom: 24px; }
.pq-end-points span { font-size: 2.4rem; display: block; line-height: 1; }
.pq-end-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== Modal ===== */
.pq-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    padding: 16px;
}
.pq-modal-card {
    background: #16161b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.pq-modal-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.pq-modal-head h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.pq-modal-tabs { margin-left: 0; }
.pq-modal-tabs-escopo {
    display: flex; gap: 6px;
    padding: 10px 16px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pq-modal-tab-escopo {
    flex: 1;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.pq-modal-tab-escopo:hover { color: #fff; }
.pq-modal-tab-escopo.active {
    background: rgba(99,102,241,0.18);
    color: #fff;
    border-color: rgba(99,102,241,0.5);
}
.pq-modal-close {
    background: transparent; border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer; font-size: 1.1rem;
    padding: 4px 8px;
    margin-left: auto;
}
.pq-modal-close:hover { color: #fff; }

.pq-help-content { padding: 16px 20px; color: rgba(255,255,255,0.75); line-height: 1.6; }
.pq-help-content ul { padding-left: 20px; margin-top: 12px; }
.pq-help-content li { margin-bottom: 6px; }

/* Ranking */
.pq-rank-list { overflow-y: auto; padding: 8px; }
.pq-rank-loading, .pq-rank-empty { text-align: center; padding: 32px; color: rgba(255,255,255,0.5); }
.pq-rank-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.02);
}
.pq-rank-item.me { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); }
.pq-rank-pos {
    width: 28px; text-align: center;
    color: rgba(255,255,255,0.5);
    font-weight: 700; font-size: 0.9rem;
}
.pq-rank-item:nth-child(1) .pq-rank-pos { color: #fbbf24; }
.pq-rank-item:nth-child(2) .pq-rank-pos { color: #d1d5db; }
.pq-rank-item:nth-child(3) .pq-rank-pos { color: #d97706; }
.pq-rank-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pq-rank-avatar.placeholder { background: rgba(255,255,255,0.08); }
.pq-rank-info { flex: 1; min-width: 0; }
.pq-rank-nome { color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-rank-meta { color: rgba(255,255,255,0.45); font-size: 0.75rem; }
.pq-rank-pontos { color: #fbbf24; font-weight: 700; font-size: 0.95rem; }

/* Mobile */
@media (max-width: 480px) {
    .pq-main { margin-top: 60px; padding: 0 10px; }
    .pq-game { padding: 12px; }
    .pq-logo-row2 { font-size: 1.1rem; }
    .pq-stats-bar { flex-wrap: wrap; }
    .pq-stats-nums { gap: 10px; }
    .pq-stats-nums b { font-size: 0.85rem; }
    .pq-daily-card { padding: 12px 10px; }
    .pq-daily-icon { font-size: 1.4rem; }
    .pq-daily-label { font-size: 0.85rem; }
    .pq-livre-btn { padding: 5px 10px; font-size: 0.75rem; }
    .pq-end-poster img { width: 64px; height: 96px; }
    .pq-end-poster.music-cover img { width: 96px; height: 96px; }
    .pq-end-points span { font-size: 2rem; }
}

/* Light theme: surfaces, content and interaction states. */
:is(html.light-theme-early, body.light-theme) .pq-logo-row2,
:is(html.light-theme-early, body.light-theme) .pq-stats-nums b,
:is(html.light-theme-early, body.light-theme) .pq-daily-card,
:is(html.light-theme-early, body.light-theme) .pq-livre-btn,
:is(html.light-theme-early, body.light-theme) .pq-cal-day,
:is(html.light-theme-early, body.light-theme) .pq-suggest-title,
:is(html.light-theme-early, body.light-theme) .pq-end h2,
:is(html.light-theme-early, body.light-theme) .pq-end-name,
:is(html.light-theme-early, body.light-theme) .pq-modal-head h3,
:is(html.light-theme-early, body.light-theme) .pq-rank-nome,
:is(html.light-theme-early, body.light-theme) .pq-help-content {
    color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .pq-icon-btn,
:is(html.light-theme-early, body.light-theme) .pq-logo-row1,
:is(html.light-theme-early, body.light-theme) .pq-stats-nums span,
:is(html.light-theme-early, body.light-theme) .pq-daily-status,
:is(html.light-theme-early, body.light-theme) .pq-livre-label,
:is(html.light-theme-early, body.light-theme) .pq-stats-fil,
:is(html.light-theme-early, body.light-theme) .pq-cal-tab,
:is(html.light-theme-early, body.light-theme) .pq-modal-tab,
:is(html.light-theme-early, body.light-theme) .pq-cal-title,
:is(html.light-theme-early, body.light-theme) .pq-cal-title i,
:is(html.light-theme-early, body.light-theme) .pq-cal-loading,
:is(html.light-theme-early, body.light-theme) .pq-cal-empty,
:is(html.light-theme-early, body.light-theme) .pq-cal-m,
:is(html.light-theme-early, body.light-theme) .pq-game-mode,
:is(html.light-theme-early, body.light-theme) .pq-game-back,
:is(html.light-theme-early, body.light-theme) .pq-feedback,
:is(html.light-theme-early, body.light-theme) .pq-hist-item.skip,
:is(html.light-theme-early, body.light-theme) .pq-end p,
:is(html.light-theme-early, body.light-theme) .pq-modal-close,
:is(html.light-theme-early, body.light-theme) .pq-modal-tab-escopo,
:is(html.light-theme-early, body.light-theme) .pq-rank-loading,
:is(html.light-theme-early, body.light-theme) .pq-rank-empty,
:is(html.light-theme-early, body.light-theme) .pq-rank-pos,
:is(html.light-theme-early, body.light-theme) .pq-rank-meta {
    color: var(--text-muted, #526070);
}

:is(html.light-theme-early, body.light-theme) .pq-logo-new,
:is(html.light-theme-early, body.light-theme) .pq-stats-bar,
:is(html.light-theme-early, body.light-theme) .pq-cal-wrap,
:is(html.light-theme-early, body.light-theme) .pq-game,
:is(html.light-theme-early, body.light-theme) .pq-end,
:is(html.light-theme-early, body.light-theme) .pq-modal-card,
:is(html.light-theme-early, body.light-theme) .pq-suggest {
    background: var(--surface, #fff); border-color: var(--border, rgba(30, 41, 59, .12)); box-shadow: 0 8px 24px rgba(30, 41, 59, .1);
}

:is(html.light-theme-early, body.light-theme) .pq-icon-btn,
:is(html.light-theme-early, body.light-theme) .pq-cal-day,
:is(html.light-theme-early, body.light-theme) .pq-game-back,
:is(html.light-theme-early, body.light-theme) .pq-btn-secondary,
:is(html.light-theme-early, body.light-theme) .pq-end-poster,
:is(html.light-theme-early, body.light-theme) .pq-rank-item,
:is(html.light-theme-early, body.light-theme) .pq-modal-tab-escopo {
    background: var(--surface2, #f8f7f3); border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .pq-icon-btn:hover,
:is(html.light-theme-early, body.light-theme) .pq-game-back:hover,
:is(html.light-theme-early, body.light-theme) .pq-btn-secondary:hover {
    background: #edeaf5; border-color: rgba(109, 40, 217, .22); color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .pq-btn-secondary {
    color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .pq-logo-pixel span {
    background: #dce1e7;
}

:is(html.light-theme-early, body.light-theme) .pq-logo-pixel span.on {
    background: #dc2626;
}

:is(html.light-theme-early, body.light-theme) .pq-stats-fil,
:is(html.light-theme-early, body.light-theme) .pq-cal-tab,
:is(html.light-theme-early, body.light-theme) .pq-modal-tab,
:is(html.light-theme-early, body.light-theme) .pq-modal-head,
:is(html.light-theme-early, body.light-theme) .pq-modal-tabs-escopo,
:is(html.light-theme-early, body.light-theme) .pq-suggest-item {
    border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .pq-stats-fil.active,
:is(html.light-theme-early, body.light-theme) .pq-cal-tab.active,
:is(html.light-theme-early, body.light-theme) .pq-modal-tab.active,
:is(html.light-theme-early, body.light-theme) .pq-modal-tab-escopo.active {
    background: #dbeafe; border-color: #93b4e9; color: #1d4ed8;
}

:is(html.light-theme-early, body.light-theme) .pq-stats-fil:hover,
:is(html.light-theme-early, body.light-theme) .pq-cal-tab:hover,
:is(html.light-theme-early, body.light-theme) .pq-modal-tab:hover,
:is(html.light-theme-early, body.light-theme) .pq-modal-tab-escopo:hover,
:is(html.light-theme-early, body.light-theme) .pq-modal-close:hover {
    color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .pq-daily-card {
    background: linear-gradient(135deg, #fff1f0, #fff); border-color: #e9aaa6;
}

:is(html.light-theme-early, body.light-theme) .pq-daily-card:hover {
    background: #fde8e6; border-color: #d66b63;
}

:is(html.light-theme-early, body.light-theme) .pq-daily-tag,
:is(html.light-theme-early, body.light-theme) .pq-daily-status.fail,
:is(html.light-theme-early, body.light-theme) .pq-end-label,
:is(html.light-theme-early, body.light-theme) .pq-feedback.err,
:is(html.light-theme-early, body.light-theme) .pq-hist-item.err {
    color: #b91c1c;
}

:is(html.light-theme-early, body.light-theme) .pq-daily-status.ok,
:is(html.light-theme-early, body.light-theme) .pq-hist-item.ok {
    color: #15803d;
}

:is(html.light-theme-early, body.light-theme) .pq-daily-status.pending,
:is(html.light-theme-early, body.light-theme) .pq-feedback.warn,
:is(html.light-theme-early, body.light-theme) .pq-end-points,
:is(html.light-theme-early, body.light-theme) .pq-rank-pontos,
:is(html.light-theme-early, body.light-theme) .pq-rank-item:nth-child(1) .pq-rank-pos,
:is(html.light-theme-early, body.light-theme) .pq-icon-btn[title="Ranking"]:hover {
    color: var(--accent-ink, #806117);
}

:is(html.light-theme-early, body.light-theme) .pq-daily-status.open,
:is(html.light-theme-early, body.light-theme) .pq-feedback.info {
    color: #0e7490;
}

:is(html.light-theme-early, body.light-theme) .pq-livre-btn {
    background: #eff6ff; border-color: #b3c9ec;
}

:is(html.light-theme-early, body.light-theme) .pq-livre-btn:hover {
    background: #dbeafe;
}

:is(html.light-theme-early, body.light-theme) .pq-cal-day.ok {
    background: #e3f4e9; border-color: #6aab80;
}

:is(html.light-theme-early, body.light-theme) .pq-cal-day.fail {
    background: #fde8e8; border-color: #dc9292;
}

:is(html.light-theme-early, body.light-theme) .pq-cal-day.pending {
    background: #fff4d8; border-color: #cda04a;
}

:is(html.light-theme-early, body.light-theme) .pq-cal-day.open {
    background: #e4efff; border-color: #86a9df;
}

:is(html.light-theme-early, body.light-theme) .pq-cal-day.none {
    opacity: .65;
}

:is(html.light-theme-early, body.light-theme) .pq-att {
    border-color: #8d99aa;
}

:is(html.light-theme-early, body.light-theme) .pq-att.used {
    border-color: #dc2626; background: #dc2626;
}

:is(html.light-theme-early, body.light-theme) .pq-input {
    background: var(--surface2, #f8f7f3); border-color: var(--border, rgba(30, 41, 59, .12)); color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .pq-input::placeholder {
    color: var(--text-muted, #526070);
}

:is(html.light-theme-early, body.light-theme) .pq-input:focus {
    border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

:is(html.light-theme-early, body.light-theme) .pq-cal-grid {
    scrollbar-color: #a3acb9 transparent;
}

:is(html.light-theme-early, body.light-theme) .pq-cal-grid::-webkit-scrollbar-thumb,
:is(html.light-theme-early, body.light-theme) .pq-rank-avatar.placeholder {
    background: #cbd5e1;
}

:is(html.light-theme-early, body.light-theme) .pq-rank-item.me {
    background: #e4efff; border-color: #9db8e4;
}

:is(html.light-theme-early, body.light-theme) .pq-rank-item:nth-child(2) .pq-rank-pos {
    color: #64748b;
}

:is(html.light-theme-early, body.light-theme) .pq-rank-item:nth-child(3) .pq-rank-pos {
    color: #92400e;
}

:is(html.light-theme-early, body.light-theme) .pq-btn-guess,
:is(html.light-theme-early, body.light-theme) .pq-btn-primary {
    background: #1d4ed8; color: #fff;
}

:is(html.light-theme-early, body.light-theme) .pq-btn-guess:hover,
:is(html.light-theme-early, body.light-theme) .pq-btn-primary:hover {
    background: #1e40af;
}

:is(html.light-theme-early, body.light-theme) .pq-btn-skip {
    background: #b91c1c; color: #fff;
}

:is(html.light-theme-early, body.light-theme) .pq-btn-skip:hover {
    background: #991b1b;
}

:is(html.light-theme-early, body.light-theme) .pq-end-link {
    color: #1d4ed8;
}

:is(html.light-theme-early, body.light-theme) .pq-livre-label i,
:is(html.light-theme-early, body.light-theme) .pq-livre-btn i { color: #1d4ed8; }
:is(html.light-theme-early, body.light-theme) .pq-poster-loading { color: #fff; background: rgba(0, 0, 0, .7); }
