/* [claude code] 2026-10-18 v4.87 加出擊結算全頁(.shell-result) */
/* [claude code] 2026-10-18 v4.86 殼層樣式:直式大廳 / 底部導覽 / 頁籤 / 橫拿提示。
   框架層 —— 只用 CSS 變數(--accent / --gold / --text / --mute / --surface / --surface-2 / --border / --danger / --bg / --ink),
   顏色與字級交給各遊戲自己的規格;字級只用 11 / 13 / 15 / 20 / 28,圓角只用 8 / 14 / 999。 */

/* ── 直式大廳 ───────────────────────────────────────────────── */
.lb { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.lb-hero { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
html[data-ui-skin] .lb .lb-arrow { min-width: 44px; min-height: 96px; padding: 0; font-size: 20px; }
html[data-ui-skin] .lb .lb-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0;
  padding: 12px; text-align: center; background: var(--surface) !important; cursor: pointer;
}
.lb-cap { font-size: 11px; color: var(--mute); }
.lb-title { font-size: 28px; line-height: 1.3; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.lb-art { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--bg); }
.lb-art canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.lb-prog { font-size: 13px; color: var(--text); }
.lb-dots { display: flex; justify-content: center; gap: 4px; min-height: 6px; }
.lb-dots i { width: 6px; height: 6px; background: var(--border); }
.lb-dots i.on { background: var(--accent); }
.lb-mid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-ui-skin] .lb .lb-mi {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  min-height: 88px; padding: 8px 4px; text-align: center;
}
.lb-mi-ic { width: 24px; height: 24px; background: center / contain no-repeat; image-rendering: pixelated; }
.lb-mi-t { font-size: 13px; }
.lb-mi-s { font-size: 11px; color: var(--mute); max-width: 100%; overflow-wrap: anywhere; }
html[data-ui-skin] .lb .lb-mi.ready { border-color: var(--gold) !important; }
.lb-mi.ready .lb-mi-s { color: var(--gold); }
.lb-unlock { margin: 0; font-size: 11px; color: var(--mute); text-align: center; }
html[data-ui-skin] .lb .lb-go { min-height: 56px; font-size: 15px; }

/* ── 底部導覽(五顆;中間那顆是主要入口)────────────────────── */
#game #dock.shell-nav { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; } /* 有幾顆就幾欄(三顆、五顆都一樣) */
html[data-ui-skin] .shell-nav button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 0; min-height: 56px; padding: 4px;
}
.nav-ic { width: 24px; height: 24px; background: center / contain no-repeat; image-rendering: pixelated; }
.nav-lbl { font-size: 11px; line-height: 1.3; }
body:not(.dock-labels) .shell-nav .nav-lbl { display: none; }
.nav-dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 999px; background: var(--danger); }
.nav-dot[hidden] { display: none; }
html[data-ui-skin] .shell-nav button.cur { border-color: var(--accent) !important; color: var(--accent) !important; }
html[data-ui-skin] .shell-nav button.nav-center { border-color: var(--accent) !important; }

/* ── 頁籤群組(同一個導覽入口底下的幾個面板)────────────────── */
.page-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px; margin: 0 0 12px; background: var(--surface); }
html[data-ui-skin] .page-tabs button { flex: 1; min-width: 0; min-height: 44px; font-size: 13px; }
html[data-ui-skin] .page-tabs button[aria-selected="true"] { border-color: var(--accent) !important; color: var(--accent) !important; }

/* ── 手機橫拿:請轉回直式 ────────────────────────────────────── */
#rotate-hint {
  position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg); color: var(--text); font-size: 15px; text-align: center;
}
#rotate-hint[hidden] { display: none; }

/* ── 出擊結算全頁(一定要自己按掉;放在遊戲畫面那一層裡)──────── */
.shell-result { position: absolute; inset: 0; z-index: 58; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; background: var(--bg); }
.shell-result[hidden], .shell-result [hidden] { display: none; }
.sr-box { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 448px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.sr-title { margin: 0; font-size: 20px; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.sr-sub { margin: 0; font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.sr-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.sr-hero-l { font-size: 11px; color: var(--mute); }
.sr-hero-v { font-size: 28px; line-height: 1.2; color: var(--gold); overflow-wrap: anywhere; }
.sr-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.sr-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 14px; }
.sr-row dt { font-size: 11px; color: var(--mute); }
.sr-row dd { margin: 0; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sr-chip { padding: 4px 8px; border-radius: 999px; background: var(--surface-2); font-size: 11px; color: var(--text); }
.sr-note { margin: 0; font-size: 11px; color: var(--mute); }
.sr-actions { display: grid; gap: 8px; }
html[data-ui-skin] .shell-result .sr-actions button { min-height: 48px; font-size: 15px; }

/* ── 登入 / 創角也在同一個直版框裡 ───────────────────────────── */
body > .screen { width: var(--phone-width, 100%); max-width: 480px; margin: 0 auto; }
