
:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
  --paper: #d8c49b;
  --ink: #ece8dc;
  --muted: #b9b3a7;
  --panel: rgba(17, 21, 24, 0.94);
  --line: #6f6045;
  --amber: #d68a31;
  --red: #c84b43;
  --green: #4ba76b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(6, 10, 13, .86), rgba(6, 10, 13, .93)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(184,156,104,.07) 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(184,156,104,.06) 40px),
    radial-gradient(circle at 18% 24%, #314044 0, #10171b 38%, #070a0d 78%);
  padding: 22px;
}

.page {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border: 1px solid #514a3c;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background:
    linear-gradient(110deg, rgba(18,24,27,.25), rgba(5,8,10,.83)),
    repeating-radial-gradient(ellipse at 18% 110%, transparent 0 18px, rgba(203,179,124,.11) 19px 20px),
    #172126;
}

.map-note {
  position: absolute;
  left: 5%;
  top: 32px;
  font-family: ui-monospace, Consolas, monospace;
  color: #cbb88a;
  opacity: .78;
  line-height: 1.65;
  letter-spacing: .05em;
}

.dossier {
  position: absolute;
  right: 7%;
  top: 28px;
  width: 240px;
  height: 145px;
  padding: 24px;
  transform: rotate(-2deg);
  background: #6f1e1c;
  border: 2px solid #39100f;
  box-shadow: 0 18px 38px #0009;
  color: #e4d8bd;
  font-family: Georgia, serif;
}

.dossier strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: .08em;
  border: 3px solid currentColor;
  padding: 7px;
  text-align: center;
}

.fuse {
  position: absolute;
  left: -4%;
  top: 105px;
  width: 78%;
  height: 18px;
  border-radius: 50%;
  border-top: 8px solid #544638;
  transform: rotate(-4deg);
  filter: drop-shadow(0 2px 2px #000);
}

.fuse::before {
  content: "";
  position: absolute;
  top: -14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6a7 0 10%, #ffb02f 30%, #e34a18 58%, transparent 70%);
  box-shadow: 0 0 12px #ffcb53, 0 0 30px #ed651f;
  animation: burn 6s linear infinite;
}

.fuse::after {
  content: "✦  ·  ✦";
  position: absolute;
  top: -29px;
  color: #ffb12c;
  font-size: 22px;
  animation: sparks 6s linear infinite;
}

@keyframes burn {
  from { left: 0%; }
  to { left: 96%; }
}
@keyframes sparks {
  from { left: -1%; opacity: 1; }
  to { left: 95%; opacity: .15; }
}

.panel {
  position: relative;
  margin-top: 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #514a3c;
  border-radius: 0 0 16px 16px;
  background: var(--panel);
  box-shadow: 0 25px 70px #0009;
}

.level {
  margin: 0 0 7px;
  color: var(--amber);
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.subtitle {
  margin: 8px 0 28px;
  color: #d9a15f;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.intro {
  max-width: 740px;
  color: #d2cdc2;
  font-size: 1.05rem;
  line-height: 1.6;
}

.login {
  display: grid;
  gap: 17px;
  max-width: 640px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #706958;
  border-radius: 7px;
  background: #0c1114;
  color: white;
  font: inherit;
}

input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

button, .next-button {
  display: inline-block;
  width: 100%;
  padding: 13px 20px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(#e49b42, #bc6f21);
  color: #171009;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .next-button:hover { filter: brightness(1.08); }

.hint, .format {
  max-width: 640px;
  color: var(--muted);
}

.hint {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: rgba(210,139,49,.08);
}

.format {
  margin-top: 22px;
  font-size: .92rem;
}

.message {
  min-height: 1.4em;
  margin: 0;
}

.status-box {
  display: none;
  max-width: 640px;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid;
  border-radius: 8px;
}

.status-box.error {
  display: block;
  color: #ffd8d5;
  border-color: var(--red);
  background: rgba(200,75,67,.12);
}

.status-box.success {
  display: block;
  color: #d8ffe4;
  border-color: var(--green);
  background: rgba(75,167,107,.13);
}

.status-box p { margin: 0 0 12px; }
.status-box p:last-child { margin-bottom: 0; }

.note {
  color: #d6c5a5;
  font-size: .94rem;
}

@media (max-width: 700px) {
  .dossier { right: -28px; opacity: .58; transform: scale(.82) rotate(-3deg); }
  .map-note { font-size: .78rem; }
  .hero { min-height: 180px; }
}
