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

body {
    font-family: verdana, arial, helvetica, sans-serif;
    background: #AAE0AA;
    color: #000;
    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: #e8f5e8;
    padding: 5px 25px;
    border: 1px solid #bababa;
    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: #006600;
    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: #ccc;
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid #999;
}

.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 #999;
}

input:checked + .toggle-slider {
    background-color: #90c490;
    border-color: #70a470;
}

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

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

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

/* Info icon styling */
.info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0f8f0;
    border: 1px solid #90c490;
    color: #006600;
    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: verdana, arial, helvetica, sans-serif;
}

.info-icon:hover {
    background: #e0f0e0;
    border-color: #70a470;
    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, #e8f5e8 0%, #d4f0d4 100%);
    border: 2px solid #90c490;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    color: #006600;
    cursor: pointer;
    font-family: verdana, arial, helvetica, sans-serif;
    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, #d4f0d4 0%, #c0e0c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,0,0.2);
    border-color: #70a470;
}

.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: tahoma, verdana, arial, helvetica, sans-serif;
    font-size: 20px;
    color: #006;
    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: #006;
    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 #bababa;
    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 #ccc;
    border-top: 2px solid #006;
    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 #bababa;
    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: #4CAF50;
}

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

.character-card h2 {
    font-family: tahoma, verdana, arial, helvetica, sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #000;
    word-wrap: break-word;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.franchise-label {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: normal;
    opacity: 1.0;
}

.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: #060;
    display: block;
    font-family: tahoma, verdana, arial, helvetica, sans-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: #006;
    font-weight: bold;
    opacity: 0.8;
    font-family: tahoma, verdana, arial, helvetica, sans-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: #006;
    font-family: tahoma, verdana, arial, helvetica, sans-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: #800;
    font-family: tahoma, verdana, arial, helvetica, sans-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 #bababa;
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: verdana, arial, helvetica, sans-serif;
    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, #e8f5e8 0%, #d4f0d4 100%);
    border-color: #90c490;
    color: #000;
}

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

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

.choice-btn.higher:hover::before {
    left: 0;
}

.choice-btn.lower {
    background: linear-gradient(135deg, #f5e8e8 0%, #f0d4d4 100%);
    border-color: #c49090;
    color: #000;
}

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

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

.choice-btn.lower:hover::before {
    left: 0;
}

.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 #bababa;
    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: tahoma, verdana, arial, helvetica, sans-serif;
}

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

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

.result-stats {
    font-size: 16px;
    margin-bottom: 31px;
    color: #000;
    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 #bababa;
    border-radius: 6px;
    padding: 13px 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: verdana, arial, helvetica, sans-serif;
    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, #e8f5e8 0%, #d4f0d4 100%);
    border-color: #90c490;
    color: #006600;
}

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

.btn.secondary {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-color: #bababa;
    color: #333;
}

.btn.secondary:hover {
    background: linear-gradient(135deg, #e8e8e8 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: #800;
    font-size: 13px;
    background: #ffe0e0;
    border: 1px solid #ffaaaa;
    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: #060;
        transform: scale(1);
    }
}

.secondary-count {
    display: none;
}

.footer {
    margin-top: 37px;
    padding: 25px;
    text-align: center;
    background: #e8f5e8;
    border: 1px solid #bababa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

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

@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, #ff6b6b 0%, #ff5252 100%);
    border: 2px solid #e53935;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    font-family: verdana, arial, helvetica, sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    z-index: 100;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.report-problem-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    border-color: #d32f2f;
}

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

@media (max-width: 768px) {
    .report-problem-btn {
        padding: 6px 10px;
        font-size: 10px;
        bottom: 10px;
        right: 10px;
        border-radius: 5px;
        border-width: 1px;
    }
}

/* 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: tahoma, verdana, arial, helvetica, sans-serif;
    font-size: 18px;
    color: #006;
    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 #bababa;
    border-radius: 4px;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 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: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.report-status.loading {
    background: #e2f3ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.character-card::after {
    content: "Click to choose";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-style: italic;
}

.character-card:hover::after {
    opacity: 1;
}

/* 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: tahoma, verdana, arial, helvetica, sans-serif;
    font-size: 16px;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
    border-left: 3px solid #4CAF50;
    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: #f0f8f0;
    border: 1px solid #90c490;
    color: #006;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: verdana, arial, helvetica, sans-serif;
    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: #e0f0e0;
    border-color: #70a470;
    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: #f0f0f0;
    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: #006600;
    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: #004400;
}

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

.daily-header h2 {
    color: #006600;
    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: #e8f5e8;
    border: 1px solid #bababa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-square {
    width: 24px;
    height: 24px;
    border: 2px solid #bababa;
    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: #f0f0f0;
    border-color: #bababa;
}

.score-square.correct {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

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

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

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

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

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

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

.final-score h3 {
    font-size: 28px;
    color: #006600;
    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: #ff6b35;
    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: #e55a2b;
}

/* Ao3dle Advertisement Button */
.ao3dle-btn {
    position: absolute;
    top: 15px;
    left: 165px;
    background: white;
    color: #600;
    border: 2px solid #600;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ao3dle-btn:hover {
    background: #600;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 0, 0, 0.2);
}

/* Daily Countdown Timer */
.countdown-container {
    margin-top: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f7fff7 0%, #e8f5e8 100%);
    border: 1px solid #bababa;
    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: #006;
    font-weight: bold;
    margin-bottom: 6px;
}

.countdown-time {
    font-family: tahoma, verdana, arial, helvetica, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #060;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
    margin-bottom: 4px;
}

.countdown-sub {
    font-size: 12px;
    color: #557;
    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: #e53935;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(229, 57, 53, 0.3);
    margin-right: 4px;
}

.new-badge-red {
    color: #e53935;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(229, 57, 53, 0.3);
    margin-right: 8px;
    background: rgba(229, 57, 53, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.twitch-new-feature {
    margin: 8px 0 16px 0;
    font-size: 0.9em;
    color: var(--text-color);
}

/* 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: #e53935;
}

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

.settings-btn {
    position: static;
    background: linear-gradient(135deg, #f0f8f0 0%, #e0f0e0 100%);
    border: 2px solid #90c490;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 16px;
    color: #006600;
    cursor: pointer;
    font-family: verdana, arial, helvetica, sans-serif;
    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, #e0f0e0 0%, #d0e0d0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,0,0.2);
    border-color: #70a470;
}

.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: tahoma, verdana, arial, helvetica, sans-serif;
    font-size: 18px;
    color: #006;
    margin-bottom: 15px;
    font-weight: bold;
    border-left: 3px solid #4CAF50;
    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: #e8f5e8;
    border: 1px solid #90c490;
    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 #bababa;
    border-radius: 4px;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 14px;
    margin-right: 10px;
}

.twitch-channel-input input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    padding: 10px;
    background: #e8f5e8;
    border: 1px solid #90c490;
    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: tahoma, verdana, arial, helvetica, sans-serif;
    font-size: 16px;
    color: #006;
    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: #f9f9f9;
    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: #333;
    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: #f44336;
    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: #f44336;
}

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

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

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

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

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

.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 #bababa;
    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: tahoma, verdana, arial, helvetica, sans-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: #f9f9f9;
}

.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;
}

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

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


.vote-indicator {
    color: #e53935;
    font-size: 12px;
    margin-left: 6px;
    animation: pulseGlow 1.5s infinite;
    text-shadow: 1px 1px 2px rgba(229, 57, 53, 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: #4CAF50;
    text-shadow: 1px 1px 2px rgba(76, 175, 80, 0.3);
}

.result-indicator.incorrect {
    color: #f44336;
    text-shadow: 1px 1px 2px rgba(244, 67, 54, 0.3);
}

@keyframes pulseGlow {
    0% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 1px 1px 2px rgba(229, 57, 53, 0.3);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
        text-shadow: 0 0 8px rgba(229, 57, 53, 0.8), 1px 1px 2px rgba(229, 57, 53, 0.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 1px 1px 2px rgba(229, 57, 53, 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, #f5f5f5 0%, #e8e8e8 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;
}


.leaderboard-entry.developer .username {
    color: #9370DB !important;
    font-weight: bold;
}

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


.developer-footer {
    color: #666 !important;
    font-weight: normal;
    transition: color 0.3s ease, font-weight 0.3s ease, text-shadow 0.3s ease;
}

.developer-footer.on-leaderboard {
    color: #9370DB !important;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(147, 112, 219, 0.6), 0 0 12px rgba(147, 112, 219, 0.4), 0 0 16px rgba(147, 112, 219, 0.2);
}


.developer-toast {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: #f8f4ff;
    color: #4a4a4a;
    border: 2px solid #b19cd9;
    border-radius: 8px;
    padding: 16px;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 4px 12px rgba(177, 156, 217, 0.3);
    z-index: 10000;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 14px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}


@media (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
    .developer-toast {
        min-width: 260px;
        max-width: 340px;
        padding: 15px;
        font-size: 13px;
    }
}

@media (min-resolution: 150dpi), (min-resolution: 1.5dppx) {
    .developer-toast {
        min-width: 220px;
        max-width: 300px;
        padding: 13px;
        font-size: 12px;
    }
}

@media (min-resolution: 192dpi), (min-resolution: 2dppx) {
    .developer-toast {
        min-width: 180px;
        max-width: 240px;
        padding: 11px;
        font-size: 11px;
    }
}

@media (min-resolution: 240dpi), (min-resolution: 2.5dppx) {
    .developer-toast {
        min-width: 160px;
        max-width: 200px;
        padding: 10px;
        font-size: 10px;
    }
}

.developer-toast.show {
    transform: translateX(0);
}

.developer-toast.hide {
    transform: translateX(100%);
}

.toast-progress-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.toast-progress-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #8a2be2 0%, #b19cd9 100%);
    transform-origin: left center;
}

.toast-progress-border.animate::before {
    animation: toast-progress-bar 8s linear forwards;
}

@keyframes toast-progress-bar {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

.toast-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    color: #8a2be2;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: bold;
}

.toast-close-btn:hover {
    background-color: rgba(138, 43, 226, 0.1);
    color: #6a1b9a;
    transform: scale(1.1);
}

.toast-header {
    font-weight: bold;
    color: #8a2be2;
    margin-bottom: 6px;
    font-size: 15px;
    padding-right: 25px;
}

.toast-content {
    line-height: 1.3;
    word-wrap: break-word;
    padding-right: 25px;
    color: #4a4a4a;
}

/* ============================================================
   Contextual reward-moment promo card (promo-nudge.js)
   Replaces the old load-time interrupt popup. Revealed only at
   a winning streak / daily completion, styled to feel native.
   ============================================================ */
.rdg-promo {
    margin: 16px auto 0;
    max-width: 420px;
    border: 1px solid #bababa;
    border-radius: 8px;
    background: #f8f8f8;
    overflow: hidden;
    text-align: center;
}
.rdg-promo[hidden] { display: none; }
.rdg-promo--in { animation: rdgPromoIn 0.3s ease-out; }
@keyframes rdgPromoIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.rdg-promo__media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #e0e0e0;
}
.rdg-promo__img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
}
.rdg-promo__body { padding: 14px 16px; }
.rdg-promo__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
}
.rdg-promo__text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}
.rdg-promo__cta {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rdg-promo__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}
.rdg-promo__skip {
    display: block;
    margin: 10px auto 0;
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
.rdg-promo__note {
    margin: 8px 0 0;
    font-size: 11px;
    color: #999;
}
@media (max-width: 480px) {
    .rdg-promo__img { height: 76px; }
}
