* { box-sizing: border-box; }
body {
    margin: 0;
    background: #090704;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}
main {
    max-width: 853px;
    margin: auto;
    background: #080603;
    box-shadow: 0 0 65px #000;
    container-type: inline-size;
}
img { display: block; width: 100%; height: auto; }
.notice, #status {
    margin: 0;
    padding: 7px;
    text-align: center;
    color: #ffe5a2;
    font-size: 11px;
    letter-spacing: .5px;
}
.contact button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: filter .2s;
}
.contact button:hover, .contact button:focus-visible { filter: brightness(1.15); }
.contact button:active { filter: brightness(.9); }
.records {
    padding: 0 2% 3%;
    background: radial-gradient(ellipse at bottom, #9b5100, #130b03 45%, #030303 85%);
}
h1 {
    width: 76%;
    margin: 0 auto 2%;
    padding: .7% 1%;
    text-align: center;
    color: #130b00;
    font-size: 3.6cqw;
    font-weight: 900;
    font-style: italic;
    border-radius: 8px;
    background: linear-gradient(#fff0a4, #f5b522 50%, #ffe59a);
    box-shadow: 0 0 14px #ffb60080;
}
.screens {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5%;
    padding: 1.5%;
    border: 1px solid #ffdb82;
    border-radius: 3cqw;
    box-shadow: 0 0 18px #ffac00;
}
.screen {
    overflow: hidden;
    min-width: 0;
    aspect-ratio: .53;
    padding: 5%;
    border: 1px solid #ffd27a;
    border-radius: 2cqw;
    background: #fff;
    color: #161616;
    font-size: 1.25cqw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.screen strong { font-size: 1.2em; }
.screen small { color: #555; }
.trade { display: flex; justify-content: space-between; border-bottom: 1px solid #ddd; padding: 5% 0; }
.disclaimer {
    margin: 3% auto 0;
    width: fit-content;
    padding: 1% 3%;
    border: 1px solid #e6b849;
    border-radius: 30px;
    background: #090704;
    font-size: 2cqw;
    text-align: center;
}


/* Countdown component from Saiful demo */
/* Countdown: aligned to the original 1280 x 290 artwork. */
.clock {
    container-type: inline-size;
}

.digits {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.digits span {
    position: absolute;
    top: 44%;
    width: 13.5%;
    height: 37%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0c0a08, #090806);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10.3cqw;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
}

.digits span::before {
    content: attr(data-value);
    background: linear-gradient(180deg, #fff9e9 8%, #ffe8b9 42%, #e8b967 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 #a97836) drop-shadow(0 0 3px #d9a04b44);
}

.digits span {
    color: transparent;
    font-size: 10.3cqw;
}

.digits span::before {
    position: absolute;
}

#hours {
    left: 22.5%;
}

#minutes {
    left: 43.2%;
}

#seconds {
    left: 64.1%;
}

.countdown-demo-label {
    position: absolute;
    top: 3%;
    left: 2%;
    color: #ffe4a1;
    font-size: 1.6cqw;
    z-index: 1;
}

.clock { position: relative; }

.demo-floating {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 20px;
    border-radius: 50px;

    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

    color: white;
    font-size: 12px;
    white-space: nowrap;

    z-index: 99999;
    pointer-events: none;
}

.demo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    animation: demo-pulse 2s infinite;
}

.demo-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

@keyframes demo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
    .demo-dot {
        animation: none;
    }
}
