/* Colours and fonts follow the game's Client/Lobby/UI/LobbyTheme.tres */
@font-face { font-family: Oswald; src: url(/fonts/Oswald-Variable.ttf); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url(/fonts/RobotoCondensed-Variable.ttf); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0e0f12;
  --panel: #14161a;
  --border: #24282e;
  --accent: #f2b742;
  --accent-hover: #ffc146;
  --text: #edeff1;
  --subtle: #b6bcc4;
  --muted: #848d99;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.55 "Roboto Condensed", "Arial Narrow", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, .wordmark, nav, .button, .kicker { font-family: Oswald, Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: 1.9rem; border-left: 4px solid var(--accent); padding-left: .5em; }
h3 { font-size: 1.15rem; color: var(--accent); }

.wrap { width: min(1100px, 100% - 2rem); margin-inline: auto; }
section { padding: 4rem 0; }

.topbar { position: sticky; top: 0; z-index: 1; background: var(--panel); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 2rem; padding: .7rem 0; }
.wordmark { display: flex; align-items: center; gap: .4rem; font-size: 1.4rem; font-weight: 600; text-decoration: none; }
.wordmark span, h1 span { color: var(--muted); }
nav { display: flex; gap: 1.5rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.hero {
  padding: 7rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0, rgb(242 183 66 / .14), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgb(255 255 255 / .035) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgb(255 255 255 / .035) 47px 48px);
}
.kicker { color: var(--accent); margin: 0; }
h1 { font-size: clamp(3rem, 11vw, 6.5rem); margin: .1em 0 .2em; }
.lead { font-size: 1.3rem; color: var(--subtle); max-width: 34rem; margin: 0 auto 2rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.button { display: inline-block; padding: .65rem 1.8rem; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 1.1rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #17120a; }
.button.primary:hover { background: var(--accent-hover); }
.button.disabled { background: var(--border); border-color: var(--border); color: var(--muted); cursor: default; }

.intro { color: var(--subtle); max-width: 44rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 2rem; }
.cards article, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; }
.cards p { margin: 0; color: var(--subtle); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.gallery a { display: block; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.gallery a:hover { border-color: var(--accent); }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.panel { text-align: center; padding: 3rem 1.4rem; }
.panel h2 { border: 0; padding: 0; }
.note { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; padding: 1.5rem 0; }
footer .wrap { display: flex; justify-content: space-between; }

dialog { padding: .75rem; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; max-width: min(1600px, 95vw); }
dialog::backdrop { background: rgb(0 0 0 / .85); }
dialog form { text-align: right; margin-bottom: .75rem; }
dialog img { display: block; width: auto; max-width: 100%; max-height: 80vh; }

@media (max-width: 360px) { .gallery { grid-template-columns: 1fr; } nav { gap: .9rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
