html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
    background-color: #111;
    color: white;
}

/* ---- Nav Buttons ---- */
.Buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 10vh;
    background-color: #1a1a1a;
}

.button {
    width: 70px;
    height: 70px;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Classic Game ---- */
.search-wrapper {
    position: relative;
    width: 400px;
}

#guessInput {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #555;
    background-color: #222;
    color: white;
    outline: none;
    box-sizing: border-box;
}

    #guessInput:focus {
        border-color: #aaa;
    }

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #222;
    border: 1px solid #555;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    display: none;
}

    .search-dropdown.open {
        display: block;
    }

.search-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    color: white;
}

    .search-option:hover, .search-option.highlighted {
        background-color: #444;
    }

    .search-option img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
    }

.submit-guess-button {
    margin-top: 10px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #c0392b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

    .submit-guess-button:hover {
        background-color: #e74c3c;
    }

#classic-panel {
    display: flex;
    justify-content: center;
    padding: 24px 0 12px;
}

#classic-info-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.character-traits, .guesses-square-group {
    display: grid;
    grid-template-columns: 120px repeat(8, 130px);
    gap: 6px;
    margin-bottom: 6px;
}

.trait {
    background-color: #222;
    color: #ccc;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px 4px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.square {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    padding: 6px;
    background-color: #555;
    color: white;
    opacity: 0;
    transform: rotateY(90deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    word-break: break-word;
}

    .square.show {
        opacity: 1;
        transform: rotateY(0deg);
    }

    .square.correct {
        background-color: #27ae60;
    }

    .square.wrong {
        background-color: #c0392b;
    }

    .square.partial {
        background-color: #f39c12;
    }

.guess-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.arrow-img {
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
}

.square-text {
    font-size: 0.85rem;
    line-height: 1.2;
}

#win-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    gap: 16px;
}

    #win-panel h2 {
        font-size: 2rem;
        color: #27ae60;
    }

#win-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #27ae60;
}

#win-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.multi-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2px;
    padding: 2px;
}

.multi-part {
    font-size: 18px;
    text-align: center;
    line-height: 1.1;
    width: 100%;
    border-bottom: 2px solid rgba(0,0,0,0.3);
    padding-bottom: 2px;
}

    .multi-part:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.part-match {
    color: #4CAF50;
    text-shadow: 0 0 6px #4CAF50;
}

/* ---- Blur Game ---- */
.blur-game-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px 60px;
}

.blur-stage {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #2a2a2a;
    background: #0a0a0a;
    margin-bottom: 8px;
}

#blurImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: filter 1.2s ease;
    filter: blur(28px);
}

.blur-hint {
    font-size: 12px;
    color: #555;
    margin-bottom: 18px;
    letter-spacing: 0.03em;
}

    .blur-hint span {
        color: #888;
    }

.blur-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.blur-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    transition: background 0.3s, border-color 0.3s;
}

    .blur-dot.used {
        background: #c0392b;
        border-color: #c0392b;
    }

    .blur-dot.correct {
        background: #27ae60;
        border-color: #27ae60;
    }

.blur-search-wrapper {
    position: relative;
    width: 340px;
    margin-bottom: 10px;
}

#blurInput {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #333;
    background-color: #1a1a1a;
    color: white;
    outline: none;
    box-sizing: border-box;
}

    #blurInput:focus {
        border-color: #c0392b;
    }

.blur-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

    .blur-dropdown.open {
        display: block;
    }

.blur-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

    .blur-option:hover, .blur-option.highlighted {
        background-color: #252525;
    }

    .blur-option img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

.blur-guess-btn {
    width: 340px;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #c0392b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 10px;
}

    .blur-guess-btn:hover {
        background-color: #e74c3c;
    }

    .blur-guess-btn:disabled {
        background-color: #333;
        cursor: not-allowed;
    }

.blur-skip-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    border-radius: 6px;
    padding: 6px 20px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 24px;
    transition: border-color 0.2s, color 0.2s;
}

    .blur-skip-btn:hover {
        border-color: #f39c12;
        color: #f39c12;
    }

.blur-history {
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.blur-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 9px 14px;
    border: 1px solid #252525;
}

    .blur-history-item img {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
    }

    .blur-history-item .hist-name {
        flex: 1;
        font-size: 14px;
        font-weight: 600;
    }

.hist-tag {
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
}

.tag-wrong {
    background: #2d0e0e;
    color: #e74c3c;
}

.tag-skip {
    background: #252210;
    color: #f39c12;
}

#blur-result-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    width: 340px;
    text-align: center;
    margin-top: 8px;
}

    #blur-result-panel.win {
        border-color: #27ae60;
    }

    #blur-result-panel.lose {
        border-color: #c0392b;
    }

    #blur-result-panel h2 {
        font-size: 1.7rem;
    }

    #blur-result-panel.win #blur-reveal-img {
        border-color: #27ae60;
    }

    #blur-result-panel.lose #blur-reveal-img {
        border-color: #c0392b;
    }

.win-text {
    color: #27ae60;
}

.lose-text {
    color: #c0392b;
}

#blur-reveal-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
}

#blur-answer-name {
    font-size: 1.2rem;
    font-weight: 700;
}

#blur-result-msg {
    font-size: 0.88rem;
    color: #666;
}

.blur-play-again {
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: bold;
    background: #252525;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

    .blur-play-again:hover {
        background: #333;
    }

/* ---- Rank Game ---- */
.rank-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 16px 60px;
    gap: 24px;
}

.rank-video-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 700px;
}

    .rank-video-card video {
        width: 100%;
        display: block;
        max-height: 420px;
        background: #000;
    }

.rank-video-label {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    text-align: center;
}

.upload-link {
    font-size: 13px;
    color: #444;
    text-decoration: none;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 7px 18px;
    transition: color 0.2s, border-color 0.2s;
}

    .upload-link:hover {
        color: #c0392b;
        border-color: #c0392b;
    }

.rank-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.RGuess {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
}

    .RGuess img {
        width: 52px;
        height: 52px;
        object-fit: contain;
        filter: drop-shadow(0 0 4px rgba(255,255,255,0.1));
        transition: filter 0.2s, transform 0.15s;
    }

    .RGuess:hover {
        border-color: #c0392b;
        transform: scale(1.1);
    }

        .RGuess:hover img {
            filter: drop-shadow(0 0 8px rgba(192,57,43,0.6));
        }

/* ---- Rank Popup ---- */
.result-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.result-popup {
    background: #1a1a1a;
    border-radius: 14px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 300px;
    text-align: center;
    border: 2px solid #333;
    animation: popIn 0.25s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-win {
    border-color: #27ae60;
}

.popup-lose {
    border-color: #c0392b;
}

.result-icon {
    font-size: 3rem;
    line-height: 1;
}

.popup-win .result-icon {
    color: #27ae60;
}

.popup-lose .result-icon {
    color: #c0392b;
}

.result-heading {
    font-size: 1.6rem;
    font-weight: 900;
}

.popup-win .result-heading {
    color: #27ae60;
}

.popup-lose .result-heading {
    color: #c0392b;
}

.result-msg {
    font-size: 0.9rem;
    color: #666;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.result-close {
    padding: 9px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    background: #252525;
    color: #aaa;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

    .result-close:hover {
        background: #333;
        color: #fff;
    }

.result-next {
    padding: 9px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

    .result-next:hover {
        background: #e74c3c;
    }

.rank-comparison {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 8px 0;
}

.rank-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #111;
    border-radius: 8px;
    padding: 12px 18px;
    border: 1px solid #2a2a2a;
}

.rank-box-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
}

.rank-box-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.rank-correct {
    color: #27ae60;
}

.rank-wrong {
    color: #c0392b;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=EB+Garamond:wght@400&display=swap');

.lol-menu {
    background: #0a0c10;
    border: 1px solid #785a28;
    border-radius: 4px;
    padding: 0 0 8px;
    max-width: 520px;
    margin: 1rem auto;
    overflow: hidden;
    box-sizing: border-box;
}

.lol-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #c89b3c;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #1e2328;
    text-transform: uppercase;
}

.lol-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1e2328;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

    .lol-row:last-child {
        border-bottom: none;
    }

    .lol-row:hover {
        background: #12161c;
    }

        .lol-row:hover .lol-icon-wrap {
            border-color: #c89b3c;
        }

        .lol-row:hover .lol-name {
            color: #c89b3c;
        }

.lol-icon-wrap {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin: 10px 14px 10px 12px;
    border-radius: 50%;
    border: 2px solid #785a28;
    background: #0f1318;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.lol-text {
    flex: 1;
    padding: 10px 0;
}

.lol-name {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 700;
    color: #e8d5a3;
    letter-spacing: 0.04em;
    margin: 0 0 2px;
}

.lol-desc {
    font-family: 'EB Garamond', serif;
    font-size: 13px;
    color: #5b5a56;
    margin: 0;
}

.lol-arrow {
    color: #785a28;
    font-size: 18px;
    padding-right: 16px;
    flex-shrink: 0;
}

.lol-row:hover .lol-arrow {
    color: #c89b3c;
}