:root {
  --bg: #120d09;
  --panel: #1f1711;
  --panel-2: #2a2018;
  --line: #4a3a2a;
  --gold: #d8b25a;
  --gold-2: #f1d28a;
  --text: #ece2cf;
  --muted: #b3a389;
  --ok: #7fc97f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at top, #2b1d12 0%, var(--bg) 60%) fixed;
  color: var(--text);
  font: 16px/1.5 Georgia, "Times New Roman", serif;
}
a { color: var(--gold-2); }
.top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .35);
}
.top .portal {
  font: 600 14px/1 system-ui, sans-serif; text-decoration: none; color: var(--bg);
  background: var(--gold); padding: 8px 12px; border-radius: 6px;
}
.top .portal:hover { background: var(--gold-2); }
.top .home { font-size: 20px; text-decoration: none; color: var(--text); letter-spacing: .04em; }
.top nav { margin-left: auto; display: flex; gap: 16px; font: 14px system-ui, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
h1 { font-size: 38px; margin: 0 0 8px; color: var(--gold-2); letter-spacing: .02em; }
.lead { color: var(--muted); margin: 0 0 28px; font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(var(--panel-2), var(--panel));
}
.step .num {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--gold-2); font: 700 17px system-ui, sans-serif;
}
.step.done .num { background: var(--ok); border-color: var(--ok); color: #10200f; }
.step.done .num::after { content: ""; }
.step .body { flex: 1; min-width: 0; }
.step h2 { margin: 2px 0 4px; font-size: 21px; }
.state { margin: 0 0 6px; }
.hint { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
button, .button {
  font: 600 15px system-ui, sans-serif; border: 1px solid var(--gold); color: var(--gold-2);
  background: transparent; padding: 10px 16px; border-radius: 7px; cursor: pointer; display: inline-block;
}
button.primary, .button.primary { background: var(--gold); color: var(--bg); }
button.primary:hover, .button.primary:hover { background: var(--gold-2); }
button.link { border: none; padding: 6px 2px; text-decoration: underline; color: var(--muted); }
button.play {
  font-size: 20px; padding: 14px 44px; background: #8a1c12; border-color: #c4472f; color: #fff;
  letter-spacing: .08em; text-transform: uppercase;
}
button.play:hover:not(:disabled) { background: #a8261a; }
button:disabled { opacity: .45; cursor: not-allowed; }
.bar { height: 8px; margin-top: 12px; background: #0008; border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.note { color: var(--muted); font-size: 14px; margin-top: 20px; }
#game { position: fixed; inset: 56px 0 0 0; background: #000; }
#unityContainer { width: 100%; height: 100%; }
#unityContainer canvas { width: 100% !important; height: 100% !important; display: block; }
/* (the hidden attribute must win over the display of the blocks: otherwise the loading screen stays over the game) */
[hidden] { display: none !important; }
#loading {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; background: #000;
}
#loading .bar { width: min(420px, 80vw); }
@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .top nav { margin-left: 0; }
}
