#game-center .workspace-game-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#game-center .workspace-game-library,
#game-center .workspace-game-stage {
  border: 1px solid #dce3ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(27, 39, 64, .08);
}

#game-center .workspace-game-library {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 14px;
}

#game-center .workspace-game-library-title {
  margin: 0 0 11px;
  color: #172033;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#game-center .workspace-game-card {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  border: 1px solid #dce3ee;
  border-radius: 13px;
  padding: 11px;
  color: #243047;
  background: #f8fafc;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

#game-center .workspace-game-card:last-of-type { margin-bottom: 0; }
#game-center .workspace-game-card:hover { border-color: #9ca8ff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(79, 70, 229, .12); }
#game-center .workspace-game-card.is-active { border-color: #6658f5; color: #fff; background: linear-gradient(135deg, #5b4ee8, #7559e8); box-shadow: 0 10px 24px rgba(79, 70, 229, .24); }
#game-center .workspace-game-card-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: #5d55d9; background: #eceafe; font-size: 1.15rem; }
#game-center .workspace-game-card.is-active .workspace-game-card-icon { color: #fff; background: rgba(255, 255, 255, .18); }
#game-center .workspace-game-card-copy { min-width: 0; }
#game-center .workspace-game-card-copy strong,
#game-center .workspace-game-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#game-center .workspace-game-card-copy strong { font-size: .9rem; }
#game-center .workspace-game-card-copy small { margin-top: 2px; color: #6b778d; font-size: .72rem; }
#game-center .workspace-game-card.is-active small { color: rgba(255, 255, 255, .78); }
#game-center .workspace-game-card > i { color: #8b96aa; font-size: .75rem; }
#game-center .workspace-game-card.is-active > i { color: #fff; }

#game-center .workspace-game-stage { min-width: 0; overflow: hidden; }
#game-center .workspace-game-toolbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e5eaf2; padding: 12px 14px; background: #f8fafc; }
#game-center .workspace-game-heading { min-width: 0; }
#game-center .workspace-game-heading strong { display: block; color: #172033; font-size: 1rem; }
#game-center .workspace-game-heading small { display: block; margin-top: 3px; overflow: hidden; color: #69758a; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
#game-center .workspace-game-actions { display: flex; flex: 0 0 auto; gap: 7px; }
#game-center .workspace-game-actions .btn { min-width: 38px; }
#game-center .workspace-game-safety { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e5eaf2; padding: 9px 14px; color: #48566d; background: #eef7f3; font-size: .76rem; }
#game-center .workspace-game-safety i { color: #17855b; }
#game-center .workspace-game-frame-wrap { position: relative; min-height: 680px; background: #0b1020; }
#game-center .workspace-game-frame { display: block; width: 100%; height: 720px; border: 0; background: #0b1020; }
#game-center .workspace-game-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #cbd5e1; background: #0b1020; text-align: center; }
#game-center .workspace-game-status[hidden] { display: none; }
#game-center .workspace-game-status i { display: block; margin-bottom: 10px; font-size: 2rem; }
#game-center .workspace-game-footnote { margin: 12px 0 0; color: #68758a; font-size: .76rem; }

@media (max-width: 991.98px) {
  #game-center .workspace-game-layout { grid-template-columns: 1fr; }
  #game-center .workspace-game-library { position: static; display: grid; max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; overflow: visible; }
  #game-center .workspace-game-library-title { grid-column: 1 / -1; margin-bottom: 0; }
  #game-center .workspace-game-card { grid-template-columns: 36px minmax(0, 1fr); margin: 0; }
  #game-center .workspace-game-card-icon { width: 36px; height: 36px; }
  #game-center .workspace-game-card > i { display: none; }
}

@media (max-width: 575.98px) {
  #game-center .overview-banner { padding: 16px; }
  #game-center .workspace-game-library { grid-template-columns: 1fr; padding: 10px; }
  #game-center .workspace-game-toolbar { align-items: flex-start; flex-direction: column; }
  #game-center .workspace-game-actions { width: 100%; }
  #game-center .workspace-game-actions .btn { flex: 1 1 0; }
  #game-center .workspace-game-frame-wrap { min-height: 640px; }
  #game-center .workspace-game-frame { height: min(760px, 78vh); min-height: 640px; }
  #game-center .workspace-game-safety { align-items: flex-start; }
}

html[data-theme="dark"] #game-center .workspace-game-library,
html[data-theme="dark"] #game-center .workspace-game-stage,
html[data-theme="cyber"] #game-center .workspace-game-library,
html[data-theme="cyber"] #game-center .workspace-game-stage {
  border-color: #303a52;
  background: #121a2a;
}

html[data-theme="dark"] #game-center .workspace-game-card,
html[data-theme="cyber"] #game-center .workspace-game-card,
html[data-theme="dark"] #game-center .workspace-game-toolbar,
html[data-theme="cyber"] #game-center .workspace-game-toolbar {
  border-color: #303a52;
  color: #e9eefc;
  background: #182235;
}

html[data-theme="dark"] #game-center .workspace-game-library-title,
html[data-theme="dark"] #game-center .workspace-game-heading strong,
html[data-theme="cyber"] #game-center .workspace-game-library-title,
html[data-theme="cyber"] #game-center .workspace-game-heading strong { color: #f3f6ff; }
