:root {
  --bg: #081024;
  --bg-elev: #101b36;
  --bg-card: #142244;
  --bg-card-soft: rgba(20, 34, 68, 0.84);
  --border: rgba(244, 198, 86, 0.22);
  --border-strong: rgba(244, 198, 86, 0.55);
  --gold: #f4c656;
  --gold-bright: #ffe28a;
  --cream: #fff5db;
  --ink: #ecf2ff;
  --muted: #9eb1d6;
  --mint: #5ae3b7;
  --coral: #ff7575;
  --blue-accent: #5fa8ff;
  --shadow: 0 14px 36px rgba(3, 8, 22, 0.55);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #162854 0%, #091229 52%, #050a18 100%);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.app-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 16, 36, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.masthead-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--gold);
  object-fit: cover;
  flex: none;
}

.brand-copy { min-width: 0; }
.brand-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.brand-row h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--cream);
}
.brand-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(244, 198, 86, 0.14);
  border: 1px solid rgba(244, 198, 86, 0.35);
  padding: 1px 7px;
  border-radius: 999px;
}
.ver-tag {
  font-size: 11px;
  color: var(--muted);
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(95, 168, 255, 0.14);
  color: #a4d0ff;
}
.mode-pill.online {
  background: rgba(90, 227, 183, 0.16);
  color: var(--mint);
}
.mode-pill.local {
  background: rgba(244, 198, 86, 0.16);
  color: var(--gold-bright);
}
.mode-pill.spectator {
  background: rgba(114, 192, 255, 0.18);
  color: #8fd4ff;
  border: 1px solid rgba(114, 192, 255, 0.35);
}
.mode-pill.maintenance {
  background: rgba(255, 146, 86, 0.2);
  color: #ffb88a;
  border: 1px solid rgba(255, 146, 86, 0.45);
}
.ticket-slot.maintenance-note {
  background: rgba(255, 146, 86, 0.14);
  border: 1px dashed rgba(255, 146, 86, 0.5);
  color: #ffd3b6;
  white-space: normal;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ticket-slot.spectator-note {
  background: rgba(114, 192, 255, 0.12);
  border: 1px dashed rgba(114, 192, 255, 0.42);
  color: #c9e8ff;
  white-space: normal;
  line-height: 1.4;
}

.bgm-track {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.bgm-track:hover { color: var(--gold-bright); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.chip-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--border-strong); }
.chip-btn:active { transform: scale(0.97); }
.chip-btn b { color: var(--gold); font-weight: 700; }
.chip-btn[aria-pressed="false"] b { color: var(--muted); }
.chip-btn.accent-outline { border-color: var(--border-strong); color: var(--gold-bright); }

/* Airdrop Banner */
.airdrop-banner {
  max-width: 1040px;
  width: calc(100% - 32px);
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(244, 198, 86, 0.24), rgba(90, 227, 183, 0.18));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.airdrop-banner[hidden] { display: none; }
.airdrop-tag {
  background: var(--gold);
  color: #141c33;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  flex: none;
}
.airdrop-banner p { margin: 0; flex: 1; color: var(--cream); }
.airdrop-banner button {
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 15px;
  padding: 2px 6px;
}

/* Main */
.main-wrap {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 16px 28px;
  flex: 1;
}

/* Hero Spaceport Board */
.hero-board {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 36, 0.58) 0%, rgba(10, 19, 44, 0.88) 62%, rgba(8, 15, 34, 0.96) 100%),
    url('./assets/hero-sky.webp') center 28% / cover no-repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-theme-banner {
  text-align: center;
  padding: 6px 10px 10px;
  border-bottom: 1px solid rgba(244, 198, 86, 0.2);
}
.theme-zh {
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.theme-en {
  margin-top: 3px;
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 245, 219, 0.78);
  font-family: Georgia, "Times New Roman", serif;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.round-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--cream);
  background: rgba(9, 17, 39, 0.72);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.round-chip .sep { color: var(--muted); }

.wallet-chip {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(15, 27, 56, 0.84);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.wallet-chip:hover { background: rgba(24, 42, 82, 0.94); }
.wallet-chip.readonly { cursor: default; }
.wallet-chip.readonly:hover { background: rgba(15, 27, 56, 0.84); }
.wallet-name {
  color: var(--cream);
  font-weight: 600;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallet-coins {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.wallet-coins strong {
  font-size: 16px;
  font-weight: 800;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  background: rgba(10, 20, 46, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
}
.clock-digits {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.clock-digits.locked { color: var(--coral); }
.pool-digits {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.pool-digits small {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}
.metric-sub {
  font-size: 12px;
  color: #b7c9ec;
}

/* Last Round Winner Spotlight (Hall of Honor) */
.last-winner-spotlight {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 16px;
  padding: 13px 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 224, 130, 0.22), transparent 48%),
    linear-gradient(125deg, rgba(66, 44, 10, 0.72) 0%, rgba(21, 31, 66, 0.94) 55%, rgba(48, 34, 8, 0.76) 100%);
  border: 1.5px solid rgba(255, 212, 102, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 200, 0.24),
    0 8px 24px rgba(244, 198, 86, 0.16),
    0 0 0 1px rgba(255, 220, 130, 0.14);
}
.last-winner-spotlight[hidden] { display: none; }
.last-winner-spotlight.is-my-win {
  border-color: rgba(90, 227, 183, 0.85);
  background:
    radial-gradient(circle at 14% 20%, rgba(90, 227, 183, 0.24), transparent 50%),
    linear-gradient(125deg, rgba(16, 66, 52, 0.78) 0%, rgba(20, 34, 68, 0.94) 55%, rgba(62, 46, 12, 0.78) 100%);
  box-shadow:
    inset 0 1px 0 rgba(220, 255, 240, 0.28),
    0 8px 26px rgba(90, 227, 183, 0.20);
}
.last-winner-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 35%, rgba(255, 236, 170, 0.12) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}
.lws-ship-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 13px;
  background: linear-gradient(160deg, #ffe792 0%, #f4c656 58%, #c98c1e 100%);
  color: #1c1303;
  box-shadow: 0 4px 14px rgba(244, 198, 86, 0.36);
}
.lws-crown {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.lws-ship-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.lws-ship-sub {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.82;
}
.lws-main-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lws-head-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lws-kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}
.lws-rule-pill {
  font-size: 11px;
  font-weight: 700;
  color: #ffeab3;
  background: rgba(244, 198, 86, 0.16);
  border: 1px solid rgba(244, 198, 86, 0.42);
  padding: 2px 8px;
  border-radius: 999px;
}
.lws-my-badge {
  font-size: 11px;
  font-weight: 800;
  color: #0b2218;
  background: linear-gradient(135deg, #7ef5ce, #5ae3b7);
  padding: 2px 9px;
  border-radius: 999px;
}
.lws-winners-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lws-winners-label {
  font-size: 12px;
  color: #dcd2b4;
  font-weight: 600;
}
.lws-winner-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff5d6;
  background: linear-gradient(135deg, rgba(244, 198, 86, 0.28), rgba(214, 148, 32, 0.22));
  border: 1px solid rgba(255, 214, 107, 0.62);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}
.lws-winner-tag.me {
  color: #072219;
  background: linear-gradient(135deg, #8df8d6, #5ae3b7);
  border-color: #a9ffe5;
}
.lws-payout-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.lws-payout-num {
  font-size: 20px;
  font-weight: 900;
  color: #ffe38e;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.lws-payout-sub {
  font-size: 11.5px;
  color: #d6deef;
}
.lws-history-btn {
  appearance: none;
  margin-top: 2px;
  border: 1px solid rgba(255, 214, 107, 0.56);
  background: rgba(244, 198, 86, 0.14);
  color: #ffe69c;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.lws-history-btn:hover { background: rgba(244, 198, 86, 0.26); }
.lws-history-btn:active { transform: scale(0.97); }

.boarding-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(9, 17, 39, 0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
}

.boarding-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.boarding-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
}
.boarding-title em {
  font-style: normal;
  color: var(--gold);
  margin-left: 4px;
}

.ticket-slots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-slot {
  min-width: 68px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ticket-slot.filled {
  background: linear-gradient(135deg, #f6cf67, #d69d2c);
  color: #161f38;
  box-shadow: 0 3px 10px rgba(244, 198, 86, 0.32);
}
.ticket-slot.empty {
  border: 1px dashed rgba(244, 198, 86, 0.38);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.ticket-slot.bonus {
  background: linear-gradient(135deg, #ff85c0, #e84393);
  color: #fff5fa;
  box-shadow: 0 3px 10px rgba(255, 110, 180, 0.36);
}

.boarding-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkin-cta {
  appearance: none;
  border: 1px solid rgba(255, 196, 92, 0.55);
  background: linear-gradient(135deg, #ffcf6d, #f09336);
  color: #231304;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(244, 173, 66, 0.3);
  transition: transform 0.12s, filter 0.15s;
}
.checkin-cta:hover { filter: brightness(1.06); }
.checkin-cta:active { transform: scale(0.97); }
.checkin-cta:disabled { opacity: 0.6; cursor: wait; }
.checkin-cta.has-festival {
  background: linear-gradient(135deg, #ff92b7, #f8c95b);
  border-color: rgba(255, 195, 219, 0.85);
  color: #240c18;
  box-shadow: 0 4px 16px rgba(255, 146, 183, 0.36);
}
.checkin-cta.unclaimed {
  animation: checkinPulse 2.2s ease-in-out infinite;
}
.checkin-cta.checked-in {
  background: rgba(114, 176, 255, 0.18);
  border-color: rgba(114, 176, 255, 0.45);
  color: #cfe6ff;
  box-shadow: none;
}
@keyframes checkinPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(244, 173, 66, 0.28); }
  50% { box-shadow: 0 4px 20px rgba(244, 198, 86, 0.62); }
}

.demo-cta {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #43d9a8, #28a98a);
  color: #07221c;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(67, 217, 168, 0.28);
  transition: transform 0.12s, filter 0.15s;
}
.demo-cta:hover { filter: brightness(1.06); }
.demo-cta:active { transform: scale(0.97); }

.ghost-cta {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.ghost-cta:hover { background: rgba(255, 255, 255, 0.14); }

.primary-btn {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #f6cf67, #df9f28);
  color: #161d34;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.primary-btn:hover { filter: brightness(1.06); }
.primary-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.danger-btn {
  appearance: none;
  border: 0;
  background: var(--coral);
  color: #1c0b0e;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex: none;
}

.bankrupt-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 117, 117, 0.16);
  border: 1px solid rgba(255, 117, 117, 0.55);
}
.bankrupt-alert[hidden] { display: none; }
.bankrupt-mini-frog {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
.bankrupt-alert strong { color: #ffb4b4; font-size: 14px; }
.bankrupt-alert p { margin: 3px 0 0; font-size: 12px; color: #ffe0e0; line-height: 1.45; }

/* Navigation Tabs */
.tab-bar {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 27, 54, 0.85);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--cream); border-color: var(--border-strong); }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(244, 198, 86, 0.24), rgba(244, 198, 86, 0.1));
  border-color: var(--gold);
  color: var(--gold-bright);
}
.tab-badge {
  background: var(--coral);
  color: #1a0b0d;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.tab-panel {
  margin-top: 14px;
}
.tab-panel[hidden] { display: none; }

.public-calls-bar {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.2), rgba(244, 198, 86, 0.1) 55%, rgba(18, 28, 56, 0.92));
  border: 1px solid rgba(255, 159, 86, 0.58);
  box-shadow: 0 6px 20px rgba(255, 128, 48, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.public-calls-bar[hidden] { display: none; }
.public-call-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 179, 102, 0.78);
  flex-shrink: 0;
}
.public-call-main {
  flex: 1;
  min-width: 220px;
}
.public-call-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--cream);
}
.public-call-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9947, #ff6b3d);
  color: #1c0b04;
}
.public-call-ships {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.public-ship-pill {
  appearance: none;
  border: 1px solid rgba(255, 179, 102, 0.65);
  background: rgba(255, 138, 61, 0.22);
  color: #ffe2bd;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.public-ship-pill:hover {
  background: rgba(255, 138, 61, 0.38);
  transform: translateY(-1px);
}
.public-call-note {
  margin: 5px 0 0;
  font-size: 12px;
  color: #ffdcb8;
  line-height: 1.45;
}

.ship-cell.daxiao-pick {
  box-shadow: inset 0 -2px 0 rgba(255, 138, 61, 0.85);
}
.daxiao-tag {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 9px;
  font-weight: 800;
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(255, 118, 56, 0.88);
  color: #1b0a03;
  line-height: 1.35;
}

.daxiao-warn-box {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 138, 61, 0.16);
  border: 1px solid rgba(255, 159, 86, 0.55);
  color: #ffd7ae;
  font-size: 12px;
  line-height: 1.5;
}

.bot-card.public-oracle {
  border-color: rgba(255, 159, 86, 0.72);
  background: linear-gradient(145deg, rgba(255, 138, 61, 0.16), rgba(20, 29, 58, 0.96) 55%);
  box-shadow: 0 8px 24px rgba(255, 128, 48, 0.15);
}
.bot-live-box {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 138, 61, 0.16);
  border: 1px solid rgba(255, 179, 102, 0.5);
  font-size: 12px;
  color: #ffe2bd;
}
.bot-live-title {
  font-weight: 800;
  color: #ffb870;
  margin-bottom: 4px;
}

/* Fleet Matrix */
.fleet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.range-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.range-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.range-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #141b31;
  font-weight: 800;
}
.range-btn.range-discount {
  border-color: rgba(90, 227, 183, 0.48);
  color: #8bf3cf;
  background: rgba(90, 227, 183, 0.1);
}
.range-btn.range-discount.active {
  background: linear-gradient(135deg, #5ae3b7, #2ec997);
  border-color: #5ae3b7;
  color: #09201a;
}
.range-btn.range-premium {
  border-color: rgba(255, 102, 118, 0.58);
  color: #ffb8c0;
  background: rgba(235, 68, 88, 0.16);
}
.range-btn.range-premium.active {
  background: linear-gradient(135deg, #ff6b7a, #e23b52);
  border-color: #ff8e99;
  color: #21070b;
}
.range-btn.range-empty {
  border-color: rgba(139, 123, 255, 0.58);
  color: #cfc4ff;
  background: rgba(114, 59, 255, 0.16);
}
.range-btn.range-empty.active {
  background: linear-gradient(135deg, #8b7bff, #622ee8);
  border-color: #b1a3ff;
  color: #ffffff;
}

.random-bet-cta {
  appearance: none;
  border: 1px solid rgba(90, 227, 183, 0.65);
  background: linear-gradient(135deg, #5ae3b7, #2bc091);
  color: #082019;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(58, 212, 162, 0.28);
  transition: transform 0.12s, filter 0.15s;
}
.random-bet-cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.random-bet-cta:active { transform: scale(0.97); }

.hint-discount {
  color: #7bf2cb;
  font-weight: 700;
}
.hint-premium {
  color: #ff99a4;
  font-weight: 700;
}
.hint-empty {
  color: #c2b2ff;
  font-weight: 700;
}

.fleet-extras {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle-heat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.mini-gold-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(244, 198, 86, 0.14);
  color: var(--gold-bright);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.mini-gold-btn:hover { background: rgba(244, 198, 86, 0.26); }

.fleet-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.fleet-hint b { color: var(--cream); }

.ship-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.ship-cell {
  position: relative;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(22, 37, 74, 0.9), rgba(14, 24, 52, 0.95));
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 4px 8px;
  min-height: 66px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ship-cell:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(244, 198, 86, 0.18);
}
.ship-cell:active:not(:disabled) { transform: scale(0.96); }
.ship-cell:disabled { opacity: 0.56; cursor: not-allowed; }

.ship-num {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}
.ship-sub {
  font-size: 10px;
  color: var(--muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.ship-cell.mine {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(244, 198, 86, 0.34), rgba(173, 121, 22, 0.24));
  box-shadow: 0 0 0 1px var(--gold), 0 6px 16px rgba(244, 198, 86, 0.25);
  opacity: 1 !important;
}
.ship-cell.mine .ship-num { color: var(--gold-bright); }
.ship-cell.mine .ship-sub { color: var(--cream); font-weight: 700; }

.ship-cell.bonus-owned {
  border-color: #ff6eb4;
  background: linear-gradient(180deg, rgba(164, 34, 102, 0.72), rgba(74, 16, 52, 0.88));
  box-shadow: 0 0 0 1px #ff6eb4, 0 6px 16px rgba(255, 110, 180, 0.34);
  opacity: 1 !important;
}
.ship-cell.bonus-owned .ship-num { color: #ffd6ec; }
.ship-cell.bonus-owned .ship-sub { color: #ffeaf5; font-weight: 800; }

.ship-cell.empty-s1 {
  border-color: rgba(139, 123, 255, 0.62);
  background: linear-gradient(180deg, rgba(64, 48, 134, 0.76), rgba(32, 24, 78, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(139, 123, 255, 0.28);
}
.ship-cell.empty-s1 .ship-num { color: #e2dbff; }
.ship-cell.empty-s1 .ship-sub { color: #cabfff; font-weight: 700; }

.ship-cell.empty-s2 {
  border-color: rgba(114, 59, 255, 0.78);
  background: linear-gradient(180deg, rgba(84, 38, 178, 0.84), rgba(40, 18, 96, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(139, 92, 255, 0.42), 0 6px 14px rgba(114, 59, 255, 0.24);
}
.ship-cell.empty-s2 .ship-num { color: #efe8ff; }
.ship-cell.empty-s2 .ship-sub { color: #dfc9ff; font-weight: 800; }

.ship-cell.empty-s3 {
  border-color: #9e7cff;
  background: linear-gradient(180deg, rgba(72, 18, 168, 0.94), rgba(28, 6, 74, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(158, 124, 255, 0.56), 0 8px 18px rgba(84, 24, 200, 0.36);
}
.ship-cell.empty-s3 .ship-num { color: #f6efff; }
.ship-cell.empty-s3 .ship-sub { color: #e8d8ff; font-weight: 800; }

.ship-cell.tier-discount {
  border-color: rgba(90, 227, 183, 0.55);
  background: linear-gradient(180deg, rgba(22, 66, 62, 0.88), rgba(11, 35, 42, 0.96));
  box-shadow: inset 0 0 0 1px rgba(90, 227, 183, 0.18);
}
.ship-cell.tier-discount .ship-sub {
  color: #7df2cb;
  font-weight: 700;
}
.ship-cell.tier-premium {
  border-color: rgba(255, 98, 114, 0.62);
  background: linear-gradient(180deg, rgba(108, 26, 40, 0.88), rgba(48, 14, 24, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 132, 144, 0.22);
}
.ship-cell.tier-premium .ship-sub {
  color: #ffb0b9;
  font-weight: 700;
}

.tier-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 5px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.tier-tag.discount {
  background: rgba(90, 227, 183, 0.26);
  color: #8bf7d2;
  border: 1px solid rgba(90, 227, 183, 0.45);
}
.tier-tag.premium {
  background: rgba(255, 86, 104, 0.3);
  color: #ffd0d5;
  border: 1px solid rgba(255, 118, 132, 0.56);
}
.tier-tag.empty-tag {
  background: rgba(114, 59, 255, 0.38);
  color: #e6dcff;
  border: 1px solid rgba(164, 136, 255, 0.62);
}

.tier-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}
.tier-pill.discount {
  background: rgba(90, 227, 183, 0.2);
  color: #8bf7d2;
  border: 1px solid rgba(90, 227, 183, 0.48);
}
.tier-pill.premium {
  background: rgba(255, 86, 104, 0.24);
  color: #ffc8ce;
  border: 1px solid rgba(255, 118, 132, 0.55);
}
.tier-pill.empty-ship {
  background: rgba(114, 59, 255, 0.28);
  color: #e4d8ff;
  border: 1px solid rgba(154, 122, 255, 0.58);
}

.ship-cell.last-winner {
  border-color: var(--mint);
  box-shadow: 0 0 0 1px rgba(90, 227, 183, 0.55);
}

.heat-tag {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  background: rgba(95, 168, 255, 0.22);
  color: #b7d9ff;
}
.heat-tag.win {
  background: rgba(90, 227, 183, 0.28);
  color: var(--mint);
}
.heat-tag.hot {
  background: rgba(255, 117, 117, 0.28);
  color: #ffb8b8;
}

/* History & Review */
.empty-state {
  background: var(--bg-card-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-state img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}
.empty-state h3 { margin: 0; color: var(--cream); }
.empty-state p { margin: 0; max-width: 440px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.round-review-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.review-winner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.winner-ship-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6cf67, #d29421);
  color: #141c33;
  font-size: 22px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex: none;
}
.review-winner h3 { margin: 0; font-size: 17px; color: var(--cream); }
.review-winner p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }

.review-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}
.review-stat {
  background: rgba(8, 16, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
}
.review-stat span { display: block; color: var(--muted); font-size: 11px; }
.review-stat strong { color: var(--gold-bright); font-size: 14px; }

.heatmap-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.mini-heatmap {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 3px;
}
.hm-cell {
  appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  aspect-ratio: 1;
  border-radius: 4px;
  font-size: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.36);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.hm-cell:hover,
.hm-cell:focus-visible {
  outline: none;
  transform: scale(1.14);
  z-index: 2;
  filter: brightness(1.18);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.72);
  color: #fff;
}
.hm-cell.c1 { background: rgba(95, 168, 255, 0.34); color: #fff; }
.hm-cell.c2 { background: rgba(244, 198, 86, 0.45); color: #fff; }
.hm-cell.c3 { background: rgba(255, 117, 117, 0.58); color: #fff; }
.hm-cell.win {
  background: var(--mint);
  color: #072019;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(90, 227, 183, 0.7);
}
.hm-cell.win:hover,
.hm-cell.win:focus-visible {
  color: #041711;
  box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(90, 227, 183, 0.9);
}

/* History Ship Picker Modal */
.hm-picker-summary {
  background: rgba(8, 16, 36, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 12px;
}
.hm-picker-summary.win {
  border-color: rgba(90, 227, 183, 0.65);
  background: rgba(16, 48, 44, 0.65);
}
.hm-picker-ship {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-bright);
}
.hm-picker-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.hm-picker-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.hm-picker-badge.count {
  background: rgba(95, 168, 255, 0.2);
  color: #a9d3ff;
}
.hm-picker-badge.win {
  background: rgba(90, 227, 183, 0.22);
  color: var(--mint);
}
.hm-picker-badge.lose {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.hm-picker-lore {
  margin: 8px 0 0;
  font-size: 12px;
  color: #c9daf6;
  line-height: 1.5;
}
.hm-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46dvh;
  overflow-y: auto;
  padding-right: 2px;
}
.hm-picker-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hm-picker-row.is-win {
  border-color: rgba(90, 227, 183, 0.45);
  background: rgba(20, 58, 50, 0.45);
}
.hm-picker-row.is-me {
  border-color: rgba(244, 198, 86, 0.6);
  background: rgba(244, 198, 86, 0.12);
}
.hm-picker-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(244, 198, 86, 0.4);
  flex: none;
  background: rgba(8, 16, 36, 0.8);
}
.hm-picker-avatar.placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 15px;
}
.hm-picker-main {
  min-width: 0;
  flex: 1;
}
.hm-picker-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hm-picker-name {
  font-size: 13px;
  color: var(--cream);
}
.tag-human {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(244, 198, 86, 0.22);
  color: var(--gold-bright);
  font-weight: 700;
  flex: none;
}
.hm-picker-cost {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.hm-picker-reason {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.hm-picker-loading,
.hm-picker-empty {
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

/* Bots Grid */
.section-intro {
  margin-bottom: 14px;
}
.bots-intro-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bot-filter-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.bot-filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #141c33;
}
.bot-gender {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  flex: none;
}
.bot-gender.male {
  background: rgba(95, 168, 255, 0.2);
  color: #9ecbff;
}
.bot-gender.female {
  background: rgba(255, 145, 185, 0.2);
  color: #ffb8d2;
}
.bot-philosophy {
  margin: 6px 0 0;
  padding: 6px 9px;
  border-left: 2.5px solid var(--gold);
  background: rgba(244, 198, 86, 0.07);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: var(--cream);
  line-height: 1.5;
}
.bot-method {
  margin-top: 7px;
  font-size: 11px;
  color: #a9c6f7;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bot-method b { color: var(--gold-bright); font-weight: 700; }

.scratch-label {
  flex: none;
  color: #9ebae8;
  font-weight: 700;
}
.scratch-secret-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 170px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(8, 16, 36, 0.78);
  border: 1px dashed rgba(244, 198, 86, 0.42);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.scratch-secret-text {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--gold-bright);
  transition: opacity 0.25s;
}
.scratch-wrap:not(.revealed) .scratch-secret-text {
  opacity: 0.96;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  border-radius: 7px;
  transition: opacity 0.35s ease;
}
.scratch-canvas:active {
  cursor: grabbing;
}
.scratch-wrap.revealed .scratch-canvas {
  opacity: 0;
  pointer-events: none;
}
.scratch-wrap.revealed .scratch-secret-box {
  border-style: solid;
  border-color: rgba(90, 227, 183, 0.45);
  background: rgba(14, 34, 58, 0.72);
}
.scratch-done-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--mint);
  background: rgba(90, 227, 183, 0.14);
  border: 1px solid rgba(90, 227, 183, 0.35);
  padding: 1px 6px;
  border-radius: 999px;
  flex: none;
}
.section-intro h2 { margin: 0; font-size: 18px; color: var(--cream); }
.section-intro p { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.bots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bot-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bot-card.bankrupt {
  border-color: rgba(255, 117, 117, 0.55);
  background: rgba(46, 20, 32, 0.72);
}
.bot-card.visionary {
  border-color: rgba(196, 152, 255, 0.65);
  background: linear-gradient(135deg, rgba(36, 24, 68, 0.9), rgba(18, 28, 60, 0.92));
  box-shadow: 0 0 22px rgba(162, 114, 255, 0.22);
}
.bot-card.visionary .bot-style {
  background: linear-gradient(135deg, rgba(196, 152, 255, 0.28), rgba(244, 198, 86, 0.24));
  color: #f4dcff;
}

.bot-avatar {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  flex: none;
}

.bot-body { min-width: 0; flex: 1; }
.bot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.bot-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--cream);
}
.bot-style {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(244, 198, 86, 0.14);
  padding: 2px 7px;
  border-radius: 999px;
}
.bot-coins {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.bot-coins.dead { color: var(--coral); }
.bot-bio {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.bot-diary {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(8, 16, 36, 0.65);
  font-size: 12px;
  color: #dce7ff;
  line-height: 1.45;
}
.bot-diary.has-last {
  border: 1px solid rgba(255, 198, 109, 0.22);
}
.bot-diary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.bot-diary-badge {
  background: rgba(255, 198, 109, 0.18);
  color: #ffd48a;
  border: 1px solid rgba(255, 198, 109, 0.45);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.bot-diary-note {
  font-size: 11px;
  color: #8fa3c9;
}
.bot-picks {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.bot-pick-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(95, 168, 255, 0.2);
  color: #c2e0ff;
}
.bot-pick-pill.win {
  background: var(--mint);
  color: #07221c;
}

/* Bankrupt Reflection Wall */
.wall-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(64, 22, 34, 0.72), rgba(20, 30, 58, 0.85));
  border: 1px solid rgba(255, 117, 117, 0.45);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.wall-mascot {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: none;
}
.wall-header h2 { margin: 0; font-size: 18px; color: #ffd4d4; }
.wall-header p { margin: 4px 0 0; font-size: 13px; color: #f2c9d0; line-height: 1.5; }

.reflection-editor {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.reflection-editor[hidden] { display: none; }
.reflection-editor label { display: block; font-size: 13px; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.reflection-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reflection-row input {
  flex: 1;
  min-width: 200px;
  background: rgba(8, 16, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
}

.bankrupt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wall-card {
  background: rgba(34, 18, 28, 0.82);
  border: 1px solid rgba(255, 117, 117, 0.35);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.wall-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--coral);
  flex: none;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #ffd4d4;
}
.wall-quote {
  margin: 6px 0 0;
  font-size: 13px;
  color: #ffecec;
  font-style: italic;
  line-height: 1.5;
}
.wall-meta {
  font-size: 11px;
  color: #d9a0aa;
  margin-top: 4px;
}

/* Rank & Ledger */
.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.rank-block {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.rank-block h2 { margin: 0 0 12px; font-size: 16px; color: var(--cream); }

.rank-row, .ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}
.rank-row:last-child, .ledger-row:last-child { border-bottom: 0; }
.rank-row.me {
  background: rgba(244, 198, 86, 0.14);
  border-radius: 10px;
  padding-inline: 10px;
}
.rank-row.rank-self-pin {
  margin-bottom: 6px;
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(244, 198, 86, 0.22), rgba(244, 198, 86, 0.08));
}
.rank-row.rank-self-pin .rank-num {
  width: auto;
  min-width: 44px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(244, 198, 86, 0.22);
  color: var(--gold-bright);
  font-size: 11px;
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.rank-num {
  width: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--gold);
  flex: none;
}
.rank-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(244, 198, 86, 0.45);
  background: rgba(255, 255, 255, 0.08);
  flex: none;
}
.rank-avatar.placeholder {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-bright);
}
.rank-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-bonus {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 110, 180, 0.24);
  color: #ff9fd0;
  border: 1px solid rgba(255, 110, 180, 0.45);
  font-weight: 700;
  flex: none;
}
.bot-fortune-line {
  margin: 4px 0 2px;
  font-size: 11px;
  color: #a8dfcf;
}
.bot-fortune-line b { color: var(--gold-bright); }

/* Checkin & Fortune Modal */
.fortune-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(8, 16, 36, 0.8);
  border: 1px solid var(--border-strong);
}
.fortune-card.lucky-high {
  border-color: rgba(244, 198, 86, 0.72);
  background: linear-gradient(135deg, rgba(66, 46, 14, 0.68), rgba(14, 24, 52, 0.86));
}
.fortune-card.lucky-mid {
  border-color: rgba(90, 227, 183, 0.52);
  background: linear-gradient(135deg, rgba(14, 52, 48, 0.56), rgba(14, 24, 52, 0.86));
}
.fortune-card.lucky-low {
  border-color: rgba(255, 117, 117, 0.55);
  background: linear-gradient(135deg, rgba(58, 22, 32, 0.62), rgba(14, 24, 52, 0.86));
}
.fortune-seal {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6cf67, #d68b24);
  color: #1c1204;
  font-size: 20px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 6px 16px rgba(244, 198, 86, 0.35);
}
.fortune-card.lucky-low .fortune-seal {
  background: linear-gradient(135deg, #ff9999, #cf5667);
  color: #21070b;
}
.fortune-main { min-width: 0; flex: 1; }
.fortune-title { font-size: 14px; font-weight: 800; color: var(--cream); }
.fortune-coins { margin-top: 3px; font-size: 13px; color: var(--mint); }
.fortune-coins strong { color: var(--gold-bright); font-size: 15px; }
.fortune-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  font-size: 12px;
  color: #d6e4ff;
}
.bonus-frog-box {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(116, 24, 76, 0.45);
  border: 1px solid rgba(255, 110, 180, 0.58);
  font-size: 12px;
  color: #ffeaf5;
}
.bonus-frog-head { font-size: 13px; font-weight: 800; color: #ff8dc7; margin-bottom: 6px; }
.bonus-frog-list { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.bonus-ship-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 110, 180, 0.28);
  color: #ffd6ec;
  font-weight: 800;
}
.checkin-rule-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.tag-bot {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(95, 168, 255, 0.22);
  color: #a9d3ff;
  flex: none;
}
.tag-dead {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(255, 117, 117, 0.24);
  color: #ffb8b8;
  flex: none;
}
.rank-bal { font-weight: 800; color: var(--gold-bright); font-variant-numeric: tabular-nums; flex: none; }

.ledger-delta.plus { color: var(--mint); font-weight: 800; font-variant-numeric: tabular-nums; }
.ledger-delta.minus { color: var(--coral); font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger-time { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.site-footer p { margin: 4px 0; }
#footer-quote { color: var(--gold); font-weight: 600; }
.footer-qq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cream);
  font-size: 13px;
}
.footer-qq strong { color: var(--gold-bright); letter-spacing: 0.04em; }

.qq-copy-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(244, 198, 86, 0.16);
  color: var(--gold-bright);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.qq-copy-btn:hover { background: rgba(244, 198, 86, 0.3); }

/* Opening Theme Splash */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 10, 24, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.intro-splash[hidden] { display: none; }

.intro-card {
  width: min(480px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border-radius: 22px;
  border: 1.5px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(11, 20, 44, 0.82) 0%, rgba(9, 16, 36, 0.96) 55%),
    url('./assets/hero-sky.webp') center top / cover no-repeat;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78);
  padding: 26px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.intro-art-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.intro-avatar {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  object-fit: cover;
}
.intro-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(244, 198, 86, 0.14);
  border: 1px solid rgba(244, 198, 86, 0.36);
  padding: 3px 12px;
  border-radius: 999px;
}
.intro-zh {
  margin: 4px 0 0;
  font-size: clamp(24px, 5.5vw, 31px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}
.intro-en {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
}
.intro-brief {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #cfe0ff;
  background: rgba(8, 16, 36, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
  width: 100%;
}
.intro-brief b { color: var(--gold-bright); }
.intro-qq-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--cream);
}
.intro-qq-box b { color: var(--mint); font-size: 14px; letter-spacing: 0.04em; }
.intro-enter-btn {
  appearance: none;
  border: 0;
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, #f7d26f, #df9d24);
  color: #141c33;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(244, 198, 86, 0.35);
}
.intro-enter-btn:hover { filter: brightness(1.06); }
.intro-portals {
  width: 100%;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.intro-portals-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 8px;
}
.intro-portals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.portal-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(14, 24, 52, 0.82);
  border: 1px solid rgba(244, 198, 86, 0.25);
  color: var(--cream);
  text-decoration: none;
  text-align: left;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.portal-link:hover,
.portal-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold-bright);
  background: rgba(26, 42, 86, 0.92);
}
.portal-emoji {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.portal-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.portal-info strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-info small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-arrow {
  font-size: 12px;
  color: var(--gold);
  flex-shrink: 0;
}
.ship-lore-box {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 20, 46, 0.78);
  border: 1px solid rgba(244, 198, 86, 0.28);
}
.ship-lore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.ship-lore-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
}
.ship-win-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.ship-win-pill.has-wins {
  background: rgba(244, 198, 86, 0.2);
  color: var(--gold-bright);
  border: 1px solid rgba(244, 198, 86, 0.45);
}
.win-count-tag {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(244, 198, 86, 0.22);
  color: var(--gold-bright);
  pointer-events: none;
}
.ship-lore-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #dce9ff;
}

/* Dialog / Modal */
dialog {
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #0f1b38;
  color: var(--ink);
  padding: 0;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}
dialog::backdrop {
  background: rgba(4, 8, 20, 0.74);
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-head h2 { margin: 0; font-size: 17px; color: var(--cream); }
.icon-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
}
.modal-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  max-height: calc(100dvh - 110px);
  font-size: 14px;
  line-height: 1.6;
}

.confirm-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(8, 16, 36, 0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.confirm-hero img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: none;
}
.confirm-ship-title { font-size: 20px; font-weight: 800; color: var(--gold-bright); }
.confirm-quote { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Demo Sandbox inside Modal */
.demo-picks-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin: 10px 0 12px;
}
.demo-ship-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
}
.demo-ship-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #141c33;
}
.demo-result-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 16, 36, 0.75);
  border: 1px solid var(--border-strong);
  margin-bottom: 12px;
}
.demo-result-banner.win {
  border-color: var(--mint);
  background: rgba(20, 62, 54, 0.55);
}
.demo-result-banner img { width: 72px; height: 72px; object-fit: contain; flex: none; }

.rules-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}
.rules-list b { color: var(--gold-bright); }

.name-input {
  width: 100%;
  background: rgba(8, 16, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  margin-top: 8px;
}

.art-frame-img,
.wall-mascot,
.bankrupt-mini-frog,
.confirm-hero img,
.demo-result-banner img {
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  object-fit: cover;
  background: rgba(8, 16, 36, 0.7);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  background: rgba(14, 26, 54, 0.96);
  color: var(--cream);
  border: 1px solid var(--gold);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast[hidden] { display: none; }

/* Responsive */
@media (max-width: 780px) {
  .ship-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bots-grid { grid-template-columns: 1fr; }
  .bankrupt-grid { grid-template-columns: 1fr; }
  .rank-layout { grid-template-columns: 1fr; }
  .mini-heatmap { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .last-winner-spotlight {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
  }
  .lws-payout-col {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 214, 107, 0.28);
  }
  .boarding-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .boarding-actions > * {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .hero-metrics { grid-template-columns: 1fr; }
  .masthead-inner { padding: 8px 12px; }
  .main-wrap { padding: 10px 12px 24px; }
  .bgm-track { display: none; }
  .demo-picks-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Festival Banner & Empty Ship Notes */
.festival-banner {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(164, 34, 102, 0.34), rgba(244, 198, 86, 0.14) 65%, rgba(18, 28, 56, 0.92));
  border: 1px solid rgba(255, 110, 180, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 6px 20px rgba(255, 110, 180, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #ffeaf5;
}
.festival-banner[hidden] { display: none; }
.festival-banner-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.festival-badge {
  background: rgba(255, 110, 180, 0.3);
  border: 1px solid rgba(255, 145, 200, 0.62);
  color: #ffd6ec;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.festival-cta {
  appearance: none;
  border: 1px solid rgba(255, 145, 200, 0.72);
  background: linear-gradient(135deg, #ff85c0, #e84393);
  color: #fff5fa;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.festival-cta:hover { filter: brightness(1.07); }
.festival-claimed {
  font-size: 12px;
  font-weight: 700;
  color: #ffd6ec;
}

.empty-ship-note {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(114, 59, 255, 0.16);
  border: 1px solid rgba(146, 118, 255, 0.48);
  font-size: 12px;
  color: #dfd4ff;
  line-height: 1.5;
}

.empty-fleet-tip {
  grid-column: 1 / -1;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed rgba(139, 123, 255, 0.35);
  border-radius: 12px;
  background: rgba(22, 20, 56, 0.45);
}

/* Ship Grid Skeleton Shimmer */
.ship-skeleton {
  min-height: 66px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(110deg, rgba(20, 34, 68, 0.82) 25%, rgba(44, 68, 122, 0.65) 50%, rgba(20, 34, 68, 0.82) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Subtle glass top highlight & gentle motion */
.hero-card,
.boarding-strip,
.fleet-section,
.round-review-card,
.bot-card,
dialog {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .last-winner-spotlight::after {
    animation: lwsSheen 4.6s ease-in-out infinite;
  }
  .tab-panel.active {
    animation: panelFadeIn 0.18s ease-out;
  }
  dialog[open] {
    animation: modalPopIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  }
}
@keyframes lwsSheen {
  0%, 58% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ship-skeleton { animation: none; }
}
