:root {
  --green: #2E614C; --cream: #F1E9D7; --gold: #F2B25B; --teal: #A2D4CF;
  --ink: #1F3F33; --card: #FBF6EA; --line: #D9CDB1; --red: #A33A2B;
  font-size: clamp(16px, 0.6vw + 14px, 19px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.5 Nunito, system-ui, sans-serif; }
h1, h2, h3 { font-family: Outfit, system-ui, sans-serif; line-height: 1.2; margin: 0; }
a { color: var(--green); }
.top { background: var(--green); color: var(--cream); padding: 1rem 1.25rem; }
.top h1 { font-size: 1.35rem; font-weight: 700; }
.top p { margin: .15rem 0 0; opacity: .9; font-size: .95rem; }
main { max-width: 34rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
main.wide { max-width: 44rem; }
.night { margin-top: 1.5rem; }
.night > h2 { font-size: 1.45rem; color: var(--green); }
.night > p { margin: .2rem 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; margin-top: 1rem; }
.card svg { display: block; width: 100%; height: auto; }
.card h3 { font-size: 1.2rem; color: var(--green); margin-top: .5rem; }
.games { list-style: none; padding: 0; margin: .5rem 0 0; }
.games li { margin-top: .35rem; }
.games details { border-top: 1px solid var(--line); padding: .5rem 0; }
.games summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: .5rem; list-style: none; }
.games summary::-webkit-details-marker { display: none; }
.games summary::after { content: "+"; margin-left: auto; font: 700 1.3rem Outfit, sans-serif; color: var(--green); }
.games details[open] summary::after { content: "–"; }
.num { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--green); color: var(--cream); display: grid; place-items: center; font: 700 .9rem Outfit, sans-serif; }
.games .meta { font-size: .9rem; margin: 0 0 .4rem; }
.games .desc { font-size: .95rem; margin: 0 0 .5rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .75rem 0 0; padding: 0; }
.facts div { background: #fff; border-radius: 12px; padding: .5rem .7rem; }
.facts dt { font-size: .78rem; text-transform: none; opacity: .75; }
.facts dd { margin: 0; font-weight: 700; }
.host { display: flex; gap: .7rem; align-items: flex-start; margin-top: .75rem; }
.host .star { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--gold); display: grid; place-items: center; font-size: 1.3rem; color: var(--green); }
.host p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.tag { background: var(--teal); color: var(--ink); border-radius: 999px; padding: .15rem .65rem; font-size: .85rem; font-weight: 700; }
.tag.gold { background: var(--gold); }
.tag.draft { background: #fff; border: 1px dashed var(--red); color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.1rem; border-radius: 12px; border: 2px solid var(--green); background: var(--green); color: var(--cream); font: 700 1rem Nunito, sans-serif; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.small { min-height: 44px; padding: .3rem .8rem; font-size: .9rem; }
.btn.danger { border-color: var(--red); background: transparent; color: var(--red); }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.soon { margin-top: .9rem; text-align: center; font-weight: 700; background: #fff; border-radius: 12px; padding: .7rem; }
.empty { text-align: center; padding: 2.5rem 1rem; }
.foot { text-align: center; font-size: .85rem; padding: 2rem 1rem; opacity: .85; }
.foot img { height: 2rem; vertical-align: middle; }
label { display: block; font-weight: 700; margin-top: .8rem; }
input, select, textarea { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem Nunito, sans-serif; }
textarea { min-height: 5rem; }
input[type=checkbox] { width: 1.4rem; min-height: 1.4rem; height: 1.4rem; margin: 0 .5rem 0 0; flex: none; }
.check { display: flex; align-items: center; min-height: 44px; font-weight: 400; margin-top: .2rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .8rem; }
.msg { margin-top: .8rem; padding: .6rem .8rem; border-radius: 10px; background: #fff; }
.msg.err { border: 1.5px solid var(--red); color: var(--red); }
.list { list-style: none; padding: 0; margin: .5rem 0 0; }
.list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.list li > span { flex: 1; }
.pick { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.pick img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; }
.results { max-height: 16rem; overflow: auto; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; margin-top: .3rem; }
.results button { display: flex; width: 100%; align-items: center; gap: .6rem; min-height: 48px; padding: .3rem .6rem; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: 400 1rem Nunito, sans-serif; color: var(--ink); cursor: pointer; }
.results img { width: 40px; height: 40px; object-fit: contain; }
.hidden { display: none !important; }
.host img.face, .list img.face { flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: #fff; }
.list .noface { flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--green); font: 700 1.1rem Outfit, sans-serif; }
.list .acts { display: flex; flex-direction: column; gap: .35rem; }
@view-transition { navigation: auto; }
.seat-free { cursor: pointer; }
.seat-free .pop { transform-box: fill-box; transform-origin: center; transition: transform .15s ease-out; }
.seat-free:hover .pop, .seat-free:focus-visible .pop { transform: scale(1.1); }
.seat-free.go .pop { animation: seatpop .36s ease-out forwards; }
.seat-free.go rect { fill: var(--gold); stroke-dasharray: none; }
@keyframes seatpop { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .seat-free .pop, .seat-free.go .pop { transition: none; animation: none; } @view-transition { navigation: none; } }
button.tag { border: 0; min-height: 36px; padding: .3rem .8rem; font: 700 .85rem Nunito, sans-serif; cursor: pointer; }
button.tag::after { content: " ⓘ"; font-weight: 400; opacity: .7; }
button.tag[aria-expanded=true] { outline: 2px solid var(--green); }
.tag.weight { background: #fff; border: 1.5px solid var(--line); }
.hint { margin: .5rem 0 0; padding: .6rem .8rem; background: #fff; border-radius: 12px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; font-size: .95rem; }
.stepper { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; }
.stepper button { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--green); background: #fff; color: var(--green); font: 700 1.5rem Outfit, sans-serif; cursor: pointer; }
.stepper button[disabled] { opacity: .35; }
.stepper output { min-width: 2ch; text-align: center; font: 700 1.5rem Outfit, sans-serif; }

/* The little calendar on the public page: one tile per social night. */
.cal-title { font-size: 1.45rem; color: var(--green); margin-top: .5rem; }
.cal-help { margin: .15rem 0 0; }
.cal { display: flex; gap: .6rem; overflow-x: auto; padding: .75rem .1rem .9rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.day { flex: none; scroll-snap-align: start; width: 6.4rem; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink);
  padding: 0 0 .55rem; display: flex; flex-direction: column; align-items: center; overflow: hidden; cursor: pointer; font: inherit; }
.day .mon { align-self: stretch; background: var(--green); color: var(--cream); font: 700 .8rem Outfit, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: .25rem 0; }
.day .dnum { font: 700 2.1rem/1.1 Outfit, sans-serif; color: var(--green); margin-top: .3rem; }
.day .wd { font-weight: 700; font-size: .9rem; }
.day .left { font-size: .78rem; margin-top: .3rem; padding: 0 .3rem; line-height: 1.2; }
.day.on { border-color: var(--green); background: var(--green); color: var(--cream); box-shadow: 0 4px 0 var(--gold); }
.day.on .mon { background: var(--gold); color: var(--ink); }
.day.on .dnum { color: var(--cream); }
.day:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
#tables { scroll-margin-top: .5rem; }
#tables .night { margin-top: .5rem; }

/* A host's emoji, in place of a photo. Same circle as a photo. */
.face.emoji { flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 2px solid var(--gold); background: #fff; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }
.emoji-pick { border: 0; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.emoji-pick legend { font-weight: 700; margin-bottom: .35rem; padding: 0; }
.emoji-pick small { flex-basis: 100%; }
.emoji-pick label { margin: 0; position: relative; }
.emoji-pick input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-pick span { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .5rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.35rem; cursor: pointer; }
.emoji-pick label:first-of-type span { font-size: .9rem; font-weight: 700; }
.emoji-pick input:checked + span { border-color: var(--green); background: var(--teal); }
.emoji-pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Table theme, above the game names. */
.card .theme { margin: .6rem 0 0; font: 700 .78rem Nunito, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8A5410; }
.card .theme + h3, .card .theme + h2 { margin-top: .1rem; }
.themeform { margin-top: 1rem; }
.themeform .row { display: flex; gap: .5rem; align-items: center; }
.themeform select { flex: 1; }

/* Phones: a smaller table picture, so more of each card fits on screen. */
#tables .card > svg { max-width: 20rem; margin: 0 auto; }
@media (max-width: 40rem) {
  #tables .card > svg { max-width: 15rem; }
}

/* Wider screens: tables two to a row. */
@media (min-width: 52rem) {
  body.tables-page main { max-width: 64rem; }
  body.tables-page .cal-title, body.tables-page .cal-help, body.tables-page .cal { max-width: 64rem; }
  #tables .night { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: start; }
  #tables .night > h2, #tables .night > p, #tables .night > .tags { grid-column: 1 / -1; }
}
