/* CSS Reset & Body */
@font-face {
    font-family: 'UNArundathee';
    src: url('Fonts/UN-Arundathee.ttf') format('truetype');
}

@font-face {
    font-family: 'UNAlakamanda';
    src: url('Fonts/UN-Alakamanda.ttf') format('truetype');
}

@font-face {
    font-family: 'UNGurulugomi';
    src: url('Fonts/UN-Gurulugomi.ttf') format('truetype');
}

@font-face {
    font-family: 'UNSamantha';
    src: url('Fonts/UN-Samantha.ttf') format('truetype');
}

@font-face {
    font-family: 'UNDavasa';
    src: url('Fonts/UN-Davasa.ttf') format('truetype');
}

@font-face {
    font-family: 'UNBasuru';
    src: url('Fonts/UN-Basuru.ttf') format('truetype');
}

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

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    /* Pitch black for LED pop effect */
    font-family: 'UNSamantha', sans-serif;
}

/* Cinematic Intro Screen */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    cursor: pointer;
    transition: opacity 2s ease-in-out;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Images/intro_bg.png') center/cover no-repeat;
    opacity: 0.5;
    filter: brightness(0.4) contrast(1.2);
    transform: scale(1.05);
    /* Prevent edges */
}

.intro-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, #000000 100%);
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 50px 30px;
    background: rgba(10, 5, 0, 0.65);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(255, 150, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 650px;
    min-height: 250px;
}

.intro-text-block {
    position: absolute;
    width: 100%;
    opacity: 1;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    line-height: 1.6;
}

.intro-text-block.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

#introText1 .brand-text {
    font-family: 'Arial', sans-serif;
    font-size: 26px;
    color: #fca311;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

#introText1 .normal-text {
    font-family: 'UNAlakamanda', sans-serif;
    font-size: 32px;
    color: #dcdcdc;
    margin-bottom: 5px;
    display: inline-block;
}

#introText1 .title-text {
    font-family: 'UNGurulugomi', sans-serif;
    font-size: 55px;
    color: #ffd700;
    text-shadow: 0 5px 15px rgba(255, 215, 0, 0.3), 0 0 5px #ff8c00;
}

#introText2 .jathaka-text {
    font-family: 'UNSamantha', sans-serif;
    font-size: 60px;
    color: #ffd700;
    text-shadow: 0 5px 20px rgba(255, 215, 0, 0.4), 0 0 8px #ffaa00;
    margin-bottom: 5px;
    display: inline-block;
}

#introText2 .sub-text {
    font-family: 'UNAlakamanda', sans-serif;
    font-size: 30px;
    color: #cccccc;
}

.intro-instructions {
    margin-top: 15px;
    text-align: left;
    display: inline-block;
    font-family: 'UNDavasa', sans-serif;
}

.intro-instructions p {
    color: #e0e0e0;
    font-size: 30px;
    margin: 8px 0;
    line-height: 1.4;
    font-weight: normal;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.intro-instructions .highlight {
    color: #ffd700;
    font-size: 35px;
}

.click-to-continue {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 215, 0, 0.7);
    font-family: 'UNBasuru', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    z-index: 50;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Glassmorphism Overlay */
.ecard-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ecard-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Control Panel New Font UN-Samantha */
.control-panel h3,
.control-panel button {
    font-family: 'UNSamantha', sans-serif !important;
}

/*e-card New Font UN-Arundathee */
.ecard-modal-overlay,
.ecard-modal-content input,
.ecard-modal-content textarea,
.ecard-modal-content button,
.ecard-title,
.ecard-desc {
    font-family: 'UNSamantha', sans-serif !important;
}

/* Modal Content Box */
.ecard-modal-content {
    background: linear-gradient(145deg, #18181b, #0f0f11);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 1050px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.05);
    transform: translateY(30px) scale(0.95);
    /* Initial state for animation */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.ecard-modal-overlay.active .ecard-modal-content {
    transform: translateY(0) scale(1);
    /* Pop in animation */
}

/* Desktop Responsive Layout */
@media (min-width: 768px) {
    .ecard-modal-content {
        flex-direction: row;
        height: 80vh;
    }
}

/* --- Left Controls Section --- */
.ecard-controls {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 10px;
}

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

.ecard-title {
    margin: 0;
    color: #FFD700;
    font-size: 1.4rem;
    font-weight: bold;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: Arial, sans-serif !important;
    font-size: 2.5rem;
    color: #a1a1aa;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #fff;
}

.ecard-desc {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Form Controls */
.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    color: #d4d4d8;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: rgba(234, 179, 8, 0.15);
    border-color: #eab308;
    color: #fde047;
}

.change-img-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: #27272a;
    color: #d4d4d8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.change-img-btn.hidden {
    display: none;
}

.change-img-btn:hover {
    background: #3f3f46;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #3f3f46;
    color: #fff;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #eab308;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2);
}

textarea {
    resize: vertical;
    min-height: 70px;
    margin-top: 10px;
}

.preset-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.preset-btn {
    text-align: left;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    line-height: 1.4;
}

.preset-btn:hover {
    border-color: rgba(234, 179, 8, 0.4);
}

.preset-btn.active {
    background: rgba(234, 179, 8, 0.1);
    border-color: #eab308;
    color: #fde047;
}

/* Action Buttons */
.action-buttons {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    font-size: 1rem;
}

.action-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

.download-btn {
    background: #eab308;
    color: #422006;
}

.share-btn {
    background: #10b981;
    color: #fff;
}

/* --- Right Preview Section --- */
.ecard-preview {
    flex: 1.5;
    background: #000;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#ecardCanvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    /* Depth effect for canvas */
}

/* Responsive Styles for Intro Screen */
@media (max-width: 768px) {
    .intro-content {
        padding: 30px 15px;
        min-height: 200px;
    }

    #introText1 .brand-text {
        font-size: 18px;
        letter-spacing: 2px;
    }

    #introText1 .normal-text {
        font-size: 22px;
        line-height: 1.4;
    }

    #introText1 .title-text {
        font-size: 38px;
        line-height: 1.3;
        display: block;
        margin-top: 5px;
    }

    #introText2 .jathaka-text {
        font-size: 45px;
        line-height: 1.2;
        display: block;
    }

    #introText2 .sub-text {
        font-size: 24px;
        display: block;
        margin-top: 10px;
    }

    .intro-instructions {
        margin-top: 10px;
    }

    .intro-instructions p {
        font-size: 22px;
        margin: 5px 0;
    }

    .intro-instructions .highlight {
        font-size: 26px;
    }

    .click-to-continue {
        font-size: 18px;
        bottom: 15px;
    }
}

/* Fullscreen Canvas */
#pandlaCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    cursor: crosshair;
    /* Helps signal there's interaction */
}

/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: linear-gradient(135deg, #1a0a2a, #0a0f2a);
    border: 2px solid #ffcc00;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.5), inset 0 0 15px rgba(255, 204, 0, 0.2);
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffcc00;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
    color: #ff3333;
}

#storyTitle {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 24px;
    font-family: 'UNArundathee', sans-serif;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    border-bottom: 1px solid rgba(255, 204, 0, 0.3);
    padding-bottom: 10px;
}

.story-image-placeholder {
    width: 100%;
    height: 300px;
    background: #000;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#storyText {
    font-size: 16px;
    font-family: 'UNAlakamanda', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Custom Audio Player Styling */
.audio-wrapper {
    margin-top: 20px;
    width: 100%;
    background: rgba(15, 10, 25, 0.75);
    border-radius: 30px;
    padding: 6px 14px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9), 
                0 0 15px rgba(255, 204, 0, 0.2);
    border: 1px solid rgba(255, 204, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.custom-audio-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 48px;
    user-select: none;
    box-sizing: border-box;
}

/* Common Player Button Styles */
.player-btn {
    background: transparent;
    border: none;
    color: #ffcc00;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 6px;
    border-radius: 50%;
}

.player-btn svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 3px rgba(255, 204, 0, 0.5));
}

.player-btn:hover {
    color: #ffaa00;
    transform: scale(1.1);
    background: rgba(255, 204, 0, 0.08);
}

.player-btn:active {
    transform: scale(0.95);
}

/* Play/Pause Button Specific Styles */
.play-pause-btn {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle, #ffcc00 0%, #cc9900 100%);
    color: #000 !important;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.6), 
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
    padding: 0;
}

.play-pause-btn svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.play-pause-btn:hover {
    background: radial-gradient(circle, #ffe066 0%, #e6b800 100%);
    color: #000 !important;
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.9), 
                inset 0 2px 4px rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

/* Timeline/Progress Bar Styles */
.player-timeline-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-txt {
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 4px rgba(255, 204, 0, 0.4);
    min-width: 32px;
    text-align: center;
}

.player-timeline {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-timeline:hover {
    height: 8px;
}

.player-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffcc00 0%, #ff8800 100%);
    border-radius: 3px;
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 8px rgba(255, 136, 0, 0.7);
}

.player-handle {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid #ffaa00;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s, box-shadow 0.15s;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255, 204, 0, 0.8);
}

.player-timeline:hover .player-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Volume control Styles */
.player-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.volume-slider-wrapper {
    width: 0px;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.player-volume-wrapper:hover .volume-slider-wrapper,
.volume-slider-wrapper:hover,
.volume-slider:focus-within {
    width: 70px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffcc00;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(255, 204, 0, 0.8);
    transition: transform 0.1s;
    margin-top: -3px; /* centers the thumb vertically */
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.custom-audio-player .hidden {
    display: none !important;
}

/* Controls Panel */
.controls-panel {
    position: fixed;
    bottom: 60px;
    right: 24px;
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    backdrop-filter: blur(4px);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.controls-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px) scale(0.9);
}

.controls-header {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px 8px 8px;
    margin-bottom: 5px;
    cursor: pointer;
    user-select: none;
    border-radius: 6px 6px 0 0;
    transition: background-color 0.2s;
}

.controls-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.controls-header h3 {
    color: #aaa;
    font-size: 14px;
    text-transform: uppercase;
    margin: 0;
}

.minimize-btn {
    background: transparent !important;
    border: none !important;
    color: #ffcc00 !important;
    font-size: 14px !important;
    padding: 2px 8px !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimize-btn:hover {
    background: transparent !important;
    transform: scale(1.2);
}

/* Floating Controls Toggle Button */
.floating-controls-btn {
    position: fixed;
    bottom: 60px;
    right: 24px;
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid #ffcc00;
    color: #ffcc00;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 101;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 204, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'UNSamantha', sans-serif !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-controls-btn:hover {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}

.floating-controls-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

@media (max-width: 600px) {
    .controls-panel {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 60px;
    }
}

.controls-panel button {
    background: transparent;
    border: 1px solid #ffcc00;
    color: #ffcc00;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    font-family: inherit;
}

.controls-panel button:hover,
.controls-panel button.active {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

/* Custom Light Editor Styles */
.color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.color-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #3f3f46;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'UNSamantha', sans-serif !important;
    color: #fff;
    font-size: 16px;
}

.color-btn:hover {
    background: rgba(39, 39, 42, 1);
}

.color-btn.selected {
    background: #27272a;
    border-color: #52525b;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

/* Colors */
.c-blue {
    background: #3b82f6;
    border-color: #60a5fa;
}

.c-blue.glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

.c-yellow {
    background: #facc15;
    border-color: #fde047;
}

.c-yellow.glow {
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.8);
}

.c-red {
    background: #ef4444;
    border-color: #f87171;
}

.c-red.glow {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}

.c-white {
    background: #ffffff;
    border-color: #e5e7eb;
}

.c-white.glow {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.c-orange {
    background: #f97316;
    border-color: #fdba74;
}

.c-orange.glow {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.8);
}

.c-prabashwara {
    background: #d946ef;
    border-color: #f0abfc;
}

.c-prabashwara.glow {
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.8);
}

.c-green {
    background: #00d890;
    border-color: #87A96B;

}

.c-green.glow {
    box-shadow: 0 0 15px rgba(0, 216, 144, 0.8);
}

.c-pink {
    background: #ec4899;
    border-color: #f472b6;
}

.c-pink.glow {
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.8);
}

/* Lamp Counter */
.lamp-counter {
    position: fixed;
    top: 24px;
    left: 16px;
    z-index: 40;
    font-family: 'UNSamantha', sans-serif;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .lamp-counter {
        left: 24px;
    }
}

.lamp-counter-inner {
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(234, 179, 8, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lamp-counter-inner:hover {
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(234, 179, 8, 0.25);
    transform: translateY(-2px);
}

.lamp-label {
    color: rgba(234, 179, 8, 0.85);
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 2px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.lamp-count {
    font-size: 32px;
    font-weight: 800;
    color: #eab308;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.55);
}

.lamp-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(234, 179, 8, 0.5);
    background: rgba(202, 138, 4, 0.15);
    color: #eab308;
    font-family: 'UNSamantha', sans-serif !important;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lamp-btn:hover:not(:disabled) {
    background: rgba(202, 138, 4, 0.3);
    color: #fef08a;
    border-color: rgba(234, 179, 8, 0.7);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.lamp-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.lamp-btn:disabled {
    background: rgba(39, 39, 42, 0.4);
    border-color: rgba(63, 63, 70, 0.5);
    color: rgba(234, 179, 8, 0.55);
    cursor: not-allowed;
    opacity: 0.8;
}

/* Flame animation inside button */
.flame-icon {
    font-size: 16px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.lamp-btn:hover:not(:disabled) .flame-icon {
    transform: scale(1.25) rotate(-5deg);
    animation: flicker-key 0.5s alternate infinite ease-in-out;
}

@keyframes flicker-key {
    0% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1.3) rotate(5deg); }
}

/* Shimmer overlay effect */
.lamp-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.2), transparent);
    transition: none;
}

.lamp-btn:hover:not(:disabled)::after {
    animation: button-shimmer 1.5s infinite;
}

@keyframes button-shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Bottom Scrolling Marquee */
.marquee-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 204, 0, 0.25);
    color: #ffcc00;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 9999;
    font-family: 'UNSamantha', 'UNBasuru', sans-serif;
    pointer-events: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.marquee-container marquee {
    margin: 0;
    display: flex;
    align-items: center;
}