* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #101a16;
  --panel: #172620;
  --line: #34483c;
  --text: #f5f8f4;
  --muted: #afc0b5;
  --accent: #c6ff78;
  font: 16px/1.55 system-ui, sans-serif;
}
body { margin: 0; color: var(--text); background: var(--bg); min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #f9d483; outline-offset: 4px; }
main:focus { outline: none; }
.wrap { width: min(100% - 2rem, 56rem); margin-inline: auto; }
header, footer { background: var(--bg); }
header { border-bottom: 1px solid var(--line); }
.masthead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 760; text-decoration: none; letter-spacing: -.025em; }
.brand img { border-radius: 10px; }
.quiet { min-height: 44px; padding: 0 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 9px; }
main { flex: 1; padding-block: clamp(1.5rem, 5vw, 3.75rem); }
h1 { margin: 0 0 .65rem; font-size: clamp(2rem, 7vw, 4.25rem); line-height: 1.02; letter-spacing: -.066em; overflow-wrap: anywhere; }
p { margin-block: .5rem 1rem; }
p:last-child { margin-bottom: 0; }
.hero, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 5vw, 3rem); }
.hero { border-top: 3px solid var(--accent); background: radial-gradient(ellipse at 95% 0%, #294333, transparent 68%), var(--panel); }
.panel { margin-top: 1.25rem; }
.meta { color: var(--accent); font-size: .83rem; letter-spacing: .095em; text-transform: uppercase; font-weight: 750; margin: 0 0 .85rem; }
.description, .announcement, .feedback, #notice { color: var(--muted); }
.deadline, .winner { font-weight: 750; }
.winner { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid transparent; padding: .6rem 1rem; border-radius: 9px; background: var(--accent); color: #13210c; font-weight: 750; text-decoration: none; }
.action:hover { filter: brightness(.92); }
.action.secondary { background: transparent; color: var(--text); border-color: #637d6b; }
.install { margin: 1.25rem 0 0; padding: 0 1rem .2rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.install summary { cursor: pointer; min-height: 44px; padding-block: .65rem; color: var(--text); font-weight: 650; }
.install[open] { padding-bottom: 1rem; }
footer { position: sticky; bottom: 0; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: repeat(4, 1fr); }
.nav a { display: grid; place-items: center; min-height: 58px; padding: 6px 2px; color: var(--muted); text-align: center; font-size: clamp(.73rem, 3vw, .95rem); font-weight: 700; text-decoration: none; border-top: 2px solid transparent; }
.nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.skip { position: absolute; left: 1rem; top: -10rem; }
.skip:focus { top: .5rem; background: var(--bg); }
label { display: block; margin-bottom: .35rem; font-weight: 650; }
input { display: block; width: min(100%, 21rem); min-height: 46px; padding: .55rem .75rem; border-radius: 8px; border: 1px solid #637d6b; background: var(--bg); color: var(--text); }
.rules, .announcement { white-space: pre-wrap; overflow-wrap: anywhere; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; }
caption { text-align: left; margin-bottom: .75rem; font-weight: 750; }
td, th { text-align: left; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); padding: .6rem .35rem; }
th { color: var(--muted); font-size: .88rem; }
[hidden] { display: none !important; }
