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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid rgba(220, 38, 38, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    border-radius: 4px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

::-webkit-scrollbar-thumb:active {
    background: #b91c1c;
}

::-webkit-scrollbar-corner {
    background: #0a0a0a;
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #0a0a0a;
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: #0a0a0a;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 1rem;
}

/* Background Effects */
.bg-pattern {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.bg-text {
    position: fixed;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20vw;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.05em;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.bg-text-top {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.bg-text-bottom {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(220, 38, 38, 0.05);
}

/* Noise Overlay */
.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 3;
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.logo {
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 10vw, 4rem);
    letter-spacing: 0.1em;
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25em;
}

.logo-text span:first-child {
    color: #fff;
}

.logo-text span:last-child {
    color: #dc2626;
    font-style: italic;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-text {
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Main Title */
.title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 10vw, 5rem);
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
    word-wrap: break-word;
}

.title span {
    color: #dc2626;
    display: inline;
}

/* Description */
.description {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.85rem, 3vw, 1rem);
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
    max-width: 500px;
    padding: 0 0.5rem;
}

/* Offline Timer */
.offline-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    animation: fadeInUp 0.8s ease-out 0.55s backwards;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.offline-timer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dc2626, transparent);
}

.offline-prefix {
    color: #dc2626;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1rem, 4vw, 1.5rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.timer-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
}

.timer-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 8vw, 3rem);
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.timer-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.35rem;
}

/* Discord Button */
.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
    white-space: nowrap;
}

.discord-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.discord-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: clamp(0.6rem, 2vw, 0.75rem);
    letter-spacing: 0.05em;
    animation: fadeIn 1s ease-out 1s backwards;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 100%);
    z-index: 20;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
    }
    50% { 
        opacity: 0.5;
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
}

/* ==================== RESPONSIVE ==================== */

/* Tablets pequenos e celulares grandes */
@media (max-width: 600px) {
    body {
        padding: 0.75rem;
        padding-bottom: 4rem;
    }

    .container {
        padding: 1rem 0.5rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .status-badge {
        margin-bottom: 1rem;
    }

    .title {
        margin-bottom: 0.75rem;
    }

    .description {
        margin-bottom: 1.5rem;
    }

    .offline-timer {
        padding: 1rem 0.75rem;
        margin-bottom: 1.5rem;
    }

    .timer-display {
        gap: 0.4rem;
    }

    .timer-block {
        padding: 0.6rem 0.25rem;
    }
}

/* Celulares pequenos */
@media (max-width: 380px) {
    html {
        font-size: 14px;
    }

    body {
        padding: 0.5rem;
        padding-bottom: 3.5rem;
    }

    .container {
        padding: 0.75rem 0.25rem;
    }

    .logo-text {
        font-size: clamp(1.75rem, 12vw, 2.5rem);
    }

    .title {
        font-size: clamp(1.75rem, 11vw, 3rem);
    }

    .offline-timer {
        padding: 0.875rem 0.5rem;
        gap: 0.75rem;
    }

    .timer-display {
        gap: 0.3rem;
    }

    .timer-block {
        padding: 0.5rem 0.2rem;
        border-radius: 6px;
    }

    .timer-value {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }

    .timer-label {
        font-size: 0.5rem;
        margin-top: 0.25rem;
    }

    .discord-btn {
        padding: 0.75rem 1rem;
        width: 100%;
        max-width: 280px;
    }

    .footer {
        padding: 0.75rem;
    }
}

/* Desktops e telas grandes */
@media (min-width: 768px) {
    body {
        padding: 2rem;
    }

    .container {
        padding: 2rem;
    }

    .logo {
        margin-bottom: 2rem;
    }

    .status-badge {
        margin-bottom: 2rem;
        padding: 0.5rem 1.25rem;
    }

    .title {
        margin-bottom: 1.25rem;
    }

    .description {
        margin-bottom: 2.5rem;
    }

    .offline-timer {
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .timer-display {
        gap: 0.75rem;
    }

    .timer-block {
        padding: 1rem 1.25rem;
        min-width: 85px;
    }

    .discord-btn {
        padding: 1rem 2rem;
    }

    .footer {
        position: fixed;
        bottom: 1.5rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        background: transparent;
        padding: 0;
    }
}

/* Telas muito grandes */
@media (min-width: 1200px) {
    .container {
        max-width: 700px;
    }

    .offline-timer {
        max-width: 550px;
        padding: 2rem 2.5rem;
    }

    .timer-block {
        min-width: 100px;
        padding: 1.25rem 1.5rem;
    }

    .timer-value {
        font-size: 3.5rem;
    }
}

/* Landscape em celulares */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 0.5rem;
        padding-bottom: 3rem;
    }

    .container {
        padding: 0.5rem;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    .logo-text {
        font-size: 1.75rem;
    }

    .status-badge {
        margin-bottom: 0.5rem;
        padding: 0.35rem 0.75rem;
    }

    .title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }

    .offline-timer {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .offline-prefix {
        width: 100%;
        font-size: 0.9rem;
    }

    .timer-display {
        gap: 0.4rem;
    }

    .timer-block {
        padding: 0.5rem 0.75rem;
    }

    .timer-value {
        font-size: 1.5rem;
    }

    .timer-label {
        font-size: 0.5rem;
    }

    .discord-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .footer {
        padding: 0.5rem;
    }
}

/* Bloquear seleção de texto */
* {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Remover highlight azul no mobile */
* {
    -webkit-tap-highlight-color: transparent;
}