* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

.transition-logo {
    max-width: 300px;
    width: 80%;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.6));
}

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

.bg-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.bg-atmosphere::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 0%, rgba(255, 160, 107, 0.12) 0%, transparent 50%);
    filter: blur(80px);
}

.bg-atmosphere::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background-image: 
        radial-gradient(2px 2px at 15% 8%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 25% 15%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 35% 5%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 45% 20%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 55% 12%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 65% 18%, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 75% 8%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(255,255,255,0.9), transparent);
    background-size: 100% 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-header {
    width: 100%;
    text-align: center;
    padding-top: 80px;
    margin-bottom: 60px;
}

.logo {
    max-width: 650px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(255, 107, 157, 0.3));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 10px 50px rgba(255, 107, 157, 0.5));
}

.main-title, .page-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 25px;
    padding-top: 20px;
    background: linear-gradient(180deg, #ff8fb1 0%, #ff5e95 50%, #e91e6f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    filter: drop-shadow(0 8px 25px rgba(255, 107, 157, 0.5));
}

.page-title {
    font-size: 3.5rem;
    margin-top: 40px;
    margin-bottom: 40px;
}

.subtitle {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 80px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.countdown-wrapper {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-block {
    text-align: center;
    position: relative;
}

.countdown-block::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.7), transparent);
}

.count-val {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 5.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #d0d0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.2));
    transition: transform 0.2s ease;
}

.countdown-block:hover .count-val {
    transform: scale(1.05);
}

.count-label {
    color: #777;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 15px;
    letter-spacing: 3px;
}

.button-container, .button-wrapper {
    display: flex;
    gap: 25px;
    margin-bottom: 100px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.action-button, .back-button {
    display: inline-block;
    padding: 18px 45px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-button::before, .back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-button:hover::before, .back-button:hover::before {
    left: 100%;
}

.action-button:hover, .back-button:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.bluemap-button, .primary-button, .back-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow:
    0 10px 30px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bluemap-button:hover, .primary-button:hover, .back-button:hover {
    box-shadow:
    0 15px 40px rgba(59, 130, 246, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.shop-button, .primary-button, .back-button {
    background: linear-gradient(135deg, #ff8c42 0%, #c084fc 50%, #a855f7 100%);
    box-shadow:
    0 10px 30px rgba(255, 140, 66, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shop-button:hover, .primary-button:hover, .back-button:hover {
    box-shadow:
    0 15px 40px rgba(255, 140, 66, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.discord-button {
    background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
    box-shadow: 
        0 10px 30px rgba(88, 101, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.discord-button:hover {
    box-shadow: 
        0 15px 40px rgba(88, 101, 242, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 120px;
}

.info-block {
    text-align: left;
    padding: 0 20px;
}

.info-block h2 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
}

.info-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: currentColor;
    opacity: 0.7;
}

.color-blue {
    background: linear-gradient(180deg, #00d4ff 0%, #0091ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0, 145, 255, 0.4));
}

.color-purple {
    background: linear-gradient(180deg, #d946ff 0%, #9500c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(217, 70, 255, 0.4));
}

.color-orange {
    background: linear-gradient(180deg, #ffb347 0%, #ff7b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(255, 123, 0, 0.4));
}

.content-box h4 {
    font-size: 1.05rem;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #ddd;
    font-weight: 600;
}

.content-box h4:first-of-type {
    margin-top: 20px;
}

.info-block p {
    color: #bbb;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 18px;
    font-weight: 300;
}

.info-block p strong {
    color: #fff;
    font-weight: 600;
}

.info-block ul {
    list-style: none;
    margin-top: 20px;
}

.info-block li {
    color: #bbb;
    padding: 14px 0;
    padding-left: 25px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    font-weight: 300;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.info-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff6b9d, #ffa06b);
    border-radius: 50%;
}

.info-block li:hover {
    color: #fff;
    padding-left: 30px;
}

.info-block li:last-child {
    border-bottom: none;
}

.content-page {
    max-width: 900px;
    padding: 40px;
}

.content-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
}

.content-box h2 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff6b9d, #ffa06b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.content-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #ffa06b);
}

.content-box h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.content-box p {
    color: #bbb;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-value {
    color: #fff;
    font-size: 1.1rem;
}

.info-value a {
    color: #ff6b9d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #ffa06b;
}

.error-page {
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.error-code {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 12rem;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ff8fb1 0%, #ff5e95 50%, #e91e6f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 10px 30px rgba(255, 107, 157, 0.5));
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

.error-message {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 600px;
}

.suggestions {
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    max-width: 600px;
}

.suggestions h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.suggestions ul {
    list-style: none;
    text-align: left;
}

.suggestions li {
    padding: 12px 0;
    color: #bbb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 25px;
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestions li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff6b9d, #ffa06b);
    border-radius: 50%;
}

.suggestions a {
    color: #ff6b9d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.suggestions a:hover {
    color: #ffa06b;
}

.site-footer {
    width: 100%;
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.8) 0%, rgba(10, 10, 15, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-top: 2px solid rgba(255, 107, 157, 0.2);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.footer-left h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #ff6b9d, #ffa06b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-left p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ff6b9d;
}

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    min-width: 320px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

.toast.hiding {
    animation: slideOut 0.4s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b9d, #ffa06b);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.toast-message {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ffa06b);
    width: 100%;
    animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 968px) {
    .logo { max-width: 500px; }
    .main-title { font-size: 5rem; }
    .count-val { font-size: 4rem; }
    .grid-section { gap: 60px; }
    .info-block h2 { font-size: 2.2rem; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-right {
        text-align: left;
    }
    .footer-links {
        justify-content: flex-start;
    }
    .error-code {
        font-size: 8rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 30px; }
    .logo { max-width: 90%; }
    .main-title { font-size: 3.5rem; letter-spacing: 2px; }
    .page-title { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; }
    .count-val { font-size: 3rem; }
    .countdown-wrapper { gap: 30px; }
    .action-button, .back-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
    .button-container {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 400px;
    }
    .grid-section { 
        gap: 50px; 
        grid-template-columns: 1fr;
        text-align: center; 
    }
    .info-block { padding: 0; }
    .info-block h2::after { left: 50%; transform: translateX(-50%); }
    .site-footer { padding: 40px 20px; }
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    .toast-container {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }
    .toast {
        min-width: auto;
    }
    .content-page {
        padding: 20px;
    }
    .content-box {
        padding: 25px;
    }
    .error-code {
        font-size: 6rem;
    }
    .button-wrapper .back-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header { padding-top: 40px; }
    .main-title { font-size: 2.5rem; }
    .page-title { font-size: 2rem; }
    .count-val { font-size: 2.5rem; }
    .info-block h2 { font-size: 2rem; }
    .action-button, .back-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    .content-box {
        padding: 20px;
    }
    .error-code {
        font-size: 4.5rem;
    }
}
