/* ============================================
   PREMIUM BRANDING VARIABLES
   ============================================ */
:root {
    --header-footer-bg: #111827;
    --nav-link-color: #f8fafc;
    --nav-hover-color: #3b82f6;
}

/* Global Branding Overrides */
header,
footer {
    background-color: var(--header-footer-bg) !important;
    color: var(--nav-link-color) !important;
}

header a,
footer a {
    color: var(--nav-link-color);
}

header a:hover,
footer a:hover {
    color: var(--nav-hover-color);
}

/* Ensure Logo Text is White */
.logo-text,
header h1,
header .font-bold {
    color: #ffffff !important;
}

/* SVG Icons in Header - Light Stroke */
header svg {
    stroke: #e5e7eb !important;
}

/* Footer Link Colors */
footer a {
    color: #94a3b8 !important;
    /* light gray */
}

footer a:hover {
    color: #ffffff !important;
}

/* Global WCAG AA Contrast Overrides */
.text-accent,
.related-reading a.text-accent {
    color: #2563eb !important;
    /* Darker blue for light mode compliance (4.56:1) */
}

.text-red-500 {
    color: #dc2626 !important;
    /* Red-600 (4.51:1) */
}

.dark .text-accent,
.dark .related-reading a.text-accent {
    color: #60a5fa !important;
    /* Blue-400 (>7:1 on dark) */
}

.dark .text-red-500 {
    color: #f87171 !important;
    /* Red-400 (>7:1 on dark) */
}

.dark .text-gray-400,
.dark .dark\:text-gray-400 {
    color: #D1D5DB !important;
    /* gray-300 for WCAG AA compliance */
}

.dark .text-gray-500,
.dark .dark\:text-gray-500 {
    color: #D1D5DB !important;
    /* gray-300 for WCAG AA compliance */
}

/* Footer text in dark mode needs better contrast */
.dark footer {
    color: #D1D5DB !important;
    /* Ensure footer text is readable */
}

.ad-container {
    min-height: 90px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* Blog Card Hover Effects */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Mobile tap feedback */
.blog-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#xp-bar {
    transition: width 0.5s ease-in-out;
}


html,
body {
    /* overflow must NOT be hidden/clip/scroll for position:sticky to work */
    max-width: 100vw;
}

/* Help modal card - ensure solid background, centered, and visible */
#help-modal>div,
#stats-modal>div,
#settings-modal>div,
#difficulty-modal>div {
    background: #ffffff !important;
    color: #000000 !important;
    position: relative !important;
    z-index: 60;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Dark mode backgrounds for modal cards */
.dark #help-modal>div,
.dark #stats-modal>div,
.dark #settings-modal>div,
.dark #difficulty-modal>div {
    background: #1f2937 !important;
    color: #ffffff !important;
}

/* Dark mode styling for select dropdowns in modals */
.dark #settings-modal select,
.dark #difficulty-modal select {
    background-color: #374151 !important;
    color: #ffffff !important;
    border-color: #4b5563 !important;
}

.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 10000;
    animation: fallAndSway 3s ease-out forwards;
}

@keyframes fallAndSway {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) translateX(var(--sway, 0px)) rotate(720deg);
        opacity: 0;
    }
}

.key {
    min-width: 44px;
    min-height: 44px;
}

.key-wide {
    width: 55px !important;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .dmg-wide-btn {
        width: 112px !important;
        min-width: 112px !important;
    }
}

.streak-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.bronze {
    background: linear-gradient(145deg, #cd7f32, #a05d21);
}

.silver {
    background: linear-gradient(145deg, #c0c0c0, #a9a9a9);
}

.gold {
    background: linear-gradient(145deg, #ffd700, #daa520);
}

.diamond {
    background: linear-gradient(145deg, #b9f2ff, #89cff0);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Mobile responsiveness - hide XP bar on very small screens */
@media (max-width: 374px) {
    #xp-display {
        display: none !important;
    }

    .header-stats-divider:last-of-type {
        display: none !important;
    }
}

/* Sidebar ad containers - desktop only */
.sidebar-ad-container {
    width: 160px;
    min-height: 600px;
    position: sticky;
    top: 20px;
}

/* FAQ styles */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

/* Money Layout Grid and Sidebar Support (Local Recovery) */
@media (min-width: 1024px) {
    .lg\:grid-cols-\[1fr_340px\] {
        grid-template-columns: 1fr 340px !important;
    }

    .lg\:block {
        display: block !important;
    }

    .lg\:max-w-none {
        max-width: none !important;
    }

    .lg\:whitespace-nowrap {
        white-space: nowrap !important;
    }
}

/* Benefits Grid and Card Styling */
.benefits-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
}

.dark .benefit-card {
    background-color: #1f2937;
}

.benefit-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent, #3A86FF);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.benefit-card h3 {
    margin-top: 0 !important;
}

.benefit-card p,
.benefit-card ul {
    margin-bottom: 0 !important;
}

/* Sticky Sidebar Ad Container Base Styles */
#sidebar-right .sticky {
    width: 300px !important;
    height: 600px !important;
    background-color: transparent !important;
    border: none !important;
    display: block !important;
    box-shadow: none !important;
}

#sidebar-right span {
    display: none !important;
}

/* Force footer nav links to use brand blue accent */
footer nav a {
    color: #60a5fa !important;
}


/* Blog card styles - ensure dark mode compatibility */
.blog-card-title {
    color: #1f2937;
}

.dark .blog-card-title {
    color: #ffffff !important;
}

.dark .blog-card {
    background-color: #1f2937 !important;
}

.sudoku-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    aspect-square;
}

@media (max-width: 768px) {
    .sudoku-cell {
        font-size: 1.2rem;
    }
}

/* =================================================================
   MOBILE OPTIMIZATIONS
   ================================================================= */

/* Fix 1: Hide popup modals on mobile (daily reminder, welcome, etc) */
@media (max-width: 640px) {

    #daily-reminder-modal,
    #welcome-modal,
    #reminder-modal {
        display: none !important;
    }
}

/* Fix 2: Fix header overlap on mobile - hide left stats, show only logo and buttons */
@media (max-width: 640px) {

    /* Hide the stats section on mobile header to prevent overlap */
    header .flex.items-center.gap-2.min-w-\[200px\],
    header .flex.items-center.gap-2.min-w-\[270px\] {
        display: none !important;
    }

    /* Center the logo on mobile - override absolute positioning from game pages */
    header a[href="index.html"],
    header a[href="../index.html"] {
        position: static !important;
        left: auto !important;
        transform: none !important;
        flex-grow: 1;
        text-align: center;
        font-size: 1.25rem !important;
    }

    /* Hide Blog link on mobile for all pages */
    header a[href="blog/index.html"],
    header a[href="../blog/index.html"] {
        display: none !important;
    }

    /* Ensure header buttons stay visible on mobile */
    header .flex.items-center.gap-1.min-w-\[120px\] {
        min-width: auto !important;
    }

    /* Reduce header padding on mobile */
    header .py-2 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Fix 3: Hide DEV MODE section in footer on mobile */
@media (max-width: 640px) {

    footer .dev-mode,
    footer .dev-links,
    footer [class*="dev-"],
    footer nav+nav,
    footer nav:nth-of-type(2) {
        display: none !important;
    }
}

/* Fix 4: Optimize Help/Stats/Settings modals for mobile */
@media (max-width: 640px) {

    #help-modal>div,
    #stats-modal>div,
    #settings-modal>div,
    #difficulty-modal>div {
        max-height: 85vh !important;
        overflow-y: auto !important;
        margin: 1rem !important;
        padding: 1rem !important;
        font-size: 0.9rem;
    }

    /* Ensure close button is always visible */
    .modal-close-btn {
        position: sticky;
        top: 0;
        z-index: 10;
        background: inherit;
    }

    /* Reduce modal header sizes on mobile */
    #help-modal h2,
    #stats-modal h2,
    #settings-modal h2 {
        font-size: 1.5rem !important;
    }

    /* Make modal content more compact */
    #stats-modal-content {
        padding: 1rem !important;
    }
}

/* Fix 5: Fix footer wrapping on mobile */
@media (max-width: 640px) {
    footer nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem !important;
    }

    footer nav a {
        font-size: 0.875rem !important;
        padding: 0.25rem !important;
    }

    footer nav span.inline-block {
        display: none !important;
    }
}

/* Bonus: Improve touch targets on mobile */
@media (max-width: 640px) {

    button,
    a.block {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Fix 6: Mobile keyboard overflow - reduce key size to fit 10 keys in 375px viewport */
@media (max-width: 400px) {

    /* Reduce keyboard container gaps */
    #keyboard-container .flex {
        gap: 2px !important;
    }

    /* Reduce number/operator key width from 40px to 32px */
    #keyboard-container .key {
        width: 32px !important;
        min-width: 32px !important;
        height: 44px !important;
        font-size: 0.875rem !important;
        padding: 0 2px !important;
    }

    /* Reduce ENTER/DELETE key width from 64px to 52px */
    #keyboard-container .key.w-16,
    #keyboard-container .key[data-key="ENTER"],
    #keyboard-container .key[data-key="Delete"] {
        width: 52px !important;
        min-width: 52px !important;
        font-size: 0.7rem !important;
    }

    /* Ensure keyboard container doesn't overflow */
    #keyboard-container {
        max-width: 100vw !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }
}

/* =================================================================
   MOBILE HAMBURGER MENU
   ================================================================= */

/* Hamburger Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #3A86FF;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animated X state */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 55;
}

.mobile-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Navigation Drawer - Slides from RIGHT */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 56;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    visibility: hidden;
    /* CRITICAL: Prevents drawer from affecting layout width when closed */
}

.dark .mobile-nav-drawer {
    background: #1f2937;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

/* Stats Header */
.mobile-nav-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 16px;
    background: linear-gradient(135deg, #3A86FF 0%, #5A9CFF 100%);
    color: white;
    font-size: 1rem;
}

.mobile-nav-stats strong {
    font-weight: 700;
}

/* Section Styling */
.mobile-nav-section {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dark .mobile-nav-section {
    border-bottom-color: #374151;
}

.mobile-nav-section h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    padding: 8px 20px;
    margin: 0;
}

.dark .mobile-nav-section h3 {
    color: #9ca3af;
}

/* Navigation Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dark .mobile-nav-link {
    color: #e5e7eb;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: #f3f4f6;
    color: #3A86FF;
}

.dark .mobile-nav-link:hover,
.dark .mobile-nav-link:focus {
    background-color: #374151;
    color: #5A9CFF;
}

.mobile-nav-link.active {
    color: #3A86FF;
    background-color: #eff6ff;
    font-weight: 600;
    border-left: 3px solid #3A86FF;
}

.dark .mobile-nav-link.active {
    color: #5A9CFF;
    background-color: rgba(58, 134, 255, 0.1);
    border-left-color: #5A9CFF;
}

/* Button Links (Stats/Settings/Dark Mode) */
.mobile-nav-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease;
}

.dark .mobile-nav-btn {
    color: #e5e7eb;
}

.mobile-nav-btn:hover,
.mobile-nav-btn:focus {
    background-color: #f3f4f6;
}

.dark .mobile-nav-btn:hover,
.dark .mobile-nav-btn:focus {
    background-color: #374151;
}

/* Footer Section */
.mobile-nav-footer {
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
}

.dark .mobile-nav-footer {
    border-top-color: #374151;
}

/* Legal Links */
.mobile-nav-legal {
    padding: 16px 20px;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

.mobile-nav-legal a {
    color: #9ca3af;
    text-decoration: none;
}

.mobile-nav-legal a:hover {
    color: #3A86FF;
    text-decoration: underline;
}

/* Hide hamburger and drawer on desktop */
@media (min-width: 640px) {

    .hamburger-btn,
    .mobile-nav-drawer,
    .mobile-nav-backdrop {
        display: none !important;
    }
}

/* Mobile spacer for header balance */
.mobile-header-spacer {
    width: 44px;
    flex-shrink: 0;
}

/* =================================================================
   MOBILE IN-ARTICLE AD SLOTS
   ================================================================= */

/* Mobile: show ad containers */
@media (max-width: 767px) {
    .mobile-in-article-ad {
        display: block;
        width: 100%;
        min-height: 250px;
        margin: 2rem auto;
        background: transparent;
        border: none;
    }
}

/* Desktop: hide ad containers */
@media (min-width: 768px) {
    .mobile-in-article-ad {
        display: none;
    }
}

/* =================================================================
   2-COLUMN GRID LAYOUT FOR AD REVENUE OPTIMIZATION
   ================================================================= */

/* Desktop 2-column grid at md breakpoint (768px) */
@media (min-width: 768px) {
    .grid.md\:grid-cols-\[65\%_35\%\] {
        grid-template-columns: 65% 35% !important;
    }

    /* Lock left column to full 65% */
    .grid.md\:grid-cols-\[65\%_35\%\]>main {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
    }

    /* Lock right column to 35% */
    .grid.md\:grid-cols-\[65\%_35\%\]>.sticky-sidebar-ad {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
    }

    /* Center left-column children within the 65% column */
    .grid.md\:grid-cols-\[65\%_35\%\]>main>* {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Game Area centering */
    .grid.md\:grid-cols-\[65\%_35\%\]>main>#game-area {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    /* FAQ container: increased padding, left-aligned text */
    .content-column>#faq-section {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        padding: 2rem;
        text-align: left;
    }

    #faq-section *,
    #faq-section h2 {
        text-align: left;
    }

    /* Related Reading container: increased padding, left-aligned text */
    .content-column>.related-reading {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        padding: 2rem;
        text-align: left;
    }

    .related-reading *,
    .related-reading h2 {
        text-align: left;
    }
}


/* Mobile: hide sidebar, ensure single column stack */
@media (max-width: 767px) {
    .sticky-ad-sidebar {
        display: none !important;
    }
}

/* Sticky Sidebar Ad Slot */
.sticky-sidebar-ad {
    position: sticky;
    top: 20px;
    width: 300px;
    height: 600px;
    background: transparent;
    border: none;
}

/* =================================================================
   FAQ ACCORDION UTILITIES
   ================================================================= */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

/* FAQ Chevron Styling */
.faq-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: inherit;
    /* Inherits text-accent from summary */
}

.faq-chevron-svg {
    width: 20px !important;
    height: 20px !important;
}

details[open] .faq-chevron {
    transform: rotate(180deg);
}


/* =================================================================
   MONEY LAYOUT SETUP
   ================================================================= */

.money-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .money-layout-wrapper {
        grid-template-columns: 1fr 320px !important;
        /* align-items: start; - REMOVED to allow sidebar column to stretch to full height */
    }

    .content-column {
        width: 100% !important;
        /* Managed by grid parent */
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* Accurately align game board within the Left 65% column */
    .content-column #game-area {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
    }
}

/* =================================================================
   STICKY SIDEBAR GLOBAL CLASS
   ================================================================= */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    z-index: 10;
}

/* Cleaned up malformed rules */

.content-column #game-content-area {
    width: 100% !important;
    max-width: 100% !important;
}

.faq-container {
    margin-left: 0 !important;
    max-width: 800px !important;
}

.related-reading {
    max-width: 800px;
}

/* FAQ alignment in Money Layout */
.content-column>#faq-section {
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 800px !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.sticky-ad-sidebar {
    display: block !important;
    width: 320px !important;
    padding-left: 20px !important;
    box-sizing: border-box;
}

/* Premium Sidebar Card Enhancement */
.premium-sidebar-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2) !important;
}

.premium-sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.3) !important;
}

.premium-card-btn {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.5) !important;
    transition: all 0.3s ease !important;
}

.premium-card-btn:hover {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.7) !important;
    transform: scale(1.02);
}
}

@media (max-width: 767px) {

    .content-column,
    .sticky-ad-sidebar {
        width: 100%;
    }


}
}

.sticky-ad-sidebar {
    position: sticky;
    top: 20px;
    min-height: 600px;
}


/* In-Feed Ad Slots (Collapsed by default) */
.in-feed-ad-slot {
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: none;
    border: none;
}





/* =================================================================
   SUDOKU: GRID & CELL STYLING
   ================================================================= */
#puzzle-grid {
    gap: 0px !important;
    border: 2px solid #e2e8f0;
}

.sudoku-cell {
    border: none !important;
    border-right: 1px solid #475569 !important;
    border-bottom: 1px solid #475569 !important;
    box-sizing: border-box;
}

.border-r-thick {
    border-right: 2px solid #e2e8f0 !important;
}

.border-b-thick {
    border-bottom: 2px solid #e2e8f0 !important;
}

/* Prevent outer edge doubling */
.sudoku-cell[data-col="8"] {
    border-right: none !important;
}

.sudoku-cell[data-row="8"] {
    border-bottom: none !important;
}

/* =================================================================
UNIFIED WINNER MODAL GLOBAL STYLES
================================================================= */
.dmg-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: dmgFadeIn 0.3s forwards;
}

.dmg-modal-card {
    background: #ffffff;
    color: #111827;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    animation: dmgPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .dmg-modal-card {
    background: #1f2937;
    color: #f8fafc;
    border: 1px solid #374151;
}

.dmg-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    font-weight: bold;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 0.8;
}

.dmg-modal-close:hover {
    color: #3b82f6;
}

.dmg-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@keyframes dmgFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes dmgPopIn {
    to {
        transform: scale(1);
    }
}

.victory-gecko {
    margin-bottom: 2rem !important;
}