@font-face {
  font-family: Minecraft;
  src: url("/site/Minecraft.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #0d1214;
  --panel: #151b1ee6;
  --line: #3a4446;
  --gold: #ffc107;
  --text: #eef0e8;
  --muted: #9aa6a9;
  --font: Minecraft, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

.match { position: relative; width: 100%; height: 100%; }

.match-bar {
  position: absolute; inset: 0 0 auto; z-index: 6;
  display: flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 14px;
  background: #111719f2; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none;
  font-weight: 800; letter-spacing: 0.08em;
}
.brand img { border-radius: 4px; display: block; }
.meta { display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.dot { color: var(--text); opacity: 0.5; }
.bar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.ghost, .primary {
  appearance: none; border: 1px solid var(--line);
  background: #1a2124; color: var(--text);
  padding: 10px 14px; cursor: pointer;
  text-decoration: none; font: 13px/1 var(--font);
}
.primary {
  background: var(--gold); color: #17120a;
  border-color: #ffdd85; font-weight: 800;
}

.stage {
  position: absolute;
  inset: 52px 0 0;
  background: #0b0e10;
}
.stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

body.menu-open .stage iframe {
  filter: brightness(0.35);
  pointer-events: none;
}

.loading {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center;
  gap: 10px; background: #111719; color: var(--text);
}
.loading[hidden] { display: none; }
.loading img { border-radius: 8px; }
.loading p { margin: 0; font-size: 14px; }
.loading .hint, .hint {
  color: var(--muted); font-size: 12px; margin: 8px 0 0;
}

.toast {
  position: absolute; left: 50%; bottom: 48px;
  transform: translateX(-50%); z-index: 7;
  padding: 10px 14px; background: #111719e8;
  border: 1px solid var(--gold); opacity: 0;
  transition: opacity 0.2s; pointer-events: none;
}
.toast[data-show="1"] { opacity: 1; }

.panel {
  position: absolute; left: 50%; top: 54%;
  transform: translate(-50%, -50%); z-index: 8;
  width: min(460px, calc(100% - 28px)); padding: 24px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 18px 40px #0008; text-align: center;
}
.panel[hidden] { display: none !important; }
.panel h1 { margin: 10px 0 8px; font-size: 28px; letter-spacing: 0.04em; }
.panel h2 { margin: 18px 0 10px; font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.panel .sub, .panel p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.panel img { border-radius: 8px; }
.panel-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 8px;
}
.map-choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.map-chip {
  padding: 8px 10px; border: 1px solid var(--line);
  background: #1a2124; color: var(--text);
  text-decoration: none; font-size: 12px;
}
.map-chip:hover { border-color: var(--gold); color: var(--gold); }
