/* TESSA base styles. Palette: spec §16.1 (black / white / red + neutral greys). */
:root {
  --black: #111111;
  --red: #c8102e;
  --white: #ffffff;
  /* neutrals */
  --grey-50: #f4f4f4;
  --grey-200: #d9d9d9;
  --grey-600: #595959;
  --red-tint: #fdecee;
  /* status colour: somebody is connected (contrast 4.6:1 on white; never the only signal) */
  --online: #1b8a3a;

  --bg: var(--grey-50);
  --surface: var(--white);
  --text: var(--black);
  --muted: var(--grey-600);
  --border: var(--grey-200);
  --focus: var(--red);

  /* icon-button action colours (confirm / neutral / danger) */
  --action-confirm: var(--black);
  --action-neutral: var(--white);
  --action-danger: var(--red);

  --radius: 10px;
  --touch: 44px;
  font-family: Sora, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--black);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}
.site-header a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.site-header img { width: 40px; height: 40px; }
.site-header strong { font-size: 1.25rem; letter-spacing: 0.04em; }
.site-header small { opacity: 0.8; }

main { max-width: 52rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.6rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.notice, .alert {
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 2px solid var(--black);
  background: var(--white);
}
.alert { border-color: var(--red); background: var(--red-tint); font-weight: 600; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], select {
  min-height: var(--touch);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--muted);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: var(--white);
  max-width: 100%;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.row { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; }
.row > .grow { flex: 1 1 12rem; }
.row input.code { width: 6rem; text-transform: uppercase; }

/* icon buttons */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  border: 0;
  border-radius: 50%;
  background: var(--btn-color, var(--action-neutral));
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { filter: brightness(1.25); }
/* Not available to this person: greyed out, and the cursor says so. */
.icon-btn:disabled { opacity: 0.35; filter: grayscale(1); cursor: not-allowed; }
.icon-btn:disabled:hover { filter: grayscale(1); background: var(--white); }
.icon-btn.confirm { --btn-color: var(--action-confirm); }
.icon-btn.neutral {
  --btn-color: var(--action-neutral);
  color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black);
}
.icon-btn.neutral:hover { filter: none; background: var(--grey-200); }
.icon-btn.danger { --btn-color: var(--action-danger); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* icon + text button (module start) */
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--action-confirm);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none; /* also used on links (download) */
  cursor: pointer;
}
.text-btn:hover { filter: brightness(1.25); }

.tag {
  padding: 0.1rem 0.6rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
}
.presence { font-size: 0.9rem; }
.presence.on { color: var(--black); }
.presence.off { color: var(--muted); }

.members { list-style: none; margin: 0; padding: 0; }
.members li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.members li:last-child { border-bottom: 0; }
.members .code-badge {
  min-width: 3.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}
.members .name { flex: 1 1 8rem; }
.members form { display: contents; }
/* The team's list: ten rows at most, then it scrolls. A row is taller while it is editable (the
   icon buttons are 44 px), so the limit follows the mode. */
.team-members { --row-h: 2.9rem; max-height: calc(10 * var(--row-h)); overflow-y: auto; }
.team-members.editing { --row-h: 3.9rem; }
.team-members .code-badge { cursor: default; }

.switch { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; cursor: pointer; margin: 0; }
.switch input { width: 1.4rem; height: 1.4rem; }

.muted { color: var(--muted); }
.share input { width: min(100%, 28rem); }
.status { min-height: 1.5em; }

/* Daily: lists with « ‹ › » between them */
/* The middle list (the invited ones) is the longest, so it gets the most room. */
.lists { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.pick-list { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; margin: 0; min-height: 6rem; min-width: 0; }
.pick-list legend { font-weight: 700; padding: 0 0.4rem; }
/* The people are chips like the assignees of a task, but one under the other, all as wide as the
   list. The 6 px frame tells who is connected: green for online, grey for not connected. A ticked
   chip gets a red background, so the selection stays apart from the connection.
   These rules come before the general `.chips` / `.chip` ones further down, so they name both
   classes: that wins over the later rule without a second look at the order. */
.chips.pick-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 0.25rem 0 0; }
.chip.pick-chip { border-width: 6px; min-height: 2.8rem; padding: 0 0.8rem; border-radius: 999px; }
.chip.pick-chip.online { border-color: var(--online); color: var(--black); }
.chip.pick-chip.offline { border-color: var(--grey-200); color: var(--muted); font-weight: 500; }
.chip.pick-chip:has(input:checked) { background: var(--red-tint); color: var(--black); }
.chip.pick-chip input { width: 1.1rem; height: 1.1rem; margin: 0; }
.chip.pick-chip.static { cursor: default; }
/* A person the viewer may not move: faded, with a checkbox that cannot be ticked. */
.chip.pick-chip.locked { opacity: 0.55; cursor: not-allowed; }
.chip.pick-chip.locked input { cursor: not-allowed; }
/* The red star after the Kuerzel: this person moderates. */
.mod-star { color: var(--red); font-size: 1.05em; line-height: 1; }
/* In the session's header the lock is the switch for guests, the square ends the session. */
.session-title form { display: contents; }
.lock-btn { font-size: 1.1rem; }
.arrows { display: flex; flex-direction: column; gap: 0.4rem; align-self: center; }
@media (max-width: 44rem) {
  .lists { grid-template-columns: 1fr; }
  .arrows { flex-direction: row; justify-content: center; }
}

.daily-table { width: 100%; border-collapse: collapse; }
.daily-table th, .daily-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); }
.daily-table thead th { font-size: 0.85rem; color: var(--muted); }
.daily-table tr.speaking { background: var(--red-tint); box-shadow: inset 4px 0 0 var(--red); }
.daily-table select { min-width: 4.5rem; }
.report-box { width: 1.4rem; height: 1.4rem; }
.speaker-block { margin-top: 1rem; }
.speaker-block h3 { font-size: 1rem; margin: 0.75rem 0 0.5rem; }
.done-note { font-weight: 700; padding: 0.6rem 1rem; border: 2px solid var(--black); border-radius: var(--radius); }

/* Timers: state is shown by text and border style as well as colour */
.timers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.timer { display: grid; gap: 0.4rem; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); }
.timer-label { font-weight: 700; }
.timer-time { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-bar { width: 100%; height: 0.8rem; accent-color: var(--black); }
.timer-state { min-height: 1.5em; font-weight: 700; }
.timer-controls { display: flex; gap: 0.5rem; }
.timer-limit { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.timer-limit label { margin: 0; }
.timer-limit input.code { width: 6rem; }
.session-timer .timer { max-width: 22rem; }
dialog.popup { border: 3px solid var(--red); border-radius: var(--radius); padding: 1.25rem 1.5rem; max-width: 26rem; }
dialog.popup p { font-size: 1.15rem; font-weight: 700; margin-top: 0; }
dialog.confirm-dialog { border-color: var(--black); }
dialog.confirm-dialog .row { margin-top: 1rem; justify-content: flex-end; }
dialog.popup::backdrop { background: rgba(0, 0, 0, 0.45); }
.timer-controls form { display: contents; }
.timer.warn { border: 3px dashed var(--black); }
.timer.over { border: 3px solid var(--red); }
.timer.over .timer-time, .timer.over .timer-state { color: var(--red); }
.timer.over .timer-bar { accent-color: var(--red); }

textarea { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--muted); border-radius: 8px; font: inherit; color: inherit; background: var(--white); resize: vertical; }
textarea[readonly] { background: var(--grey-50); }

.tasks { list-style: none; margin: 0 0 1rem; padding: 0; }
.tasks li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.task-view { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.task-view .name { flex: 1 1 10rem; font-weight: 600; }
.task-view form { display: contents; }
.task-edit input[type="text"], .task-add input[type="text"] { width: 100%; }
.task-add textarea, .task-edit textarea { width: 100%; }
.task-description { margin: 0.25rem 0 0; white-space: pre-wrap; }
.task-add .row input { flex: 1 1 12rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; padding: 0; margin: 0.5rem 0; }
.chips legend { padding: 0; margin-bottom: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.2rem; margin: 0; padding: 0 0.7rem; border: 1px solid var(--muted); border-radius: 999px; font-weight: 600; cursor: pointer; }

/* Poker: cards. The chosen card is inverted and carries aria-pressed, not just a colour. */
.poker-question { margin: 0 0 0.5rem; font-size: 1.25rem; }
.poker-description { white-space: pre-line; margin: 0 0 0.75rem; }
.cards { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.cards form { display: contents; }
.card-btn {
  min-width: 3.4rem;
  min-height: 4.6rem;
  padding: 0 0.6rem;
  border: 2px solid var(--black);
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}
.card-btn:hover { background: var(--grey-200); }
.card-btn.chosen { background: var(--black); color: var(--white); box-shadow: 0 0 0 3px var(--red); }
.card-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.8rem;
  padding: 0 0.4rem;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
}
.estimators .vote-state { min-width: 8rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0 0 1rem; }
.stats div { display: grid; }
.stats dt { color: var(--muted); font-size: 0.85rem; }
.stats dd { margin: 0; font-size: 1.8rem; font-weight: 700; }
.revealed { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.revealed li { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.revealed .name { flex: 1 1 8rem; }
.revealed li.outlier .card-face { border-color: var(--red); color: var(--red); }
.item-list { margin: 0 0 1rem; padding-left: 1.4rem; }
.item-list li { padding: 0.3rem 0; }
.item-list li.current { background: var(--red-tint); }
.item-add label { margin-top: 0.5rem; }
.item-add input[type="text"] { width: 100%; }

/* Retro: columns of cards */
/* All columns side by side, never wrapped (spec 17.5): the four default ones share the width, and
   on a narrow window the row scrolls sideways instead. */
.retro-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 1fr);
  gap: 1rem;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
/* "Meine Karten": the columns always share the width, none is pushed out of sight; they get
   narrower instead of scrolling. */
.retro-columns.fit { grid-auto-flow: row; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); overflow-x: visible; }
.retro-columns.fit .retro-column { min-width: 0; padding: 0.5rem; }
.retro-columns.fit textarea { width: 100%; box-sizing: border-box; }
.vote-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.vote-bar form { display: contents; }
.vote-info { margin: 0; font-weight: 700; }
.vote-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.vote-row form { display: contents; }
.vote-points { min-width: 1.5rem; text-align: center; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vote-total { margin: 0 0 0.3rem; color: var(--red); }
.retro-column { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; }
.retro-column h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.retro-text { white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.retro-group { margin-bottom: 0.75rem; }
.retro-card { padding: 0.5rem 0.6rem; border: 2px solid var(--black); border-radius: 8px; background: var(--white); margin-bottom: 0.4rem; }
.retro-card.nested { margin-left: 1.2rem; border-style: dashed; }
.retro-meta { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin: 0.3rem 0 0; }
.card-tools { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.card-tools form { display: contents; }
.card-tools .derive { display: contents; }
.card-tools .derive form { display: block; flex: 1 1 100%; }
.card-tools select { max-width: 100%; }
.card-add textarea, .task-edit textarea { width: 100%; }
.counts .count { min-width: 6rem; font-weight: 600; }

/* Start mask: label left, field right, a hint underneath; stacked on a phone */
.start-form .field {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}
.start-form .field label { margin: 0; }
.start-form .field .hint { grid-column: 2; color: var(--muted); font-size: 0.85rem; }
.start-form .field input[type="text"], .start-form .field select { width: 100%; max-width: 32rem; }
.start-form .field input.code { width: 8rem; }
.start-form .field input.code-input { width: 6rem; }
.start-form hr { border: 0; border-top: 1px solid var(--border); margin: 0.9rem 0; }
.start-actions { display: flex; justify-content: flex-end; }
/* Chat: a column on the right that can be hidden; the toggle stays at the edge of the window */
.chat {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: 22rem;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  border-left: 2px solid var(--border);
  transform: translateX(100%);
}
.chat.open { transform: none; }
@media (prefers-reduced-motion: no-preference) { .chat { transition: transform 0.2s; } }
.chat-toggle { position: absolute; left: -3.4rem; top: 5rem; }
.chat-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 1.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}
.chat-panel { display: flex; flex-direction: column; height: 100%; padding: 1rem; overflow: hidden; }
.chat-panel h2 { margin-top: 0; }
.chat-panel #chat-messages { flex: 1; overflow-y: auto; min-height: 0; }
.chat-messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.chat-message { padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; }
.chat-message.mine { border-color: var(--black); }
.chat-head { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.chat-text { display: block; overflow-wrap: anywhere; white-space: pre-line; }
.chat-form { display: flex; gap: 0.5rem; padding-top: 0.5rem; }
.chat-form input { flex: 1; min-width: 0; }
@media (min-width: 60rem) { body.chat-open main { margin-right: 23rem; } }

/* Session frame: clock top left, title with back arrow and lock, invite block at the bottom */
.session-bar { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; gap: 0.75rem; margin-bottom: 0.75rem; }
/* plan box and timer box are loaded into regions of their own; the box inside is the flex item */
.bar-region { display: contents; }
/* The clock sits in a box at the top left: the date small, the time with seconds large. */
.session-clock {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 11rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.clock-date { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.clock-time { color: var(--black); font-size: 2.2rem; font-weight: 700; letter-spacing: 0.02em; }
/* Plan box and timer box look like the clock; the upper line then holds buttons, so it is as high
   as the small buttons in all three boxes (the boxes are the same height). */
.session-clock .clock-date { display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 1.8rem; }
.box-tools form, .box-arrows form, .plan-time { display: contents; }
.box-arrows { display: inline-flex; gap: 0.25rem; }
.icon-btn.small { width: 1.8rem; height: 1.8rem; font-size: 0.8rem; }
button.plan-value { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 0 0.25rem; border-radius: 6px; }
button.plan-value:hover { background: var(--grey-200); }
button.plan-value.clock-time { font-size: 2.2rem; font-weight: 700; line-height: 1.15; }
.plan-time { display: inline-flex; align-items: center; gap: 0.35rem; }
.plan-time select { font-size: 1.5rem; font-weight: 700; width: auto; min-width: 4.2rem; }
.plan-time span { font-size: 1.5rem; font-weight: 700; }
.timer-box.warn { border: 3px dashed var(--black); }
.timer-box.over { border: 3px solid var(--red); }
.timer-box.over .clock-time { color: var(--red); }
/* The start field with the lock beside it (team page) */
.field-with-lock { display: flex; align-items: center; gap: 0.5rem; }
/* The time of the start between its two arrows (five minutes earlier, five minutes later) */
.time-step { display: inline-flex; align-items: center; gap: 0.25rem; }
.time-value { min-width: 3.6rem; padding: 0.15rem 0.3rem; border-radius: 6px; text-align: center; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* The check-in switch above the check-in column of the Daily */
.checkin-mode { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; cursor: pointer; }
.checkin-mode input:disabled { cursor: not-allowed; }
.round-label { margin: 0 0 0.5rem; }
.speaker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.speaker-actions form { display: contents; }

/* Raised hands: on the chip, and the buttons at the bottom right of a list of participants */
.chip-hand { margin-left: 0.25rem; }
.hand-bar { display: flex; flex-flow: row nowrap; justify-content: flex-end; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.hand-bar form { display: contents; }
.session-head { margin-bottom: 1rem; }
.session-title { display: flex; align-items: center; gap: 0.75rem; }
.session-title h1 { margin: 0; }
.session-title .lock { font-size: 1.4rem; }
/* The session name: for the moderator a button that looks like the heading */
.name-edit { border: 0; background: transparent; font: inherit; color: inherit; padding: 0; cursor: text; border-bottom: 2px dotted var(--muted); }
.name-edit:hover { background: var(--grey-200); }
.name-form { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 auto; max-width: 36rem; }
.name-form input { flex: 1; min-width: 0; font-size: 1.4rem; font-weight: 700; }
.timers-bottom { margin-top: 1rem; }
/* Lists of sessions: on the team page and on the start page */
.sessions { width: 100%; border-collapse: collapse; }
.sessions th, .sessions td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sessions thead th { font-size: 0.85rem; color: var(--muted); }
.sessions td.actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.sessions td.actions form { display: contents; }
.open-sessions { margin-top: 1rem; }
.member-transfer { display: grid; gap: 0.75rem; margin-bottom: 0.75rem; }
.invite { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.invite .card { margin-bottom: 0; }
.start-session .hint { display: block; font-size: 0.85rem; }
/* Name, duration and start: labels and fields on one line, the hint hangs below the name only */
.start-session .row { align-items: flex-start; }
a.icon-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* Mask on the left, picture with caption top right; the picture comes first on narrow screens */
.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 1rem 1.5rem;
  align-items: start;
}
.start-layout .start-mask { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.start-logo { grid-column: 2; grid-row: 1; margin: 0; text-align: center; }
.start-logo img { width: 100%; max-width: 15rem; height: auto; }
.start-logo figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.start-logo img.supporter { display: block; width: 100%; max-width: 15rem; height: auto; margin: 2.5rem auto 0; }
.start-logo figcaption strong { color: var(--text); font-size: 1.2rem; letter-spacing: 0.05em; }
@media (max-width: 52rem) {
  .start-layout { grid-template-columns: 1fr; }
  .start-layout .start-mask, .start-logo { grid-column: 1; }
  .start-logo { grid-row: 1; }
  .start-layout .start-mask { grid-row: 2; }
  .start-logo img { max-width: 8rem; }
  .start-logo img.supporter { max-width: 10rem; margin-top: 1rem; }
}
@media (max-width: 44rem) {
  .start-form .field { grid-template-columns: 1fr; }
  .start-form .field .hint { grid-column: 1; }
}

/* Join code: big enough to read aloud or project */
.code-card .join-code {
  display: flex;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.code-card .join-code span {
  display: grid;
  place-items: center;
  width: 1.2em;
  height: 1.5em;
  border: 3px solid var(--black);
  border-radius: 10px;
  background: var(--white);
}
.code-input { width: 6rem; letter-spacing: 0.2em; text-align: center; font-size: 1.2rem; }
.tag.guest { border-color: var(--black); color: var(--black); }
.guests-row { align-items: center; }
.guests-state { margin: 0; }
.text-btn.neutral { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.text-btn.neutral:hover { filter: none; background: var(--grey-200); }

/* Retro column symbols (spec 16.1: 40-48 px desktop, 32 px mobile; always next to the name) */
.cat-title { display: flex; align-items: center; gap: 0.6rem; }
.cat-icon { width: 44px; height: 44px; flex: none; }
@media (max-width: 44rem) { .cat-icon { width: 32px; height: 32px; } }

@media (prefers-reduced-motion: no-preference) {
  .icon-btn { transition: filter 0.15s; }
}
