* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: none;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px;
}

.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 100px;
    background-color: transparent;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.page.active {
    display: block;
}

/* 登录页面：纯白背景（无图、无蓝） */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #ffffff !important;
    background-image: none !important;
    padding: 0;
    margin: 0;
}
body.login-page::before {
    display: none !important;
}

body.login-page .bottom-nav {
    display: none !important;
}

/* 通用：设置 / 账号安全 等简单卡片页面 */
body.simple-page {
    background-image: none !important;
    background-color: #e5f3ff !important;
}
.simple-page .page-header {
    background-color: #e5f3ff;
    border-bottom: none;
}
.simple-page .page-shell {
    padding: 16px;
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
}
.simple-page .page-inner-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eaecef;
    padding: 4px 0;
}
.settings-list {
    display: flex;
    flex-direction: column;
}
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 15px;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
}
.settings-item:last-child {
    border-bottom: none;
}
.settings-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.settings-item-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #111827;
}
.settings-item-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 关于我们 tab 样式 */
.about-tabs {
    display: flex;
    gap: 10px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 999px;
    margin: 4px 12px 12px;
}
.about-tab {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 8px 0;
    font-size: 14px;
    background: transparent;
    color: #4b5563;
}
.about-tab.active {
    background: #111827;
    color: #ffffff;
}
.about-content {
    padding: 12px 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
}
.about-content p {
    margin-bottom: 8px;
}
.settings-item-text {
    white-space: nowrap;
}
.settings-item-text-group .settings-item-text {
    font-size: 14px;
    margin-bottom: 2px;
}
.settings-item-sub {
    font-size: 13px;
    color: #6b7280;
    word-break: break-all;
}
.settings-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.settings-item-status-danger {
    font-size: 13px;
    color: #ef4444;
}
.settings-item-link {
    font-size: 13px;
    color: #2563eb;
}
.settings-item-arrow {
    font-size: 13px;
    color: #9ca3af;
}
.settings-item-extra {
    font-size: 13px;
    color: #6b7280;
}
.settings-item-copy {
    font-size: 15px;
    cursor: pointer;
}
.settings-item-edit {
    font-size: 15px;
    cursor: pointer;
}

/* 账号与安全：轻提示 & 昵称弹层 */
.sec-toast {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.sec-toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}
.sec-dialog {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.sec-dialog-box {
    width: 80%;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.sec-dialog-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}
.sec-dialog-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}
.sec-dialog-input:focus {
    border-color: #2563eb;
}
.sec-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.sec-btn {
    min-width: 68px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.sec-btn-ghost {
    background: #fff;
    border-color: #e5e7eb;
    color: #374151;
}
.sec-btn-primary {
    background: #2563eb;
    color: #fff;
}

/* 游戏大厅：维护中提示 */
.gamehall-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 18px;
    background: rgba(0,0,0,0.86);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.gamehall-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}
.btn-logout-primary {
    display: block;
    width: 90%;
    max-width: 520px;
    margin: 24px auto 0;
    padding: 12px 0;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #2484ff, #00b3ff);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}
body.simple-page .page-footer,
body.simple-page .bottom-nav,
body.simple-page .recharge-center-btn {
    display: none !important;
}

/* 游戏页筹码弹窗：点击 Bet 按钮时，把底部筹码区域“弹出”成窗口 */
.betting-footer.chips-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 70px; /* 避开底部导航 */
    z-index: 1200;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}
.betting-footer.chips-popup .bet-amount-section {
    background: rgba(0, 0, 0, 0.92);
}
.chips-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
}

/* 游戏大厅页：使用浅色背景，避免全局背景图影响 */
body.gamehall-page {
    background-image: none !important;
    background-color: #f5f7fb !important;
}

.gamehall-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #f5f7fb;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-bottom: 1px solid #eef1f6;
    /* 让 Logo 真正居中（不受右侧余额影响） */
    position: relative;
}
.gamehall-topbar-left {
    min-width: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: calc(100% - 140px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gamehall-topbar-left .gold-title {
    font-size: 16px;
    line-height: 1.1;
    display: inline-block;
}
.gamehall-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.gamehall-balance-label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}
.gamehall-balance-amount {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}
.gamehall-balance-btn {
    border: none;
    background: transparent;
    padding: 2px 4px;
    cursor: pointer;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gamehall-balance-btn:active { transform: scale(0.92); }

.login-container {
    width: 92%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 登录卡片：整块在框内（含 logo），边框+阴影 */
.login-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 22px 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.login-header {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.login-logo-wrap {
    margin: 0 auto 10px;
    text-align: center;
}
.login-logo-img {
    display: block;
    max-width: 160px;
    max-height: 120px;
    width: auto;
    height: auto;
    margin: 0 auto;
}
.login-title-main {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}
.login-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.auth-form {
    display: none;
    width: 100%;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-input-wrap {
    position: relative;
}
.form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.form-input-icon svg {
    width: 18px;
    height: 18px;
    stroke: #9ca3af;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.form-input {
    width: 100%;
    padding: 13px 44px 13px 40px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background-color: #f9fafb;
    color: #111827;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #1677ff;
    background-color: #ffffff;
}

/* select 下拉框：保证文字完整显示，不被裁切 */
select.form-input {
    height: auto;
    min-height: 44px;
    padding: 10px 32px 10px 12px;
    line-height: 1.5;
    appearance: auto;
    -webkit-appearance: menulist;
    color: #000000;
    background-color: #ffffff;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-message {
    min-height: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: center;
    color: #ff5252;
}

.login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin: 6px 2px 16px;
}
.login-remember-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.login-remember-left input[type="checkbox"] {
    width: 14px;
    height: 14px;
}
.login-forgot-link {
    color: #1677ff;
    text-decoration: none;
}
.login-forgot-link:active {
    opacity: 0.8;
}

/* 登录页按钮：胶囊形（左右半圆）、纯色灰紫、白字、柔和阴影 */
body.login-page .btn-login {
    width: 100%;
    padding: 14px 24px;
    background: #7c7f8c;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
}
body.login-page .btn-login.filled {
    background: #1677ff;
    box-shadow: 0 4px 14px rgba(22, 119, 255, 0.35);
}

body.login-page .btn-register {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.form-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 13px;
    color: #6b7280;
}

.form-switch-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-switch a {
    color: #1677ff;
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:active {
    opacity: 0.7;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-buttons button,
.auth-form button {
    padding: 16px 32px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 8px;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 主按钮：与提款页「确认」一致，任何页面使用 .btn-login 都统一此样式 */
.btn-login {
    display: block;
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #0099cc;
    color: #ffffff;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
}

.btn-login:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-register {
    background: #d32f2f;
    color: #ffffff;
}

.btn-service {
    background: #f57c00;
    color: #ffffff;
}

.login-buttons button:active,
.auth-form button:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Home页面 */
.top-banner {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.banner-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    position: relative;
    overflow: hidden;
}

.banner-image::before {
    content: '🎰 🎲 🎯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
}

.bell-dropdown {
    position: fixed !important;
    right: 8px !important;
    top: 56px !important;
    z-index: 20000 !important;
}

/* 照片轮播样式 */
#photoSlider {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.photo-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.photo-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.photo-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.photo-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.photo-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.photo-slider-dots .dot.active {
    background-color: #00d4ff;
    width: 20px;
    border-radius: 4px;
}

.photo-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s;
    user-select: none;
}

.photo-slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

.photo-slider-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.photo-slider-nav.prev {
    left: 10px;
}

.photo-slider-nav.next {
    right: 10px;
}

.photo-slider-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #0a1628;
    padding: 20px;
    text-align: center;
}

.photo-slider-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.photo-slider-placeholder .placeholder-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.photo-slider-placeholder .placeholder-hint {
    font-size: 12px;
    opacity: 0.8;
}

.banner-bar {
    background-color: #f5f5f5;
    padding: 10px;
    overflow: visible;
}

.banner-text {
    white-space: nowrap;
    font-size: 18px;
    text-align: center;
}

.banner-text-center {
    width: 100%;
    text-align: center;
}

/* 铃铛固定在最上层，不占横幅内 */
.notification-bell-fixed {
    position: fixed;
    right: 12px;
    top: 16px;
    z-index: 99999;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

/* 顶部「金沙娱乐 | Marina Bay Sands Club」金色闪耀文字 */
.gold-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(120deg,#d3b134 0%,#8f7e4d 25%,#d7af72 50%,#ffe89a 75%,#e2b645 100%);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow:
        0 1px 0 #edbb65,
        0 2px 4px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.gold-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.9) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: gold-shine 3s infinite;
}

/* 金沙 logo 走动：左右来回滑动 */
.gold-title-animate {
    animation: gold-title-walk 4s ease-in-out infinite;
    display: inline-block;
}
@keyframes gold-title-walk {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(8px); }
    75%      { transform: translateX(-8px); }
}

@keyframes gold-shine {
    0%   { left: -150%; }
    60%  { left: 150%; }
    100% { left: 150%; }
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.user-info-bar {
    background-color: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.user-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance {
    color: #111a1c;
    font-weight: 600;
    font-size: 14px;
}

/* 首页卡片余额样式 */
.home-card-balance {
    color: #232323;
    font-weight: 700;
    font-size: 22px;
}

/* 全站通用提示气泡（银行管理等用），风格与下注成功气泡保持一致 */
.app-toast-container {
    position: fixed;
    right: 12px;
    bottom: 72px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
.app-toast {
    min-width: 200px;
    max-width: 320px;
    background: rgba(17, 24, 39, 0.96);
    color: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    padding: 10px 12px 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}
.app-toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.app-toast-content { flex: 1; }
.app-toast-main { font-weight: 600; }
.app-toast-sub {
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.9;
}
.app-toast-close {
    border: none;
    background: transparent;
    color: rgba(249,250,251,0.8);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

/* 首页顶部卡片：文字版眼睛图标 */
.home-eye-icon {
    display: inline-block;
    width: 20px;
    height: 12px;
    border-radius: 50% / 60%;
    border: 2px solid #b0b5c6;
    position: relative;
    box-sizing: border-box;
}

.home-eye-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2px;
    background-color: #b0b5c6;
    transform: translate(-50%, -50%) rotate(35deg);
    border-radius: 1px;
    display: none; /* 默认不显示斜杠，只在闭眼时显示 */
}

.home-eye-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -3px;
    border-radius: 50%;
    background-color: #b0b5c6;
}

/* 余额被屏蔽时，显示带斜杠的眼睛（保留瞳孔） */
.home-eye-icon.closed::before {
    display: block; /* 屏蔽时显示斜杠 */
}

.user-info-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.user-info-right a,
.info-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-right a:hover,
.info-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-info-right a:active,
.info-link:active {
    opacity: 0.7;
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.15);
}

.info-link .link-icon {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.info-link .link-icon img {
    width: 71px;
    height: 71px;
    object-fit: contain;
    display: block;
}

.info-link .link-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* 特定链接样式 */
.recharge-link {
    color: #4caf50;
}

.recharge-link .link-icon {
    font-size: 17px;
}

.withdraw-link {
    color: #ff9800;
}

.withdraw-link .link-icon {
    font-size: 17px;
}

.account-link {
    color: #00d4ff;
}

.account-link .link-icon {
    font-size: 17px;
}

/* 首页四个功能框 */
.home-boxes {
    padding: 16px;
    background-color: #ffffff;
}

.home-box {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.home-box:active {
    transform: scale(0.95);
    background-color: #e0e0e0;
}

.box-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.box-title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

/* 游戏选择区域 */
.game-selection {
    padding: 20px 16px;
    background-color: #ffffff;
}

/* 首页游戏图标：一排 2 个（不左右滑动） */
.game-selection .game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    overflow: visible;
}

.game-selection .game-item {
    flex: initial;
}

/* 首页游戏 logo 单独放大（在全局基础上再 +50 像素左右） */
.game-selection .game-icon {
    width: 170px;
    height: 170px;
}

/* 首页视频区域 */
.home-video-wrapper {
    padding: 16px;
    background-color: #ffffff;
}

.home-video-inner {
    max-width: 640px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #1a2a3a;
}

.home-video-iframe {
    width: 100%;
    height: 360px;
    border: none;
    display: block;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.game-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px;
    border-radius: 8px;
}

.game-item:active {
    transform: scale(0.95);
    background-color: rgba(0, 212, 255, 0.1);
}

.game-icon {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.game-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

/* 当图片加载失败时，隐藏图片 */
.game-icon-image[style*="display: none"] {
    display: none !important;
}

.game-icon-fallback {
    display: none; /* 默认隐藏 */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    position: absolute;
    top: 0;
    left: 0;
}

/* 当fallback显示时，确保它可见 */
.game-icon-fallback[style*="display: flex"] {
    display: flex !important;
}

/* 只有当fallback显示时才显示背景颜色 */
.game-icon.hanoi .game-icon-fallback {
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
}

.game-icon.pk10 .game-icon-fallback {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%);
}

.game-icon.k3 .game-icon-fallback {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
}

.game-icon.happy8 .game-icon-fallback {
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
}

.game-icon.select5 .game-icon-fallback {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}

.game-name {
    font-size: 17px; /* 首页游戏名称整体加大 8 像素 */
    color: #000000;
    margin-top: 4px;
    white-space: nowrap;          /* 不换行，防止文字掉到下面 */
    overflow: hidden;             /* 超出部分隐藏 */
    text-overflow: ellipsis;      /* 太长时用省略号 */
}

/* Veniec LOTTERY 区域 */
.lottery-section {
    padding: 24px 16px 60px; /* 增加底部padding，确保内容完整显示 */
    background-color: #ffffff;
    margin-top: 20px;
    margin-bottom: 20px; /* 添加底部margin */
}

.lottery-card-large {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0, transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(0, 212, 255, 0.25) 0, transparent 60%),
                linear-gradient(135deg, #071426 0%, #122745 50%, #071426 100%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 26px 32px;
}

.lottery-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.lottery-left {
    flex: 1;
}

.veniec-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.veniec-emblem {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #0a1628;
}

.veniec-text {
    display: flex;
    flex-direction: column;
}

.veniec-main {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.veniec-sub {
    font-size: 14px;
    color: #000000;
    margin-top: 4px;
}

.lottery-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 160px;
}

.lottery-elements {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 100%;
}

.lottery-ball {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    position: absolute;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.lottery-ball.blue {
    background: linear-gradient(145deg, #3ea9ff 0%, #1664d9 100%);
    left: 12%;
    top: 36%;
}

.lottery-ball.red {
    background: linear-gradient(145deg, #ff5b6c 0%, #d9253b 100%);
    left: 50%;
    top: 12%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    font-size: 28px;
}

.lottery-ball.red::before {
    content: '👑';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
}

.lottery-ball.orange {
    background: linear-gradient(145deg, #ffaf3b 0%, #ff7a00 100%);
    right: 8%;
    top: 38%;
}

.dollar-sign {
    position: absolute;
    left: 32%;
    top: 58%;
    font-size: 42px;
    color: #ffd23c;
    font-weight: 700;
    transform: translateY(-50%);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    right: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    z-index: 1000;
    border-top: 1px solid #eeeeee;
    overflow: visible;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

/* Bet 按钮：图标放大约 190%，整体上移 8px，更加突出 */
.bottom-nav .nav-item .nav-icon img[alt="Bet"] {
    transform: scale(3.4) translateY(-2px);
    transform-origin: center;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.nav-item.active {
    color: #00d4ff;
}

.nav-item:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.nav-item.nav-placeholder {
    flex: 1;
    pointer-events: none;
}

.nav-icon {
    font-size: 44px;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 中间凸起充值按钮（浮动在 Tabbar 上方） */
.recharge-center-btn {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 3px solid #1677ff;
    background: linear-gradient(180deg,#4a7cff,#2f5bff);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

/* 登录页不显示中间充值按钮 */
body.login-page .recharge-center-btn {
    display: none !important;
}

.recharge-center-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 2px;
}

/* 通用游戏记录弹窗（参考 996 风格） */
.game-rec-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.45);
    padding: 12px;
    align-items: center;
    justify-content: center;
}
.game-rec-modal.show {
    display: flex;
}
.game-rec-card {
    width: min(720px, 96vw);
    max-height: 86vh;
    background: #f5f7fb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.game-rec-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #e6e9f2;
}
.game-rec-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.game-rec-close {
    border: none;
    background: #f1f3f7;
    color: #333;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}
.game-rec-body {
    background: #fff;
}
.game-rec-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e6e9f2;
    overflow-x: auto;
}
.game-rec-sel {
    border: 1px solid #e6e9f2;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    color: #333;
}
.game-rec-table-wrap {
    max-height: 56vh;
    overflow: auto;
    background: #fff;
}
.game-rec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
}
.game-rec-table th,
.game-rec-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #eef1f6;
    text-align: left;
    vertical-align: top;
}
.game-rec-table th {
    position: sticky;
    top: 0;
    background: #f7f9fd;
    z-index: 1;
    font-weight: 700;
    color: #444;
}
.game-rec-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid transparent;
}
.game-rec-pill.gray {
    background: #f1f3f7;
    color: #555;
    border-color: #e6e9f2;
}
.game-rec-pill.green {
    background: rgba(82, 196, 26, 0.12);
    color: #2f7a12;
    border-color: rgba(82, 196, 26, 0.25);
}
.game-rec-pill.red {
    background: rgba(255, 77, 79, 0.1);
    color: #b42318;
    border-color: rgba(255, 77, 79, 0.25);
}
.game-rec-foot {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e6e9f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.game-rec-pager {
    display: flex;
    gap: 8px;
    align-items: center;
}
.game-rec-pagebtn {
    padding: 6px 10px;
    border: 1px solid #e6e9f2;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
}
.game-rec-pagebtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recharge-center-btn .recharge-center-label {
    font-size: 11px;
    line-height: 1;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Game Hall 图标特殊大小 */
.nav-icon img[src*="game-hall.Png"],
.nav-icon img[src*="game-hall.png"],
.nav-icon img[alt="Game Hall"] {
    width: 40px !important;
    height: 40px !important;
}

/* 确保包含 Game Hall 图标的容器可以容纳更大的图标 */
.nav-icon:has(img[src*="game-hall.Png"]),
.nav-icon:has(img[src*="game-hall.png"]),
.nav-icon:has(img[alt="Game Hall"]) {
    width: 40px;
    height: 40px;
}

/* Game Hall 按钮特殊样式 - 调整对齐使文字与其他导航项一致 */
.nav-item:has(img[src*="game-hall.Png"]),
.nav-item:has(img[src*="game-hall.png"]),
.nav-item:has(img[alt="Game Hall"]) {
    /* 保持与其他导航项相同的 padding */
    padding: 4px 8px;
    /* 使用负 margin-top 来补偿图标更大的高度，使文字位置与其他项对齐 */
    margin-top: -4px;
}

.nav-item:has(img[src*="game-hall.Png"]) .nav-icon,
.nav-item:has(img[src*="game-hall.png"]) .nav-icon,
.nav-item:has(img[alt="Game Hall"]) .nav-icon {
    /* 图标向上移动，使文字位置与其他导航项对齐 */
    margin-bottom: -4px;
}

.nav-item:has(img[src*="game-hall.Png"]) .nav-text,
.nav-item:has(img[src*="game-hall.png"]) .nav-text,
.nav-item:has(img[alt="Game Hall"]) .nav-text {
    line-height: 1.2;
    padding-top: 0;
    margin-top: 0;
    white-space: nowrap;
    /* 确保文字位置与其他导航项对齐 */
    position: relative;
    top: 0;
}

.nav-text {
    font-size: 11px;
    color: #000000;
    /* 确保文字完整显示，不被裁剪 */
    overflow: visible;
    text-overflow: clip;
}

.nav-item.active .nav-text {
    color: #00d4ff;
}

/* 页面底部版权信息 */
.page-footer {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 16px;
    margin-top: 20px;
    margin-bottom: 80px;
    background-color: transparent;
    font-size: 12px;
    color: #666666;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 登录页面不显示底部版权（因为登录页面没有底部导航） */
body.login-page .page-footer {
    display: none;
}

/* Betting record页面 */
.page-header {
    background-color: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    padding: 4px 8px;
    transition: all 0.3s;
    display: inline-block;
}

.back-btn:active {
    transform: scale(0.9);
    opacity: 0.7;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.header-filter {
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s;
    display: inline-block;
}

.header-filter:active {
    opacity: 0.7;
    transform: scale(0.95);
}

.filter-tabs {
    display: flex;
    background-color: #f5f5f5;
    padding: 12px 16px;
    gap: 12px;
    overflow-x: auto;
}

.filter-tab {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: #000000;
}

.filter-tab.active {
    background-color: #00d4ff;
    color: #ffffff;
    font-weight: 600;
}

.filter-tab:not(.active) {
    background-color: #f5f5f5;
    color: #000000;
}

.filter-tab:active {
    transform: scale(0.95);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    min-height: 60vh;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-text {
    font-size: 16px;
    color: #000000;
    opacity: 0.7;
}

/* Game Hall页面 - 折叠分区 */
.gamehall-section {
    margin-bottom: 4px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

/* ========== 新版游戏大厅（与截图一致：左分类 + 右两列卡片） ========== */
.gamehall-layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 160px);
    background: #f5f7fb;
}
.gamehall-sidebar {
    width: 92px;
    background: #fff;
    border-right: 1px solid #eef1f6;
    padding: 12px 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: calc(100vh - 140px);
    overflow: auto;
}
.gamehall-cat {
    width: 100%;
    border: none;
    background: transparent;
    padding: 16px 8px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    text-align: center;
}
.gamehall-cat.active {
    color: #1677ff;
    font-weight: 700;
}
.gamehall-cat.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    border-radius: 4px;
    background: #1677ff;
}
.gamehall-main {
    flex: 1;
    padding: 14px 12px 120px;
    overflow: auto;
}
.gamehall-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
/* 彩票动态插入容器：不参与 grid 占位，子卡片仍作为 .gamehall-grid 的直接网格项 */
.gamehall-lottery-slot {
    display: contents;
}
.gamehall-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.04);
}
.gamehall-card:active { transform: scale(0.99); }
.gamehall-card-img {
    width: 100%;
    aspect-ratio: 1.15 / 1;
    background: #f2f4f7;
}
.gamehall-card-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.gamehall-card-title {
    padding: 10px 10px 12px;
    font-size: 14px;
    color: #222;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 420px) {
    .gamehall-sidebar { width: 86px; }
    .gamehall-cat { padding: 14px 6px; font-size: 14px; }
    .gamehall-card-title { font-size: 13px; }
}
.gamehall-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background: #f5f5f5;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.gamehall-section-header:active {
    background: #ebebeb;
}
.gamehall-section-header .arrow {
    font-size: 14px;
    color: #666;
    transition: transform 0.2s ease;
}
.gamehall-section.collapsed .gamehall-section-header .arrow {
    transform: rotate(-90deg);
}
.gamehall-section-body {
    overflow: hidden;
}
.gamehall-section.collapsed .gamehall-section-body {
    display: none;
}

.category-tabs {
    display: flex;
    background-color: #f5f5f5;
    padding: 12px 16px;
    gap: 12px;
    overflow-x: auto;
    border-bottom: 1px solid #e0e0e0;
}

.category-tab {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: #000000;
}

.category-tab.active {
    background-color: #00d4ff;
    color: #ffffff;
    font-weight: 600;
}

.category-tab:not(.active) {
    background-color: #f5f5f5;
    color: #000000;
}

.category-tab:active {
    transform: scale(0.95);
}

.lottery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 16px 100px 16px; /* 大幅增加底部padding，确保内容不被底部导航栏遮挡 */
    margin-bottom: 20px;
}

.lottery-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.lottery-card:active {
    transform: scale(0.98);
    background-color: #253548;
}

.lottery-card:hover {
    border-color: #00d4ff;
}

.lottery-card-icon {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* 当有背景图片时，隐藏文字 */
.lottery-card-icon[style*="background-image"] .icon-fallback {
    display: none;
}

/* 当没有背景图片时，显示文字和背景色 */
.lottery-card-icon:not([style*="background-image"]) .icon-fallback {
    display: block;
}

.lottery-card-icon .icon-fallback {
    position: relative;
    z-index: 1;
}

.lottery-card-name {
    font-size: 14px;
    color: #000000;
    margin-bottom: 4px;
    font-weight: 500;
}

.lottery-card-time {
    font-size: 12px;
    color: #999999;
}

/* Customer Service页面 */
.service-info {
    background-color: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.service-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffa726;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.service-icon {
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s;
}

.service-icon:active {
    transform: scale(0.9);
    opacity: 0.7;
}

.chat-container {
    flex: 1;
    background-color: #ffffff;
    min-height: calc(100vh - 200px);
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-messages {
    padding: 20px;
    min-height: 100%;
    overflow: visible;
}

/* 客服页：隐藏底部导航，聊天区域全屏显示 */
body.service-page {
    padding-bottom: 0 !important;
}
body.service-page .bottom-nav,
body.service-page .recharge-center-btn,
body.service-page .page-footer {
    display: none !important;
}
body.service-page .chat-container {
    min-height: calc(100vh - 110px);
    height: calc(100vh - 110px);
}
body.service-page #customerServiceIframe {
    height: 100% !important;
    min-height: calc(100vh - 110px);
}

/* My页面 */
.my-header {
    background-color: #f5f5f5;
    padding: 16px;
}

.settings-icon {
    text-align: right;
    font-size: 24px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-block;
    transition: all 0.3s;
    float: right;
}

.settings-icon:hover {
    opacity: 0.8;
}

.settings-icon:active {
    transform: scale(0.9) rotate(90deg);
    opacity: 0.7;
}

.my-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.profile-name {
    font-size: 16px;
    font-weight: 500;
}

.account-summary {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 12px;
    color: #999999;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

/* 数码管字体（需将字体文件放在项目根目录 fonts/digital-7.italic.ttf） */
/* 这里的字体文件在部分部署包里可能缺失；缺失时会产生 404（不影响页面主体显示） */

/* VIP 徽章样式 */
.vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 16px;
    min-width: 72px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c9d3ff 0%, #b1bff8 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Digital7Italic', 'DS-Digital', 'digital-7', monospace;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .vip-badge {
        padding: 3px 12px;
        min-width: 64px;
        height: 24px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
}

.action-buttons {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: #f5f5f5;
}

.action-buttons button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    display: inline-block;
    margin-right: 4px;
}

.btn-recharge {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000000;
}

.btn-recharge:active {
    background: linear-gradient(135deg, #0099cc 0%, #0077aa 100%);
}

.btn-withdraw {
    background: linear-gradient(135deg, #ffd700 0%, #ffa726 100%);
    color: #000000;
}

.btn-withdraw:active {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.action-buttons button:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.my-menu {
    padding: 8px 0 100px 0; /* 大幅增加底部padding，确保菜单项不被底部导航栏遮挡 */
    background-color: #ffffff;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #f5f5f5;
    margin-bottom: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-item:active {
    background-color: #f5f5f5;
    transform: scale(0.98);
}

.menu-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 28px;
    height: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-text {
    flex: 1;
    font-size: 15px;
    color: #000000;
}

.menu-arrow {
    font-size: 18px;
    color: #999999;
}

.menu-divider {
    height: 8px;
    background-color: #ffffff;
    margin: 8px 0;
}

.logout-item {
    background-color: #f5f5f5 !important;
}

/* ========== 我的账户页（与参考图一致） ========== */
body.my-account-page {
    background-color: #f5f5f5;
    padding-bottom: 100px;
}
.my-account-page .page-footer { margin-top: 0; }

.my-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.my-account-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.my-account-avatar-wrap {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
.my-account-avatar-wrap:hover {
    opacity: 0.95;
}
.my-account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.my-account-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.my-account-info { flex: 1; min-width: 0; }
.my-account-username {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}
.my-account-member {
    font-size: 13px;
    color: #666;
}
.my-account-copy {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
}
.my-account-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.my-account-icon-btn {
    font-size: 22px;
    cursor: pointer;
    opacity: 0.85;
}

.my-account-settings-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
}
.my-account-settings-btn:active { transform: scale(0.92); }
.my-account-gear {
    width: 22px;
    height: 22px;
    fill: #333;
}

.my-account-content { padding: 12px 16px 24px; }
.my-account-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.my-account-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.my-account-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    flex-shrink: 0;
}
.my-account-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}
.my-account-card-date {
    font-size: 13px;
    color: #999;
}
.my-account-refresh {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    color: #00d4ff;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
}
.my-account-refresh .refresh-icon { font-size: 16px; }
.my-account-refresh.is-loading .refresh-icon {
    display: inline-block;
    animation: my-refresh-spin 0.8s linear infinite;
}
@keyframes my-refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.my-account-wallet-inner {
    background: linear-gradient(135deg, #098cb8 0%, #0994c3 100%);
    border-radius: 10px;
    padding: 16px;
    color: #fff;
}
.my-account-wallet-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}
.wallet-label { font-size: 13px; opacity: 0.95; }
.wallet-eye-btn {
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
}
.my-account-wallet-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}
.my-account-wallet-balance .wallet-amount {
    font-size: 28px;
    font-weight: 700;
}
.wallet-chevron { font-size: 24px; opacity: 0.9; }
.wallet-currency {
    font-size: 14px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.12);
    color: #fff;
    line-height: 1.2;
}
.my-account-wallet-divider {
    height: 1px;
    background: rgba(255,255,255,0.4);
    margin-bottom: 12px;
}
.my-account-wallet-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.wallet-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    cursor: pointer;
}
.wallet-action-icon { font-size: 22px; }
.wallet-action-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}
.wallet-action-vline {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.5);
}

.my-account-earnings-row {
    display: flex;
    align-items: stretch;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}
.earnings-col {
    flex: 1;
    padding: 14px 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.earnings-value {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}
.earnings-value.negative { color: #ff5252; }
.earnings-label { font-size: 12px; color: #999; }
.earnings-chevron { font-size: 14px; color: #bbb; }
.earnings-vline {
    width: 1px;
    background: #eee;
}

.my-account-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.service-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.service-grid-item:active { background: #eee; }
.service-grid-icon { font-size: 24px; }
.service-grid-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.service-grid-coming { cursor: default; opacity: 0.85; }

/* 更多服务：资金明细/提款管理 logo 加大 */
.my-account-services-grid .service-grid-item .service-grid-icon img {
    width: 58px;
    height: 58px;
}

.my-account-menu-card { padding: 0; }
.my-account-menu-card .my-menu {
    padding: 0;
    margin: 0;
    background: transparent;
}
.my-account-menu-card .menu-item {
    margin-bottom: 0;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.my-account-menu-card .menu-item:last-child { border-bottom: none; }

/* 我的账户：弹层（设置/资金明细） */
.my-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
}
.my-sheet-overlay.open { display: flex; }
.my-sheet-panel {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
    padding-bottom: 12px;
}
.my-sheet-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.my-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}
.my-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: none;
    background: #f2f2f2;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.my-sheet-list .menu-item {
    background: #fff;
    margin-bottom: 0;
    border-bottom: 1px solid #f5f5f5;
}
.my-sheet-list .menu-item:last-child { border-bottom: none; }

/* 记录列表样式 */
.record-list {
    padding: 4px 16px 100px 16px;
}

.record-range-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px 4px;
}
.record-range-btn {
    min-width: 64px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e0e3ee;
    background: #f7f8fc;
    font-size: 12px;
    color: #666f89;
}
.record-range-btn.active {
    background: #1677ff;
    border-color: #1677ff;
    color: #ffffff;
}

.record-item {
    background-color: #ffffff;
    padding: 16px;
    margin-bottom: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.record-item:active {
    background-color: #f0f0f0;
}

.record-left {
    flex: 1;
}

.record-right {
    text-align: right;
}

.record-title {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.record-time {
    font-size: 12px;
    color: #666666;
    margin-bottom: 4px;
}

.record-stage {
    font-size: 12px;
    color: #999999;
}

.record-detail {
    font-size: 12px;
    color: #555555;
    margin-top: 4px;
    line-height: 1.4;
    word-break: break-all;
}

.record-total {
    font-size: 12px;
    color: #1677ff;
    margin-top: 4px;
    font-weight: 500;
}

.record-amount {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.record-amount-lose {
    color: #e53935 !important;
}

.record-status {
    font-size: 12px;
    color: #666666;
}

.form-container {
    padding: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
}

.logout-item .menu-text {
    color: #ff5252 !important;
    font-weight: 600;
}

.logout-item:active {
    background-color: #253548 !important;
}

    /* 移动端优化 - 确保页面可以滚动 */
@media (max-width: 768px) {
    html, body {
        height: auto !important;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 100px !important; /* 移动端增加底部空间 */
    }
    
    .page {
        min-height: 100vh;
        height: auto;
        overflow-y: visible;
        padding-bottom: 100px !important; /* 为底部导航留出更多空间，确保内容不被遮挡 */
    }
    
    /* 确保所有内容区域都可以滚动 */
    .game-selection,
    .lottery-section,
    .home-video-wrapper,
    .lottery-grid,
    .my-menu,
    .chat-container {
        overflow: visible;
    }
    
    /* 照片轮播高度适配 */
    #photoSlider {
        height: 180px;
    }
    
    /* 视频区域适配 */
    .home-video-iframe {
        height: 200px;
    }
    
    /* 游戏网格适配 */
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .game-icon {
        width: 180px;
        height: 180px;
        font-size: 10px;
        background: transparent;
    }
    
    .game-icon-image {
        width: 100%;
        height: 100%;
    }
    
    .game-name {
        font-size: 19px;
    }
    
    .lottery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 12px 12px 100px 12px; /* 移动端也增加底部padding */
        margin-bottom: 20px;
    }
    
    .my-menu {
        padding-bottom: 100px !important; /* 移动端也增加底部padding */
        margin-bottom: 20px;
    }
    
    /* 保持与桌面一致高度，仅保留安全区域处理 */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: 70px;
        padding: 0;
    }
    
    /* 移动端页面底部版权信息 */
    .page-footer {
        font-size: 11px;
        padding: 12px 16px;
        margin-bottom: 90px; /* 增加底部间距以适应更高的导航栏 */
    }
    
    /* 移动端导航图标 */
    .nav-icon {
        width: 33px;
        height: 33px;
    }
    
    /* 移动端 Game Hall 图标特殊大小 */
    .nav-icon img[src*="game-hall.Png"],
    .nav-icon img[src*="game-hall.png"],
    .nav-icon img[alt="Game Hall"] {
        width: 40px !important;
        height: 40px !important;
    }
    
    .nav-icon:has(img[src*="game-hall.Png"]),
    .nav-icon:has(img[src*="game-hall.png"]),
    .nav-icon:has(img[alt="Game Hall"]) {
        width: 40px;
        height: 40px;
    }
    
    /* 移动端 Game Hall 按钮特殊样式 - 调整对齐使文字与其他导航项一致并确保完整显示 */
    .nav-item:has(img[src*="game-hall.Png"]),
    .nav-item:has(img[src*="game-hall.png"]),
    .nav-item:has(img[alt="Game Hall"]) {
        /* 保持与其他导航项相同的 padding，但增加底部空间 */
        padding: 4px 8px 6px 8px;
        /* 使用负 margin-top 来补偿图标更大的高度，使文字位置与其他项对齐 */
        margin-top: -4px;
        margin-bottom: 0;
    }
    
    .nav-item:has(img[src*="game-hall.Png"]) .nav-icon,
    .nav-item:has(img[src*="game-hall.png"]) .nav-icon,
    .nav-item:has(img[alt="Game Hall"]) .nav-icon {
        /* 图标向上移动，使文字位置与其他导航项对齐 */
        margin-bottom: -4px;
    }
    
    .nav-item:has(img[src*="game-hall.Png"]) .nav-text,
    .nav-item:has(img[src*="game-hall.png"]) .nav-text,
    .nav-item:has(img[alt="Game Hall"]) .nav-text {
        line-height: 1.3;
        padding-top: 0;
        margin-top: 0;
        padding-bottom: 2px; /* 增加底部 padding 确保文字完整显示 */
        white-space: nowrap;
        /* 确保文字位置与其他导航项对齐 */
        position: relative;
        top: 0;
        /* 防止文字被裁剪 */
        overflow: visible;
    }
    
    /* 移动端菜单图标 */
    .menu-icon {
        width: 38px;
        height: 38px;
    }
    
    /* 移动端页面背景图优化 */
    body:not(.login-page) {
        background-attachment: scroll;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
    }
    
    /* 增加页面底部padding，确保内容不被遮挡 */
    .page {
        padding-bottom: 100px !important;
    }
    
    /* 增加lottery-section的底部空间 */
    .lottery-section {
        padding-bottom: 80px !important;
        margin-bottom: 20px;
    }
    
    /* 用户信息栏适配 */
    .user-info-bar {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .user-info-right {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .user-info-right a,
    .info-link {
        font-size: 12px;
        padding: 5px 8px;
        gap: 4px;
    }
    
    .info-link .link-icon {
        font-size: 14px;
    }
    
    .info-link .link-icon img {
        width: 16px;
        height: 16px;
        object-fit: contain;
        vertical-align: middle;
        display: inline-block;
    }
    
    .info-link .link-text {
        font-size: 11px;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    #photoSlider {
        height: 150px;
    }
    
    .home-video-iframe {
        height: 180px;
    }
    
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .game-icon {
        width: 100px;
        height: 100px;
        font-size: 9px;
        background: transparent;
    }
    
    .game-icon-image {
        width: 100%;
        height: 100%;
    }
    
    /* 小屏幕底部导航栏额外优化 */
    .bottom-nav {
        padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
    }
    
    /* 小屏幕 Game Hall 文字额外空间 */
    .nav-item:has(img[src*="game-hall.Png"]) .nav-text,
    .nav-item:has(img[src*="game-hall.png"]) .nav-text,
    .nav-item:has(img[alt="Game Hall"]) .nav-text {
        padding-bottom: 3px;
    }
    
    .game-name {
        font-size: 18px;
    }
    
    .lottery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 10px 100px 10px; /* 小屏幕也增加底部padding */
        margin-bottom: 20px;
    }
    
    .my-menu {
        padding-bottom: 100px !important; /* 小屏幕也增加底部padding */
        margin-bottom: 20px;
    }
    
    .page {
        padding-bottom: 100px !important; /* 确保小屏幕也有足够空间 */
    }
    
    /* 增加lottery-section的底部空间 */
    .lottery-section {
        padding-bottom: 80px !important;
        margin-bottom: 20px;
    }
    
    /* 用户信息栏小屏幕适配 */
    .user-info-right {
        gap: 4px;
    }
    
    .user-info-right a,
    .info-link {
        padding: 4px 6px;
        gap: 3px;
        font-size: 11px;
    }
    
    .info-link .link-icon {
        font-size: 12px;
    }
    
    .info-link .link-icon img {
        width: 14px;
        height: 14px;
        object-fit: contain;
        vertical-align: middle;
        display: inline-block;
    }
    
    .info-link .link-text {
        font-size: 10px;
    }
    
    /* 如果空间不够，可以只显示图标 */
    @media (max-width: 320px) {
        .info-link .link-text {
            display: none;
        }
        
        .info-link {
            padding: 6px 8px;
            min-width: 32px;
            justify-content: center;
        }
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    #photoSlider {
        height: 120px;
    }
    
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .game-icon {
        width: 90px;
        height: 90px;
        font-size: 8px;
        background: transparent;
    }
    
    .game-icon-image {
        width: 100%;
        height: 100%;
    }
    
    .game-name {
        font-size: 17px;
    }
}

/* ========== 全站移动端适配：确保各机型手机可正常浏览 ========== */
/* 防止任何元素撑出视口导致横向滚动 */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
}
body > div,
.page,
[class*="page"] {
    max-width: 100vw;
    overflow-x: hidden;
}
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}
table {
    table-layout: fixed;
    word-break: break-word;
}
/* 刘海屏/安全区域：底部导航与固定底栏留出安全区 */
.bottom-nav {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
}
/* 小屏下可点击区域不小于 44px（便于触控） */
@media (max-width: 768px) {
    .nav-item,
    .betting-cell,
    .bet-amount-btn,
    .bet-action-btn,
    button[class*="-bet-btn"],
    .filter-tab,
    .liuhe-tab,
    .liuhe-subtab,
    .wangpan996-tab,
    .c28-tab,
    .c4246-tab,
    .baijiale-tab,
    .niuniu-tab,
    .wp-tab {
        min-height: 44px;
        min-width: 44px;
    }
    .nav-item { padding: 8px 4px; }
}
@media (max-width: 480px) {
    .page-header,
    .betting-header,
    .liuhe-header,
    .wangpan996-header,
    .c28-header,
    .c4246-header,
    .baijiale-header,
    .niuniu-header,
    .wp-header {
        padding-left: max(12px, env(safe-area-inset-left, 12px));
        padding-right: max(12px, env(safe-area-inset-right, 12px));
    }
}
@media (max-width: 375px) {
    .lottery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
