/* Fonts are served from here (SIL Open Font License, via Fontsource) so the home-screen app works offline. */
@font-face { font-family: Anton; src: url(/fonts/anton.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Yellowtail; src: url(/fonts/yellowtail.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Jost; src: url(/fonts/jost-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Jost; src: url(/fonts/jost-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Jost; src: url(/fonts/jost-600.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  --cream: #F3E9D2; --cream-2: #F8F0DC; --green: #123F2E; --deep: #0B2A1F;
  --tomato: #E4472B; --brick: #9E1F14; --coral: #F08A6E; --mustard: #E2A72E; --mint: #A8D5B8; --blue: #A9CFE3;
  --pen: #22355E; --wood: #E9DCBF;
  --paper: url(/img/paper.jpg);
  --wm: url(/img/wordmark-current.svg);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* the scrollbar's room stays reserved, so pages that don't scroll (the tree) don't jump sideways */
body { font: 400 16px/1.45 Jost, system-ui, sans-serif; color: var(--green); background: var(--wood); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* Phones that keep the clock and battery in a side column (iPhone Duo, or any phone in landscape) report it as a
   left or right safe area. The table and the header bar run right under it; only what's on them steps clear. */
/* Transparent borders, not padding: #view is also .club or .page, whose own padding has to keep working. */
#view { border-style: none solid; border-color: transparent; border-left-width: var(--safe-l); border-right-width: var(--safe-r); }
body[data-view="door"], body[data-view="loading"] { overflow: hidden; height: 100svh; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px dashed var(--tomato); outline-offset: 3px; }
.caps { font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; }
.caps.small { font-size: .68rem; }
.yt, .script { font-family: Yellowtail, cursive; font-weight: 400; }
.pen { font-family: Yellowtail, cursive; color: var(--pen); }
.paper { background-image: var(--paper); background-size: 420px; background-blend-mode: multiply; }
.grain { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .08  0 0 0 0 .05  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--green); color: var(--cream); padding: 12px 18px; min-height: 44px; border-radius: 3px; cursor: pointer; white-space: nowrap; text-decoration: none;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; box-shadow: 3px 3px 0 var(--tomato); transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tomato); }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green), 3px 3px 0 var(--tomato); }
.btn.red { background: var(--tomato); color: var(--cream-2); box-shadow: 3px 3px 0 var(--green); }
.btn.small { padding: 8px 12px; min-height: 36px; font-size: .66rem; box-shadow: 2px 2px 0 var(--tomato); }
.btn.ghost.small { box-shadow: inset 0 0 0 2px var(--green), 2px 2px 0 var(--tomato); }
.btn.red.small { box-shadow: 2px 2px 0 var(--green); } /* a tomato button can't cast a tomato shadow */
.btn.red:active { box-shadow: 1px 1px 0 var(--green); }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .88rem; color: inherit; }
.err { min-height: 1.3em; font-size: .86rem; color: var(--brick); margin-top: 6px; font-style: italic; }
.err:empty { min-height: 0; margin: 0; }

/* ============================ THE DOOR ============================ */
.poster { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--deep); transition: transform 1s cubic-bezier(.7,0,.2,1); }
body:not([data-view="door"]):not([data-view="loading"]) .poster { transform: translateY(-102%); pointer-events: none; visibility: hidden; transition: transform 1s cubic-bezier(.7,0,.2,1), visibility 0s 1s; }
/* Members coming back don't see the door while the app checks their session, and no curtain plays. */
.returning body[data-view="loading"] .poster, .quick .poster { visibility: hidden; transition: none !important; }
.layer { position: absolute; pointer-events: none; will-change: transform; }
.sky { inset: -4% -3% 0; background: url(/img/sky.jpg) center top / cover; }
.moon { width: clamp(56px, 7vw, 110px); left: 9%; top: 15%; }
.twinkles { left: 0; top: 0; width: 100%; height: 60%; }
.twinkles use { transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.twinkles use:nth-child(2) { animation-delay: -1.1s; } .twinkles use:nth-child(3) { animation-delay: -2.1s; } .twinkles use:nth-child(4) { animation-delay: -.5s; }
@keyframes twinkle { 50% { transform: scale(.4); opacity: .5; } }
.bats { inset: 0; width: 100%; height: 100%; }
.bridge { left: -2%; right: -2%; bottom: 2%; height: 72%; background: url(/img/bridge.webp) center bottom / cover no-repeat; }
.trees { left: -3%; right: -3%; bottom: -6%; height: 37%; background: url(/img/trees.webp) center bottom / cover no-repeat; -webkit-mask: linear-gradient(transparent, #000 18%); mask: linear-gradient(transparent, #000 18%); }
.title { position: absolute; left: 50%; top: calc(7vh + var(--safe-t)); width: min(640px, 84vw); transform: translateX(-50%); text-align: center; z-index: 3; transition: left .6s, width .6s; }
.mark { position: relative; aspect-ratio: 1959 / 620; width: 100%; }
.mark .ink { position: absolute; inset: 0; -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat; }
.mark .r { background: var(--tomato); transform: translate(-3px, 2px); opacity: .55; mix-blend-mode: multiply; }
.mark .g { background: var(--green); transform: translate(5px, 5px); }
.mark .c { background: var(--cream); }
.title .caps { color: var(--green); margin-top: 6px; }
@media (max-width: 420px) { .title .caps { font-size: .6rem; letter-spacing: .14em; } }

/* the ticket */
.ticket { position: absolute; z-index: 4; left: clamp(16px, 5vw, 80px); bottom: calc(clamp(18px, 7vh, 80px) + var(--safe-b)); width: min(560px, calc(100vw - 32px));
  display: flex; transform: rotate(-2.5deg); filter: drop-shadow(0 10px 14px rgba(11,42,31,.35)); }
.tmain, .tstub { background: var(--paper) center/500px, var(--blue); background-blend-mode: multiply; color: var(--green);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.tmain { flex: 1; min-width: 0; padding: 20px 24px 16px 28px; border-right: 2px dashed rgba(18,63,46,.45); position: relative; }
.tmain::after { content: ""; position: absolute; inset: 8px 8px 8px 12px; border: 1.5px solid rgba(18,63,46,.6); pointer-events: none; }
.tstub { width: 150px; padding: 22px 16px; display: flex; flex-direction: column; justify-content: center; font-size: .92rem; line-height: 1.35; }
.tstub .yt { font-size: 1.7rem; color: var(--tomato); line-height: 1; margin-bottom: 6px; }
.admit { font: 400 clamp(2rem, 3.8vw, 2.7rem)/.92 Anton, sans-serif; color: var(--brick); text-transform: uppercase; margin: 6px 0 12px; }
.ticket .step { display: none; position: relative; z-index: 1; }
.ticket[data-step="choose"] .choose, .ticket[data-step="signin"] .signin, .ticket[data-step="invite"] .invite, .ticket[data-step="code"] .code { display: block; animation: stepIn .35s ease-out; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
.ticket label { display: block; margin: 6px 0 6px; }
.ticket .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ticket input { flex: 1 1 180px; min-width: 0; min-height: 44px; border: 2px solid var(--green); background: rgba(243,233,210,.85); color: var(--green); padding: 9px 12px; border-radius: 2px; font-size: 1rem; }
.ticket input::placeholder { color: #6B8679; }
.choices { display: flex; gap: 12px; flex-wrap: wrap; }
.choices .btn { flex: 1 1 160px; }
.hint { font-size: .9rem; margin-top: 12px; }
.back { margin-top: 4px; }
.otp { display: flex; gap: 6px; margin-bottom: 10px; }
.otp input { flex: 1 1 0; width: 0; max-width: 46px; text-align: center; font: 400 1.6rem/1 Anton, sans-serif; padding: 6px 0; }
.devcode { font-size: .86rem; background: var(--mustard); padding: 4px 8px; display: inline-block; margin-bottom: 8px; }
.ts:empty { display: none; }
.ts { margin: 8px 0 0; min-height: 65px; }

/* invite card */
.invitecard { position: absolute; z-index: 5; right: clamp(16px, 5vw, 80px); top: 50%; width: 410px; max-height: calc(100svh - 40px); overflow: auto;
  transform: translateY(-46%) rotate(2deg); padding: 34px 30px 24px; color: var(--green);
  background: var(--paper) center/500px, var(--cream-2); background-blend-mode: multiply;
  box-shadow: 0 0 0 6px var(--cream-2), 0 0 0 8px var(--green), 0 16px 30px rgba(11,42,31,.4); }
.invitecard .seal { position: absolute; right: 18px; top: 14px; width: 66px; transform: rotate(12deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.invitecard h2 { font: 500 1.3rem/1.2 Jost, sans-serif; margin: 6px 70px 8px 0; }
.invitecard h2 .yt { display: block; font-size: 2.6rem; color: var(--tomato); line-height: 1.05; }
.invitecard .sub { font-size: .94rem; margin-bottom: 14px; }
.invitecard label { display: block; margin-bottom: 10px; }
.invitecard label .caps { display: block; margin-bottom: 3px; }
.invitecard label i { font-style: normal; font-weight: 400; letter-spacing: .05em; text-transform: none; opacity: .7; }
.invitecard input { width: 100%; border: 0; border-bottom: 1.5px solid var(--green); background: transparent; padding: 6px 2px; color: var(--green); font-size: 1rem; border-radius: 0; }
.invitecard input:focus-visible { outline: none; border-bottom-color: var(--tomato); }
.invitecard input::placeholder { color: #8A9A8E; }
.invitecard .fine { font-size: .84rem; background: rgba(168,213,184,.45); padding: 8px 10px; margin: 12px 0; }
.invitecard .btn { width: 100%; margin-top: 4px; }
body[data-view="loading"] .ticket, body[data-view="loading"] .invitecard { visibility: hidden; }
body[data-door="join"] .ticket { display: none; }
body[data-door="join"] .invitecard { display: block; }
@media (min-width: 761px) { body[data-door="join"] .title { left: 34%; width: min(560px, 48vw); } }

/* ============================ MEMBERS: the table ============================ */
#app { min-height: 100svh; background: url(/img/table.jpg) center top / 640px; position: relative; }
#app::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(70% 60% at 50% 35%, rgba(255,240,200,.35), rgba(255,240,200,0) 70%), radial-gradient(120% 100% at 50% 45%, rgba(0,0,0,0) 55%, rgba(70,35,10,.25) 100%); }
.bar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) calc(18px + var(--safe-r)) 10px calc(18px + var(--safe-l));
  background: linear-gradient(rgba(233,220,191,.97), rgba(233,220,191,.88)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid rgba(18,63,46,.12); }
.bar .wm { width: 118px; transform: rotate(-4deg); }
.bar .home { display: flex; align-items: center; gap: 6px; text-decoration: none; }
#view { transition: opacity .2s; }
#view.busy { opacity: .55; pointer-events: none; }
.bar nav a { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; }
.bar nav a:hover { background: rgba(18,63,46,.08); }
.mebtn { text-decoration: none; color: var(--green); display: flex; align-items: center; gap: 8px; border: 0; background: rgba(248,240,220,.9); padding: 4px 12px 4px 4px; border-radius: 99px; cursor: pointer; box-shadow: 0 3px 10px rgba(60,30,10,.15); font-weight: 600; font-size: .9rem; }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--green) center / cover; color: var(--cream); display: grid; place-items: center; font: 400 1.1rem/1 Yellowtail, cursive; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 56px; height: 56px; font-size: 1.6rem; }

.club { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 18px 16px calc(60px + var(--safe-b)); display: grid; gap: 28px; }
.zone, .object { scroll-margin-top: calc(var(--barh, 64px) + 14px); }
.page.person .phead h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bar nav a[aria-current] { background: var(--green); color: var(--cream); }
/* Where a nav jump landed: a mustard ring that swells and fades. Without motion it just shows, then goes. */
.flash { outline: 3px solid var(--mustard); outline-offset: 8px; border-radius: 10px; animation: landed 1.6s ease-out forwards; }
@keyframes landed {
  0% { outline-color: rgba(226, 167, 46, 0); outline-offset: 22px; }
  18% { outline-color: rgba(226, 167, 46, 1); outline-offset: 8px; }
  70% { outline-color: rgba(226, 167, 46, .9); outline-offset: 8px; }
  100% { outline-color: rgba(226, 167, 46, 0); outline-offset: 4px; }
}
.zhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.zhead h2 { font: 400 2rem/1 Yellowtail, cursive; color: var(--green); }
.zhead .caps { color: var(--tomato); }
.zhead p { font-size: .92rem; }
.eyebrow { display: block; color: var(--tomato); margin-bottom: 2px; }

/* the next meetup */
.meetup { display: grid; gap: 14px; }
.tent { position: relative; aspect-ratio: 420 / 270; max-width: 520px; width: 100%; margin: 0 auto; background-color: var(--green); border-radius: 3px; color: var(--cream);
  box-shadow: 0 1px 1px rgba(60,30,10,.35), 0 10px 18px rgba(60,30,10,.2); transform: rotate(-.6deg); container-type: inline-size; }
.tent::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7%; background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,0)); }
.tent .diamond { position: absolute; inset: 0; clip-path: polygon(50% 9%, 86% 54%, 50% 99%, 14% 54%); background-color: var(--cream-2); }
.tent .content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 7%; color: var(--green); text-align: center; }
.tent .star { width: 6cqw; height: 6cqw; color: var(--mustard); }
.tent .reserved { font: 400 12cqw/1 Yellowtail, cursive; transform: rotate(-6deg); }
.tent .forline { font: 400 7cqw/1.1 Yellowtail, cursive; color: var(--pen); min-height: 1.1em; border-bottom: 1px solid rgba(18,63,46,.4); padding: .06em .5em .04em 10px; max-width: 52cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tent .forline small { font: italic 400 2.6cqw Jost, sans-serif; color: var(--green); margin-right: 4px; }
.tent .forline.maybe { color: #6A7FA6; }
.tent .corner { position: absolute; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: clamp(.56rem, 2.4cqw, .72rem); color: var(--cream); text-decoration: none; max-width: 40%; }
.tent .tl { left: 4.5%; top: 9%; } .tent .tr { right: 4.5%; top: 9%; text-align: right; }
.tent .bl { left: 4.5%; bottom: 6%; } .tent .br { right: 4.5%; bottom: 6%; text-align: right; }
.tent .draft { position: absolute; right: -8px; top: -10px; background: var(--mustard); color: var(--green); padding: 4px 10px; transform: rotate(6deg); font-size: .62rem; box-shadow: 0 3px 6px rgba(0,0,0,.2); }
a.draft { text-decoration: none; }
a.draft:hover { background: var(--tomato); color: var(--cream-2); }

.rsvpbox { background: var(--cream-2); border-radius: 14px; padding: 14px; box-shadow: 0 2px 0 rgba(18,63,46,.2), 0 8px 18px rgba(60,20,10,.15); display: grid; gap: 12px; max-width: 520px; width: 100%; margin: 0 auto; }
.rsvpbox .q { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.rsvpbox .q b { font-size: 1.05rem; }
.rsvpbox .q b { font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 99px; background: rgba(18,63,46,.08); }
.seg button { border: 0; background: transparent; min-height: 44px; border-radius: 99px; cursor: pointer; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; color: var(--green); }
.seg button[aria-pressed="true"] { background: var(--tomato); color: var(--cream-2); }
.seg button[data-r="maybe"][aria-pressed="true"] { background: var(--mustard); color: var(--green); }
.seg button[data-r="out"][aria-pressed="true"] { background: var(--green); }
.guests { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: flex; align-items: center; border: 2px solid var(--green); border-radius: 99px; overflow: hidden; }
.stepper button { width: 44px; height: 40px; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; color: var(--green); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font: 400 1.4rem/1 Anton, sans-serif; }
.nudge { font-size: .88rem; background: rgba(168,213,184,.4); padding: 8px 10px; border-radius: 8px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.checkin { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--mustard); padding: 10px 12px; border-radius: 10px; }
.checkin.done { background: var(--mint); }

.notes { display: grid; gap: 6px; max-width: 520px; width: 100%; margin: 0 auto; }
/* An update is a white paper napkin taped down: bright against the table, with the pressed border napkins have.
   More than one: a stack, newest on top, the earlier ones' edges peeking out below. Scrolling over it shuffles:
   the top napkin lifts up and away and the next one rises into its place (--d is each napkin's depth from the top). */
.notestack { display: grid; }
.notestack .note { grid-area: 1 / 1; }
.notestack.many { padding-bottom: 26px; touch-action: pan-x pinch-zoom; outline: none; cursor: ns-resize; }
.notestack.many .note { transition: transform .5s cubic-bezier(.2, .9, .25, 1.15), opacity .35s, box-shadow .4s;
  transform: translateY(calc(var(--d) * 10px)) rotate(calc(var(--t) * (1 + var(--d)) * 1.6)) scale(calc(1 - var(--d) * .035)); }
.notestack.many .note > * { transition: opacity .25s; }
.notestack.many .note:not([data-d="0"]) > *, .notestack.many .note:not([data-d="0"])::before { opacity: 0; }
.notestack.many .note[data-d="0"] { cursor: auto; }
.notestack.many .note[data-d="1"] { background-color: #F9F6EE; }
.notestack.many .note[data-d="2"], .notestack.many .note[data-d="3"] { background-color: #F2EEE3; box-shadow: inset 0 0 0 9px currentColor, 0 1px 1px rgba(60,30,10,.2), 0 6px 12px rgba(60,30,10,.16); color: #F2EEE3; }
.notestack.many .note[data-d="deep"] { opacity: 0; }
.notestack.many .note[data-d="gone"] { opacity: 0; pointer-events: none; transform: translateY(-46px) rotate(-5deg) scale(1.03); }
.notestack.many:focus-visible .note[data-d="0"] { outline: 2px solid var(--mustard); outline-offset: 4px; }
.notepager { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--green); }
.notepager span { font-size: .58rem; opacity: .8; min-width: 11em; text-align: center; }
.notepager button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; font-size: .62rem; cursor: pointer; display: grid; place-items: center; }
.notepager button:disabled { opacity: .25; cursor: default; }
.notepager button:not(:disabled):hover { background: var(--green); color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .notestack.many .note { transition: opacity .2s; } }
.note { position: relative; background-color: #FFFEFA; padding: 26px 24px 18px; transform: rotate(var(--t, -.8deg)); border-radius: 2px;
  background-image: radial-gradient(rgba(34,53,94,.06) 1px, transparent 1.4px); background-size: 7px 7px;
  box-shadow: inset 0 0 0 9px #FFFEFA, inset 0 0 0 10px rgba(34,53,94,.16), inset 0 0 0 13px #FFFEFA, inset 0 0 0 14px rgba(34,53,94,.09), 0 1px 1px rgba(60,30,10,.25), 0 10px 22px rgba(60,30,10,.24);
  transition: opacity .3s, transform .3s; }
.note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 74px; height: 22px; margin-left: -37px; background: rgba(226,167,46,.62); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(60,30,10,.15); }
.note .caps { color: var(--tomato); font-size: .6rem; }
.note .pen { font-size: 1.45rem; line-height: 1.12; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note .sig { text-align: right; font-size: 1.1rem; margin-top: 6px; }
.note .del { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 14px; }
.note .del .link { padding: 0; font-size: .8rem; }
.note.editing .del { display: none; }
.upedit textarea { display: block; width: 100%; margin-top: 4px; border: 0; border-radius: 3px; padding: 4px 6px; resize: vertical; background: rgba(226,167,46,.12); font-size: 1.45rem; line-height: 1.12; color: var(--pen); }
.upedit textarea:focus { outline: 2px solid var(--mustard); outline-offset: 1px; }
.upedit p { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.upedit p .caps { flex: 1; color: var(--pen); opacity: .55; font-size: .55rem; }
.upedit .link { padding: 0; font-size: .85rem; }
.notehint { text-align: center; font-size: .58rem; color: var(--green); opacity: .75; }

.who { background: var(--green); color: var(--cream); border-radius: 6px; padding: 16px 16px 14px; max-width: 520px; width: 100%; margin: 0 auto; box-shadow: 0 8px 18px rgba(60,30,10,.2); }
.who h3 { font: 400 1.8rem/1 Yellowtail, cursive; color: var(--mustard); }
.who .count { color: var(--mint); margin: 4px 0 10px; font-size: .62rem; }
.who ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px 12px; }
.who li a { display: flex; gap: 8px; align-items: center; text-decoration: none; font-size: .92rem; line-height: 1.15; min-height: 36px; }
.who li .av { width: 30px; height: 30px; font-size: .95rem; background-color: var(--deep); box-shadow: 0 0 0 1.5px var(--cream); }
.who li small { display: block; color: var(--mint); font-size: .7rem; }
.who li.maybe { opacity: .7; font-style: italic; }
.who li.me a { color: var(--mustard); }
.who .empty { font-size: .9rem; color: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* objects on the table, each with a label underneath so it's clear what it is */
.objects { display: grid; gap: 34px; }
.object { display: grid; gap: 14px; justify-items: center; text-align: center; }
.object .thing { cursor: pointer; border: 0; background: none; padding: 0; transition: transform .25s; }
.object .thing:hover { transform: translateY(-3px) rotate(0deg) !important; }
.label { max-width: 340px; width: 100%; }
.label h3 { font: 400 1.7rem/1 Yellowtail, cursive; }
.label p { font-size: .92rem; margin: 4px 0 10px; }

/* member card */
.mcard { position: relative; width: min(360px, 88vw); aspect-ratio: 344 / 216; perspective: 1200px; }
.mcard .flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.mcard.flipped .flip { transform: rotateY(180deg); }
.mcard .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; background-color: var(--green); color: var(--cream); overflow: hidden;
  box-shadow: 0 1px 1px rgba(60,30,10,.35), 0 10px 18px rgba(60,30,10,.22); container-type: inline-size; }
/* The back: the code as tall as the card allows, what it's for beside it. Padding in %, not cqw: cqw inside the
   back measures its own content box, so padding in cqw shrank everything on it. */
.mcard .back { transform: rotateY(180deg); display: flex; gap: 5%; align-items: stretch; padding: 5.5%; text-align: left; }
.mcard .front .wm { position: absolute; left: 6cqw; top: 6cqw; width: 52cqw; transform: rotate(-5deg); }
.mcard .front .por { position: absolute; right: 6cqw; top: 6cqw; width: 30cqw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream-2); box-shadow: 0 0 0 3px var(--mustard); display: grid; place-items: center; color: var(--green); font: 400 13cqw/1 Yellowtail, cursive; }
.mcard .front .por img { width: 100%; height: 100%; object-fit: cover; }
.mcard .front .who2 { position: absolute; left: 6.5cqw; bottom: 6cqw; text-align: left; max-width: 58cqw; }
.mcard .front .name { font: 400 7.5cqw/1 Yellowtail, cursive; color: var(--mustard); margin-bottom: 1.5cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* Room for the script's flourishes, which reach past each letter's box; the clip used to cut them. */
  padding: .08em .45em .12em .12em; margin-left: -.12em; margin-right: -.45em; }
.mcard .front .who2 .caps { font-size: 2.6cqw; }
.mcard .front .no { position: absolute; right: 6.5cqw; bottom: 5cqw; text-align: right; }
.mcard .front .no .caps { font-size: 2.4cqw; }
.mcard .front .no b { display: block; font: 400 11cqw/1 Anton, sans-serif; color: var(--tomato); letter-spacing: .06em; }
.mcard .stamps { position: absolute; left: 6.5cqw; top: 28cqw; display: flex; gap: 1.2cqw; }
.mcard .stamps i { width: 4.2cqw; height: 4.2cqw; color: var(--mustard); }
.mcard .stamps span { font-size: 2.6cqw; letter-spacing: .1em; align-self: center; margin-left: 1cqw; }
.mcard .qr { height: 100%; aspect-ratio: 1; flex: none; background: var(--cream-2); padding: 2.5cqw; border-radius: 3cqw; cursor: zoom-in; }
.mcard .qr svg { width: 100%; height: 100%; display: block; }
.mcard .back .bk { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mcard .back .caps { font-size: 3.4cqw; letter-spacing: .16em; color: var(--mint); }
.mcard .back p { font-size: 5.2cqw; line-height: 1.25; margin: 2cqw 0 2.5cqw; }
.mcard .back small { font-size: 3.4cqw; line-height: 1.3; opacity: .75; margin-bottom: 3cqw; }
.mcard .back code { font: 500 3.8cqw/1.25 ui-monospace, Menlo, monospace; background: var(--cream-2); color: var(--green); padding: 1.5cqw 2cqw; border-radius: 1.5cqw; display: block; overflow-wrap: anywhere; }

/* the members' book */
.book { position: relative; width: 210px; height: 280px; perspective: 1000px; transform: rotate(-3deg); }
.book .cover { position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; background-color: var(--green); z-index: 1;
  background-image: var(--paper), repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px); background-size: 420px, auto;
  box-shadow: inset 8px 0 0 rgba(0,0,0,.25), inset 10px 0 0 rgba(255,255,255,.06), 0 10px 18px rgba(60,30,10,.25); transition: transform .6s cubic-bezier(.3,.7,.2,1); transform-origin: 0 50%; }
.book:hover .cover { transform: rotateY(-14deg); }
.book .pages { position: absolute; top: 6px; bottom: 6px; left: 8px; right: -5px; border-radius: 2px 8px 8px 2px; background: repeating-linear-gradient(90deg, #F4EAD2 0 2px, #E3D5B5 2px 3px); }
.book .band { position: absolute; top: 0; bottom: 0; left: 22px; width: 3px; background: rgba(226,167,46,.6); }
.book .blabel { position: absolute; left: 38px; right: 18px; top: 56px; border: 2px solid var(--mustard); padding: 18px 8px 12px; text-align: center; }
.book .blabel::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(226,167,46,.6); }
.book .blabel img { width: 120px; margin: 0 auto 8px; transform: rotate(-5deg); }
.book .blabel .caps { color: var(--mustard); font-size: .72rem; letter-spacing: .4em; }
.book .tab { position: absolute; right: -22px; top: 180px; width: 30px; height: 44px; padding-left: 6px; background: var(--tomato); color: var(--cream-2); display: grid; place-items: center; font-weight: 600; font-size: .76rem; border-radius: 0 4px 4px 0; z-index: 0; }
.faces { display: flex; justify-content: center; }
.faces .av { width: 32px; height: 32px; font-size: .95rem; box-shadow: 0 0 0 2px var(--wood); margin-left: -6px; }

/* the napkin */
.napkin { position: relative; width: 250px; height: 250px; background-color: var(--coral); transform: rotate(3deg); box-shadow: 0 1px 1px rgba(60,30,10,.3), 0 8px 14px rgba(60,30,10,.18); }
.napkin::after, .bignap::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, rgba(120,30,10,.12) 2px 4px) right / 22px 100% no-repeat,
              repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 2px, rgba(120,30,10,.12) 2px 4px) bottom / 100% 22px no-repeat; }
.napkin svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.napkin .ntitle { position: absolute; left: 0; right: 14px; bottom: 34px; margin: 0; text-align: center; font-size: 1.5rem; line-height: 1; transform: rotate(-4deg); }

/* the matchbook: a cover that tucks under a stapled flap, with real paper matches inside. A real 20-match book is
   about 1.5 by 2 inches, so this keeps that 3:4 shape: 200 wide, 266 tall, the flap about a fifth of it. */
.matchbook { position: relative; width: 200px; height: 266px; perspective: 900px; transition: margin-top .9s cubic-bezier(.3,.7,.2,1); transform: rotate(4deg); filter: drop-shadow(0 1px 1px rgba(60,30,10,.4)) drop-shadow(0 10px 12px rgba(60,30,10,.22)); }
.matchbook .inside { position: absolute; left: 0; right: 0; top: 0; height: 212px; border-radius: 3px 3px 0 0; background: #2B1A12; overflow: hidden; }
.matchbook .inside svg { width: 100%; height: 100%; display: block; }
.matchbook .cover { position: absolute; left: 0; right: 0; top: 0; height: 212px; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,.7,.2,1); z-index: 2; }
/* The cover folds over the top, so it swings up and back to open, showing its inside above the matches. */
.matchbook.open { margin-top: 212px; }
.matchbook.open .cover { transform: rotateX(-176deg); z-index: 4; }
.matchbook .cover .side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4px 4px 0 0; overflow: hidden; }
.matchbook .cover::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 4px; border-radius: 2px; background: linear-gradient(#B8331C, #E4472B); }
.matchbook .cover .out { background-color: var(--tomato); color: var(--cream); display: flex; flex-direction: column; align-items: center; padding-top: 20px; text-align: center;
  background-image: var(--paper), linear-gradient(90deg, rgba(0,0,0,.14), transparent 8%, transparent 92%, rgba(0,0,0,.18)), linear-gradient(transparent 85%, rgba(0,0,0,.25)); background-size: 360px, auto, auto; background-blend-mode: multiply; }
.matchbook .cover .out svg { width: 18px; height: 18px; }
.matchbook .cover .out img { width: 150px; margin: 10px 0 10px; transform: rotate(-8deg); }
.matchbook .cover .out .caps { font-size: .5rem; }
.matchbook .cover .out .rule { width: 56%; height: 1.5px; background: var(--cream); opacity: .7; margin: 8px 0; }
.matchbook .cover .out .next { font: 400 1.4rem/1 Yellowtail, cursive; color: var(--cream-2); }
.matchbook .cover .in { transform: rotateX(180deg); background-color: var(--cream-2); padding: 12px 16px; text-align: center; background-image: var(--paper); background-size: 360px; background-blend-mode: multiply; }
.matchbook .cover .in .caps { font-size: .52rem; color: var(--tomato); }
.matchbook .cover .in ul { list-style: none; padding: 0; margin-top: 6px; font-weight: 600; letter-spacing: .12em; font-size: .7rem; text-transform: uppercase; }
.matchbook .cover .in li { padding: 3px 0; border-top: 1px dotted rgba(18,63,46,.35); }
.matchbook .cover .in li:first-child { color: var(--tomato); border-top: 0; }
.matchbook .flap { position: absolute; left: -1px; right: -1px; bottom: 0; height: 56px; z-index: 3; border-radius: 0 0 4px 4px; background-color: var(--tomato);
  background-image: var(--paper), linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,0) 7px), linear-gradient(90deg, rgba(0,0,0,.14), transparent 8%, transparent 92%, rgba(0,0,0,.18)); background-size: 360px, auto, auto; background-blend-mode: multiply;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 9px; color: var(--cream); }
.matchbook .flap .caps { font-size: .42rem; letter-spacing: .22em; }
.matchbook .flap .striker { position: absolute; left: 0; right: 0; bottom: 7px; height: 14px; background: #4A2E22; background-image: radial-gradient(rgba(255,255,255,.22) .8px, transparent 1.2px), radial-gradient(rgba(0,0,0,.35) .8px, transparent 1.2px); background-size: 3px 3px, 4px 4px; background-position: 0 0, 1px 2px; box-shadow: inset 0 1px 0 rgba(0,0,0,.3), inset 0 -1px 0 rgba(255,255,255,.1); }
.matchbook .flap .staple { position: absolute; left: 50%; top: 21px; width: 38px; height: 6px; margin-left: -19px; border-radius: 2px; background: linear-gradient(#F4F4F2, #9EA3A6 55%, #D6D8D9); box-shadow: 0 1px 1px rgba(0,0,0,.45); }
.dates { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 2px 0 10px; }
.dates li { background: var(--cream-2); border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 500; box-shadow: 0 1px 0 rgba(18,63,46,.2); }
.dates li:first-child { background: var(--tomato); color: var(--cream-2); }

/* the coaster: house rules printed right on it */
.coaster { position: relative; width: 270px; height: 270px; border-radius: 50%; background-color: var(--cream-2); background-image: var(--paper); background-size: 420px; background-blend-mode: multiply;
  box-shadow: 0 1px 1px rgba(60,30,10,.35), 0 8px 14px rgba(60,30,10,.2); padding: 40px 34px 30px; text-align: center; transform: rotate(-3deg); }
.coaster::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1.5px dashed rgba(18,63,46,.35); }
.coaster h3 { font: 400 1.7rem/1 Yellowtail, cursive; color: var(--tomato); }
.coaster ol { list-style: none; padding: 0; font-size: .78rem; line-height: 1.25; margin-top: 6px; }
.coaster li + li { margin-top: 5px; }
.coaster img { width: 50px; margin: 6px auto 0; opacity: .85; }

.oncall { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.oncall a { display: flex; gap: 10px; align-items: center; text-decoration: none; background: rgba(248,240,220,.85); padding: 10px; border-radius: 12px; box-shadow: 0 2px 6px rgba(60,30,10,.1); }
.oncall small { display: block; color: var(--tomato); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.foot { text-align: center; font-size: .85rem; display: grid; gap: 4px; justify-items: center; padding-top: 6px; }

.panel { background: rgba(248,240,220,.94); border-radius: 14px; padding: 16px; box-shadow: 0 2px 0 rgba(18,63,46,.15), 0 8px 18px rgba(60,20,10,.12); }
.panel h3 { font: 400 1.6rem/1 Yellowtail, cursive; margin-bottom: 4px; }
.panel p { font-size: .92rem; }
.panel .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; align-items: center; }

/* ============================ PAGES ============================ */
.page { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 14px 0 0; }
.phead { padding: 6px 20px 2px; }
.crumb { display: inline-block; text-decoration: none; color: var(--tomato); font-size: .64rem; padding: 6px 0; }
.crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.phead h1 { font: 400 clamp(2.2rem, 7vw, 3rem)/1.05 Yellowtail, cursive; color: var(--green); padding: .05em .45em .12em .1em; margin-left: -.1em; overflow-wrap: anywhere; }
.sbody { max-width: 760px; margin: 0 auto; padding: 10px 16px calc(48px + var(--safe-b)); }
.sbody > * + * { margin-top: 16px; }
.sbody > .zone { margin-bottom: 8px; }

/* directory */
.search { position: relative; }
.search input { width: 100%; min-height: 46px; border: 2px solid var(--green); border-radius: 99px; padding: 10px 16px; background: var(--cream-2); font-size: 1rem; }
.group h4 { margin: 18px 4px 6px; color: var(--tomato); display: flex; align-items: center; gap: 10px; }
.group h4 em { font-style: normal; letter-spacing: .06em; font-size: .62rem; background: var(--green); color: var(--cream-2); border-radius: 99px; padding: 3px 8px 2px; }
.group h4::after { content: ''; flex: 1; border-top: 2px dotted rgba(18,63,46,.3); }

/* the members' book: a wall of coasters, the portrait first */
.page.roster { max-width: 1180px; width: 100%; }
.page.roster .sbody { max-width: none; padding-inline: 20px; }
.page.roster .booknote { margin: 14px 4px 0; }
.booktop { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.viewsw { display: inline-flex; border: 2px solid var(--green); border-radius: 99px; overflow: hidden; background: var(--cream-2); }
.viewsw button { border: 0; background: none; color: var(--green); min-height: 42px; padding: 0 15px; font-size: .62rem; cursor: pointer; }
.viewsw button[aria-pressed="true"] { background: var(--green); color: var(--cream-2); }
.treepill { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 18px; border-radius: 99px; background: var(--green); color: var(--cream); text-decoration: none; box-shadow: 3px 3px 0 var(--tomato); transition: transform .15s, box-shadow .15s; }
.treepill .caps { font-size: .54rem; color: var(--mint); }
.treepill b { font: 400 1.3rem/1 Yellowtail, cursive; color: var(--mustard); padding-right: .15em; }
.treepill .arrow { transition: transform .15s; }
.treepill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tomato); }
.treepill:hover .arrow { transform: translateX(3px); }
@media (max-width: 720px) {
  .booktop { grid-template-columns: auto minmax(0, 1fr); }
  .booktop .search { grid-column: 1 / -1; }
  .treepill { justify-content: center; }
  .treepill .caps { display: none; }
}

/* The list reads down each column, like a phone book, in as many columns as fit. */
.page.roster .entries { columns: 340px 3; column-gap: 0; column-rule: 1px solid rgba(18,63,46,.12); }
.page.roster .entries li { break-inside: avoid; border-top: 0; border-bottom: 1px solid rgba(18,63,46,.12); }

.facegrid { --lift: 46px; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 20px; }
.mc { --halo: var(--mint); padding-top: var(--lift); min-width: 0; }
.mc.h1 { --halo: var(--coral); } .mc.h2 { --halo: var(--mustard); } .mc.h3 { --halo: var(--blue); } .mc.h4 { --halo: var(--tomato); }
.mc a { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; padding: 0 12px 16px;
  background: var(--cream-2) var(--paper); background-size: 420px; background-blend-mode: multiply; border-radius: 18px; box-shadow: 0 3px 10px rgba(60,30,10,.13);
  transform: rotate(var(--tilt)); transition: transform .28s cubic-bezier(.3,1.5,.5,1), box-shadow .2s; }
.mc .face { position: relative; width: calc(100% - 12px); aspect-ratio: 1; margin-top: calc(var(--lift) * -1); border-radius: 50%; border: 3px solid var(--green); background: var(--cream); overflow: hidden;
  box-shadow: 7px 6px 0 var(--halo); transition: transform .32s cubic-bezier(.3,1.6,.5,1), box-shadow .32s; }
.mc .face img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.03); }
.mc .no { position: absolute; left: 2px; top: calc(var(--lift) * -1 + 4px); width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; background: var(--tomato); color: var(--cream-2);
  font: 400 1.02rem/1 Anton, Jost, sans-serif; letter-spacing: .03em; transform: rotate(-12deg); box-shadow: 0 0 0 2px var(--cream-2), 2px 3px 0 rgba(11,42,31,.25); transition: transform .32s cubic-bezier(.3,1.6,.5,1); }
.mc .no i { font: 600 .5rem/1 Jost, sans-serif; letter-spacing: .16em; text-transform: uppercase; font-style: normal; margin-bottom: 1px; opacity: .9; }
.mc .tag { position: absolute; right: 2px; top: calc(var(--lift) * -1 + 12px); background: var(--mustard); color: var(--deep); font-size: .56rem; padding: 5px 9px 4px 11px; border-radius: 99px; transform: rotate(9deg); box-shadow: 0 0 0 2px var(--cream-2); }
/* Yellowtail swings well outside its box (the J's tail, the l's loop), so the name is never clipped: it wraps instead. */
.mc .fn { margin-top: 8px; max-width: 100%; font: 400 2rem/1.2 Yellowtail, cursive; color: var(--green); padding: .06em .3em .1em; overflow: visible; overflow-wrap: anywhere; }
.mc .ln { max-width: 100%; margin-top: 3px; font-size: .6rem; letter-spacing: .22em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.mc .role { margin-top: 7px; font-size: .5rem; letter-spacing: .16em; line-height: 1.35; color: var(--cream-2); background: var(--tomato); padding: 3px 8px 2px; border-radius: 3px; max-width: 100%; }
.mc .sub { margin-top: 9px; font-size: .84rem; line-height: 1.3; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc .st { margin-top: auto; padding-top: 9px; font-size: .78rem; letter-spacing: .14em; color: var(--mustard); text-shadow: .5px .5px 0 var(--brick); }
.mc a:hover, .mc a:focus-visible { transform: rotate(0deg) translateY(-5px); box-shadow: 5px 6px 0 var(--tomato); }
.mc a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.mc a:hover .face, .mc a:focus-visible .face { transform: rotate(-5deg) scale(1.05); box-shadow: -7px 6px 0 var(--halo); }
.mc a:hover .no, .mc a:focus-visible .no { transform: rotate(8deg) scale(1.08); }
.mc a:active { transform: rotate(0deg) translateY(0); box-shadow: 2px 2px 0 var(--tomato); }
.mc.you a { background-color: #F6E2A8; box-shadow: 0 0 0 2px var(--mustard), 0 3px 10px rgba(60,30,10,.13); }
.mc.you a:hover { box-shadow: 0 0 0 2px var(--mustard), 5px 6px 0 var(--tomato); }
.mc.ghost .face { border-style: dashed; box-shadow: none; background: var(--cream-2); }
.mc.ghost .face img { opacity: .8; }
#dir.fresh .mc { animation: deal .55s cubic-bezier(.2,.9,.3,1.25) both; animation-delay: calc(var(--i) * 32ms); }
@keyframes deal { from { opacity: 0; transform: translateY(22px) rotate(calc(var(--tilt) * 5)) scale(.92); } }
@media (max-width: 520px) {
  .page.roster .sbody { padding-inline: 14px; }
  .facegrid { --lift: 38px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .mc a { padding: 0 9px 13px; border-radius: 15px; }
  .mc .fn { font-size: 1.7rem; margin-top: 6px; }
  .mc .no { width: 40px; height: 40px; font-size: .9rem; }
  .mc .sub { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  #dir.fresh .mc { animation: none; }
  .mc a, .mc .face, .mc .no { transition: none; }
}
.entries { list-style: none; padding: 0; background: var(--cream-2); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(60,30,10,.1); }
.entries li + li { border-top: 1px solid rgba(18,63,46,.12); }
.entries a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; text-decoration: none; min-height: 64px; }
.entries a:hover { background: rgba(226,167,46,.12); }
.entries .av { width: 52px; height: 52px; font-size: 1.5rem; }
.entries .nm { font-weight: 600; }
.entries .nm small { display: block; font-weight: 600; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); }
.entries .sub { font-size: .86rem; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entries .meta { font-size: .72rem; text-align: right; opacity: .75; white-space: nowrap; }
.entries li.you a { background: rgba(226,167,46,.16); }
.empty { padding: 20px; font-style: italic; text-align: center; }

/* one member's card page */
.profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: center; }
.pcard { width: 100%; max-width: 520px; background-color: var(--cream-2); background-image: var(--paper); background-size: 420px; background-blend-mode: multiply; border-radius: 14px; padding: 22px 20px;
  box-shadow: 0 0 0 5px var(--cream-2), 0 0 0 7px var(--green), 0 16px 30px rgba(60,30,10,.25); position: relative; }
.pcard .top { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.pcard .por { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--green); color: var(--cream); display: grid; place-items: center; font: 400 3rem/1 Yellowtail, cursive; box-shadow: 0 0 0 3px var(--mustard); }
.pcard .por img { width: 100%; height: 100%; object-fit: cover; }
.pcard h3 { font: 400 2.2rem/1 Yellowtail, cursive; color: var(--tomato); overflow-wrap: anywhere; }
.pcard .num { font: 400 1.2rem/1 Anton, sans-serif; letter-spacing: .08em; }
.pcard .ptitle { color: var(--tomato); margin-top: 4px; }
.pcard .topic { font-size: 1.05rem; font-weight: 500; margin-top: 16px; }
.pcard .bio { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pcard .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pcard .links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--green); color: var(--cream-2); padding: 7px 12px; border-radius: 99px; font-size: .84rem; font-weight: 500; }
.pcard .facts { display: grid; gap: 4px; margin-top: 16px; font-size: .9rem; border-top: 1px dashed rgba(18,63,46,.3); padding-top: 12px; }
.pcard .facts a { text-decoration-color: rgba(18,63,46,.35); text-underline-offset: 3px; }
.pcard.full { box-shadow: 0 0 0 5px var(--cream-2), 0 0 0 7px var(--mustard), 0 0 0 9px var(--green), 0 16px 30px rgba(60,30,10,.25); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; width: 100%; max-width: 520px; }
.contact .btn { width: 100%; }

/* forms in sheets */
.field { display: grid; gap: 4px; }
.field > span { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .66rem; }
.field i { font-style: normal; font-weight: 400; letter-spacing: .02em; text-transform: none; opacity: .7; }
.field input, .field textarea { width: 100%; min-height: 46px; border: 2px solid rgba(18,63,46,.6); border-radius: 8px; padding: 10px 12px; background: var(--cream-2); font-size: 1rem; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--tomato); }
/* iOS draws date and time pickers its own way: wider than the box they're in, taller than the other fields, the
   value centred. Strip that so they match every other field. */
.field input[type="date"], .field input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; height: 46px; line-height: 22px; text-align: left; color: var(--green); font-family: inherit; }
.field input[type="date"]::-webkit-date-and-time-value, .field input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-datetime-edit, .field input[type="time"]::-webkit-datetime-edit { padding: 0; }
.two > .field { min-width: 0; }
.linkrow { display: flex; gap: 8px; }
.linkrow input { flex: 1; }
.toggle { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.toggle input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin-top: 2px; }
.formcard { background: var(--cream-2); border-radius: 14px; padding: 16px; display: grid; gap: 14px; box-shadow: 0 2px 8px rgba(60,30,10,.1); }
.formcard h3 { font: 400 1.6rem/1 Yellowtail, cursive; }

/* portraits */
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.example { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 4px; background: var(--cream-2); border-radius: 12px; padding: 10px; }
.example img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.example .arrow { text-align: center; color: var(--tomato); font-weight: 600; }
.rules { list-style: none; padding: 0; display: grid; gap: 6px; }
.rules li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.rules li::before { content: "★"; color: var(--mustard); }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; border: 2.5px dashed rgba(18,63,46,.5); border-radius: 14px; padding: 26px 16px; background: rgba(248,240,220,.7); cursor: pointer; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drafts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.drafts button { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; aspect-ratio: 1; overflow: hidden; box-shadow: 0 0 0 3px var(--cream-2), 0 6px 12px rgba(60,30,10,.2); }
.drafts button[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--tomato), 0 6px 12px rgba(60,30,10,.3); }
.drafts img { width: 100%; height: 100%; object-fit: cover; }
.drawing { display: grid; justify-items: center; gap: 12px; padding: 26px 10px; text-align: center; }
.drawing .pencil { width: 120px; height: 120px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; animation: wob 1.2s ease-in-out infinite; font-size: 3rem; }
@keyframes wob { 50% { transform: rotate(8deg) scale(1.04); } }

/* the family tree: full screen, drag to move, pinch or buttons to zoom */
html:has(body[data-page="tree"]) { overflow: hidden; } /* on the root, so the reserved scrollbar room stays */
body[data-page="tree"] #app { background: var(--coral); }
.page.tree { max-width: none; height: calc(100svh - var(--barh, 64px)); overflow: hidden; padding: 0; background: var(--coral); }
/* The tree's paper runs under a side status column too; only the zoom buttons step clear of it. */
#view.page.tree { border-width: 0; }
.page.tree .zoom { right: calc(14px + var(--safe-r)); }
.page.tree .treehint, .page.tree .treecard { left: calc(14px + var(--safe-l)); }
/* On the tree the title is a small placard pinned top centre, so it doesn't read as a second logo under the real one. */
.page.tree .phead { position: absolute; z-index: 3; left: 0; right: 0; top: 12px; display: flex; justify-content: center; pointer-events: none; padding: 0 70px; }
.page.tree .phead > * { pointer-events: auto; }
.page.tree .phead h1 { font: 700 .74rem/1 var(--sans, Jost), system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-2); background: var(--green); padding: 9px 16px 8px 18px; margin: 0; border-radius: 99px; box-shadow: 2px 2px 0 var(--tomato); white-space: nowrap; }
.bignap { position: absolute; inset: 0; }
.bignap svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.bignap svg:active { cursor: grabbing; }
.bignap .ln { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; }
.bignap text { font-family: Yellowtail, cursive; fill: var(--pen); font-size: 22px; }
.bignap .nd { cursor: pointer; }
.bignap .nd circle.ring { fill: var(--cream-2); stroke: var(--pen); stroke-width: 2; }
.bignap .nd.you circle.ring { stroke: var(--brick); stroke-width: 4; }
.bignap .nd.you text { fill: var(--brick); }
/* Picking someone out on the tree: them in red, their inviter and invitees bright, everyone else faded back. */
.bignap .nd, .bignap .ln { transition: opacity .2s; }
#tree.picking .nd[data-id]:not(.sel):not(.rel), #tree.picking .nd.root { opacity: .3; }
#tree.picking .ln:not(.rel) { opacity: .18; }
#tree.picking .ln.rel { stroke: var(--brick); stroke-width: 3; }
.bignap .nd.sel circle.ring { stroke: var(--tomato); stroke-width: 6; }
.bignap .nd.sel text { fill: var(--tomato); font-weight: 700; }
.bignap .nd:focus { outline: none; }
/* The picked person's card, floating over the tree. */
.treecard { position: absolute; left: 14px; bottom: calc(18px + var(--safe-b)); z-index: 4; width: min(340px, calc(100% - 92px)); padding: 16px 16px 14px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.22); display: grid; gap: 10px; }
.treecard[hidden] { display: none; }
.treecard .tclose { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--green); cursor: pointer; padding: 4px 8px; }
.treecard .ttop { display: flex; gap: 12px; align-items: center; padding-right: 22px; }
.treecard .tpor { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pen); flex: none; }
.treecard .ttop b { display: block; font-size: 1.05rem; line-height: 1.2; }
.treecard .num { font-size: .78rem; opacity: .7; }
.treecard .ttopic { margin: 0; font-size: .88rem; line-height: 1.35; }
.treecard .ttitle { display: block; font-size: .66rem; margin: 2px 0 1px; }
.treecard .tbio { margin: 0; font-size: .84rem; line-height: 1.4; opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.treecard .btn { justify-self: stretch; text-align: center; }
.treehint a { color: var(--brick); font-weight: 600; white-space: nowrap; }
.bignap .nd text.ini { font-size: 30px; fill: var(--green); }
.bignap .root text { font-size: 34px; }
.bignap .root text.small, .bignap text.small { font: 500 11px Jost, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.zoom { position: absolute; right: 14px; bottom: calc(18px + var(--safe-b)); display: grid; gap: 8px; z-index: 3; }
.zoom button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--green); font-size: 1.3rem; box-shadow: 0 4px 10px rgba(0,0,0,.2); cursor: pointer; font-weight: 600; }
.treehint { position: absolute; left: 14px; bottom: calc(22px + var(--safe-b)); z-index: 3; font-size: .82rem; background: rgba(248,240,220,.85); padding: 6px 12px; border-radius: 99px; }

.toast { position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%); z-index: 500; background: var(--green); color: var(--cream-2); padding: 12px 18px; border-radius: 99px; box-shadow: 0 8px 22px rgba(0,0,0,.3); font-size: .92rem; max-width: calc(100vw - 32px); text-align: center; }

/* installing on iPhone */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; background: var(--cream-2); padding: 10px; border-radius: 12px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--tomato); color: var(--cream-2); display: grid; place-items: center; font: 400 1.1rem Anton, sans-serif; }
.share-glyph { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }

/* founders' desk */
.desk table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.desk th, .desk td { text-align: left; padding: 6px 4px; border-bottom: 1px solid rgba(18,63,46,.15); }
.desk .qr { width: 220px; background: var(--cream-2); padding: 10px; border-radius: 10px; }
.two { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ============================ THE HEADER NAV ============================ */
.bar nav { display: flex; gap: 2px; }
.bar nav .short { display: none; }
.bar nav a { color: var(--green); white-space: nowrap; }
@media (max-width: 899px) {
  /* phones: logo and you on top, the club's pages in a row underneath */
  .bar { flex-wrap: wrap; row-gap: 6px; padding-bottom: 6px; }
  .bar nav { order: 3; width: calc(100% + 20px); margin: 0 -10px; justify-content: space-between; }
  .bar nav a { flex: 1; text-align: center; padding: 9px 4px; font-size: .62rem; letter-spacing: .1em; }
  .bar nav .long { display: none; } .bar nav .short { display: inline; }
  .mebtn { padding: 3px 10px 3px 3px; font-size: .85rem; }
  .mebtn .av { width: 30px; height: 30px; }
}

/* member view: a founder seeing the club as a member does. Part of the header, so it's always on screen. */
.bar:has(.asbar) { flex-wrap: wrap; row-gap: 8px; }
.asbar { order: 4; flex: 1 0 100%; display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; margin: 0 -18px -10px; padding: 7px 16px;
  background: var(--mustard); color: var(--green); font-size: .84rem; line-height: 1.3; text-align: center; }
.asbar .btn { min-height: 32px; padding: 4px 14px; }
.asbar .short { display: none; }
@media (max-width: 899px) { .asbar { margin-bottom: -6px; font-size: .78rem; flex-wrap: nowrap; justify-content: space-between; text-align: left; padding: 5px 12px; } .asbar .long { display: none; } .asbar .short { display: inline; } .asbar .btn { min-height: 30px; padding: 3px 12px; font-size: .62rem; } }

/* ============================ THE MEETUP ============================ */
.meetup .checkin { max-width: 980px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .meetup .note .pen { font-size: 1.6rem; } }

/* ============================ LARGER SCREENS ============================ */
@media (min-width: 900px) {
  .bar .wm { width: 140px; }
  .club { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; padding-top: 28px; }
  .zone.wide { grid-column: 1 / -1; }
  .objects { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .zhead h2 { font-size: 2.3rem; }
}
@media (max-width: 899px) {
  /* phones: each object small on the left, what it is and what to do on the right */
  .objects { gap: 22px; }
  .objects .object { grid-template-columns: 132px 1fr; gap: 16px; justify-items: start; text-align: left; align-items: center; }
  .objects .object .thing { justify-self: center; }
  .objects .book { zoom: .5; } .objects .napkin { zoom: .52; } .objects .matchbook { zoom: .56; } .objects .coaster { zoom: .48; }
  .objects .label h3 { font-size: 1.5rem; }
  .objects .label p { font-size: .88rem; margin: 2px 0 8px; }
  .objects .label .btn { white-space: normal; text-align: left; line-height: 1.2; }
  .objects .faces { justify-content: flex-start; padding-left: 6px; margin-bottom: 8px; }
  .objects .dates { justify-content: flex-start; }
  .objects #rules { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .objects #rules .coaster { zoom: .92; }
  .objects #rules .label { display: none; }
}
@media (max-width: 760px) {
  .title { top: calc(5vh + var(--safe-t)); }
  .ticket { left: 12px; right: 12px; width: auto; transform: rotate(-1.5deg); }
  .tstub { display: none; }
  .tmain { border-right: 0; padding: 18px 20px 14px 22px; }
  .moon { top: 24%; left: auto; right: 10%; }
  .invitecard { left: 12px; right: 12px; width: auto; top: auto; bottom: calc(10px + var(--safe-b)); transform: rotate(.6deg); max-height: 78svh; padding: 26px 20px 18px; }
  .invitecard h2 .yt { font-size: 2.1rem; }
  body[data-door="join"] .title { top: calc(2vh + var(--safe-t)); width: 70vw; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.formcard.asmember { grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; }
@media (max-width: 560px) { .formcard.asmember { grid-template-columns: 1fr; justify-items: start; } }

/* ============================ THE PASS: the next meetup, with your answer as its tear-off stub ============================ */
.meetup { display: grid; gap: 22px; }
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); max-width: 980px; width: 100%; margin: 0 auto;
  filter: drop-shadow(0 1px 1px rgba(60,30,10,.3)) drop-shadow(0 14px 22px rgba(60,30,10,.2)); }
.pmain { position: relative; background-color: var(--cream-2); background-image: var(--paper); background-size: 420px; background-blend-mode: multiply; color: var(--green);
  border-radius: 18px 0 0 18px; padding: 28px 32px 24px; min-width: 0;
  -webkit-mask: radial-gradient(circle 15px at 100% 0, #0000 14.5px, #000 15px) top / 100% 51% no-repeat, radial-gradient(circle 15px at 100% 100%, #0000 14.5px, #000 15px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 15px at 100% 0, #0000 14.5px, #000 15px) top / 100% 51% no-repeat, radial-gradient(circle 15px at 100% 100%, #0000 14.5px, #000 15px) bottom / 100% 51% no-repeat; }
.pmain { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 22px; }
.pright { width: 184px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; padding: 0 4px; }
.pmain::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(18,63,46,.22); border-radius: 12px 4px 4px 12px; pointer-events: none; }
.peyebrow { color: var(--tomato); font-size: .66rem; }
.pdate { white-space: nowrap; font: 400 clamp(2.6rem, 6.4vw, 4.3rem)/1 Yellowtail, cursive; color: var(--green); margin: 4px 0 16px; padding: 0 .4em .08em .06em; margin-left: -.06em; word-spacing: -.04em; }
/* The suffix sits up small, the way a hand-lettered date does: December 9th. */
.pdate a { color: inherit; text-decoration: none; }
.pdate .go { display: inline-block; font: 600 .32em/1 Jost, sans-serif; vertical-align: .9em; margin-left: .3em; color: var(--tomato); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.pdate a:hover .go, .pdate a:focus-visible .go { opacity: 1; transform: none; }
.pdate a:hover { color: #1B5A41; }
@media (hover: none) { .pdate .go { opacity: .7; transform: none; } }
.pdate .ord { font-size: .48em; vertical-align: .62em; margin-left: .14em; }
.pfacts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.pfacts dt { color: var(--tomato); font-size: .58rem; }
.pfacts dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 600; }
.pfacts dd i { font-weight: 500; opacity: .75; }
.pfacts a { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(18,63,46,.35); }
.pmain .mnote { text-align: left; margin-top: 12px; font-size: .95rem; max-width: 34em; }
.plinks { display: flex; gap: 18px; margin-top: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .64rem; }
.plinks a { white-space: nowrap; color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--mustard); }
.plinks a:hover { color: var(--tomato); }
.pass .draft { position: absolute; left: 28px; top: -11px; z-index: 3; background: var(--mustard); color: var(--green); padding: 4px 10px; transform: rotate(-3deg); font-size: .6rem; box-shadow: 0 3px 6px rgba(0,0,0,.2); text-decoration: none; }
.pass a.draft:hover { background: var(--tomato); color: var(--cream-2); }

/* how far off it is: a mustard starburst, the kind stuck on a jukebox */
.burst { position: relative; flex: none; width: 96px; height: 96px; display: grid; place-content: center; text-align: center; color: var(--green); background: var(--mustard); transform: rotate(10deg);
  clip-path: polygon(100.0% 50.0%, 90.0% 59.1%, 95.0% 71.7%, 82.1% 75.6%, 81.2% 89.1%, 67.8% 86.9%, 61.1% 98.7%, 50.0% 91.0%, 38.9% 98.7%, 32.2% 86.9%, 18.8% 89.1%, 17.9% 75.6%, 5.0% 71.7%, 10.0% 59.1%, 0.0% 50.0%, 10.0% 40.9%, 5.0% 28.3%, 17.9% 24.4%, 18.8% 10.9%, 32.2% 13.1%, 38.9% 1.3%, 50.0% 9.0%, 61.1% 1.3%, 67.8% 13.1%, 81.2% 10.9%, 82.1% 24.4%, 95.0% 28.3%, 90.0% 40.9%); }
.burst b { font: 400 2rem/1 Anton, sans-serif; }
.burst b:only-child { font: 400 1.35rem/1 Yellowtail, cursive; }
.burst small { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .46rem; margin-top: 2px; }

/* your answer, rubber-stamped across the pass */
.stamp { --r: -11deg; position: relative; z-index: 1; margin-bottom: 6px; color: var(--tomato); transform: rotate(var(--r)); text-align: center; pointer-events: none;
  border: 3px solid currentColor; border-radius: 10px; padding: 6px 16px 5px; box-shadow: inset 0 0 0 3px var(--cream-2), inset 0 0 0 4.5px currentColor; opacity: .9; mix-blend-mode: multiply; }
.stamp span { display: block; font: 400 1.55rem/1 Anton, sans-serif; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; }
.stamp small { display: block; font: 400 1.15rem/1.1 Yellowtail, cursive; margin-top: 2px; white-space: nowrap; }
.stamp.maybe { --r: -6deg; color: #3E5C9A; border-style: dashed; box-shadow: none; }
.stamp.out { --r: -8deg; color: #8A8270; }
.stamp.blank { --r: -6deg; color: rgba(18,63,46,.3); border-style: dashed; box-shadow: none; mix-blend-mode: normal; }
.stamp.thump { animation: thump .5s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes thump { 0% { opacity: 0; transform: rotate(var(--r)) scale(2.1); } 55% { opacity: .95; transform: rotate(var(--r)) scale(.94); } 100% { opacity: .9; transform: rotate(var(--r)) scale(1); } }

/* the stub: tear here, answer here */
.pstub { position: relative; background: var(--green); color: var(--cream); border-radius: 0 18px 18px 0; padding: 24px 24px 22px; display: grid; gap: 14px; align-content: center;
  border-left: 3px dotted rgba(233,220,191,.45);
  -webkit-mask: radial-gradient(circle 15px at 0 0, #0000 14.5px, #000 15px) top / 100% 51% no-repeat, radial-gradient(circle 15px at 0 100%, #0000 14.5px, #000 15px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 15px at 0 0, #0000 14.5px, #000 15px) top / 100% 51% no-repeat, radial-gradient(circle 15px at 0 100%, #0000 14.5px, #000 15px) bottom / 100% 51% no-repeat; }
.pstub .q { display: grid; gap: 6px; }
.pstub .q b { font: 400 2.2rem/1 Yellowtail, cursive; color: var(--mustard); padding-right: .3em; }
.pcount { display: flex; align-items: center; gap: 10px; color: var(--mint); }
.pcount .caps { font-size: .6rem; }
.pcount .faces { display: flex; }
.pcount .faces .av { width: 28px; height: 28px; font-size: .9rem; margin-left: -8px; box-shadow: 0 0 0 2px var(--green); background-color: var(--deep); }
.pcount .faces .av:first-child { margin-left: 0; }
.pstub .seg { background: rgba(233,220,191,.12); }
.pstub .seg button { color: var(--cream); min-height: 48px; }
.pstub .seg button:hover { background: rgba(233,220,191,.12); }
.pstub .seg button[aria-pressed="true"] { background: var(--tomato); color: var(--cream-2); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.pstub .seg button[data-r="maybe"][aria-pressed="true"] { background: var(--mustard); color: var(--green); }
.pstub .seg button[data-r="out"][aria-pressed="true"] { background: var(--cream-2); color: var(--green); }
.pstub .guests { color: var(--cream); }
.pstub .stepper { border-color: var(--cream); }
.pstub .stepper button { color: var(--cream); }
.pstub .nudge { display: block; background: none; padding: 0; margin-top: -4px; color: var(--mint); font-size: .84rem; line-height: 1.4; }
.pstub .nudge .link { display: inline; padding: 0; font: inherit; color: var(--mustard); text-decoration-color: rgba(226,167,46,.5); }
.pstub .nudge .link:hover { color: var(--cream); }

.mrow { display: grid; gap: 22px; align-items: start; max-width: 980px; width: 100%; margin: 0 auto; }
.mrow .notes, .mrow .who { max-width: none; }

/* ============================ YOUR INVITE ============================ */
.inviteband { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; max-width: 980px; width: 100%; margin: 0 auto; background: var(--tomato); color: var(--cream-2);
  border-radius: 18px; padding: 26px 30px; background-image: var(--paper); background-size: 420px; background-blend-mode: multiply; box-shadow: 0 12px 24px rgba(60,30,10,.2); }
.inviteband .eyebrow { color: var(--cream); opacity: .85; }
.inviteband h2 { font: 400 clamp(2rem, 6vw, 2.6rem)/1.05 Yellowtail, cursive; color: var(--cream-2); padding-right: .3em; }
.inviteband p { margin: 6px 0 14px; max-width: 34em; }
.ishare { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 640px; }
.ilink { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.18); border-radius: 99px; padding: 5px 5px 5px 18px; min-height: 50px; }
.ilink code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; font-family: Jost, sans-serif; font-weight: 500; }
.ilink .copy { flex: none; border: 0; cursor: pointer; border-radius: 99px; background: var(--cream-2); color: var(--green); font: 600 .66rem/1 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 0 18px; height: 40px; }
.ilink .copy:hover { background: #fff; }
.ishare > .btn { background: var(--green); color: var(--cream-2); flex: none; }
.iqr { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: zoom-in; }
/* The invite sheet (header Invite) and the full-screen code for scanning. */
#invsheet { border: 0; padding: 0; background: none; max-width: none; max-height: none; width: 100%; height: 100%; display: grid; place-items: center; }
#invsheet:not([open]) { display: none; }
#invsheet::backdrop { background: rgba(11,42,31,.55); }
#invsheet .isheet { position: relative; width: min(380px, calc(100vw - 32px)); padding: 26px 22px 22px; border-radius: 16px; display: grid; gap: 12px; justify-items: center; text-align: center; box-shadow: 0 18px 44px rgba(0,0,0,.35); }
#invsheet .isheet h2 { font: 400 2rem/1.05 Yellowtail, cursive; }
#invsheet .isheet p { font-size: .92rem; margin: 0; }
#invsheet .tclose { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--green); cursor: pointer; padding: 4px 8px; }
#invsheet .iqrbig { border: 0; background: var(--cream-2); padding: 10px 10px 8px; border-radius: 12px; display: grid; gap: 6px; justify-items: center; cursor: zoom-in; color: var(--green); font: inherit; }
#invsheet .iqrbig svg { width: 190px; height: 190px; display: block; }
#invsheet .iqrbig small { font-size: .58rem; opacity: .75; }
#invsheet .ilink { width: 100%; flex: none; background: rgba(18,63,46,.08); text-align: left; }
#invsheet .ilink .copy { background: var(--green); color: var(--cream-2); }
#invsheet .btn { width: 100%; }
#invsheet .qrfull { display: none; }
#invsheet.full { background: #FBF6EA; }
#invsheet.full .isheet { display: none; }
#invsheet.full .qrfull { display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--green); padding: 24px; cursor: zoom-out; }
#invsheet.full .qrfull svg { width: min(86vw, 70vh, 520px); height: auto; display: block; }
#invsheet.full .qrfull b { font: 400 2rem/1 Yellowtail, cursive; }
#invsheet.full .qrfull small { font-size: .85rem; opacity: .7; }
.iqr svg { width: 132px; background: var(--cream-2); padding: 8px; border-radius: 10px; }
.iqr small { font-size: .54rem; opacity: .85; }

/* ============================ THE SHELVES ============================ */
.shelf .zhead { margin-bottom: 18px; }
.objects #card .thing { width: 100%; display: grid; justify-items: center; }
.objects .mcard { width: min(320px, 100%); }
.notifystrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 26px; }
.notifystrip p { flex: 1 1 280px; }
.oncallbox { margin-top: 30px; background: rgba(248,240,220,.75); border-radius: 14px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(60,30,10,.1); }
.oncallbox h3 { font: 400 1.7rem/1 Yellowtail, cursive; }
.oncallbox p { font-size: .92rem; margin: 4px 0 12px; }
/* writing to the organizers */
.writeus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(18,63,46,.3); }
.writeus span { font-size: .92rem; flex: 1 1 240px; }
.writeus .btn[aria-expanded="true"] { opacity: .6; }
.contactform { margin-top: 14px; display: grid; gap: 14px; background: var(--cream-2); border-radius: 12px; padding: 16px; border: 2px solid rgba(18,63,46,.15); animation: stepIn .3s ease-out; }
.contactform[hidden] { display: none; }
.contactform .kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contactform .kinds legend { font-size: .66rem; letter-spacing: .14em; font-weight: 600; margin-bottom: 8px; padding: 0; }
.contactform .kinds label { position: relative; cursor: pointer; }
.contactform .kinds input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.contactform .kinds span { display: inline-block; padding: 7px 14px; border: 2px solid var(--green); border-radius: 99px; font-size: .86rem; font-weight: 500; transition: background .15s, color .15s; }
.contactform .kinds input:checked + span { background: var(--green); color: var(--cream); box-shadow: 2px 2px 0 var(--tomato); }
.contactform .kinds input:focus-visible + span { outline: 2px dashed var(--tomato); outline-offset: 3px; }
.contactform .row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.contactform .row small { margin-left: auto; font-size: .78rem; opacity: .65; }
.contactform .err { margin: 0; color: var(--brick); font-size: .88rem; }
.contactform .err:empty { display: none; }
.contactform.sent b { font: 400 1.7rem/1 Yellowtail, cursive; }
.contactform.sent p { margin: 0; }
.invbtn { white-space: nowrap; }

@media (min-width: 900px) {
  .bar nav { margin: 0 auto; }
  .mrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 36px; }
  .mrow.solo { grid-template-columns: minmax(0, 1fr); }
  .objects.three { grid-template-columns: repeat(3, 1fr); }
  .objects.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
}
@media (max-width: 899px) {
  .invbtn { margin-left: auto; padding: 6px 14px; min-height: 36px; font-size: .62rem; }
  .objects #card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .objects #card .actions { justify-content: center; }
}
@media (max-width: 760px) {
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pmain { border-radius: 18px 18px 0 0; padding: 24px 22px 22px;
    -webkit-mask: radial-gradient(circle 15px at 0 100%, #0000 14.5px, #000 15px) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 100%, #0000 14.5px, #000 15px) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 15px at 0 100%, #0000 14.5px, #000 15px) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 100%, #0000 14.5px, #000 15px) right / 51% 100% no-repeat; }
  .pmain { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 22px; }
.pright { width: 184px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; padding: 0 4px; }
.pmain::before { border-radius: 12px 12px 4px 4px; }
  .pstub { border-radius: 0 0 18px 18px; border-left: 0; border-top: 3px dotted rgba(233,220,191,.45); padding: 20px 18px;
    -webkit-mask: radial-gradient(circle 15px at 0 0, #0000 14.5px, #000 15px) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 0, #0000 14.5px, #000 15px) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 15px at 0 0, #0000 14.5px, #000 15px) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 0, #0000 14.5px, #000 15px) right / 51% 100% no-repeat; }
  .pmain { grid-template-columns: minmax(0, 1fr); }
  .pright { display: contents; }
  .burst { position: absolute; width: 76px; height: 76px; right: 14px; top: 14px; }
  .stamp { justify-self: end; margin: 4px 4px 0 0; }
  .burst b { font-size: 1.6rem; } .burst b:only-child { font-size: 1.1rem; }
  .pdate { margin-right: 70px; }
  .stamp { padding: 4px 12px 4px; }
  .stamp span { font-size: 1.5rem; } .stamp small { font-size: 1rem; }
  .inviteband { grid-template-columns: 1fr; padding: 22px 20px; }
  .iqr { display: none; }
}

/* ---------- ghost portraits: members who haven't added a photo yet ---------- */
.av.ghost { background: var(--cream-2); }
.pcard a.por.ghost { position: relative; text-decoration: none; }
.pcard a.por.ghost span { position: absolute; inset: auto 0 10px; text-align: center; font: 600 .62rem/1 var(--sans, Jost, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); background: var(--tomato, #E4472B); padding: 5px 0; }
.pcard a.por.ghost:hover span { background: var(--green); }

/* ---------- a note next to your RSVP ---------- */
.pstub .rsvpadd { justify-self: start; color: var(--mint); text-decoration: none; padding: 4px 0; font-size: .9rem; }
.pstub .rsvpadd small { color: rgba(168,213,184,.6); font-size: .74rem; margin-left: 4px; }
.pstub .rsvpadd:hover { color: var(--cream); }
.pstub .rsvpnote.has { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; background: var(--cream-2); color: var(--pen); border-radius: 10px 10px 10px 2px; padding: 9px 12px; transform: rotate(-.6deg); }
.pstub .rsvpnote.has svg { width: 20px; height: 20px; fill: var(--mustard); margin-top: 2px; }
.pstub .rsvpnote.has p { font-size: 1.2rem; line-height: 1.15; overflow-wrap: anywhere; }
.pstub .rsvpnote.has .link { color: var(--green); font-size: .8rem; padding: 2px 0; }
.pstub .rsvpnote.edit { display: grid; gap: 6px; }
.pstub .rsvpnote.edit label { color: var(--mint); font-size: .62rem; }
.pstub .rsvpnote .nrow { display: flex; gap: 8px; }
.pstub .rsvpnote input { flex: 1; min-width: 0; height: 40px; border-radius: 8px; border: 0; padding: 0 12px; background: var(--cream-2); color: var(--green); font: inherit; font-size: .95rem; }
.pstub .rsvpnote input:focus { outline: 2px solid var(--mustard); outline-offset: 1px; }
.pstub .rsvpnote input::placeholder { color: rgba(18,63,46,.45); }
.pstub .rsvpnote .nrow .btn { height: 40px; background: var(--mustard); color: var(--green); }
.pstub .rsvpnote .nfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: rgba(168,213,184,.75); font-size: .58rem; }
.pstub .rsvpnote .nfoot .link { color: var(--cream); font: inherit; font-size: .7rem; letter-spacing: 0; text-transform: none; padding: 0; }

/* ---------- notes on who's coming ---------- */
.who li { position: relative; display: flex; align-items: center; gap: 4px; }
.who li a { flex: 0 1 auto; min-width: 0; }
.who li.out { opacity: .55; }
.who .rbub { flex: none; width: 26px; height: 26px; border: 0; padding: 3px; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.who .rbub svg { width: 18px; height: 18px; fill: var(--mustard); transition: transform .15s; }
.who .rbub:hover svg, .who li.open .rbub svg { transform: scale(1.15) rotate(-6deg); }
.who .rnote { display: none; position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); width: max(100%, 200px); background: var(--cream-2); color: var(--pen); font-size: 1.15rem; line-height: 1.2; padding: 9px 12px 10px; border-radius: 3px; box-shadow: 0 8px 18px rgba(0,0,0,.3); transform: rotate(-.8deg); overflow-wrap: anywhere; }
.who .rnote::before { content: ''; position: absolute; left: calc(var(--bx, 100%) - 6px); top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--cream-2); }
.who li.open .rnote { display: block; }
.who li.flip .rnote { left: auto; right: 0; transform: rotate(.8deg); }
@media (hover: hover) { .who li:has(.rbub:hover) .rnote { display: block; } }

/* the brand mark, the two toasting beers, printed faintly into the pass behind the date */
.pmain .pmark { position: absolute; z-index: 0; width: 230px; right: 214px; bottom: 14px; opacity: .1; transform: rotate(-8deg); pointer-events: none; mix-blend-mode: multiply; }
.pmain > .pleft, .pmain > .pright { position: relative; z-index: 1; }
.pass.none .pmain .pmark { opacity: .13; }
@media (max-width: 760px) { .pmain .pmark { width: 170px; right: 10px; bottom: auto; top: 38px; } }

/* members page: the way to the family tree, now that it's not in the nav */
.booknote { font-size: .84rem; opacity: .75; margin: -4px 2px 12px; }
.treelink { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: var(--green); color: var(--cream); text-decoration: none; box-shadow: 0 4px 12px rgba(60,30,10,.15); }
.treelink .caps { display: block; color: var(--mint); font-size: .6rem; }
.treelink b { font: 400 1.5rem/1.1 Yellowtail, cursive; color: var(--mustard); }
.treelink .arrow { font-size: 1.3rem; transition: transform .2s; }
.treelink:hover .arrow { transform: translateX(4px); }

/* Your card, no portrait yet: a scribbled note above the card, its arrow landing on the ghost */
.shamewrap { display: grid; gap: 14px; width: min(360px, 88vw); justify-items: start; }
.shamewrap .mcard { width: 100%; }
.shame { position: relative; z-index: 3; width: 64%; text-align: left; background: #FFFEFA; padding: 12px 14px 14px; border-radius: 2px; transform: rotate(-2deg);
  box-shadow: 0 1px 1px rgba(60,30,10,.2), 0 8px 18px rgba(60,30,10,.18); }
.shame .big { font-size: 2rem; line-height: 1; color: var(--tomato); }
.shame p:not(.big) { font-size: .86rem; line-height: 1.35; margin: 4px 0 10px; }
.shame .sharrow { position: absolute; left: calc(100% - 6px); top: calc(100% - 46px); width: 78px; height: 84px; overflow: visible; transform: rotate(2deg); }
.sharrow path { fill: none; stroke: var(--tomato); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: scrawl .7s .3s ease-out forwards; }
.sharrow path + path { animation-delay: .9s; animation-duration: .25s; }
@keyframes scrawl { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sharrow path { animation: none; stroke-dashoffset: 0; } }

/* a big night: the first dozen, then the rest folded away */
.who .whomore ul { margin-top: 8px; }
.who .whomore h4 { color: var(--mint); font-size: .6rem; margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid rgba(168,213,184,.2); }
.who .whotoggle { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 1.5px dashed rgba(168,213,184,.4); border-radius: 8px; background: none; color: var(--mustard);
  font: 600 .66rem/1 Jost, sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.who .whotoggle:hover { background: rgba(168,213,184,.08); border-style: solid; }

/* contact privacy: the switches on your card, and the message form on someone else's */
.privacy { border: 1.5px dashed rgba(18,63,46,.3); border-radius: 10px; padding: 12px 14px 14px; display: grid; gap: 10px; }
.privacy legend { padding: 0 6px; font: 600 .66rem/1 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); }
.privacy > p { font-size: .88rem; margin: 0; }
.privacy .hint { font-size: .8rem; opacity: .75; margin: 0; }
.msgform, .msgsent { width: 100%; max-width: 520px; }
.msgalt { margin: -2px 0 0; font-size: .86rem; opacity: .8; }
.msgform .hint { font-size: .82rem; opacity: .75; margin: 0; }
.msgform .row { display: flex; gap: 16px; align-items: center; }
.contactline { text-align: center; font-size: .9rem; max-width: 520px; }

/* a member's number and email, as a slip from the club's directory */
.onfile { width: 100%; max-width: 520px; background: var(--cream-2); border: 2px dashed rgba(18,63,46,.45); border-radius: 6px; padding: 14px 18px 10px;
  position: relative; transform: rotate(-.5deg); box-shadow: 0 1px 0 rgba(18,63,46,.06), 0 10px 22px -14px rgba(18,63,46,.45); }
.onfile::before { content: ''; position: absolute; top: -11px; left: 50%; width: 88px; height: 20px; margin-left: -44px; transform: rotate(2deg);
  background: rgba(226,167,46,.55); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.onfile .fh { margin: 0 0 6px; text-align: center; font-size: .68rem; letter-spacing: .24em; color: var(--tomato); }
.onfile .fh span { color: var(--mustard); }
.dl { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.dl + .dl { border-top: 1px solid rgba(18,63,46,.12); }
.dl .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--mustard); }
.dl .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.dl .k { flex: none; font-size: .68rem; letter-spacing: .2em; color: var(--quiet, #556B5F); }
.dl .lead { flex: 1 1 12px; min-width: 12px; align-self: flex-end; margin-bottom: .55em; border-bottom: 2px dotted rgba(18,63,46,.3); }
.dl .v { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 1.3rem/1.1 Anton, sans-serif; letter-spacing: .04em;
  color: var(--green); text-decoration: none; font-variant-numeric: tabular-nums; }
.dl a.v:hover { color: var(--tomato); }
.dl .cp { flex: none; border: 1.5px solid var(--green); background: none; color: var(--green); border-radius: 2px; padding: 4px 8px; font-size: .62rem; letter-spacing: .16em; cursor: pointer; }
.dl .cp:hover { background: var(--green); color: var(--cream); }
.dl.off .ic { background: rgba(18,63,46,.25); }
.dl.off .v { font: italic 400 .95rem/1.2 Jost, sans-serif; letter-spacing: 0; opacity: .7; }
.onfile .ff { margin: 4px 0 4px; text-align: center; font-size: .84rem; opacity: .8; }
@media (max-width: 460px) {
  .dl { flex-wrap: wrap; row-gap: 2px; }
  .dl .lead { display: none; }
  .dl .k { flex: 1 1 auto; }
  .dl .v { order: 5; flex-basis: 100%; padding-left: 44px; font-size: 1.15rem; }
  .dl .cp { order: 4; }
}

/* the way to the tree, with a little chart of where they sit */
.treelink { width: 100%; max-width: 520px; display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border: 2px solid var(--green); border-radius: 10px;
  background-color: var(--cream-2); color: var(--green); text-decoration: none; box-shadow: 4px 4px 0 var(--tomato); transition: transform .15s, box-shadow .15s; }
.treelink:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tomato); }
.treelink:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--tomato); }
.mtree { flex: none; width: 132px; height: auto; }
.mtree .lines path { fill: none; stroke: var(--pen); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.mtree circle { fill: var(--cream); stroke: var(--green); stroke-width: 1.6; }
.mtree text { font-family: Jost, sans-serif; font-weight: 600; fill: var(--green); }
.mtree .sib { opacity: .45; }
.mtree .me circle { fill: var(--green); stroke: var(--tomato); stroke-width: 3; }
.mtree .me text { fill: var(--mustard); font-family: Yellowtail, cursive; font-weight: 400; font-size: 24px; }
.mtree .empty circle { stroke-dasharray: 3 3; fill: none; opacity: .6; }
.mtree .empty text { opacity: .5; }
.mtree use { fill: var(--pen); }
.mtree .spark { fill: var(--mustard); }
.mtree .more { font-size: 10px; fill: var(--quiet, #556B5F); }
.treelink .tl { flex: 1; display: grid; gap: 1px; min-width: 0; }
.treelink .tl .caps { font-size: .66rem; letter-spacing: .22em; color: var(--tomato); }
.treelink .tl b { font: 400 1.7rem/1.05 Yellowtail, cursive; color: var(--pen); }
.treelink .tl small { font-size: .84rem; opacity: .75; }
.treelink .arr { flex: none; font-size: 1.5rem; color: var(--tomato); transition: transform .15s; }
.treelink:hover .arr { transform: translateX(3px); }
.treelink:hover .spark { animation: twinkle .9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { to { transform: rotate(45deg) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .treelink:hover .spark { animation: none; } }

/* the stamp sits centred in the room between the countdown burst and the foot of the pass */
@media (min-width: 761px) { .pass .pright { justify-content: flex-start; gap: 0; margin-bottom: -32px; } .pass .pright > .stamp { margin-block: auto; } }

/* a two-tap confirm, armed: the button asks before it acts */
.armed { color: var(--tomato) !important; font-weight: 600; }
.btn.armed { background: var(--tomato) !important; color: var(--cream-2) !important; }

/* Between a phone and a laptop (an unfolded iPhone Duo held upright, a small tablet): still one column, but the club
   sits in a centred column with room either side instead of running edge to edge. */
@media (min-width: 600px) and (max-width: 899px) {
  .club { max-width: 620px; padding-left: 24px; padding-right: 24px; }
  /* The header lines up with that column, so the logo and the tabs sit over the cards rather than out at the edges. */
  .bar { padding-left: calc(max(18px, (100% - 572px) / 2) + var(--safe-l)); padding-right: calc(max(18px, (100% - 572px) / 2) + var(--safe-r)); }
}

/* Where the club is, tucked under the swash like a sign painter's line, so nobody forgets it's Austin. */
/* In the logo's own flow (not floated over the header), so the header makes room for it at every size. */
.bar .home { flex-direction: column; align-items: flex-end; gap: 0; }
.bar .home .place { display: block; margin: -2px 4px 0 0; font: 600 .5rem/1 Jost, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--tomato); white-space: nowrap; transform: rotate(-4deg); }
.bar .home .place i { font-style: normal; letter-spacing: 0; font-size: .9em; margin: 0 .35em 0 .05em; }
@media (max-width: 899px) { .bar .home { margin-bottom: 7px; } } /* a breath between the tagline and the tabs on phones */

/* ---------- /agents: bring your agent ---------- */
/* One column that can't be pushed wider than the screen: long commands scroll inside their own block. */
.agents .formcard, .agents .tabpanel, .agents .manual, .agents details form { grid-template-columns: minmax(0, 1fr); }
.agents .formcard > *, .agents .tabpanel > * { min-width: 0; }
.agents .ahero { background: var(--green); color: var(--cream); }
.agents .ahero h2 { font: 400 clamp(1.9rem, 6vw, 2.6rem)/1.05 Yellowtail, cursive; color: var(--cream-2); }
.agents .ahero .eyebrow { color: var(--mustard); }
.agents .cando { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.agents .cando li { background: rgba(243,233,210,.08); border: 1px solid rgba(243,233,210,.18); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.agents .cando b { font: 400 1.25rem/1.1 Yellowtail, cursive; color: var(--mustard); }
.agents .cando span { font-size: .88rem; opacity: .9; }
.agents code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .86em; background: rgba(18,63,46,.08); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.agents .ilink.dark { background: var(--green); color: var(--cream); flex: none; }
.agents .ilink.dark code { background: none; color: inherit; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .9rem; padding: 0; }
.agents .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.agents .tabs button { border: 0; border-radius: 99px; padding: 8px 14px; font: 600 .66rem/1 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; background: rgba(18,63,46,.1); color: var(--green); cursor: pointer; min-height: 36px; }
.agents .tabs button[aria-selected="true"] { background: var(--green); color: var(--cream); }
.agents .tabpanel { display: grid; gap: 10px; }
.agents .tabpanel .steps li { background: rgba(18,63,46,.06); }
.agents .hint { font-size: .86rem; opacity: .8; }
.agents .codeblock { position: relative; background: var(--deep); color: var(--cream); border-radius: 10px; }
.agents .codeblock pre { margin: 0; padding: 14px 14px; overflow-x: auto; font: .8rem/1.5 ui-monospace, 'SF Mono', Menlo, monospace; }
.agents .codeblock code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.agents .codeblock .copy { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 99px; background: var(--cream-2); color: var(--green); font: 600 .6rem/1 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; cursor: pointer; opacity: .85; }
.agents .codeblock .copy:hover { opacity: 1; }
.agents details > summary { cursor: pointer; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; padding: 6px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.agents details[open] > summary { margin-bottom: 8px; }
.agents details > form, .agents details > .codeblock + .codeblock { margin-top: 10px; }
.agents details form { display: grid; gap: 10px; }
.agents .chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.agents .chips i, .agents .tools i { font-style: normal; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(18,63,46,.1); border-radius: 99px; padding: 3px 8px; font-weight: 600; }
.agents .agentlist { list-style: none; padding: 0; display: grid; gap: 10px; }
.agents .agent { border: 2px solid rgba(18,63,46,.18); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.agents .agent .ahead { display: grid; gap: 2px; }
.agents .agent .nm { font-weight: 600; font-size: 1.05rem; }
.agents .agent .sub { font-size: .82rem; opacity: .75; }
.agents .agent .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.agents .agent .revoke { justify-self: start; color: var(--brick); }
.agents .scope span { font-size: .88rem; }
.agents .tools, .agents .houserules ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.agents .tools li { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(18,63,46,.1); }
.agents .tools li span { grid-column: 1 / -1; font-size: .88rem; }
.agents .tools i { justify-self: start; }
.agents .houserules li { padding-left: 18px; position: relative; font-size: .92rem; }
.agents .houserules li::before { content: "★"; position: absolute; left: 0; color: var(--tomato); font-size: .8rem; top: 2px; }

.agents .newtoken { background: var(--mustard); color: var(--green); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.agents .handoff { background: var(--cream-2); color: var(--green); border-radius: 12px; padding: 14px; display: grid; gap: 8px; box-shadow: 3px 3px 0 var(--tomato); }
.agents .handoff .caps { color: var(--tomato); }
.agents .handoff .say { display: flex; gap: 10px; align-items: center; background: rgba(18,63,46,.08); border-radius: 10px; padding: 10px 10px 10px 14px; }
.agents .handoff .say p { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; }
.agents .handoff .copy, .agents .ilink .copy { flex: none; border: 0; cursor: pointer; border-radius: 99px; background: var(--green); color: var(--cream-2); font: 600 .66rem/1 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 0 16px; height: 38px; }
.agents .ilink.dark .copy { background: var(--cream-2); color: var(--green); }
.agents .manual { display: grid; gap: 12px; }
.agents #newkey { border-top: 1px solid rgba(18,63,46,.15); padding-top: 12px; }
.agents #newkey h4 { font: 400 1.4rem/1 Yellowtail, cursive; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The OAuth consent page (served by the Worker on its own). */
body.oauth { min-height: 100vh; }
.oauthbox { max-width: 520px; padding-top: calc(24px + var(--safe-t, 0px)); }
.oauthbox .wm { width: 170px; margin: 0 auto 10px; display: block; }
.oauthbox h2 { font: 400 2rem/1.05 Yellowtail, cursive; }
.oauthbox .fine { font-size: .82rem; opacity: .75; }

/* ------------------------------------------------ meetup pages ------------------------------------------------ */

/* Past nights: coasters left on a walnut bar top. */
.bartop { position: relative; display: grid; grid-template-columns: minmax(170px, 230px) 1fr; align-items: center; gap: 18px 28px; max-width: 980px; width: 100%; margin: 22px auto 0; padding: 22px 26px 24px; box-sizing: border-box;
  border-radius: 18px; color: var(--cream);
  background:
    linear-gradient(180deg, rgba(255,220,170,.16), transparent 14px),
    repeating-linear-gradient(178deg, rgba(0,0,0,.0) 0 7px, rgba(0,0,0,.07) 7px 9px, rgba(255,210,150,.04) 9px 15px),
    repeating-linear-gradient(181deg, transparent 0 23px, rgba(40,18,6,.18) 23px 25px),
    linear-gradient(160deg, #6B4329, #4E2E1B 60%, #5C3821);
  box-shadow: inset 0 -6px 0 rgba(30,12,4,.35), inset 0 2px 0 rgba(255,220,170,.18), 0 8px 18px rgba(60,30,10,.22); }
.bthead { display: grid; gap: 6px; justify-items: start; }
.bthead h3 { font: 400 2rem/1 Yellowtail, cursive; color: var(--mustard); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.bthead p { font-size: .9rem; line-height: 1.35; color: rgba(243,233,210,.9); }
.bthead .run { display: inline-block; margin-top: 4px; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: var(--mustard); color: var(--deep); padding: 3px 8px 2px; border-radius: 99px; }
.bthead a.all { color: var(--cream); font-weight: 600; font-size: .85rem; text-underline-offset: 4px; }
.bthead a.all:hover { color: var(--mustard); }
.bthead a.claimsdue { text-decoration: none; background: var(--tomato); color: var(--cream-2); font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.coasters { display: flex; justify-content: center; align-items: center; gap: 0; padding: 4px 6px; }
.pcoaster { --ink: var(--green); --cp: var(--cream-2); --tilt: 0deg; position: relative; flex: none; width: 168px; height: 168px; border-radius: 50%; margin-right: -10px;
  display: grid; justify-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--ink); text-align: center;
  background: radial-gradient(circle, var(--cp) 0 62%, transparent 62.5%), radial-gradient(circle, transparent 0 66%, var(--cp) 66.5%);
  background-color: var(--cp);
  box-shadow: inset 0 0 0 5px var(--cp), inset 0 0 0 6.5px color-mix(in srgb, var(--ink) 55%, transparent), inset 0 0 0 10px var(--cp), inset 0 0 0 11px color-mix(in srgb, var(--ink) 30%, transparent),
    0 3px 0 rgba(0,0,0,.18), 0 10px 16px rgba(20,8,2,.35);
  transform: rotate(var(--tilt)); transition: transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .25s; }
.pcoaster:nth-child(even) { transform: rotate(var(--tilt)) translateY(8px); }
.pcoaster:hover, .pcoaster:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.04); z-index: 3;
  box-shadow: inset 0 0 0 5px var(--cp), inset 0 0 0 6.5px color-mix(in srgb, var(--ink) 55%, transparent), inset 0 0 0 10px var(--cp), inset 0 0 0 11px color-mix(in srgb, var(--ink) 30%, transparent),
    0 5px 0 rgba(0,0,0,.14), 0 18px 24px rgba(20,8,2,.4); }
.pcoaster.c1 { --cp: var(--green); --ink: var(--cream); }
.pcoaster.c2 { --cp: var(--mustard); --ink: var(--deep); }
.pcoaster .cno { font-size: .56rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.pcoaster .cdate { display: flex; align-items: baseline; gap: 5px; font: 400 2.3rem/1 Anton, Impact, sans-serif; letter-spacing: .01em; }
.pcoaster .cdate b { font-weight: 400; font-size: .55em; letter-spacing: .12em; color: var(--tomato); }
.pcoaster.c2 .cdate b { color: var(--brick); }
.pcoaster .cvenue { font: 400 1.05rem/1.05 Yellowtail, cursive; max-width: 120px; padding: 0 2px .1em; overflow: visible; white-space: nowrap; text-overflow: ellipsis; overflow-x: clip; }
.pcoaster .cfaces { display: flex; margin-top: 4px; }
.pcoaster .cfaces .av { width: 22px; height: 22px; margin-left: -6px; box-shadow: 0 0 0 1.5px var(--cp); background-color: var(--deep); }
.pcoaster .cfaces .av:first-child { margin-left: 0; }
.pcoaster .cfaces i { font-style: normal; font-size: .62rem; font-weight: 600; margin-left: 4px; align-self: center; }
.pcoaster .ccame { font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.pcoaster .cnote { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; font: 400 .95rem/1 Yellowtail, cursive; color: var(--pen);
  background: var(--cream); padding: 4px 10px 5px; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
/* The rubber stamp on nights you were at. */
.pcoaster .cstamp { position: absolute; top: 14%; right: -14px; transform: rotate(16deg); padding: 5px 9px 4px; border: 2.5px solid var(--tomato); border-radius: 6px;
  font: 400 .78rem/1 Anton, Impact, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); background: rgba(248,240,220,.82);
  box-shadow: inset 0 0 0 1.5px rgba(248,240,220,.9), inset 0 0 0 3px var(--tomato), 0 2px 4px rgba(0,0,0,.2); }
/* Two wet rings where a glass was set down, part of the bar itself so they stay put when a coaster moves. */
.bartop::after { content: ""; position: absolute; z-index: 0; left: 190px; bottom: 12px; width: 52px; height: 52px; border-radius: 50%; pointer-events: none;
  border: 2.5px solid rgba(25,10,3,.3); box-shadow: 9px -5px 0 -2px rgba(0,0,0,0), 9px -5px 0 0 rgba(25,10,3,.16), inset 0 0 0 1px rgba(255,214,150,.08); }
.bthead, .coasters { position: relative; z-index: 1; }
/* Older nights, piled up: two coasters peeking out from under the top one, fanning out on hover. */
.pcoaster.stack { --cp: var(--cream-2); --ink: var(--green); width: 128px; height: 128px; margin-left: 22px; margin-right: 30px;
  box-shadow: inset 0 0 0 5px var(--cp), inset 0 0 0 6.5px rgba(18,63,46,.4), 0 3px 0 rgba(0,0,0,.18),
    9px 7px 0 0 var(--mustard), 9px 10px 0 0 rgba(0,0,0,.18), 18px 14px 0 0 var(--green), 18px 18px 10px 0 rgba(20,8,2,.4); }
.pcoaster.stack:hover, .pcoaster.stack:focus-visible { transform: rotate(0deg) translateY(-4px);
  box-shadow: inset 0 0 0 5px var(--cp), inset 0 0 0 6.5px rgba(18,63,46,.4), 0 3px 0 rgba(0,0,0,.18),
    22px 3px 0 0 var(--mustard), 22px 6px 0 0 rgba(0,0,0,.18), 42px 8px 0 0 var(--green), 42px 14px 12px 0 rgba(20,8,2,.4); }
.pcoaster.stack .cdate { font-size: 2rem; }
.pcoaster.stack .cvenue { font-size: .95rem; }
.pcoaster.stack .ccame { margin-top: 4px; color: var(--tomato); }
@media (prefers-reduced-motion: reduce) { .pcoaster { transition: none; } }
@media (max-width: 720px) {
  .bartop { grid-template-columns: 1fr; padding: 18px 0 22px; }
  .bthead { padding: 0 20px; }
  .bartop::after { display: none; }
  .bthead h3 { font-size: 1.7rem; }
  .coasters { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 18px; scrollbar-width: none; }
  .coasters::-webkit-scrollbar { display: none; }
  .pcoaster { width: 148px; height: 148px; margin-right: 6px; scroll-snap-align: start; }
  .pcoaster .cdate { font-size: 2rem; }
}
.pstub .q .changed { display: block; font-size: .78rem; font-weight: 400; color: var(--brick); margin-top: 3px; }
.checkin small { display: block; font-size: .76rem; opacity: .85; margin-top: 2px; }

/* every meetup */
.page.nightspage .lede, .page.nightpage .lede { font-size: 1.02rem; }
.nightlist { list-style: none; padding: 0; display: grid; gap: 10px; }
.nightrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--cream-2) var(--paper); background-size: 420px; background-blend-mode: multiply;
  text-decoration: none; box-shadow: 0 3px 10px rgba(60,30,10,.1); transition: transform .15s, box-shadow .15s; }
.nightrow:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--tomato); }
.nightrow.next { background-color: var(--green); color: var(--cream-2); margin-bottom: 4px; }
.nightrow.next .caps { color: var(--mustard); font-size: .6rem; }
.nightrow.next .dtile { background: var(--mustard); color: var(--deep); }
.nightrow.off { opacity: .6; }
.dtile { display: grid; place-items: center; width: 62px; padding: 6px 0 5px; border-radius: 10px; background: var(--green); color: var(--cream-2); line-height: 1; }
.dtile b { font: 400 1.9rem/1 Anton, Jost, sans-serif; margin: 2px 0 1px; }
.dtile small { font-size: .56rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nr { display: grid; gap: 3px; min-width: 0; }
.nr b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr small { font-size: .82rem; opacity: .8; }
.nr .faces { display: flex; align-items: center; margin-top: 3px; }
.nr .faces .av { width: 28px; height: 28px; margin-left: -7px; box-shadow: 0 0 0 2px var(--cream-2); }
.nr .faces .av:first-child { margin-left: 0; }
.nr .faces i { font-style: normal; font-size: .72rem; font-weight: 600; margin-left: 6px; opacity: .75; }
.was { font-size: .55rem; color: var(--cream-2); background: var(--green); padding: 6px 9px 5px; border-radius: 4px; transform: rotate(-4deg); white-space: nowrap; }
.was.miss { background: none; color: var(--green); box-shadow: inset 0 0 0 1.5px rgba(18,63,46,.4); opacity: .7; }
.nightrow .arr { font-size: 1.3rem; }

/* one meetup */
.nticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(60,30,10,.16); background-color: var(--cream-2); }
.tk-main { padding: 16px 18px; display: grid; gap: 4px; }
.tk-eyebrow { color: var(--tomato); font-size: .62rem; }
.tk-date { font: 400 2.6rem/1 Anton, Jost, sans-serif; color: var(--green); letter-spacing: .01em; }
.tk-date .ord { font-size: .45em; vertical-align: super; margin-left: 1px; }
.tk-date small { font: 600 .9rem/1 Jost, sans-serif; letter-spacing: .14em; opacity: .55; }
.tk-where b { font-size: 1.1rem; }
.tk-when { font-size: .9rem; opacity: .85; }
.tk-count { display: grid; place-content: center; text-align: center; padding: 0 22px; background: var(--green); color: var(--cream-2); border-left: 3px dashed var(--cream-2); min-width: 112px; }
.tk-count b { font: 400 3rem/1 Anton, Jost, sans-serif; color: var(--mustard); }
.tk-count small { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.nticket.off .tk-count { background: #8A8270; }
.yours { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: rgba(248,240,220,.92); box-shadow: 0 2px 8px rgba(60,30,10,.08); }
.yours p { flex: 1 1 240px; font-size: .95rem; }
.yours.here { background: var(--mint); }
.yours.live { background: var(--mustard); }
.yours.wait { background: #F6E2A8; }
.ystamp { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--tomato); color: var(--tomato); transform: rotate(-12deg); text-align: center; flex: none; box-shadow: inset 0 0 0 3px var(--mint), inset 0 0 0 5px var(--tomato); }
.ystamp span { font: 400 1.25rem/1 Yellowtail, cursive; margin-top: 18px; }
.ystamp small { font-size: .56rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.claimform { display: flex; gap: 8px; flex: 1 1 100%; }
.claimform input { flex: 1; min-width: 0; min-height: 40px; border: 2px solid rgba(18,63,46,.5); border-radius: 8px; padding: 6px 10px; background: var(--cream-2); font-size: .95rem; }
.cibtns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cibtns .hint { margin: 0; font-size: .82rem; }
.nsec h3 { display: flex; align-items: center; gap: 10px; font: 400 1.9rem/1.1 Yellowtail, cursive; color: var(--green); margin: 6px 2px 10px; padding-right: .2em; }
.nsec h3 em { font: 600 .66rem/1 Jost, sans-serif; letter-spacing: .1em; font-style: normal; background: var(--green); color: var(--cream-2); padding: 4px 9px 3px; border-radius: 99px; }
.camegrid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 10px; }
.camegrid a { position: relative; display: grid; justify-items: center; text-align: center; text-decoration: none; gap: 2px; }
.cface { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 3px solid var(--green); background: var(--cream); box-shadow: 4px 4px 0 var(--mustard); transition: transform .2s; }
.cface img { width: 100%; height: 100%; object-fit: cover; display: block; }
.camegrid li:nth-child(3n+2) .cface { box-shadow: 4px 4px 0 var(--coral); }
.camegrid li:nth-child(3n) .cface { box-shadow: 4px 4px 0 var(--mint); }
.camegrid li.me .cface { border-color: var(--tomato); }
.camegrid a:hover .cface { transform: rotate(-5deg) scale(1.05); }
.cname { font: 400 1.45rem/1.2 Yellowtail, cursive; color: var(--green); padding: 0 .25em; margin-top: 4px; }
.ctitle { font-size: .48rem; letter-spacing: .14em; color: var(--tomato); }
.first { position: absolute; top: 64px; left: 50%; transform: translateX(-50%) rotate(-6deg); background: var(--tomato); color: var(--cream-2); font-size: .48rem; letter-spacing: .14em; padding: 4px 7px 3px; border-radius: 3px; white-space: nowrap; box-shadow: 0 0 0 2px var(--cream-2); }
.goinglist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.goinglist a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; }
.goinglist .av { width: 38px; height: 38px; }
.goinglist small { font-size: .72rem; opacity: .7; }
.goinglist .maybe { opacity: .7; }
.nupdate { background: var(--cream-2); border-radius: 10px; padding: 10px 14px; box-shadow: 0 2px 6px rgba(60,30,10,.08); }
.nupdate + .nupdate { margin-top: 8px; }
.nupdate .pen { font-size: 1.35rem; line-height: 1.25; }
.nupdate .caps { font-size: .55rem; opacity: .7; margin-top: 4px; }
.nfoot { font-size: .9rem; }

/* the organizer panel */
.orgpanel { margin-top: 26px; border-top: 4px solid var(--green); padding-top: 14px; display: grid; gap: 22px; }
.ophead .caps { color: var(--tomato); font-size: .6rem; }
.ophead h3 { font: 400 2.1rem/1.1 Yellowtail, cursive; color: var(--green); padding-right: .2em; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ptile { background: var(--cream-2); border-radius: 10px; padding: 10px 12px 9px; display: grid; gap: 2px; box-shadow: 0 2px 6px rgba(60,30,10,.08); }
.ptile b { font: 400 1.7rem/1 Anton, Jost, sans-serif; color: var(--green); }
.ptile small { font-size: .7rem; opacity: .75; line-height: 1.2; }
.ptile.hi { background: var(--green); } .ptile.hi b { color: var(--mustard); } .ptile.hi small { color: var(--cream-2); opacity: .85; }
.ptile.warn { background: var(--tomato); } .ptile.warn b, .ptile.warn small { color: var(--cream-2); }
.opsec { scroll-margin-top: calc(var(--barh, 64px) + 12px); }
.opsec h4 { font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; color: var(--tomato); margin: 0 2px 10px; display: flex; align-items: center; gap: 10px; }
.opsec h4::after { content: ''; flex: 1; border-top: 2px dotted rgba(18,63,46,.3); }
.opwarn { font-size: .84rem; background: #F6E2A8; border-left: 4px solid var(--mustard); border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.opbar { display: grid; gap: 8px; margin-bottom: 10px; }
.opbar input { min-height: 40px; border: 2px solid var(--green); border-radius: 99px; padding: 6px 14px; background: var(--cream-2); font-size: .95rem; max-width: 360px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1.5px solid rgba(18,63,46,.35); background: var(--cream-2); color: var(--green); border-radius: 99px; padding: 5px 11px; font-size: .76rem; font-weight: 600; cursor: pointer; min-height: 32px; }
.chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream-2); }
.ptable { background: var(--cream-2); border-radius: 12px; box-shadow: 0 2px 8px rgba(60,30,10,.08); overflow: hidden; }
.pthead, .prow { display: grid; grid-template-columns: minmax(0, 1fr) 92px 62px 104px; gap: 10px; align-items: center; padding: 8px 12px; }
.pthead { font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: rgba(18,63,46,.07); }
.prow + .prow { border-top: 1px solid rgba(18,63,46,.1); }
.prow.came { background: rgba(168,213,184,.22); }
.pwho { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pwho > span { display: grid; min-width: 0; }
.pwho a { text-decoration: none; font-weight: 600; }
.pwho .av { width: 34px; height: 34px; }
.pwho small { font-size: .72rem; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow select, .prow input[type="number"] { width: 100%; min-height: 34px; border: 1.5px solid rgba(18,63,46,.45); border-radius: 6px; background: var(--cream); padding: 2px 6px; font: inherit; font-size: .88rem; color: var(--green); }
.prow input[disabled] { opacity: .4; }
.pcame label { display: flex; align-items: center; gap: 7px; font-size: .78rem; cursor: pointer; }
.pcame input { width: 20px; height: 20px; accent-color: var(--green); }
@media (max-width: 600px) {
  .pthead { display: none; }
  .prow { grid-template-columns: 1fr 1fr; }
  .pwho { grid-column: 1 / -1; }
  .prow > span:nth-child(3) { display: none; }
}
.claims { list-style: none; padding: 0; display: grid; gap: 8px; }
.claims li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--cream-2); border-radius: 10px; padding: 8px 12px; box-shadow: 0 2px 6px rgba(60,30,10,.08); }
.claims li > span:not(.av) { flex: 1 1 200px; display: grid; min-width: 0; }
.claims small { font-size: .78rem; opacity: .8; }
.opcheck { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: var(--cream-2); border-radius: 12px; padding: 14px; box-shadow: 0 2px 8px rgba(60,30,10,.08); }
.opcheck .qr { width: 150px; flex: none; }
.opcheck > div:last-child { flex: 1 1 240px; display: grid; gap: 8px; font-size: .9rem; }
.opcheck .row, .formcard .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
table.sends, table.hist { width: 100%; border-collapse: collapse; font-size: .84rem; background: var(--cream-2); border-radius: 12px; overflow: hidden; }
.sends th, .sends td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(18,63,46,.12); vertical-align: top; }
.sends th { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; background: rgba(18,63,46,.07); }
.sends small { opacity: .7; }
.sends .sum { display: block; font-style: italic; margin-top: 2px; }
.feed { list-style: none; padding: 0; margin-top: 10px; border-left: 2px solid rgba(18,63,46,.25); display: grid; gap: 2px; max-height: 460px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 5px 10px; font-size: .86rem; position: relative; }
.feed li::before { content: ''; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--cream); }
.feed .f-checkin::before { background: var(--mint); } .feed .f-send::before { background: var(--tomato); } .feed .f-claim::before { background: var(--mustard); }
.feed time { font-size: .72rem; opacity: .65; white-space: nowrap; padding-top: 2px; }
.feed small { opacity: .7; }
.feed em { font-style: normal; font-weight: 600; }

/* the desk, with its subnav */
.subnav { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--green); width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 4px; position: sticky; top: calc(var(--barh, 64px) + 6px); z-index: 4; box-shadow: 3px 3px 0 var(--tomato); }
.subnav a { text-decoration: none; color: var(--cream-2); padding: 8px 15px 7px; border-radius: 99px; font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.subnav a small { opacity: .6; letter-spacing: .04em; }
.subnav a[aria-current="page"] { background: var(--cream-2); color: var(--green); }
.subnav a:not([aria-current]):hover { background: rgba(248,240,220,.14); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--tomato); color: var(--cream-2); font: 600 .62rem/1 Jost, sans-serif; letter-spacing: 0; font-style: normal; }
.fchead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fchead .link { font-size: .84rem; }
.fchead input[type="search"] { flex: 1 1 260px; max-width: 380px; min-height: 40px; border: 2px solid var(--green); border-radius: 99px; padding: 6px 14px; background: var(--cream); font-size: .95rem; }
.toggle.send { background: rgba(228,71,43,.08); border: 1.5px dashed rgba(228,71,43,.5); border-radius: 10px; padding: 10px 12px; }
.checkcard { grid-template-columns: 140px minmax(0, 1fr); align-items: start; }
.checkcard .qr { width: 140px; }
.checkcard > div:last-child { display: grid; gap: 10px; justify-items: start; font-size: .9rem; }
@media (max-width: 520px) { .checkcard { grid-template-columns: 1fr; } }
.hist td small { opacity: .65; }
.mtable { display: grid; border-radius: 10px; overflow: hidden; border: 1px solid rgba(18,63,46,.12); }
.mrow2 { display: grid; grid-template-columns: minmax(0, 1fr) 62px 96px auto; gap: 10px; align-items: center; padding: 6px 10px; }
.mrow2 + .mrow2 { border-top: 1px solid rgba(18,63,46,.1); }
.mrow2:hover { background: rgba(226,167,46,.1); }
.mwho { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mwho .av { width: 32px; height: 32px; }
.mwho > span { display: grid; min-width: 0; }
.mwho b { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mwho small, .mstat small { font-size: .7rem; opacity: .7; }
.mstat { display: grid; line-height: 1.1; }
.mstat b { font-size: .95rem; }
.mact { display: flex; gap: 12px; justify-content: flex-end; }
.mact .link { font-size: .8rem; padding: 4px 0; }
.link.danger { color: var(--brick); }
@media (max-width: 560px) { .mrow2 { grid-template-columns: minmax(0, 1fr) auto; } .mrow2 .mstat { display: none; } }

/* organizer tools on a member's card */
.orgtools { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; padding: 8px 12px; border: 1.5px dashed rgba(18,63,46,.4); border-radius: 10px; }
.orgtools .caps { color: var(--tomato); font-size: .58rem; }
#orgEditSlot { width: 100%; max-width: 520px; }
#orgEditSlot:empty { display: none; }
.orgedit { scroll-margin-top: calc(var(--barh, 64px) + 12px); border: 2px solid var(--tomato); }
.oponly { color: var(--tomato); font-size: .56rem; }

/* clout on a member's card */
.clout { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.clout .rank { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: var(--mustard); padding: 5px 11px 4px 8px; border-radius: 99px; font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.clout .rank svg { width: 14px; height: 14px; color: var(--mustard); }
.clout .streak { background: var(--tomato); color: var(--cream-2); padding: 5px 10px 4px; border-radius: 99px; font-weight: 600; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.clout small { font-size: .76rem; opacity: .7; }

/* ------------------------------------------------ check-in on the night ------------------------------------------------ */

.ci { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 34px; max-width: 980px; width: 100%; box-sizing: border-box;
  margin: 0 auto 22px; padding: 26px 34px; border-radius: 18px; color: var(--cream); overflow: hidden;
  background: radial-gradient(120% 140% at 85% 50%, #1E5A43 0, var(--green) 45%, var(--deep) 100%);
  box-shadow: 0 10px 24px rgba(60,30,10,.25), inset 0 0 0 1.5px rgba(226,167,46,.35); }
.ci::before { content: ""; position: absolute; inset: 8px; border-radius: 12px; border: 1px dashed rgba(243,233,210,.22); pointer-events: none; }
.ci-copy { position: relative; display: grid; gap: 8px; min-width: 0; }
.ci-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--mustard); }
.ci-eyebrow .live { width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 0 rgba(228,71,43,.7); animation: livepulse 1.6s ease-out infinite; }
@keyframes livepulse { to { box-shadow: 0 0 0 10px rgba(228,71,43,0); } }
.ci h3 { font: 400 clamp(2.2rem, 5vw, 3.1rem)/1 Yellowtail, cursive; color: var(--cream); padding-bottom: .08em; }
.ci h3 em { font-style: normal; color: var(--mustard); }
.ci-copy > p { font-size: 1rem; line-height: 1.45; max-width: 46ch; color: rgba(243,233,210,.9); }
.ci-copy .or { color: var(--mint); white-space: nowrap; }
.ci-org { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .82rem; margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(243,233,210,.15); color: rgba(243,233,210,.8); }
.ci-org .caps { color: var(--mustard); font-size: .6rem; }
.ci-org a { color: var(--cream); font-weight: 600; }

/* The stamp: tomato, chunky, with the club's name running round its rim. */
.ci-stamp { position: relative; width: 196px; height: 196px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: var(--cream-2);
  background: radial-gradient(circle at 38% 32%, #F0613F, var(--tomato) 55%, #C8371E);
  box-shadow: 0 8px 0 var(--brick), 0 16px 26px rgba(0,0,0,.4), inset 0 0 0 7px rgba(255,240,220,.12);
  transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
.ci-stamp::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(228,71,43,.55); animation: halo 2.2s ease-out infinite; pointer-events: none; }
@keyframes halo { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.ci-stamp:hover { transform: translateY(-2px) rotate(-3deg); }
.ci-stamp:active { transform: translateY(7px) scale(.97); box-shadow: 0 1px 0 var(--brick), 0 4px 10px rgba(0,0,0,.35), inset 0 0 0 7px rgba(255,240,220,.12); }
.ci-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.ci-stamp svg text { font: 600 13.5px Jost, sans-serif; letter-spacing: 2.6px; fill: var(--cream-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.ci-face { position: absolute; inset: 34px; border-radius: 50%; display: grid; place-content: center; border: 2.5px dashed rgba(248,240,220,.6); line-height: .92; }
.ci-face b { display: block; font: 400 2.7rem/.95 Anton, Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(120,20,10,.45); }
.ci-face small { font: 400 1.3rem/1 Yellowtail, cursive; }
.ci-stamp.busy { cursor: progress; }
.ci-stamp.busy svg { animation-duration: 2.4s; }
.ci-stamp.busy::after { animation: none; opacity: 0; }

/* It didn't work: say why, and the two ways on. */
.ci-fail { display: grid; gap: 10px; background: rgba(248,240,220,.96); color: var(--green); border-left: 5px solid var(--tomato); border-radius: 10px; padding: 12px 14px; max-width: 52ch; }
.ci-fail p { font-weight: 500; line-height: 1.4; }
.ci-fail .row { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ci-fail small { font-size: .78rem; opacity: .8; }

/* Checked in (or waiting on a yes): the stamp has landed. */
.ci.done, .ci.wait { grid-template-columns: auto 1fr; background: radial-gradient(120% 140% at 15% 50%, #FFF8E6 0, var(--cream-2) 45%, #EADBB8 100%); color: var(--green);
  box-shadow: 0 8px 18px rgba(60,30,10,.16), inset 0 0 0 1.5px rgba(18,63,46,.18); }
.ci.done::before, .ci.wait::before { border-color: rgba(18,63,46,.2); }
.ci.done h3, .ci.wait h3 { color: var(--green); }
.ci.done .ci-copy > p, .ci.wait .ci-copy > p { color: rgba(18,63,46,.85); }
.ci.done .ci-org, .ci.wait .ci-org { color: rgba(18,63,46,.75); border-color: rgba(18,63,46,.15); }
.ci.done .ci-org .caps, .ci.wait .ci-org .caps { color: var(--tomato); }
.ci.done .ci-org a, .ci.wait .ci-org a { color: var(--green); }
.ci-mark { display: grid; justify-items: center; gap: 4px; padding: 14px 20px 12px; transform: rotate(-9deg); color: var(--tomato);
  border: 4px solid currentColor; border-radius: 10px; box-shadow: inset 0 0 0 3px var(--cream-2), inset 0 0 0 5px currentColor; opacity: .92;
  animation: thumpin .45s cubic-bezier(.2,1.6,.4,1) both; }
.ci-mark span { font: 400 2.4rem/1 Anton, Impact, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ci-mark small { font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.ci-mark.pending { color: var(--pen); border-style: dashed; box-shadow: none; transform: rotate(-6deg); }
.ci-mark.pending small { letter-spacing: .06em; text-transform: none; font: 400 1.05rem/1 Yellowtail, cursive; }
@keyframes thumpin { from { transform: rotate(-9deg) scale(1.6); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: .92; } }
@media (prefers-reduced-motion: reduce) { .ci-stamp svg, .ci-stamp::after, .ci-eyebrow .live, .ci-mark { animation: none; } }
@media (max-width: 720px) {
  .ci, .ci.done, .ci.wait { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 20px; }
  .ci-copy { justify-items: center; }
  .ci-eyebrow { display: block; font-size: .64rem; }
  .ci-eyebrow .live { display: inline-block; vertical-align: 1px; margin-right: 8px; }
  .ci.open .ci-stamp { order: -1; width: 176px; height: 176px; margin: 4px 0 6px; }
  .ci-face b { font-size: 2.4rem; }
  .ci-org { justify-content: center; }
}
