/* 1. 主界面 */
#home-view {
    justify-content: flex-start; /* 顶部对齐，配合 padding-top */
    align-items: center;
    text-align: center;
    padding: 25vh 20px 20px; /* 顶部向下 25% 开始，内容视觉中心约在 40% */
}

.logo-area {
    margin-bottom: 60px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #555, #000);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #fff, #ddd);
    border-radius: 50%;
    bottom: -10px;
    right: -10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

h1 {
    font-size: 32px;
    margin: 0 0 10px;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--text-sub);
    font-size: 14px;
    margin: 0;
}

.menu-buttons {
    width: 100%;
    max-width: 300px;
}

.tag {
    font-size: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
}

.footer {
    margin-top: auto; /* 在 flex 布局中推到底部 */
    padding-top: 20px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.app-version {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.35);
    user-select: none;
    justify-self: start;
    margin-left: 5vw;
}

.footer p {
    margin: 0;
    justify-self: center;
}

:root.theme-dark .footer {
    color: rgba(230, 237, 243, 0.45);
}

:root.theme-dark .app-version {
    color: rgba(230, 237, 243, 0.45);
}

/* 2. 设置界面 */
#setup-view {
    justify-content: center; /* 垂直居中 */
    padding-bottom: 15vh; /* 让内容视觉上偏上 */
}

#setup-view .action-area {
    margin-top: 30px; /* 取消 auto，让其跟随在内容下方 */
}

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    min-height: 44px;
    width: 100%;
}

.view-header h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 120px);
    max-width: calc(100% - 120px);
    text-align: center;
    margin: 0;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.action-area {
    margin-top: auto;
}

/* 3. 游戏界面 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    height: 50px;
    flex-shrink: 0; /* 防止被压缩 */
}

.game-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.game-footer {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding-top: 10px;
    flex-shrink: 0;
}
