:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b0f14;
  color: #e6edf3;
}

body { margin: 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
}

.title { font-weight: 700; }
.status { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }

.main {
  position: relative;
  height: calc(100vh - 52px);
  overflow: hidden;
}

#game {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.overlay, .result {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.65);
  z-index: 10;
}

.card {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(15, 20, 28, 0.92);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

.overlayTitle { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.overlayText { opacity: 0.9; font-size: 14px; line-height: 1.35; }

.actions { display: flex; gap: 10px; margin-top: 12px; justify-content: flex-end; }

.btn {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #e6edf3;
  cursor: pointer;
}

.btn.primary {
  background: rgba(62, 148, 255, 0.25);
  border-color: rgba(62, 148, 255, 0.6);
}
