/* ========== 手机一屏布局：顶 HUD + 大场景 + 底导航 ========== */
/* 安全区变量：优先系统 env；iOS WebView 偶发为 0 时由 script 写入 --sat-fallback / --sab-fallback */
:root {
    --sat: max(env(safe-area-inset-top, 0px), var(--sat-fallback, 0px));
    --sab: max(env(safe-area-inset-bottom, 0px), var(--sab-fallback, 0px));
}

html, body.mobile-app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: -webkit-fill-available;
    overflow: hidden;
    /* 少女向粉底（别用黑底：顶栏按钮会看不清） */
    background: #ffe9f2;
    overscroll-behavior: none;
}

body.mobile-app {
    display: block !important;
}

#game-container.mobile-shell {
    width: 100% !important;
    /* 手机壳上限收窄：480 在大屏手机/模拟器上会显得「整个画面偏宽」 */
    max-width: 430px !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    margin: 0 auto;
    /* 注意：不能写 padding:0 !important 再写 padding-top——!important 会把安全区整段盖掉，iOS 顶栏叠状态栏 */
    padding-left: 0 !important;
    padding-right: 0 !important;
    /* 顶部：躲开信号/电量/刘海；安卓通常 env=0 不额外占位 */
    padding-top: var(--sat) !important;
    /* 底部安全区只交给 .dock，避免「外壳 + 底栏」双重留白把主画面顶得离底栏很远 */
    padding-bottom: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background:
        radial-gradient(ellipse 90% 50% at 10% 0%, rgba(255, 182, 213, 0.55), transparent 55%),
        radial-gradient(ellipse 80% 45% at 95% 15%, rgba(186, 220, 255, 0.45), transparent 50%),
        radial-gradient(ellipse 70% 40% at 50% 100%, rgba(200, 240, 210, 0.35), transparent 55%),
        linear-gradient(180deg, #fff5f9 0%, #ffe8f2 42%, #f3e9ff 100%);
    box-shadow: none !important;
    border: none !important;
    box-sizing: border-box !important;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ----- HUD 一行（浅粉底 + 深色字，音乐键要清晰） ----- */
.hud {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 236, 244, 0.82));
    border-bottom: 1px solid rgba(255, 160, 190, 0.35);
    box-shadow: 0 2px 10px rgba(255, 120, 160, 0.12);
    z-index: 20;
    /* 顶栏始终在安全区下方，不被状态栏盖住 */
    position: relative;
}

.hud-lv {
    border: none;
    background: linear-gradient(135deg, #ff8fab, #ff6b9d);
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 0 #c71565;
}

.hud-money {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #664455;
    min-width: 0;
}
.hud-coin {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #c47a00;
}
.hud-dia { color: #4a7fd4; }
.hud-fame { color: #e04880; font-size: 0.85rem; }
/* 顶栏货币可点（彩蛋金手指） */
.hud-tap {
    border: none;
    background: transparent;
    font: inherit;
    font-weight: bold;
    padding: 2px 4px;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hud-tap:active {
    transform: scale(0.96);
    background: rgba(255, 143, 171, 0.18);
}
.hud-tap.egg-flash {
    animation: eggPop 0.45s ease;
}
@keyframes eggPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); filter: brightness(1.3); }
    100% { transform: scale(1); }
}

.hud-energy {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 72px;
}
.hud-energy .energy-track {
    width: 48px;
    height: 8px;
    background: rgba(255, 160, 190, 0.28);
    border-radius: 6px;
    overflow: hidden;
}
.hud-energy .energy-fill {
    height: 100%;
    background: linear-gradient(90deg, #6ee7b7, #34d399);
    border-radius: 6px;
}
.hud-energy .energy-num {
    font-size: 0.75rem;
    color: #2a9a6a;
    font-weight: bold;
    min-width: 1.5em;
}

.hud-music {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    background: linear-gradient(145deg, #ff9fbc, #ff6b9d);
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 0 #c71565, 0 3px 8px rgba(255, 80, 130, 0.35);
}
.hud-music:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #c71565;
}
.hud-music.is-muted {
    opacity: 1;
    background: linear-gradient(145deg, #e8dce2, #d0c4cc);
    color: #665566;
    box-shadow: 0 2px 0 #a898a0;
    border-color: rgba(255, 255, 255, 0.85);
}

/* 安卓：事件道具点击不要灰底/高亮块 */
.event-actor,
.event-actor:active,
.event-actor:focus,
.event-actor img {
    -webkit-tap-highlight-color: transparent !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none; /* 去掉系统默认焦点框；自有 filter 在 style.css */
}
.event-actor {
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

/* ----- 场景占满 ----- */
.stage {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    margin: 0 !important;
    /* 左右略收一点，店景不贴边，整体更像竖屏手机框 */
    padding: 0 10px 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#shop-floor {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.stage-chips {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 15;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.stage-chips .chip {
    pointer-events: auto;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #665566;
    border: 1px solid rgba(255,255,255,0.95);
    font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
}
/* 幸运日等：贴在店名右侧 */
.stage-chips .chip-status {
    margin-right: auto;
}
.stage-chips .chip-status.is-lucky {
    background: #fff6d6;
    color: #c47a00;
    border-color: #ffc94a;
}
.stage-chips .chip-status.is-quiet {
    background: #eef2f8;
    color: #556;
    border-color: #b0c4de;
}
.stage-chips .chip-status.is-party {
    background: #ffe8f5;
    color: #c71585;
    border-color: #ff8fab;
}
.stage-chips .chip-status.is-sale {
    background: #fff6d6;
    color: #b8860b;
    border-color: #ffc94a;
}
.stage-chips .chip-status.hidden {
    display: none !important;
}
.stage-chips .chip-btn {
    border: none;
    font-family: inherit;
    background: linear-gradient(135deg, #ffc94a, #ff8fab);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
}
.stage-chips .chip-btn:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}

.hud-status { display: none !important; }

.stage-slots {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    padding: 0 !important;
    background: none !important;
}
.stage-slots .slots-label { display: none; }
#display-slots {
    display: flex;
    gap: 6px;
}
.display-slot {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.display-slot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

#actors-layer {
    flex: 1 !important;
    min-height: 100px !important;
    position: relative !important;
    z-index: 8 !important;
    margin-top: 70px !important;
}

#event-layer {
    position: absolute !important;
    top: 40px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 100px !important;
    pointer-events: none !important;
    z-index: 14 !important;
    overflow: visible !important;
}

#counter-area {
    flex: 0 0 auto !important;
    padding: 0 0 8px !important;
    z-index: 9;
}
.cash-img {
    width: 96px !important;
    height: 96px !important;
}
.click-hint {
    font-size: 0.9rem !important;
    margin: 0 !important;
    padding: 4px 12px !important;
}

.stage-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* 开盲盒行与底栏更紧凑，避免 iOS 上「主画面离图鉴栏好远」的观感 */
    padding: 4px 0 2px;
}
.stage-action .btn-gacha {
    padding: 10px 20px !important;
    font-size: 1.05rem !important;
}

/* ----- 底栏 Dock ----- */
.dock {
    flex: 0 0 auto;
    display: flex;
    background: linear-gradient(180deg, rgba(255, 248, 252, 0.96), rgba(255, 228, 240, 0.98));
    border-top: 1px solid rgba(255, 160, 190, 0.4);
    box-shadow: 0 -4px 16px rgba(255, 120, 160, 0.12);
    /* 仅此处加一次底部安全区（Home 条），与安卓一样紧贴主画面 */
    padding: 4px 4px max(4px, var(--sab));
    z-index: 30;
}
.dock-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #997788;
    font-family: inherit;
    font-size: 1.25rem;
    padding: 4px 2px 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    -webkit-tap-highlight-color: transparent;
}
.dock-btn span {
    font-size: 0.65rem;
    line-height: 1;
}
.dock-btn.active,
.dock-btn:active {
    color: #ff4d8d;
}

/* ----- 底部弹出 Sheet ----- */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40;
}
.sheet-backdrop.hidden { display: none !important; }

/* 外层只负责圆角裁切；滚动放在内层，避免滚动条把右边圆角「啃」成直角 */
.sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px; /* 与手机壳同宽，避免底栏弹层比画面更宽 */
    max-height: 70dvh;
    background: #fff8fb;
    border-radius: 20px 20px 0 0;
    z-index: 50;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
    animation: sheetUp 0.25s ease;
}
.sheet.hidden { display: none !important; }

@keyframes sheetUp {
    from { transform: translateX(-50%) translateY(40%); opacity: 0.6; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.sheet-handle {
    flex: 0 0 auto;
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    margin: 10px auto 6px;
}
.sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border: none;
    background: #ffe0ec;
    color: #c45;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}
/* 真正滚动的区域：圆角由外层 overflow:hidden 裁出，滚动条贴在内侧 */
.sheet-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* sheet 贴底：底部安全区只加一次，别再叠一层过大空白 */
    padding: 0 14px calc(10px + var(--sab));
}
.sheet h3 {
    margin: 4px 0 10px;
    font-size: 1.1rem;
    color: #ff6b9d;
    text-align: left;
    padding-right: 56px; /* 避开「收起」按钮 */
}
.sheet h3 small {
    font-weight: normal;
    color: #999;
    font-size: 0.85rem;
}
.sheet-page.hidden { display: none !important; }

#pets-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    flex-wrap: unset !important;
    overflow: visible !important;
}
#pets-grid .pet-card {
    flex: unset !important;
    min-width: 0 !important;
}
/* 稀有度：贴在整张圆角卡片外框的右上角，不进圆形头像里 */
.pet-card {
    position: relative !important;
    overflow: visible !important;
}
.rarity-mark {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 8px;
    font-weight: bold;
    line-height: 1.15;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    white-space: nowrap;
}
.rarity-mark-common {
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}
.rarity-mark-uncommon {
    background: #6ecb8a;
    color: #fff;
    border: 1px solid #4aaa68;
}
.rarity-mark-rare {
    background: #6ea8ff;
    color: #fff;
    border: 1px solid #4a90e8;
}
.rarity-mark-epic {
    background: linear-gradient(135deg, #b07cff, #8a4dff);
    color: #fff;
    border: 1px solid #7a3de0;
}
.rarity-mark-legendary {
    background: linear-gradient(135deg, #ffc94a, #ffb347);
    color: #5a3000;
    border: 1px solid #e8a317;
    box-shadow: 0 0 8px rgba(255, 200, 80, 0.7);
}

/* 成就 */
.achieve-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.achieve-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    border: 1.5px solid rgba(255, 181, 197, 0.45);
}
.achieve-card.done { border-color: #a8e6cf; }
.achieve-card.claimed { opacity: 0.72; background: #f7f7f9; }
.achieve-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.92rem; }
.achieve-prog { color: #888; font-size: 0.85rem; }
.achieve-bar { height: 8px; background: #f0e8ec; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.achieve-bar-fill { height: 100%; background: linear-gradient(90deg, #a8e6cf, #ff8fab); border-radius: 6px; }
.achieve-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.achieve-reward { font-size: 0.82rem; color: #c47a00; }
.btn-achieve {
    border: none; border-radius: 12px; padding: 6px 12px;
    font-family: inherit; font-size: 0.85rem;
    background: linear-gradient(135deg, #ffc94a, #ff8fab); color: #fff; cursor: pointer;
}
.btn-achieve:disabled { background: #ccc; color: #888; cursor: not-allowed; }
.dock-btn span { font-size: 0.68rem; }
/* 海域标：卡片左上角外侧 */
.pet-card > .region-tag {
    position: absolute;
    top: -4px;
    left: -4px;
    z-index: 5;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 6px;
    background: #5bafd0;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.pet-frame {
    position: relative;
    overflow: hidden;
}
.pet-card.rarity-rare {
    border: 2px solid #6ea8ff !important;
}
.pet-card.rarity-legendary {
    border: 2px solid #ffc94a !important;
    box-shadow: 0 0 10px rgba(255, 201, 74, 0.45);
}
.slot-rarity {
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 0.5rem;
    font-style: normal;
    background: #fff;
    border-radius: 4px;
    padding: 0 2px;
    line-height: 1.2;
}
.level-progress-detail {
    font-size: 0.95rem;
    margin: 8px 0 12px;
    line-height: 1.45;
}
.level-next-title {
    margin: 0 0 8px;
    color: #5a4a55;
}
.level-cond-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px;
}
.level-cond-list .cond-ok,
.level-cond-list .cond-wait {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
}
.level-cond-list .cond-ok {
    background: #e8f8ef;
    color: #2d8a55;
    border: 1px solid #b8e6c8;
}
.level-cond-list .cond-wait {
    background: #fff8ee;
    color: #9a6a20;
    border: 1px solid #f0d9a8;
}
.level-progress-bar-wrap {
    margin: 8px 0 12px;
}
.level-sheet-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.level-sheet-bar .sl-progress-track {
    flex: 1;
}
.level-pct {
    font-size: 0.85rem;
    font-weight: bold;
    color: #c47a00;
    min-width: 2.5em;
    text-align: right;
}
.level-progress-bar-wrap .sl-progress-track {
    height: 10px;
    background: #f0e8ec;
    border-radius: 6px;
    overflow: hidden;
}
.level-progress-bar-wrap .sl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a8e6cf, #ff8fab);
    border-radius: 6px;
    width: 0;
    transition: width 0.25s ease;
}
#sheet-level .btn-primary {
    width: 100%;
    margin-top: 4px;
}
#sheet-level .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.branch-tabs-visible {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.branch-tabs-visible .branch-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 2px solid #ffb6c1;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}
.branch-tabs-visible .branch-tab.active {
    background: linear-gradient(135deg, #ff8fab, #ff6b9d);
    color: #fff;
    border-color: transparent;
}
.branch-tabs-visible .branch-tab.locked {
    opacity: 0.5;
}

.more-sections details {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid #f0e0e8;
}
.exchange-box {
    background: #f8f4ff;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #e0d4f5;
}
.exchange-box h4 {
    margin: 0 0 6px;
    color: #7b6ab0;
    font-size: 0.95rem;
}
.exchange-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}
.btn-exchange {
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffe8a3, #ffc94a);
    color: #6a4a00;
    font-weight: bold;
    box-shadow: 0 3px 0 #d4a017;
}
.btn-exchange.alt {
    background: linear-gradient(135deg, #dce8ff, #9ec0ff);
    color: #234;
    box-shadow: 0 3px 0 #6a90d0;
}
.btn-exchange:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #aaa;
}
.btn-exchange:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.more-sections summary {
    font-weight: bold;
    color: #ff6b9d;
    cursor: pointer;
    padding: 4px 0;
}

/* ----- 更多：Logo + 音乐面板 ----- */
.more-logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff5f8, #eef7ff);
    border: 1px solid rgba(255, 182, 193, 0.55);
}
.more-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(255, 143, 171, 0.25);
    flex-shrink: 0;
}
.more-logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.more-logo-text strong {
    font-size: 1.05rem;
    color: #ff6b9d;
}
.more-logo-text span {
    font-size: 0.78rem;
    color: #998899;
}
.music-panel {
    padding: 6px 0 10px;
}
.music-track-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}
.music-track-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    border: 1.5px solid #f0dce4;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.music-track-btn .mt-name {
    font-size: 0.95rem;
    font-weight: bold;
    color: #664455;
}
.music-track-btn .mt-tip {
    font-size: 0.75rem;
    color: #aa8899;
}
.music-track-btn.active {
    border-color: #ff8fab;
    background: linear-gradient(135deg, #fff0f5, #ffe8f0);
    box-shadow: 0 0 0 2px rgba(255, 143, 171, 0.25);
}
.music-track-btn.active .mt-name {
    color: #e04880;
}
.music-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.btn-music-act {
    flex: 1 1 auto;
    min-width: 40%;
    border: none;
    border-radius: 12px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #ff8fab, #ff6b9d);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 0 #c71565;
}
.btn-music-act.alt {
    background: linear-gradient(135deg, #b8d4ff, #8eb6f0);
    box-shadow: 0 2px 0 #5a7fb8;
}
.btn-music-act:active {
    transform: translateY(1px);
    box-shadow: none;
}
.music-credit {
    font-size: 0.68rem !important;
    color: #b0a0a8 !important;
    line-height: 1.35;
}

/* ----- 玩法说明 ----- */
.guide-panel {
    padding: 4px 0 12px;
}
.guide-block {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(165deg, #fffefb, #fff5f8);
    border: 1px solid rgba(255, 182, 193, 0.45);
}
.guide-block h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #e04880;
}
.guide-block p {
    margin: 0 0 6px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #665566;
}
.guide-sub {
    margin: 8px 0 4px !important;
    font-weight: bold;
    color: #8866aa !important;
    font-size: 0.8rem !important;
}
.guide-list {
    margin: 0 0 6px;
    padding-left: 1.15em;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #554455;
}
.guide-list li {
    margin-bottom: 4px;
}
.guide-note {
    margin: 6px 0 0 !important;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 200, 80, 0.18);
    font-size: 0.78rem !important;
    color: #8a6040 !important;
}

/* 旧布局元素强制隐藏冲突 */
.page-bg { display: none !important; }
.mobile-shell .top-compact,
.mobile-shell .phone-main,
.mobile-shell #side-panel,
.mobile-shell .floor-label,
.mobile-shell .floor-decor {
    /* floor-decor can stay for beauty but shelf might clutter - keep minimal */
}

.mobile-shell .floor-label { display: none !important; }
.mobile-shell .shelf-unit,
.mobile-shell .floor-wall,
.mobile-shell .floor-shelf,
.mobile-shell .stage-floor-plane,
.mobile-shell .counter-desk {
    display: none !important;
}

/* 宽屏 / 电脑：固定手机竖框，不要被拉成宽平板 */
@media (min-width: 480px) {
    body.mobile-app {
        background: linear-gradient(160deg, #ffe4f0 0%, #f0e8ff 50%, #e8f6ff 100%);
    }
    #game-container.mobile-shell {
        max-width: 390px !important;
        height: min(844px, 96dvh) !important;
        margin: 2vh auto !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        box-shadow: 0 16px 48px rgba(255, 120, 160, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    }
    .sheet {
        max-width: 390px;
    }
}
