/* Campus Hagenberg: colours of the place (spruce, lawn, the blue band of the ellipse) and the key caps of the game's own on-screen hints */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --spruce: #12332b; --spruce-2: #1c4a3e; --lawn: #8fbf5a; --cap: #ffc53d; --cap-edge: #1a1608;
  --ellipse: #2456c8; --mist: #eef2ee; --paper: #ffffff; --ink: #0e1a17; --muted: #55655f; --bad: #b3261e; --line: #cfd8d2;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif; --body: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--ellipse); text-underline-offset: 0.18em; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--ellipse); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); font-weight: 800; font-stretch: 85%; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }

/* top bar */
.top { background: var(--spruce); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; flex-wrap: wrap; padding-block: 0.5rem; }
.brand { font: 700 1.2rem var(--display); color: #fff; text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.top nav a { color: #dbe7df; text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--cap); }
.who { color: var(--cap); font-weight: 600; font-size: 0.98rem; }

/* key caps: the same sign the game uses for its controls */
.cap { display: inline-block; background: var(--cap); color: var(--cap-edge); border: 2px solid var(--cap-edge); border-radius: 3px;
  font: 600 0.95em var(--body); padding: 0.05em 0.55em; line-height: 1.5; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--cap); color: var(--cap-edge); border: 2px solid var(--cap-edge);
  border-radius: 4px; font: 600 1.05rem var(--body); padding: 0.7rem 1.15rem; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--cap-edge); }
.btn:hover { color: var(--cap-edge); transform: translateY(2px); box-shadow: 0 2px 0 var(--cap-edge); }
.btn:active { transform: translateY(4px); box-shadow: none; }
.btn.quiet { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn.quiet:hover { transform: none; background: rgba(255,255,255,0.12); color: inherit; }
.btn.danger { background: #fff; color: var(--bad); border-color: var(--bad); box-shadow: none; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transform: none; } }

/* hero: a frame from the game, with the game's own hint band as the call to action */
.hero { position: relative; background: var(--spruce); color: #fff; isolation: isolate; }
.hero img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,30,25,0.9) 0%, rgba(10,30,25,0.72) 42%, rgba(10,30,25,0.12) 78%); }
.hero .wrap { padding-block: clamp(4rem, 13vw, 9.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero p.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; margin: 1.25rem 0 2rem; color: #e6efe9; }
.hintband { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: center; background: rgba(20,28,16,0.72); padding: 0.8rem 1rem; margin-top: 2.5rem; width: fit-content; max-width: 100%; }
.hintband span { white-space: nowrap; }

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.25rem; }
.mode img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border: 2px solid var(--ink); }
.mode h3 { margin: 1.1rem 0 0.5rem; display: flex; align-items: center; gap: 0.6rem; }
.mode ul { margin: 0; padding-left: 1.1rem; max-width: 52ch; }
.mode li { margin-bottom: 0.3rem; }

.band { background: var(--spruce); color: #fff; background-image: url("/img/contours.svg"); background-size: 900px auto; }
.band a { color: var(--cap); }
.band p { color: #dbe7df; }

/* boards */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.board h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.board h3 small { font: 400 0.9rem var(--body); letter-spacing: 0; opacity: 0.8; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); }
.band th, .band td { border-bottom-color: rgba(255,255,255,0.18); }
th { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.band th { color: #b9cbc1; }
td.rank { width: 3rem; font: 700 1.1rem var(--display); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.me td { background: rgba(255,197,61,0.22); }
tr:first-child td.rank { color: var(--cap); }
.board-light tr:first-child td.rank { color: var(--ellipse); }
.empty { padding: 1.25rem 0; color: var(--muted); }
.band .empty { color: #b9cbc1; }

/* forms */
.panel { background: var(--paper); border: 2px solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 2rem; }
label { display: block; font-weight: 600; margin: 1rem 0 0.35rem; }
input[type="text"], input[type="password"] { width: 100%; font: inherit; padding: 0.65rem 0.75rem; border: 2px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); }
.help { font-size: 0.92rem; color: var(--muted); margin: 0.35rem 0 0; }
.msg { margin: 1rem 0 0; font-weight: 600; min-height: 1.6em; }
.msg.bad { color: var(--bad); }
.msg.good { color: #1f6b3a; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.5rem 2.5rem; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); font: 800 2.4rem/1 var(--display); color: var(--ellipse); display: block; margin-bottom: 0.4rem; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 0.7rem; }
.prose ul { max-width: 62ch; padding-left: 1.2rem; }
.todo { background: #fff4d6; border-left: 6px solid var(--cap); padding: 0.8rem 1rem; max-width: 62ch; }

footer { background: var(--ink); color: #c9d5cf; font-size: 0.95rem; padding-block: 2.25rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
footer a { color: #fff; }
footer p { margin: 0 0 0.4rem; max-width: 70ch; }
[hidden] { display: none !important; }
@media (max-width: 560px) { .when { display: none; } th, td { padding: 0.5rem 0.35rem; } }

/* language switch, page headings, maker */
.top nav a.lang { border: 1px solid rgba(255,255,255,0.45); border-radius: 3px; padding: 0.15rem 0.55rem; font-weight: 400; }
.top nav a.lang:hover { border-color: var(--cap); }
.brand { max-width: 100%; }
.h1-page { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.h2-panel { font-size: 1.6rem; }
.intro { margin-top: 1rem; }
.maker { display: inline-block; background: #fff; border-radius: 6px; padding: 0.5rem 0.8rem; line-height: 0; }
.maker img { height: 2.6rem; width: auto; }
.maker.big { padding: 1rem 1.4rem; border: 2px solid var(--ink); }
.maker.big img { height: clamp(4rem, 9vw, 6.5rem); }
.by { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.6rem; font-weight: 600; color: #e6efe9; }
.by .maker img { height: 3.2rem; }
.makerband { background: var(--paper); border-top: 2px solid var(--ink); }
.makerband .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; }
.makerband h2 { margin-bottom: 0.8rem; }
.foot-maker p { margin-bottom: 0.5rem; }
.facts { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0.55rem 1.5rem; max-width: 46rem; margin: 0; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 0.1rem; } .facts dd { margin-bottom: 0.7rem; } }

/* downloads */
.dl { background: var(--paper); border-block: 2px solid var(--ink); scroll-margin-top: 1rem; }
.platforms { list-style: none; padding: 0; margin: 1.75rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.platforms li { border: 2px solid var(--ink); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--mist); }
.platforms p { margin: 0; flex: 1; color: var(--muted); }
.soon { align-self: flex-start; border: 2px dashed var(--muted); color: var(--muted); border-radius: 4px; padding: 0.55rem 0.9rem; font-weight: 600; }
.mode p { margin: 0 0 0.7rem; max-width: 52ch; }
