:root {
    --primary: #ffaa00;
    --grad-start: #ffcc00;
    --grad-end: #ff5500;
    --bg-main: #050506;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}

body {
    background-color: var(--bg-main);
    color: #ffffff;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 60px 20px 40px 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

.maintenance-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
}

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

.maintenance-logo-container {
    width: 180px;
    height: 180px;
    margin-bottom: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.maintenance-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
    padding: 0 20px;
    line-height: 1.4;
    max-width: 600px;
}

#app {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
}

#atom-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.main-wrapper {
    text-align: center;
    max-width: 1300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.time-widget {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(16, 16, 20, 0.6);
    border: 1px solid rgba(255, 170, 0, 0.15);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    backdrop-filter: blur(10px);
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.time-widget span {
    color: var(--primary);
    font-weight: 700;
}

.btn-roulette-trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 85, 0, 0.1) 100%);
    border: 1px solid rgba(255, 170, 0, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    backdrop-filter: blur(10px);
    z-index: 10;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(255, 85, 0, 0.05);
}

.btn-roulette-trigger:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 170, 0, 0.6);
    box-shadow: 0 12px 30px rgba(255, 85, 0, 0.2);
    color: #ffffff;
}

.logo-container {
    position: relative;
    margin-bottom: 25px;
    width: 160px;
    height: 160px;
    border-radius: 38px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.logo-container:hover {
    transform: scale(1.06) rotate(2deg);
    box-shadow: 0 0 40px rgba(255, 140, 0, 0.6);
}

.logo { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(255, 85, 0, 0.4));
    text-transform: uppercase;
}

.subtitle {
    color: #94a3b8;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    margin-bottom: 40px;
    justify-content: center;
}

.card {
    background: rgba(16, 16, 20, 0.9);
    border: 2px solid rgba(255, 183, 0, 0.2);
    border-radius: 28px;
    padding: 35px 20px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 183, 0, 0.5);
    box-shadow: 0 30px 60px rgba(255, 85, 0, 0.15);
}

.fabric-badge {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    display: block;
    text-align: center;
}

.card-version {
    font-size: 1.25rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: -5px;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 1px;
}

.file-type {
    color: var(--primary); 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 25px; 
    display: block;
}

.btn-download {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%;
    background: linear-gradient(135deg, var(--grad-start) 0%, #ff6600 100%);
    color: #080809; 
    text-decoration: none; 
    padding: 16px 20px; 
    border-radius: 14px;
    font-size: 1rem; 
    font-weight: 800; 
    letter-spacing: 0.5px; 
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.3);
    border: none;
    cursor: pointer;
}

.btn-download:hover { 
    transform: scale(1.03); 
    box-shadow: 0 12px 35px rgba(255, 85, 0, 0.5); 
}

.btn-mods {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--primary); 
    text-decoration: none; 
    padding: 12px 20px; 
    border-radius: 12px;
    font-size: 0.9rem; 
    font-weight: 700; 
    cursor: pointer;
}

.btn-mods:hover { 
    background: rgba(255, 170, 0, 0.1); 
    border-color: rgba(255, 170, 0, 0.6); 
    color: #ffffff; 
}

.fps-notice-box {
    width: 100%;
    max-width: 1300px;
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.08) 0%, rgba(255, 85, 0, 0.03) 100%);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 20px;
    padding: 18px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.fps-notice-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.fps-notice-text {
    font-size: 0.93rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.fps-notice-text strong {
    color: var(--grad-start);
}

.why-container {
    width: 100%;
    max-width: 1300px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.why-card {
    background: rgba(16, 16, 20, 0.85);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 22px;
    padding: 28px 22px;
    text-align: left;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.why-card:hover {
    border-color: rgba(255, 183, 0, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(255, 85, 0, 0.15);
}

.why-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--grad-start) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    line-height: 1.35;
    letter-spacing: 0.3px;
}

.why-card-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

.instruction-wrapper {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.instruction-anim-box {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    width: 100%;
    transition: grid-template-rows 0.4s ease-out, opacity 0.4s ease-out;
}

.instruction-anim-box.active {
    grid-template-rows: 1fr;
    opacity: 1;
}

.instruction-inner {
    overflow: hidden;
}

.instruction-content {
    background: rgba(16, 16, 20, 0.9);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 24px;
    padding: 30px;
    text-align: left;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin-top: 5px;
}

.instruction-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 170, 0, 0.2);
    padding-bottom: 15px;
}

.instruction-list {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 20px;
}

.instruction-list li {
    margin-bottom: 12px;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.bottom-links { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    width: 100%; 
    max-width: 500px; 
}

.pill-button {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 26px; 
    border-radius: 30px; 
    color: #94a3b8; 
    font-size: 0.95rem; 
    font-weight: 500; 
    backdrop-filter: blur(5px); 
    position: relative; 
    z-index: 3; 
    width: 100%;
    cursor: pointer;
}

.pill-button span { 
    color: var(--grad-start); 
    font-weight: 700; 
    margin-left: 5px; 
}

.pill-button:hover { 
    background-color: rgba(255, 183, 0, 0.04); 
    border-color: rgba(255, 183, 0, 0.3); 
    color: #ffffff; 
}

.site-disclaimer {
    margin-top: 30px;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    max-width: 700px;
    line-height: 1.5;
    opacity: 0.85;
    padding: 0 10px;
}

.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(3, 3, 4, 0.7); 
    backdrop-filter: blur(20px);
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    pointer-events: none; 
    will-change: opacity;
}

.modal-overlay.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.modal-window {
    background: rgba(18, 18, 24, 0.95); 
    border: 2px solid rgba(255, 170, 0, 0.25);
    border-radius: 32px; 
    width: 90%; 
    max-width: 650px; 
    max-height: 80vh;
    padding: 35px; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 30px 70px rgba(0,0,0,0.8);
    transform: scale(0.95); 
    will-change: transform;
}

.modal-overlay.active .modal-window { 
    transform: scale(1); 
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px; 
}

.modal-title { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #ffffff; 
}

.modal-title span { 
    color: var(--primary); 
}

.modal-close {
    background: rgba(255,255,255,0.04); 
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8; 
    font-size: 1.5rem; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
}

.modal-close:hover { 
    background: rgba(255, 85, 0, 0.2); 
    border-color: rgba(255, 85, 0, 0.4); 
    color: #ffffff; 
}

.search-container { 
    margin-bottom: 20px; 
    position: relative; 
}

.search-input {
    width: 100%; 
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 14px; 
    padding: 14px 20px; 
    color: #ffffff; 
    font-size: 1rem; 
    outline: none; 
    font-family: inherit;
}

.search-input:focus { 
    border-color: rgba(255, 170, 0, 0.6); 
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.15); 
}

.mods-list { 
    overflow-y: auto; 
    padding-right: 10px; 
    flex: 1; 
}

.mods-list::-webkit-scrollbar { width: 6px; }
.mods-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.mods-list::-webkit-scrollbar-thumb { background: rgba(255, 170, 0, 0.3); border-radius: 10px; }
.mods-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 170, 0, 0.6); }

.mod-category-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 170, 0, 0.2);
    padding-bottom: 5px;
}

.mod-category-title:first-child {
    margin-top: 5px;
}

.mod-item {
    background: rgba(255,255,255,0.01); 
    border: 1px solid rgba(255,255,255,0.03);
    padding: 14px 18px; 
    border-radius: 14px; 
    margin-bottom: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 4px;
}

.mod-item:hover { background: rgba(255,170,0,0.02); border-color: rgba(255,170,0,0.15); }
.mod-name { font-weight: 700; color: var(--grad-start); font-size: 1.1rem; }
.mod-desc { color: #94a3b8; font-size: 0.9rem; line-height: 1.4; }

.roulette-container {
    position: relative; 
    width: 100%; 
    max-width: 500px; 
    height: 110px;
    background: #0d0d11; 
    border: 2px solid rgba(255, 170, 0, 0.2);
    border-radius: 20px; 
    overflow: hidden; 
    margin: 20px auto;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.roulette-marker {
    position: absolute; 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%);
    width: 4px; 
    height: 100%; 
    background: var(--primary); 
    z-index: 10;
    box-shadow: 0 0 15px #ff5500; 
    pointer-events: none;
}

.roulette-tape {
    display: flex; 
    position: absolute; 
    left: 0; 
    top: 5px; 
    height: 100px;
    transform: translateX(0); 
    will-change: transform;
}

.roulette-item {
    flex-shrink: 0; 
    width: 140px; 
    height: 100px;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9), rgba(15, 15, 20, 0.95)); 
    border: 1px solid rgba(255, 170, 0, 0.15);
    border-radius: 14px; 
    margin: 0 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.roulette-version {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    line-height: 1.1;
}

.roulette-natrium {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.roulette-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 15px; }
.roulette-result-buttons { display: none; flex-direction: column; gap: 10px; width: 100%; }
.roulette-result-buttons.active { display: flex; }

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body { padding: 20px 15px 30px 15px; }
    
    .time-widget, .btn-roulette-trigger {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 10px auto;
        text-align: center;
    }

    .logo-container { width: 120px; height: 120px; margin-top: 15px; margin-bottom: 20px; }
    h1 { letter-spacing: 4px; }
    .subtitle { font-size: 1rem; margin-bottom: 30px; }
    
    .cards-grid { grid-template-columns: 1fr; gap: 15px; margin-bottom: 25px; width: 100%; }
    .card { padding: 25px 20px; width: 100%; }
    .card-title { font-size: 2.2rem; }
    
    .why-title { font-size: 1.8rem; }
    .why-grid { grid-template-columns: 1fr; }
    
    .fps-notice-box { padding: 15px; }
    
    .instruction-wrapper { margin-bottom: 30px; }
    .instruction-content { padding: 20px; }
    .instruction-title { font-size: 1.15rem; }
    .instruction-list { font-size: 0.95rem; }
    
    .maintenance-logo-container { width: 140px; height: 140px; margin-bottom: 25px; }
    .maintenance-text { font-size: 1.3rem; }
    
    .modal-window { width: 95%; padding: 20px; max-height: 85vh; }
    .modal-title { font-size: 1.4rem; }
    .roulette-container { height: 90px; }
    .roulette-item { height: 80px; width: 120px; }
    .roulette-version { font-size: 1.5rem; }
    .roulette-natrium { font-size: 0.75rem; margin-top: 4px; }
}
