:root {
  color-scheme: light;
  --bg: #f9f5ff;
  --glow-1: #ece0ff;
  --glow-2: #ffe1ef;
  --glow-3: #ffecd9;
  --surface: #ffffff;
  --surface-2: #f5effd;
  --surface-3: #ede4fa;
  --line: #ebe2f6;
  --ink: #2b2140;
  --ink-2: #594c6e;
  --muted: #76688d;
  --accent: #8a63d2;
  --accent-text: #6c45ba;
  --accent-soft: #efe7fd;
  --pink: #e0609a;
  --pink-soft: #fde7f1;
  --fox: #ef9150;
  --fox-soft: #fff0e3;
  --live: #ec3466;
  --live-soft: #ffe4eb;
  --chart-1: #8a63d2;
  --chart-grid: #eee7f7;
  --shadow: 0 1px 2px rgb(60 30 90 / 0.04), 0 10px 30px -14px rgb(90 50 140 / 0.22);
  --radius: 22px;
  --radius-sm: 14px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-cute: 'Jua', var(--font);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141019;
    --glow-1: #2a1c3f;
    --glow-2: #35192b;
    --glow-3: #2c2016;
    --surface: #211a2b;
    --surface-2: #2a2236;
    --surface-3: #342a43;
    --line: #362c45;
    --ink: #f4eefc;
    --ink-2: #d0c4e0;
    --muted: #a99cbd;
    --accent: #9b78f0;
    --accent-text: #c5adff;
    --accent-soft: #2f2546;
    --pink: #db5590;
    --pink-soft: #3a2031;
    --fox: #f0a06a;
    --fox-soft: #3a2a1d;
    --live: #ff4d7a;
    --live-soft: #45202c;
    --chart-1: #9b78f0;
    --chart-grid: #342b41;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -16px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* display를 지정한 요소도 hidden 속성으로 숨겨지게 */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 8% -8%, var(--glow-1), transparent 70%),
    radial-gradient(700px 420px at 92% 2%, var(--glow-2), transparent 70%),
    radial-gradient(800px 500px at 50% 110%, var(--glow-3), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

.page { max-width: 1160px; margin: 0 auto; padding: 0 16px 40px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-cute); font-size: 22px; color: var(--ink); }
.notify-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, border-color .15s;
}
.notify-btn:hover { border-color: var(--accent); }
.notify-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.notify-btn:disabled { cursor: not-allowed; opacity: .7; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.h-ico { font-size: 18px; }
.more { font-size: 14px; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.more::after { content: ' →'; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.fineprint { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .wide { grid-column: 1 / -1; }
}

/* 위쪽 두 열: 왼쪽(방송, 카페) / 오른쪽(스케줄, X). 모바일에서는 방송 → 스케줄 → 카페 → X 순서 */
.top { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.col { display: contents; }
#live { order: 1; } #schedule { order: 2; } #cafe { order: 3; } #xcard { order: 4; }
@media (min-width: 960px) {
  .top { grid-column: 1 / -1; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .col { display: grid; gap: 20px; }
}

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--pink)); color: #fff; box-shadow: 0 8px 20px -10px var(--pink); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 20px; align-items: center;
  margin-bottom: 20px; padding: 22px;
  position: relative; overflow: hidden;
}
.hero::after { /* 꼬리처럼 흐르는 장식 */
  content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fox) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.avatar { position: relative; width: 96px; height: 96px; margin-top: 14px; }
.avatar::before, .avatar::after { /* 여우 귀 */
  content: ''; position: absolute; top: -14px; width: 34px; height: 36px;
  background: var(--fox); border-radius: 6px 30px 4px 30px;
}
.avatar::before { left: 2px; transform: rotate(-12deg); border-radius: 30px 6px 30px 4px; }
.avatar::after { right: 2px; transform: rotate(12deg); }
.avatar img {
  position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  background: var(--fox-soft); border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--line);
}
.avatar.is-live img { box-shadow: 0 0 0 3px var(--live), 0 0 0 9px color-mix(in srgb, var(--live) 18%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px var(--live), 0 0 0 14px color-mix(in srgb, var(--live) 6%, transparent); } }

.hero-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero h1 { font-family: var(--font-cute); font-weight: 400; font-size: 36px; line-height: 1.15; letter-spacing: 0; }
.tagline { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  background: var(--surface-2); color: var(--muted);
}
.status-pill.live { background: var(--live); color: #fff; }
.status-pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.social { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 12px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px;
  background: var(--surface-2); color: var(--ink); border: 1px solid transparent;
  transition: transform .15s, border-color .15s;
}
.social-btn:hover { transform: translateY(-2px); border-color: var(--line); }
.social-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; }
.social-ico svg { width: 16px; height: 16px; }
.chzzk .social-ico { background: #00c389; }
.cafe .social-ico { background: #03c75a; }
.youtube .social-ico { background: #ff2d2d; }
.youtube .social-ico svg path { fill: #ff2d2d; }
.youtube .social-ico svg rect { fill: #fff; }
.x .social-ico { background: #14171a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x .social-ico { background: #f4eefc; color: #14171a; } }

@media (min-width: 720px) {
  .hero { grid-template-columns: auto minmax(0, 1fr) auto; padding: 26px 28px; }
  .avatar, .avatar img { width: 104px; height: 104px; }
  .hero h1 { font-size: 42px; }
  .social { grid-column: auto; grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}

/* ---------- live ---------- */
.live-card { display: grid; gap: 18px; }
.live-grid { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) { .live-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.live-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 800; color: #fff;
  background: rgb(20 10 30 / 0.72); backdrop-filter: blur(4px);
}
.badge.live { top: 10px; left: 10px; background: var(--live); }
.badge.viewers { top: 10px; right: 10px; }
.badge.duration { right: 8px; bottom: 8px; padding: 2px 7px; font-size: 12px; font-weight: 700; }
.live-info { display: grid; gap: 10px; align-content: center; }
.live-info h3 { font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.live-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; color: var(--accent-text); }

.off-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--accent-soft), var(--pink-soft) 60%, var(--fox-soft));
}
.off-art img { width: 38%; max-width: 150px; filter: drop-shadow(0 10px 18px rgb(120 60 160 / 0.25)); animation: bob 3.4s ease-in-out infinite; }
@media (max-width: 639px) { .off-art { aspect-ratio: 2 / 1; } .off-art img { width: 30%; } }
.off-art .zzz { position: absolute; top: 18%; right: 26%; font-family: var(--font-cute); font-size: 24px; color: var(--accent-text); opacity: .8; animation: float 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes float { 50% { transform: translate(4px, -6px); opacity: .45; } }
.off-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.next-box {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.next-box .label { font-size: 12.5px; font-weight: 700; color: var(--accent-text); }
.next-box .when { font-size: 18px; font-weight: 800; }
.next-box .sub { font-size: 13.5px; color: var(--ink-2); }
.notice-chip {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--fox-soft); font-size: 14px; font-weight: 600;
}
.notice-chip .ago { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.last-stream { font-size: 14px; color: var(--ink-2); }
.last-stream a { color: var(--accent-text); font-weight: 600; }
.last-stream a:hover { text-decoration: underline; }

/* ---------- schedule ---------- */
.week { display: grid; gap: 4px; }
.day {
  display: grid; grid-template-columns: 54px 52px minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 12px; font-size: 14px;
}
.day .dname { font-weight: 800; }
.day .dname small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.day .time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.day .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day.off .time, .day.off .what { color: var(--muted); }
.day.off .what::before { content: '휴방'; display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.day.today { background: var(--accent-soft); }
.day.today .dname { color: var(--accent-text); }
.day.past { opacity: .55; }
.sched-img {
  position: relative; display: block; width: 100%; padding: 0; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); cursor: zoom-in;
}
.sched-img img { width: 100%; height: auto; }
.sched-img .zoom {
  position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgb(20 10 30 / 0.7); color: #fff; font-size: 12px; font-weight: 700;
  opacity: 0; transition: opacity .15s;
}
.sched-img:hover .zoom, .sched-img:focus-visible .zoom { opacity: 1; }
@media (hover: none) { .sched-img .zoom { opacity: 1; } }

.lightbox {
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 16px;
  border: 0; background: transparent; cursor: zoom-out;
  display: none; place-items: center; align-content: center; gap: 10px;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgb(15 8 24 / 0.85); backdrop-filter: blur(4px); }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100vh - 70px); border-radius: 12px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.lightbox-hint { color: rgb(255 255 255 / 0.75); font-size: 13px; text-align: center; }

.sched-memo { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); }
.sched-src { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.sched-src .lbl { flex: none; }
.sched-src a { color: var(--accent-text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-empty { display: grid; gap: 10px; justify-items: start; padding: 6px 0; font-size: 14px; color: var(--ink-2); }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--surface-2); max-width: 100%; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(60 30 90 / 0.12); }

/* ---------- cafe list ---------- */
.posts { display: grid; }
.post {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
  padding: 11px 6px; border-bottom: 1px solid var(--line);
}
.post:last-child { border-bottom: 0; }
.post:hover .post-title { color: var(--accent-text); }
.post-title { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.post-side { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.post .new { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--live); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 2px; }

/* ---------- X ---------- */
.x-card .card-body { display: grid; gap: 12px; }
.x-profile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.x-profile img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--fox-soft); }
.x-profile strong { display: block; }
.x-profile:hover strong { text-decoration: underline; }

/* ---------- media grid ---------- */
.media-grid { display: grid; gap: 16px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.media { display: grid; gap: 8px; align-content: start; min-width: 0; }
.media .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, var(--accent-soft), var(--pink-soft)); }
.media .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb-ph {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px;
  color: var(--accent-text); font-size: 12.5px; font-weight: 700;
}
.media .thumb .thumb-ph img { width: 34px; height: 34px; opacity: .85; transform: none; } /* 썸네일용 img 규칙보다 우선 */
.badge.adult { top: 8px; left: 8px; padding: 2px 7px; background: var(--live); font-size: 12px; }
.media:hover .thumb img { transform: scale(1.04); }
.media-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media:hover .media-title { color: var(--accent-text); }
.media-meta { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.grid-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.grid-more .count { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- stats ---------- */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
@media (max-width: 719px) { .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.tile .label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.tile .value { margin-top: 2px; font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.tile .value small { font-size: 15px; font-weight: 650; margin-left: 2px; color: var(--ink-2); }
.tile .delta { font-size: 12.5px; color: var(--muted); }
.tile .delta.up { color: #1f9d6b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile .delta.up { color: #4fd39e; } }

.charts { display: grid; gap: 26px; }
@media (min-width: 960px) { .charts { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .charts .span-2 { grid-column: 1 / -1; } }
.chart h3 { font-size: 15.5px; font-weight: 750; }
.chart .sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg text { font-family: var(--font); fill: var(--muted); font-size: 11.5px; }
.chart svg .value-label { fill: var(--ink-2); font-weight: 700; }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .bar { fill: var(--chart-1); transition: opacity .15s; }
.chart .bars.hovering .bar { opacity: .45; }
.chart .bars.hovering .bar.active { opacity: 1; }
.chart .hit { fill: transparent; cursor: pointer; outline: none; }
.chart .line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--chart-1); opacity: .1; }
.chart .dot { fill: var(--chart-1); stroke: var(--surface); stroke-width: 2; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.chart details { margin-top: 10px; font-size: 13px; }
.chart summary { cursor: pointer; color: var(--muted); font-weight: 600; width: fit-content; }
.chart table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.chart th, .chart td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.chart td.num, .chart th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart .table-wrap { overflow-x: auto; }
.chart-note { padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; }

.hbars { display: grid; gap: 12px; }
.hbar { display: grid; gap: 5px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.hbar-top .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-top .val { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-track { height: 12px; border-radius: 4px; background: var(--surface-2); }
.hbar-fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--chart-1); min-width: 4px; }

.tooltip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 260px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 12px 30px -10px rgb(40 20 70 / 0.35);
  font-size: 12.5px; color: var(--ink-2);
}
.tooltip .tt-value { font-size: 16px; font-weight: 800; color: var(--ink); }
.tooltip .tt-title { margin: 2px 0 6px; color: var(--ink); font-weight: 600; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 14px; }
.tooltip .tt-row b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.footer { margin-top: 32px; text-align: center; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
