@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Noto Sans SC', sans-serif; background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); color: #fff; overflow: hidden; height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
#particles { position: absolute; top:0; left:0; width:100%; height:100%; z-index:1; will-change: transform; }
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: min(92vw, 560px);
    padding: 32px 22px 28px;
    border-radius: 20px;
    border: 1px solid rgba(0,255,204,0.28);
    background: linear-gradient(135deg, rgba(9,14,42,0.96), rgba(15,25,58,0.94));
    box-shadow: 0 18px 44px rgba(0,0,0,0.38), 0 0 10px rgba(0,255,204,0.10) inset;
}
.spinner {
    width: 112px;
    height: 112px;
    border: 8px solid rgba(255,255,255,0.26);
    border-top: 8px solid #00ffcc;
    border-right: 8px solid #00d8ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 22px;
    box-shadow: 0 0 26px rgba(0,255,204,0.26);
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.text {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    color: #ecffff;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
}
.text-main {
    font-size: 38px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.text-sub {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
    opacity: 0.92;
    letter-spacing: 0;
}
header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
header::-webkit-scrollbar { display: none; }
header > div:first-child {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(0,255,204,0.35);
    background: rgba(0,255,204,0.12);
    box-shadow: 0 0 12px rgba(0,255,204,0.18);
}
.nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}
.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    color: #eafcff;
    text-decoration: none;
    opacity: 1;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.nav a:hover,
.nav a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0,255,204,0.62);
    background: linear-gradient(90deg, rgba(0,255,204,0.20), rgba(0,204,255,0.18));
    box-shadow: 0 8px 22px rgba(0,255,204,0.22);
}
footer { position: absolute; bottom: 20px; width: 100%; text-align: center; font-size: 14px; opacity: 0.7; }
#modal { 
    display: none; 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); z-index: 100; 
    align-items: center; justify-content: center; 
}
.modal-content { 
    background: linear-gradient(135deg, #1a1a2e, #16213e); 
    padding: 40px 60px; border-radius: 20px; 
    text-align: center; max-width: 420px; 
    box-shadow: 0 20px 60px rgba(0,255,204,0.2); 
}
.modal-content h2 { font-size: 26px; margin-bottom: 20px; color: #00ffcc; }
.modal-content p { font-size: 18px; line-height: 1.6; margin: 0 0 30px; }

@media (max-width: 768px) {
    header { top: 10px; padding: 0 10px; gap: 8px; }
    header > div:first-child { font-size: 13px; padding: 6px 9px; }
    .nav { gap: 6px; }
    .nav a { font-size: 12px; padding: 6px 9px; }
    .container { width: min(94vw, 460px); padding: 24px 14px 20px; border-radius: 16px; }
    .spinner { width: 82px; height: 82px; margin-bottom: 14px; border-width: 6px; }
    .text { gap: 30px; }
    .text-main { font-size: 27px; line-height: 1.24; }
    .text-sub { font-size: 15px; line-height: 1.38; font-weight: 400; }
}
