* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    background: #fff;
    color: #2a2a2a;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.4;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 30px;
    background: #f8f8f8;
    padding: 5px 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* Franchise toggle styling */
.franchise-toggle-container {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* AI toggle styling */
.ai-toggle-container {
    position: absolute;
    top: 45px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hard Mode toggle styling */
.hard-mode-toggle-container {
    position: absolute;
    top: 75px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Last Chatter Standing toggle styling */
.last-chatter-toggle-container {
    position: absolute;
    bottom: 45px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 12px;
    color: #900;
    font-weight: bold;
    user-select: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid #bbb;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    border: 1px solid #bbb;
}

input:checked + .toggle-slider {
    background-color: #c99;
    border-color: #900;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
    border-color: #900;
}

.toggle-slider:hover {
    background-color: #eee;
}

input:checked + .toggle-slider:hover {
    background-color: #daa;
}

/* Info icon styling */
.info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #900;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 5px;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
}

.info-icon:hover {
    background: #eee;
    border-color: #900;
    transform: scale(1.1);
}

.info-icon:active {
    transform: scale(0.95);
}

.logo {
    max-height: 225px;
    max-width: 100%;
    height: auto;
    margin-bottom: -100px;
    margin-top: -50px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.how-to-play-btn {
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    color: #900;
    cursor: pointer;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    margin-top: 8px;
}

.how-to-play-btn:hover {
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153,0,0,0.2);
    border-color: #900;
}

.how-to-play-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.popup-content {
    background: #fff;
    border: 2px solid #bababa;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
    border-radius: 6px 6px 0 0;
}

.popup-header h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #900;
    margin: 0;
    font-weight: bold;
}

.close-popup {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: #f0f0f0;
    color: #333;
}

.popup-body {
    padding: 25px;
    line-height: 1.6;
    font-size: 15px;
}

.popup-body p {
    margin: 0 0 15px 0;
    color: #333;
}

.popup-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.popup-body li {
    margin: 8px 0;
    color: #333;
}

.popup-body strong {
    color: #900;
    font-weight: bold;
}

.popup-footer {
    padding: 15px 25px 25px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f8f8;
    border-radius: 0 0 6px 6px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.stat {
    background: #fff;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: normal;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.stat:hover {
    transform: translateY(-1px);
}

.game-area {
    position: relative;
    min-height: 562px;
    border-radius: 8px;
    padding: 37px;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 11px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-height: 475px;
    gap: 20px;
    margin-top: 140px;
    margin-bottom: 140px;
}

.character-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.character-container .twitch-vote-box {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.character-card {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 37px;
    text-align: center;
    min-height: 275px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.character-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-color: #900;
}

.character-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.character-card h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #2a2a2a;
    word-wrap: break-word;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.character-subtext {
    font-size: 12px;
    color: #555;
    margin-top: -10px;
    margin-bottom: 10px;
    line-height: 1.3;
    display: none; /* shown only when notes exist */
}

.post-count {
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.post-count span:first-child {
    font-size: 40px;
    font-weight: bold;
    color: #900;
    display: block;
    font-family: Georgia, serif;
    line-height: 1;
}

.post-count .label {
    font-size: 12px;
    color: #666;
    text-transform: lowercase;
}

.post-count.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* Prevent initial flash by fully removing from layout until reveal */
.post-count.hard-hidden {
    display: none;
}

.question-mark {
    font-size: 60px;
    color: #900;
    font-weight: bold;
    opacity: 0.8;
    font-family: Georgia, serif;
}

.vs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    padding: 0 25px;
}

.instruction-text {
    font-size: 1.65rem;
    font-weight: bold;
    text-align: center;
    color: #900;
    font-family: Georgia, serif;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    width: 100%;
    display: block;
}

.vs-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: #900;
    font-family: Georgia, serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-width: 150px;
}

.choice-btn {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
    z-index: 1;
}

.choice-btn .arrow {
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
    position: relative;
}

.choice-btn span {
    z-index: 2;
    position: relative;
}

.choice-btn.higher {
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
    border-color: #ddd;
    color: #2a2a2a;
}

.choice-btn.higher::before {
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
}

.choice-btn.higher:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153,0,0,0.2);
    border-color: #900;
}

.choice-btn.lower {
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
    border-color: #ddd;
    color: #2a2a2a;
}

.choice-btn.lower::before {
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
}

.choice-btn.lower:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153,0,0,0.2);
    border-color: #900;
}

.choice-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-overlay {
    position: fixed; /* Changed from absolute to fixed */
    top: 20%; /* Position it higher on the screen */
    left: 50%;
    transform: translateX(-50%); /* Only translate X, not Y */
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 37px;
    min-width: 260px;
    margin: 0 15px;
    max-width: calc(100vw - 30px); /* Ensure it doesn't overflow */
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000; /* Increase z-index to ensure it's above ads */
}

.result-content {
    text-align: center;
}

.result-text {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    font-family: Georgia, serif;
}

.result-text.correct {
    color: #900;
}

.result-text.incorrect {
    color: #900;
}

.result-stats {
    font-size: 16px;
    margin-bottom: 31px;
    color: #2a2a2a;
    line-height: 1.5;
    background: #f8f8f8;
    padding: 19px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 13px 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn.primary {
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
    border-color: #ddd;
    color: #900;
}

.btn.primary:hover {
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153,0,0,0.2);
}

.btn.secondary {
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
    border-color: #ddd;
    color: #666;
}

.btn.secondary:hover {
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error-message {
    text-align: center;
    padding: 25px;
    color: #900;
    font-size: 13px;
    background: #efd1d1;
    border: 1px solid #900;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.counting {
    animation: countUp 0.6s ease-out;
}

@keyframes countUp {
    0% {
        color: #f60;
        transform: scale(1.1);
    }
    100% {
        color: #900;
        transform: scale(1);
    }
}

.secondary-count {
    display: none;
}

.footer {
    margin-top: 37px;
    padding: 25px;
    text-align: center;
    background: #900 url("red-ao3.png");
    border: 1px solid #900;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer p {
    margin: 4px 0;
    line-height: 1.4;
    color: #fff;
}

.footer a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ddd;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo {
        margin-top: -40px;
    }

    .how-to-play-btn {
        margin-top: 30px;
    }

    .franchise-toggle-container {
        position: static;
        justify-content: center;
        margin: 15px auto 10px;
        max-width: fit-content;
    }

    .ai-toggle-container {
        position: static;
        justify-content: center;
        margin: 10px auto;
        max-width: fit-content;
    }

    .hard-mode-toggle-container {
        position: static;
        justify-content: center;
        margin: 10px auto;
        max-width: fit-content;
    }

    .last-chatter-toggle-container {
        position: static;
        justify-content: center;
        margin: 10px auto;
        max-width: fit-content;
    }

    .stats {
        gap: 10px;
    }

    .game-content {
        flex-direction: column;
        min-height: auto;
        gap: 8px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    /* Override the desktop flex layout for mobile */
    .game-area {
        display: flex !important;
        flex-direction: column !important;
        padding: 20px;
        min-height: auto;
        gap: 15px;
    }

    /* Hide VS text on mobile */
    .vs-text {
        display: none;
    }

    .vs-section {
        order: 2;
        min-width: auto;
        padding: 3px 0;
    }

    .instruction-text {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .character-container.left {
        order: 1;
    }

    .character-container.right {
        order: 3;
    }

    .character-container {
        flex: none !important;
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }

    .character-card {
        max-width: 100%;
        min-height: 100px;
        padding: 10px;
    }

    .character-card h2 {
        font-size: 18px;
        margin-bottom: 6px;
        min-height: 30px;
    }

    .character-subtext {
        margin-top: -4px;
        margin-bottom: 4px;
        font-size: 11px;
    }

    .post-count {
        margin-bottom: 6px;
    }

    .post-count span:first-child {
        font-size: 26px;
    }

    .post-count .label {
        font-size: 11px;
    }

    .question-mark {
        font-size: 36px;
        margin: 0;
    }

    .character-image-container {
        max-height: 112px;
        min-height: 80px;
        margin: 4px 0;
    }

    .character-image {
        max-height: 112px;
    }

    .character-card {
        min-height: 280px;
    }

    .character-card:has(.character-image-container) {
        min-height: 320px;
    }

    .character-card .character-image-container + .post-count {
        margin-top: 6px;
    }

    .character-card h2 + .character-image-container {
        margin-top: 4px;
    }

    .choice-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .choice-btn {
        flex: 1;
        max-width: 120px;
    }

    .result-overlay {
        min-width: 260px;
        margin: 0 15px;
    }

    .result-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .report-problem-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Report Problem Button */
.report-problem-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border: 2px solid #900;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
    z-index: 100;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.report-problem-btn:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #900 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
    border-color: #600;
}

.report-problem-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

/* Report Problem Popup */
.report-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(3px);
}

.report-popup-content {
    background: #fff;
    border: 2px solid #bababa;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.3s ease-out;
}

.report-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
    border-radius: 6px 6px 0 0;
}

.report-popup-header h3 {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #900;
    margin: 0;
    font-weight: bold;
}

.report-subtext {
    padding: 15px 25px 0;
    text-align: center;
}

.report-subtext p {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.report-form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #900;
    box-shadow: 0 0 5px rgba(153, 0, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.report-status {
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.report-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.report-status.error {
    background: #efd1d1;
    color: #900;
    border: 1px solid #900;
}

.report-status.loading {
    background: #d1e1ef;
    color: #2a547c;
    border: 1px solid #c2d2df;
}

/* Changelog Styling */
.changelog-entry {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.changelog-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-entry h3 {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #900;
    margin-bottom: 10px;
    font-weight: bold;
    border-left: 3px solid #900;
    padding-left: 10px;
}

.changelog-entry ul {
    margin: 10px 0;
    padding-left: 20px;
}

.changelog-entry li {
    margin: 6px 0;
    color: #333;
    line-height: 1.5;
}

/* Changelog Footer Button */
.changelog-footer-btn {
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #900;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    font-size: 13px;
    font-weight: normal;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.changelog-footer-btn:hover {
    background: #eee;
    border-color: #900;
    transform: translateY(-0.5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Character image styles */
.character-image-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 220px;
    min-height: 180px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    position: relative;
    flex: 1;
}

.character-image {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: transparent;
}

.character-image.loaded {
    opacity: 1;
}


.character-card {
    min-height: 380px;
    max-height: 550px;
    overflow: hidden;
}


.character-card .character-image-container + .post-count {
    margin-top: 15px;
}


.character-card:has(.character-image-container) {
    min-height: 430px;
}


.character-card h2 + .character-image-container {
    margin-top: 10px;
}


@media (max-width: 768px) {
    .character-image-container {
        max-height: 160px;
        min-height: 120px;
    }

    .character-image {
        max-height: 160px;
    }

    .character-card {
        min-height: 280px;
    }

    .character-card:has(.character-image-container) {
        min-height: 320px;
    }
}

/* Daily Mode Styles */
.back-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    background: #900;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #600;
}

.daily-header {
    margin-top: 15px;
}

.daily-header h2 {
    color: #900;
    margin-bottom: 10px;
    font-size: 24px;
}

.daily-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.score-tracker {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.score-squares {
    display: flex;
    gap: 8px;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-square {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.score-square:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.score-square.pending {
    background: #f8f8f8;
    border-color: #ddd;
}

.score-square.correct {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.score-square.correct::after {
    content: '✓';
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.score-square.correct:hover {
    background: #218838;
    border-color: #218838;
}

.score-square.incorrect {
    background: #d32f2f;
    border-color: #d32f2f;
    color: white;
}

.score-square.incorrect::after {
    content: '✕';
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.score-square.incorrect:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.final-score {
    text-align: center;
    margin-bottom: 20px;
}

.final-score h3 {
    font-size: 28px;
    color: #900;
    margin-bottom: 15px;
}

.score-breakdown {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 15px 0;
}

.score-breakdown .score-square {
    width: 20px;
    height: 20px;
}

/* Daily Mode Button on Main Page */
.daily-mode-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    background: #d32f2f;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.daily-mode-btn:hover {
    background: #b71c1c;
}

/* Countdown styles (Daily final popup) */
.countdown-container {
    margin-top: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #900;
    font-weight: bold;
    margin-bottom: 6px;
}

.countdown-time {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    color: #900;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
    margin-bottom: 4px;
}

.countdown-sub {
    font-size: 12px;
    color: #666;
    opacity: 0.9;
    font-style: italic;
}

@media (max-width: 768px) {
    .countdown-container {
        padding: 12px 14px;
    }
    .countdown-time {
        font-size: 22px;
    }
}

/* Daily page layout tweaks */
body.daily .game-content {
    flex-direction: column;
    gap: 12px;
}

body.daily .daily-game-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 37px;
}

/* Make instruction text smaller on daily page */
body.daily .instruction-text {
    font-size: 1.1rem;
}

/* Avoid ad injection inside gameplay area */
#game-content ins.adsbygoogle,
#game-content .google-auto-placed,
#game-content .adsbygoogle {
    display: none !important;
}

@media (max-width: 768px) {
    body.daily .daily-game-row {
        flex-direction: column;
        gap: 8px;
    }
}


.new-badge {
    color: #900;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(153, 0, 0, 0.3);
    margin-right: 4px;
}

/* Settings Button Styling */
.settings-area {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.twitch-integration-label {
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.beta-text {
    color: #900;
}

.twitch-text {
    color: #9146ff;
}

.settings-btn {
    position: static;
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 16px;
    color: #900;
    cursor: pointer;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.settings-btn:hover {
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153,0,0,0.2);
    border-color: #900;
}

.settings-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hide settings button on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Settings Popup Styling */
.settings-section {
    margin-bottom: 25px;
}

.settings-section h3 {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #900;
    margin-bottom: 15px;
    font-weight: bold;
    border-left: 3px solid #900;
    padding-left: 10px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 12px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 6px;
}

/* Twitch Integration Styling */
.twitch-connection {
    margin-top: 20px;
    padding: 20px;
    background: #f4f1ff;
    border: 1px solid #d4c5ff;
    border-radius: 8px;
}

.twitch-connect {
    text-align: center;
}

.twitch-btn {
    background: linear-gradient(135deg, #9146ff 0%, #7c3aed 100%);
    border-color: #7c3aed;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.twitch-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6b21d1 100%);
    border-color: #6b21d1;
}

.twitch-icon {
    font-size: 18px;
}

.twitch-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.twitch-connected {
    text-align: left;
}

.twitch-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.status-icon {
    font-size: 16px;
}

.twitch-channel-input {
    margin: 15px 0;
}

.twitch-channel-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.twitch-channel-input input {
    width: 60%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
    font-size: 14px;
    margin-right: 10px;
}

.twitch-channel-input input:focus {
    outline: none;
    border-color: #900;
    box-shadow: 0 0 5px rgba(153, 0, 0, 0.3);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.btn.small {
    padding: 6px 12px;
    font-size: 12px;
    margin-left: auto;
}

/* Twitch Votes Display */
.twitch-votes {
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f4f1ff 0%, #e8e5ff 100%);
    border: 2px solid #d4c5ff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(148, 70, 255, 0.1);
    text-align: center;
}

.twitch-votes-title {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.vote-counts-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.vote-count {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vote-number {
    font-weight: bold;
    color: #9146ff;
    font-size: 24px;
    font-family: tahoma, verdana, arial, helvetica, sans-serif;
}

.twitch-auto-note {
    font-size: 12px;
    color: #666;
    margin: 10px 0;
    font-style: italic;
    text-align: center;
}


.leaderboard-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.leaderboard-section h4 {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #900;
    margin-bottom: 10px;
    font-weight: bold;
}

.leaderboard-controls {
    margin: 15px 0;
    text-align: center;
}

.twitch-leaderboard {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.leaderboard-header {
    background: linear-gradient(135deg, #9146ff 0%, #7c3aed 100%);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    border-radius: 6px 6px 0 0;
}

.leaderboard-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f8f8f8;
    border-radius: 6px;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    position: relative;
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

.leaderboard-entry:hover {
    background: #f8f8f8;
}

.leaderboard-entry:hover .user-controls {
    opacity: 1;
}

.rank-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank {
    font-weight: bold;
    color: #666;
    min-width: 25px;
    font-size: 12px;
}

.username {
    font-weight: bold;
    color: #2a2a2a;
    font-size: 14px;
}

.score-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score {
    font-weight: bold;
    color: #9146ff;
    font-size: 16px;
    min-width: 20px;
    text-align: right;
}

.user-controls {
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    gap: 5px;
}

.control-btn {
    background: #d32f2f;
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn.reset-score {
    background: #ff9800;
}

.control-btn.reset-score:hover {
    background: #f57c00;
}

.control-btn.remove-user {
    background: #d32f2f;
}

.control-btn.remove-user:hover {
    background: #b71c1c;
}

.control-btn.eliminate-user {
    background: #d32f2f;
}

.control-btn.eliminate-user:hover {
    background: #b71c1c;
}

.control-btn.revive-user {
    background: #900;
}

.control-btn.revive-user:hover {
    background: #600;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-left: 4px solid #ffd700;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border-left: 4px solid #c0c0c0;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #deb887 100%);
    border-left: 4px solid #cd7f32;
}

.btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Leaderboard Toggle Styling */
.leaderboard-toggle-container {
    position: absolute;
    bottom: 15px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Game Content Layout with Sidebar */
.game-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-height: 475px;
    gap: 20px;
    margin-top: 140px;
    margin-bottom: 140px;
}

.game-area {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex: 1;
    gap: 37px;
}


.sidebar-leaderboard {
    width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: fit-content;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.sidebar-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #9146ff 0%, #7c3aed 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.sidebar-leaderboard-header h3 {
    font-family: Georgia, serif;
    font-size: 16px;
    margin: 0;
    font-weight: bold;
}

.sidebar-twitch-leaderboard {
    flex: 1;
    overflow-y: auto;
    max-height: 520px;
}

.sidebar-twitch-leaderboard .leaderboard-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f8f8f8;
}

.sidebar-twitch-leaderboard .leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    position: relative;
}

.sidebar-twitch-leaderboard .leaderboard-entry:last-child {
    border-bottom: none;
}

.sidebar-twitch-leaderboard .leaderboard-entry:hover {
    background: #f8f8f8;
}

.btn.tiny {
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1;
}


.vote-indicator {
    color: #900;
    font-size: 12px;
    margin-left: 6px;
    animation: pulseGlow 1.5s infinite;
    text-shadow: 1px 1px 2px rgba(153, 0, 0, 0.3);
}

.result-indicator {
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.result-indicator.correct {
    color: #900;
    text-shadow: 1px 1px 2px rgba(153, 0, 0, 0.3);
}

.result-indicator.incorrect {
    color: #d32f2f;
    text-shadow: 1px 1px 2px rgba(211, 47, 47, 0.3);
}

@keyframes pulseGlow {
    0% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 1px 1px 2px rgba(153, 0, 0, 0.3);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
        text-shadow: 0 0 8px rgba(153, 0, 0, 0.8), 1px 1px 2px rgba(153, 0, 0, 0.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 1px 1px 2px rgba(153, 0, 0, 0.3);
    }
}

/* Streamer styling in leaderboard */
.leaderboard-entry.streamer .username {
    color: #e57373 !important;
    font-weight: bold;
}

/* Eliminated user styling for Last Chatter Standing */
.leaderboard-entry.eliminated {
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%) !important;
    opacity: 0.6;
    border-left: 4px solid #999 !important;
}

.leaderboard-entry.eliminated .username {
    color: #666 !important;
    text-decoration: line-through;
}

.leaderboard-entry.eliminated .score {
    color: #999 !important;
}

.elimination-indicator {
    font-size: 12px;
    margin-left: 6px;
    opacity: 0.8;
}

/* Twitch Vote Box (positioned above each option) */
.twitch-vote-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #9146ff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(145, 70, 255, 0.3);
    min-width: 60px;
    max-width: 80px;
    width: fit-content;
    align-self: center;
    flex-shrink: 0;
}

.twitch-vote-box .vote-number {
    font-weight: bold;
    color: white;
    font-size: 20px;
    font-family: tahoma, verdana, arial, helvetica, sans-serif;
}

.twitch-vote-box .arrow {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.twitch-vote-box:hover .arrow {
    transform: translateX(2px);
}

.twitch-vote-box:active .arrow {
    transform: translateX(1px);
}

.twitch-vote-box.correct {
    background: #4CAF50;
    border-color: #4CAF50;
}

.twitch-vote-box.correct:hover {
    background: #45a049;
    border-color: #45a049;
}

.twitch-vote-box.incorrect {
    background: #f44336;
    border-color: #f44336;
}

.twitch-vote-box.incorrect:hover {
    background: #da190b;
    border-color: #da190b;
}

.twitch-vote-box.pending {
    background: #f0f0f0;
    border-color: #bababa;
}

.twitch-vote-box.pending:hover {
    background: #e0e0e0;
}

.twitch-vote-box.pending .vote-number {
    color: #666;
}

.twitch-vote-box.correct .vote-number,
.twitch-vote-box.incorrect .vote-number {
    color: white;
}

.twitch-vote-box.correct:hover .vote-number,
.twitch-vote-box.incorrect:hover .vote-number {
    color: #fff;
}

.twitch-vote-box:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.twitch-vote-box.correct:active {
    background: #45a049;
    border-color: #45a049;
}

.twitch-vote-box.incorrect:active {
    background: #da190b;
    border-color: #da190b;
}

/* Warning popup specific button styling */
#non-character-warning-popup .popup-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 15px 25px 25px;
    border-top: 1px solid #eee;
    background: #f8f8f8;
    border-radius: 0 0 6px 6px;
}

#non-character-warning-popup .btn.secondary {
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
    border: 2px solid #ddd;
    color: #900;
    cursor: pointer;
    transition: all 0.3s ease;
}

#non-character-warning-popup .btn.secondary:hover {
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153,0,0,0.2);
    border-color: #900;
}

#non-character-warning-popup .btn.secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#non-character-warning-popup .btn.primary {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    border: 2px solid #999;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.3s ease;
}

#non-character-warning-popup .btn.primary:disabled {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    border-color: #999;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

#non-character-warning-popup .btn.primary:disabled:hover {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    border-color: #999;
    transform: none;
    box-shadow: none;
}

#non-character-warning-popup .btn.primary:not(:disabled) {
    background: linear-gradient(135deg, #f8f8f8 0%, #eee 100%);
    border-color: #ddd;
    color: #900;
    cursor: pointer;
    opacity: 1;
}

#non-character-warning-popup .btn.primary:not(:disabled):hover {
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153,0,0,0.2);
    border-color: #900;
}

#non-character-warning-popup .btn.primary:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Report Tag Button Styles */
.report-tag-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: 2px solid #d63447;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 120px;
    box-shadow: 0 2px 4px rgba(214, 52, 71, 0.2);
}

.report-tag-btn:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #d63447 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(214, 52, 71, 0.3);
}

.report-tag-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(214, 52, 71, 0.2);
}

.report-tag-btn:disabled {
    background: linear-gradient(135deg, #28a745 0%, #20893a 100%);
    border-color: #1e7e34;
    color: white;
    cursor: not-allowed;
    opacity: 0.9;
    transform: none;
    box-shadow: 0 2px 4px rgba(32, 137, 58, 0.2);
}

.report-tag-btn:disabled:hover {
    background: linear-gradient(135deg, #28a745 0%, #20893a 100%);
    transform: none;
    box-shadow: 0 2px 4px rgba(32, 137, 58, 0.2);
}

.character-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Developer styling for anderscool2 */
.leaderboard-entry.developer .username {
    color: #9370DB !important;
    font-weight: bold;
}

.leaderboard-entry.developer:hover .username {
    color: #8A2BE2 !important;
}

/* Report Tag Popup specific styling */
.report-reason-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.report-reason-option {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f8f8;
}

.report-reason-option:hover {
    border-color: #900;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(153, 0, 0, 0.1);
}

.report-reason-option input[type="radio"] {
    margin: 0;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.radio-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.radio-description {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-left: 24px;
    line-height: 1.3;
}

.report-reason-option input[type="radio"]:checked + .radio-label {
    color: #900;
}

.report-reason-option:has(input[type="radio"]:checked) {
    border-color: #900;
    background: #fff;
    box-shadow: 0 2px 8px rgba(153, 0, 0, 0.15);
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}
