* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", system-ui, sans-serif;
}
html{
    height: 100%;
}
body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    color: #ffffff;
    text-align: center;
    padding: 50px 20px 30px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    background: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
}
body.show{
    opacity: 1;
}
@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.bg-wrap{
    position: fixed;
    left:0;
    top:0;
    width:200%;
    height:100%;
    z-index:-2;
    animation: slideLeft 28s linear infinite;
    will-change: transform;
}
.bg-box1,.bg-box2{
    position:absolute;
    left:0;
    top:0;
    width:50%;
    height:100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
}
.bg-box2{
    left:50%;
}
.bg-wrap.clear .bg-box1,.bg-wrap.clear .bg-box2{
    filter: blur(0);
}
.mask{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.10);
    z-index: -1;
}
h1 {
    font-size: clamp(28px,5vw,38px);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
    margin-bottom: 24px;
    font-weight:600;
}
.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index:2;
}

.clock-outer {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.dot-clock-frame {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.25),
        0 0 24px rgba(120, 160, 255, 0.35);
    background: transparent;
    padding: 8px 12px;
}

#canvas {
    display: block;
}

#balls {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.button-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 560px;
    margin: 0 auto 40px;
}
.two-row {
    display: flex;
    justify-content: center;
    gap:14px;
    width:100%;
}
.two-row .nav-btn{
    flex:1;
}
.nav-btn {
    --dot-color: #ff5577;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding:12px 16px;
    border-radius:999px;
    font-size: clamp(15px,2.4vw,17px);
    font-weight: 700;
    color:#ffffff;
    text-decoration:none;
    white-space: nowrap;
    position: relative;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: none;
    transition: all 0.28 ease;
}
.nav-btn::before,
.nav-btn::after {
    content:"";
    position:absolute;
    width:18px;
    height:8px;
    background: var(--dot-color);
    border-radius:999px;
    transition: background 0.28s ease;
}
.nav-btn::before{
    left:-10px;
    top: 22%;
}
.nav-btn::after{
    right:-10px;
    top: 68%;
}
.nav-btn:hover::before {
    animation: flyLeft 0.45s ease-out forwards;
}
.nav-btn:hover::after {
    animation: flyRight 0.45s ease-out forwards;
}
.nav-btn:not(:hover)::before {
    animation: resetLeft 0.3s ease-out forwards;
}
.nav-btn:not(:hover)::after {
    animation: resetRight 0.3s ease-out forwards;
}
@keyframes flyLeft {
    0% { left: -10px;opacity:1;top:22%; }
    100% { left: -26px;opacity:1;top:22%; }
}
@keyframes flyRight {
    0% { right: -10px;opacity:1;top:68%; }
    100% { right: -26px;opacity:1;top:68%; }
}
@keyframes resetLeft {
    0% { left: -26px; opacity:1;top:22%; }
    100% { left: -10px; opacity:1; top:22%; }
}
@keyframes resetRight {
    0% { right: -26px; opacity:1;top:68%; }
    100% { right: -10px; opacity:1; top:68%; }
}
.nav-btn:hover{
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,1);
    transform: translateY(-3px);
}
.footer-text {
    color:rgba(255,255,255,0.85);
    font-size:15px;
    line-height:1.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
    margin-top: 10px;
    margin-bottom: 20px;
}
.loading-wrap{
    position: fixed;
    inset:0;
    background:#141422;
    z-index:9999;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    transition: opacity 0.4s ease;
}
.loading-wrap.hide{
    opacity:0;
    pointer-events:none;
}
.progress-box{
    width: 280px;
    height: 6px;
    background:rgba(255,255,255,0.15);
    border-radius:99px;
    overflow:hidden;
}
.progress-bar{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,#94a3ff,#c3b8ff);
    border-radius:99px;
    transition:width 0.08s linear;
}
.progress-text{
    margin-top:14px;
    font-size:16px;
    color:#e2e2ff;
}
