:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #111410;
  color: #f2f5ee;
  --muted: #b1baad;
  --edge: #394337;
  --surface: #1c221b;
  --accent: #c7f36b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(100% - 2rem, 54rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--edge); padding: 1rem 0; }
.brand { font-size: 1.1rem; font-weight: 850; letter-spacing: .02em; }
.brand b { color: var(--accent); }
main { padding: 2rem 0 4rem; }
h1 { font-size: clamp(2.2rem, 8vw, 4rem); line-height: .98; letter-spacing: -.055em; margin: 1rem 0; }
h2 { font-size: 1.25rem; margin: 0; }
a { color: var(--accent); }
button, select, input { font: inherit; }
button, .primary {
  display: inline-block; border: 1px solid var(--edge); border-radius: .55rem; padding: .58rem .85rem;
  background: var(--surface); color: inherit; cursor: pointer; text-decoration: none;
}
button:disabled { opacity: .55; cursor: wait; }
button[aria-pressed="true"], .primary { background: var(--accent); color: #17220b; font-weight: 750; }
nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.25rem; }
.intro, .secondary { color: var(--muted); }
#status { color: var(--accent); }
.leaderboard { padding: 0; list-style: none; border: 1px solid var(--edge); border-radius: .95rem; overflow: hidden; }
.leaderboard li { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .5rem; min-height: 3.6rem; padding: .65rem 1rem; background: var(--surface); }
.leaderboard li + li { border-top: 1px solid var(--edge); }
.leaderboard li.own { background: #293a21; }
.score { color: var(--accent); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.place { color: var(--muted); font-variant-numeric: tabular-nums; }
.history { margin-top: 2rem; }
.history-row { display: flex; justify-content: space-between; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid var(--edge); }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; margin: 1.25rem 0; }
.report { background: var(--surface); border: 1px solid var(--edge); border-radius: .85rem; padding: 1rem; margin: 1rem 0; }
.evidence { margin-bottom: .8rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.evidence a, .evidence button { display: inline-block; margin: .2rem .5rem .3rem 0; }
.evidence img, .evidence video { display: block; max-width: 100%; max-height: 40rem; object-fit: contain; }
.fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap: .75rem; }
label { display: flex; flex-direction: column; gap: .32rem; font-size: .9rem; }
select, input[type="number"] { width: 100%; border: 1px solid var(--edge); color: inherit; background: #111610; border-radius: .4rem; min-height: 2.45rem; padding: .45rem; }
input[type="checkbox"] { accent-color: var(--accent); align-self: start; width: 1.25rem; height: 1.25rem; }
.proposal { color: var(--muted); margin: .85rem 0 0; }
.row-status { color: #ffb8a3; margin-bottom: 0; }
.row-status:empty { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 420px) {
  .shell { width: calc(100% - 1.35rem); }
  .leaderboard li { padding-inline: .7rem; }
  .toolbar > * { width: 100%; }
}
