/* Open Table — inherits the Warm Neo theme tokens so it always matches the
   site palette; falls back to the same values if a token is missing. */

.gtg-open-table,
.gtg-open-table-game,
.gtg-open-table__modal-backdrop {
  --ot-ink: var(--gtg-ink, #252b32);
  --ot-paper: var(--gtg-paper, #fffaf3);
  --ot-card: var(--gtg-white, #ffffff);
  --ot-soft: var(--gtg-surface-group, #f3e9dd);
  --ot-inset: var(--gtg-surface-inset, #fbf3ea);
  --ot-accent: var(--gtg-orange, #f26522);
  --ot-accent-dark: var(--gtg-orange-dark, #d94d12);
  --ot-yellow: var(--gtg-yellow, #f4bf45);
  --ot-danger: var(--gtg-danger, #9f4025);
  --ot-muted: var(--gtg-muted, #5f564f);
  --ot-green: #3e7a4e;
  --ot-radius: var(--gtg-radius, 18px);
  --ot-radius-sm: var(--gtg-radius-sm, 12px);
  --ot-border: 2px solid var(--ot-ink);
  --ot-shadow: 3px 3px 0 var(--ot-ink);
  color: var(--ot-ink);
  font-size: 15px;
  line-height: 1.5;
}

.gtg-open-table *,
.gtg-open-table-game *,
.gtg-open-table__modal-backdrop * {
  box-sizing: border-box;
}

/* The hidden attribute must always win, even against display rules on the
   same element (author styles otherwise override the UA's [hidden]). */
.gtg-open-table [hidden],
.gtg-open-table-game [hidden],
.gtg-open-table__modal-backdrop [hidden] {
  display: none !important;
}

.gtg-open-table__loading,
.gtg-open-table-game__loading {
  padding: 18px;
  text-align: center;
  color: var(--ot-muted);
  font-size: 14px;
}

/* ---- Buttons ---------------------------------------------------------- */

.gtg-open-table__btn {
  display: inline-block;
  padding: 10px 18px;
  border: var(--ot-border);
  border-radius: var(--ot-radius-sm);
  background: var(--ot-card);
  color: var(--ot-ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--ot-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  line-height: 1.2;
}

.gtg-open-table__btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ot-ink);
  color: var(--ot-ink);
}

.gtg-open-table__btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ot-ink);
}

.gtg-open-table__btn--primary {
  background: var(--ot-accent);
  color: #fff;
}

.gtg-open-table__btn--primary:hover {
  background: var(--ot-accent-dark);
  color: #fff;
}

/* Anchors styled as buttons: the theme's content link colour (and :visited)
   must never beat the button text — "Log in to join" was dark orange on
   orange until clicked. */
.gtg-open-table a.gtg-open-table__btn,
.gtg-open-table a.gtg-open-table__btn:visited {
  color: var(--ot-ink);
}

.gtg-open-table a.gtg-open-table__btn--primary,
.gtg-open-table a.gtg-open-table__btn--primary:visited,
.gtg-open-table a.gtg-open-table__btn--primary:hover,
.gtg-open-table a.gtg-open-table__btn--primary:focus,
.gtg-open-table a.gtg-open-table__btn--primary:active {
  color: #fff;
}

.gtg-open-table__btn--ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  text-decoration: underline;
  padding: 8px 4px;
}

.gtg-open-table__btn--ghost:hover {
  transform: none;
  box-shadow: none;
  color: var(--ot-accent-dark);
}

.gtg-open-table__btn--danger {
  background: transparent;
  border-color: var(--ot-danger);
  color: var(--ot-danger);
}

.gtg-open-table__btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.gtg-open-table__btn--small {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 10px;
}

/* ---- Chips / status flags -------------------------------------------- */

.gtg-open-table__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.gtg-open-table__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1.5px solid var(--ot-ink);
  border-radius: 999px;
  background: var(--ot-paper);
  font-size: 12px;
  font-weight: 800;
}

.gtg-open-table__chip--accent {
  background: var(--ot-yellow);
}

.gtg-open-table__chip--soft {
  background: var(--ot-soft);
}

.gtg-open-table__chip--green {
  background: var(--ot-green);
  color: #fff;
}

.gtg-open-table__chip-x {
  background: none;
  border: none;
  padding: 0 0 0 2px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  opacity: 0.65;
}

.gtg-open-table__chip-x:hover {
  opacity: 1;
  color: var(--ot-accent-dark);
}

/* ---- Breadcrumbs ------------------------------------------------------- */

.gtg-open-table__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.gtg-open-table__crumbs a {
  color: var(--ot-muted);
  text-decoration: none;
}

.gtg-open-table__crumbs a:hover {
  color: var(--ot-accent-dark);
  text-decoration: underline;
}

.gtg-open-table__crumbs span {
  color: var(--ot-muted);
}

.gtg-open-table__crumbs strong {
  color: var(--ot-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Board layout ------------------------------------------------------ */

/* The board escapes the theme's content card — cards straight on the page,
   no box-within-a-box — and gets more width than the reading measure so
   the hotness rail has a column to live in. (No :has() support = the old
   boxed single-column look, which still works.) */
.gtg-content-card:has(> .gtg-open-table) {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.gtg-shell.gtg-reading-width:has(.gtg-open-table[data-open-table-view]),
.gtg-shell.gtg-reading-width:has(.gtg-open-table [data-open-table-view]) {
  max-width: 1060px;
}

/* Pull the board up towards the page title — the theme's generous section
   padding reads as a hole once the content card is gone. */
.gtg-section.gtg-page-content:has(.gtg-open-table) {
  padding-top: 0.25rem;
}

.gtg-open-table__board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 900px) {
  .gtg-open-table__board.has-hotness {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }

  /* Tables come first in the DOM (mobile-first), hotness takes the left
     column on wide screens. Sticky offset clears the theme's sticky header
     (~94px tall; the admin bar adds 32px more). */
  .gtg-open-table__board.has-hotness .gtg-open-table__hotness {
    order: -1;
    position: sticky;
    top: 114px;
  }

  body.admin-bar .gtg-open-table__board.has-hotness .gtg-open-table__hotness {
    top: 146px;
  }
}

/* ---- The Hotness rail -------------------------------------------------- */

.gtg-open-table__hotness h2 {
  font-size: 18px;
  margin: 0 0 2px;
}

.gtg-open-table__hotness > p {
  margin: 0 0 8px;
  color: var(--ot-muted);
  font-size: 13px;
}

.gtg-open-table__hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gtg-open-table__hot-list li + li {
  border-top: 1.5px dashed rgba(37, 43, 50, 0.25);
}

.gtg-open-table__hot-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  text-decoration: none;
  color: var(--ot-ink);
}

.gtg-open-table__hot-list a:hover strong {
  color: var(--ot-accent-dark);
  text-decoration: underline;
}

.gtg-open-table__hot-rank {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  flex: none;
}

.gtg-open-table__hot-list li:first-child .gtg-open-table__hot-rank {
  color: var(--ot-accent);
  font-size: 18px;
}

.gtg-open-table__hot-list img,
.gtg-open-table__hot-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1.5px solid var(--ot-ink);
  border-radius: 8px;
  background: var(--ot-soft);
  flex: none;
  display: block;
}

.gtg-open-table__hot-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gtg-open-table__hot-info strong {
  font-size: 13.5px;
  line-height: 1.25;
}

.gtg-open-table__hot-info small {
  font-size: 12px;
  color: var(--ot-muted);
}

.gtg-open-table__hot-move {
  flex: none;
  font-size: 12px;
  font-weight: 900;
}

.gtg-open-table__hot-move.is-up {
  color: var(--ot-green);
}

.gtg-open-table__hot-move.is-down {
  color: var(--ot-danger);
}

.gtg-open-table__hot-move.is-new {
  font-size: 10.5px;
  text-transform: uppercase;
  background: var(--ot-yellow);
  border: 1.5px solid var(--ot-ink);
  border-radius: 999px;
  padding: 1px 7px;
}

/* ---- Hero + sections --------------------------------------------------- */

.gtg-open-table__hero {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: var(--ot-border);
  border-radius: var(--ot-radius);
  background: var(--ot-card);
  box-shadow: var(--ot-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.gtg-open-table__hero h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.gtg-open-table__hero p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ot-muted);
  flex: 1 1 320px;
}

.gtg-open-table__section {
  margin: 0 0 22px;
}

.gtg-open-table__section > h2 {
  font-size: 18px;
  margin: 0 0 2px;
}

.gtg-open-table__section > p {
  margin: 0 0 10px;
  color: var(--ot-muted);
  font-size: 13px;
}

/* ---- Game groups + gathering rows ------------------------------------- */

.gtg-open-table__group {
  border: var(--ot-border);
  border-radius: var(--ot-radius);
  background: var(--ot-card);
  box-shadow: var(--ot-shadow);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.gtg-open-table__group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2px;
}

.gtg-open-table__group-head h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.2;
}

.gtg-open-table__group-head small {
  color: var(--ot-muted);
  font-weight: 700;
  font-size: 12px;
}

.gtg-open-table__group-head:hover h3 {
  color: var(--ot-accent-dark);
}

.gtg-open-table__group-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid var(--ot-ink);
  border-radius: 10px;
  background: var(--ot-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.gtg-open-table__group-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gtg-open-table__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-top: 1.5px dashed var(--ot-soft);
  text-decoration: none;
  color: inherit;
}

.gtg-open-table__row:hover strong {
  color: var(--ot-accent-dark);
}

.gtg-open-table__row strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.gtg-open-table__row small {
  display: block;
  color: var(--ot-muted);
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
}

.gtg-open-table__row .gtg-open-table__btn {
  flex-shrink: 0;
}

/* ---- Popular (compact mini rows) --------------------------------------- */

.gtg-open-table__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.gtg-open-table__mini {
  display: flex;
  align-items: center;
  gap: 12px;
  border: var(--ot-border);
  border-radius: var(--ot-radius-sm);
  background: var(--ot-card);
  box-shadow: var(--ot-shadow);
  padding: 10px 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gtg-open-table__mini:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ot-ink);
}

.gtg-open-table__mini-body {
  flex: 1;
  min-width: 0;
}

.gtg-open-table__mini-body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gtg-open-table__mini-body small {
  color: var(--ot-muted);
  font-weight: 700;
  font-size: 12px;
}

/* ---- Player dots ------------------------------------------------------ */

.gtg-open-table__players {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gtg-open-table__player-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ot-ink);
  border-radius: 50%;
  background: var(--ot-paper);
}

.gtg-open-table__player-dot--filled {
  background: var(--ot-green);
}

.gtg-open-table__players small {
  margin-left: 5px;
  font-size: 11.5px;
  color: var(--ot-muted);
  font-weight: 800;
}

/* ---- Gathering detail ------------------------------------------------- */

.gtg-open-table__detail {
  border: var(--ot-border);
  border-radius: var(--ot-radius);
  background: var(--ot-card);
  box-shadow: 4px 4px 0 var(--ot-ink);
  overflow: hidden;
  margin-bottom: 20px;
}

.gtg-open-table__detail-hero {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--ot-inset);
  border-bottom: var(--ot-border);
  align-items: center;
}

.gtg-open-table__detail-hero img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid var(--ot-ink);
  border-radius: 10px;
  background: var(--ot-soft);
  flex-shrink: 0;
}

.gtg-open-table__detail-hero h1 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.15;
}

.gtg-open-table__eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ot-accent-dark);
}

.gtg-open-table__detail-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gtg-open-table__panel {
  border: var(--ot-border);
  border-radius: var(--ot-radius-sm);
  padding: 14px;
  background: var(--ot-paper);
}

.gtg-open-table__panel > h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gtg-open-table__panel--action {
  background: var(--gtg-warning-pale, #fff2cf);
}

.gtg-open-table__panel--booked {
  background: #e7f0e8;
}

.gtg-open-table__people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gtg-open-table__people li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.gtg-open-table__tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.5px 7px;
  border-radius: 999px;
  border: 1.5px solid var(--ot-ink);
  background: var(--ot-soft);
}

.gtg-open-table__tag--green {
  background: var(--ot-green);
  color: #fff;
}

.gtg-open-table__tag--wait {
  background: var(--ot-paper);
  color: var(--ot-muted);
}

.gtg-open-table__tag--member {
  background: var(--ot-yellow);
}

/* ---- Your seat line ---------------------------------------------------- */

.gtg-open-table__seat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ot-muted);
}

.gtg-open-table__seat-leave {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--ot-danger);
  text-decoration: underline;
  cursor: pointer;
}

.gtg-open-table__seat-leave:hover {
  color: var(--ot-ink);
}

/* ---- Slots ------------------------------------------------------------ */

.gtg-open-table__slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1.5px dashed var(--ot-soft);
}

.gtg-open-table__slot:last-child {
  border-bottom: 0;
}

.gtg-open-table__slot-when {
  flex: 1 1 190px;
  font-weight: 700;
  font-size: 14px;
}

.gtg-open-table__slot-when small {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: var(--ot-muted);
}

.gtg-open-table__slot-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.gtg-open-table__vote {
  padding: 6px 11px;
  border: 2px solid var(--ot-ink);
  border-radius: 9px;
  background: var(--ot-card);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
}

.gtg-open-table__vote.is-on {
  background: var(--ot-green);
  color: #fff;
}

.gtg-open-table__vote--no.is-on {
  background: var(--ot-danger);
}

.gtg-open-table__vote--maybe.is-on {
  background: var(--ot-yellow);
  color: var(--ot-ink);
}

/* ---- Next-step guidance ------------------------------------------------ */

.gtg-open-table__next {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid var(--ot-ink);
  border-left: 6px solid var(--ot-yellow);
  border-radius: var(--ot-radius-sm);
  background: var(--gtg-warning-pale, #fff2cf);
  padding: 12px 14px;
}

.gtg-open-table__next-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--ot-ink);
  color: var(--ot-paper);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 1px;
}

.gtg-open-table__next p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.gtg-open-table__next .gtg-open-table__btn {
  margin-top: 8px;
}

/* On wide screens the strip is one line: text and button side by side. */
@media (min-width: 720px) {
  .gtg-open-table__next {
    align-items: center;
  }

  .gtg-open-table__next > div {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    flex-wrap: wrap;
  }

  .gtg-open-table__next p {
    flex: 1 1 300px;
  }

  .gtg-open-table__next .gtg-open-table__btn {
    margin-top: 0;
    flex-shrink: 0;
  }
}

/* ---- Day-grouped voting ------------------------------------------------ */

.gtg-open-table__day {
  padding: 10px 0;
  border-bottom: 1.5px dashed var(--ot-soft);
}

.gtg-open-table__day:last-of-type {
  border-bottom: 0;
}

.gtg-open-table__day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}

.gtg-open-table__day-actions {
  display: flex;
  gap: 4px;
}

.gtg-open-table__day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.gtg-open-table__timechip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 40px;
  border: 2px solid var(--ot-ink);
  border-radius: 999px;
  background: var(--ot-card);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ot-ink);
  touch-action: manipulation;
}

.gtg-open-table__timechip span {
  background: var(--ot-soft);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 11.5px;
}

.gtg-open-table__timechip.is-yes {
  background: var(--ot-green);
  border-color: var(--ot-green);
  color: #fff;
}

.gtg-open-table__timechip.is-yes span {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.gtg-open-table__timechip.is-no {
  background: transparent;
  border-color: var(--ot-soft);
  color: var(--ot-muted);
  text-decoration: line-through;
}

.gtg-open-table__timechip.is-lead {
  border-color: var(--ot-yellow);
  box-shadow: 0 0 0 2px var(--ot-yellow);
}

.gtg-open-table__timechip--ghost {
  border-style: dashed;
  border-color: var(--ot-muted);
  color: var(--ot-muted);
  background: transparent;
}

.gtg-open-table__timechip--ghost:hover {
  border-color: var(--ot-accent);
  color: var(--ot-accent-dark);
}

.gtg-open-table__timechip[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.gtg-open-table__timechip.is-selected {
  background: var(--ot-ink);
  border-color: var(--ot-ink);
  color: var(--ot-paper);
  cursor: default;
}

.gtg-open-table__timechip.is-selected span {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ot-paper);
}

.gtg-open-table__timechip.is-selected.is-no {
  opacity: 0.75;
  text-decoration: line-through;
  border-color: var(--ot-danger);
}

.gtg-open-table__chip-pick {
  cursor: pointer;
  font-size: 15px;
  padding: 8px;
  margin-left: 2px;
  opacity: 0.6;
}

.gtg-open-table__chip-pick:hover {
  opacity: 1;
}

/* ---- Forms ------------------------------------------------------------ */

.gtg-open-table__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gtg-open-table__form label {
  font-weight: 800;
  font-size: 13px;
  display: block;
  margin-bottom: 3px;
}

.gtg-open-table__form input[type="text"],
.gtg-open-table__form input[type="tel"],
.gtg-open-table__form input[type="date"],
.gtg-open-table__form input[type="time"],
.gtg-open-table__form input[type="number"],
.gtg-open-table__form select,
.gtg-open-table__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--ot-ink);
  border-radius: 10px;
  background: #fff;
  /* 16px stops iOS zooming the page when a field is focused. */
  font-size: 16px;
  color: var(--ot-ink);
}

.gtg-open-table__form-row {
  display: flex;
  gap: 10px;
}

.gtg-open-table__form-row > div {
  flex: 1;
}

.gtg-open-table__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.gtg-open-table__check input {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: var(--ot-accent);
}

.gtg-open-table__radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gtg-open-table__radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 2px solid var(--ot-ink);
  border-radius: 999px;
  background: var(--ot-card);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  margin: 0;
}

.gtg-open-table__radio-row input {
  display: none;
}

.gtg-open-table__radio-row label.is-on {
  background: var(--ot-ink);
  color: var(--ot-paper);
}

/* A time the café has since filled up for: crossed out, not tappable. */
.gtg-open-table__timechip.is-dead {
  opacity: 0.55;
  border-style: dashed;
  cursor: default;
  pointer-events: none;
}

.gtg-open-table__timechip.is-dead > span:last-child {
  text-decoration: none;
}

.gtg-open-table__slot.is-dead {
  opacity: 0.6;
}

/* ---- One-line date proposer -------------------------------------------- */

.gtg-open-table__addrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gtg-open-table__addrow > label {
  font-size: 13.5px;
  font-weight: 800;
  margin: 0;
}

.gtg-open-table__addrow input[type="date"] {
  padding: 8px 12px;
  border: 2px solid var(--ot-ink);
  border-radius: 10px;
  background: #fff;
  /* 16px stops iOS zooming the page when the field is focused. */
  font-size: 16px;
  color: var(--ot-ink);
}

.gtg-open-table__addrow-note {
  font-size: 13px;
  color: var(--ot-muted);
}

.gtg-open-table__addrow-times {
  flex: 1 1 240px;
}

.gtg-open-table__addrow-times:empty {
  display: none;
}

/* ---- Notices ----------------------------------------------------------- */

.gtg-open-table__notice {
  border: var(--ot-border);
  border-radius: var(--ot-radius);
  background: var(--ot-card);
  box-shadow: 4px 4px 0 var(--ot-ink);
  padding: 22px 20px;
  margin: 0 0 22px;
  text-align: center;
}

.gtg-open-table__notice h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.gtg-open-table__notice p {
  margin: 0 auto 4px;
  max-width: 460px;
  color: var(--ot-muted);
  font-size: 14px;
}

.gtg-open-table__error {
  border: 2px solid var(--ot-danger);
  border-radius: 10px;
  background: var(--gtg-danger-soft, #f4d0c6);
  color: var(--ot-danger);
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 10px;
}

.gtg-open-table__empty {
  border: 2px dashed var(--ot-soft);
  border-radius: var(--ot-radius-sm);
  padding: 16px;
  text-align: center;
  color: var(--ot-muted);
  font-size: 13.5px;
}

/* ---- Game page control ------------------------------------------------- */

.gtg-open-table-game {
  margin: 26px 0 8px;
  border: 2px solid var(--ot-ink, #252b32);
  border-radius: var(--ot-radius, 18px);
  background: var(--ot-card, #fff);
  box-shadow: 3px 3px 0 var(--ot-ink, #252b32);
  overflow: hidden;
}

.gtg-open-table-game__inner {
  padding: 16px 18px;
}

.gtg-open-table-game__eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ot-accent-dark);
  margin: 0 0 4px;
}

.gtg-open-table-game__inner h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.gtg-open-table-game__count {
  color: var(--ot-muted);
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 10px;
}

.gtg-open-table-game__questions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--ot-soft);
}

.gtg-open-table-game__questions p {
  font-size: 13.5px;
  font-weight: 800;
  margin: 0 0 6px;
}

/* ---- Booking modal ----------------------------------------------------- */

.gtg-open-table__modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(37, 43, 50, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

body.gtg-open-table-modal-open {
  overflow: hidden;
}

.gtg-open-table__modal {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow: auto;
  background: var(--gtg-white, #fff);
  border: 2px solid var(--gtg-ink, #252b32);
  border-radius: var(--gtg-radius, 18px);
  box-shadow: 5px 5px 0 var(--gtg-ink, #252b32);
  padding: 20px;
  color: var(--gtg-ink, #252b32);
}

.gtg-open-table__modal h3 {
  margin: 2px 0 10px;
  font-size: 20px;
}

.gtg-open-table__modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  color: var(--gtg-muted, #5f564f);
}

.gtg-open-table__modal-close:hover {
  color: var(--gtg-orange-dark, #d94d12);
}

.gtg-open-table__modal-facts {
  list-style: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 2px solid var(--gtg-ink, #252b32);
  border-radius: 12px;
  background: var(--gtg-paper, #fffaf3);
}

.gtg-open-table__modal-facts li {
  padding: 2px 0;
  font-size: 14px;
}

.gtg-open-table__modal-nodeposit {
  color: #3e7a4e;
  font-weight: 800;
}

.gtg-open-table__modal-confirm {
  border: 2px solid var(--gtg-orange, #f26522);
  border-radius: 10px;
  background: var(--gtg-warning-pale, #fff2cf);
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.gtg-open-table__modal-confirm p {
  margin: 0;
}

.gtg-open-table__modal-success {
  text-align: center;
  padding: 14px 4px;
}

.gtg-open-table__modal-success h3 {
  margin: 0 0 8px;
}

.gtg-open-table__modal--frame {
  max-width: 760px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 10px;
}

.gtg-open-table__frame {
  flex: 1;
  width: 100%;
  border: 2px solid var(--gtg-ink, #252b32);
  border-radius: 12px;
  background: var(--gtg-paper, #fffaf3);
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 600px) {
  .gtg-open-table__hero {
    padding: 12px 14px;
  }

  .gtg-open-table__hero h1 {
    font-size: 21px;
  }

  .gtg-open-table__detail-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .gtg-open-table__detail-body {
    padding: 12px;
    gap: 12px;
  }

  .gtg-open-table__panel {
    padding: 12px;
  }

  .gtg-open-table__group {
    padding: 10px 12px;
  }

  /* The time picker: day name on its own line, big thumb-sized chips,
     quiet actions row beneath. */
  .gtg-open-table__day-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .gtg-open-table__day-head strong {
    font-size: 15px;
  }

  .gtg-open-table__day-actions {
    order: 2;
    margin-top: 6px;
    gap: 14px;
  }

  .gtg-open-table__day-chips {
    gap: 8px;
  }

  .gtg-open-table__timechip {
    padding: 10px 16px;
    min-height: 44px;
    font-size: 14.5px;
  }

  .gtg-open-table__radio-row label {
    min-height: 40px;
  }

  /* Primary actions go full-width for the thumb. */
  .gtg-open-table__panel .gtg-open-table__btn--primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 18px;
  }

  .gtg-open-table__form-row {
    flex-direction: column;
  }

  .gtg-open-table__slot-actions {
    width: 100%;
  }

  .gtg-open-table__vote {
    flex: 1;
    min-height: 42px;
  }

  .gtg-open-table__grid {
    grid-template-columns: 1fr;
  }

  /* Modals become bottom sheets. */
  .gtg-open-table__modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .gtg-open-table__modal {
    max-width: none;
    max-height: 92vh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    padding: 18px 16px;
  }

  .gtg-open-table__modal--frame {
    height: 94vh;
    padding: 14px 10px 8px;
  }
}
