/**
 * replay-v3 — fully isolated under .rv3-root (no global selectors)
 */

.rv3-root,
.rv3-root *,
.rv3-root *::before,
.rv3-root *::after {
  box-sizing: border-box;
}

.rv3-root {
  --rv3-felt-top: #0c5a82;
  --rv3-felt-mid: #084868;
  --rv3-felt-deep: #063550;
  --rv3-tile-face: #f2efe8;
  --rv3-tile-edge: #c8c2b6;
  --rv3-hud-text: rgba(220, 235, 245, 0.88);
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 1920px;
  min-height: 1080px;
  overflow: hidden;
  font-family: "Bahnschrift", "Segoe UI", "Meiryo UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
  color: #fff;
  background:
    radial-gradient(ellipse 72% 68% at 50% 38%, rgba(0, 55, 90, 0.42) 0%, transparent 58%),
    linear-gradient(180deg, #001a2e 0%, #000f1c 100%);
}

/* ── overlay top HUD ── */
.rv3-root .rv3-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 18px;
  height: auto;
  padding: 2px 8px 14px;
  z-index: 100;
  pointer-events: none;
}

.rv3-root.rv3-root--embedded .rv3-overlay-top {
  min-height: 28px;
  padding-bottom: 16px;
}

.rv3-root .rv3-overlay-badges {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  pointer-events: none;
}

.rv3-root .rv3-hud-badge {
  display: inline-block;
  padding: 1px 4px;
  font-size: 5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border-radius: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.rv3-root .rv3-hud-badge--hit {
  color: #ffe0b2;
  background: rgba(255, 140, 60, 0.22);
  border: 1px solid rgba(255, 180, 80, 0.45);
}

.rv3-root .rv3-hud-badge--danger {
  color: #ffcdd2;
  background: rgba(229, 90, 80, 0.2);
  border: 1px solid rgba(229, 120, 100, 0.4);
}

.rv3-root .rv3-hud-badge--riichi,
.rv3-root .rv3-hud-badge--chase {
  color: #ffccbc;
  background: rgba(255, 120, 80, 0.18);
}

.rv3-root .rv3-hud-badge--bad-wait {
  color: #f8bbd0;
  background: rgba(200, 80, 120, 0.18);
}

.rv3-root .rv3-hud-badge--noten,
.rv3-root .rv3-hud-badge--tenpai-break,
.rv3-root .rv3-hud-badge--deal-in {
  color: rgba(200, 220, 235, 0.85);
  background: rgba(0, 40, 70, 0.35);
}

.rv3-root .rv3-overlay-line {
  position: absolute;
  left: 6px;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(210, 228, 240, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.rv3-root .rv3-details-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 2px;
  border: none;
  background: transparent;
  font-size: 6px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(200, 220, 235, 0.35);
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.rv3-root .rv3-details-btn:hover {
  color: rgba(230, 242, 255, 0.72);
  text-shadow: 0 0 6px rgba(120, 200, 255, 0.35);
}

/* ── center stage（卓が主役・画面占有率 70〜80%） ── */
.rv3-root .rv3-center-stage {
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 6px;
  width: 1400px;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  z-index: 10;
}

/* 卓面 — フェルト・内側影・中心光 */
.rv3-root .rv3-table-core {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.rv3-root .rv3-table-core::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 760px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse 100% 86% at 50% 44%,
    var(--rv3-felt-top) 0%,
    var(--rv3-felt-mid) 38%,
    var(--rv3-felt-deep) 72%,
    rgba(4, 28, 48, 0.4) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.rv3-root .rv3-table-core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 784px;
  height: 576px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow:
    inset 0 0 64px rgba(0, 8, 18, 0.72),
    inset 0 0 22px rgba(0, 35, 58, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.06),
    0 12px 48px rgba(0, 0, 0, 0.55),
    0 0 88px rgba(0, 90, 140, 0.22);
  pointer-events: none;
  z-index: 0;
}

.rv3-root .rv3-table-core > * {
  position: absolute;
  z-index: 1;
}

.rv3-root .rv3-center-board {
  left: 50%;
  top: 50%;
  width: 198px;
  height: auto;
  min-height: 128px;
  transform: translate(-50%, -50%);
  padding: 2px 4px 4px;
  text-align: center;
  background: rgba(0, 35, 58, 0.18);
  border: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.rv3-root .rv3-center-board .rv3-dora {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 5px 0 0;
  padding: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 6px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(200, 220, 235, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.rv3-root .rv3-round-meta {
  margin: 0 0 4px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: rgba(245, 252, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.rv3-root .rv3-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  font-size: 6px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgba(200, 218, 230, 0.72);
}

.rv3-root .rv3-score-grid span {
  text-align: right;
  color: rgba(170, 190, 205, 0.45);
  font-weight: 500;
}

.rv3-root .rv3-score-grid strong {
  font-weight: 700;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.rv3-root .rv3-dora-tiles {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  margin-left: 4px;
  vertical-align: bottom;
}

.rv3-root .rv3-dora-tile {
  display: inline-block;
  width: 20px;
  height: 26px;
  vertical-align: bottom;
}

/* 席 — 卓縁へ吸着（河・tag をセットで近づける） */
.rv3-root .rv3-seat {
  margin: 0;
  padding: 0;
}

.rv3-root .rv3-seat--top {
  left: 50%;
  top: 102px;
  transform: translateX(-50%);
  width: 420px;
  text-align: center;
}

.rv3-root .rv3-seat--top .rv3-player-tag {
  margin-bottom: 2px;
}

.rv3-root .rv3-seat--bottom {
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 420px;
  text-align: center;
}

.rv3-root .rv3-seat--left {
  left: 318px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
}

.rv3-root .rv3-seat--left .rv3-player-tag {
  text-align: right;
  margin-bottom: 2px;
}

.rv3-root .rv3-seat--right {
  right: 318px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  text-align: right;
}

.rv3-root .rv3-seat--right .rv3-player-tag {
  text-align: left;
  margin-bottom: 2px;
}

/* player tag — ゲーム HUD 文字 */
.rv3-root .rv3-player-tag {
  margin: 0 0 1px;
  padding: 0;
  font-size: 6px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: rgba(190, 210, 225, 0.55);
  background: transparent;
  border: none;
  box-shadow: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.rv3-root .rv3-player-tag strong {
  font-weight: 600;
  color: rgba(230, 242, 255, 0.82);
}

.rv3-root .rv3-player-tag .rv3-rank {
  margin-left: 3px;
  color: rgba(170, 190, 205, 0.42);
  font-weight: 500;
}

.rv3-root .rv3-player-tag.is-riichi strong {
  color: rgba(255, 210, 200, 0.95);
  text-shadow: 0 0 6px rgba(255, 100, 80, 0.25);
}

.rv3-root .rv3-player-tag.is-riichi strong::after {
  content: " リーチ";
  color: #ff9e94;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 河 — 牌のみ（枠・影なし・卓貼り付き） */
.rv3-root .rv3-river {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.rv3-root .rv3-seat--top .rv3-river {
  height: auto;
  margin: 0 auto;
}

.rv3-root .rv3-seat--left .rv3-river {
  width: auto;
  height: auto;
  max-width: 200px;
  margin: 0 0 0 auto;
}

.rv3-root .rv3-seat--right .rv3-river {
  width: auto;
  height: auto;
  max-width: 200px;
  margin: 0 auto 0 0;
}

.rv3-root .rv3-seat--left .rv3-hand,
.rv3-root .rv3-seat--right .rv3-hand {
  margin: 3px 0 0 auto;
}

/* 牌 — SVG コンテナ（div 牌面は廃止） */
.rv3-root .rv3-river-tile,
.rv3-root .rv3-hand-tile,
.rv3-root .rv3-dora-tile {
  position: absolute;
  display: block;
  width: 24px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  line-height: 0;
}

.rv3-root .rv3-dora-tile {
  position: relative;
}

.rv3-root .rv3-tile-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 河牌 — 卓埋め込み（影・行列感を最小化） */
.rv3-root .rv3-river-tile .rv3-tile-svg {
  filter: saturate(0.9) brightness(0.94) drop-shadow(0 0.5px 0.5px rgba(0, 18, 34, 0.22));
}

.rv3-root .rv3-river-tile.is-tsumo {
  opacity: 0.55;
}

.rv3-root .rv3-river-tile.is-tsumo .rv3-tile-svg {
  filter: saturate(0.72) brightness(0.88) drop-shadow(0 0.5px 0.5px rgba(0, 18, 34, 0.15));
}

.rv3-root .rv3-river-tile.is-hit .rv3-tile-svg {
  filter: drop-shadow(0 0 6px rgba(255, 120, 100, 0.65));
}

.rv3-root .rv3-river-tile.is-hit.is-cur .rv3-tile-svg {
  filter: saturate(1) brightness(1) drop-shadow(0 0 6px rgba(255, 190, 70, 0.65));
}

.rv3-root .rv3-river-tile.is-cur .rv3-tile-svg {
  filter: saturate(1) brightness(1) drop-shadow(0 0 5px rgba(255, 190, 70, 0.55));
}

.rv3-root .rv3-hand-tile.is-hit .rv3-tile-svg {
  filter: drop-shadow(0 0 5px rgba(255, 120, 100, 0.55));
}

.rv3-root .rv3-river-tile.is-riichi-mark .rv3-tile-svg {
  filter: drop-shadow(0 0 3px rgba(229, 90, 80, 0.5));
}

.rv3-root .rv3-seat--left .rv3-hand-tile,
.rv3-root .rv3-seat--right .rv3-hand-tile {
  width: 24px;
  height: 32px;
}

.rv3-root .rv3-seat--left .rv3-hand--vertical .rv3-hand-tile {
  transform: perspective(160px) rotateY(10deg);
  transform-origin: 100% 50%;
}

.rv3-root .rv3-seat--right .rv3-hand--vertical .rv3-hand-tile {
  transform: perspective(160px) rotateY(-10deg);
  transform-origin: 0% 50%;
}

.rv3-root .rv3-seat--left .rv3-hand--vertical .rv3-hand-tile .rv3-tile-svg {
  filter: drop-shadow(-1px 1px 1px rgba(0, 15, 30, 0.4));
}

.rv3-root .rv3-seat--right .rv3-hand--vertical .rv3-hand-tile .rv3-tile-svg {
  filter: drop-shadow(1px 1px 1px rgba(0, 15, 30, 0.4));
}

/* 側手牌 */
.rv3-root .rv3-hand {
  position: relative;
  margin: 1px 0 0;
  padding: 0;
}

.rv3-root .rv3-seat--right .rv3-hand {
  margin: 3px 0 0 0;
}

.rv3-root .rv3-hand-tile.is-tsumo .rv3-tile-svg {
  filter: drop-shadow(0 0 5px rgba(120, 200, 255, 0.55));
}

/* 自分手牌 — root 下端から固定（河の段数に非依存） */
.rv3-root .rv3-self-hand-hud {
  position: absolute;
  left: 50%;
  bottom: 12px;
  top: auto;
  width: 708px;
  height: 44px;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  z-index: 14;
}

.rv3-root .rv3-self-label {
  position: absolute;
  left: 2px;
  top: -11px;
  margin: 0;
  padding: 0;
  font-size: 6px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(210, 228, 240, 0.72);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 80, 120, 0.2);
  pointer-events: none;
}

.rv3-root .rv3-self-hand-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  height: 44px;
  margin: 0;
  transform: none;
}

/* 自家河 — 手牌上・下端固定・段数は上方向に伸びる */
.rv3-root .rv3-self-river-row {
  position: absolute;
  left: 50%;
  bottom: 60px;
  top: auto;
  transform: translateX(-50%);
  width: 708px;
  z-index: 13;
  pointer-events: none;
}

.rv3-root .rv3-self-river-row .rv3-river,
.rv3-root .rv3-self-river {
  position: relative;
  margin: 0 auto;
}

.rv3-root .rv3-self-hand-row .rv3-hand-tile,
.rv3-root .rv3-hand-tile--self {
  width: 28px;
  height: 38px;
}

.rv3-root .rv3-self-hand-row .rv3-hand-tile .rv3-tile-svg,
.rv3-root .rv3-hand-tile--self .rv3-tile-svg {
  filter: drop-shadow(0 2px 3px rgba(0, 10, 22, 0.55));
}

.rv3-root .rv3-self-hand-row .rv3-hand-tile.is-tsumo {
  margin-left: 2px;
}

.rv3-root .rv3-self-hand-row .rv3-hand-tile.is-tsumo .rv3-tile-svg {
  filter: drop-shadow(0 0 8px rgba(130, 210, 255, 0.5)) drop-shadow(0 2px 3px rgba(0, 10, 22, 0.5));
}

/* ── sidebar — 存在しない HUD ── */
.rv3-root .rv3-sidebar {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 96px;
  transform: translateY(-50%);
  z-index: 50;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0.05;
  transition: opacity 0.16s ease;
  pointer-events: auto;
}

.rv3-root .rv3-sidebar:hover,
.rv3-root .rv3-sidebar:focus-within {
  opacity: 0.72;
  padding: 0;
  background: transparent;
}

.rv3-root .rv3-sidebar button {
  display: block;
  width: 100%;
  margin: 0 0 2px;
  padding: 1px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(195, 215, 228, 0.42);
  font-size: 7px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: color 0.12s ease, opacity 0.12s ease;
  appearance: none;
}

.rv3-root .rv3-sidebar:hover button,
.rv3-root .rv3-sidebar:focus-within button {
  color: rgba(235, 245, 255, 0.9);
}

.rv3-root .rv3-sidebar button:hover {
  color: rgba(240, 248, 255, 0.88);
  text-shadow: 0 0 6px rgba(100, 180, 220, 0.28);
  background: transparent;
}

.rv3-root .rv3-sidebar label {
  display: block;
  margin: 2px 0 0;
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(180, 200, 215, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.rv3-root .rv3-sidebar input[type="range"] {
  width: 100%;
  height: 8px;
  margin: 1px 0 0;
  opacity: 0.5;
}

.rv3-root .rv3-sidebar:hover input[type="range"],
.rv3-root .rv3-sidebar:focus-within input[type="range"] {
  opacity: 0.85;
}

.rv3-root .rv3-sidebar-readout {
  margin: 2px 0 0;
  font-size: 6px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(170, 190, 205, 0.38);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ── bottom graph 帯（viewer では DOM 非表示・描画停止） ── */
.rv3-root .rv3-bottom-stats {
  display: none !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 108px;
  z-index: 30;
  padding: 0 20px 6px;
  background: linear-gradient(0deg, rgba(0, 8, 16, 0.96) 0%, rgba(0, 8, 16, 0.72) 70%, transparent 100%);
  border-top: 1px solid rgba(100, 160, 200, 0.1);
  pointer-events: auto;
}

.rv3-root .rv3-bottom-grid {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 6px;
  bottom: 6px;
}

.rv3-root .rv3-panel-graph {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 332px);
  height: 100%;
  padding: 0 6px 0 0;
}

.rv3-root .rv3-panel-stats {
  position: absolute;
  left: calc(100% - 322px);
  top: 0;
  width: 148px;
  height: 100%;
  padding: 0 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.rv3-root .rv3-panel-ptev {
  position: absolute;
  right: 0;
  top: 0;
  width: 300px;
  height: 100%;
  padding: 0 0 0 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.rv3-root .rv3-ph-title {
  position: absolute;
  left: 4px;
  top: 2px;
  margin: 0;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 190, 210, 0.38);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.rv3-root .rv3-chart-frame {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 14px;
  bottom: 4px;
  overflow: hidden;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.14) 100%);
  border: none;
  border-top: 1px solid rgba(90, 150, 190, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.rv3-root .rv3-chart-frame:hover {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.16) 100%);
  border-color: rgba(100, 180, 220, 0.12);
}

.rv3-root .rv3-graph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 16px 100%, 100% 12px;
  pointer-events: none;
  opacity: 0.55;
}

.rv3-root .rv3-graph-svg,
.rv3-root .rv3-ptev-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.rv3-root .rv3-graph-bars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rv3-root .rv3-graph-bar {
  position: absolute;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.08) 0%, rgba(79, 195, 247, 0.2) 100%);
  border-radius: 1px 1px 0 0;
  transition: background 0.12s ease, opacity 0.12s ease;
  opacity: 0.65;
}

.rv3-root .rv3-panel-graph:hover .rv3-graph-bar {
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.15) 0%, rgba(79, 195, 247, 0.42) 100%);
  opacity: 1;
}

.rv3-root .rv3-graph-line {
  fill: none;
  stroke: url(#rv3-graph-stroke);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: url(#rv3-line-glow);
}

.rv3-root .rv3-graph-area {
  fill: url(#rv3-graph-fill);
  stroke: none;
  opacity: 0.95;
}

.rv3-root .rv3-ptev-line {
  fill: none;
  stroke: url(#rv3-ptev-stroke);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: url(#rv3-ptev-glow);
}

.rv3-root .rv3-ptev-dot {
  fill: #81c784;
  filter: url(#rv3-ptev-glow);
}

.rv3-root .rv3-chart-axis {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.rv3-root .rv3-chart-crosshair {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.35;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}

.rv3-root .rv3-chart-grid-v {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-dasharray: 1 4;
}

.rv3-root .rv3-chart-step-line {
  stroke: rgba(130, 210, 255, 0.55);
  stroke-width: 0.9;
  stroke-dasharray: 3 2;
  vector-effect: non-scaling-stroke;
}

.rv3-root .rv3-chart-hit-line {
  stroke: rgba(255, 180, 100, 0.45);
  stroke-width: 0.7;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}

.rv3-root .rv3-graph-dot--cur {
  filter: url(#rv3-line-glow);
}

.rv3-root .rv3-graph-dot--hit {
  fill: #ffb74d;
  stroke: rgba(255, 255, 255, 0.6);
}

.rv3-root .rv3-graph-bar--cur {
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.2) 0%, rgba(79, 195, 247, 0.55) 100%) !important;
  opacity: 1 !important;
}

.rv3-root .rv3-graph-bar--hit {
  box-shadow: inset 0 0 4px rgba(255, 180, 80, 0.35);
}

.rv3-root .rv3-panel-graph .rv3-chart-frame,
.rv3-root .rv3-panel-ptev .rv3-chart-frame {
  box-shadow: inset 0 0 24px rgba(0, 80, 140, 0.06);
}

.rv3-root .rv3-graph-dot {
  fill: #4fc3f7;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 0.4;
  filter: url(#rv3-line-glow);
}

.rv3-root .rv3-stat-line {
  position: relative;
  margin: 10px 0 0;
  padding: 0 2px;
  font-size: 6px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: rgba(190, 210, 225, 0.58);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.rv3-root .rv3-panel-stats .rv3-stat-line {
  margin-top: 16px;
}

.rv3-root .rv3-panel-stats .rv3-stat-line:first-of-type {
  margin-top: 18px;
}

.rv3-root .rv3-panel-ptev .rv3-chart-frame {
  top: 16px;
  bottom: 6px;
  left: 4px;
  right: 4px;
}

.rv3-root .rv3-panel-ptev .rv3-stat-line {
  position: absolute;
  left: 8px;
  right: 8px;
  margin: 0;
  font-size: 5px;
  line-height: 1;
  opacity: 0.55;
  pointer-events: none;
}

.rv3-root .rv3-panel-ptev .rv3-stat-line:nth-of-type(2) {
  top: 18px;
}

.rv3-root .rv3-panel-ptev .rv3-stat-line:nth-of-type(3) {
  top: 26px;
}

.rv3-root .rv3-chart-frame--ptev {
  left: 2px;
  right: 2px;
}

.rv3-root .rv3-stat-line em {
  float: right;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.rv3-root .rv3-ptev-val {
  color: rgba(140, 220, 150, 0.92);
}

/* index 埋め込み — .rv3-root 内サイズのみ（mount 表示は mount.js） */
.rv3-root.rv3-root--embedded {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 640px;
  height: 720px;
  max-height: calc(100vh - 200px);
  overflow: hidden;
}

.rv3-root.rv3-root--embedded .rv3-center-stage {
  top: 10px;
  bottom: 4px;
  width: 100%;
  max-width: 1400px;
  left: 50%;
  transform: translateX(-50%);
}

