/* Shared app styles — mobile-first (AGM delegates are on phones, 375px target) */
.wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px 64px; }

.site-header {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: var(--on-navy);
  border-bottom: 4px solid var(--amber);
}
.site-header .wrap { padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.ballot {
  width: 42px; height: 42px; border-radius: 8px; flex: none;
  border: 3px solid #fff; display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
}
.ballot::after { content: '✓'; color: var(--amber-bright); font-weight: 900; font-size: 26px; line-height: 1; }
.brand h1 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; letter-spacing: .2px; }
.brand .i { color: var(--amber-bright); }
.tagline { color: #cfe0f2; margin: 6px 0 0; font-size: .92rem; }

h2 { font-family: var(--font-display); color: var(--navy); }
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px; margin: 16px 0;
}
.muted { color: var(--muted); }
.demo-banner { background: #fff4d6; border: 1px solid var(--amber); color: #7a5b00; border-radius: 10px; padding: 10px 14px; margin: 14px 0 0; font-weight: 600; font-size: .9rem; }

.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  min-height: var(--tap); padding: 0 20px; border-radius: 999px;
  background: var(--amber); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .06s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(1px); }
.btn.navy { background: var(--navy); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.game-list { display: grid; gap: 12px; }
.game-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; color: inherit;
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 14px 16px; border-left: 5px solid var(--amber);
}
.game-tile .fam { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.badge { background: var(--surface-2); color: var(--navy); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; }

/* QINGO mini card */
.qingo { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 10px; }
.qingo span {
  aspect-ratio: 1; border-radius: 4px; background: var(--surface-2);
  display: grid; place-items: center; font-size: .55rem; color: transparent;
}
.qingo span.on { background: var(--amber); color: var(--ink); font-weight: 800; }

label.field { display: block; margin: 12px 0 4px; font-weight: 600; font-size: .9rem; }
input, select {
  width: 100%; min-height: var(--tap); font: inherit; padding: 0 12px; font-size: 16px;
  border: 2px solid var(--surface-2); border-radius: var(--radius-sm); background: #fff;
}
input:focus, select:focus { outline: 3px solid rgba(245,166,35,.4); border-color: var(--amber); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; }
.consent small { color: var(--muted); }
