.tboard {
  display: grid;
  min-width: 0;
  gap: 18px;
  color: #f3f6fc;
}

.tboard-strip-frame { position: relative; min-width: 0; }
.tboard-strip-frame::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 32px;
  background: linear-gradient(90deg, transparent, #020611);
  pointer-events: none;
}
.tboard-strip {
  display: flex;
  gap: 6px;
  height: 50px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tboard-strip::-webkit-scrollbar { display: none; }

.tboard-tile {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  height: 50px;
  padding: 0 6px;
  border: 1px solid #1a3058;
  border-radius: 9px;
  background: #070e1e;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}
.tboard-tile[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px #f5b800;
  border-color: #f5b800;
  background: #26210d;
  color: #ffd45c;
}
.tboard-today {
  width: 110px;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 730;
}
.tboard-today strong,
.tboard-group-count {
  min-width: 19px;
  border-radius: 999px;
  padding: 2px 5px;
  background: #f5b800;
  color: #101621;
  font-size: 12px;
  text-align: center;
  line-height: 1;
}
.tboard-today strong { padding: 4px 7px; }
.tboard-day { width: 46px; text-align: center; }
.tboard-day span { color: #8290a9; font-size: 10px; font-weight: 670; text-transform: uppercase; letter-spacing: .04em; }
.tboard-day strong { font-size: 17px; line-height: 1.1; }
.tboard-day small { color: #f5b800; font-size: 10px; font-weight: 670; }
.tboard-day[aria-pressed="true"] span { color: #e5bf55; }
.tboard-day.is-empty:not([aria-pressed="true"]) strong,
.tboard-day.is-empty small { color: #475574; }
.tboard-tile:focus-visible { outline-offset: -3px; }

.tboard-group { min-width: 0; --tone: #939db0; }
.tboard-group.is-registering { --tone: #26e48b; }
.tboard-group.is-starting_later_today { --tone: #7caeff; }
.tboard-group.is-running_reg_closed { --tone: #c8d1e0; }
.tboard-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  color: var(--tone);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.tboard-group-head, .tboard-card-head { list-style: none; cursor: pointer; }
.tboard-group-head::-webkit-details-marker,
.tboard-card-head::-webkit-details-marker { display: none; }
.tboard-group-count { background: var(--tone); letter-spacing: 0; }
.tboard-group-line { flex: 1; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: .48; }

.tboard-group-chevron, .tboard-card-chevron {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
}
.tboard-group-chevron { transform: rotate(-45deg); margin-inline: 2px 4px; }
.tboard-group[open] > .tboard-group-head .tboard-group-chevron { transform: translateY(-2px) rotate(45deg); }
.tboard-group .tboard-cards { margin-top: 8px; }
.tboard-cards { display: grid; gap: 8px; }

.tboard-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #1b2742;
  border-radius: 12px;
  background: #060d1c;
  --status: #a2acbf;
}
.tboard-card.is-red, .tboard-card.is-amber, .tboard-card.is-green {
  border-color: color-mix(in srgb, var(--status) 66%, transparent);
  box-shadow: inset 3px 0 var(--status), 0 0 16px color-mix(in srgb, var(--status) 17%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--status) 10%, #060a16), #060d1c);
}
.tboard-card.is-red { --status: #ff6b6b; }
.tboard-card.is-amber { --status: #f5a524; }
.tboard-card.is-green { --status: #2ee68a; }
.tboard-card.is-scheduled { --status: #2ee68a; border-color: #17513d; }
.tboard-card.is-unknown { border-color: #17513d; }
.tboard-card.is-grey { color: #c3cbd9; --status: #929db3; }
.tboard-card.is-terminal { border-style: dashed; color: #a3abbd; }
.tboard-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 16px;
  min-height: 98px;
  box-sizing: border-box;
}
.tboard-card[open] > .tboard-card-head { padding-bottom: 8px; min-height: 90px; }
.tboard-card-layout {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: repeat(3, 18px);
  align-content: center;
  align-items: center;
  gap: 6px 8px;
}
.tboard-name, .tboard-room, .tboard-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tboard-name { grid-area: 1 / 1; font-size: 15px; font-weight: 650; }
.tboard-room { grid-area: 2 / 1; font-size: 11px; color: #a5afc2; }
.tboard-status { grid-area: 3 / 1; color: var(--status); font-size: 13px; font-weight: 670; }
.tboard-close-clock { color: #9ba7ba; font-size: 11px; }
.tboard-time, .tboard-guarantee, .tboard-buy-in { text-align: right; font-size: 14px; white-space: nowrap; }
.tboard-time { grid-area: 1 / 2; }
.tboard-guarantee { grid-area: 2 / 2; }
.tboard-buy-in { grid-area: 3 / 2; }
.tboard-card-head > .tboard-poster { flex: none; }
.tboard-poster { display: block; box-sizing: border-box; object-fit: cover; border: 1px solid #ffffff24; border-radius: 5px; }
.tboard-card[open] > .tboard-card-head > .tboard-poster { display: none; }
.tboard-card-chevron {
  position: absolute;
  left: calc(50% - 4px);
  bottom: 5px;
  color: #8290aa;
  transform: rotate(45deg);
}
.tboard-card[open] .tboard-card-chevron { bottom: 3px; transform: rotate(225deg); }

.tboard-panel {
  margin: 0 12px 18px;
  padding: 10px;
  border: 1px solid #4e3d16;
  border-radius: 10px;
  background: #f5b8000e;
}
.tboard-panel-body { display: flex; gap: 10px; }
.tboard-panel-data { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.tboard-panel-body > .tboard-poster { flex: none; }
.tboard-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 6px;
  margin: 0;
  text-align: center;
}
.tboard-panel-body > .tboard-poster + .tboard-panel-data > .tboard-facts,
.tboard-card.is-scheduled .tboard-facts,
.tboard-facts.no-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tboard-facts dt { color: #8290aa; font-size: 11px; }
.tboard-facts dd { margin: 2px 0 0; color: #fff; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.tboard-updated { margin: auto 0 0; padding-top: 9px; text-align: center; color: #8290aa; font-size: 11px; }
.tboard-updated.is-stale { color: #f5a524; }
.tboard-links {
  display: flex;
  gap: 6px 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 4px;
  border-top: 1px solid #483a17;
}
.tboard-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #7daeff;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
}
.tboard-links a:is(:hover, :focus-visible) { text-decoration: underline; }
.tboard-date-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tboard-date-head h2 { margin: 0; font-size: 16px; }
.tboard-date-head span, .tboard-message { color: #9aa6b8; font-size: 12px; }
.tboard-message { margin: 0; }
.b04-wrap > .tboard + .b04-all {
  border-color: #193f90;
  background: #071331;
  font-size: 14px;
}

.tboard-card-head:focus-visible { outline-offset: -3px; }

@media (width < 380px) {
  .tboard-card.has-poster:not([open]) .tboard-close-clock { display: none; }
}

/* Live Board tournament card, V2 feed (locked by Ralph 24 Nov 2026, pass 6).
   Time and amount tags on one top row; centred title, room and status below.
   Cards grow with their content; a poster adds a 54px strip that opens in place. */
.tboard-lb-head {
  position: relative;
  display: grid;
  gap: 6px;
  box-sizing: border-box;
  /* Ralph 29 Nov 4:13 AM: more breathing room in the card's height. */
  padding: 14px 14px 16px;
  list-style: none;
  cursor: pointer;
}
.tboard-lb-head::-webkit-details-marker { display: none; }
.tboard-lb-head:focus-visible { outline-offset: -3px; }
.tboard-lb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-width: 0; line-height: 20px; }
/* Start time, then the status (e.g. "Reg closes in 45m") on the same line when it
   fits beside the tags; otherwise it wraps directly below the time, into the space
   under the tags. Its zero width keeps it from squeezing the tags. */
.tboard-lb-when { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; padding-top: 1px; }
.tboard-lb-time { flex: none; color: #fff; font-size: 16px; font-weight: 800; white-space: nowrap; }
.tboard-lb-facts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.tboard-lb-tag {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff1a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
}
.tboard-lb-tag.is-gtd { flex: none; background: #f8c512; color: #000; }
.tboard-lb-title { display: flex; justify-content: center; min-width: 0; margin-top: 10px; text-align: center; }
/* An open card shows the whole title, never "…" (Ralph 29 Nov). */
.tboard-lb-card[open] .tboard-lb-name { display: block; -webkit-line-clamp: unset; overflow: visible; }
.tboard-lb-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 26px;
  letter-spacing: -.2px;
  overflow-wrap: break-word;
}
.tboard-lb-room { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.tboard-lb-logo {
  flex: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  overflow: hidden;
  border: 1px solid #0c2457;
  border-radius: 5px;
  background: linear-gradient(160deg, #04122e, #000814);
  color: #f4bb05;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.tboard-lb-logo > :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: contain; }
.tboard-lb-room-text { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; line-height: 18px; }
/* The city gives way first; the room name only shortens once the city is gone. */
/* The room name is never cut (Ralph 29 Nov): it keeps its full width and wraps if it alone is too long. */
.tboard-lb-room-name { flex: 0 0 auto; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: center; color: #9aa6b8; font-size: 12.5px; font-weight: 600; }
/* Ralph 29 Nov: the room line also shows the room's Location Label (from Admin); it shortens first. */
.tboard-lb-city { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f7b90; font-size: 12px; font-weight: 600; }
.tboard-lb-status { flex: 0 0 max-content; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--status); font-size: 11.5px; font-weight: 800; line-height: 16px; }
.tboard-lb-card.is-green .tboard-lb-status::before { content: "● "; }
/* Poster strip (Ralph 27-28 Nov): inside the card's outline and status bar, 6px from each edge,
   with rounded corners. Cards open and close with a height animation (JS), and the opened
   details fade in; reduced motion turns both off. */
.tboard-lb-strip { position: relative; display: block; height: 54px; margin: 8px -7px -6px; overflow: hidden; border-radius: 6px; }
.tboard-lb-card:is(.is-red, .is-amber, .is-green) .tboard-lb-strip { margin-left: -4px; }
.tboard-card.is-opening[open] > :not(summary) { animation: tboard-card-in .28s ease-out; }
@keyframes tboard-card-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tboard-card.is-opening[open] > :not(summary) { animation: none; } }
.tboard-lb-strip > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.tboard-lb-strip-label { position: absolute; right: 8px; bottom: 7px; padding: 4px 8px; border-radius: 7px; background: #000000bf; color: #fff; font-size: 11px; font-weight: 800; }
.tboard-lb-card[open] .tboard-lb-strip { height: auto; }
.tboard-lb-card[open] .tboard-lb-strip > img { height: auto; }
.tboard-lb-card[open] > .tboard-lb-panel { margin-top: 12px; }
.tboard-lb-panel .tboard-facts[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tboard-lb-panel .tboard-facts[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tboard-lb-panel .tboard-panel-body > .tboard-poster + .tboard-panel-data > .tboard-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tboard-lb-panel.is-centered .tboard-panel-body { justify-content: center; }
.tboard-lb-panel.is-links-only > .tboard-links { margin-top: 0; padding-top: 0; border-top: 0; }
/* Card buttons (Bundle B fix 1): View poster, Open room page and the room's own buttons share
   one row. Up to three columns; four make two rows of two. Labels wrap inside their column. */
.tboard-links.tboard-link-row { display: grid; grid-template-columns: repeat(var(--tboard-link-columns, 1), auto); justify-content: center; justify-items: center; align-items: center; }
.tboard-link-row[data-columns="2"] { --tboard-link-columns: 2; }
.tboard-link-row[data-columns="3"] { --tboard-link-columns: 3; }
.tboard-link-row > :is(a, button) { min-width: 0; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
/* Long labels wrap as text, so the ↗ mark stays right after the last word. */
.tboard-link-row > a { display: block; padding-block: 5px; line-height: 18px; }
.tboard-poster-open {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: #7daeff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: zoom-in;
}
.tboard-poster-open:is(:hover, :focus-visible) { text-decoration: underline; }
.tboard-external-mark { flex: none; margin-left: 3px; font-size: 11px; }

/* Poster preview over the page (Bundle B fix 1), styled like the Events poster viewer. */
.tboard-poster-viewer { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; padding: 60px 10px 14px; background: #000000eb; color: #fff; }
.tboard-poster-viewer[open] { display: flex; flex-direction: column; }
.tboard-poster-viewer::backdrop { background: #000000d9; }
.tboard-poster-frame { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.tboard-poster-frame > img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.tboard-poster-missing { margin: 0; color: #a3acba; font-size: 14px; }
.tboard-poster-close { position: absolute; top: 8px; right: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #2e4f92; border-radius: 9px; background: #12264f; color: #e6e8ee; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.tboard-poster-close-x { font-size: 15px; line-height: 1; }

/* V2 day heading and empty day. */
.tboard-lb-day { flex-wrap: wrap; align-items: flex-end; row-gap: 4px; margin-top: 6px; }
.tboard-lb-day > span { white-space: nowrap; }
.tboard-lb-day h2 { color: #f8c512; font-size: 28px; font-weight: 900; letter-spacing: -.6px; line-height: 1; }
.tboard-lb-day h2 small { margin-left: 8px; color: #9aa6b8; font-size: 15px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.tboard-lb-quiet { display: grid; justify-items: center; padding: 24px 16px; border: 1px dashed #ffffff38; border-radius: 16px; text-align: center; }
.tboard-lb-quiet-moon { font-size: 26px; line-height: 1; }
.tboard-lb-quiet strong { margin-top: 10px; color: #fff; font-size: 17px; font-weight: 800; }
.tboard-lb-quiet p { margin: 6px 0 0; color: #9aa6b8; font-size: 13px; }

/* Public batch 1 (19-D48): "Coming up · Next 7 days" under an empty Today; direct tournament link page /t/. */
.tboard-coming-head { margin-top: 14px; }
.tlink { padding: 14px 16px 0; max-width: 640px; margin: 0 auto; box-sizing: border-box; }
.tlink-room { display: inline-block; margin: 14px 2px 24px; font-weight: 700; }

/* "Full calendar" tile at the end of the date strip (TC14 round 2 b2-end, TC44; built 29 Nov 2026). */
.tboard-full-calendar {
  width: 92px;
  gap: 2px;
  border: 1.5px dashed #2f5bc0;
  background: transparent;
  color: #7aa7ff;
  text-align: center;
  text-decoration: none;
}
.tboard-full-calendar .tboard-calendar-icon { width: 18px; height: 18px; margin: 0 auto; }
.tboard-full-calendar strong { font-size: 11.5px; font-weight: 700; line-height: 1.15; }

/* Saves without sign-up (Track A, 29 Nov 2026): star on each card, calendar and share
   under an open card. Phone storage only. */
.tboard-card.has-star { position: relative; }
.lpph-star { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #8290a9; font: 400 18px/1 system-ui, sans-serif; cursor: pointer; }
.lpph-star.is-saved { color: #f5b800; }
.lpph-star:focus-visible { outline: 2px solid #ffd45c; outline-offset: -2px; }
.tboard-card.has-star .lpph-star { position: absolute; right: 2px; bottom: 2px; z-index: 1; }
/* Live Board card: the star sits at the right end of the room-name row; equal side room keeps the row centred. */
.tboard-card.has-star .tboard-lb-room { position: relative; padding: 0 30px; }
.tboard-card.has-star .tboard-lb-room .lpph-star { top: 50%; right: -6px; bottom: auto; transform: translateY(-50%); }
.tboard-save-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px 12px; border-top: 1px solid #13254a; }
.tboard-save-action { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #2e4f92; border-radius: 9px; background: #0b1630; color: #e6e8ee; font: 600 13px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.tboard-save-action:focus-visible { outline: 2px solid #ffd45c; outline-offset: 1px; }
.tboard-save-status { flex-basis: 100%; color: #8ec0ff; font-size: 12px; }
.tboard-save-status:empty { display: none; }


/* LivePokerPH check mark on tournament cards (Ralph 29 Nov, gold seal). */
.tboard-lb-room .lpph-seal { display: inline-block; flex: none; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.4 1.8 3-.2 1 2.8 2.6 1.6-.6 2.9 1.4 2.7-2 2.2-.1 3-2.9.8-1.7 2.5-2.8-1-2.8 1-1.7-2.5-2.9-.8-.1-3-2-2.2 1.4-2.7-.6-2.9 2.6-1.6 1-2.8 3 .2z' fill='%23f8c512'/%3E%3Cpath d='M7.5 12.3l3 3 6-6.3' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; color: transparent; overflow: hidden; font-size: 0; }
/* Tags (Ralph 29 Nov 4:26 AM, pick A): buy-in yellow and black, GTD green. */
.tboard-lb-tag.is-buy-in { background: #f8c512; color: #000; }
.tboard-lb-tag.is-gtd { background: rgba(0, 234, 114, .16); color: #BFF5D6; }

/* Live Board series view (spec locked by Ralph 4 Dec 2026, r2-5): a tournament in a series shows
   the series name in small gold letters above its title; on the Live Board the poster strip opens
   the pop-up and stays a strip when the card is open. */
.tboard-lb-series { display: block; margin: 8px 0 -8px; color: #f8c512; font-size: 11.5px; font-weight: 800; letter-spacing: .9px; line-height: 15px; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
button.tboard-lb-strip { box-sizing: border-box; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tboard-lb-card[open] .tboard-lb-strip.is-popup { height: 54px; }
.tboard-lb-card[open] .tboard-lb-strip.is-popup > img { height: 100%; }
.tboard-lb-strip.is-popup:focus-visible { outline: 2px solid #ffd45c; outline-offset: 2px; }
