/* ==========================================================================
   Themed 2048 Games Stylesheet:
   - Chemistry (Periodic Laboratory)
   ========================================================================== */

/* Shared Image Tile Badge & Inner Styling */
.tile-theme-chemistry .tile-inner {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm, 6px);
}

.tile-corner-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    font-weight: 800;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: -0.02em;
    pointer-events: none;
    z-index: 5;
    font-family: var(--font-heading, inherit);
}

/* --------------------------------------------------------------------------
   CHEMISTRY (PERIODIC LABORATORY)
   -------------------------------------------------------------------------- */
.theme-chemistry .g2048-board-container {
    background: #081120 !important;
    border: 3px solid #06b6d4 !important;
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.4), inset 0 0 15px rgba(139, 92, 246, 0.25) !important;
}

.theme-chemistry .grid-cell {
    background: rgba(6, 182, 212, 0.07) !important;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.theme-chemistry .g2048-badge {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    font-weight: 800;
}

.chem-badge-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(8, 17, 32, 0.55) 0%, rgba(8, 17, 32, 0.75) 100%);
    backdrop-filter: blur(1px);
    z-index: 3;
    pointer-events: none;
    padding: 4px;
}

.chem-num {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: clamp(0.6rem, 1.8vw, 0.8rem);
    font-weight: 800;
    color: #38bdf8;
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.6);
}

.chem-symbol {
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(6, 182, 212, 0.8);
    letter-spacing: -0.02em;
}

.chem-name {
    font-size: clamp(0.55rem, 1.5vw, 0.75rem);
    font-weight: 700;
    color: #a5f3fc;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.95;
}

.tile-theme-chemistry .tile.tile-2 .tile-inner { background-image: url('../images/chemistry/2.jpg'); }
.tile-theme-chemistry .tile.tile-4 .tile-inner { background-image: url('../images/chemistry/4.jpg'); }
.tile-theme-chemistry .tile.tile-8 .tile-inner { background-image: url('../images/chemistry/8.jpg'); }
.tile-theme-chemistry .tile.tile-16 .tile-inner { background-image: url('../images/chemistry/16.jpg'); }
.tile-theme-chemistry .tile.tile-32 .tile-inner { background-image: url('../images/chemistry/32.jpg'); }
.tile-theme-chemistry .tile.tile-64 .tile-inner { background-image: url('../images/chemistry/64.jpg'); }
.tile-theme-chemistry .tile.tile-128 .tile-inner { background-image: url('../images/chemistry/128.jpg'); box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }
.tile-theme-chemistry .tile.tile-256 .tile-inner { background-image: url('../images/chemistry/256.jpg'); box-shadow: 0 0 20px rgba(139, 92, 246, 0.6); }
.tile-theme-chemistry .tile.tile-512 .tile-inner { background-image: url('../images/chemistry/512.jpg'); box-shadow: 0 0 25px rgba(236, 72, 153, 0.7); }
.tile-theme-chemistry .tile.tile-1024 .tile-inner { background-image: url('../images/chemistry/1024.jpg'); box-shadow: 0 0 30px rgba(56, 189, 248, 0.85); }
.tile-theme-chemistry .tile.tile-2048 .tile-inner { background-image: url('../images/chemistry/2048.jpg'); box-shadow: 0 0 35px rgba(6, 182, 212, 0.95); border: 2px solid #22d3ee; }
.tile-theme-chemistry .tile.tile-super .tile-inner { background-image: url('../images/chemistry/4096.jpg'); box-shadow: 0 0 40px rgba(139, 92, 246, 1); }

