@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

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

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    background: linear-gradient(180deg, #ff4500 0%, #ff6a33 50%, #ffcc00 100%);
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    background-color: #fff5e6;
    border: 5px dashed #ff4500;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 10px 10px 0px #cc3700;
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    border: 4px solid #ff4500;
    margin-bottom: 10px;
    animation: wiggle 2s infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

h1 {
    color: #ff4500;
    font-size: 42px;
    text-shadow: 3px 3px 0px #ffcc00, -1px -1px 0px #cc3700;
    letter-spacing: 3px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
    font-style: italic;
}

.marquee-container {
    background-color: #ff4500;
    color: white;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.marquee {
    animation: marquee 15s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.stars {
    color: #ffcc00;
}

.instructions-box {
    background-color: #fff;
    border: 3px solid #ff4500;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.instructions-box h2 {
    color: #ff4500;
    font-size: 22px;
    margin-bottom: 15px;
    text-decoration: underline wavy #ffcc00;
}

.instructions-box ol {
    margin-left: 25px;
    color: #333;
}

.instructions-box li {
    margin-bottom: 8px;
    font-size: 15px;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    color: #ff4500;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 16px;
}

.required-tag {
    color: red;
    font-weight: bold;
}

.optional-tag {
    color: #999;
    font-weight: normal;
    font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #ff4500;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Comic Neue', cursive;
    background-color: #fff;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

input::placeholder {
    color: #ccc;
    font-style: italic;
}

.error-msg {
    color: #cc0000;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.disclaimer-box {
    background-color: #fff3cd;
    border: 2px solid #ff9900;
    border-radius: 10px;
    padding: 12px;
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #856404;
}

.disclaimer-box strong {
    color: #ff4500;
    font-size: 14px;
}

.captcha-box {
    background-color: #f0f0f0;
    border: 3px solid #999;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.captcha-box h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.captcha-challenge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-text {
    background: linear-gradient(45deg, #ff4500, #cc3700);
    color: white;
    padding: 10px 20px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 5px;
    border-radius: 8px;
    user-select: none;
    text-decoration: line-through;
    font-style: italic;
}

.refresh-btn {
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

.captcha-input {
    width: 200px !important;
    text-align: center;
    letter-spacing: 3px;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(180deg, #ff4500 0%, #cc3700 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 22px;
    font-weight: bold;
    font-family: 'Comic Neue', cursive;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 0 #993300;
    transition: all 0.1s;
}

.submit-btn:hover {
    background: linear-gradient(180deg, #ff6a33 0%, #ff4500 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #993300;
}

.submit-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #993300;
}

.submit-btn:disabled {
    background: #ccc;
    box-shadow: 0 5px 0 #999;
    cursor: not-allowed;
}

.visitor-counter {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background-color: #000;
    color: #00ff00;
    font-family: monospace;
    border-radius: 5px;
}

.footer {
    text-align: center;
    margin-top: 25px;
    color: #ff4500;
    font-size: 14px;
}

.footer a {
    color: #cc3700;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

.success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 5px solid #00cc00;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    max-width: 90%;
    width: 450px;
}

.success-popup h2 {
    color: #00cc00;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-popup button {
    margin-top: 20px;
    padding: 10px 30px;
    background: #ff4500;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Comic Neue', cursive;
    font-size: 16px;
}

.success-popup button:hover {
    background: #cc3700;
}

.video-preview-container {
    background-color: #000;
    border: 3px dashed #ff4500;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.video-preview-container video {
    width: 100%;
    max-height: 250px;
    display: block;
}

.popup-message {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.video-link-container {
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    display: none;
}

.video-link-container p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.video-link {
    color: #ff4500;
    font-size: 13px;
    word-break: break-all;
    font-family: monospace;
    text-decoration: underline;
}

.video-link:hover {
    color: #cc3700;
}

.channel-notice {
    color: #ff4500;
    font-weight: bold;
    font-size: 16px;
    background-color: #fff5e6;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #ffcc00;
}

.queue-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 5px solid #ffcc00;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    max-width: 90%;
    width: 400px;
}

.queue-popup h2 {
    color: #ff4500;
    font-size: 28px;
    margin-bottom: 10px;
}

.queue-icon {
    font-size: 48px;
    margin: 10px 0;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.queue-position {
    font-size: 18px;
    color: #333;
    margin: 15px 0 5px 0;
}

#queueNumber {
    color: #ff4500;
    font-weight: bold;
    font-size: 24px;
}

.queue-estimate {
    color: #666;
    font-size: 14px;
}

#queueWait {
    color: #ff4500;
    font-weight: bold;
}

.loading-bar {
    width: 100%;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    border: 2px solid #ccc;
}

.loading-bar-fill {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #ff4500, #ffcc00, #ff4500);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.queue-popup button {
    margin-top: 15px;
    padding: 10px 30px;
    background: #ffcc00;
    color: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Comic Neue', cursive;
    font-size: 16px;
    font-weight: bold;
}

.queue-popup button:hover {
    background: #ffd633;
}

.stats-section {
    max-width: 650px;
    margin: 30px auto;
    background-color: #1a1a1a;
    border: 4px solid #ff4500;
    border-radius: 20px;
    padding: 25px;
    color: white;
}

.stats-section h2 {
    text-align: center;
    color: #ff4500;
    margin-bottom: 20px;
    font-size: 24px;
}

.stats-section .stars {
    color: #ffcc00;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px dashed #ff4500;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #00ff00;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.stat-label {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    text-transform: uppercase;
}

.user-stats {
    background-color: #2a2a2a;
    border: 2px solid #ffcc00;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.user-stats h3 {
    color: #ffcc00;
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.user-stats-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #444;
    font-size: 14px;
}

.user-stats-row:last-child {
    border-bottom: none;
}

.user-stat-value {
    color: #00ff00;
    font-weight: bold;
    font-family: monospace;
}

.stats-disclaimer {
    text-align: center;
    color: #666;
    font-size: 11px;
    margin-top: 15px;
    font-style: italic;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
}
