:root {
  color-scheme: light;
  --ink: #1c1914;
  --muted: #6b6256;
  --line: #e6dcc8;
  --gold: #9a7209;
  --gold-deep: #7a5a07;
  --card: #fffdf8;
  --error: #8d1d1d;
  font-family: "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px;
  background: #f4efe6;
  color: var(--ink);
}

.footprint {
  width: min(440px, calc(100% - 32px));
  text-align: center;
  background: #f4efe6;
}

.footprint img {
  display: block;
  width: min(380px, 100%);
  height: auto;
  margin: 0 auto;
  /* Lig wit/ligblou JPEG-agtergrond laat insmel met body #f4efe6 */
  mix-blend-mode: multiply;
  filter: contrast(1.04) saturate(0.92);
}

.session-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-height: 64px;
  padding: 10px 22px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(80, 60, 20, 0.06);
}

.session-bar[hidden] { display: none; }

body.has-session { padding-top: 88px; }
body.has-session .card { display: none; }

.session-bar__slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.session-bar__slot span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-bar__slot strong {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-bar__select {
  width: auto;
  max-width: min(46vw, 320px);
  margin: 0;
  padding: 6px 28px 6px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
  background-color: #fff;
}

.session-bar__out {
  width: auto;
  margin: 0;
  padding: 8px 14px;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .session-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
  }

  body.has-session { padding-top: 118px; }
  body.has-session .card { display: none; }
}

.card {
  width: min(440px, calc(100% - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(80, 60, 20, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.brand svg { width: 36px; height: 36px; }
.brand strong { display: block; letter-spacing: 0.08em; }
.brand span { display: block; color: var(--muted); font-size: 12px; }

.steps {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.steps li {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.steps li.is-current {
  color: var(--gold-deep);
  border-color: var(--gold);
  font-weight: 650;
}

.steps li.is-done { color: var(--ink); }

.pane { display: none; }
.pane.is-visible { display: block; }

h1 { margin: 0 0 8px; font-size: 26px; }
.who, .hint { margin: 0 0 16px; color: var(--muted); }

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: white;
}

button {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--gold);
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:hover { background: var(--gold-deep); }

button.link {
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  color: var(--gold-deep);
  font-weight: 550;
}

.is-hidden { display: none !important; }

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: white;
  cursor: pointer;
}

select:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: #faf7f0;
}

label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

label.check input { width: auto; }

.entity-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
}

.error {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--error);
  font-size: 14px;
}

.boot-splash { display: none; }

@media (display-mode: standalone), (display-mode: minimal-ui), (display-mode: fullscreen) {
  .boot-splash {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #050301;
    overflow: hidden;
  }

  .boot-layer {
    position: absolute;
    inset: 0;
    transition: opacity 0.7s ease;
  }

  .boot-layer.is-done {
    opacity: 0;
    pointer-events: none;
  }

  .boot-ship {
    z-index: 2;
    background: #000 url("admiralis-final.jpg?v=9") center center / contain no-repeat;
  }

  .boot-words { z-index: 1; }

  .boot-glow {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 22vh;
    background: radial-gradient(ellipse 90% 100% at 50% 0%, #ffb03a 0%, #c46a12 28%, rgba(90, 36, 0, 0.35) 52%, transparent 72%);
  }

  .boot-card {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4vh 1rem 8vh;
    box-sizing: border-box;
  }

  .boot-card p,
  .boot-card h1 {
    margin: 0;
    background: linear-gradient(180deg, #fff6d0 0%, #f0d48a 16%, #c8922a 40%, #ffe7a4 56%, #a56d1c 78%, #f2d48a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(70, 36, 4, 0.95)) drop-shadow(0 0 8px rgba(224, 160, 40, 0.28));
  }

  .boot-kicker,
  .boot-card h1,
  .boot-role {
    font-family: Cinzel, "Times New Roman", serif;
  }

  .boot-kicker {
    font-weight: 600;
    font-size: clamp(0.95rem, 2.3vw, 1.35rem);
    letter-spacing: 0.22em;
  }

  .boot-card h1 {
    margin-top: 0.05rem;
    font-weight: 700;
    font-size: clamp(2.7rem, 8.2vw, 5.6rem);
    letter-spacing: 0.06em;
    line-height: 0.95;
  }

  .boot-role {
    margin-top: 0.35rem;
    font-weight: 600;
    font-size: clamp(0.95rem, 2.2vw, 1.35rem);
    letter-spacing: 0.16em;
  }

  .boot-line,
  .boot-fine {
    font-family: "EB Garamond", Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .boot-line {
    margin-top: 0.15rem;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  }

  .boot-fine {
    margin-top: 0.05rem;
    font-size: clamp(0.92rem, 2vw, 1.2rem);
    font-weight: 500;
  }
}

.app-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(28, 25, 20, 0.45);
}

.app-gate.is-hidden { display: none !important; }

.app-gate__panel {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 24px 48px rgba(80, 60, 20, 0.16);
}

.app-gate__panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.app-gate__panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.app-gate__panel .primary {
  margin-top: 0;
}

.app-gate__panel .linkish {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--gold-deep);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  text-align: center;
}
