
    * { box-sizing: border-box; }
    html,
    body {
      width: 100%;
      height: 100%;
      margin: 0;
      overflow: hidden;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: #f8fafc;
      background: #111827;
    }
    body {
      display: grid;
      place-items: center;
    }
    .game {
      width: min(96vw, 980px);
      min-height: min(92vh, 720px);
      display: grid;
      grid-template-rows: auto minmax(220px, 1fr) auto minmax(150px, 0.7fr);
      gap: 14px;
      padding: 24px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      border-radius: 8px;
      background: #172033;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    }
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    h1 {
      margin: 0;
      font-size: 22px;
      letter-spacing: 0;
    }
    .meta {
      margin-top: 4px;
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.45;
    }
    .stats {
      display: flex;
      gap: 12px;
      font-variant-numeric: tabular-nums;
    }
    .stat {
      min-width: 92px;
      padding: 8px 10px;
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.72);
      text-align: center;
    }
    .stat strong {
      display: block;
      font-size: 22px;
    }
    .arena {
      display: grid;
      place-items: center;
      border-radius: 12px;
      border: 1px dashed rgba(148, 163, 184, 0.38);
      background: rgba(15, 23, 42, 0.42);
      text-align: center;
    }
    .target {
      width: 118px;
      height: 118px;
      border: 0;
      border-radius: 50%;
      color: #111827;
      background: #facc15;
      font-size: 18px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 16px 36px rgba(250, 204, 21, 0.22);
    }
    .target:active {
      transform: translateY(2px) scale(0.98);
    }
    .actions {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .actions button {
      min-width: 104px;
      height: 40px;
      border: 1px solid rgba(148, 163, 184, 0.38);
      border-radius: 8px;
      color: #f8fafc;
      background: rgba(30, 41, 59, 0.92);
      font: inherit;
      font-weight: 700;
      cursor: pointer;
    }
    .actions button:hover {
      border-color: #93c5fd;
    }
    .status {
      min-height: 20px;
      color: #cbd5e1;
      font-size: 13px;
      text-align: center;
    }
    .diagnostics {
      min-height: 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .panel {
      min-width: 0;
      min-height: 0;
      border: 1px solid rgba(148, 163, 184, 0.22);
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.62);
      overflow: hidden;
    }
    .panel h2 {
      margin: 0;
      padding: 8px 10px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.18);
      color: #e2e8f0;
      font-size: 13px;
    }
    .facts {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr);
      gap: 6px 10px;
      margin: 0;
      padding: 10px;
      color: #cbd5e1;
      font-size: 12px;
    }
    .facts dt {
      color: #94a3b8;
    }
    .facts dd {
      min-width: 0;
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .log {
      height: 100%;
      max-height: 220px;
      margin: 0;
      padding: 10px;
      overflow: auto;
      color: #dbeafe;
      font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .log-line--warn {
      color: #fde68a;
    }
    .log-line--error {
      color: #fecaca;
    }
    .log-line--ok {
      color: #bbf7d0;
    }
    @media (max-width: 560px) {
      .game {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        aspect-ratio: auto;
        border-radius: 0;
        padding: 16px;
        grid-template-rows: auto minmax(160px, 1fr) auto minmax(180px, 1fr);
      }
      .topbar {
        align-items: flex-start;
        flex-direction: column;
      }
      .stats {
        width: 100%;
      }
      .stat {
        flex: 1;
      }
      .diagnostics {
        grid-template-columns: 1fr;
      }
    }