:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f4eee4;
  background: #0c1119;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  background: radial-gradient(ellipse at 50% 10%, #222e3d, transparent 64%), #0c1119;
}

.welcome {
  width: min(100%, 36rem);
  margin: auto;
  padding: clamp(1.2rem, 4.5vw, 2.4rem);
  border: 1px solid #6e5b41;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, #192230, #101620 68%);
  box-shadow: 0 1.25rem 4rem #070a10b0;
  text-align: center;
}

.crest { display: block; margin: 0 auto 0.7rem; object-fit: contain; }

h1 {
  margin: 0;
  color: #f5dfb4;
  font-family: Georgia, serif;
  font-size: clamp(1.75rem, 5.5vw, 2.45rem);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

.intro {
  max-width: 42ch;
  margin: 0.8rem auto 1.4rem;
  color: #cad0d9;
  line-height: 1.55;
  text-wrap: pretty;
}

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; text-align: left; }
legend { margin-bottom: 0.55rem; padding: 0; color: #eae3d7; font-size: 0.9rem; font-weight: 600; }

.acknowledgment {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.7rem;
  border: 1px solid #374355;
  border-radius: 0.65rem;
  background: #101721;
  color: #e5e8ec;
  font-size: 0.94rem;
  line-height: 1.45;
  cursor: pointer;
}

.acknowledgment + .acknowledgment { margin-top: 0.45rem; }
.acknowledgment:has(input:checked) { border-color: #8e744c; background: #24241f; }
input { width: 1.1rem; height: 1.1rem; margin: 0.12rem 0 0; accent-color: #e8bb76; cursor: pointer; }
a { color: #f3ce91; text-underline-offset: 0.18em; }
a:hover { color: #ffe9bf; }
:focus-visible { outline: 2px solid #f2ce93; outline-offset: 4px; }

button {
  width: 100%;
  min-height: 3rem;
  margin-top: 1.1rem;
  padding: 0.7rem 1rem;
  border: 1px solid #f6d69d;
  border-radius: 0.65rem;
  background: linear-gradient(#f6d49d, #d6a763);
  color: #20170b;
  font: 700 0.98rem system-ui, sans-serif;
  cursor: pointer;
}

button:hover:not(:disabled) { background: #ffe2af; }
button:disabled { border-color: #4f4c48; background: #2d2b2a; color: #c9c0b3; cursor: default; }
.session { margin: 0.75rem 0 0; color: #b6bfcb; font-size: 0.8rem; }
.error { margin: 0.75rem 0 0; color: #ffcfb9; font-size: 0.88rem; line-height: 1.5; }
.error:empty { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
