/* /live/: the public dashboard. Numbers and charts, all filled in by live.js */
.lv-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: -6px; font-size: 15px; color: var(--ink); }
.lv-wrap { max-width: 1160px; margin: 14px auto 0; padding: 0 20px; }
.lv-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

/* the four numbers at the top */
.lv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lv-tile { background: var(--paper); border-radius: 24px; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lv-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.lv-big { font-family: var(--display); font-size: clamp(46px, 5.4vw, 72px); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lv-small { font-size: 14px; font-weight: 600; color: var(--muted); min-height: 1.4em; }
.lv-here { background: var(--ink); color: var(--white); }
.lv-here .lv-label, .lv-here .lv-small { color: #C9CED6; }

/* cards */
.lv-card { position: relative; background: var(--white); border: 2px solid #E3E3E1; border-radius: 24px; padding: 22px 22px 20px; min-width: 0; }
.lv-h { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.lv-sub { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--muted); }
.lv-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lv-empty { list-style: none; padding: 18px 0 6px; font-size: 15px; color: var(--muted); }
.lv-empty a { color: var(--ink); font-weight: 700; }

/* bar charts over time */
.lv-chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 170px; margin-top: 16px; border-bottom: 2px solid var(--ink); touch-action: pan-y; }
.lv-days { gap: 6px; }
.lv-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.lv-col i { display: block; width: 100%; height: var(--h, 0%); background: var(--ink); border-radius: 4px 4px 0 0; transition: height .7s cubic-bezier(.2, .8, .2, 1), background-color .15s ease; }
.lv-col.is-now i { background: var(--gold); }
.lv-col.is-hover i { background: var(--blue); }
.lv-grid { position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed #C9C6BE; pointer-events: none; }
.lv-grid b { position: absolute; left: 0; top: -9px; padding-right: 6px; background: var(--white); font-size: 12px; font-weight: 700; color: var(--muted); }
.lv-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lv-tip {
  position: absolute; z-index: 2; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 700; white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); opacity: 0; transition: opacity .12s ease;
}
.lv-tip.is-on { opacity: 1; }

/* happening now */
.lv-feed { list-style: none; margin: 12px 0 0; padding: 0; }
.lv-feed li:not(.lv-empty) { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.lv-feed li:last-child { border-bottom: 0; }
.lv-feed li.is-new { animation: lvin .55s cubic-bezier(.2, .8, .2, 1); }
.lv-feed img, .lv-flag { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.lv-flag { background: var(--paper); font-size: 22px; line-height: 1; }
.lv-feed b { font-weight: 800; }
.lv-when { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@keyframes lvin { from { opacity: 0; transform: translateY(-10px); background: #FFF6DC; } to { opacity: 1; transform: none; background: transparent; } }

/* each game */
.lv-games { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lv-games li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.lv-games img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.lv-gname { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 800; }
.lv-gname a { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .03em; }
.lv-gname a:hover { text-decoration: underline; }
.lv-gname span { font-size: 14px; font-weight: 700; color: var(--muted); }
.lv-track { height: 12px; margin-top: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.lv-track i { display: block; height: 100%; width: var(--w, 0%); background: var(--c, var(--ink)); border-radius: 999px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.lv-right { text-align: right; min-width: 74px; }
.lv-right b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.lv-right span { font-size: 12px; font-weight: 700; color: var(--muted); }

/* hardest rounds */
.lv-hard { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.lv-hard li:not(.lv-empty) { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lv-hard li:last-child { border-bottom: 0; }
.lv-hard img { width: 38px; height: 38px; border-radius: 11px; display: block; }
.lv-round { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.lv-round small { display: block; margin-top: 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* top lists: pages, buttons, countries */
.lv-bars { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.lv-bars li:not(.lv-empty) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 5px; align-items: baseline; font-size: 15px; }
.lv-bars .lv-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-bars .lv-name a { color: var(--ink); text-decoration: none; }
.lv-bars .lv-name a:hover { text-decoration: underline; }
.lv-bars .lv-name small { font-weight: 600; color: var(--muted); }
.lv-bars .lv-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-bars .lv-track { grid-column: 1 / -1; height: 8px; margin: 0; }

/* scam radar */
.lv-radar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.lv-stat { background: var(--paper); border-radius: 18px; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.lv-stat:hover { transform: translateY(-2px); }
.lv-stat b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.lv-stat span { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--muted); }

/* the switch on the daily chart */
.lv-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); }
.lv-switch button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lv-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(21, 24, 29, .12); }
.lv-switch button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.lv-foot { max-width: 760px; margin: 24px auto 40px; padding: 0 20px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: balance; }

@media (max-width: 960px) {
  .lv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lv-wrap { padding: 0 16px; margin-top: 10px; }
  .lv-tiles, .lv-two { gap: 10px; }
  .lv-tile { padding: 16px 16px 18px; border-radius: 20px; }
  .lv-label { font-size: 13px; }
  .lv-card { padding: 18px 16px 16px; border-radius: 20px; }
  .lv-h { font-size: 25px; }
  .lv-chart { height: 140px; }
  .lv-radar { grid-template-columns: minmax(0, 1fr); }
  .lv-stat { flex-direction: row; align-items: center; gap: 14px; }
  .lv-stat b { font-size: 38px; min-width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-col i, .lv-track i { transition: none; }
  .lv-feed li.is-new { animation: none; }
}
