* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f4f8;
  color: #1f2d3d;
}

/* boot loading */
.boot {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1d2b48 0%, #243b63 60%, #2b4a7e 100%);
  z-index: 9999;
}
.boot-card { text-align: center; color: #fff; }
.boot-title { font-size: 20px; font-weight: 600; letter-spacing: 2px; margin-top: 18px; }
.boot-tip { font-size: 13px; opacity: .75; margin-top: 8px; line-height: 1.6; }
.boot-spinner {
  width: 44px; height: 44px; margin: 0 auto; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18); border-top-color: #6ea8fe;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* layout */
.ga-layout { height: 100%; }
.ga-aside {
  background: linear-gradient(180deg, #1b2740 0%, #223252 100%);
  color: #cdd7ea; width: 220px !important; display: flex; flex-direction: column;
  transition: width .2s;
}
.ga-logo {
  height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 20px;
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ga-logo .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #6ea8fe, #8b5cf6);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.ga-menu { border-right: none; background: transparent; flex: 1; }
.ga-menu .el-menu-item { color: #b6c2d8; height: 48px; margin: 4px 10px; border-radius: 10px; }
.ga-menu .el-menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.ga-menu .el-menu-item.is-active {
  background: linear-gradient(135deg, #3b6fd4, #5a8bf0); color: #fff;
  box-shadow: 0 6px 16px rgba(59,111,212,.35);
}
.ga-side-foot { padding: 14px 18px; font-size: 12px; color: #7d8aa3; border-top: 1px solid rgba(255,255,255,.07); }

.ga-header {
  background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px !important; box-shadow: 0 1px 4px rgba(0,0,0,.04);
  border-bottom: 1px solid #edf0f5;
}
.ga-header .h-title { font-size: 17px; font-weight: 600; }
.ga-header .h-sub { font-size: 12px; color: #97a3b6; margin-left: 10px; }
.ga-header-right { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #6b7787; }
.ga-header-right a { color: #3b6fd4; text-decoration: none; }
.ga-main { padding: 20px; overflow: auto; }

/* cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: 14px; padding: 18px 20px; position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(31,45,61,.05);
}
.stat-card .label { font-size: 13px; color: #8a95a6; }
.stat-card .value { font-size: 28px; font-weight: 700; margin-top: 8px; color: #1f2d3d; }
.stat-card .accent { position: absolute; right: -20px; top: -20px; width: 70px; height: 70px; border-radius: 50%; opacity: .12; }
.stat-card.c1 .accent { background: #3b6fd4; } .stat-card.c1 .value { color: #2f5fc0; }
.stat-card.c2 .accent { background: #22a06b; } .stat-card.c2 .value { color: #1f8f5e; }
.stat-card.c3 .accent { background: #e0a800; } .stat-card.c3 .value { color: #c79400; }
.stat-card.c4 .accent { background: #8b5cf6; } .stat-card.c4 .value { color: #7c4dee; }
.stat-card.c5 .accent { background: #e0496b; } .stat-card.c5 .value { color: #d13a5c; }

.panel {
  background: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(31,45,61,.05);
}
.panel-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel-title .bar { width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(#3b6fd4, #8b5cf6); }
.kv { font-size: 13px; color: #55606e; line-height: 2; }
.kv b { color: #2a3340; font-weight: 600; }
.kv code { background: #f3f5f9; padding: 1px 6px; border-radius: 5px; font-size: 12px; color: #3b6fd4; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }

/* game icon */
.gicon { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; display: block; background: #eef1f6; }
.gicon-ph {
  width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(135deg, #dbe4f2, #c9d6ec);
  color: #6b7fa5; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.game-name { font-weight: 600; color: #232c3a; }
.game-name .en { font-weight: 400; color: #97a3b6; font-size: 12px; margin-left: 6px; }
.folder-tag { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #6b7787; background: #f3f5f9; padding: 1px 8px; border-radius: 6px; }

.cat-icon { width: 26px; height: 26px; object-fit: contain; }
.uploader-tip { font-size: 12px; color: #97a3b6; margin-top: 4px; }

.el-table { border-radius: 10px; }
.el-table th.el-table__cell { background: #f7f9fc !important; color: #55606e; font-weight: 600; }
.el-button--primary { --el-button-bg-color: #3b6fd4; --el-button-border-color: #3b6fd4; }

.form-icon-preview {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #eef1f6;
  border: 1px solid #e6eaf2;
}
.mono { font-family: ui-monospace, Consolas, monospace; }
.muted { color: #97a3b6; }
