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

body {
    font-family: 'Noto Serif SC', serif;
    background: #fff;
    color: #2c1810;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    padding: 25px;

    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3);
    border: 3px solid #8b4513;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    pointer-events: none;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #fff 25%, #000 25%, #000 50%, #fff 50%, #fff 75%, #000 75%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2c1810;
    border: 4px solid #8b4513;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #2c1810;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.info-section {
    text-align: right;
}

.time-info {
    font-size: 15px;
    color: #2c1810;
    margin-bottom: 8px;
    font-weight: 500;
}

.job-info {
    font-size: 15px;
    color: rgb(212, 10, 10);
    margin-bottom: 8px;
    font-weight: 500;
}

.match-info {
    font-size: 15px;
    color: #8b0000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.grid-cell {
    background: linear-gradient(135deg, #f5f5dc 0%, #deb887 100%);
    padding: 20px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    position: relative;
    min-height: 220px;
    border: 3px solid #8b4513;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: "The Nautigal", cursive;
}

.grid-cell::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    pointer-events: none;
}

.grid-cell.center {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 4px solid #b8860b;
}

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

.cell-icons {
    display: flex;
    gap: 8px;
}

.icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #8b4513;
    color: #2c1810;
    font-weight: bold;
}

.icon:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    transform: scale(1.1);
}

.cell-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c1810;
    text-align: center;
    flex-grow: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.cell-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    overflow: hidden;
    flex-wrap: nowrap;
}

.left-buttons,
.right-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    max-height: 100%;
}

.center-buttons {
    width: 100%;
    text-align: center;
}

.rect-btn,
.oval-btn {

    border-radius: 8px;
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    border: 2px solid #8b4513;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.rect-btn::before,
.oval-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.rect-btn:hover::before,
.oval-btn:hover::before {
    left: 100%;
}

.rect-btn {
    background: linear-gradient(135deg, #98fb98 0%, #32cd32 100%);
    color: #2c1810;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.oval-btn {
    background: linear-gradient(135deg, #f0e68c 0%, #daa520 100%);
    color: #2c1810;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}


/* Center cell specific */
.center-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.yin-yang-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: url("{{ asset('kmdg/img/logo.png') }}") no-repeat center/contain;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
    border: 3px solid #8b4513;
}

.center-text {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
}

.center-left,
.center-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.center-item {
    font-size: 16px;
    color: #2c1810;
    text-align: center;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    padding: 25px;

    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3);
    border: 3px solid #8b4513;
}

.footer::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    pointer-events: none;
}

.footer-left a {
    color: #2c1810;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-left a:hover {
    color: #8b0000;
}

.footer-right {
    color: #8b0000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Save button */
.save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffd166 0%, #f4b400 100%);
    border: 2px solid #8b4513;
    color: #2c1810;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.save-btn:hover {
    filter: brightness(0.95);
}

.save-btn .emoji {
    font-size: 16px;
}

/* Special elements */
.horse-icon {

    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f0e68c 0%, #daa520 100%);
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #2c1810;
    border: 2px solid #8b4513;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.kv-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f0e68c 0%, #daa520 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #2c1810;
    font-weight: bold;
    border: 2px solid #8b4513;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Traditional decorative elements */
.grid-cell::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background:
        linear-gradient(45deg, transparent 40%, rgba(139, 69, 19, 0.1) 40%, rgba(139, 69, 19, 0.1) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(139, 69, 19, 0.1) 40%, rgba(139, 69, 19, 0.1) 60%, transparent 60%);
    border-radius: 8px;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .center-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}



/* Revert to classic minimal style while keeping current DOM */
body {
    background: #f7f7f8;
    color: #1f2937;
}

.container {
    max-width: 1100px;
}

/* Header */
.header {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 16px 20px;

}

.header::before {
    display: none;
}

.logo {
    width: 120px;
    height: 120px;
    background: url("../img/logo.png") no-repeat center/contain;
    border: none;
    box-shadow: none;
    font-size: 18px;
    color: #111827;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    color: #111827;
    text-shadow: none;
}

.time-info {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

.match-info {
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
}

/* Grid */
.main-grid {
    gap: 0;
}

.grid-cell {
    background: #fff;
    border: 1px solid #e5e7eb;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-height: 190px;
}

.grid-cell::before,
.grid-cell::after {
    display: none;
}

.grid-cell.center {

    border: 1px dashed #e5e7eb;
    box-shadow: none;
    background: #faeddd;

}

/* Cell header */
.cell-icons .icon {
    width: 22px;
    height: 22px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    border-radius: 50%;
}

.icon:hover {
    background: #e5e7eb;
    transform: none;
}

.cell-title {
    font-size: 40px;
    color: #111827;
    text-shadow: none;
}

/* Buttons */
.cell-content {
    height: auto;
}

.left-buttons,
.right-buttons {
    gap: 10px;
}

.rect-btn,
.oval-btn {
    border: 1px solid #daa520;
    min-height: 40px;
    box-shadow: none;
    transform: none;
    background: transparent !important;
    border: none;
}

.rect-btn::before,
.oval-btn::before {
    display: none;
}

.rect-btn {
    background: #fff3e0;
    color: #333;

    border-radius: 30px;

    margin: auto;
}

.has-new.left-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: hidden;
    max-height: 100%;
}

.oval-btn {
    background: #fff3e0;
    color: #333;
    border-radius: 8px;
}

.rect-btn:hover {
    background: #dbe7ff;
}

.oval-btn:hover {
    background: #ffe8cc;
}

/* Center */
.yin-yang-bg {
    width: 200px;
    height: 250px;
    opacity: 0.5;
    border: none;
}

.center-item {
    font-size: 24px;
    color: #374151;
    text-shadow: none;
}

.center-right .center-item {
    color: #6b7280;
}

/* Footer */
.footer {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);

}

.footer::before {
    display: none;
}

.footer-left a {
    color: #374151;
    text-shadow: none;
}

.footer-right {
    color: #ef4444;
    text-shadow: none;
}

/* Save button (classic) */
.save-btn {
    background: #111827;
    color: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.save-btn:hover {
    background: #374151;
}

/* Small tags */
.horse-icon,
.kv-icon {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #fffbe6;
    border: 1px solid #fcd34d;
    color: #92400e;
    box-shadow: none;
    border-radius: 6px;
    font-size: 12px;

}

.hourse-icon {
    display: none;
}

.horse-icon~.kv-icon {
    right: 45px;
}

.kv-icon {
    display: none;
}

@media (max-width: 768px) {
    .cell-content {
        height: auto;
    }
}

.center-right .center-item {
    display: none;
}

/* Save Screenshot Button */
.save-screenshot-container {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 15px;
    margin-top: 30px;

}

.save-screenshot-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 0.375rem;
    background: #1f2937;

    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;

    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.save-screenshot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.save-screenshot-btn:hover::before {
    left: 100%;
}

.save-screenshot-btn:hover {
    background: #000;
    transform: translateY(-3px);

}

.save-screenshot-btn:active {
    transform: translateY(-1px);
}

.save-screenshot-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.save-screenshot-btn .icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    display: none;
}

.save-screenshot-btn.loading .icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.save-screenshot-btn .text {
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Save Canvas Button - Reuse screenshot button styles with different colors */
.save-canvas-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #2c1810;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #8b4513;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.save-canvas-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.save-canvas-btn:hover::before {
    left: 100%;
}

.save-canvas-btn:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.save-canvas-btn:active {
    transform: translateY(-1px);
}

.save-canvas-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.save-canvas-btn .icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.save-canvas-btn.loading .icon {
    animation: spin 1s linear infinite;
}

.save-canvas-btn .text {
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Success message */
.screenshot-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #32cd32 0%, #228b22 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    z-index: 10000;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid #006400;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.screenshot-message.show {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .save-screenshot-container {
        margin-top: 20px;
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .save-screenshot-btn,
    .save-canvas-btn {
        padding: 14px 24px;
        font-size: 15px;
        min-width: 180px;
        width: 100%;
    }

    .save-screenshot-btn .icon,
    .save-canvas-btn .icon {
        font-size: 16px;
    }
}

/* Simple Modal for rect-btn, oval-btn, and cell-title elements */
.simple-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.simple-modal-overlay.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.simple-modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: 3px solid #d4af37;
}

.simple-modal-overlay.active .simple-modal-container {
    transform: scale(1);
}

.simple-modal-header {
    padding: 24px 28px 20px 28px;
    border-bottom: 2px solid #f0e68c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f5f5dc 0%, #deb887 100%);
    position: relative;
}

.simple-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c1810;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.simple-modal-close {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border: 2px solid #8b4513;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #2c1810;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.simple-modal-close:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    transform: scale(1.1);
}

.simple-modal-content {
    padding: 28px;
    flex: 1;
    overflow: auto;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.simple-modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c1810;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #f0e68c;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .simple-modal-container {
        margin: 10px;
        max-width: calc(100% - 20px);
        border-radius: 12px;
    }

    .simple-modal-header {
        padding: 20px 24px 16px 24px;
    }

    .simple-modal-title {
        font-size: 1.2rem;
    }

    .simple-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .simple-modal-content {
        padding: 24px;
    }

    .simple-modal-description {
        font-size: 1rem;
        padding: 16px;
    }
}

.container.kymon .center-buttons {
    display: none;
}

.container.cachcuc .rect-btn,
.container.cachcuc .oval-btn {
    display: none;
}

.container.cachcuc .cell-title {
    display: none;
}

.center-buttons>*:first-child {
    color: red;
}

.center-buttons>*:last-child {
    font-size: 14px;
    margin-top: 8px;
}

.right-buttons {
    flex-direction: column-reverse;
}

.cell-content {
    flex-direction: row-reverse;
}

.rect-btn.hide {
    display: none;
}

/* Screenshot mode styles */
.container.screenshot-mode {
    width: auto !important;
    max-width: none !important;
    overflow: hidden !important;
}

.container.screenshot-mode .main-grid {
    width: 100% !important;
    overflow: hidden !important;
}

.container.screenshot-mode .grid-cell {
    overflow: hidden !important;
    width: 100% !important;
    min-height: 220px !important;
    max-height: 220px !important;
}

.container.screenshot-mode .cell-content {
    overflow: hidden !important;
    flex-wrap: nowrap !important;
}

.container.screenshot-mode .left-buttons,
.container.screenshot-mode .right-buttons {
    overflow: hidden !important;
    max-height: 100% !important;
}

.container.screenshot-mode .has-new.left-buttons {
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

/* Ensure hidden elements don't interfere with screenshot */
.popup-overlay[style*="display: none"],
.simple-modal-overlay[style*="display: none"],
.screenshot-message[style*="display: none"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

.grid-cell[data-index="0"],
.grid-cell[data-index="3"] {
    border-left: 6px solid #228B22;
    background: #B2DD8D;
}

.grid-cell[data-index="0"] {
    border-top: 6px solid #228B22;
}

.grid-cell[data-index="1"] {
    border-top: 6px solid #FF0000;
    background: #ED8181;
}

.grid-cell[data-index="2"] {
    border-top: 6px solid #DEB887;
    border-right: 6px solid #DEB887;
    background: #E9CC70;
}

.grid-cell[data-index="6"] {
    border-bottom: 6px solid #DEB887;
    border-left: 6px solid #DEB887;
    background: #E9CC70;
}

.grid-cell[data-index="7"] {
    border-bottom: 6px solid #1E90FF;
    background: #85ADE9;
}

.grid-cell[data-index="8"] {
    border-bottom: 6px solid #C0C0C0;
    border-right: 6px solid #C0C0C0;
    background: #f4f4f4;
}

.grid-cell[data-index="5"] {
    border-right: 6px solid #C0C0C0;
    background: #f4f4f4;
}

.grid-cell.center {
    border: 6px solid #f56631;
}

.grid-cell[data-index="0"] *:is(.rect-btn, .oval-btn),
.grid-cell[data-index="3"] *:is(.rect-btn, .oval-btn) {
    background: #93fd9366;
}

.grid-cell[data-index="8"] *:is(.rect-btn, .oval-btn),
.grid-cell[data-index="5"] *:is(.rect-btn, .oval-btn) {
    background: #9c9c9c57;
}

.grid-cell[data-index="1"] *:is(.rect-btn, .oval-btn) {
    background: #ff000021;
}

.grid-cell[data-index="7"] *:is(.rect-btn, .oval-btn) {
    background: #1e8fff30;
}

.main-grid {
    background: url("{{ asset('kmdg/img/background.jpg') }}");
    background-size: cover;
    background-position: center;
}