/* ============ 乔游戏大厅 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #24402F; color: #333;
    user-select: none; -webkit-user-select: none;
}
.hall-bg {
    height: 100%; display: flex; flex-direction: column; align-items: center;
    padding-top: 7vh;
    background: linear-gradient(165deg, #35583B 0%, #2F5440 45%, #24402F 100%);
    color: #fff;
}
.hall-logo { width: 108px; height: 108px; }
.hall-logo canvas { width: 100%; height: 100%; }
.hall-title {
    font-family: "KaiTi", "STKaiti", serif;
    font-size: 40px; letter-spacing: 8px; margin-top: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hall-sub {
    font-family: "KaiTi", "STKaiti", serif;
    font-size: 14px; letter-spacing: 3px; color: #C9D8C4; margin: 8px 0 5vh;
}
.hall-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    width: 86%; max-width: 380px;
}
.game-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 8px 16px;
    background: linear-gradient(180deg, #D9A05B, #C98D4B 55%, #B87A3A);
    border: 1px solid #8A5A28; border-radius: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.game-card:active { transform: translateY(2px); filter: brightness(.95); }
.gc-ico { width: 86px; height: 86px; margin-bottom: 10px; }
.gc-name {
    font-size: 20px; font-weight: 700; letter-spacing: 4px;
    font-family: "KaiTi", "STKaiti", serif; color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.gc-desc { font-size: 11px; color: #F7E6C8; opacity: .9; margin-top: 5px; letter-spacing: 1px; }
.hall-foot {
    margin-top: auto; padding: 14px 0 calc(18px + env(safe-area-inset-bottom));
    display: flex; gap: 18px; align-items: center; color: #9DB899; font-size: 12px;
}
.link-btn { background: none; border: none; color: #C9D8C4; font-size: 14px; padding: 8px 12px; }

/* ---------- 弹窗 ---------- */
.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    display: none; align-items: center; justify-content: center; z-index: 50;
}
.modal.show { display: flex; }
.modal-box {
    width: 84%; max-width: 330px; background: #FBF7EF; border-radius: 16px;
    padding: 22px 20px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: #2E4636; }
.set-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 4px; border-bottom: 1px solid #EDE4D2; font-size: 15px;
    text-align: left;
}
.set-row.set-col span { line-height: 1.5; }
.set-row input {
    width: 130px; padding: 7px 10px; border: 1px solid #CDBFA5; border-radius: 8px;
    text-align: center; font-size: 13px; outline: none; background: #fff;
}
.switch {
    width: 46px; height: 26px; border-radius: 13px; border: none; background: #C5CFC2; position: relative;
}
.switch::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
    border-radius: 50%; background: #fff; transition: all .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.switch.on { background: #4E8D5B; }
.switch.on::after { left: 23px; }
.big-btn {
    display: block; width: 100%; margin-top: 18px; padding: 13px;
    background: linear-gradient(180deg, #4E8D5B, #3F7A4E);
    border: none; border-radius: 12px; color: #fff; font-size: 17px; font-weight: 600;
    box-shadow: 0 3px 6px rgba(0,0,0,.2);
}
.big-btn:active { filter: brightness(.92); }

#toast {
    position: fixed; left: 50%; bottom: 18%; transform: translateX(-50%) translateY(10px);
    background: rgba(40, 38, 34, .85); color: #F3EAD8; padding: 10px 22px;
    border-radius: 22px; font-size: 14px; opacity: 0; pointer-events: none;
    transition: all .25s; z-index: 99; max-width: 80%;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
