/* Ride the Bus Daily. Loaded after ../style.css, which carries the shared
   chrome (header, table, cards, question, footer). Only what the daily adds
   lives here. */

.hidden { display: none !important; }

/* ---------- Which deck this is ---------- */
.rtbd-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}
.rtbd-number { font-weight: 800; font-size: 1.1rem; }
.rtbd-date { font-size: 0.88rem; font-weight: 700; color: var(--gof-text-muted); }

/* ---------- Arrived on a friend's link ---------- */
.rtbd-vs-banner {
  background: var(--gof-text);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}
.rtbd-vs-banner b { color: var(--gof-yellow); }

/* ---------- Result ---------- */
.rtbd-result { text-align: center; gap: 12px; }
.rtbd-head {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gof-green-dark);
}
.rtbd-sub { margin: 0; font-weight: 700; color: var(--gof-text-muted); }
.rtbd-vs { margin: 0; font-weight: 700; }

.rtbd-compare { margin: 0; }
.rtbd-crowd { margin: 0 0 6px; font-weight: 700; }
.rtbd-crowd[hidden] { display: none; }
.rtbd-cmp-head { margin: 0 0 8px; font-weight: 800; font-size: 1.1rem; }
.rtbd-bots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.rtbd-bots-label {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gof-text-muted);
}
.rtbd-bot {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gof-bg);
  border: 1.5px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
}
.rtbd-bot-name { font-weight: 400; color: var(--gof-text-muted); }
.rtbd-bot.is-beaten { background: var(--gof-mint); border-color: var(--gof-green); }
.rtbd-bot.is-tied { border-color: var(--gof-yellow); }

.rtbd-wide { width: 100%; }

.rtbd-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.rtbd-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background: var(--gof-bg);
}
.rtbd-tile-v { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.rtbd-tile-l {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gof-text-muted);
}
.rtbd-personal { margin: 0; font-size: 0.9rem; color: var(--gof-text-muted); }
.rtbd-next { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--gof-text-muted); }
.rtbd-next a { color: var(--gof-green-dark); }
#dailyNext[hidden] { display: none; }

.rtbd-ghost {
  display: block;
  width: 100%;
  padding: 8px;
  border: none;
  background: none;
  color: var(--gof-text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}
.rtbd-ghost[hidden] { display: none; }

/* ---------- Share sheet ---------- */
.rtbd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 44, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.rtbd-sheet {
  background: var(--panel-bg);
  border-radius: var(--radius);
  padding: 22px 18px;
  max-width: 380px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.rtbd-sheet-title { margin: 0 0 12px; font-size: 1.4rem; text-align: center; }
.rtbd-field { display: block; margin-bottom: 14px; }
.rtbd-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gof-text-muted);
}
.rtbd-input {
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--gof-text);
}
.rtbd-input:focus { outline: none; border-color: var(--gof-green-dark); }
.rtbd-preview {
  margin: 5px 0 12px;
  padding: 10px 12px;
  background: #f6f8fa;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.rtbd-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.rtbd-link {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--gof-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rtbd-btn-outline {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 2px solid var(--gof-green-dark);
  border-radius: var(--radius-sm);
  background: var(--panel-bg);
  color: var(--gof-green-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* What the daily is, shown in the result slot until the first card flips. It
   runs two lines on a phone, so the slot reserves two there and the board
   does not move when the first result replaces it. */
.rtb-result.rtbd-intro { background: var(--gof-bg); }
@media (max-width: 600px) {
  .rtb-result { min-height: 65px; }
}
@media (max-width: 360px) {
  .rtb-result.rtbd-intro { font-size: 0.78rem; padding: 8px 10px; }
}

/* The daily's captions carry the points too, so they run a line longer than
   the versus game's. Reserve for it so the card row never moves. */
.rtb-question-caption { min-height: 4.05em; }
.rtb-action { min-height: 164px; }
@media (max-width: 420px) {
  .rtb-question-caption { min-height: 5.4em; }
  .rtb-action { min-height: 258px; }
}
