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

:root {
    --bg-primary: #f0f0f5;
    --bg-secondary: white;
    --bg-tertiary: #fafafa;
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --text-tertiary: #999;
    --border-color: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.08);
}

body.dark-mode {
    --bg-primary: #0d0d1a;
    --bg-secondary: #111128;
    --bg-tertiary: #0a0a15;
    --text-primary: #eaeaea;
    --text-secondary: #b0b0b0;
    --text-tertiary: #707080;
    --border-color: #1e1e35;
    --shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.container {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px var(--shadow);
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: visible;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .container {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.15);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

h1 {
    color: #5B21F5;
    font-size: 2.2em;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.icon-buttons {
    position: absolute;
    right: 0;
    display: flex;
    gap: 8px;
}

.mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 12px;
}

body.dark-mode .mode-toggle {
    background: #1a1a30;
}

.main-reset-timer.hidden {
    visibility: hidden;
}

.mode-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

body.dark-mode .mode-btn {
    color: #808090;
}

.mode-btn.active {
    background: white;
    color: #5B21F5;
    box-shadow: 0 2px 8px rgba(91, 33, 245, 0.15);
}

body.dark-mode .mode-btn.active {
    background: #2a2a50;
    color: #a07ef5;
    box-shadow: 0 2px 8px rgba(91, 33, 245, 0.3);
}

.mode-btn:hover:not(.active) {
    color: #5B21F5;
}

body.dark-mode .mode-btn:hover:not(.active) {
    color: #a07ef5;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #e8e8e8;
}

body.dark-mode .icon-btn {
    background: #1a1a30;
}

body.dark-mode .icon-btn:hover {
    background: #2a2a50;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: #666;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.dark-mode .icon-btn svg {
    stroke: #a07ef5;
}

.spins-counter {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.current-score-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.current-score-label {
    color: var(--text-secondary);
    font-size: 0.75em;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.current-score-value {
    color: #5B21F5;
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
    min-width: 40px;
    text-align: center;
    margin-bottom: 2px;
}

/* Score ticker feedback animations */
@keyframes scoreWin {
    0%   { transform: scale(1); color: #5B21F5; }
    30%  { transform: scale(1.25); color: #22c55e; }
    70%  { transform: scale(1.15); color: #22c55e; }
    100% { transform: scale(1); color: #5B21F5; }
}
@keyframes scoreMiss {
    0%   { color: #5B21F5; }
    50%  { color: #5B21F5; }
    100% { color: #5B21F5; }
}
.current-score-value.score-win {
    animation: scoreWin 0.6s ease-out forwards;
}
.current-score-value.score-miss {
    animation: scoreMiss 0.6s ease-in-out forwards;
}

.secondary-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    min-height: 24px;
}

.secondary-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.secondary-stat-label {
    color: var(--text-secondary);
    font-size: 0.75em;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.secondary-stat-value {
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    display: inline-block;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    .current-score-value {
        font-size: 1.7em;
        min-width: 36px;
    }

    .secondary-stats {
        gap: 16px;
    }

    .secondary-stat-label {
        font-size: 0.7em;
    }

    .secondary-stat-value {
        font-size: 0.9em;
        min-width: 28px;
    }

    .floating-score {
        font-size: 1.6em;
    }
}

.reels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

/* Inline daily results — same height as the reels grid (3×90 + 2×10gap = 290px) */
.inline-results {
    height: 290px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 14px;
    box-sizing: border-box;
    animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.inline-results-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
    padding-bottom: 2px;
}

.inline-stat {
    text-align: center;
}

.inline-stat-value {
    font-size: 1.25em;
    font-weight: 700;
    color: #5B21F5;
    line-height: 1;
}

body.dark-mode .inline-stat-value {
    color: #a07ef5;
}

.inline-stat-label {
    font-size: 0.62em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    margin-top: 2px;
}

.inline-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
    flex-shrink: 0;
}

.inline-spins {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-start;
    padding-top: 2px;
}

.inline-spin-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-spin-num {
    font-size: 0.7em;
    font-weight: 700;
    color: var(--text-tertiary);
    min-width: 14px;
    text-align: right;
    flex-shrink: 0;
}

.inline-spin-symbols {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.inline-symbol-line {
    font-size: 1.1em;
    letter-spacing: 1px;
    line-height: 1.3;
}

.inline-no-match {
    font-size: 0.8em;
    color: var(--text-tertiary);
    font-style: italic;
}

.inline-spin-score {
    font-size: 0.82em;
    font-weight: 700;
    color: #5B21F5;
    min-width: 34px;
    text-align: right;
    flex-shrink: 0;
}

body.dark-mode .inline-spin-score {
    color: #a07ef5;
}

.inline-spin-score.zero {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Bottom row: total + share button */
.inline-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 7px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    gap: 8px;
}

.inline-total {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.inline-total-label {
    font-size: 0.72em;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inline-total-score {
    font-size: 1.2em;
    font-weight: 700;
    color: #5B21F5;
}

body.dark-mode .inline-total-score {
    color: #a07ef5;
}

.inline-share-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(91, 33, 245, 0.08);
    border: 1.5px solid rgba(91, 33, 245, 0.25);
    border-radius: 20px;
    color: #5B21F5;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.inline-share-btn:hover {
    background: rgba(91, 33, 245, 0.14);
    border-color: rgba(91, 33, 245, 0.45);
}

.inline-share-btn.copied {
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.4);
    color: #27ae60;
}

body.dark-mode .inline-share-btn {
    background: rgba(160, 126, 245, 0.08);
    border-color: rgba(160, 126, 245, 0.2);
    color: #a07ef5;
}

body.dark-mode .inline-share-btn:hover {
    background: rgba(160, 126, 245, 0.15);
    border-color: rgba(160, 126, 245, 0.4);
}

body.dark-mode .inline-share-btn.copied {
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.35);
    color: #2ecc71;
}

.reel {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    transition: all 0.4s ease;
    position: relative;
}

.floating-score {
    position: absolute;
    font-size: 2em;
    font-weight: 700;
    color: #5B21F5;
    animation: floatUpLine 1.2s ease-out forwards;
    pointer-events: none;
    z-index: 100;
    text-shadow: 0 2px 12px rgba(91, 33, 245, 0.4),
                 0 0 20px rgba(255, 255, 255, 0.8);
}

body.dark-mode .floating-score {
    color: #a07ef5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9),
                 0 0 20px rgba(0, 0, 0, 0.8),
                 0 1px 4px rgba(0, 0, 0, 1);
}

@keyframes floatUpLine {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -120%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -180%) scale(0.9);
    }
}

.emoji-rain-particle {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    font-size: 1.6em;
    animation: emojiRainFall linear forwards;
    will-change: transform, opacity;
}

@keyframes emojiRainFall {
    0%   { opacity: 1;   transform: translateY(0) rotate(0deg) scale(1); }
    70%  { opacity: 0.8; }
    100% { opacity: 0;   transform: translateY(var(--fall-dist)) rotate(var(--spin-deg)) scale(0.7); }
}

.reel.spinning {
    animation: spinPulse 0.15s infinite;
}

@keyframes spinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.reel.match {
    background: linear-gradient(135deg, rgba(91, 33, 245, 0.08), rgba(91, 33, 245, 0.12));
    border-color: rgba(91, 33, 245, 0.3);
    box-shadow: 0 0 20px rgba(91, 33, 245, 0.2), 
                inset 0 0 20px rgba(91, 33, 245, 0.05);
}

@keyframes matchGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(91, 33, 245, 0.2), 
                    inset 0 0 20px rgba(91, 33, 245, 0.05);
    }
    50% {
        box-shadow: 0 0 30px rgba(91, 33, 245, 0.35), 
                    inset 0 0 25px rgba(91, 33, 245, 0.08);
    }
}

.reel.match {
    animation: matchGlow 1.5s ease-in-out infinite, matchPop 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes matchPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.13); }
    70%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.spin-button {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    font-weight: 700;
    background: #5B21F5;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.spin-button:hover:not(:disabled) {
    background: #4B11E5;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(91, 33, 245, 0.3);
}

.spin-button:active:not(:disabled) {
    transform: translateY(0);
    background: #3a00cc;
}

.spin-button:disabled {
    background: #d0d0d0;
    cursor: not-allowed;
}

body.dark-mode .spin-button:disabled {
    background: #2a2a3e;
    color: #555570;
}

body.dark-mode .spin-button:active:not(:disabled) {
    background: #3a00cc;
}



.score-display {
    text-align: center;
    margin-top: 24px;
    min-height: 40px;
    position: relative;
}

.daily-reset-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.75em;
    letter-spacing: 0.5px;
}

.daily-reset-info #resetTimer {
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.score-label {
    color: var(--text-tertiary);
    font-size: 0.85em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 3em;
    font-weight: 700;
    color: var(--text-primary);
    animation: scoreAppear 0.4s ease-out;
}

.score-value.win {
    color: #5B21F5;
}

@keyframes scoreAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    color: var(--text-primary);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

body.dark-mode .modal-content {
    background: #111128;
    color: var(--text-primary);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
}

body.dark-mode .modal-title {
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #666;
}

.odds-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 8px;
}

.odds-item:last-child {
    margin-bottom: 0;
}

.emoji-combo {
    font-size: 1.35em;
    letter-spacing: 2px;
}

.odds-payout {
    font-weight: 700;
    color: #5B21F5;
    font-size: 1.05em;
    text-align: right;
}

body.dark-mode .odds-payout {
    color: #a07ef5;
}


/* Footer */
.site-footer {
    text-align: center;
    padding: 16px 0 8px;
    color: var(--text-tertiary);
    font-size: 0.72em;
    letter-spacing: 0.3px;
}

.site-footer .footer-copy {
    margin-bottom: 6px;
    opacity: 0.7;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.site-footer .footer-link {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1em;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s;
    font-family: inherit;
}

.site-footer .footer-link:hover {
    opacity: 1;
    color: #5B21F5;
}

body.dark-mode .site-footer .footer-link:hover {
    color: #a07ef5;
}

/* ── Leaderboard Modal ── */
.leaderboard-date {
    text-align: center;
    font-size: 0.78em;
    color: var(--text-tertiary);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    max-height: 156px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(91,33,245,0.2) transparent;
    padding-right: 2px;
}

.leaderboard-list::-webkit-scrollbar {
    width: 4px;
}

.leaderboard-list::-webkit-scrollbar-track {
    background: transparent;
}

.leaderboard-list::-webkit-scrollbar-thumb {
    background: rgba(91,33,245,0.25);
    border-radius: 4px;
}

.leaderboard-loading {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9em;
    padding: 20px 0;
}

.leaderboard-empty {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.88em;
    padding: 20px 0;
    font-style: italic;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1.5px solid transparent;
    transition: border-color 0.15s;
}

.leaderboard-row.is-you {
    border-color: rgba(91, 33, 245, 0.4);
    background: rgba(91, 33, 245, 0.05);
}

body.dark-mode .leaderboard-row.is-you {
    border-color: rgba(160, 126, 245, 0.4);
    background: rgba(160, 126, 245, 0.07);
}

.leaderboard-rank {
    font-size: 0.78em;
    font-weight: 700;
    color: var(--text-tertiary);
    min-width: 22px;
    text-align: center;
}

.leaderboard-rank.top3 {
    font-size: 1em;
}

.leaderboard-name {
    flex: 1;
    font-size: 0.88em;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.leaderboard-row.is-you .leaderboard-name {
    color: #5B21F5;
    font-weight: 700;
}

body.dark-mode .leaderboard-row.is-you .leaderboard-name {
    color: #a07ef5;
}

.leaderboard-score {
    font-size: 0.92em;
    font-weight: 700;
    color: #5B21F5;
}

body.dark-mode .leaderboard-score {
    color: #a07ef5;
}

.leaderboard-you {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8em;
}

.leaderboard-you-label {
    color: var(--text-tertiary);
}

.leaderboard-you-code {
    color: #5B21F5;
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.dark-mode .leaderboard-you-code {
    color: #a07ef5;
}







body.dark-mode 



/* Daily results subheader inside leaderboard modal */
.leaderboard-results-subheader {
    display: block;
    width: 100%;
    font-size: 0.78em;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 12px;
    text-align: center;
}

body.dark-mode .leaderboard-results-subheader {
    color: var(--text-tertiary);
}



/* ── How to Play ── */
.how-to-tagline {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.how-to-modes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.how-to-mode-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
}

.how-to-mode-label {
    font-size: 0.88em;
    font-weight: 700;
    color: #5B21F5;
    flex-shrink: 0;
}

body.dark-mode .how-to-mode-label {
    color: #a07ef5;
}

.how-to-mode-bullets {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 4px;
}

.how-to-mode-desc {
    font-size: 0.88em;
    color: var(--text-secondary);
    display: block;
    padding-left: 1em;
    text-indent: -1em;
}

.how-to-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 14px;
}

.how-to-points-header {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

/* ── Daily Done Timer ── */
.daily-done-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    padding: 14px 0 4px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.daily-done-timer.visible {
    visibility: visible;
    opacity: 1;
}

@keyframes timerFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.daily-done-timer-label {
    font-size: 0.78em;
    color: var(--text-tertiary);
}

.daily-done-timer-value {
    font-size: 0.78em;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

/* Fixed-height wrapper so daily timer and unlimited reset never shift layout */
.sub-spin-wrap {
    position: relative;
    height: 42px;
    width: 100%;
}
.sub-spin-wrap .daily-done-timer {
    position: absolute;
    top: 0; left: 0; right: 0;
    margin-top: 0;
}
#unlimitedResetWrap {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0 4px;
    visibility: hidden;
}

/* Unlimited reset score button — same visual weight as daily timer text */
.unlimited-reset-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78em;
    color: var(--text-tertiary);
    padding: 0;
    letter-spacing: 0.3px;
    transition: color 0.15s;
}
.unlimited-reset-btn:hover {
    color: var(--text-secondary);
}

/* Bonus multiplier button — center-bottom of reels grid, solid and legible, floats up */
.bonus-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    background: #5B21F5;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 14px rgba(91,33,245,0.45);
    z-index: 10;
    transition: background 0.2s, transform 0.15s;
    animation: bonusFloat 3s ease-in-out infinite;
}
.bonus-btn:hover {
    background: #4a18d4;
    animation: none;
    transform: translateX(-50%) scale(1.05);
}
@keyframes bonusFloat {
    0%   { transform: translateX(-50%) translateY(0px);   box-shadow: 0 3px 14px rgba(91,33,245,0.45); }
    50%  { transform: translateX(-50%) translateY(-6px);  box-shadow: 0 8px 20px rgba(91,33,245,0.35); }
    100% { transform: translateX(-50%) translateY(0px);   box-shadow: 0 3px 14px rgba(91,33,245,0.45); }
}
body.dark-mode .bonus-btn {
    background: #7c3aed;
    color: #ffffff;
}

/* Pending daily results indicator */
.leaderboard-results-pending {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.78em;
    color: var(--text-tertiary);
    font-style: italic;
    padding: 4px 0 2px;
}

/* Multi-match badge on spin results */
.inline-multi-badge {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.72em;
    font-weight: 700;
    color: #5B21F5;
    opacity: 0.75;
    vertical-align: middle;
}

body.dark-mode .inline-multi-badge {
    color: #a07ef5;
}
