/*
 * ShitCon badge kiosk — late-90s web styling.
 *
 * The brief: look like a GeoCities page built in Notepad by someone who had
 * just discovered background colours. Still usable, just silly.
 *
 * Design rules followed here:
 *   - Times New Roman for body text, because that was the default.
 *   - A tiled starfield background, because plain white was boring.
 *   - Beveled borders everywhere, made from light/dark edge pairs.
 *   - Blinking text and a hit counter.
 *   - No rounded corners, no soft shadows, no modern minimalism.
 */

:root {
  --page-bg: #000033;
  --panel: #c0c0c0;
  --panel-light: #ffffff;
  --panel-dark: #808080;
  --panel-darker: #404040;
  --ink: #000000;
  --link: #0000ee;
  --visited: #551a8b;
  --hot: #ff0000;
  --lime: #00ff00;
  --yellow: #ffff00;
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --bad: #cc0000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background-color: var(--page-bg);
  /* A tiled starfield, drawn with gradients so there is no image to ship. */
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff 50%, transparent 50%),
    radial-gradient(1px 1px at 90px 70px, #ffffff 50%, transparent 50%),
    radial-gradient(1px 1px at 140px 20px, #ffffff 50%, transparent 50%),
    radial-gradient(1px 1px at 60px 120px, #ffffff 50%, transparent 50%),
    radial-gradient(1px 1px at 170px 110px, #ffffff 50%, transparent 50%),
    radial-gradient(2px 2px at 110px 40px, #ffff99 50%, transparent 50%);
  background-size: 200px 140px;
  color: var(--ink);
  font-family: "Times New Roman", Times, "Liberation Serif", serif;
  font-size: 16px;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ---------- top bar ---------- */

.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: var(--panel);
  border-bottom: 2px solid var(--panel-darker);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  font-family: "Comic Sans MS", "Chalkboard SE", "DejaVu Sans", cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--hot);
  text-shadow: 2px 2px 0 var(--yellow), 4px 4px 0 #000000;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #000080;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* ---------- stage ---------- */

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  padding: 12px;
}

.waiver {
  width: 100%;
  max-width: 900px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  /* Classic 3D bevel: light top/left, dark bottom/right. */
  border-top: 2px solid var(--panel-light);
  border-left: 2px solid var(--panel-light);
  border-right: 2px solid var(--panel-darker);
  border-bottom: 2px solid var(--panel-darker);
  padding: 12px 16px 16px;
}

.waiver h1 {
  margin: 0 0 6px;
  font-family: "Comic Sans MS", "Chalkboard SE", "DejaVu Sans", cursive;
  font-size: 26px;
  color: #000080;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-decoration-thickness: 2px;
}

.waiver-intro {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #400000;
  text-align: center;
  font-style: italic;
}

/* ---------- the scrollable legal text ---------- */

.waiver-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  background: #ffffff;
  color: #000000;
  /* Inset bevel, the opposite of the panel. */
  border-top: 2px solid var(--panel-dark);
  border-left: 2px solid var(--panel-dark);
  border-right: 2px solid var(--panel-light);
  border-bottom: 2px solid var(--panel-light);
  font-family: "Times New Roman", Times, "Liberation Serif", serif;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

/* ---------- scrollbars ---------- */

/*
 * The waiver is 134 pages long and the checkbox stays locked until it has been
 * scrolled to the end, so the scrollbar is a primary control, not decoration.
 * It is deliberately loud: a wide navy thumb on a white track, with arrow
 * buttons, so it reads as "there is a lot more below" from across the room.
 *
 * Only the `::-webkit-scrollbar` pseudo-elements are used. Setting the
 * standards-based `scrollbar-color`/`scrollbar-width` would make Chromium
 * ignore them entirely and fall back to a thin native bar, which is the
 * opposite of what is wanted here.
 */
.waiver-text::-webkit-scrollbar,
.done-card::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar {
  width: 26px;
}

.waiver-text::-webkit-scrollbar-track,
.done-card::-webkit-scrollbar-track,
.gallery-grid::-webkit-scrollbar-track {
  background: #ffffff;
  border-left: 2px solid var(--panel-dark);
  border-right: 2px solid var(--panel-light);
}

.waiver-text::-webkit-scrollbar-thumb,
.done-card::-webkit-scrollbar-thumb,
.gallery-grid::-webkit-scrollbar-thumb {
  /* Navy rather than grey: the panel is grey, so a grey thumb disappears. */
  background: #000080;
  border-top: 2px solid #4a4aff;
  border-left: 2px solid #4a4aff;
  border-right: 2px solid #000040;
  border-bottom: 2px solid #000040;
  /* A floor on the thumb length so it never shrinks to an ungrabbable sliver. */
  min-height: 48px;
}

.waiver-text::-webkit-scrollbar-thumb:hover,
.done-card::-webkit-scrollbar-thumb:hover,
.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: #0000cc;
}

.waiver-text::-webkit-scrollbar-thumb:active,
.done-card::-webkit-scrollbar-thumb:active,
.gallery-grid::-webkit-scrollbar-thumb:active {
  background: #0000ff;
}

.waiver-text::-webkit-scrollbar-button:single-button,
.done-card::-webkit-scrollbar-button:single-button,
.gallery-grid::-webkit-scrollbar-button:single-button {
  display: block;
  height: 26px;
  background-color: var(--panel);
  border-top: 2px solid var(--panel-light);
  border-left: 2px solid var(--panel-light);
  border-right: 2px solid var(--panel-darker);
  border-bottom: 2px solid var(--panel-darker);
  background-repeat: no-repeat;
  background-position: center;
}

/*
 * The arrows are drawn as a pair of half-square gradients, which is the only
 * way to get a triangle out of a background without an image or a glyph. Each
 * half is a 10x10 box cut along a diagonal, and the two are placed side by side
 * to form a 20x10 triangle pointing up or down.
 *
 * The button is 26px wide with 2px borders and `box-sizing: border-box`, so the
 * padding box is 22x22 and the arrow is inset 1px horizontally and 6px
 * vertically to sit centred inside the bevel.
 */
.waiver-text::-webkit-scrollbar-button:single-button:vertical:decrement,
.done-card::-webkit-scrollbar-button:single-button:vertical:decrement,
.gallery-grid::-webkit-scrollbar-button:single-button:vertical:decrement {
  /* Up. Each half-box is cut along a diagonal, giving a triangle with a right
     angle at the bottom corner; side by side the two hypotenuses meet at an
     apex in the middle, which is an up-pointing triangle. */
  background-image: linear-gradient(to bottom right, transparent 50%, #000080 50%),
    linear-gradient(to bottom left, transparent 50%, #000080 50%);
  background-size: 10px 10px, 10px 10px;
  background-position: 1px 6px, 11px 6px;
}

.waiver-text::-webkit-scrollbar-button:single-button:vertical:increment,
.done-card::-webkit-scrollbar-button:single-button:vertical:increment,
.gallery-grid::-webkit-scrollbar-button:single-button:vertical:increment {
  /* Down: the same construction mirrored, apex at the bottom. */
  background-image: linear-gradient(to top right, transparent 50%, #000080 50%),
    linear-gradient(to top left, transparent 50%, #000080 50%);
  background-size: 10px 10px, 10px 10px;
  background-position: 1px 6px, 11px 6px;
}

.waiver-text::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
.waiver-text::-webkit-scrollbar-button:single-button:vertical:increment:hover,
.done-card::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
.done-card::-webkit-scrollbar-button:single-button:vertical:increment:hover,
.gallery-grid::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
.gallery-grid::-webkit-scrollbar-button:single-button:vertical:increment:hover {
  background-color: #e8e8e8;
}

.waiver-text::-webkit-scrollbar-corner,
.done-card::-webkit-scrollbar-corner,
.gallery-grid::-webkit-scrollbar-corner {
  background: #ffffff;
}

.waiver-text:focus-visible {
  outline: 2px dotted var(--hot);
  outline-offset: -4px;
}

/* ---------- read progress ---------- */

.waiver-progress {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
}

.waiver-progress-bar {
  flex: 1;
  height: 16px;
  background: #ffffff;
  border-top: 2px solid var(--panel-dark);
  border-left: 2px solid var(--panel-dark);
  border-right: 2px solid var(--panel-light);
  border-bottom: 2px solid var(--panel-light);
  overflow: hidden;
}

.waiver-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  /* A 90s progress bar: chunky stripes. */
  background: repeating-linear-gradient(
    90deg,
    #000080 0,
    #000080 8px,
    #0000ff 8px,
    #0000ff 16px
  );
  transition: width 0.12s linear;
}

.waiver-progress-label {
  flex: none;
  min-width: 96px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #000080;
  text-align: right;
}

/* ---------- form ---------- */

.waiver-form {
  flex: none;
}

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffcc;
  border: 3px solid #000000;
  box-shadow: 4px 4px 0 #808000;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

/* The box is the one control that must not be missed, so it is oversized and
   sits on its own line of emphasis rather than reading as body copy. */
.check:hover {
  background: #ffffaa;
}

/* Locked: the box cannot be ticked yet, so say so loudly. */
.check.locked {
  background: #e8e8e8;
  border-color: #999999;
  box-shadow: 4px 4px 0 #bbbbbb;
  color: #666666;
  cursor: not-allowed;
}

.check.locked:hover {
  background: #e8e8e8;
}

.check.locked input {
  cursor: not-allowed;
}

/* Tooltip explaining why the box cannot be ticked yet. Only rendered while
   locked; `setCheckboxUnlocked` toggles the `hidden` attribute. */
.check-tooltip {
  position: absolute;
  left: 14px;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: max-content;
  max-width: 340px;
  padding: 8px 10px;
  background: #000000;
  color: #ffff99;
  border: 2px solid var(--yellow);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
  /* Hidden by default so it never flashes before the first hover. */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

/* Little arrow pointing down at the box. */
.check-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 18px;
  border: 7px solid transparent;
  border-top-color: var(--yellow);
}

.check-tooltip[hidden] {
  display: none;
}

/* Only while locked, and only on hover or keyboard focus. */
.check.locked:hover .check-tooltip,
.check.locked:focus-within .check-tooltip {
  opacity: 1;
  visibility: visible;
}

.check input {
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: #000080;
  cursor: pointer;
}

.check input:disabled {
  cursor: not-allowed;
}

.check-required {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  background: var(--bad);
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* Nudge the box when the attendee tries to submit without ticking it. */
.check.attention {
  animation: check-shake 0.4s ease-in-out 3;
  border-color: var(--bad);
  background: #ffe0e0;
}

@keyframes check-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #000080;
  text-transform: uppercase;
}

.field input {
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  padding: 6px 8px;
  color: #000000;
  background: #ffffff;
  border-top: 2px solid var(--panel-dark);
  border-left: 2px solid var(--panel-dark);
  border-right: 2px solid var(--panel-light);
  border-bottom: 2px solid var(--panel-light);
}

.field input::placeholder {
  color: #999999;
}

.field input:focus {
  outline: 2px dotted var(--hot);
  outline-offset: -4px;
}

.field input.invalid {
  background: #ffe0e0;
  border-color: var(--bad);
}

.form-error {
  margin: 8px 0 0;
  min-height: 18px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--bad);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* The big beveled button. */
.submit {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: var(--panel);
  color: #000080;
  font-family: "Comic Sans MS", "Chalkboard SE", "DejaVu Sans", cursive;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-top: 3px solid var(--panel-light);
  border-left: 3px solid var(--panel-light);
  border-right: 3px solid var(--panel-darker);
  border-bottom: 3px solid var(--panel-darker);
}

.submit:hover:not(:disabled) {
  background: #d4d0c8;
}

/* Pressing it inverts the bevel, like a real 90s button. */
.submit:active:not(:disabled) {
  border-top: 3px solid var(--panel-darker);
  border-left: 3px solid var(--panel-darker);
  border-right: 3px solid var(--panel-light);
  border-bottom: 3px solid var(--panel-light);
  padding: 13px 11px 11px 13px;
}

.submit:disabled {
  color: #808080;
  text-shadow: 1px 1px 0 var(--panel-light);
  cursor: not-allowed;
}

.ghost {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: var(--panel);
  color: #000080;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  border-top: 2px solid var(--panel-light);
  border-left: 2px solid var(--panel-light);
  border-right: 2px solid var(--panel-darker);
  border-bottom: 2px solid var(--panel-darker);
}

.ghost:hover {
  background: #d4d0c8;
}

.ghost:active {
  border-top: 2px solid var(--panel-darker);
  border-left: 2px solid var(--panel-darker);
  border-right: 2px solid var(--panel-light);
  border-bottom: 2px solid var(--panel-light);
}

.ghost.small {
  width: auto;
  margin: 0;
  padding: 5px 10px;
  font-size: 12px;
}

/* ---------- footer ---------- */

.footer {
  flex: none;
  padding: 6px 14px;
  background: var(--panel);
  border-top: 2px solid var(--panel-darker);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 11px;
  color: #000080;
}

.footer-small {
  margin-top: 2px !important;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px !important;
  color: #404040 !important;
}

/* Operator control, deliberately quiet: it sits in the footer next to the hit
   counter, where an attendee reading the waiver will not notice it. Checking it
   waives every requirement so a badge can be printed in one click. */
.test-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #404040;
  cursor: pointer;
  user-select: none;
}

.test-mode input {
  width: 11px;
  height: 11px;
  margin: 0;
  cursor: pointer;
}

.counter {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  background: #000000;
  color: var(--lime);
  padding: 1px 4px;
  letter-spacing: 0.12em;
}

.blink {
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/* ---------- toasts ---------- */

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel);
  border-top: 2px solid var(--panel-light);
  border-left: 2px solid var(--panel-light);
  border-right: 2px solid var(--panel-darker);
  border-bottom: 2px solid var(--panel-darker);
  pointer-events: auto;
}

.toast.bad {
  background: #ffdddd;
}

.toast-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--bad);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  margin: 0 0 2px;
  font-family: "Comic Sans MS", "Chalkboard SE", "DejaVu Sans", cursive;
  font-size: 14px;
  font-weight: 700;
  color: var(--bad);
}

.toast-message {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #000000;
  word-break: break-word;
}

.toast-close {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--panel-darker);
  background: var(--panel);
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.toast-close:hover {
  background: #d4d0c8;
}

/* ---------- capture flash ---------- */

.flash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.06s linear;
}

.flash.on {
  opacity: 1;
}

/* ---------- camera source ---------- */

/*
 * The camera element must never be visible: the attendee is not told a photo is
 * being taken, and a live preview would give it away.
 *
 * It is shrunk to a single pixel instead of being `display: none` or `hidden`.
 * Chromium suspends video decoding for an element that is not rendered, and a
 * video that is not decoding still reports its size while `drawImage` copies a
 * black frame — so the kiosk printed a black headshot on machines where the
 * element went unrendered. Keeping it in the layout, painted and composited,
 * keeps the decoder running while showing nothing.
 *
 * `opacity: 0.01` rather than `0` on purpose: a fully transparent element can
 * be skipped by the compositor, which reintroduces the problem. A hundredth of
 * a pixel of colour is indistinguishable from nothing.
 */
.camera-source {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
  z-index: 0;
}

/* ---------- done overlay ---------- */

.done {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 51, 0.88);
}

.done[hidden] {
  display: none;
}

.done-card {
  width: 100%;
  max-width: 400px;
  max-height: 100%;
  overflow-y: auto;
  padding: 16px;
  text-align: center;
  background: var(--panel);
  border-top: 3px solid var(--panel-light);
  border-left: 3px solid var(--panel-light);
  border-right: 3px solid var(--panel-darker);
  border-bottom: 3px solid var(--panel-darker);
}

.done-card h2 {
  margin: 0 0 12px;
  font-family: "Comic Sans MS", "Chalkboard SE", "DejaVu Sans", cursive;
  font-size: 22px;
  color: #000080;
}

.done-detail {
  margin: 0 0 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #000000;
  white-space: pre-wrap;
  word-break: break-word;
}

/* The one instruction the attendee has to act on, so it is the loudest thing
   in the card: big, red, bold and boxed. */
.done-detail.primary {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #ffffff;
  border: 3px solid var(--bad);
  font-family: "Comic Sans MS", "Chalkboard SE", "DejaVu Sans", cursive;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bad);
  text-align: center;
}

.done-detail.bad {
  color: var(--bad);
}

.done-detail.warn {
  color: #996600;
}

/* ---------- end-of-event gallery ---------- */

.gallery {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 51, 0.94);
}

.gallery[hidden] {
  display: none;
}

.gallery-card {
  width: 100%;
  max-width: 1000px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--panel);
  border-top: 3px solid var(--panel-light);
  border-left: 3px solid var(--panel-light);
  border-right: 3px solid var(--panel-darker);
  border-bottom: 3px solid var(--panel-darker);
}

.gallery-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--panel-dark);
}

.gallery-head h2 {
  margin: 0;
  font-family: "Comic Sans MS", "Chalkboard SE", "DejaVu Sans", cursive;
  font-size: 20px;
  color: #000080;
}

.gallery-sub {
  margin: 3px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #404040;
}

.gallery-actions {
  display: flex;
  gap: 6px;
  flex: none;
}

.gallery-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 12px 2px 2px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--panel-darker);
}

.gallery-item figcaption {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1.3;
  color: #000080;
  word-break: break-word;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  color: #404040;
}

@media (max-width: 720px) {
  .fields {
    grid-template-columns: 1fr;
  }

  .waiver {
    padding: 10px;
  }

  .waiver h1 {
    font-size: 21px;
  }

  .brand-mark {
    font-size: 24px;
  }

  .brand-sub {
    display: none;
  }
}

/* Respect reduced-motion: stop the blink. */
@media (prefers-reduced-motion: reduce) {
  .blink {
    animation: none;
  }
}
