@font-face {
  font-family: "Alfa Slab One";
  src: url("/assets/fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #12344a;
  --bg-deep: #0c2433;
  --bg-ink: #091c28;
  --gold: #c08a3e;
  --gold-deep: #8a5e24;
  --gold-bright: #f0d7a2;
  --parchment: #e8cfa0;
  --parchment-deep: #d4b483;
  --ink: #1c2a33;
  --ink-soft: #3e5160;
  --cream: #f7f1e6;
  --danger: #8d2e2e;
  --ok: #1d6b45;
  --line: rgba(192, 138, 62, 0.45);
  --display: "Alfa Slab One", Rockwell, "Arial Black", serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
/* Author display rules (flex buttons, the install card) must not defeat the hidden attribute. */
[hidden] { display: none !important; }
html, body { height: 100%; max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  color: var(--parchment);
  background: var(--bg-ink);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-bright); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.15; margin: 0 0 0.4em; }
p { margin: 0 0 0.8em; }
.skip {
  position: absolute;
  left: 8px;
  top: 0;
  transform: translateY(calc(-100% - 8px));
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 8px; transform: none; }

.app-body { display: flex; justify-content: center; min-height: 100dvh; }
.app-shell {
  width: min(430px, 100%);
  max-width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background:
    radial-gradient(900px 280px at 50% -40px, rgba(192, 138, 62, 0.16), transparent 60%),
    var(--bg);
  color: var(--parchment);
  position: relative;
}
@media (min-width: 560px) {
  .app-shell { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.35); }
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(12, 36, 51, 0.94);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-height: 48px; }
.brand img { width: 42px; height: 42px; display: block; border-radius: 10px; }
.dev-banner {
  flex: none;
  background: #6d4a16;
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.wordmark {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.city {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

main#main {
  flex: 1;
  min-width: 0;
  overflow-x: clip;
  overflow-y: auto;
  padding: 16px 16px 18px;
  -webkit-overflow-scrolling: touch;
}
main#main > * + * { margin-top: 14px; }

.hero { text-align: center; padding: 8px 0 4px; }
.hero img.logo { width: min(240px, 78%); height: auto; }
.lede { font-size: 1.05rem; color: var(--cream); }
.city-hero { text-align: left; padding: 2px 2px 0; }
.city-hero h1 { color: var(--cream); font-size: 2rem; overflow-wrap: anywhere; }
.city-hero .lede { margin: 0; }
.city-open { border: 2px solid var(--gold); }
.city-open h2 { font-size: 1.65rem; }
.city-open h2, .city-upcoming h2, .city-past h2,
.city-open p, .city-upcoming p, .city-past p { overflow-wrap: anywhere; }

.card {
  background: var(--parchment);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
}
.card h1, .card h2, .card h3 { color: var(--bg); }
.card a { color: #6d4a16; }
.card .muted, .muted { color: var(--ink-soft); }
.card + .card { margin-top: 14px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 0;
  background: var(--gold);
  color: #1c140c;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn.secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(232, 207, 160, 0.5);
}
.card .btn.secondary { color: var(--bg); border-color: rgba(18, 52, 74, 0.35); }
.btn.small { min-height: 44px; width: auto; padding: 8px 14px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span, label { font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1.5px solid rgba(18, 52, 74, 0.2);
  background: var(--cream);
  color: var(--ink);
  padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 0.95rem; }
.check input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  min-height: 22px;
  max-height: 22px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 6px;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alert { border-radius: 12px; padding: 12px 14px; background: #efe2c4; color: var(--ink); }
.alert.error { background: #f3d2d2; color: #5c1d1d; }
.alert.ok { background: #d7ebdf; color: #143d28; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.timer {
  font-family: var(--display);
  font-size: 3.1rem;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}
.timer.small { font-size: 1.6rem; }
.code-input {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.7rem;
  letter-spacing: 0.32em;
  text-align: center;
  text-transform: uppercase;
  min-height: 68px;
}
.dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(18, 52, 74, 0.2);
  display: block;
}
.dots i.on { background: var(--gold); }
.dots i.now { background: transparent; box-shadow: inset 0 0 0 2px var(--gold-deep); }
.clue-figure { border-radius: 12px; display: block; margin: 8px 0 12px; background: #efe4cc; }
.join-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.7rem;
  letter-spacing: 0.18em;
  text-align: center;
  margin: 6px 0;
}
.hint-shown {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}
.hint-shown p:last-child { margin-bottom: 0; }
.hint-group {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 52, 74, 0.22);
  background: rgba(255, 255, 255, 0.4);
  max-width: 100%;
  min-width: 0;
}
.hint-group.code {
  border-color: #8a5e24;
  background: #f4ead6;
}
.hint-group h2 {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}
.hint-group .btn { margin-top: 4px; }
.hint-board { margin-top: 16px; }
.hint-board > h2 {
  font-family: var(--body);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.hint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.hint-slot {
  flex: 1 1 calc(33.33% - 8px);
  min-width: 0;
  margin: 0;
}
.hint-row .hint-slot {
  border: 1.5px solid rgba(18, 52, 74, 0.28);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.hint-row form.hint-slot { padding: 0; border: 0; background: transparent; display: flex; }
.hint-row .hint-btn {
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 8px 6px;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: center;
}
.hint-used, .hint-later {
  min-height: 64px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}
.hint-used { background: #e7eef2; }
.hint-later { opacity: 0.55; }
.hint-min { display: block; font-size: 0.75rem; font-weight: 700; }
.arrived-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e7f2ea;
  color: #1d4a32;
}
.onsite { margin: 8px 0 16px; }
.step-lead {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4ead6;
  border: 1px solid rgba(138, 94, 36, 0.45);
  color: #1c2a33;
  line-height: 1.45;
}
.riddle .step-lead {
  background: rgba(247, 241, 230, 0.1);
  border-color: rgba(224, 181, 106, 0.55);
  color: #f7f1e6;
}
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
}
.step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #102838;
  color: #f7f1e6;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-body {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
  padding-top: 2px;
}
.code-card { margin-top: 8px; }
.code-card h2 {
  font-family: var(--body);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.code-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.code-row .code-field { flex: 1 1 auto; min-width: 0; margin: 0; }
.code-row .code-check {
  width: auto;
  flex: 0 0 auto;
  min-height: 68px;
  padding: 0 18px;
}
.arrival { margin-top: 12px; }
.arrival-question { margin-bottom: 10px; }
.riddle {
  margin: 12px 0 14px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 2px solid #c08a3e;
  background: #102838;
  color: #f7f1e6;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  overflow-wrap: break-word;
}
.riddle br { line-height: inherit; }
.riddle-label {
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0b56a;
}
.riddle-quiet {
  margin: 10px 0 0;
  padding: 12px;
  border-width: 1px;
  border-color: rgba(138, 94, 36, 0.55);
  background: #f4ead6;
  color: #1c2a33;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  overflow-wrap: break-word;
}
.riddle-quiet .riddle-label { color: #8a5e24; }
@media (prefers-color-scheme: dark) {
  .riddle {
    background: #102838;
    color: #f7f1e6;
    border-color: #e0b56a;
  }
  .riddle-quiet {
    background: #1a3344;
    color: #f7f1e6;
    border-color: rgba(224, 181, 106, 0.7);
  }
  .riddle-quiet .riddle-label { color: #e0b56a; }
}
.instructions-card,
.how-card {
  background: #e7eef2;
  color: #1c2a33;
  border: 1px solid #7f9aab;
  box-shadow: none;
}
.instructions-card h2,
.how-to-play summary {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: #102838;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
}
.instructions-card h2 { margin-bottom: 8px; }
.how-body {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}
.how-body p:last-child { margin-bottom: 0; }
svg.info-icon {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  display: block;
}
.how-to-play summary {
  cursor: pointer;
  min-height: 44px;
}
.how-to-play[open] summary { margin-bottom: 8px; }
.celebrate { position: relative; overflow: hidden; text-align: center; }
.celebrate h2 { font-size: 2rem; margin-top: 4px; }
.celebrate-stop { font-weight: 700; }
.celebrate-hog {
  width: min(220px, 72%);
  height: auto;
  display: block;
  margin: 0 auto 8px;
  border-radius: 16px;
  background: #102838;
}
.card a.btn.celebrate-next,
.card a.btn.celebrate-next:hover,
.card a.btn.celebrate-next:active { color: #1c140c; background: var(--gold); }
.celebrate-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.celebrate-burst i {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 8px;
  height: 12px;
  margin: 0;
  border-radius: 2px;
  opacity: 0;
  background: #c08a3e;
}
.celebrate-burst i:nth-child(3n) { background: #f0d7a2; height: 8px; }
.celebrate-burst i:nth-child(3n+1) { background: #8d2e2e; width: 7px; height: 7px; border-radius: 50%; }
.hint-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(9, 28, 40, 0.72);
}
.hint-modal-card {
  width: min(420px, 100%);
  background: #f7f1e6;
  color: #1c2a33;
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}
.hint-modal-card h2 { color: #102838; font-size: 1.6rem; }
.hint-modal-card .btn + .btn { margin-top: 8px; }
.hint-modal-card .btn.secondary { color: #102838; border-color: rgba(18, 52, 74, 0.35); }
@media (prefers-reduced-motion: no-preference) {
  .celebrate-hog { animation: hog-pop 0.7s cubic-bezier(.2, 1.35, .35, 1) both; }
  .celebrate-burst i { animation: hog-burst 0.95s ease-out both; }
  .celebrate-burst i:nth-child(1) { --dx: -92px; --dy: -78px; animation-delay: 0s; }
  .celebrate-burst i:nth-child(2) { --dx: -48px; --dy: -110px; animation-delay: 0.04s; }
  .celebrate-burst i:nth-child(3) { --dx: 8px; --dy: -104px; animation-delay: 0.02s; }
  .celebrate-burst i:nth-child(4) { --dx: 64px; --dy: -90px; animation-delay: 0.06s; }
  .celebrate-burst i:nth-child(5) { --dx: 104px; --dy: -46px; animation-delay: 0.03s; }
  .celebrate-burst i:nth-child(6) { --dx: -108px; --dy: -20px; animation-delay: 0.05s; }
  .celebrate-burst i:nth-child(7) { --dx: 96px; --dy: 8px; animation-delay: 0.01s; }
  .celebrate-burst i:nth-child(8) { --dx: -70px; --dy: 36px; animation-delay: 0.07s; }
  .celebrate-burst i:nth-child(9) { --dx: 40px; --dy: 48px; animation-delay: 0.04s; }
  .celebrate-burst i:nth-child(10) { --dx: -20px; --dy: -88px; animation-delay: 0.08s; }
  .celebrate-burst i:nth-child(11) { --dx: 28px; --dy: -60px; animation-delay: 0.02s; }
  .celebrate-burst i:nth-child(12) { --dx: -120px; --dy: 12px; animation-delay: 0.05s; }
  .celebrate-burst i:nth-child(13) { --dx: 120px; --dy: -18px; animation-delay: 0.03s; }
  .celebrate-burst i:nth-child(14) { --dx: 0px; --dy: -120px; animation-delay: 0.06s; }
}
@keyframes hog-pop {
  0% { transform: scale(0.7) rotate(-4deg); }
  65% { transform: scale(1.07) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes hog-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.55) rotate(28deg); }
}
details.past { background: rgba(255,255,255,0.35); border-radius: 12px; padding: 8px 12px; margin-top: 8px; }
details.past summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details.hunt-details {
  background: rgba(255,255,255,0.35);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 10px 0 14px;
}
details.hunt-details summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
details.hunt-details[open] summary { margin-bottom: 8px; }
.hunt-switch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hunt-switch-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(18, 52, 74, 0.12);
}
.hunt-switch-list li:first-child { border-top: 0; padding-top: 0; }
.hunt-switch-list strong { display: block; }
.hunt-switch-list .btn.small { width: auto; flex: none; }

.board-fit { max-width: 100%; min-width: 0; }
.board {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.board thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.board,
.board tbody,
.board tr,
.board td {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.board tr {
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(18, 52, 74, 0.16);
}
.board tr:first-child { padding-top: 0; }
.board td {
  border: 0;
  padding: 3px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}
.board td::before {
  content: attr(data-label);
  flex: 0 0 auto;
  max-width: 46%;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.board td.board-place,
.board td.board-team,
.board td.board-empty {
  display: block;
  text-align: left;
  padding: 0;
}
.board td.board-place::before,
.board td.board-team::before,
.board td.board-empty::before { content: none; }
.board td.board-team {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.place { font-family: var(--display); font-size: 1.15rem; color: var(--gold-deep); }

.draft-banner {
  background: #6d4a16;
  color: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}
.footer-links { display: flex; justify-content: center; gap: 14px; font-size: 0.85rem; padding: 4px 0 2px; }
.footer-links a { color: var(--gold-bright); }

.install-banner {
  flex: none;
  margin: 0 12px 8px;
  background: var(--parchment);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.install-banner p { margin: 0; }
.install-banner .btn { min-height: 44px; }
.install-banner .btn.secondary {
  color: var(--ink);
  border-color: rgba(28, 42, 51, 0.35);
}

.tabbar {
  flex: none;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 4px 2px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 20%;
  min-height: 48px;
  text-decoration: none;
  color: #b7c6ce;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  padding: 0;
}
.tabbar a svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
}
.tabbar a.active { color: var(--gold-bright); }

.social { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
a.btn.apple {
  background: #000;
  color: #fff;
  border: 0;
  min-height: 52px;
  padding: 0 16px;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1;
}
a.btn.apple svg { width: auto; height: 23px; flex: none; display: block; }
a.btn.apple span { white-space: nowrap; }
.card a.btn.apple,
.card a.btn.apple:hover,
.card a.btn.apple:active,
a.btn.apple:hover,
a.btn.apple:active { background: #000; color: #fff; }
.fine { font-size: 0.85rem; color: var(--ink-soft); }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
main#main { animation: rise 0.28s ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.brand-site .hero-lead,
.brand-site .hero-copy,
.brand-site .tier-grid,
.brand-site .tier-card { display: contents; }
.brand-site .inquiry-desk { display: flex; flex-direction: column; }
.brand-site .inquiry-copy,
.brand-site .inquiry-panel { display: contents; }
.brand-site .inquiry-form { order: 1; }
.brand-site .inquiry-mail { order: 2; }
.brand-site .copy-list { margin: 0 0 0.8em; padding-left: 1.2rem; }
.brand-site .copy-list li { margin: 0 0 0.55em; }
.brand-site .copy-list li:last-child { margin-bottom: 0; }
.brand-site .card h3.tier { font-size: 1.2rem; margin-top: 0.9em; }
.brand-site .copy-list li,
.brand-site .page-foot li { overflow-wrap: anywhere; }
.brand-site .field-error { margin: 0; color: #5c1d1d; font-size: 0.92rem; font-weight: 700; }
.brand-site #inquiry { scroll-margin-top: 12px; }
.brand-site .page-foot { color: var(--cream); font-size: 0.95rem; }
.brand-site .page-foot ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 8px; }
.brand-site .page-foot a { color: var(--gold-bright); }
.brand-site .footer-links { flex-wrap: wrap; }
.brand-site .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 2px; }
@media (min-width: 768px) {
  .app-shell.promo-wide.brand-site { width: min(1100px, 100%); }
  .promo-wide.brand-site .hero-lead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
  .promo-wide.brand-site .hero-copy { display: block; flex: 1 1 auto; min-width: 0; }
  .promo-wide.brand-site .hero-copy p { margin-bottom: 0; }
  .promo-wide.brand-site .hero-lead > .btn { width: auto; flex: 0 0 auto; padding-left: 22px; padding-right: 22px; }
  .promo-wide.brand-site .card > p { max-width: 68ch; }
  .promo-wide.brand-site .hunt-steps,
  .promo-wide.brand-site .split-2 > .copy-list,
  .promo-wide.brand-site .split-3 > .copy-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
  }
  .promo-wide.brand-site .hunt-steps li,
  .promo-wide.brand-site .split-2 > .copy-list li,
  .promo-wide.brand-site .split-3 > .copy-list li { margin: 0; }
  .promo-wide.brand-site .tier-section {
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: var(--parchment);
  }
  .promo-wide.brand-site .tier-section > h2 { color: var(--cream); }
  .promo-wide.brand-site .tier-section > p { color: var(--parchment); }
  .promo-wide.brand-site .tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    margin: 4px 0 14px;
  }
  .promo-wide.brand-site .tier-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--parchment);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .promo-wide.brand-site .tier-card h3.tier { margin-top: 0; }
  .promo-wide.brand-site .tier-card p { color: var(--ink); max-width: none; }
  .promo-wide.brand-site .inquiry-desk {
    display: grid;
    grid-template-columns: minmax(220px, 0.86fr) minmax(260px, 1.14fr);
    column-gap: 36px;
    align-items: start;
  }
  .promo-wide.brand-site .inquiry-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    grid-column: 1;
    min-width: 0;
  }
  .promo-wide.brand-site .inquiry-copy h2,
  .promo-wide.brand-site .inquiry-copy p { margin: 0; }
  .promo-wide.brand-site .inquiry-panel { display: block; grid-column: 2; min-width: 0; }
  .promo-wide.brand-site .inquiry-form,
  .promo-wide.brand-site .inquiry-mail { order: 0; }
}
@media (min-width: 1024px) {
  .promo-wide.brand-site .split-3 > .copy-list { grid-template-columns: 1fr 1fr 1fr; }
}
.app-shell.brand-site {
  width: min(1100px, 100%);
  height: auto;
  min-height: 100dvh;
}
.app-shell.brand-site main#main {
  overflow: visible;
  padding: 28px 32px 36px;
}
.app-shell.brand-site main#main > * + * { margin-top: 22px; }
.brand-header { flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.brand-site .wordmark { font-size: 1.45rem; }
.brand-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-left: auto;
}
.brand-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  text-decoration: none;
  font-weight: 700;
  color: var(--gold-bright);
}
.brand-nav a[aria-current="page"] {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.brand-intro {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.brand-hero { text-align: center; padding: 0; }
.brand-hero img.logo { width: min(280px, 100%); }
.brand-hero h1 { color: var(--cream); margin: 8px 0 0; }
.brand-cities-wrap > h2 { color: var(--cream); margin-bottom: 14px; }
.brand-cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.brand-cities > .card { margin-top: 0; }
.brand-cities .card h3 { margin-top: 0; }
.brand-cities .city-status { margin: 0; font-weight: 700; }
.brand-site .card > p { max-width: 68ch; }
@media (max-width: 1023px) {
  .brand-intro { grid-template-columns: 1fr; }
  .brand-cities { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .app-shell.brand-site main#main { padding: 16px 16px 24px; }
  .brand-nav { width: 100%; margin-left: 0; }
  .brand-cities { grid-template-columns: 1fr; }
  .brand-site .wordmark { font-size: 1.2rem; }
}
