body {
  background: #000000 url('../img/kayak.jpg') no-repeat center top;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}

/* The contact form is a panel that stays closed until the navbar's Contact link is
   clicked, matching l8t.com: `.overlay` is display:none and js/contact-overlay.js
   fades it in over the page. Its z-index is below the fixed navbar (1030), so the
   same Contact link stays clickable and hides it again. Nothing used to open it,
   which is why the site had no contact path at all. */
.overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.85); /* keeps the white form text legible over the photo */
  padding: 56px 0 4rem; /* clears the fixed navbar while the panel is open */
}

/* The bar is 48px at every width now that Contact sits in it directly (no toggler to wrap
   onto a second row), so 56px clears it everywhere. */
.overlay:focus {
  outline: none;
}

/* Feedback from assets/js/contact.js (id="form-feedback"). That handler does
   feedback.className = 'error' | 'success', which drops the original class list, so the
   colours have to be keyed off the id rather than off .messages. */
#form-feedback {
  margin-bottom: 1rem;
  font-weight: 600;
}

#form-feedback.error {
  color: #ff9a8b;
}

#form-feedback.success {
  color: #8ee0a8;
}

/* The navbar is fixed-top: 48px tall at every width, because Contact is a single nav item
   that no longer collapses behind a toggler and wraps the bar onto two rows. The game used
   to start at y=20, so #score sat behind the bar and the New/Save buttons (y=80) were hidden
   on narrow screens. Push it clear. */
#application {
  padding-top: 56px;
}

/* css/src.min.css has a bare `button { width: 100px; margin: 20px 10px }` rule that
   only matches <button> elements; the send control is a <button> now, so undo it. */
.btn-send {
  width: auto;
  min-width: 150px;
  margin: 0;
  line-height: 1.5;
}

/* Shared l8t drag-to-verify check (9irl.com / 9uy.com markup), styled for the dark
   panel: the chip is a tab stop, and the drop area answers with a tick. */
.l8t-captcha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  padding: 0.5rem;
  background: #2b2b2b; /* solid: the photo behind is bright, and the labels must stay readable */
  border: 1px solid #6c6c6c;
  border-radius: 0.5rem;
}

/* Panel width, so the chip starts where the inputs start and the target ends where they
   end: the gap between them grows with the viewport, the target's own box does not. */

.l8t-drag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 44px;
  border: 1px solid #9a9a9a;
  border-radius: 22px;
  background: #3a3a3a;
  color: #ffffff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: grab;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.l8t-drag-item:hover {
  border-color: #ff9a8b;
  color: #ff9a8b;
  transform: scale(1.05);
}

.l8t-drag-item:active {
  cursor: grabbing;
}

.l8t-drag-item:focus-visible {
  outline: 2px solid #8ee0a8;
  outline-offset: 2px;
}

.l8t-drop-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 80px;
  min-height: 44px;
  border: 1px dashed #9a9a9a;
  border-radius: 0.375rem;
  color: #e6e6e6;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

/* The target sits at the far end of the row, so it has to say where the chip will land:
   the strip lifts as soon as the pointer is anywhere in the row, and stays lit for the
   whole drag rather than only while the pointer happens to be over the target itself. */
.l8t-captcha-row:hover .l8t-drop-area:not(.verified) {
  border-color: #c4c4c4;
  background: rgba(255, 255, 255, 0.05);
}

.l8t-captcha-row.is-dragging .l8t-drop-area:not(.verified) {
  border-style: solid;
  border-color: #8ee0a8;
  background: rgba(142, 224, 168, 0.1);
  color: #8ee0a8;
  box-shadow: inset 0 0 0 1px rgba(142, 224, 168, 0.35);
}

.l8t-drag-item.is-dragging {
  cursor: grabbing;
  border-color: #8ee0a8;
  color: #8ee0a8;
  transform: scale(0.96);
}

.l8t-drop-area.dragover {
  border-style: solid;
  border-color: #8ee0a8;
  background: rgba(142, 224, 168, 0.16);
  color: #8ee0a8;
  box-shadow: inset 0 0 0 1px rgba(142, 224, 168, 0.45);
}

.l8t-drop-area.verified {
  border-style: solid;
  border-color: #8ee0a8;
  background: rgba(142, 224, 168, 0.12);
  color: #8ee0a8;
  font-weight: 700;
}
