* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0f1420; color: #e8ecf4;
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; background: linear-gradient(90deg, #1b2340, #0f1420);
  border-bottom: 1px solid #2a3350; position: sticky; top: 0; z-index: 10;
}
.brand { font-size: 20px; font-weight: 700; }
.brand span { color: #6ea8fe; font-weight: 400; }
.head-right { display: flex; gap: 8px; }
.pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-off { background: #5a1f1f; color: #ffb4b4; }
.pill-on { background: #14532d; color: #86efac; }
.pill-idr { background: #1e3a5f; color: #7cc4ff; }

main { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.card { background: #161d2e; border: 1px solid #26304a; border-radius: 12px; padding: 18px 20px; }
h2 { margin: 0 0 14px; font-size: 17px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #9aa7c4; font-weight: 600; }
label.wide { grid-column: span 2; }
input, select {
  background: #0d1322; border: 1px solid #2f3a5c; color: #e8ecf4;
  border-radius: 8px; padding: 9px 11px; font-size: 13px; width: 100%;
}
input:focus, select:focus { outline: none; border-color: #4f7cff; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; margin-top: 0; margin-bottom: 10px; }
.btn {
  background: #233052; color: #dbe4ff; border: 1px solid #35457a;
  border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.btn:hover { background: #2c3d68; }
.btn.primary { background: #1f5fd0; border-color: #2f6fe0; color: #fff; }
.btn.primary:hover { background: #2670e8; }
.btn.warn { background: #7a4a12; border-color: #96691e; color: #ffe1b0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hint { font-size: 12px; color: #7d8aa8; margin: 10px 0 0; }
.muted { color: #7d8aa8; font-weight: 400; font-size: 13px; }
.search { max-width: 260px; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; }
.chip {
  background: #1b2440; border: 1px solid #2f3a5c; color: #aebadb;
  border-radius: 999px; padding: 6px 14px; font-size: 12px; cursor: pointer;
}
.chip.active { background: #2f6fe0; border-color: #2f6fe0; color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.game {
  background: #101828; border: 1px solid #22304f; border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.game .t { font-size: 13px; font-weight: 600; }
.game .m { font-size: 11px; color: #7d8aa8; display: flex; justify-content: space-between; }
.badge { font-size: 10px; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.badge-real { background: #14532d; color: #86efac; }
.badge-shim { background: #3b2f63; color: #c4b0ff; }
.game .btn { margin-top: auto; }

.console {
  background: #0a0f1c; border: 1px solid #22304f; border-radius: 8px;
  padding: 12px; font-size: 12px; max-height: 320px; overflow: auto;
  white-space: pre-wrap; word-break: break-all; color: #b8c6e8;
}
footer { text-align: center; color: #566180; font-size: 12px; padding: 20px; }
