/*
VOICE   a museum hall at night in the game's workshop town: quiet, proud, a little mysterious
IDEA    the tracker is the museum's display case for one object that almost nobody will ever find
PICTURE the golden toilet in a glass case on a pedestal, the game's workshop dim behind it
COLOUR  dark walnut and teal panels, aged brass frames, cream text, gold only for the toilet and numbers
TYPE    the game's own pixel title font (Press Start 2P, OFL, self-hosted) for titles and numbers; plain sans for text
LAYOUT  first screen: the case and the counter; then the brass plaques of the totals; then the Hall
*/
@font-face { font-family: "DOI Pixel Title"; src: url("fonts/pixel_title.woff2") format("woff2"); font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #0c181b; --panel: #173337; --panel-2: #1d3d41; --wood: #23160f;
  --brass: #a8823f; --brass-dark: #6d522a; --gold: #dbb56c; --gold-hi: #f4d58c;
  --cream: #f1dfb5; --muted: #b2b7a0; --mint: #9cbe8a; --red: #d98b76;
  --title: "DOI Pixel Title", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--wood); color: var(--cream); font: 17px/1.6 "Trebuchet MS", "Segoe UI", system-ui, sans-serif; overflow-x: clip;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 2px, transparent 2px 120px), linear-gradient(180deg, #2a1a12, #150d09); }
a { color: var(--gold); } a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
img.pixel { image-rendering: pixelated; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(4vw, 16px); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--gold); color: var(--ink); padding: 8px 12px; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; color: var(--gold); line-height: 1.25; text-shadow: 0 3px 0 #000; margin: 0 0 14px; text-wrap: balance; }
h2 { font-size: clamp(20px, 2.6vw, 28px); }
p { margin: 0 0 14px; } .muted { color: var(--muted); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(12,24,27,.94); border-bottom: 3px solid var(--brass); }
.bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap; }
.bar .brand { display: flex; align-items: center; gap: 10px; font-family: var(--title); font-size: 14px; color: var(--gold); text-decoration: none; }
.bar .brand img { width: 22px; height: auto; }
.bar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.bar nav a { color: var(--cream); text-decoration: none; } .bar nav a:hover, .bar nav a[aria-current] { color: var(--gold); }

/* First screen: the display case */
.hall-hero { position: relative; overflow: hidden; border-bottom: 6px solid var(--brass); }
.hall-hero .room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.8); }
.hall-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 55%, rgba(244,213,140,.10), transparent 55%), linear-gradient(180deg, transparent 60%, rgba(21,13,9,.95)); }
.hall-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 88px); }
.case { position: relative; justify-self: center; width: min(340px, 100%); }
.case .glass { position: relative; aspect-ratio: 4 / 5; border: 6px solid var(--brass); background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 40%, rgba(0,0,0,.25)); box-shadow: 0 0 0 4px #000, inset 0 0 0 2px rgba(244,213,140,.25); display: grid; place-items: center; }
.case .glass::before { content: ""; position: absolute; top: 10px; left: 14px; width: 18%; height: 60%; background: linear-gradient(180deg, rgba(255,255,255,.16), transparent); transform: skewX(-12deg); }
.case .glass img { width: 58%; height: auto; }
.case.empty .glass img { filter: brightness(0); opacity: .6; }
.case .pedestal { position: relative; height: 54px; margin: 0 -18px; background: linear-gradient(180deg, #4a2f1e, #2a1a12); border: 4px solid #000; border-top: 6px solid var(--brass); box-shadow: 0 10px 0 rgba(0,0,0,.5); }
.case .plate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--gold); color: var(--ink); font: 400 11px/1.2 var(--title); padding: 6px 12px; box-shadow: 0 0 0 2px #000; white-space: nowrap; }
.counter b { display: block; font: 400 clamp(64px, 11vw, 128px)/1 var(--title); color: var(--gold-hi); text-shadow: 0 6px 0 #000; font-variant-numeric: tabular-nums; }
.counter .label { font: 400 clamp(16px, 2vw, 22px)/1.4 var(--title); color: var(--cream); margin: 6px 0 20px; }
.counter p { max-width: 520px; }
.counter .status { display: inline-block; margin-top: 4px; padding: 6px 12px; border: 2px solid var(--brass-dark); background: rgba(12,24,27,.7); color: var(--muted); font-size: 15px; }

/* Brass plaques with the totals */
.plaques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.plaque { background: var(--panel); border: 3px solid var(--brass); box-shadow: 0 0 0 3px #000, 0 8px 0 rgba(0,0,0,.45); padding: 18px 20px; }
.plaque b { display: block; font: 400 clamp(18px, 2.2vw, 26px)/1.3 var(--title); color: var(--gold); margin-bottom: 6px; }
.plaque span { color: var(--muted); font-size: 15px; }
.meter b { font: 400 14px/1.4 var(--title); color: var(--gold); }
.meter { margin-top: 18px; background: var(--panel); border: 3px solid var(--brass); box-shadow: 0 0 0 3px #000; padding: 16px 20px; }
.meter .track { height: 18px; background: #0f2326; border: 2px solid #000; margin: 10px 0 6px; }
.meter .fill { height: 100%; width: 0; min-width: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, #c79c52 10px 12px); }
.meter small { color: var(--muted); }

/* The Hall */
section { padding: 56px 0 8px; }
.list { display: grid; gap: 14px; }
.find { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--panel); border: 3px solid var(--brass); box-shadow: 0 0 0 3px #000; padding: 14px 18px; }
.find .no { font: 400 24px/1 var(--title); color: var(--gold); text-align: center; }
.find .who { font-weight: 700; font-size: 19px; }
.find .who.hidden { font-weight: 400; font-style: italic; color: var(--muted); }
.find .when { color: var(--muted); font-size: 15px; }
.find .prize { font: 400 10px/1.4 var(--title); color: var(--ink); background: var(--gold); padding: 4px 10px; box-shadow: 0 0 0 2px #000; white-space: nowrap; }
.empty-hall { background: rgba(12,24,27,.6); border: 3px dashed var(--brass-dark); padding: 26px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps div { background: rgba(12,24,27,.55); border: 2px solid var(--brass-dark); padding: 18px; }
.steps b { display: block; font: 400 14px/1.5 var(--title); color: var(--gold); margin-bottom: 8px; }

/* Documents */
.doc { max-width: 820px; margin: 40px auto 0; }
.doc h1 { font-size: clamp(22px, 3.2vw, 32px); }
.doc h2 { font-size: 18px; margin-top: 30px; }
.doc li { margin-bottom: 6px; }
.doc .card { background: var(--panel); border: 3px solid var(--brass); box-shadow: 0 0 0 3px #000; padding: 22px 26px; }

/* The owner's page */
input, textarea, button { font: inherit; font-size: 16px; }
input[type=password], textarea { width: 100%; background: #0f2326; color: var(--cream); border: 2px solid var(--brass); padding: 10px 12px; }
button { min-height: 44px; padding: 8px 16px; background: var(--gold); color: var(--ink); border: 0; box-shadow: 0 0 0 3px #000; font-weight: 700; cursor: pointer; }
button.ghost { background: var(--panel-2); color: var(--cream); box-shadow: 0 0 0 3px var(--brass); }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 2px solid rgba(219,181,108,.2); vertical-align: top; } th { color: var(--gold); }
.scroll { overflow-x: auto; }

footer { margin-top: 70px; padding: 28px 0 40px; border-top: 3px solid var(--brass); background: rgba(12,24,27,.85); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
footer .disclaimer { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .hall-hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .counter p { margin-inline: auto; }
  .plaques, .steps { grid-template-columns: 1fr; margin-top: 18px; }
  .bar nav { margin-left: 0; }
}
@media (max-width: 600px) {
  .find { grid-template-columns: 56px minmax(0, 1fr); }
  .find .no { font-size: 18px; }
  .find .prize { grid-column: 2; justify-self: start; }
}
