/* MMA Wordle Premium Styling */
:root {
    --accent: #E10600;
    --accent-hover: #ff1a1a;
    --bg-darker: #020202;
    --card-bg: rgba(14, 14, 14, 0.82);
    --border-color: rgba(255, 255, 255, 0.05);
    --correct: #10b981;
    --partial: #f59e0b;
    --incorrect: #242424; /* Sleek dark charcoal instead of bright red */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: #020202 url('../images/challenge/hero.webp') no-repeat center top fixed;
    background-size: 1920px auto;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Page Overlay for Premium Atmosphere - Live UFC Broadcast Radial Red Glow */
.wordle-page-overlay {
    background: radial-gradient(circle at top, rgba(225, 6, 0, 0.12) 0%, rgba(2, 2, 2, 0.97) 50%, #020202 100%);
    min-height: 100vh;
    width: 100%;
}

.wordle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 80px 24px !important;
    position: relative;
    z-index: 2;
}

/* Breadcrumbs & Header bar */
.wordle-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 15px;
}

.breadcrumbs {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
}

.breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs span.current {
    color: var(--accent);
}

.btn-how-to {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-how-to:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Main Layout: Split Columns */
.wordle-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 950px) {
    .wordle-layout {
        grid-template-columns: 1fr;
    }
}

/* Left Panel (Game Area) */
.game-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title-box {
    text-align: center;
    margin-bottom: 10px;
}

.hero-logo-title {
    font-size: 3.5rem;
    font-weight: 950;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 40px rgba(0,0,0,0.9);
}

.hero-logo-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #a0a0a0;
    margin-top: 10px;
    position: relative;
    display: inline-block;
}

.hero-subtitle::before, .hero-subtitle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.hero-subtitle::before { right: 100%; margin-right: 15px; }
.hero-subtitle::after { left: 100%; margin-left: 15px; }

/* Input Search Box */
.wordle-search-box {
    position: relative;
    max-width: 550px;
    margin: 20px auto 10px auto;
    width: 100%;
}

.wordle-search-box input {
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 50px 16px 20px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
    text-align: center;
}

.wordle-search-box input::placeholder {
    color: #555;
}

.wordle-search-box input:focus {
    border-color: var(--accent);
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 0 30px rgba(225, 6, 0, 0.25);
}

.search-icon-inside {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
    pointer-events: none;
}

.input-instruction-text {
    text-align: center;
    color: #777;
    font-size: 0.85rem;
    margin-top: -5px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Guess Board Table Styling with Glassmorphism */
.guesses-board {
    background: #0e0e12 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: var(--transition);
}

.guesses-board:hover {
    border-color: rgba(225, 6, 0, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(225, 6, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Headers Row - Wider last column to prevent text wrapping */
.board-header-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) 1.2fr;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.board-header-cell {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #a0a0a0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.board-header-cell:first-child {
    justify-content: flex-start;
}

.board-header-cell i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Guess Table Rows - Wider last column matching headers */
.board-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) 1.2fr;
    gap: 8px;
    margin-bottom: 8px;
}

.board-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    min-height: 52px;
    box-sizing: border-box;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.board-cell.fighter-name-cell {
    justify-content: flex-start;
    padding-left: 15px;
    font-weight: 700;
    text-transform: none;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.board-cell.fighter-name-cell span.row-idx {
    color: #666;
    margin-right: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.board-cell.empty-cell {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: #444;
}

/* Legend section */
.legend-box {
    background: rgba(10,10,10,0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    font-size: 0.8rem;
    color: #a0a0a0;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

/* Hint Box */
.hint-unlock-box {
    background: #0e0e12 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hint-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hint-status-text i {
    color: var(--accent);
}

.btn-unlock-hint {
    background: rgba(255, 255, 255, 0.04);
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-unlock-hint.unlocked {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    cursor: pointer;
}

.btn-unlock-hint.unlocked:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.4);
}

/* Right Panel (Stats & Share) */
.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: #0e0e12 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: var(--transition);
}

.sidebar-card:hover {
    border-color: rgba(225, 6, 0, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(225, 6, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

/* Tries Left counter */
.tries-left-header {
    text-align: center;
    padding: 10px 0;
}

.tries-left-num {
    font-size: 2.2rem;
    font-weight: 950;
    color: #fff;
    line-height: 1;
}

.tries-left-num span.red {
    color: var(--accent);
}

.tries-left-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.dots-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.dot-indicator.filled-red {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.7);
}

.dot-indicator.filled-green {
    background: var(--correct);
    border-color: var(--correct);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

/* Stats list */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(225, 6, 0, 0.1);
    border: 1px solid rgba(225, 6, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

/* Autocomplete Dropdown - Gorgeous glass pane */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.85);
    margin-top: 5px;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition);
}

.autocomplete-item:hover:not(.already-guessed) {
    background: rgba(225, 6, 0, 0.08);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Share Card widget */
.share-results-box {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.share-widget-inner {
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 15px;
    background: rgba(255,255,255,0.01);
    position: relative;
}

.share-widget-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 900;
    color: #888;
    margin-bottom: 12px;
}

.share-widget-header span.game-no {
    color: var(--accent);
}

.share-emoji-grid {
    display: grid;
    gap: 5px;
    justify-content: center;
    margin-bottom: 12px;
}

.share-emoji-row {
    display: flex;
    gap: 5px;
}

.share-emoji-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.share-score-label {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
}

.share-url {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Match Colors - Premium Sports Theme */
.correct {
    background-color: var(--correct) !important; /* Premium emerald green */
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.partial {
    background-color: var(--partial) !important; /* Premium warm amber */
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.incorrect {
    background-color: var(--incorrect) !important; /* Muted dark charcoal */
    border: 1px solid rgba(225, 6, 0, 0.25) !important; /* Subtle crimson border */
    color: #888888 !important; /* Muted grey text */
    text-shadow: none !important;
}

/* Compact layout overrides */
.guesses-board {
    padding: 12px !important;
}
.board-header-row {
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    gap: 6px !important;
}
.board-header-cell {
    font-size: 0.7rem !important;
    justify-content: center;
}
.board-header-cell:first-child {
    justify-content: flex-start;
    padding-left: 5px;
}
.board-row {
    gap: 6px !important;
    margin-bottom: 6px !important;
}
.board-cell {
    min-height: 44px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
}
.board-cell.fighter-name-cell {
    padding-left: 10px !important;
    font-size: 0.82rem !important;
}
.board-cell.fighter-name-cell span.row-idx {
    margin-right: 6px !important;
}
.wordle-search-box input {
    padding: 14px 45px 14px 15px !important;
    font-size: 0.95rem !important;
}
.wordle-container {
    padding-top: 20px !important;
}
.hero-logo-title {
    font-size: 2.8rem !important;
}
.sidebar-card {
    padding: 18px !important;
}

/* Share widget colors compatibility */
.share-emoji-box.correct {
    background-color: var(--correct) !important;
}
.share-emoji-box.partial {
    background-color: var(--partial) !important;
}
.share-emoji-box.incorrect {
    background-color: #3a3a3a !important; /* Solid dark grey in shares */
    border: none !important;
}

/* Subtle animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.warning-toast {
    animation: shake 0.35s ease-in-out;
}

/* Tries Selection Buttons & Challenge Button */
.btn-tries-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-tries-select:hover:not(.disabled) {
    background: rgba(225, 6, 0, 0.15);
    border-color: var(--accent);
    color: #fff;
}
.btn-tries-select.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(225, 6, 0, 0.5);
}
.btn-tries-select.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-gender-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}
.btn-gender-select:hover:not(.disabled) {
    background: rgba(225, 6, 0, 0.15);
    border-color: var(--accent);
    color: #fff;
}
.btn-gender-select.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(225, 6, 0, 0.5);
}
.btn-gender-select.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-challenge {
    background: #555;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-challenge:hover {
    background: #666;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Dedicated Hero Header & Cell Search Input Styling */
.wordle-hero-section {
    width: 100%;
    background: radial-gradient(circle at center, rgba(225, 6, 0, 0.15) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 120px 0 50px 0; /* extra top padding to push below main navbar */
    text-align: center;
}
.wordle-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.active-row {
    z-index: 99 !important;
}

.active-input-cell {
    position: relative;
    background: rgba(225, 6, 0, 0.04) !important;
    border: 1px solid rgba(225, 6, 0, 0.25) !important;
    box-shadow: inset 0 0 10px rgba(225, 6, 0, 0.05);
    padding: 0 !important; /* let input fill cell */
    z-index: 100 !important;
}
.active-input-cell input {
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}
.active-input-cell input::placeholder {
    color: #444 !important;
    font-weight: 500 !important;
}
.active-input-cell .autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px; /* wider than name cell for better display */
    max-height: 250px;
    background: rgba(14, 14, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 36px rgba(0,0,0,0.9);
    border-radius: 8px;
    z-index: 1000;
}

/* Warning Colors based on violation type */
.warning-toast.warning-default {
    color: #ff4d4d !important;
}
.warning-toast.warning-weight {
    color: #38bdf8 !important; /* bright cyan */
}
.warning-toast.warning-debut {
    color: #fb923c !important; /* orange */
}
.warning-toast.warning-rank {
    color: #a78bfa !important; /* violet */
}
.warning-toast.warning-country {
    color: #f43f5e !important; /* rose */
}
.warning-toast.warning-age {
    color: #eab308 !important; /* gold/yellow */
}
.warning-toast.warning-mixed {
    color: #2dd4bf !important; /* teal */
}

/* Floating Sticky Back Button - Premium Minimalist Pill */
.floating-back-btn {
    position: fixed;
    left: 40px;
    top: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 11px 22px;
    border-radius: 30px;
    color: #e0e0e0;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.floating-back-btn i {
    font-size: 0.85rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.floating-back-btn:hover {
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(225, 6, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.floating-back-btn:hover i {
    transform: translateX(-4px);
    color: #ffffff;
}

/* Q&A Hint Box styling */
.qa-hint-box {
    background: #0e0e12 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.qa-hint-box:hover {
    border-color: rgba(225, 6, 0, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.qa-hint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.qa-hint-title {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-hint-counter {
    font-size: 0.8rem;
    font-weight: 800;
    color: #a0a0a0;
}

.qa-hint-counter span {
    color: var(--correct);
    font-size: 1rem;
    font-weight: 900;
}

.qa-hint-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.qa-hint-controls select {
    flex: 1;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    min-width: 250px;
    transition: var(--transition);
    cursor: pointer;
}

.qa-hint-controls select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.15);
}

.qa-hint-controls .btn-ask {
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.qa-hint-controls .btn-ask:hover:not(.disabled) {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.5);
    transform: translateY(-2px);
}

.qa-hint-controls .btn-ask.disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

.qa-logs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar for hint logs */
.qa-logs-list::-webkit-scrollbar {
    width: 4px;
}
.qa-logs-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.qa-log-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qa-log-q {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qa-log-q i {
    color: var(--accent);
}

.qa-log-a {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 14px;
}

.qa-log-a i {
    color: var(--correct);
}

/* Top bar Restart Button */
.btn-top-restart {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-top-restart:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    border-color: #10b981;
}

/* Responsiveness overrides for Back Button & Q&A Box */
@media (max-width: 1400px) {
    .floating-back-btn {
        left: 20px;
        top: 20px;
        padding: 9px 16px;
        font-size: 0.7rem;
    }
}

@media (max-width: 1024px) {
    .floating-back-btn {
        position: absolute;
        top: 15px;
        left: 15px;
    }
}

/* --- NEW STYLES FOR OVERHAULED COMPONENTS --- */

/* Board Title Row & Replay Button */
.board-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board-title-text {
    font-size: 0.9rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-title-text i {
    color: var(--accent);
}

.btn-board-restart {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-board-restart:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    border-color: #10b981;
    transform: translateY(-1px);
}

.btn-open-preferences-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-open-preferences-modal:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-open-preferences-modal:active {
    transform: translateY(1px);
}

/* Compact Color Legend */
.legend-box-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    padding: 8px 16px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.legend-badge-item {
    font-size: 0.72rem;
    font-weight: 800;
    color: #a0a0a0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-badge-item i {
    color: var(--accent);
    font-size: 0.75rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.badge-dot.correct {
    background: var(--correct);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.badge-dot.partial {
    background: var(--partial);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.badge-dot.incorrect {
    background: #242424;
    border: 1px solid var(--accent);
}

/* Q&A Hint Grid and Cards */
.qa-hint-instructions {
    font-size: 0.78rem;
    color: #888888;
    line-height: 1.4;
    margin-bottom: 8px;
    border-left: 2px solid var(--accent);
    padding-left: 8px;
}

.hints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.hint-q-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #e0e0e0;
}

.hint-q-btn:hover:not(:disabled) {
    background: rgba(225, 6, 0, 0.04);
    border-color: rgba(225, 6, 0, 0.35);
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.12);
    transform: translateY(-2px);
    color: #ffffff;
}

.hint-q-btn:active:not(:disabled) {
    transform: translateY(0);
}

.hint-q-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.03);
}

.hint-q-btn.asked {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.03);
    color: #a0a0a0;
    opacity: 0.7;
    cursor: default;
}

.hint-q-btn.asked .hint-btn-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.hint-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hint-q-btn:hover:not(:disabled) .hint-btn-icon {
    background: rgba(225, 6, 0, 0.15);
    color: #ff2a2a;
}

.hint-btn-text {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.qa-logs-title-bar {
    font-size: 0.75rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.btn-open-hint-modal {
    background: rgba(225, 6, 0, 0.08) !important;
    border: 1px solid rgba(225, 6, 0, 0.25) !important;
    color: #ff2a2a !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    width: auto !important;
    box-shadow: none !important;
}

.btn-open-hint-modal:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.4) !important;
    border-color: var(--accent) !important;
    transform: translateY(-1px);
}

.btn-open-hint-modal:active {
    transform: translateY(1px);
}

/* Bottom Layout: Stats and Share Grid */
.wordle-bottom-row {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 30px;
}

@media (max-width: 950px) {
    .wordle-bottom-row {
        grid-template-columns: 1fr;
    }
}

.bottom-stats-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px !important;
}

.stats-horizontal-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stat-item-h {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 140px;
}

.bottom-share-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px !important;
    gap: 15px;
}

.bottom-share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#daily-plays-display {
    font-size: 0.72rem;
    color: var(--correct);
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.referral-input-group {
    display: flex;
    gap: 8px;
}

.referral-input-group input {
    flex: 1;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
    font-weight: 700;
    box-sizing: border-box;
}

#btn-copy-ref-link {
    padding: 10px 15px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0;
}

.paylas-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--correct);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
}

#referral-redeem-container {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 15px;
}

#referral-redeem-container input {
    flex: 1;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
    color: #fff;
    font-size: 0.78rem;
    outline: none;
    font-weight: 700;
    text-transform: uppercase;
    box-sizing: border-box;
}

#referral-redeem-container input::placeholder {
    color: #555;
    text-transform: uppercase;
}

#btn-apply-ref-code {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: #10b981 !important;
    padding: 10px 15px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0;
}

#btn-apply-ref-code:hover {
    background: var(--correct) !important;
    color: #fff !important;
    border-color: var(--correct) !important;
}

/* Bottom Results Share layout */
#share-results-bottom-row .share-results-box {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

#share-results-bottom-row .share-results-box #secret-fighter-reveal-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

#share-results-bottom-row .share-widget-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    flex: 1;
    justify-content: center;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    margin-bottom: 0;
}

#share-results-bottom-row .share-actions-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

@media (max-width: 950px) {
    #share-results-bottom-row .share-results-box {
        flex-direction: column;
        gap: 20px;
    }
    #share-results-bottom-row .share-results-box #secret-fighter-reveal-box,
    #share-results-bottom-row .share-widget-inner,
    #share-results-bottom-row .share-actions-group {
        width: 100%;
    }
}

/* 🏆 Premium Share Options Modal Styling */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-card {
    background: rgba(18, 18, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 850px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    box-sizing: border-box;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.share-modal-close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.share-modal-close-btn:hover {
    opacity: 1;
    color: var(--accent);
}

.share-modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 950;
    text-transform: uppercase;
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
}

.share-modal-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
}

.share-modal-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-image-preview-container {
    width: 100%;
    aspect-ratio: 1200 / 630;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.share-image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skeleton-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #666;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skeleton-ring {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(225, 6, 0, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.share-image-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-share-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-share-action:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.share-modal-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-channels-title,
.share-text-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.share-channels-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-channel-btn {
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 850;
    text-transform: uppercase;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
    box-sizing: border-box;
}

.x-platform {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.x-platform:hover {
    background: #09090b;
    border-color: rgba(255, 255, 255, 0.2);
}

.whatsapp-platform {
    background: #128c7e;
}
.whatsapp-platform:hover {
    background: #075e54;
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.3);
}

.telegram-platform {
    background: #0088cc;
}
.telegram-platform:hover {
    background: #006699;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.share-text-box-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-text-box-container textarea {
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    color: #ccc;
    font-family: monospace;
    font-size: 0.78rem;
    height: 95px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.share-text-box-container textarea:focus {
    border-color: var(--accent);
    background: rgba(10, 10, 12, 0.85);
}

.text-copy-btn {
    background: var(--accent) !important;
    border: none !important;
    font-size: 0.85rem !important;
    justify-content: center;
}

.text-copy-btn:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

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

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

@media (max-width: 768px) {
    .share-modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .share-modal-card {
        padding: 22px;
        max-height: 92vh;
        overflow-y: auto;
    }
}
