:root {
  --ink: #24182f;
  --plum: #3a2458;
  --paper: #f6f0e6;
  --card: #fffaf3;
  --apricot: #e36a2c;
  --line: #e4d3c0;
  --muted: #6d5a74;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(circle at 100% 0, rgba(227, 106, 44, 0.16), transparent 28%),
    var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  padding-bottom: 88px;
}
.top {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  padding: 10px 12px 12px;
  background: #fff;
  color: #111;
}
.top-logo,
.top-brand > a {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-self: center;
}
.top-brand { display: contents; }
.top-copy,
.top-brand > div {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
}
.brand-logo {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  display: block;
}
.domain {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(90deg, #9a3412, #c2410c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark {
  margin: 4px 0 0;
  color: #3a2458;
  font-family: Literata, Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}
.wordmark span {
  color: #c2410c;
}
.digi-watch,
.clock {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 8px);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a2f78, #24182f);
  box-shadow: 0 3px 0 #e36a2c, inset 0 0 0 1px rgba(255, 176, 137, 0.45);
  color: #fff8ef;
  line-height: 1;
}
.clock-kicker { display: none !important; }
#clockTime {
  display: inline;
  margin: 0;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 18px;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: #7dffb3;
  text-shadow: 0 0 8px rgba(125, 255, 179, 0.55);
}
#clockAmpm {
  color: #ffb089;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
#clockDate {
  display: inline;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff4ea;
}
@media (max-width: 380px) {
  .top { grid-template-columns: 64px minmax(0, 1fr); }
  .brand-logo { width: 64px; height: 64px; }
  .domain { font-size: 16px; }
  .wordmark { font-size: 24px; }
}
.ticker {
  margin: 0;
  padding: 10px 16px;
  background: #ffb089;
  color: #3a1d12;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: auto;
}
main { width: min(760px, calc(100% - 24px)); margin: 0 auto; }
.hero { padding: 22px 0 8px; }
h1 {
  margin: 0 0 10px;
  font-family: Literata, Georgia, serif;
  font-size: clamp(22px, 4.6vw, 34px);
  line-height: 1.25;
  font-weight: 750;
}
.hero p, .note p, .live-note, footer p { color: var(--muted); line-height: 1.55; }
.live, .row, .note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--apricot);
}
.live.is-pair,
.row.is-pair {
  background: #ffe14a;
  border-color: #f0c400;
  border-left-color: #d4a000;
}
.live.is-pair .nums div,
.row.is-pair .nums div {
  background: #fff8cc;
  border-color: #f0d56c;
}
.live.is-pair .nums .jodi,
.row.is-pair .nums .jodi {
  background: #3a2458;
  color: #fff8ef;
}
.live, .note { padding: 16px; margin: 14px 0; }
.live-flag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  background: var(--plum);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live h2, .row h3, .note h2, .block-title {
  margin: 0;
  font-family: Literata, Georgia, serif;
}
.live h2 { text-align: center; }
.block-title { margin: 22px 0 10px; font-size: 28px; }
.nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.nums div {
  background: #f8efe4;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}
.nums span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nums b { display: block; margin-top: 4px; font-size: 26px; }
.ys-load {
  display: inline-block;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: ysLoadPulse 1s ease-in-out infinite;
}
@keyframes ysLoadPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}
.nums .jodi { background: #2b2140; color: #fff8ef; }
.nums .jodi span { color: #f0b089; }
.board { display: grid; gap: 10px; }
.row { padding: 12px; }
.row header { text-align: center; }
.row h3 { text-align: center; }
.mkt-time {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: #3a2458;
  color: #fff8ef;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
}
.btn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 18px; }
.btn-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px;
  background: var(--ink);
  color: #fff8ef;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.btn-grid a:nth-child(even) { background: var(--plum); }
.btn-grid a.span2 { grid-column: 1 / -1; background: #c2410c; color: #fff; }
.chart-wrap { overflow: auto; background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--apricot); }
table.chart { width: 100%; border-collapse: collapse; min-width: 640px; text-align: center; }
table.chart th, table.chart td { border: 1px solid var(--line); padding: 10px 6px; }
table.chart th { background: #2b2140; color: #fff8ef; font-size: 13px; }
table.chart td { font-weight: 800; }
.page-back { display: inline-block; margin: 16px 0; color: var(--plum); font-weight: 800; }
.chart-range {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #3a2458;
  color: #fff8ef;
  font-weight: 800;
  text-align: center;
}
.chart-nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 0;
  background: #fff;
}
.chart-nav a {
  flex: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.chart-nav a:nth-child(1) { background: #0369a1; }
.chart-nav a:nth-child(2) { background: #15803d; }
.chart-nav a:nth-child(3) { background: #c2410c; }
.links { display: flex; gap: 8px; margin-top: 10px; }
.links a, .dock a, .dock button {
  text-decoration: none;
  font-weight: 800;
}
.links a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--plum);
  color: var(--plum);
  background: transparent;
}
.links a:last-child { background: #c2410c; border-color: #c2410c; color: #fff; }
.note h2 { margin: 18px 0 6px; font-size: 22px; }
.note h3 { margin: 14px 0 4px; font-family: Literata, Georgia, serif; font-size: 18px; }
.note ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.note a { color: #c2410c; font-weight: 800; }
a.desk-wa {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  background: #1f7a4d;
  color: #fff8ef;
  text-decoration: none;
  font-weight: 800;
}
.foot-panel {
  width: min(760px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--apricot);
}
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.foot-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  background: var(--plum);
  color: #fff8ef;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.foot-grid a.wide { grid-column: 1 / -1; background: #c2410c; color: #fff; }
.foot-grid a.wa { background: #1f7a4d; }
footer {
  width: min(760px, calc(100% - 24px));
  margin: 10px auto 0;
  padding-bottom: 8px;
}
.foot-name {
  margin-bottom: 0;
  color: var(--ink) !important;
  font-family: Literata, Georgia, serif;
  font-size: 22px;
}
.fine { font-size: 13px; }
.dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  z-index: 20;
  align-items: center;
}
.dock a, .dock button {
  height: 46px;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.dock-wa { background: #1f7a4d; color: #fff; display: flex; align-items: center; justify-content: center; }
.dock-app { background: var(--ink); color: #fff8ef; padding: 0 16px; }
.dock-refresh { background: var(--plum); color: #fff; }
.join-row { display: grid; gap: 10px; margin: 14px 0; }
.wa-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, #25D366, #128C7E);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 0 #087f5b;
}
.wa-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(36, 24, 47, 0.12);
}
.app-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--plum);
  color: #fff;
  font-size: 18px;
}
.app-copy { display: flex; flex-direction: column; flex: 1; }
.app-copy strong { font-size: 16px; }
.app-copy small { color: var(--muted); font-weight: 700; }
.app-go {
  padding: 8px 14px;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.notice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  background: var(--plum);
  color: #fff8ef;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}
.guess-home { margin-top: 8px; }
.final-ank-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 4px;
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3a2458, #24182f);
  color: #fff8ef;
  text-decoration: none;
  box-shadow: 0 7px 0 #e36a2c;
}
.final-ank-btn strong {
  display: block;
  font-family: Literata, Georgia, serif;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.1;
}
.final-ank-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0b089;
  font-weight: 800;
}
.final-ank-go {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e36a2c;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
#noticePosts:empty { display: none; }
.cell-side { display: block; font-size: 12px; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-grid img { width: 100%; height: auto; display: block; background: #fff; }
.load-chart-card {
  margin: 16px 0;
  padding: 16px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  border: 2px solid #ffe600;
  box-shadow: 0 10px 28px rgba(36, 24, 47, 0.16);
}
.load-pill-row { display: flex; justify-content: center; margin-bottom: 8px; }
.load-chart-card h2 {
  margin: 0;
  text-align: center;
  color: #0b1f4a;
  font-size: 22px;
  font-weight: 900;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  background: #b91c1c;
}
.load-controls { display: grid; gap: 10px; margin-top: 12px; }
.load-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; color: #334155; }
.load-select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0b1f4a;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
}
.top-ank-board {
  margin: 14px 0 4px;
  padding: 12px 10px 14px;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(255, 230, 0, 0.22), transparent 55%),
    linear-gradient(180deg, #0b1f4a, #071326);
}
.top-ank-title {
  margin: 0 0 10px;
  text-align: center;
  color: #fde68a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.top-ank-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; }
.top-ank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 14px;
  padding: 10px 6px 12px;
  background: rgba(255, 255, 255, 0.06);
}
.top-ank-card.rank-1 {
  padding-top: 14px;
  padding-bottom: 16px;
  background: linear-gradient(180deg, #f59e0b, #b45309);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
  transform: translateY(-6px);
}
.top-ank-card.rank-2 { background: linear-gradient(180deg, #94a3b8, #475569); }
.top-ank-card.rank-3 { background: linear-gradient(180deg, #fb923c, #c2410c); }
.top-ank-card.is-empty { opacity: 0.45; cursor: default; }
.top-ank-medal { font-size: 16px; line-height: 1; }
.top-ank-label { font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }
.top-ank-digit { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 32px; font-weight: 900; line-height: 1; }
.top-ank-card.rank-1 .top-ank-digit { font-size: 40px; }
.top-ank-meta { font-size: 11px; font-weight: 800; }
.vote-list { display: grid; gap: 8px; margin-top: 14px; }
.vote-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #0f172a;
}
.vote-row.is-aaya { border: 2px solid #22c55e; background: #f0fdf4; }
.vote-row.is-mine { box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.35); }
.vote-row.is-top-1 { border: 2px solid #f59e0b; background: linear-gradient(90deg, #fff7ed, #fef3c7); }
.vote-row.is-top-2 { border: 2px solid #64748b; background: linear-gradient(90deg, #f8fafc, #e2e8f0); }
.vote-row.is-top-3 { border: 2px solid #d97706; background: linear-gradient(90deg, #fff7ed, #ffedd5); }
.top-tag { border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 900; }
.is-top-1 .top-tag { background: #f59e0b; color: #1c1917; }
.is-top-2 .top-tag { background: #64748b; color: #fff; }
.is-top-3 .top-tag { background: #d97706; color: #fff; }
.vote-digit {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
  font-size: 20px;
  background: #fff;
  border: 2px solid currentColor;
}
.vote-digit.very_high { color: #dc2626; }
.vote-digit.high { color: #b45309; }
.vote-digit.moderate { color: #15803d; }
.vote-digit.low, .vote-digit.very_low { color: #1d4ed8; }
.vote-main { display: grid; gap: 6px; min-width: 0; }
.vote-track { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.vote-fill { display: block; height: 100%; border-radius: 999px; }
.vote-fill.very_high { background: linear-gradient(90deg, #fb7185, #ef4444); }
.vote-fill.high { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.vote-fill.moderate { background: linear-gradient(90deg, #4ade80, #22c55e); }
.vote-fill.low, .vote-fill.very_low { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.vote-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vote-percent { font-weight: 900; color: #0f172a; min-width: 42px; }
.vote-pill { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 800; }
.vote-pill.very_high { background: #fee2e2; color: #b91c1c; }
.vote-pill.high { background: #fef3c7; color: #b45309; }
.vote-pill.moderate { background: #dcfce7; color: #15803d; }
.vote-pill.low, .vote-pill.very_low { background: #dbeafe; color: #1d4ed8; }
.aaya-tag { border-radius: 999px; background: #fee2e2; color: #b91c1c; padding: 2px 8px; font-size: 11px; font-weight: 900; }
.load-meta-line { margin: 10px 0 0; text-align: center; color: #475569; font-size: 13px; font-weight: 700; }
.load-msg { margin: 8px 0 0; text-align: center; color: #16a34a; font-size: 13px; font-weight: 700; min-height: 1.1em; }
#noticePosts .nt-card {
  margin: 10px 0;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--apricot);
}
.ys-pop {
  position: fixed;
  z-index: 40;
  width: min(260px, calc(100vw - 16px));
  background: var(--card);
  border-left: 8px solid var(--apricot);
  padding: 18px 14px 14px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(36, 24, 47, 0.28);
}
.ys-pop[hidden] { display: none !important; }
.ys-pop-box { position: relative; }
.ys-pop-x {
  position: absolute;
  top: 4px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
}
.ys-pop h2 { margin: 8px 0; font-family: Literata, Georgia, serif; }
.ys-pop p { color: var(--muted); }
.ys-pop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--apricot);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
@media (max-width: 640px) {
  .row header { text-align: center; }
}

.panel-chart-box {
  width: 100%;
  margin: 8px auto 18px;
  background: #000;
  border: 3px solid #6f24d8;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
}
.panel-chart-row {
  display: grid;
  grid-template-columns: 100px repeat(var(--panel-days, 6), minmax(0, 1fr));
  width: 100%;
  min-height: 72px;
  background: #fff;
  border-bottom: 2px solid #111;
}
.panel-chart-row:last-child { border-bottom: 0; }
.panel-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2px;
  border-right: 1px solid #222;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  color: #111;
}
.panel-cell {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 10px;
  align-items: center;
  column-gap: 1px;
  padding: 1px;
  border-right: 1px solid #222;
  overflow: hidden;
}
.panel-cell:last-child { border-right: 0; }
.panel-side {
  width: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.02;
  color: #111;
}
.panel-jodi {
  text-align: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  color: #050505;
  text-shadow: 1px 1px 0 #d9b84d;
}
.panel-jodi.red { color: #e60000; text-shadow: none; }
.panel-day-header { min-height: 42px; background: #6f24d8; }
.panel-day-header .panel-date { color: #fff; background: #6f24d8; }
.panel-day-name {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: #6f24d8;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.panel-day-name:last-child { border-right: 0; }

.magic-chart-shell {
  width: 100%;
  margin: 8px auto 18px;
  background: #f3e7d3;
  border: 2px solid #c4a574;
  border-radius: 10px;
  padding: 4px;
}
.magic-chart-row {
  display: grid;
  grid-template-columns: 88px repeat(var(--panel-days, 6), minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 3px;
  min-height: 56px;
}
.magic-chart-row.magic-day-header { min-height: 32px; margin-bottom: 5px; }
.magic-date-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4px 2px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  color: #9f1239;
  background: #fff7ed;
  border: 1px solid #f5d0a9;
  border-radius: 8px;
}
.magic-date-box.is-head {
  background: linear-gradient(180deg, #334155 0%, #0f172a 100%);
  color: #fff;
  border-color: #1e293b;
  border-radius: 999px;
}
.magic-day-label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.magic-day-label.day-mon { background: linear-gradient(180deg, #f87171, #dc2626); }
.magic-day-label.day-tue { background: linear-gradient(180deg, #fb923c, #ea580c); }
.magic-day-label.day-wed { background: linear-gradient(180deg, #facc15, #ca8a04); color: #1c1917; }
.magic-day-label.day-thu { background: linear-gradient(180deg, #4ade80, #16a34a); }
.magic-day-label.day-fri { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.magic-day-label.day-sat { background: linear-gradient(180deg, #f472b6, #db2777); }
.magic-day-label.day-sun { background: linear-gradient(180deg, #a78bfa, #6d28d9); }
.magic-cell {
  min-height: 54px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 14px;
  align-items: center;
  column-gap: 2px;
  padding: 2px;
  border-radius: 7px;
  background: #fffdf8;
  border: 1px solid #e8dcc8;
  overflow: hidden;
}
.magic-side {
  width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  color: #111;
}
.magic-jodi {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  white-space: nowrap;
  padding: 4px 2px;
  border-radius: 999px;
  border: 2px solid currentColor;
}
.magic-jodi.is-red {
  background: #fff7ed !important;
  color: #dc2626 !important;
  border-color: #dc2626 !important;
}
.magic-star-cell {
  min-height: 54px;
  border-radius: 7px;
  background: #fffdf8;
  border: 1px solid #e8dcc8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.magic-star-cell span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
@media (max-width: 600px) {
  .panel-chart-row { grid-template-columns: 62px repeat(var(--panel-days, 6), minmax(0, 1fr)); min-height: 58px; }
  .panel-date { font-size: 8px; }
  .panel-day-name { font-size: 8px; }
  .panel-cell { grid-template-columns: 8px minmax(0, 1fr) 8px; }
  .panel-side { width: 8px; font-size: 8px; }
  .panel-jodi { font-size: 13px; }
  .magic-chart-row { grid-template-columns: 36px repeat(var(--panel-days, 6), minmax(0, 1fr)); gap: 2px; min-height: 48px; }
  .magic-chart-row.magic-day-header { min-height: 26px; }
  .magic-cell { min-height: 44px; grid-template-columns: 8px minmax(0, 1fr) 8px; padding: 1px; }
  .magic-side { width: 8px; font-size: 8px; }
  .magic-jodi { font-size: 11px; padding: 2px 1px; }
  .magic-date-box { font-size: 8px; padding: 2px 1px; }
  .magic-day-label { font-size: 8px; letter-spacing: 0; }
  .magic-star-cell { min-height: 44px; }
  .magic-star-cell span { width: 20px; height: 20px; font-size: 11px; }
}
