* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --sky-top: #070d24;
  --sky-bottom: #26456f;
  --cream: #fdf6e3;
  --gold: #f4c752;
  --red: #b3202c;
  --green: #1f5c40;
}

html { background: var(--sky-top); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
}

.snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.button {
  display: inline-block;
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
  color: #3a2606;
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.5em 1.2em;
  cursor: pointer;
}
.button--quiet {
  color: var(--cream);
  background: rgba(7, 13, 36, 0.55);
  border-color: rgba(253, 246, 227, 0.45);
}
.button:hover { filter: brightness(1.12); }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Hidden test mode (js/testmode.js). */
.testmode { position: fixed; left: 0.8rem; bottom: 0.8rem; z-index: 90; font-size: 0.9rem; }
.testmode__badge {
  font: inherit;
  color: #1c1c22;
  background: #9be08a;
  border: 2px solid #1c1c22;
  border-radius: 999px;
  padding: 0.35em 0.9em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.testmode__panel {
  position: absolute;
  left: 0;
  bottom: 2.8rem;
  width: min(20rem, calc(100vw - 1.6rem));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  color: #1c1c22;
  background: #fdf6e3;
  border: 2px solid #1c1c22;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.testmode__panel[hidden] { display: none; }
.testmode__panel h2 { font-size: 1.1rem; }
.testmode__note { font-size: 0.8rem; font-style: italic; color: #5a4630; }
.testmode__label { font-weight: bold; }
.testmode__date { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.testmode__date span { text-align: center; flex: 1; }
.testmode__panel button {
  font: inherit;
  padding: 0.35em 0.8em;
  color: #1c1c22;
  background: #fff;
  border: 1px solid #8a919e;
  border-radius: 8px;
  cursor: pointer;
}
.testmode__check { display: flex; align-items: center; gap: 0.5em; }
