/**
 * HAIDEX replay_v2 — NAGA風「卓中心プレイヤー」+ 高密度 compact
 * 既存 replay ロジックは流用。DOM 配置・見た目のみ。
 */

:root {
  --rv2-sidebar-width: 88px;
  --rv2-tile-size: 27px;
  --rv2-river-tile-size: 27px;
  --rv2-hand-tile-max-h: 38px;
  --rv2-overlay-h: 20px;
  --rv2-title-chrome-h: 22px;
  --rv2-stats-h: 0px;
  --rv2-player-font: 8px;
  --rv2-player-font-stats: 7px;
  /* 固定 scale のフォールバック（clamp は .replay-v2-root で上書き） */
  --rv2-table-scale: 0.8;
}

/* --- panel: replay player（card / 管理画面感を削る） --- */
#replay_panel.replay-ui-v2-active.card {
  margin-top: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  max-height: calc(100vh - 48px);
  background: #e8ecef;
}

#replay_panel.replay-ui-v2-active .replay-panel-inner {
  position: relative;
  padding: 0;
  min-height: 0;
  height: calc(100vh - 52px);
  max-height: calc(100vh - 52px);
  overflow: hidden;
}

#replay_panel.replay-ui-v2-active .replay-panel-title-row {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  margin: 0;
  min-height: var(--rv2-title-chrome-h);
  border-bottom: 1px solid rgba(176, 190, 197, 0.5);
  background: rgba(248, 250, 251, 0.92);
}

#replay_panel.replay-ui-v2-active .replay-panel-title-row > div:first-child {
  display: none;
}

#replay_panel.replay-ui-v2-active .replay-panel-title-row .muted {
  display: none;
}

#replay_panel.replay-ui-v2-active .replay-close {
  padding: 2px 8px;
  font-size: 10px;
}

.replay-ui-mode-toggle {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
}

.replay-ui-mode-btn {
  padding: 2px 7px;
  font-size: 10px;
  border: 1px solid #b0bec5;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.replay-ui-mode-btn.is-active {
  background: #37474f;
  color: #fff;
  border-color: #37474f;
}

/* v1 縦積みステージは非表示（ノードは v2 へ移動） */
#replay_panel.replay-ui-v2-active > .replay-panel-inner > #replay_stage,
#replay_panel.replay-ui-v2-active > .replay-panel-inner > #replay_source_meta,
#replay_panel.replay-ui-v2-active > .replay-panel-inner > #replay_game_datetime,
#replay_panel.replay-ui-v2-active > .replay-panel-inner > #replay_top_bar,
#replay_panel.replay-ui-v2-active > .replay-panel-inner > #replay_hit_nav {
  display: none !important;
}

#replay_v2_mount {
  margin: 0;
  padding: 0;
  height: calc(100% - var(--rv2-title-chrome-h));
  min-height: 0;
}

/* --- v2 root / stage --- */
.replay-v2-root {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* viewport 連動（1920x1080 付近で ~0.80、低い画面で縮小） */
  --rv2-table-scale: clamp(
    0.72,
    calc(0.86 - (100svh - 1000px) * 0.00038),
    0.84
  );
}

@supports not (height: 1svh) {
  .replay-v2-root {
    --rv2-table-scale: clamp(0.72, calc(0.86 - (100vh - 1000px) * 0.00038), 0.84);
  }
}

.replay-v2-root[hidden] {
  display: none !important;
}

.replay-v2-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(180deg, #eef2f5 0%, #e8ecef 55%, #dfe6eb 100%);
}

/* --- overlay top（ゲーム HUD・常時1行） --- */
.replay-v2-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: var(--rv2-sidebar-width);
  height: var(--rv2-overlay-h);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px 1px 5px;
  box-sizing: border-box;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.28) 75%,
    transparent 100%
  );
  border-bottom: none;
}

.replay-v2-overlay-top > * {
  pointer-events: auto;
}

.replay-v2-overlay-compact {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 6px;
  font-size: 8px;
  line-height: 1.1;
  color: #607d8b;
  overflow: hidden;
}

/* HUD 1行: meta / 日時は compact-summary に集約（常時非表示） */
.replay-v2-overlay-slot--meta,
.replay-v2-overlay-slot--datetime {
  display: none !important;
}

.replay-v2-overlay-slot--topbar {
  flex: 1 1 auto;
  min-width: 0;
  max-height: var(--rv2-overlay-h);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.replay-v2-overlay-slot--topbar .replay-top-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  max-height: none;
  font-size: 9px;
  line-height: 1.15;
  width: 100%;
  overflow: hidden;
}

.replay-v2-overlay-slot--topbar .replay-compact-summary {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.1;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #37474f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: none;
  opacity: 0.95;
}

.replay-v2-overlay-slot--topbar details.replay-fold {
  flex: 0 0 auto;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.replay-v2-overlay-slot--topbar details.replay-fold > summary {
  display: inline-block;
  margin: 0;
  padding: 0 2px;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.1;
  color: rgba(96, 125, 139, 0.75);
  background: transparent;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.replay-v2-overlay-slot--topbar details.replay-fold > summary::-webkit-details-marker {
  display: none;
}

.replay-v2-overlay-slot--topbar details.replay-fold > summary::before {
  content: "▸ ";
  font-size: 8px;
  opacity: 0.75;
}

.replay-v2-overlay-slot--topbar details.replay-fold[open] > summary::before {
  content: "▾ ";
}

.replay-v2-overlay-slot--topbar details.replay-fold[open] > summary {
  color: #455a64;
}

.replay-v2-overlay-slot--topbar .replay-fold-body {
  position: absolute;
  top: calc(var(--rv2-overlay-h) - 2px);
  left: 4px;
  right: calc(var(--rv2-sidebar-width) + 8px);
  z-index: 45;
  margin: 0;
  padding: 4px 6px;
  max-height: min(36vh, 280px);
  overflow: auto;
  font-size: 9px;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(176, 190, 197, 0.65);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(38, 50, 56, 0.12);
}

.replay-v2-overlay-slot--topbar .replay-fold-body .replay-info-block {
  margin: 0 0 3px;
  padding: 2px 0;
  border: none;
  background: transparent;
}

.replay-v2-overlay-slot--topbar .replay-fold-body .replay-info-block strong {
  font-size: 9px;
  margin-bottom: 1px;
}

.replay-v2-overlay-slot--topbar .replay-details-unified .replay-details-meta,
.replay-v2-overlay-slot--topbar .replay-analysis-lines {
  font-size: 9px;
  line-height: 1.22;
}

.replay-v2-overlay-slot--topbar .replay-warn {
  margin-top: 2px;
  padding: 3px 5px;
  font-size: 9px;
}

.replay-v2-overlay-slot--hitnav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1px;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.replay-v2-overlay-top:hover .replay-v2-overlay-slot--hitnav {
  opacity: 1;
}

.replay-v2-overlay-slot--hitnav .replay-bottom-bar {
  margin: 0;
  padding: 0;
  gap: 1px;
  flex-wrap: nowrap;
  background: transparent;
  border: none;
}

.replay-v2-overlay-slot--hitnav .replay-bottom-bar button {
  padding: 0 4px;
  font-size: 8px;
  line-height: 1.1;
  border-radius: 2px;
  opacity: 0.9;
}

.replay-v2-overlay-slot--hitnav .replay-step-readout {
  display: none;
}

/* --- 卓クラスタ（中央固定） --- */
.replay-v2-table-cluster {
  position: absolute;
  left: calc(50% - var(--rv2-sidebar-width) / 2);
  top: calc(50% + var(--rv2-overlay-h) * 0.22 - var(--rv2-stats-h) / 2);
  transform: translate(-50%, -50%);
  z-index: 10;
  display: block;
  width: min(900px, calc(100% - var(--rv2-sidebar-width) - 12px));
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  pointer-events: none;
}

.replay-v2-table-cluster > * {
  pointer-events: auto;
}

.replay-v2-table-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.replay-v2-stage-main.replay-stage-main {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

/* --- 手牌（卓底辺・dock/card 感の除去） --- */
.replay-v2-self-hand {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  line-height: 0;
}

.replay-v2-self-name {
  position: absolute;
  left: max(0px, calc(50% - min(450px, 46vw) / 2));
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 0 2px;
  font-size: 7px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(55, 71, 79, 0.62);
  pointer-events: none;
  white-space: nowrap;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.replay-v2-self-name:empty,
.replay-v2-self-name[hidden] {
  display: none;
}

.replay-v2-self-hand .replay-self-hand-dock,
.replay-v2-self-hand-inner.replay-self-hand-dock {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.replay-v2-self-hand .replay-hand-row {
  justify-content: center;
  gap: 1px;
  margin: 0 auto;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.replay-v2-self-hand .replay-hand-row::before {
  display: none !important;
  content: none !important;
}

.replay-v2-self-hand .replay-hand-text-sub {
  margin: 1px 0 0;
  padding: 0;
  font-size: 8px;
  line-height: 1.1;
  color: #78909c;
  background: transparent;
}

.replay-v2-self-hand .replay-hand-row .replay-tile-svg-img,
.replay-v2-self-hand .replay-hand-row .replay-tile-btn.replay-tile-svg {
  width: var(--rv2-tile-size);
  max-height: var(--rv2-hand-tile-max-h);
}

/* --- sidebar（操作 HUD・存在感最小） --- */
.replay-v2-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--rv2-sidebar-width);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 2px 2px;
  box-sizing: border-box;
  background: transparent;
  border-left: none;
  opacity: 0.58;
  transition: opacity 0.15s ease, background 0.15s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.replay-v2-sidebar:hover,
.replay-v2-sidebar:focus-within {
  opacity: 0.96;
  background: rgba(245, 247, 249, 0.42);
}

.replay-v2-sidebar .replay-step-dock {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 100% !important;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  pointer-events: auto;
  opacity: 1;
}

.replay-v2-sidebar .replay-bottom-bar--dock {
  position: static !important;
  transform: none !important;
  transform-origin: unset !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 2px 1px;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.replay-v2-sidebar .replay-bottom-bar--dock button {
  width: 100%;
  margin: 0;
  padding: 2px 3px;
  font-size: 8px;
  line-height: 1.1;
  border-radius: 2px;
  border-color: rgba(176, 190, 197, 0.55);
  background: rgba(255, 255, 255, 0.55);
}

.replay-v2-sidebar:hover .replay-bottom-bar--dock button,
.replay-v2-sidebar:focus-within .replay-bottom-bar--dock button {
  background: #fff;
}

.replay-v2-sidebar .replay-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  font-size: 8px;
  line-height: 1.1;
  width: 100%;
}

.replay-v2-sidebar .replay-slider-wrap input[type="range"] {
  width: 100%;
  margin: 0;
  height: 14px;
}

.replay-v2-sidebar .replay-step-readout {
  font-size: 8px;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
  margin: 0;
  padding: 0 1px;
  opacity: 0.88;
}

/* --- v2 卓スケール --- */
.replay-ui-v2-active .replay-v2-root .replay-mat-scale-shell {
  --replay-mat-scale: var(--rv2-table-scale);
  --replay-scale-gap-pull: 0vh;
  transform: scale(var(--rv2-table-scale));
  transform-origin: top center;
  width: calc(100% / var(--rv2-table-scale));
  max-width: calc(900px / var(--rv2-table-scale));
  margin: 0 auto !important;
  margin-bottom: 0 !important;
}

.replay-ui-v2-active .replay-v2-root .replay-mat {
  gap: 0 1px;
  grid-template-columns: minmax(52px, 0.82fr) minmax(108px, 188px) minmax(52px, 0.82fr);
}

/* --- player block 極小化（卓の補助ラベル） --- */
.replay-ui-v2-active .replay-v2-root .replay-pos--toimen {
  margin-bottom: -18px;
  padding-bottom: 0;
}

/* 自家 player UI 廃止（河・手牌・牌位置は不変） */
.replay-ui-v2-active .replay-v2-root .replay-pos--self {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
  height: 0;
  overflow: visible;
  line-height: 0;
}

.replay-ui-v2-active .replay-v2-root .replay-pos--self .replay-player {
  display: none !important;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

.replay-ui-v2-active .replay-v2-root .replay-pos--center {
  max-width: 200px;
}

.replay-ui-v2-active .replay-v2-root .replay-pos--shimocha,
.replay-ui-v2-active .replay-v2-root .replay-pos--kamicha {
  min-width: 0;
  max-width: 118px;
}

.replay-ui-v2-active .replay-v2-root .replay-seat-stack--toimen {
  gap: 1px;
  padding-bottom: 0;
}

.replay-ui-v2-active .replay-v2-root .replay-seat-area--toimen .replay-seat-label,
.replay-ui-v2-active .replay-v2-root .replay-seat-area--toimen .replay-seat-status {
  margin-bottom: 0;
  padding-bottom: 0;
}

.replay-ui-v2-active .replay-v2-root .replay-seat-area--shimocha,
.replay-ui-v2-active .replay-v2-root .replay-seat-area--kamicha {
  padding: 1px 2px;
}

.replay-ui-v2-active .replay-v2-root .replay-seat-side-layout {
  gap: 2px;
}

.replay-ui-v2-active .replay-v2-root .replay-seat-info-stack {
  gap: 1px;
}

.replay-ui-v2-active .replay-v2-root .replay-player {
  border: none;
  border-radius: 2px;
  padding: 1px 3px !important;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: none;
  font-size: var(--rv2-player-font);
  line-height: 1.1;
}

.replay-ui-v2-active .replay-v2-root .replay-player--riichi {
  background: rgba(255, 245, 245, 0.78);
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0.35);
}

.replay-ui-v2-active .replay-v2-root .replay-player-head {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px;
  margin: 0 0 1px !important;
  padding: 0 !important;
  min-height: 0;
  font-size: var(--rv2-player-font);
  line-height: 1.1;
}

.replay-ui-v2-active .replay-v2-root .replay-player-title {
  font-weight: 600;
  font-size: var(--rv2-player-font);
  line-height: 1.1;
  max-width: 72%;
}

.replay-ui-v2-active .replay-v2-root .replay-player-stats {
  font-size: var(--rv2-player-font-stats);
  line-height: 1.1;
  color: #78909c;
  max-width: 42%;
}

.replay-ui-v2-active .replay-v2-root .replay-player-furo,
.replay-ui-v2-active .replay-v2-root .replay-seat-status.replay-player-furo {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 !important;
  padding: 0;
  min-height: 0;
  font-size: var(--rv2-player-font-stats);
  line-height: 1.05;
  opacity: 0.9;
}

.replay-ui-v2-active .replay-v2-root .replay-meld-group {
  gap: 1px;
  padding: 0 2px;
  margin: 0;
  border: 1px dotted rgba(144, 164, 174, 0.55);
  border-radius: 2px;
  background: rgba(250, 250, 250, 0.6);
  font-size: var(--rv2-player-font-stats);
}

.replay-ui-v2-active .replay-v2-root .replay-pos--toimen .replay-player {
  padding: 0 3px 2px !important;
}

.replay-ui-v2-active .replay-v2-root .replay-pos--toimen .replay-player-head,
.replay-ui-v2-active .replay-v2-root .replay-pos--self .replay-player-head {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 10px;
}

.replay-ui-v2-active .replay-v2-root .replay-pos--toimen .replay-player-head {
  margin-bottom: 2px !important;
}

.replay-ui-v2-active .replay-v2-root .replay-pos--self .replay-player-head {
  margin-top: 0 !important;
  padding: 1px 2px !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
}

.replay-ui-v2-active .replay-v2-root .replay-pos--toimen .replay-player-title,
.replay-ui-v2-active .replay-v2-root .replay-pos--self .replay-player-title {
  font-size: var(--rv2-player-font);
  max-width: 58%;
}

.replay-ui-v2-active .replay-v2-root .replay-pos--toimen .replay-player-stats,
.replay-ui-v2-active .replay-v2-root .replay-pos--self .replay-player-stats {
  font-size: var(--rv2-player-font-stats);
}

.replay-ui-v2-active .replay-v2-root .replay-pos--shimocha .replay-player,
.replay-ui-v2-active .replay-v2-root .replay-pos--kamicha .replay-player {
  padding: 1px 2px !important;
  font-size: var(--rv2-player-font);
}

.replay-ui-v2-active .replay-v2-root .replay-pos--shimocha .replay-player-head,
.replay-ui-v2-active .replay-v2-root .replay-pos--kamicha .replay-player-head {
  gap: 1px;
  margin-bottom: 0 !important;
  font-size: var(--rv2-player-font);
}

.replay-ui-v2-active .replay-v2-root .replay-seat-area--shimocha .replay-player-title,
.replay-ui-v2-active .replay-v2-root .replay-seat-area--kamicha .replay-player-title,
.replay-ui-v2-active .replay-v2-root .replay-seat-area--shimocha .replay-player-stats,
.replay-ui-v2-active .replay-v2-root .replay-seat-area--kamicha .replay-player-stats {
  font-size: var(--rv2-player-font-stats);
  line-height: 1.1;
}

/* 中央卓メタも控えめ（位置は不変） */
.replay-ui-v2-active .replay-v2-root .replay-table-center {
  padding: 2px 4px;
  font-size: 9px;
  line-height: 1.15;
}

.replay-ui-v2-active .replay-v2-root .replay-table-center-kmeta {
  font-size: 9px;
  margin-bottom: 1px;
  line-height: 1.15;
}

.replay-ui-v2-active .replay-v2-root .replay-table-center-score-mat {
  gap: 1px;
  font-size: 8px;
}

.replay-ui-v2-active .replay-v2-root .replay-table-center-dora-label {
  font-size: 8px;
}

/* 河・牌（サイズのみ、位置ロジック不変） */
.replay-ui-v2-active .replay-v2-root .discard-river .discard-tile .replay-tile-svg-img,
.replay-ui-v2-active .replay-v2-root .discard-river .discard-tile-img {
  width: var(--rv2-river-tile-size);
  max-height: var(--rv2-hand-tile-max-h);
}

.replay-ui-v2-active .replay-v2-root .discard-river .discard-tile-wrap.discard-riichi {
  width: calc(var(--rv2-river-tile-size) + 4px);
  height: calc(var(--rv2-hand-tile-max-h) - 8px);
}

.replay-ui-v2-active .replay-v2-root .replay-river.discard-river {
  padding: 2px 4px;
  border-radius: 3px;
}

.replay-ui-v2-active .replay-v2-root .replay-river-flow {
  gap: 1px 2px;
}

.replay-ui-v2-active .replay-v2-root .replay-seat-area--shimocha .replay-river-flow,
.replay-ui-v2-active .replay-v2-root .replay-seat-area--kamicha .replay-river-flow {
  column-gap: 8px;
  row-gap: 0;
}

.replay-ui-v2-active .replay-v2-root .replay-river-wrap--shimocha,
.replay-ui-v2-active .replay-v2-root .replay-river-wrap--kamicha {
  padding: 0;
}

.replay-ui-v2-active .replay-v2-root .replay-self-hand-dock {
  --replay-hand-svg-width: var(--rv2-tile-size);
  --replay-hand-svg-max-height: var(--rv2-hand-tile-max-h);
}

.replay-ui-v2-active .replay-v2-root .replay-mat-wrap--loading .replay-mat-scale-shell {
  display: none;
}

.replay-ui-v2-active .replay-v2-root .replay-loading {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 12;
  padding: 8px 10px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  border: 1px solid #cfd8dc;
}

.replay-v2-stats-bottom {
  position: absolute;
  left: 0;
  right: var(--rv2-sidebar-width);
  bottom: 0;
  height: var(--rv2-stats-h);
  z-index: 15;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

@media (max-width: 1100px) {
  :root {
    --rv2-sidebar-width: 84px;
    --rv2-overlay-h: 18px;
  }

  .replay-v2-root {
    --rv2-table-scale: clamp(0.7, calc(0.84 - (100svh - 900px) * 0.00042), 0.82);
  }
}
