
/* Press Start 2P is drawn on an 8px grid, so it is used at 16px and 24px. Departure Mono is
   drawn on an 11px grid, so all UI text uses 16.5px: three screen pixels a font pixel on a 2x phone. */
@font-face { font-family: 'Press Start 2P'; src: url('/fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Departure Mono'; src: url('/fonts/departure-mono.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Share Tech'; src: url('/fonts/share-tech.woff2') format('woff2'); font-display: swap; }
:root {
  --pine: #1e5b3a; --cranberry: #b3202f; --gold: #e8b33a;
  --snow: #f7f4ee; --cream: #fffaf0; --ink: #1b1b1b; --muted: #5c5a55; --line: #d9d3c7;
  --frost: #e4e1da; --frost-ink: #3d3b37;
  --font-heading: 'Press Start 2P', 'Departure Mono', ui-monospace, monospace;
  --font-ui: 'Departure Mono', ui-monospace, monospace;
  --font-body: 'Share Tech', system-ui, sans-serif;
  --text-heading-page: 24px; --text-heading-card: 16px;
  --text-ui: 16.5px; --text-body: 18px;
  --stripe-candy: repeating-linear-gradient(-45deg, var(--cranberry) 0 8px, var(--cream) 8px 16px);
  --stripe-hazard: repeating-linear-gradient(-45deg, var(--cranberry) 0 6px, var(--ink) 6px 12px);
}
* { box-sizing: border-box; }
body { margin: 0; font: var(--text-body)/1.6 var(--font-body); color: var(--ink); background-color: var(--snow);
  background-image: radial-gradient(var(--line) 1.5px, transparent 2px),
    radial-gradient(var(--line) 1px, transparent 1.5px);
  background-size: 48px 48px, 48px 48px; background-position: 0 0, 24px 24px; }
h1, h2 { font-family: var(--font-heading); font-weight: normal; color: var(--pine); line-height: 1.5;
  overflow-wrap: anywhere; }
h1 { font-size: var(--text-heading-page); margin: 24px 0 16px; }
h2 { font-size: var(--text-heading-card); margin: 0 0 16px; }
h3 { font: var(--text-ui)/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--pine);
  margin: 24px 0 8px; overflow-wrap: anywhere; }
a { color: var(--pine); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* Tiers: card-now only for a next step with an action (at most one a page), the plain card
   for the rest, card-quiet for side information, card-danger and danger-zone for actions
   that cannot be undone. */
section, article { position: relative; background: var(--cream); border: 2px solid #000;
  box-shadow: 4px 4px 0 #000; padding: 16px; margin: 24px 0; }
section > :first-child, article > :first-child, section > form:first-child > :first-child { margin-top: 0; }
section > :last-child, article > :last-child, section > form:last-child > :last-child { margin-bottom: 0; }
.card-now { border-width: 3px; box-shadow: 6px 6px 0 #000; padding: 36px 24px 24px; }
.card-now::before, .card-danger::before, .danger-zone::before { content: ''; position: absolute; left: 0; right: 0;
  top: 0; height: 8px; border-bottom: 2px solid #000; background: var(--stripe-candy); }
.card-now::before { border-bottom-width: 3px; }
.card-quiet { background: transparent; border: 2px dashed var(--muted); box-shadow: none; }
.card-danger, .danger-zone { border-color: var(--cranberry); padding-top: 32px; background: #fff; }
.card-danger::before, .danger-zone::before { background: var(--stripe-hazard); border-bottom-color: var(--cranberry); }
.card-danger h2, .danger-zone h2 { color: var(--cranberry); }
.notice { font-family: var(--font-ui); padding: 10px 12px; background: var(--cream);
  border: 2px solid var(--pine); color: var(--pine); }
.problem { font-family: var(--font-ui); padding: 10px 12px; background: #fff;
  border: 2px solid var(--cranberry); color: var(--cranberry); }
.note { white-space: pre-wrap; background: #fff; border: 2px solid #000; padding: 10px 12px; }

button, .button-link, a.secondary, a.quiet, a.destructive { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 16px; margin-top: 12px; font: var(--text-ui)/1.2 var(--font-ui);
  text-align: center; text-decoration: none; cursor: pointer; color: var(--cream); background: var(--cranberry);
  border: 2px solid #000; border-radius: 0; box-shadow: 4px 4px 0 #000; }
button:hover, .button-link:hover, a.secondary:hover, a.quiet:hover, a.destructive:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
button:active, .button-link:active, a.secondary:active, a.quiet:active, a.destructive:active { transform: translate(4px, 4px); box-shadow: none; }
button.secondary, .button-link.secondary, a.secondary { color: var(--pine); background: #fff; }
button.quiet, .button-link.quiet, a.quiet { color: var(--muted); background: transparent; border-style: dashed; border-color: var(--muted);
  box-shadow: none; }
button.quiet:hover, .button-link.quiet:hover, a.quiet:hover, button.quiet:active, .button-link.quiet:active, a.quiet:active { color: var(--ink); background: #fff; transform: none; }
/* On the page a destructive button stays lighter than primary. Only the final confirm in a
   pop-up gets the solid ink fill. */
button.destructive, .button-link.destructive, a.destructive { padding-left: 32px; color: var(--ink); border-color: var(--cranberry);
  background: var(--stripe-hazard) left / 16px 100% no-repeat, #fff; }
dialog button.destructive { color: var(--cream); border-color: #000;
  background: var(--stripe-hazard) left / 16px 100% no-repeat, var(--ink); }
.link-button, .text-link { display: inline; min-height: 0; margin: 0; padding: 0; font-family: var(--font-ui);
  background: none; border: none; box-shadow: none; text-decoration: underline; }
.link-button:hover, .text-link:hover, .link-button:active, .text-link:active { transform: none; box-shadow: none; }
.link-button { color: var(--cream); }
.text-link { color: var(--pine); }

/* A chip always pairs a word with an icon, so status never depends on colour alone. */
:is(.status-chip, .role-chip, .stage-chip) { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 6px;
  font: var(--text-ui)/1 var(--font-ui); text-transform: uppercase; white-space: nowrap;
  vertical-align: middle; color: var(--ink); background: #fff; border: 2px solid #000;
  --chip-icon: url("/images/icons/ring.svg"); }
:is(.status-chip, .role-chip, .stage-chip)::before { content: ''; flex: none; width: 16px; height: 16px; background: currentColor;
  mask: var(--chip-icon) center / 16px 16px no-repeat; }
@media (forced-colors: active) {
  :is(.status-chip, .role-chip, .stage-chip)::before { forced-color-adjust: none; background: CanvasText; }
}
:is(.status-chip, .role-chip, .stage-chip):is([data-status="joined"]) { --chip-icon: url("/images/icons/check.svg"); color: var(--cream); background: var(--pine); }
:is(.status-chip, .role-chip, .stage-chip):is([data-status="invited"]) { --chip-icon: url("/images/icons/clock.svg"); background: var(--cream); border-style: dashed; }
:is(.status-chip, .role-chip, .stage-chip):is([data-status="needs-contact"]) { --chip-icon: url("/images/icons/exclamation.svg"); color: var(--cream); background: var(--cranberry); }
:is(.status-chip, .role-chip, .stage-chip):is([data-status="declined"]) { --chip-icon: url("/images/icons/cross.svg"); color: var(--frost-ink); background: var(--frost); }
:is(.status-chip, .role-chip, .stage-chip):is([data-status="not-invited"]) { --chip-icon: url("/images/icons/ring.svg"); color: var(--muted); background: #fff; }
:is(.status-chip, .role-chip, .stage-chip):is([data-status="left"]) { --chip-icon: url("/images/icons/exit.svg"); color: var(--cream); background: var(--muted); }
:is(.status-chip, .role-chip, .stage-chip):is([data-stage="setting-up"]) { --chip-icon: url("/images/icons/ring.svg"); background: #fff; }
:is(.status-chip, .role-chip, .stage-chip):is([data-stage="waiting-for-people"]) { --chip-icon: url("/images/icons/clock.svg"); background: var(--gold); }
:is(.status-chip, .role-chip, .stage-chip):is([data-stage="drawn"]) { --chip-icon: url("/images/icons/check.svg"); color: var(--cream); background: var(--pine); }
:is(.status-chip, .role-chip, .stage-chip):is([data-stage="cancelled"]) { --chip-icon: url("/images/icons/cross.svg"); color: var(--frost-ink); background: var(--frost); }
:is(.status-chip, .role-chip, .stage-chip):is([data-role="owner"]) { --chip-icon: url("/images/icons/star.svg"); background: var(--gold); }
:is(.status-chip, .role-chip, .stage-chip):is([data-role="organizer"]) { --chip-icon: url("/images/icons/bell.svg"); color: var(--pine); background: #fff; border-color: var(--pine); }

header { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1rem .75rem; background: var(--pine); }
.candy-cane { height: .6rem; border-bottom: 3px solid #000; background: var(--stripe-candy); }
header nav { display: flex; gap: .75rem; align-items: center; }
header nav a { font-family: var(--font-ui); color: var(--cream); }
header form { margin: 0; }
.site-name { position: relative; padding-left: 3.1rem; font-family: var(--font-heading); font-size: 16px;
  line-height: 1.5; color: var(--cream); text-decoration: none; text-shadow: 2px 2px 0 #000; white-space: nowrap; }
.site-name-text::first-letter { color: var(--gold); }
.site-name-text { display: inline-block; }
.wordmark-mascot { position: absolute; left: 0; top: 50%; width: 2.5rem; height: 2.5rem;
  image-rendering: pixelated; transform: translateY(-50%); }
.wordmark-hat { position: absolute; left: 2.55rem; top: -.5rem; width: 2rem; height: 2rem;
  image-rendering: pixelated; transform: rotate(-12deg); }
main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
label { display: block; margin: 12px 0 4px; font: var(--text-ui) var(--font-ui); }
label.inline { display: flex; gap: .5rem; align-items: center; margin: 4px 0 12px; color: var(--muted); }
label.inline input { width: auto; margin: 0; }
details summary { margin-top: .4rem; font: var(--text-ui) var(--font-ui); color: var(--muted); cursor: pointer; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], textarea, select {
  width: 100%; padding: .5rem; font: var(--text-ui) var(--font-ui); color: var(--ink); background: #fff;
  border: 2px solid #000; border-radius: 0; }
textarea { min-height: 5rem; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--pine); }
.field-error { display: block; min-height: 1.1em; color: var(--cranberry); font: var(--text-ui) var(--font-ui); }
input[aria-invalid=true] { border-color: var(--cranberry); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain > li { padding: .6rem 0; border-bottom: 2px dashed var(--line); }
ul.plain > li:last-child { border-bottom: none; }
fieldset.toggle-group { border: none; border-bottom: 2px dashed var(--line); margin: 0; padding: .6rem 0; }
fieldset.toggle-group legend { font: var(--text-ui) var(--font-ui); padding: 0; margin-bottom: .35rem; }
label.toggle { display: inline-flex; gap: .35rem; align-items: center; margin: .2rem .9rem .2rem 0; }
[data-add-person-row] { display: none; }
.script-on [data-add-person-row] { display: inline-flex; }
.script-on [data-save-button] { display: none; }
.save-status { margin-left: .5rem; font: var(--text-ui) var(--font-ui); text-transform: uppercase; }
.script-on .save-status { display: block; margin: 0; }
dialog { border: 3px solid #000; box-shadow: 6px 6px 0 #000; background: var(--cream); max-width: 32rem; }
dialog button { margin-right: .5rem; }
dialog .back-link-outside-dialog { display: none; }
ul.people > li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.person-link { font-family: var(--font-ui); font-size: var(--text-ui); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0; }
.tabs a, .tabs button.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin: 0;
  padding: 8px 10px; font: var(--text-ui) var(--font-ui); color: var(--pine); background: #fff;
  border: 2px solid #000; border-radius: 0; box-shadow: 3px 3px 0 #000; text-decoration: none; }
.tabs a:hover, .tabs button.tab:hover { transform: none; box-shadow: 3px 3px 0 #000; background: var(--cream); }
.tabs a[aria-current=page], .tabs button.tab[aria-selected=true] { color: var(--cream); background: var(--pine);
  box-shadow: 1px 1px 0 #000; border-bottom: 4px solid var(--gold); transform: translate(2px, 2px); }
.tabs a::before { content: ''; flex: none; width: 16px; height: 16px; background: currentColor;
  mask: var(--tab-icon) center / 100% 100% no-repeat; }
.tabs a[href$="/progress"] { --tab-icon: url("/images/icons/log-fire.svg"); }
.tabs a[href$="/people"] { --tab-icon: url("/images/icons/stocking.svg"); }
.tabs a[href$="/rules"] { --tab-icon: url("/images/icons/candy-cane.svg"); }
.tabs a[href$="/draw"] { --tab-icon: url("/images/icons/gift.svg"); }
.tabs a[href$="/settings"] { --tab-icon: url("/images/icons/gear.svg"); }
@media (forced-colors: active) {
  .tabs a::before { forced-color-adjust: none; background: LinkText; }
}
.steps { list-style: none; counter-reset: step; margin: 1rem 0; padding: 0; font-family: var(--font-ui); }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .6rem; padding: .35rem 0; color: var(--muted); }
.steps li::before { content: counter(step); display: inline-block; min-width: 1.6rem; text-align: center;
  border: 2px solid #000; background: #fff; color: var(--ink); }
.steps li[aria-current='step'] { color: var(--pine); font-weight: bold; }
.steps li[aria-current='step']::before { background: var(--gold); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.row-actions form { margin: 0; }
.copy-field { width: 100%; font-family: var(--font-ui); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
dt { font-family: var(--font-ui); color: var(--muted); }
dd { margin: 0; white-space: pre-wrap; }
.invitation { text-align: center; }
.progress-rows { list-style: none; margin: 0; padding: 0; }
.progress-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .4rem 0;
  border-top: 2px dotted var(--line); }
.progress-rows li:first-child { border-top: 0; }
.progress-rows li form button { margin-top: 0; }

.leave-event { margin-top: 2.5rem; }
.leave-event h2 { font-size: .9rem; color: var(--muted); }
.lost-link-note { text-align: center; color: var(--muted); }

/* The home scene is 192 by 128 pixels and is only shown at a whole-number scale (3x, 2x on
   phones), cropped at the sides when the screen is narrower, so the pixels stay square. */
body:has(.home-logo) .site-name-text { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); }
body:has(.home-logo) .wordmark-hat { display: none; }
.home-logo { position: relative; text-align: center; margin: 32px 0 24px;
  font: 40px/1.3 var(--font-heading); color: var(--cranberry);
  text-shadow: 3px 3px 0 #000, -1px -1px 0 var(--gold); }
.home-logo-first { position: relative; display: inline-block; }
.home-logo-hat { position: absolute; left: -.45em; top: -.42em; width: 1.8em; height: 1.8em;
  image-rendering: pixelated; transform: rotate(-12deg); }
.home-scene { width: fit-content; max-width: 100%; margin: 0 auto; overflow: hidden; border: 4px solid #000;
  box-shadow: 6px 6px 0 #000; background: #14213d; }
.home-scene-art { position: relative; left: 50%; width: 576px; transform: translateX(-50%); }
.home-scene img { position: relative; z-index: 1; display: block; width: 100%; height: auto;
  image-rendering: pixelated; }
.home-scene-window { position: absolute; left: 8.333%; top: 15.625%; width: 18.75%; height: 28.125%;
  overflow: hidden; background: #14213d; }
.home-scene-snow { position: absolute; left: 0; top: -100%; width: 100%; height: 200%;
  background: url('/images/snow-tile.png') 0 0 / 88.889% 44.444% repeat; image-rendering: pixelated;
  animation: snow-fall 8s linear infinite; }
@keyframes snow-fall { to { transform: translateY(44.444%); } }
.gift-tag-row { text-align: center; margin: 32px 0; }
.gift-tag { position: relative; display: inline-flex; align-items: center; min-height: 56px;
  padding: 12px 24px 12px 44px; font: 22px var(--font-ui); color: var(--cream); background: var(--cranberry);
  border: 3px solid #000; box-shadow: 4px 4px 0 #000; text-decoration: none; transform: rotate(-3deg); }
.gift-tag::before { content: ''; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px;
  margin-top: -6px; border: 2px solid #000; border-radius: 50%; background: var(--snow); }
.gift-tag::after { content: ''; position: absolute; left: 18px; bottom: 50%; width: 3px; height: 2.4rem;
  background: var(--gold); transform-origin: bottom; transform: rotate(-35deg); }
.gift-tag:hover { box-shadow: 2px 2px 0 #000; transform: rotate(-3deg) translate(2px, 2px); }
.gift-tag:active { box-shadow: none; transform: rotate(-3deg) translate(4px, 4px); }
.home-steps { list-style: none; display: grid; gap: 16px; margin: 32px 0; padding: 16px; counter-reset: none; }
.home-steps li { display: flex; gap: 12px; align-items: flex-start; }
.home-steps li::before { content: ''; flex: none; width: 32px; height: 32px; margin-top: 2px; background: var(--pine);
  mask: var(--step-icon) center / 100% 100% no-repeat; }
@media (forced-colors: active) {
  .home-steps li::before { forced-color-adjust: none; background: CanvasText; }
}
.home-steps li:nth-child(1) { --step-icon: url("/images/icons/stocking.svg"); }
.home-steps li:nth-child(2) { --step-icon: url("/images/icons/candy-cane.svg"); }
.home-steps li:nth-child(3) { --step-icon: url("/images/icons/gift.svg"); }
.home-steps strong { display: block; font: var(--text-ui) var(--font-ui); text-transform: uppercase; color: var(--pine); }
.nice-list { border-width: 3px; box-shadow: 6px 6px 0 #000; outline: 3px solid var(--gold); outline-offset: -10px;
  padding: 28px 28px 20px; background: linear-gradient(var(--cream), #fbf1d6); }
.nice-list-title { margin: 0 0 8px; text-align: center; font: var(--text-heading-card)/1.5 var(--font-heading);
  letter-spacing: .08em; text-transform: uppercase; color: var(--cranberry); }
.nice-list-title::before, .nice-list-title::after { content: '\2605'; color: var(--gold); margin: 0 .6rem;
  font-family: var(--font-body); }
.nice-list h2 { margin-top: 0; text-align: center; }
.nice-list > p { text-align: center; }
.nice-list .recipients { margin: 4px 0 12px; text-align: center; }
.nice-list .recipients strong { display: block; margin-top: 8px; font: var(--text-heading-card)/1.5 var(--font-heading);
  color: var(--pine); overflow-wrap: anywhere; }
.nice-list .nice-stop { display: none; }
.nice-list .recipients strong::before, .nice-list article h3::before { content: '\2713'; margin-right: .6rem;
  font-family: var(--font-ui); font-size: 1.3em; color: var(--pine); }
.nice-list article { margin: 0 0 12px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.nice-list article + article { padding-top: 12px; border-top: 2px dotted var(--line); }
.nice-list article h3 { margin: 0 0 8px; text-align: center; }
.nice-list article h4 { margin: 12px 0 4px; font: var(--text-ui) var(--font-ui); text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }
.nice-list .wishes { margin: 0 0 8px; white-space: pre-wrap; }
/* Before the draw the Nice List shows the hearth at 2x with two logs and a small flame:
   invitations are out and the draw is still to come. */
.nice-list-hearth { width: fit-content; margin: 8px auto 12px; border: 3px solid #000; }
.nice-list-hearth img { display: block; width: 140px; height: 128px; image-rendering: pixelated; }

.setup-steps { margin: 1rem 0 1.25rem; font-family: var(--font-ui); }
.setup-steps-count { margin: 0 0 .4rem; font-size: var(--text-ui); color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; }
.setup-steps ol { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.setup-steps li { display: flex; align-items: center; gap: .45rem; padding: .35rem .7rem; color: var(--pine);
  background: #fff; border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
.setup-steps li a { display: flex; align-items: center; gap: .45rem; color: var(--pine); }
.setup-steps li[aria-current=step] { color: var(--cream); background: var(--pine); border-bottom: 4px solid var(--gold); }
.setup-steps li.later-step { color: var(--muted); background: transparent; border: 2px dashed var(--line);
  box-shadow: none; }
.step-number { display: inline-block; min-width: 1.5rem; font-size: var(--text-ui); line-height: 1.4; text-align: center;
  border: 2px solid currentColor; }
.setup-steps li[aria-current=step] .step-number { color: var(--ink); background: var(--gold); border-color: #000; }
.step-note { font-size: var(--text-ui); color: var(--muted); }
.setup-steps li[aria-current=step] .step-note { color: var(--cream); }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.75rem 0 1rem;
  padding-top: 1rem; border-top: 2px dashed var(--line); }
.step-actions-forward { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.step-actions form { margin: 0; }
.step-actions button { margin-top: 0; }
@media (max-width: 36rem) {
  .step-actions, .step-actions-forward { flex-direction: column-reverse; align-items: stretch; }
  .step-actions-forward { margin-left: 0; }
  .step-actions button, .step-actions .button-link { width: 100%; text-align: center; }
}

main:has(.setup-steps, nav.tabs, .people-table) { max-width: 56rem; }
.people-roster .save-status:empty { display: none; }
.roster-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .5rem 1rem; }
.roster-heading h2 { margin: 0; }
.send-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: 0; }
.roster-columns, .roster-row { display: grid; gap: .25rem .5rem; align-items: center;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) 15rem minmax(0, 1.3fr) 4.2rem;
  grid-template-areas: 'problem problem problem problem problem' 'name contact role status menu'; }
.roster-columns { padding: 0 .25rem .3rem; font: var(--text-ui) var(--font-ui); color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid #000; }
.roster-columns span:nth-child(1) { grid-area: name; }
.roster-columns span:nth-child(2) { grid-area: contact; }
.roster-columns span:nth-child(3) { grid-area: role; }
.roster-columns span:nth-child(4) { grid-area: status; }
.roster-rows { list-style: none; margin: 0; padding: 0; }
.roster-row { padding: .3rem .25rem; border-bottom: 2px dotted var(--line); }
.roster-row > .problem { grid-area: problem; margin: .25rem 0; }
.roster-row > label { margin: 0; }
.roster-row .roster-name { grid-area: name; }
.roster-row .roster-contact { grid-area: contact; }
.roster-row .roster-role { grid-area: role; }
.roster-row .roster-status { grid-area: status; }
.roster-row .row-menu { grid-area: menu; justify-self: end; }
.roster-row input[type=text], .roster-row select { padding: .3rem .35rem; font: var(--text-ui) var(--font-ui);
  background: transparent; border-color: transparent transparent var(--line); }
.roster-row input[type=text]:hover, .roster-row select:hover { border-color: var(--line); }
.roster-row input[type=text]:focus, .roster-row select:focus { background: #fff; border-color: #000; }
.roster-new-row input[type=text], .roster-new-row select { background: #fff; border: 2px dashed var(--muted); }
.roster-status { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .4rem; }
.status-note { font: var(--text-ui)/1.3 var(--font-ui); color: var(--muted); }
.you-tag { font: var(--text-ui) var(--font-ui); text-transform: uppercase; padding: 0 .3rem; background: var(--gold);
  border: 2px solid #000; }
.row-menu { position: relative; }
.row-menu summary { margin: 0; padding: .15rem .45rem; font: var(--text-ui) var(--font-ui); color: var(--pine); background: #fff;
  border: 2px solid #000; list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-items { position: absolute; right: 0; z-index: 2; display: flex; flex-direction: column; gap: .5rem;
  min-width: 13rem; padding: .7rem; background: var(--cream); border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
.row-menu-items button { margin: 0; text-align: left; }
.roster-add-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .5rem; }
.roster-add-actions button { margin-top: .5rem; }
.paste-list textarea { font: var(--text-ui) var(--font-ui); }
@media (max-width: 36rem) {
  .roster-columns { display: none; }
  .roster-row { grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'problem problem' 'name menu' 'contact contact' 'role status'; padding: .6rem 0; }
  .roster-row .roster-status { justify-content: flex-end; }
}
@media (max-width: 26rem) {
  .roster-row { grid-template-areas: 'problem problem' 'name menu' 'contact contact' 'role role'
    'status status'; }
  .roster-row .roster-status { justify-content: flex-start; }
}

.draw-explainer { background: #fff; border-color: var(--pine); box-shadow: 4px 4px 0 var(--pine); }
.draw-explainer h2 { color: var(--cranberry); }
.draw-explainer p { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.section-heading h2 { margin: 0; }
.rule-lines { list-style: none; margin: .75rem 0; padding: 0; }
.rule-line { padding: .35rem 0; border-bottom: 2px dotted var(--line); }
.rule-sentence { margin: 0; }
.draw-check h3 { margin-top: .5rem; }
.draw-check p { margin: .25rem 0; }
.people-table { width: 100%; border-collapse: collapse; }
.people-table th, .people-table td { padding: .45rem .4rem; text-align: left; vertical-align: top;
  border-bottom: 2px dotted var(--line); }
.people-table thead th { font: var(--text-ui) var(--font-ui); color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; border-bottom: 2px solid #000; }
.people-table tbody th { font: var(--text-ui) var(--font-ui); }
.what-happens { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.send-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem;
  margin: 1.25rem 0; }
.send-choice { display: flex; flex-direction: column; margin: 0; }
.send-choice p { margin-top: 0; }
.send-choice form { margin-top: auto; }
.send-choice button:disabled { color: var(--muted); background: #eee; border-style: dashed; box-shadow: none;
  cursor: not-allowed; }
.draw-now-off { margin-top: auto; font-weight: bold; }
.send-choice-recommended { outline: 3px solid var(--gold); outline-offset: -9px; }
.send-choice-badge { align-self: flex-start; margin: 0 0 .5rem; padding: 0 .4rem; font: var(--text-ui) var(--font-ui);
  text-transform: uppercase; background: var(--gold); border: 2px solid #000; }
@media (max-width: 36rem) {
  .people-table thead { display: none; }
  .people-table tr { display: flex; flex-direction: column; gap: .2rem; padding: .5rem 0;
    border-bottom: 2px dotted var(--line); }
  .people-table th, .people-table td { padding: 0; border: 0; overflow-wrap: anywhere; }
  .people-table td:last-child { order: -1; margin-top: .1rem; }
  .people-table tbody th { order: -2; }
}

.rule-diagrams { margin: .5rem 0; }
.rule-diagram { --pixel: 3px; --canvas: 160; --name-room: 56;
  max-width: calc(var(--canvas) * var(--pixel)); margin: .75rem 0 .25rem; }
.rule-diagram-picture { display: block; height: calc(40 * var(--pixel));
  width: calc(var(--canvas) * var(--pixel)); image-rendering: pixelated; shape-rendering: crispEdges; }
.rule-diagram-picture-narrow { display: none; }
.rule-diagram-names { position: relative; height: 1.5rem; margin: 0; padding: 0; list-style: none;
  font: var(--text-ui)/1.5rem var(--font-ui); color: var(--ink); }
.rule-diagram-name { position: absolute; top: 0; width: max-content;
  max-width: calc(var(--name-room) * var(--pixel)); transform: translateX(-50%);
  overflow: hidden; text-align: center; white-space: nowrap; }
.rule-diagram-name-wide-at-20 { left: calc(20 * var(--pixel)); }
.rule-diagram-name-wide-at-28 { left: calc(28 * var(--pixel)); }
.rule-diagram-name-wide-at-60 { left: calc(60 * var(--pixel)); }
.rule-diagram-name-wide-at-80 { left: calc(80 * var(--pixel)); }
.rule-diagram-name-wide-at-100 { left: calc(100 * var(--pixel)); }
.rule-diagram-name-wide-at-132 { left: calc(132 * var(--pixel)); }
.rule-diagram-name-wide-at-140 { left: calc(140 * var(--pixel)); }
.rule-diagram-names-under-28 { margin-top: calc(-11 * var(--pixel)); }
.rule-diagram-names-under-38 { margin-top: calc(-1 * var(--pixel)); }
.rule-diagram-full-names { margin: .25rem 0 0; font: var(--text-ui) var(--font-ui); }
.rule-diagram-problem { font-family: var(--font-ui); }
.rule-diagram > .rule-diagram-problem { display: block; margin-bottom: .4rem; }
.status-chip[data-status=needs-change] { color: var(--cream); background: var(--cranberry); border-color: #000; }
.rule-diagram-more { margin: .25rem 0 .5rem; }
.rule-diagram-more ul.plain > li { padding: .3rem 0; font-family: var(--font-ui); }
.rule-diagrams .rule-sentence { margin: .35rem 0 0; }
@media (max-width: 36rem) {
  .rule-diagram { --pixel: 2px; --canvas: 120; --name-room: 44; }
  .rule-diagram-picture-wide { display: none; }
  .rule-diagram-picture-narrow { display: block; }
.rule-diagram-name-narrow-at-12 { left: calc(12 * var(--pixel)); }
.rule-diagram-name-narrow-at-20 { left: calc(20 * var(--pixel)); }
.rule-diagram-name-narrow-at-44 { left: calc(44 * var(--pixel)); }
.rule-diagram-name-narrow-at-60 { left: calc(60 * var(--pixel)); }
.rule-diagram-name-narrow-at-76 { left: calc(76 * var(--pixel)); }
.rule-diagram-name-narrow-at-100 { left: calc(100 * var(--pixel)); }
.rule-diagram-name-narrow-at-108 { left: calc(108 * var(--pixel)); }
  .rule-diagrams .rule-sentence { font-size: 1rem; }
}

.checklist { list-style: none; margin: 0; padding: 0; font: var(--text-ui)/1.5 var(--font-ui); }
.checklist li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; padding: .3rem .5rem;
  border-top: 2px dotted var(--line); }
.checklist .muted, .checklist-date .muted { font-family: var(--font-body); }
.checklist li:first-child { border-top: 0; }
.checklist li form { margin: 0; }
.checklist-mark { display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem;
  font-size: .85rem; color: var(--cream); background: #fff; border: 2px solid #000; }
.checklist li[data-done=yes] .checklist-mark { background: var(--pine); }
.checklist-label { min-width: 12.5rem; color: var(--ink); }
.checklist li[aria-current=step] { background: #fbf1d6; outline: 3px solid var(--gold); outline-offset: -3px; }
.checklist li[aria-current=step] .checklist-label { font-weight: bold; color: var(--pine); }
.checklist-next { padding: 0 .4rem; font-size: var(--text-ui); text-transform: uppercase; background: var(--gold);
  border: 2px solid #000; }
.checklist-what-next { flex-basis: 100%; padding-left: 2rem; font-family: var(--font-body); }
.checklist-what-next p { margin: .2rem 0 .4rem; }
.progress-checklist > .checklist-what-next { padding-left: 0; }
.checklist-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin: .4rem 0 0;
  padding: .4rem .5rem 0 2.6rem; font-family: var(--font-ui); border-top: 2px solid var(--line); }
.after-the-draw ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.progress-rows li form { margin: 0; }
.progress-rows li form button.secondary { margin-top: 0; padding: .3rem .7rem; }
@media (max-width: 36rem) {
  .checklist-label { min-width: 0; }
  .checklist li { gap: .1rem .6rem; padding: .2rem .4rem; }
  .checklist-next { display: none; }
  .checklist-date { padding-left: .5rem; }
  .checklist-what-next { padding-left: 0; }
}

.home-what-it-does { max-width: 34rem; margin: 0 auto 1.5rem; text-align: center; }
.event-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .4rem 0;
  border-top: 2px dotted var(--line); }
.event-list li:first-child { border-top: 0; }
.new-event > summary { display: inline-block; list-style: none; margin-top: 1rem; }
.new-event > summary::-webkit-details-marker { display: none; }
.new-event[open] > summary { margin-bottom: .8rem; }
.setup-offer { margin-top: .8rem; padding-top: .6rem; border-top: 2px dotted var(--line); }
.setup-offer p { margin: .2rem 0; }
.guest-explainer { margin-top: 1rem; padding-top: .8rem; border-top: 2px dotted var(--line); }
.contact-warnings { border-color: var(--cranberry); }
.contact-warnings h2 { color: var(--cranberry); }
.what-guests-see > p { margin: .4rem 0; }
.email-preview { margin-top: .8rem; padding: .6rem .9rem; background: #fff; border: 2px dashed var(--line); }
.email-preview-heading { font-family: var(--font-heading); font-size: .9rem; }

.cancelled-banner { margin: 0 0 16px; padding: 12px 16px; background: #fff; border: 2px solid var(--cranberry);
  box-shadow: 4px 4px 0 #000; }
.cancelled-banner p { margin: 0 0 8px; }
.cancelled-banner .cancelled-title { font: var(--text-ui)/1.4 var(--font-ui); color: var(--cranberry); }
.cancelled-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cancelled-actions form { margin: 0; }
fieldset.read-only { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.read-only:disabled button, fieldset.read-only:disabled input,
fieldset.read-only:disabled textarea, fieldset.read-only:disabled select { opacity: .55; cursor: not-allowed; }
fieldset.read-only:disabled button { box-shadow: none; transform: none; }

.home-hearth-flame { position: absolute; z-index: 2; left: 44.7917%; top: 54.6875%; width: 14.5833%; height: 20.3125%;
  overflow: hidden; }
.hearth-flame-strip, .hearth-blaze-strip { width: 400%; height: 100%; image-rendering: pixelated;
  background: url('/images/home-flame-strip.png') 0 0 / 100% 100%; transform: translateX(-25%);
  animation: hearth-flame .72s steps(4) infinite; }
.hearth-blaze-strip { background-image: url('/images/blaze-flame-strip.png');
  animation: hearth-flame .72s steps(4) 3; }
@keyframes hearth-flame { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.home-hearth-glow { position: absolute; z-index: 2; left: 39.5833%; top: 78.125%; width: 25%; height: 7.8125%;
  background: url('/images/floor-glow.png') 0 0 / 100% 100%; image-rendering: pixelated;
  opacity: .15; animation: hearth-glow 1.44s steps(2, jump-none) infinite; }
@keyframes hearth-glow { from { opacity: .15; } to { opacity: .35; } }
.hearth-sparks { position: absolute; z-index: 2; pointer-events: none; }
.home-scene .hearth-sparks { left: 43.75%; top: 51.5625%; width: 16.6667%; height: 26.5625%; }
.hearth-picture-frame .hearth-sparks { left: 27.1429%; top: 40.625%; width: 45.7143%; height: 53.125%; }
.hearth-sparks span { position: absolute; background: #ffd23f;
  animation: hearth-spark 2.4s steps(9, jump-none) infinite; }
.hearth-sparks span:nth-child(2) { animation-delay: -.8s; }
.hearth-sparks span:nth-child(3) { animation-delay: -1.6s; }
.hearth-sparks-high span:nth-child(1) { left: 28.125%; top: 41.1765%; width: 3.125%; height: 2.9412%; }
.hearth-sparks-high span:nth-child(2) { left: 50%; top: 29.4118%; width: 3.125%; height: 2.9412%; }
.hearth-sparks-high span:nth-child(3) { left: 68.75%; top: 47.0588%; width: 3.125%; height: 2.9412%; }
.hearth-sparks-low span:nth-child(1) { left: 28.125%; top: 76.4706%; width: 3.125%; height: 2.9412%; }
.hearth-sparks-low span:nth-child(2) { left: 50%; top: 73.5294%; width: 3.125%; height: 2.9412%; }
.hearth-sparks-low span:nth-child(3) { left: 68.75%; top: 76.4706%; width: 3.125%; height: 2.9412%; }
@keyframes hearth-spark { from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-800%); opacity: 0; } }
.hearth-picture { margin: 0 0 16px; text-align: center; }
.hearth-picture-frame { position: relative; box-sizing: content-box; width: 210px;
  height: 192px; margin: 0 auto; border: 3px solid #000; }
.hearth-picture-frame img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.hearth-blaze { position: absolute; left: 27.1429%; top: 42.1875%; width: 45.7143%; height: 43.75%; overflow: hidden; }
.hearth-picture figcaption { margin-top: 8px; font: var(--text-ui)/1.4 var(--font-ui); color: var(--ink); }
@media (max-width: 480px) {
  .hearth-picture-frame { width: 140px; height: 128px; }
}
.page-hidden [data-animated-scene] *, .fire-resting [data-animated-scene] *,
[data-animated-scene].scene-off-screen * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hearth-flame-strip, .hearth-blaze-strip, .home-hearth-glow, .hearth-sparks span { animation: none; }
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px var(--gold); }
header :focus-visible, .skip-link:focus-visible { outline-color: var(--cream); }
.skip-link { position: absolute; left: .5rem; top: -5rem; z-index: 10; padding: .6rem 1rem;
  font-family: var(--font-ui); color: var(--cream); background: var(--pine); border: 2px solid #000; }
.skip-link:focus { top: .5rem; }
main:focus, [tabindex="-1"]:focus { outline: none; box-shadow: none; }
input[type=checkbox] { width: 1.5rem; height: 1.5rem; }
details summary { padding: .65rem 0; }
button, .button-link { min-height: 2.75rem; }
header .link-button, .steps a { display: inline-flex; align-items: center; min-height: 2.75rem;
  white-space: nowrap; }
header nav { flex-shrink: 0; gap: .6rem; }
header nav a { display: inline-block; max-width: 7rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; line-height: 2.75rem; }
dialog button { margin-right: 1rem; }
.site-name { min-width: 0; }
@media (max-width: 30rem) { .site-name { white-space: normal; font-size: .7rem; } }
.problem::before, .field-error:not(:empty)::before { content: '!' / ''; display: inline-block;
  width: 1.3em; margin-right: .45rem; text-align: center; font-weight: bold;
  border: 2px solid currentColor; }

/* The stylesheet puts this block last, so these rules win over the desktop ones. */
@media (max-width: 640px) {
  .home-scene-art { width: 384px; }
  .home-logo { font-size: 24px; margin: 16px 0; }
  .home-steps { margin: 24px 0 8px; }
}
@media (max-width: 480px) {
  h1 { font-size: 16px; }
  .site-name { display: block; width: 2.5rem; height: 2.5rem; padding: 0; }
  .site-name-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wordmark-hat { left: 1.4rem; top: -.6rem; width: 1.6rem; height: 1.6rem; }
  /* Five labels at 16.5px do not fit across a 320px screen ("SETTINGS" alone is 84px), so the
     tabs sit in two rows: three, then two. */
  nav.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  nav.tabs a { grid-column: span 2; flex-direction: column; justify-content: center; gap: 4px;
    min-height: 64px; padding: 6px 2px; text-transform: uppercase; }
  nav.tabs a:nth-child(n + 4) { grid-column: span 3; }
  nav.tabs a::before { width: 24px; height: 24px; }
  section, article { padding: 14px; }
  .card-now { padding: 32px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  button:hover, button:active, .button-link:hover, .button-link:active, .gift-tag:hover, .gift-tag:active,
  .tabs a[aria-current=page], .tabs button.tab[aria-selected=true] { transform: none; }
  .gift-tag:hover, .gift-tag:active { transform: rotate(-3deg); }
  .home-scene-snow { animation: none; }
}
