/* --- 全局和基础设置 --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Noto Serif SC', 'M PLUS Rounded 1c', sans-serif;
    color: #e0e0e0;
    overflow: hidden;
}

body {
    background: linear-gradient(160deg, #1d2b4b 0%, #0f101c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 背景粒子画布样式 --- */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* --- 游戏主容器 --- */
.game-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* --- 标题样式 --- */
.game-header h1 {
    font-family: 'ZCOOL KuaiLe', 'Noto Serif SC', sans-serif;
    font-size: 2.2rem;
    font-weight: normal;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(200, 225, 255, 0.7), 0 0 25px rgba(200, 225, 255, 0.5);
    margin: 40px 0;
}

/* --- 剧情文本容器 (使用图片边框) --- */
.story-box {
    /* 核心修改：使用border-image属性 */
    border-style: solid;
    border-width: 40px; /* 控制边框的“厚度”，需要多次尝试找到最佳值 */
    border-image: url('border.png') 50 stretch; /* 关键！加载图片作为边框 */
                                                /* 50是切割图片的数值，stretch是拉伸方式 */

    /* 内部纯透明 */
    background: transparent;

    /* 内边距，防止文字和边框重叠 */
    padding: 20px;
}

.story-panel p {
    font-size: 1.2rem;
    line-height: 2;
    color: #c5cae9;
    margin: 0;
    /* 为了让文字不那么显眼，可以适当降低透明度 */
    opacity: 0.8; 
}

/* --- 按钮通用样式 --- */
.btn {
    width: 100%;
    padding: 15px 0;
    font-size: 1.1rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-buttons {
    margin-bottom: 40px;
}

/* 针对小屏幕设备的微调 */
@media (max-height: 600px) {
    .game-header h1 {
        font-size: 2rem;
        margin: 20px 0;
    }
    .action-buttons {
        margin-bottom: 20px;
    }
}
