
/* --- Main Container --- */
.custom-embed-timer {
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0 auto;
    font-family: var(--font-sans, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

.custom-embed-timer h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: var(--ui-fs-display);
    font-family: var(--font-display, Georgia, serif); 
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #8c7b50; 
    border-bottom: 1px solid rgba(140, 123, 80, 0.3);
    padding-bottom: 10px;
}

/* --- Wheel Mechanics & Aesthetics --- */
.custom-embed-timer .wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
    background: #1a1b1d; 
    padding: 20px 15px;
    border-radius: 6px;
    border: 2px solid #3a3b3d;
    box-shadow: inset 0 8px 20px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,0.2); 
}

.custom-embed-timer .wheel-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.custom-embed-timer .wheel-label {
    font-size: var(--ui-fs-label);
    color: #a3956d;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.custom-embed-timer .wheel-viewport {
    width: 70px;
    height: 120px; 
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    position: relative;
    background: #111;
    border: 1px solid #000;
    border-radius: 4px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 45%, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 45%, black 55%, transparent 100%);
    scroll-behavior: smooth; 
}

.custom-embed-timer .wheel-viewport.locked { pointer-events: none; }
.custom-embed-timer .wheel-viewport::-webkit-scrollbar { display: none; }

/* The targeting reticle lines */
.custom-embed-timer .wheel-block::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    right: -8px;
    height: 40px;
    margin-top: -12px;
    border-top: 1px solid rgba(255, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 0, 0, 0.4);
    pointer-events: none; 
    z-index: 10;
}

.custom-embed-timer .wheel-item {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    font-variant-numeric: tabular-nums;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: var(--ui-fs-display);
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3); 
}

.custom-embed-timer .wheel-item:active { cursor: grabbing; }

/* Active Center Number Styling */
.custom-embed-timer .wheel-item-center {
    color: #d12a2a; 
    font-weight: 800;
    font-style: italic;
    font-family: var(--font-mono, ui-monospace, monospace); 
    font-size: var(--ui-fs-display); 
    text-shadow: 0 0 8px rgba(209, 42, 42, 0.6);
}

/* Pulsing animation when running */
@keyframes lockdownPulse {
    0% { text-shadow: 0 0 8px rgba(209, 42, 42, 0.6); transform: scale(1); }
    50% { text-shadow: 0 0 15px rgba(209, 42, 42, 0.9), 0 0 30px rgba(209, 42, 42, 0.4); transform: scale(1.05); }
    100% { text-shadow: 0 0 8px rgba(209, 42, 42, 0.6); transform: scale(1); }
}

.custom-embed-timer .locked .wheel-item-center {
    animation: lockdownPulse 1s infinite alternate; 
    color: #ff3333; 
}

.custom-embed-timer .wheel-spacer { height: 40px; }

/* --- Button & Status Text --- */
.custom-embed-timer button {
    padding: 12px 20px;
    font-size: var(--ui-fs-value);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #a3905c 0%, #7a6a42 100%);
    color: #1a1a1a;
    border: 1px solid #52472c;
    border-radius: 4px;
    cursor: pointer;
    width: 80%; 
    margin: 0 auto;
    display: block;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.1s linear;
}

.custom-embed-timer button:hover {
    background: linear-gradient(to bottom, #b5a26d 0%, #8c7b50 100%);
}

.custom-embed-timer button:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
}

.custom-embed-timer .status {
    margin-top: 15px;
    color: #8c7b50;
    font-size: var(--ui-fs-value);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}