:root {
    --bg-color: #000000;
    --text-primary: #ff0000;
    --text-secondary: #ffffff;
    --accent-color: #ff3333;
    --scan-line-color: rgba(255, 0, 0, 0.5);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 10px;
    /* Prevent edge touching on small screens */
}

.container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 2vh 0;
}

header {
    margin-bottom: 4vh;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #ffffff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #ccc;
    letter-spacing: 0.05em;
}

/* Timer Styles */
.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.time-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    background: rgba(20, 0, 0, 0.6);
    border: 1px solid rgba(255, 59, 48, 0.4);
    min-width: 90px;
}

.time-unit span[id] {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 800;
    color: #ff3b30;
    line-height: 1;
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    position: relative;
    text-shadow: 0 0 6px rgba(255, 59, 48, 0.5);
}

.label {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    margin-top: 0.35rem;
    color: #d0d0d0;
    letter-spacing: 0.2em;
}

.time-group:first-child .time-unit:first-child span[id] {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.time-group:first-child .time-unit:first-child .label {
    color: #ffffff;
}

.separator {
    font-size: clamp(2rem, 7vw, 4.5rem);
    color: #ff3b30;
    margin-top: 0;
    opacity: 1;
    animation: none;
    padding: 0 0.25rem;
}

.timer-message {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(20, 0, 0, 0.5);
}

/* Image Section */
.notice-section {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    border: 1px solid #333;
    padding: 5px;
    background: #050505;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
}

.notify-image {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(115%) grayscale(10%);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    opacity: 0.7;
    animation: scan 4s linear infinite;
    pointer-events: none;
}

.footer-warning {
    margin-top: 1rem;
    font-size: clamp(1rem, 4vw, 1.8rem);
    color: #fff;
    background-color: #900;
    padding: 1rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: warningBgFlash 1.5s infinite;
    border: 2px solid #f00;
}

/* Review Mobile Optimization specifically */
@media (max-width: 600px) {
    .container {
        padding: 1rem 0.5rem;
    }

    /* Stack the timer groups */
    .timer-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .time-unit span[id] {
        font-size: clamp(2.4rem, 14vw, 4.2rem);
    }

    .mobile-hide {
        display: none;
    }

    .time-group {
        justify-content: center;
        width: 100%;
        background: rgba(20, 0, 0, 0.3);
        padding: 0.5rem 0;
        border-radius: 8px;
        border: 1px solid #220000;
    }

    .subtitle {
        margin-bottom: 1rem;
    }

    .timer-message {
        margin-bottom: 1.5rem;
    }
}

/* Animations */
@keyframes pulse {
    from {
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 2px 2px 0px rgba(100, 0, 0, 1);
        transform: scale(1);
    }

    to {
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.9), 2px 2px 0px rgba(100, 0, 0, 1);
        transform: scale(1.02);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

@keyframes scan {
    0% {
        top: -5%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 105%;
        opacity: 0;
    }
}

@keyframes warningBgFlash {

    0%,
    100% {
        background-color: #900;
        color: #fff;
        border-color: #f00;
    }

    50% {
        background-color: #000;
        color: #f00;
        border-color: #900;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Comment Section Styles */
.comments-section {
    margin-top: 3rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #333;
    background: rgba(10, 0, 0, 0.8);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.comments-section h3 {
    background-color: #200;
    color: #f55;
    padding: 10px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #400;
    margin: 0;
}

.marquee-container {
    height: 400px;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0) 10%,
            rgba(0, 0, 0, 0) 90%,
            rgba(0, 0, 0, 1) 100%);
    /* Fade effect top/bottom */
}

.marquee-content {
    padding: 10px 0;
    animation: scrollUp 30s linear infinite;
}

.marquee-container:hover {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-container.is-paused {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.marquee-container.is-paused .marquee-content {
    animation-play-state: paused;
}

.marquee-container.is-stopped-mobile {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.marquee-container.is-stopped-mobile .marquee-content {
    animation: none;
    transform: none;
}

.comment-item {
    padding: 8px 15px;
    color: #ccc;
    font-size: 1rem;
    border-bottom: 1px dashed #222;
    text-align: left;
    line-height: 1.5;
}

.comment-item:nth-child(odd) {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
        /* Move up by half the height (original content height) assuming duplication */
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .comments-section {
        margin-top: 2rem;
        width: 95%;
    }
}

.submit-wrapper {
    margin: 1.5rem 0 2.5rem;
    display: flex;
    justify-content: center;
}

.submit-btn {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border-radius: 999px;
    display: inline-block;
    z-index: 10;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 0, 0, 0.6);
    background: linear-gradient(135deg, #ff4d4d 0%, #e60000 100%);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Add a scan/sheen effect */
.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.submit-btn:hover::after {
    left: 100%;
}

.legal-footer-link {
    margin: 1rem 0 0;
    text-align: center;
}

.legal-link-button {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

.legal-link-button:hover {
    color: #bbb;
}

.disclaimer-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.disclaimer-modal.active {
    display: flex;
}

.disclaimer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.disclaimer-dialog {
    position: relative;
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: #fdfdfd;
    color: #333;
    border-radius: 8px;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1;
    font-size: 0.85rem;
    line-height: 1.6;
}

.disclaimer-dialog h2 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.disclaimer-dialog p {
    margin-bottom: 8px;
}

.disclaimer-copy {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #777;
}

.disclaimer-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
}

.disclaimer-close:hover {
    color: #666;
}
