:root {
  --bg: #060b06;
  --fg: #b7ffb7;
  --fg-dim: rgba(183,255,183,0.65);
  --border: rgba(183,255,183,0.25);
  --panel: rgba(0,0,0,0.55);
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

#frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
}

#topbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#main {
  position: relative;
  flex: 1;
  min-height: 300px;
}

#bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#leaderboards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.box {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 10px;
  box-sizing: border-box;
}

#c {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid var(--border);
  background: #020402;
}

.lb {
  flex: 1;
  min-width: 260px;
}

.lbhead {
  color: var(--fg-dim);
  margin-bottom: 6px;
}

ol {
  margin: 0;
  padding-left: 22px;
}

li {
  line-height: 1.35;
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
}

#overlay.hidden {
  display: none;
}

.panel {
  width: min(520px, 92vw);
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--border);
  padding: 16px;
}

.title {
  font-size: 18px;
  margin-bottom: 8px;
}

.body {
  color: var(--fg-dim);
  white-space: pre-wrap;
}

.hint {
  margin-top: 10px;
  color: var(--fg-dim);
}

/* optional: subtle scanlines */
#main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(183,255,183,0.04),
    rgba(183,255,183,0.04) 1px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0) 4px
  );
  opacity: 0.15;
}
