/* Tidings Labs - Fireworks celebrations */

* {
    box-sizing: border-box;
}

#stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.celebration-widget {
    position: fixed;
    bottom: 20px;
    right: 46.5%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ui {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #000;
}

.ui h1 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: 0.5px;
}

.ui p {
    margin: 0 0 28px;
    opacity: 0.75;
    font-size: 14px;
}

#celebrate-btn {
    position: relative;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    overflow: visible;
    transition: transform 120ms ease, filter 200ms ease;
}

#celebrate-btn .celebrate-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: visible;
    filter: drop-shadow(0 10px 26px rgba(198, 11, 30, 0.25));
}

#celebrate-btn img {
    display: block;
    height: 85px;
    width: auto;
    max-width: 60vw;
}

#celebrate-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

#celebrate-btn:hover .celebrate-box {
    filter: drop-shadow(0 14px 32px rgba(198, 11, 30, 0.45));
}

#celebrate-btn:active {
    transform: translateY(0px) scale(0.97);
}

#celebrate-btn.pulse {
    animation: pulse 700ms ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 40px rgba(0, 0, 0, 0);
    }
}

.trophy {
    font-size: 20px;
    margin-right: 8px;
}

.flag-editor {
    position: relative;
    z-index: 5;
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(0, 0, 0, 0.7);
    font-size: 12px;
}

.flag-editor-label {
    opacity: 0.8;
    letter-spacing: 0.3px;
}

.stripe-field {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 5px 8px;
}

.stripe-field input {
    width: 74px;
    border: none;
    outline: none;
    background: transparent;
    color: #000;
    font-size: 12px;
    font-family: "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.4px;
}

.stripe-field input.invalid {
    color: #ff8b8b;
}

.swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.click-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    white-space: nowrap;
    background: #AD1519;
    color: #FFFFFF;
    padding: 4px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
}

.click-count:empty {
    display: none;
}

#hint {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 12px;
    z-index: 5;
}