:root {
  color-scheme: dark;
  font: 16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #0d0c0b;
  --surface: #191713;
  --line: #4d4230;
  --gold: #eecb83;
  --text: #f8f2e7;
  --muted: #c7bbab;
  background: var(--background);
  color: var(--text);
  accent-color: var(--gold);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.2rem 3rem;
  background: radial-gradient(ellipse at top, #272014, transparent 28rem), var(--background);
  min-height: 100vh;
}
main { max-width: 31rem; margin: 0 auto; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--gold);
  font-size: 1.12rem;
  font-weight: 720;
  letter-spacing: .045em;
}
button, input, textarea { font: inherit; border-radius: .55rem; }
button { cursor: pointer; min-height: 44px; }
.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: .35rem .85rem;
}
h1 {
  font: 500 clamp(2.45rem, 9vw, 4rem)/1.03 Georgia, serif;
  letter-spacing: -.04em;
  margin: 1.65rem 0 .65rem;
}
.event { font-size: 1.06rem; font-weight: 670; margin: .4rem 0; color: var(--gold); }
#status { color: var(--muted); line-height: 1.48; margin: .5rem 0 1.25rem; }
form { display: grid; gap: .95rem; }
label { display: grid; gap: .37rem; font-weight: 620; }
input, textarea {
  width: 100%;
  min-height: 47px;
  background: var(--surface);
  color: inherit;
  border: 1px solid var(--line);
  padding: .66rem .8rem;
  font-weight: 400;
}
textarea { resize: vertical; }
.field-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
.submit {
  background: linear-gradient(110deg, #f3d798, #d8ad5a);
  color: #1c1409;
  border: 1px solid #f4d497;
  min-height: 48px;
  font-weight: 770;
  margin-top: .32rem;
}
.submit:disabled { opacity: .6; }
[hidden] { display: none !important; }
#result { color: #f3dbac; line-height: 1.5; font-weight: 650; }
#result[data-error="true"] { color: #ffb8ab; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#challenge { max-width: 100%; }
