/**
 * @author      Mike Fairbrother <mike@fairbrother.me>
 * @copyright   2024-2026 Mike Fairbrother. All rights reserved.
 * @license     PROPRIETARY - No rights to copy, modify, distribute, or reuse
 *              any part of this code without explicit written permission from the author.
 */
/* ---- Logic Lab Styles ---- */

.ll-logo {
    font-size: 64px;
    margin-bottom: 8px;
    text-align: center;
    filter: drop-shadow(0 4px 20px rgba(100, 180, 255, 0.3));
}
.ll-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #ffd93d, #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.ll-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 16px;
}
.menu-best {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-bottom: 20px;
}

/* Difficulty selector */
.ll-difficulty {
    margin: 0 0 20px;
    text-align: center;
}
.ll-diff-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}
.ll-diff-pills {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.ll-pill {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms;
    font-family: inherit;
}
.ll-pill.active {
    background: linear-gradient(135deg, rgba(255,217,61,0.2), rgba(255,159,67,0.15));
    border-color: rgba(255,217,61,0.35);
    color: #ffd93d;
}

/* Game area */
#game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 16px 20px;
    position: relative;
    overflow-y: auto;
}

/* Type badge */
.ll-type-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255,217,61,0.12);
    border: 1px solid rgba(255,217,61,0.2);
    color: #ffd93d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Question text */
.ll-question {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
    max-width: 340px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clues area */
.ll-clues {
    width: 100%;
    max-width: 340px;
    margin-bottom: 20px;
    min-height: 20px;
}

.ll-clue-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}
.ll-clue-bullet {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,217,61,0.15);
    color: #ffd93d;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Items display (for odd one out) */
.ll-items-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.ll-display-item {
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    min-width: 56px;
}

/* Sequence display */
.ll-sequence-row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.ll-seq-item {
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(100,180,255,0.1);
    border: 1px solid rgba(100,180,255,0.2);
    font-size: 20px;
    font-weight: 800;
    color: #64b4ff;
    min-width: 44px;
    text-align: center;
}
.ll-seq-mystery {
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255,217,61,0.1);
    border: 2px dashed rgba(255,217,61,0.35);
    font-size: 20px;
    font-weight: 800;
    color: #ffd93d;
    min-width: 44px;
    text-align: center;
}

/* Answer buttons */
.ll-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 340px;
}

.ll-answer-btn {
    padding: 14px 10px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms;
    font-family: inherit;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    line-height: 1.3;
    word-wrap: break-word;
}
.ll-answer-btn:active {
    transform: scale(0.95);
}
.ll-answer-btn.correct {
    background: rgba(46, 213, 115, 0.3);
    border-color: #2ed573;
    color: #2ed573;
    animation: ll-pop 300ms ease;
}
.ll-answer-btn.wrong {
    background: rgba(255, 71, 87, 0.3);
    border-color: #ff4757;
    color: #ff4757;
    animation: ll-shake 300ms ease;
}

@keyframes ll-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes ll-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Feedback overlay text */
.ll-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 800;
    pointer-events: none;
    opacity: 0;
    transition: all 300ms ease;
}
.ll-feedback.show {
    opacity: 1;
    animation: ll-float-up 600ms ease forwards;
}
@keyframes ll-float-up {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    30% { transform: translate(-50%, -60%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -100%) scale(1); opacity: 0; }
}

/* Game over stats */
.ll-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}
.ll-stat-box {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}
.ll-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}
.ll-stat-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}

/* Help modal tweaks */
.help-section {
    margin-bottom: 16px;
}
.help-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffd93d;
    margin-bottom: 4px;
}
.help-section p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* Lives hearts */
#hud-lives {
    color: #ff4757;
    font-size: 18px;
    letter-spacing: 2px;
}
