#homePage {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    z-index: 10;
    width: min(520px, 90vw);
}

.title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--fg);
    user-select: none;
    opacity: 0;
    animation: slideUp 0.55s var(--ease) 0.05s forwards;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--panel);
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    opacity: 0;
    animation: slideUp 0.55s var(--ease) 0.14s forwards;
}

.search-wrap:focus-within {
    border-color: var(--line-3);
    background: rgba(22, 24, 42, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(139, 125, 212, 0.1);
}

.search-icon {
    flex-shrink: 0;
    color: var(--fg-3);
    transition: color 0.25s var(--ease);
}

.search-wrap:focus-within .search-icon { color: var(--fg); }

.search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--fg);
    font-size: 14px;
    font-weight: 400;
}

.search-field::placeholder { color: var(--fg-3); }

.links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.link-btn {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--fg-2);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
    opacity: 0;
    animation: slideUp 0.5s var(--ease) forwards;
}

.link-btn:nth-child(1) { animation-delay: 0.24s; }
.link-btn:nth-child(2) { animation-delay: 0.29s; }
.link-btn:nth-child(3) { animation-delay: 0.34s; }
.link-btn:nth-child(4) { animation-delay: 0.39s; }
.link-btn:nth-child(5) { animation-delay: 0.44s; }
.link-btn:nth-child(6) { animation-delay: 0.49s; }

.link-btn:hover {
    border-color: var(--line-3);
    color: var(--fg);
    background: rgba(200, 195, 230, 0.03);
    transform: translateY(-1px);
}

.link-btn:active { transform: translateY(0); }

.welcome-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 13, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    animation: slideDown 0.4s var(--ease) forwards;
}

.welcome-banner.hidden {
    display: none;
}

.welcome-content {
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.5s var(--ease) 0.1s forwards;
    opacity: 0;
}

.welcome-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fg);
    margin: 0 0 8px 0;
}

.welcome-decoration {
    width: 200px;
    height: 40px;
    margin: 12px auto 20px;
    display: block;
    color: var(--accent-2);
    animation: slideUp 0.6s var(--ease) 0.15s forwards;
    opacity: 0;
}

.welcome-desc {
    font-size: 24px;
    font-weight: 500;
    color: var(--fg-2);
    margin: 0 0 20px 0;
    letter-spacing: 0.3px;
}

.welcome-desc .highlight {
    color: var(--accent);
    font-weight: 600;
}

.welcome-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
    text-align: left;
}

.info-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.info-section p {
    font-size: 13px;
    color: var(--fg-2);
    margin: 0;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: var(--fg-2);
}

.tech-list li {
    padding: 2px 0;
    line-height: 1.5;
}

.welcome-ok-btn {
    margin-top: 24px;
    padding: 10px 24px;
    background: var(--accent);
    color: #05060d;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
    animation: slideUp 0.6s var(--ease) 0.3s forwards;
    opacity: 0;
}

.welcome-ok-btn:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
}

.welcome-ok-btn:active {
    transform: translateY(0);
}

.ab-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px 7px 9px;
    background: rgba(200, 195, 230, 0.05);
    border: 1px solid rgba(200, 195, 230, 0.12);
    border-radius: 8px;
    color: var(--fg-2);
    font-size: 11px;
    font-family: 'JetBrains Mono', 'Space Mono', monospace;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    z-index: 5;
}
.ab-btn:hover {
    background: rgba(200, 195, 230, 0.1);
    border-color: rgba(200, 195, 230, 0.2);
    color: var(--fg);
}
.ab-btn svg { opacity: 0.9; }

.online-widget.outer {
    width: 220px;
    height: 140px;
    border-radius: 14px;
    padding: 1px;
    background: radial-gradient(circle 200px at 0% 0%, rgba(200, 195, 230, 0.6), #0c0d0d);
    position: relative;
    margin: 28px auto 0;
}
.online-widget .dot {
    width: 5px;
    aspect-ratio: 1;
    position: absolute;
    background-color: #c9c1ff;
    box-shadow: 0 0 10px #c9c1ff;
    border-radius: 100px;
    z-index: 2;
    right: 10%;
    top: 10%;
    animation: onlineMoveDot 6s linear infinite;
}
@keyframes onlineMoveDot {
    0%, 100% { top: 10%; right: 10%; }
    25% { top: 10%; right: calc(100% - 25px); }
    50% { top: calc(100% - 22px); right: calc(100% - 25px); }
    75% { top: calc(100% - 22px); right: 10%; }
}
.online-widget .card {
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    border: solid 1px #1c1d2d;
    background: radial-gradient(circle 240px at 0% 0%, #2a2b3f, #0c0d12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    color: var(--fg);
    overflow: hidden;
}
.online-widget .ray {
    width: 180px;
    height: 38px;
    border-radius: 100px;
    position: absolute;
    background-color: #c9c1ff;
    opacity: 0.28;
    box-shadow: 0 0 50px #c9c1ff;
    filter: blur(10px);
    transform-origin: 10%;
    top: 0;
    left: 0;
    transform: rotate(40deg);
}
.online-widget .card .text {
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    background: linear-gradient(45deg, #2a2336 4%, #fff, #2a2336);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.online-widget .online-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-top: 6px;
}
.online-widget .line {
    width: 100%;
    height: 1px;
    position: absolute;
    background-color: #2c2c3a;
}
.online-widget .topl {
    top: 10%;
    background: linear-gradient(90deg, #6b6580 30%, #1d1f2f 70%);
}
.online-widget .bottoml { bottom: 10%; }
.online-widget .leftl {
    left: 10%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, #6b6580 30%, #22243a 70%);
}
.online-widget .rightl {
    right: 10%;
    width: 1px;
    height: 100%;
}
