/* ==========================================================================
   MMO11 — MINI GAME PARTS (MiniGameParts): the tabs, the progress tree, the ranking — each mini game page places
   them in its own layout. On the EventPage base: white cards, light blue, warm orange; dark text on light.
   ========================================================================== */

.mg-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.mg-tabs button {
  flex: 1;
  border: 1px solid #bfe0fb;
  background: #f3f9ff;
  color: #1d6fb0;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.mg-tabs button.on { background: #2f9be8; border-color: #2f9be8; color: #ffffff; }
.mg-box-title { font-size: 13px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin: 8px 0 6px; }
.mg-empty { font-size: 14px; color: #64748b; text-align: center; padding: 14px; }

/* rewards: icon + amount */
.mg-rw { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; color: #1f2937; white-space: nowrap; }
.mg-rw img { width: 18px; height: 18px; object-fit: contain; }

/* ---------------------------------------------------------------- the tree */
.mg-tree-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; color: #1f2937; }
.mg-tree-head span { font-size: 15px; font-weight: 800; color: #ea580c; }
.mg-tree-bar { height: 10px; border-radius: 5px; background: #e2e8f0; overflow: hidden; margin: 6px 0 10px; }
.mg-tree-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb547, #ff8a3d); }
.mg-tree-scroll { overflow-x: auto; padding-bottom: 6px; }
.mg-tree-grid { display: grid; gap: 6px; align-items: stretch; grid-template-columns: var(--mg-label, 64px) repeat(var(--tiers), var(--mg-cell, 120px)); }
.mg-track-label { display: flex; align-items: center; font-size: 12px; font-weight: 800; color: #15803d; text-transform: uppercase; }
.mg-track-label.premium { color: #b45309; }
.mg-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 6px 4px;
  border-radius: 12px;
  border: 1px solid #e3eef9;
  background: #f8fbff;
  font-family: inherit;
  cursor: default;
}
.mg-cell.premium { background: #fffbeb; border-color: #fde68a; }
.mg-cell.can { border-color: #ff8a3d; background: #fff4e8; box-shadow: 0 4px 12px rgba(255, 138, 61, 0.25); cursor: pointer; }
.mg-cell.done { background: #f0fdf4; border-color: #bbf7d0; }
.mg-cell.locked { opacity: 0.6; }
.mg-cell-state { font-size: 12px; font-weight: 800; color: #64748b; }
.mg-cell.can .mg-cell-state { color: #ea580c; }
.mg-cell.done .mg-cell-state { color: #15803d; }
.mg-tier-no { text-align: center; font-size: 12px; font-weight: 800; color: #94a3b8; }
.mg-tier-no.on { color: #ea580c; }

/* ---------------------------------------------------------------- ranking, prizes */
.mg-rank { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.mg-rank-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: #f8fbff; font-size: 15px; color: #1f2937; }
.mg-rank-row.me { background: #fff4e8; border: 1px solid #ffd7b0; }
.mg-rank-no { font-weight: 900; color: #2f9be8; }
.mg-rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mg-rank-pts { font-weight: 800; color: #64748b; }
.mg-prizes { display: flex; flex-direction: column; gap: 4px; }
.mg-prize { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #1f2937; padding: 4px 8px; border-radius: 10px; background: #fffbeb; }
.mg-prize b { min-width: 46px; color: #b45309; }
