:root {
    /* HEALTH Theme Parameters */
    --tbomb-bg: #f2fcf5; /* Soft, clean green tint */
    --tbomb-surface: #ffffff; /* Clean white */
    --tbomb-tone: #10b981; /* Fresh health green */
    --tbomb-tone-hover: #059669; /* Darker green */
    --tbomb-ink: #1f2937; /* Dark gray for text readability */
    
    /* Variable Fonts (Randomized Selection) */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Base configuration overrides */
html, body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preset A specific implementations */
.tbomb-top-band {
    border-bottom: 4px solid var(--tbomb-tone);
}

.tbomb-action-button:hover {
    background-color: var(--tbomb-tone-hover) !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5) !important;
}

.tbomb-opinion-log {
    border-radius: 12px;
}

/* Gallery CSS Implementation */
.tbomb-hidden-rad {
    display: none;
}

.tbomb-stage {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect */
    border-radius: 16px; /* Soft radius for images */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* Raised shadow */
    overflow: hidden;
}

.tbomb-slide {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding: 1rem;
    box-sizing: border-box;
}

/* Gallery Logic */
#tbg1:checked ~ .tbomb-stage .slide-1,
#tbg2:checked ~ .tbomb-stage .slide-2,
#tbg3:checked ~ .tbomb-stage .slide-3,
#tbg4:checked ~ .tbomb-stage .slide-4 {
    opacity: 1;
    z-index: 10;
}

.tbomb-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.tbomb-thumb-lbl {
    display: block;
    width: 70px;
    height: 70px;
    cursor: pointer;
    border-radius: 12px; /* Soft radius for thumbs */
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    background-color: var(--tbomb-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tbomb-thumb-lbl:hover {
    transform: translateY(-2px);
}

.tbomb-thumb-lbl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Active Thumbnail Logic */
#tbg1:checked ~ .tbomb-thumbs .lbl-1,
#tbg2:checked ~ .tbomb-thumbs .lbl-2,
#tbg3:checked ~ .tbomb-thumbs .lbl-3,
#tbg4:checked ~ .tbomb-thumbs .lbl-4 {
    border-color: var(--tbomb-tone);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tbomb-thumb-lbl {
        width: 60px;
        height: 60px;
    }
}