/* ── Scoring sheet (bottom sheet style) ── */
.sheet-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100; }
.sheet-overlay.open { display: block; }
.score-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; max-height: 88vh; background: var(--color-background-primary); border-radius: 16px 16px 0 0; z-index: 101; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.32,0.72,0,1); }
.score-sheet.open { transform: translateY(0); }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--color-border-secondary); margin: 10px auto 0; flex-shrink: 0; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; flex-shrink: 0; border-bottom: 0.5px solid var(--color-border-tertiary); }
.sheet-title { font-size: 15px; font-weight: 500; color: var(--color-text-primary); }
.sheet-total { font-size: 22px; font-weight: 500; color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
.sheet-body { overflow-y: auto; padding: 8px 0 32px; flex: 1; }

/* ship rows */
.ship-section-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-text-secondary); padding: 8px 16px 4px; }
.ship-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 0.5px solid var(--color-border-tertiary); }
.ship-row:last-of-type { border-bottom: none; }
.ship-info { flex: 1; min-width: 0; }
.ship-name { font-size: 13px; font-weight: 500; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship-pts { font-size: 11px; color: var(--color-text-secondary); margin-top: 1px; }
.ship-pts-earned { font-size: 11px; color: #1D9E75; margin-top: 1px; font-weight: 500; }
.ship-btns { display: flex; gap: 6px; flex-shrink: 0; }
.ship-btn { padding: 5px 10px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); background: transparent; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--color-text-secondary); transition: background 0.1s, color 0.1s, border-color 0.1s; white-space: nowrap; }
.ship-btn.half { }
.ship-btn.full { }
.ship-btn.active-half { background: #FFF7E0; border-color: #D4A017; color: #8a6500; }
.ship-btn.active-full { background: #FFE8E8; border-color: #C0392B; color: #8B0000; }
@media (prefers-color-scheme: dark) {
  .ship-btn.active-half { background: #3a2e00; border-color: #D4A017; color: #f5cc55; }
  .ship-btn.active-full { background: #3a0000; border-color: #C0392B; color: #ff7a7a; }
}

/* mission points row */
.mission-row { padding: 12px 16px; border-top: 0.5px solid var(--color-border-tertiary); }
.mission-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-text-secondary); margin-bottom: 8px; }
.mission-btns { display: flex; gap: 8px; }
.mission-btn { flex: 1; padding: 0.55rem; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--color-text-secondary); text-align: center; transition: background 0.1s, color 0.1s; }
.mission-btn.active { background: #E1F5EE; border-color: #1D9E75; color: #0F6E56; }
@media (prefers-color-scheme: dark) {
  .mission-btn.active { background: #0a2e20; border-color: #1D9E75; color: #4dd9a0; }
}
