:root {
    --ink: #0A0A0A;
    --cream: #F5EFE0;
    --gold: #C9A961;
    --gold-light: #C8B98A;
    --bronze: #5A5040;
    --olive: #7F7658;   /* logo colour */
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    background: var(--ink);
    color: var(--olive);
    font-family: Calibri, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    padding: 24px 18px;
  }
  .frame {
    margin: auto;   /* centres when there is room, scrolls from the top when there isn't */
    width: 100%;
    max-width: 620px;
    border: 1px solid rgba(201, 169, 97, 0.45);
    padding: 52px 34px 30px;
    text-align: center;
  }
  .logo { width: 80px; margin: 0 auto 26px; color: var(--olive); }
  .logo svg { display: block; width: 100%; height: auto; }
  .eyebrow {
    font-size: 17px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olive);
    line-height: 1.7;
    text-wrap: balance;
  }
  h1 {
    font-family: Cambria, Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.15;
    color: var(--cream);
    margin: 22px 0 22px;
  }
  .rule { width: 56px; height: 1px; background: var(--gold); margin: 0 auto 26px; border: 0; }
  p { font-size: 17px; line-height: 1.65; margin: 0 auto 16px; max-width: 470px; }
  p.lead { color: var(--cream); font-size: 18px; }
  .btn {
    display: inline-block;
    margin: 14px 0 6px;
    padding: 15px 34px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gold);
  }
  .btn:hover, .btn:focus { background: transparent; color: var(--gold); }
  a.mail { color: var(--olive); text-underline-offset: 3px; }
  .fine {
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(90, 80, 64, 0.7);
    font-size: 11px;
    line-height: 1.6;
    color: var(--bronze);
    max-width: 480px;
  }
  @media (max-width: 480px) {
    .frame { padding: 40px 22px 24px; }
    .eyebrow { font-size: 15px; letter-spacing: 0.2em; }
    h1 { font-size: 32px; }
    p { font-size: 16px; }
    p.lead { font-size: 17px; }
  }

  /* ---------- Feedback survey (unlocked with the event code) ---------- */
  [hidden] { display: none !important; }
  .survey { margin: 0 auto; }
  .survey h2 {
    font-family: Cambria, Georgia, "Times New Roman", serif;
    font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--cream); margin: 0 0 12px;
  }
  .survey p.sub { color: var(--olive); }
  .gate { display: flex; gap: 10px; max-width: 400px; margin: 22px auto 0; }
  .gate input {
    flex: 1; min-width: 0; padding: 14px 16px; font: inherit; font-size: 17px; letter-spacing: 0.12em; text-align: center;
    color: var(--cream); background: transparent; border: 1px solid rgba(201, 169, 97, 0.55); border-radius: 0;
  }
  .gate button, .send {
    padding: 14px 24px; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
    background: var(--gold); color: var(--ink); border: 1px solid var(--gold); border-radius: 0; cursor: pointer;
  }
  .gate button:hover, .send:hover { background: transparent; color: var(--gold); }
  .send[disabled] { opacity: 0.5; cursor: default; }
  .gate-msg { min-height: 1.6em; margin: 12px auto 0; font-size: 15px; color: #E0A58F; }
  .gate-hint { font-size: 14px; margin: 8px auto 0; color: var(--bronze); }
  form.fb { text-align: left; margin: 30px auto 0; max-width: 520px; }
  form.fb fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
  form.fb legend, form.fb label.q {
    display: block; padding: 0; margin: 0 0 10px; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--cream);
  }
  form.fb .help { display: block; margin: -4px 0 12px; font-size: 14px; line-height: 1.5; color: var(--olive); font-weight: 400; }
  .pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .pill { position: relative; }
  .pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .pill span {
    display: inline-block; padding: 10px 16px; font-size: 16px; line-height: 1.3; color: var(--gold-light);
    border: 1px solid rgba(201, 169, 97, 0.5); cursor: pointer;
  }
  .pill input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
  .pill input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
  .pill input:hover + span { border-color: var(--gold); }
  .scale-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--olive); }
  .rate .pill span { min-width: 52px; text-align: center; }
  form.fb textarea, form.fb input[type=text] {
    width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--cream);
    background: transparent; border: 1px solid rgba(201, 169, 97, 0.45); border-radius: 0; resize: vertical;
  }
  form.fb textarea { min-height: 96px; }
  form.fb textarea:focus, form.fb input[type=text]:focus, .gate input:focus {
    outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
  }
  form.fb ::placeholder, .gate ::placeholder { color: var(--bronze); opacity: 1; }
  .check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: var(--gold-light); cursor: pointer; }
  .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
  .contact-fields { margin-top: 16px; display: grid; gap: 12px; }
  .contact-fields label { font-size: 15px; color: var(--olive); }
  .contact-fields input { margin-top: 6px; }
  .note { font-size: 14px; line-height: 1.6; color: var(--olive); margin: 14px 0 0; max-width: none; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-msg { min-height: 1.6em; margin: 14px 0 0; font-size: 15px; color: #E0A58F; }
  .thanks { text-align: center; margin: 30px auto 0; }
  .thanks h2 { font-size: 26px; }
  @media (max-width: 480px) {
    .survey h2 { font-size: 24px; }
    .gate { flex-direction: column; }
    .pill span { padding: 10px 14px; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal 0.35s ease-out; }
    @keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  }

  /* ---------- Code box at the top of the first page ---------- */
  .gatecard {
    margin: 26px auto 30px; padding: 28px 22px 20px; max-width: 500px;
    border: 1px solid rgba(201, 169, 97, 0.75); background: rgba(201, 169, 97, 0.06);
  }
  .gatecard .gate { margin-top: 18px; }
  .gatecard .gate-hint { margin-bottom: 0; }
  .after-gate { margin-top: 0; }
  /* feedback page */
  .frame.is-checking { visibility: hidden; }
  .survey-top h1 { margin: 24px 0 14px; font-size: 34px; }
  .survey-top p { color: var(--olive); }
  @media (max-width: 480px) {
    .gatecard { padding: 24px 16px 16px; }
    .survey-top h1 { font-size: 28px; }
  }
