/* totoCast — site styles */
:root {
  --bg: #F4F5F1;
  --surface: #FFFFFF;
  --ink: #10201A;
  --sub: #4A5750;
  --muted: #5A6660;
  --faint: #8A958F;
  --line: #DDE2DC;
  --line2: #EEF1ED;
  --accent: #0B6B42;
  --lime: #CFEFA0;
  --lime-bg: #E3F2D2;
  --lime-ink: #2E5B12;
  --warn-bg: #FFF0E3;
  --warn: #9A420A;
  --warn-dot: #B4430C;
  --dark-sub: #A9B6AF;
  --pad: clamp(16px, 4vw, 28px);
  --num: 'Barlow Condensed', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
  line-height: 1.6;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
.num { font-family: var(--num); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 880px; }

/* header */
.site-header {
  max-width: 1120px; margin: 0 auto; padding: 16px var(--pad) 6px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
}
.logo { font-family: var(--num); font-weight: 700; font-size: 28px; letter-spacing: .3px; }
.logo span { color: var(--accent); }
.logo .logo-toto { font-weight: inherit; color: #fff; letter-spacing: 1px;
  text-shadow: 1.5px 0 var(--ink), -1.5px 0 var(--ink), 0 1.5px var(--ink), 0 -1.5px var(--ink), 1px 1px var(--ink), -1px -1px var(--ink), 1px -1px var(--ink), -1px 1px var(--ink); }
.nav {
  min-width: 0; max-width: calc(100% + 24px); margin: 0 -12px;
  display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap;
  gap: 2px; font-size: 14px; font-weight: 500; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 12px; }
.nav a[aria-current="page"] { font-weight: 700; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

/* type */
.eyebrow { font-family: var(--num); font-size: 15px; font-weight: 600; letter-spacing: 4px; color: var(--accent); }
.h1 { margin: 0; font-size: clamp(34px, 9vw, 52px); line-height: 1.15; font-weight: 900; letter-spacing: -1px; }
.h2 { margin: 0; font-size: clamp(22px, 5.5vw, 26px); font-weight: 900; line-height: 1.3; }
.h2-lg { margin: 0; font-size: clamp(26px, 6.5vw, 36px); font-weight: 900; line-height: 1.3; }
.lead { margin: 0; font-size: 16px; color: var(--sub); }
.note { font-size: 12px; color: var(--muted); line-height: 1.8; }
.page-head { padding: 40px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.section { padding-top: clamp(56px, 9vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--accent); }

/* buttons & tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 58px; padding: 0 30px; border-radius: 8px; border: 0;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer;
}
.btn:hover { color: #fff; background: #1c3329; }
.btn svg { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--warn-dot); display: inline-block; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-align: center; }
.tag-public { background: var(--lime-bg); color: var(--lime-ink); }
.tag-test { background: var(--line2); color: var(--sub); }
.tag-none { color: var(--faint); }
.tag-warn { background: var(--warn-bg); color: var(--warn); border-radius: 6px; }

/* footer */
.site-footer { margin-top: 88px; border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 28px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted);
}
.site-footer strong { color: var(--ink); }
.site-footer a { color: #33403A; text-decoration: underline; }

/* ===== home ===== */
.hero { position: relative; overflow: hidden; }
.hero-pitch { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; max-width: 1120px; margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) var(--pad) clamp(56px, 10vw, 96px);
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-title { margin: 0; font-size: clamp(42px, 11vw, 64px); line-height: 1.12; font-weight: 900; letter-spacing: -1.5px; }
.hero-lead { margin: 0; font-size: 18px; color: var(--sub); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ticket {
  flex: 0 1 440px; min-width: 0; background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(16, 32, 26, .12), 0 2px 6px rgba(16, 32, 26, .06);
}
.ticket:hover { color: var(--ink); }
.ticket-head { padding: 22px 24px 16px; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px dashed #D5DBD5; }
.ticket-round { font-family: var(--num); font-size: 34px; font-weight: 700; line-height: 1; }
.ticket-rows { padding: 6px 24px 0; }
.ticket-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--line2); }
.ticket-row .no { font-family: var(--num); font-size: 18px; color: var(--faint); }
.ticket-row .teams { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marks { display: flex; gap: 4px; }
.mark { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--num); font-size: 17px; font-weight: 700; background: #F1F3EF; color: #9AA49E; }
.mark.on { background: var(--accent); color: #fff; }
.ticket-foot { padding: 0 24px 22px; }
.ticket-ghost { height: 50px; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; opacity: .25; filter: blur(2px); }
.ticket-ghost i { display: block; height: 10px; border-radius: 4px; background: #C9D0CA; }
.ticket-ghost b { display: block; width: 92px; height: 28px; border-radius: 6px; background: #C9D0CA; }
.ticket-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }

.band { background: var(--ink); color: #fff; }
.band .wrap { padding-top: clamp(32px, 6vw, 44px); padding-bottom: clamp(32px, 6vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--dark-sub); }
.stat-num { font-family: var(--num); font-size: clamp(40px, 9vw, 64px); font-weight: 700; line-height: 1; white-space: nowrap; }
.stat-num small { font-size: clamp(14px, 3.6vw, 24px); color: var(--dark-sub); }
.stat-num.lime { color: var(--lime); }
.stat-num.cd { font-size: clamp(32px, 4.6vw, 52px); }
@media (max-width: 560px) { .stat-num.cd { font-size: clamp(30px, 8.5vw, 40px); } }
.stat-sub { font-size: 12px; color: var(--dark-sub); }
.stat.hot { padding: 18px 22px; margin: -18px 0; border-radius: 10px; background: var(--lime); color: var(--ink); }
.stat.hot .stat-label, .stat.hot small { color: var(--ink); }

.results { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.results-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.results-copy .underline { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--ink); }
.results-chart { flex: 1 1 520px; min-width: 0; display: flex; align-items: flex-end; gap: 14px; height: 240px; }
.results-chart a { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; text-align: center; }
.results-chart .val { font-family: var(--num); font-size: 26px; font-weight: 700; }
.results-chart .val small { font-size: 14px; color: #6B7770; }
.results-chart .bar { border-radius: 6px 6px 0 0; background: #C9D3CC; }
.results-chart .bar.latest { background: var(--accent); }
.results-chart .lbl { font-family: var(--num); font-size: clamp(12px, 3.4vw, 15px); color: var(--muted); white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.step-no { font-family: var(--num); font-size: 44px; font-weight: 700; line-height: 1; color: var(--accent); }
.step-title { margin: 0; font-size: 18px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--sub); }
.closing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: clamp(32px, 6vw, 56px); }

/* ===== yosou ===== */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 14px; color: var(--sub); }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.highlights > div { background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.hl-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.hl-value { font-size: 15px; font-weight: 700; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.match { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.match-info { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 18px; }
.match-no { flex: 0 0 34px; font-family: var(--num); font-size: 32px; font-weight: 700; color: #B4BDB7; }
.match-info .sub { font-size: 12px; color: var(--muted); }
.match-teams { font-size: 17px; font-weight: 700; line-height: 1.4; }
.match-teams span { font-weight: 400; color: var(--faint); }
.opts { flex: 1 1 340px; max-width: 460px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt {
  min-height: 64px; padding: 8px 12px; border-radius: 8px; border: 1.5px solid #D5DBD5; background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; gap: 2px; cursor: pointer; text-align: left;
}
.opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.opt-pct { font-family: var(--num); font-size: 26px; font-weight: 700; line-height: 1; }
.opt-vote { font-size: 11px; opacity: .8; }
.summary {
  position: static; margin-top: 24px; background: var(--ink); color: #fff; border-radius: 14px;
  padding: clamp(14px, 3vw, 22px) clamp(16px, 3.5vw, 26px); box-shadow: 0 12px 32px rgba(16, 32, 26, .25);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
}
.summary-nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.summary-count { font-family: var(--num); font-size: clamp(34px, 8vw, 44px); font-weight: 700; line-height: 1; }
.summary-price { font-family: var(--num); font-size: 30px; font-weight: 600; line-height: 1; }
.summary small { font-size: 16px; color: var(--dark-sub); }
.summary-hint { font-size: 13px; color: var(--lime); }
.summary-actions { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.btn-lime { flex: 1 1 auto; min-height: 50px; padding: 0 22px; border-radius: 8px; border: 0; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 15px; cursor: pointer; }
.btn-ghost { min-height: 50px; padding: 0 20px; border-radius: 8px; border: 1px solid #4A5A52; background: transparent; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }

/* ===== stats ===== */
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.record { background: var(--surface); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.record.public { border: 2px solid var(--accent); }
.record.dark { background: var(--ink); color: #fff; }
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.record-head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.record-head span { font-size: 13px; color: var(--muted); }
.record.dark .record-head span, .record.dark .k-label, .record.dark .k-sub { color: var(--dark-sub); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.k-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.k-num { font-family: var(--num); font-size: clamp(40px, 10vw, 56px); font-weight: 700; line-height: 1; }
.k-num.accent { color: var(--accent); }
.record.dark .k-num.accent { color: var(--lime); }
.k-sub { font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--sub); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-box { background: var(--surface); border-radius: 14px; padding: 28px clamp(14px, 3vw, 24px) 20px; }
.bars { position: relative; height: 220px; display: flex; align-items: flex-end; gap: clamp(2px, .5vw, 6px); border-bottom: 1px solid #C9D3CC; }
.bars span { flex: 1 1 0; border-radius: 4px 4px 0 0; background: #C9D3CC; }
.bars span.win { background: var(--accent); }
.bars .avg { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--accent); }
.bars .avg-label { position: absolute; right: 0; font-size: 12px; font-weight: 700; color: var(--accent); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--num); font-size: 14px; color: var(--muted); }
.table-box { background: var(--surface); border-radius: 14px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 16px 12px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl .sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line2); }
.tbl .n { font-family: var(--num); font-size: 19px; }
.tbl .n b { font-weight: 700; }
.tbl .n small { font-size: 13px; color: var(--muted); }
.tbl .grade { font-weight: 700; color: var(--faint); }
.tbl .grade.hit { color: var(--accent); }

/* ===== db ===== */
.db-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #E6EAE5; }
.tab { min-height: 44px; min-width: 72px; padding: 0 18px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-family: var(--num); font-size: 20px; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 32, 26, .12); }
.standings td, .standings th { text-align: right; }
.standings td.team, .standings th.team, .standings td.pos, .standings th.pos { text-align: left; }
.standings td { font-family: var(--num); font-size: 18px; padding-top: 11px; padding-bottom: 11px; }
.standings td.team { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 14px; font-weight: 700; }
.standings td.pos { font-weight: 700; color: var(--faint); }
.standings td.pts { font-size: 20px; font-weight: 700; }
.standings .gd-plus { color: var(--accent); font-weight: 700; }
.standings .gd-minus { color: var(--warn); font-weight: 700; }
.team-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 8px; background: transparent; }
.team-dot.in { background: var(--accent); }
.empty { background: var(--surface); border-radius: 14px; padding: 56px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }

/* ===== news ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #D5DBD5; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-card { background: var(--surface); border-radius: 14px; padding: 18px clamp(16px, 4vw, 24px); }
.news-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; }
.news-card h2 { margin: 0; font-size: 17px; font-weight: 900; }
.news-card h2 span { font-family: var(--num); font-size: 20px; color: var(--faint); margin-right: 10px; }
.news-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line2); font-size: 15px; }
.news-item .team { color: var(--muted); }
.news-item .src { margin-left: auto; font-size: 12px; color: var(--faint); }

/* ===== archive ===== */
.current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-radius: 14px; background: var(--ink); color: #fff; }
.current:hover { color: #fff; }
.current .num { font-size: 28px; font-weight: 700; }
.current .tag { background: var(--lime); color: var(--ink); margin-left: 12px; }
.arch-list { margin-top: 14px; background: var(--surface); border-radius: 14px; overflow: hidden; }
.arch-row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px clamp(16px, 4vw, 24px); border-bottom: 1px solid var(--line2); }
.arch-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.arch-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.arch-line .num { font-size: 23px; font-weight: 600; }
.arch-line small { font-size: 12px; color: var(--muted); }
.meter { max-width: 420px; height: 6px; border-radius: 999px; background: var(--line2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.meter.none { background: transparent; }
.arch-row .tag { flex: 0 0 70px; }
.arch-row .hits { flex: 0 0 52px; text-align: right; font-family: var(--num); font-size: 23px; font-weight: 700; }

/* ===== guide ===== */
.callout { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; border-radius: 14px; background: var(--lime); }
.callout strong { font-size: 18px; font-weight: 900; }
.callout span { font-size: 14px; color: #2E3B34; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > div { flex: 1 1 360px; min-width: 0; }
.split p { font-size: 15px; line-height: 1.9; color: var(--sub); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compare > div { background: var(--surface); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.compare > div.dark { background: var(--ink); color: #fff; }
.compare .big { font-family: var(--num); font-size: clamp(34px, 8vw, 48px); font-weight: 700; line-height: 1; }
.compare .dark .big { color: var(--lime); }
.compare small { font-size: 14px; color: var(--muted); }
.compare .dark small, .compare .dark .k-label { color: var(--dark-sub); }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.preset { background: var(--surface); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.preset.rec { border: 2px solid var(--accent); }
.preset h3 { margin: 0; font-size: 19px; font-weight: 900; }
.preset .cond { font-size: 14px; color: var(--sub); line-height: 1.7; }
.preset .cover { padding-top: 10px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.preset .cover b { font-family: var(--num); font-size: 34px; line-height: 1; }
.preset.rec .cover b { color: var(--accent); }
.glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.glossary div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 900; font-size: 16px; }
.glossary dd { margin: 6px 0 0; font-size: 14px; line-height: 1.8; color: var(--sub); }

/* ===== about ===== */
.values { border-top: 2px solid var(--ink); }
.value { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.value .no { flex: 0 0 56px; font-family: var(--num); font-size: 40px; font-weight: 700; line-height: 1; color: var(--accent); }
.value > div { flex: 1 1 400px; }
.value h2 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.value p, .disclaimer p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--sub); }
.disclaimer { margin-top: 56px; background: var(--surface); border-radius: 14px; padding: 28px; }
.disclaimer h2 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }

[hidden] { display: none !important; }

/* filter panel */
.fpanel { margin-top: 36px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.fpanel .chips { margin: 4px 0 16px; flex-wrap: wrap; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fgrid label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.fgrid small { font-weight: 400; color: var(--muted); font-size: 12px; }
.frange { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.frange input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: 600 18px var(--num); text-align: center; background: var(--bg); }
.combos { margin-top: 10px; } .combos summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 14px; }
.combos ol { columns: 2; font: 500 15px var(--num); letter-spacing: 2px; padding-left: 28px; max-height: 360px; overflow: auto; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } .combos ol { columns: 1; } }

/* histograms */
.hist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hist-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.hist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hist-head h3 { margin: 0; font-size: 16px; }
.hist { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin: 12px 0 8px; }
.hcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.hcol i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.hv { font: 600 12px var(--num); color: var(--muted); margin-bottom: 3px; }
.hl { font: 600 13px var(--num); color: var(--sub); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 760px) { .hist-grid { grid-template-columns: 1fr; } .hl { font-size: 10px; } }

/* ===== characters ===== */
.chara { display: block; height: auto; }
.ticket-wrap { flex: 0 1 440px; min-width: 0; position: relative; padding-top: 54px; }
.ticket-wrap .ticket { display: block; position: relative; }
.ticket-peek { position: absolute; top: 0; right: 32px; width: 104px; }
.results-chart { height: 290px; }
.results-chart .chara { align-self: center; width: min(84px, 100%); margin-bottom: -6px; }
.hl-wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 16px; }
.hl-wrap .highlights { flex: 1 1 520px; min-width: 0; }
.hl-chara { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.hl-chara img { width: 124px; }
.head-split { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.head-split > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.head-split > .chara, .head-split > figure { flex: 0 1 300px; width: 300px; max-width: 100%; }
.head-split > figure { flex-basis: 420px; width: auto; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bubbles { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.bubbles span { padding: 8px 12px; border-radius: 12px 12px 12px 2px; background: var(--ink); color: #fff; }
.bubbles span + span { border-radius: 12px 12px 2px 12px; background: var(--lime); color: var(--ink); }
.empty .chara { width: 136px; margin: 0 auto 14px; }

.btn-lime.is-confirm { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 2px var(--warn); }

/* match detail */
.match-info { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.mi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.form-line { display: flex; gap: 12px; flex-wrap: wrap; }
.form { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; }
.form i { font-style: normal; font-size: 11px; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 4px; font-weight: 700; }
.form .fw { background: var(--lime-bg); color: var(--lime-ink); }
.form .fl { background: #F2E3E1; color: #8A2A1E; }
.form .fd { background: var(--line2); color: var(--sub); }
.more-hint { font-size: 12px; font-weight: 700; color: var(--accent); }
.match-info[aria-expanded="true"] .more-hint { opacity: .6; }
.mdetail { flex: 1 1 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dtbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtbl th, .dtbl td { padding: 6px 8px; border-bottom: 1px solid var(--line2); text-align: left; }
.dtbl thead th { font-size: 12px; color: var(--muted); }
.dtbl td.n { font-family: var(--num); font-size: 16px; text-align: right; }
.dtbl td.hot { color: var(--warn); font-weight: 700; }
.dnews { margin: 10px 0 0; padding-left: 0; list-style: none; font-size: 13px; display: grid; gap: 4px; }
.favg { color: var(--accent) !important; } .favg b { font: 700 15px var(--num); }
.summary-actions .btn-ghost { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .dgrid { grid-template-columns: 1fr; } }

/* purchase card: 1画面に収める */
.card-page { padding-top: 8px; padding-bottom: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; margin-bottom: 6px; }
.card-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.card-nav button { padding: 7px 12px; font-size: 13px; font-weight: 700; border-radius: 10px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.card-nav b { font: 700 18px var(--num); }
.ktbl { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.ktbl th { font-size: 11px; color: var(--muted); font-weight: 700; }
.ktbl th:first-child, .ktbl .kno { width: 26px; }
.ktbl .kno { font: 700 15px var(--num); color: var(--faint); text-align: center; }
.ktbl .kc { height: clamp(22px, 3.3vh, 32px); padding: 0 6px; font-size: 12px; font-weight: 700; text-align: center; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ktbl .kc.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.card-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; }
.card-foot b { font: 700 26px var(--num); }

/* stats emphasis */
.havg { display: inline-flex; align-items: baseline; gap: 4px; color: var(--accent); }
.havg b { font: 700 36px/1 var(--num); }
.havg small { font-size: 12px; color: var(--muted); font-weight: 700; }
.hcol i { background: #B9CDBF; }
.hcol.max i { background: var(--accent); }
.hcol.max .hv { color: var(--accent); font-size: 15px; font-weight: 700; }
.viewsw { margin: 0 0 12px; }

.card-page ~ .site-footer { margin-top: 0; }
body:has(.card-page) .site-header { padding-bottom: 0; }
.card-foot { padding: 8px 14px; } .card-foot b { font-size: 22px; }

/* 小さい固定バー（通り数・金額だけ） */
.minisum { position: sticky; bottom: 10px; z-index: 5; margin-top: 24px; display: flex; align-items: baseline; gap: 14px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(16, 32, 26, .25); font-size: 13px; text-decoration: none; }
.minisum b { font: 700 24px/1 var(--num); }
.minisum:hover { color: #fff; }
.minisum-go { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--lime); }
/* 詳細のバー */
.dbar { position: relative; display: block; height: 22px; background: var(--line2); border-radius: 5px; overflow: hidden; min-width: 70px; }
.dbar i { position: absolute; inset: 0 auto 0 0; display: block; border-radius: 5px; }
.dbar.mdl i { background: var(--accent); } .dbar.vot i { background: #E3A46F; }
.dbar b { position: relative; padding-left: 6px; font: 700 14px/22px var(--num); color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 3px #fff; }

.dcomment { margin: 0 0 12px; font-size: 14px; line-height: 1.8; }

.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq p { margin: 10px 0 0; font-size: 14px; line-height: 1.9; color: var(--sub); }

.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.pay .k-num { font: 700 40px/1 var(--num); color: var(--accent); }
.pay.base .k-num { color: var(--sub); }
@media (max-width: 760px) { .paygrid { grid-template-columns: 1fr; } }

.budgets { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--dark-sub); }
.budgets button { padding: 6px 12px; border-radius: 999px; border: 1px solid #4A5A52; background: transparent; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.budgets button[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.tip { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 50%; border: 1px solid var(--faint); background: transparent; color: var(--muted); font: 700 10px/1 sans-serif; cursor: pointer; vertical-align: 1px; padding: 0; }
.tipbox { display: block; margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 400; line-height: 1.6; text-align: left; }
.tipbox[hidden] { display: none; }
