/* Customer mobile board: one compact tip below the prices. */
body.tv-display-body .mobile-market-view .mobile-deal-strip {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 4px;
  padding: 8px 0 0;
  background: linear-gradient(180deg, transparent, #050a08 12px);
}
body.tv-display-body .mobile-market-view .mobile-deal-strip[hidden],
body.tv-display-body .mobile-market-view .mobile-deal-strip:not(.has-tip),
body.tv-display-body .mobile-market-view .mobile-deal-strip article[hidden] { display: none; }
body.tv-display-body .mobile-market-view .mobile-deal-strip article:not([hidden]) {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(38px, auto);
  align-items: center;
  align-content: center;
  gap: 5px 14px;
  height: 100px;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid #f36c7b;
  border-radius: 14px;
  background: #b52638;
  color: #fff;
  box-shadow: 0 -8px 28px #0008;
}
body.tv-display-body .mobile-market-view .mobile-deal-strip span {
  grid-column: 1;
  color: #ffe3e8;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .12em;
}
body.tv-display-body .mobile-market-view .mobile-deal-strip strong {
  grid-column: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 600;
}
body.tv-display-body .mobile-market-view .mobile-deal-strip b {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 27px;
  white-space: nowrap;
}
body.tv-display-body .mobile-market-view .mobile-deal-strip article:not([hidden]) :is(strong, b) {
  color: inherit;
}
.drink-history-status:empty { display: none; }

body.tv-display-body .mobile-market-view .mobile-market-list {
  /* Reserve the full list height so the dock cannot sit inside overflowing rows. */
  min-height: min-content;
}

body.tv-display-body .mobile-market-view:not(.event-closed) {
  grid-template-rows: max-content max-content max-content;
}

/* Option 2: clean exchange. Scope all changes to the customer mobile board. */
body.tv-display-body .mobile-market-view { background: #04100b; gap: 12px; }
body.tv-display-body .mobile-market-hero { padding-top: 24px; gap: 10px; background: transparent; backdrop-filter: none; }
body.tv-display-body .mobile-market-hero h1 { font-size: 25px; line-height: 1.14; letter-spacing: .015em; margin: 4px 0 0; text-shadow: none; color: #f1fbf5; }
body.tv-display-body .mobile-brand img { max-height: 24px; filter: none; }
body.tv-display-body .mobile-venue-label { font-size: 12px; letter-spacing: .18em; }
body.tv-display-body .mobile-live-pill, body.tv-display-body .mobile-crash-timer { min-height: 34px; padding: 8px 10px; font-size: 10px; }
body.tv-display-body .mobile-market-list { gap: 16px; }
body.tv-display-body .mobile-market-list a { min-height: 52px; padding: 10px; background: #0c1912; }
body.tv-display-body .mobile-market-list a span { font-size: 15px; }
body.tv-display-body .mobile-market-list a strong { font-size: 21px; }
@media (max-width: 700px) {
  body.tv-display-body:not(.tv-preview-embed):not(.controller-tv-embed) .tv-sound-unlock { display: none; }
}
.mobile-price-history {
  box-sizing: border-box; position: fixed; inset: 0; margin: 0; padding: 0;
  width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  border: 0; color: #f1fbf5; background: #04100b; overflow-y: auto; overscroll-behavior: contain;
  font-family: Arial, Helvetica, sans-serif;
}
.mobile-price-history::backdrop { background: #04100b; }
.drink-history-shell { box-sizing: border-box; width: min(100%, 620px); margin: auto; padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); }
.drink-history-back, .drink-history-retry { min-height: 44px; border: 1px solid #385444; border-radius: 10px; padding: 10px 14px; background: #101f16; color: #effaf3; font: 600 14px/1.3 Arial, sans-serif; cursor: pointer; }
.drink-history-back:focus-visible, .drink-history-retry:focus-visible { outline: 3px solid #28c64f; outline-offset: 3px; }
.drink-history-eyebrow { margin: 32px 0 10px; font-size: 10px; letter-spacing: .15em; color: #7ec690; }
.mobile-price-history h1 { margin: 0; font-size: clamp(25px, 7vw, 36px); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mobile-price-history h1::after { content: none; }
.drink-history-venue { margin: 12px 0 24px; color: #a3b3a9; font-size: 13px; }
.drink-history-summary { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin: 0 0 24px; }
.drink-history-summary div { border: 1px solid #263e30; border-radius: 12px; background: #0c1912; padding: 14px 10px; min-width: 0; }
.drink-history-summary span { display: block; font-size: 10px; color: #a9b7ae; }
.drink-history-summary strong { display: block; margin-top: 9px; color: #f1fbf5; font-size: clamp(17px, 5.4vw, 26px); letter-spacing: -.03em; }
.drink-history-summary [data-current] { color: #43df72; }
.drink-history-chart { border: 1px solid #263e30; border-radius: 14px; background: #08140d; padding: 12px 0 4px; min-height: 160px; }
.drink-history-chart svg { display: block; width: 100%; height: auto; }
.drink-history-chart svg text { fill: #a9b7ae; font: 11px Arial, sans-serif; }
.drink-chart-grid { stroke: #2c4938; stroke-width: 1; stroke-dasharray: 3 4; }
.drink-chart-grid-minor { opacity: .45; }
.drink-chart-line { stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.drink-chart-line.drink-chart-up { stroke: #82da35; }
.drink-chart-line.drink-chart-down { stroke: #ff443f; }
.drink-chart-line.drink-chart-flat { stroke: #88bca0; }
.drink-chart-point, .drink-chart-dot, .drink-chart-current { stroke: #08140d; stroke-width: 1.5; }
.drink-chart-up { fill: #82da35; }
.drink-chart-down { fill: #ff443f; }
.drink-chart-flat { fill: #88bca0; }
.drink-chart-line { fill: none; }
.drink-history-status { font-size: 12px; line-height: 1.6; color: #bfd0c5; margin: 14px 0; }
.drink-history-retry[hidden] { display: none; }
