/* ═══════════════════════════════════════
   天才ボートくん — Design System v2
   ═══════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Brand */
  --navy-900: #0a1528;
  --navy-800: #0f1e3c;
  --navy-700: #1a2d52;
  --navy-600: #243d6a;
  --navy-50: #f4f6fa;

  /* Accent */
  --accent-700: #b42e14;
  --accent-600: #c7351a;
  --accent-500: #e8401c;
  --accent-400: #f06040;
  --accent-100: #fde8e4;

  /* Functional */
  --success-700: #15532d;
  --success-600: #166534;
  --success-500: #22c55e;
  --success-100: #dcfce7;
  --info-700: #1e3a8a;
  --info-600: #1e40af;
  --info-500: #3b82f6;
  --info-100: #dbeafe;
  --warn-600: #92400e;
  --warn-100: #fef3c7;
  --purple-700: #5b21b6;
  --purple-600: #6d28d9;
  --purple-100: #ede9fe;
  --rose-700: #9f1239;
  --rose-600: #be123c;
  --rose-100: #ffe4e6;

  /* Neutrals */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  /* Waku */
  --waku-1-bg: #f0f0f0; --waku-1-text: #333;
  --waku-2-bg: #1a1a1a; --waku-2-text: #fff;
  --waku-3-bg: #dc2626; --waku-3-text: #fff;
  --waku-4-bg: #1d4ed8; --waku-4-text: #fff;
  --waku-5-bg: #eab308; --waku-5-text: #333;
  --waku-6-bg: #16a34a; --waku-6-text: #fff;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'LINE Seed JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--info-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--info-700); }

img { max-width: 100%; display: block; }


/* ─── Layout ─── */
.container { max-width: 1060px; margin: 0 auto; padding: 0 16px; }


/* ─── Header ─── */
.site-header {
  background: var(--navy-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent-500);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .3px;
}
.site-logo:hover { text-decoration: none; opacity: .92; }
.logo-mark { flex-shrink: 0; }
.logo-text { color: var(--white); }
.logo-ai { color: var(--accent-400); }

.site-nav { display: flex; align-items: center; gap: 14px; }
.nav-link {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.08); color: var(--white); text-decoration: none; }
.nav-date { color: rgba(255,255,255,.45); font-size: 12px; font-weight: 400; }


/* ─── Footer ─── */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 28px 0;
  margin-top: 56px;
  font-size: 12px;
  line-height: 1.7;
}
.footer-brand {
  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.footer-warn { margin-bottom: 8px; max-width: 520px; margin-left: auto; margin-right: auto; }
.footer-copy { color: rgba(255,255,255,.25); }


/* ─── Main ─── */
.site-main { padding: 24px 0 56px; min-height: 60vh; }


/* ─── Breadcrumb ─── */
.breadcrumb { font-size: 12px; color: var(--gray-400); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray-400); font-weight: 400; }
.breadcrumb a:hover { color: var(--info-600); }
.breadcrumb span { color: var(--gray-600); }


/* ─── Page Header ─── */
.page-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 4px;
  letter-spacing: -.2px;
}
.page-title small {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  margin-left: 10px;
}
.page-subtitle { color: var(--gray-500); font-size: 13px; font-weight: 400; }


/* ─── Date Nav ─── */
.date-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.date-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 700;
  transition: all .2s var(--ease-out);
}
.date-btn:hover {
  background: var(--navy-50);
  border-color: var(--navy-700);
  color: var(--navy-800);
  text-decoration: none;
}
.date-btn.active {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}


/* ─── Ad Slot ─── */
.ad-slot { margin: 20px 0; }
.ad-placeholder {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 24px;
  color: var(--gray-400);
  font-size: 12px;
}


/* ─── Badges (common) ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-pred { background: rgba(255,255,255,.12); color: rgba(180,200,255,.9); }
.badge-result { background: rgba(255,255,255,.12); color: rgba(160,240,176,.9); }


/* ─── Venue Count Note ─── */
.venue-count-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 8px 0;
}

/* ─── Venue Grid (Top page) ─── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.venue-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.venue-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.venue-card-header {
  padding: 12px 16px 10px;
  background: var(--navy-50);
  border-left: 4px solid var(--navy-800);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.venue-header-left { display: flex; flex-direction: column; gap: 4px; }
.venue-name { font-size: 16px; font-weight: 800; color: var(--navy-800); }
.venue-name a { color: var(--navy-800); }
.venue-name a:hover { text-decoration: none; opacity: .8; }
.venue-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.grade-badge {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
}
.grade-sg  { background: #fef3c7; color: #92400e; }
.grade-g1  { background: #fde8e4; color: #b42e14; }
.grade-g2  { background: #dbeafe; color: #1e40af; }
.grade-g3  { background: #dcfce7; color: #166534; }
.timezone-badge {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  background: var(--gray-100); color: var(--gray-600);
}
.venue-title-bar {
  padding: 6px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  font-size: 12px;
}
.venue-event-title {
  color: var(--gray-700); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.venue-period { color: var(--gray-400); font-size: 11px; white-space: nowrap; }
.venue-progress { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }


/* ─── Race List (Top page items) ─── */
.race-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 10px 10px; }
.race-item {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 4px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  border: 1px solid var(--gray-200);
  transition: all .15s var(--ease-out);
  background: var(--white);
  min-width: 0;
  overflow: hidden;
}
.race-item:hover {
  text-decoration: none;
  background: var(--navy-50);
  border-color: var(--navy-700);
  box-shadow: var(--shadow-xs);
}
.race-no { font-weight: 800; color: var(--gray-800); font-size: 13px; flex-shrink: 0; }
.race-time { color: var(--gray-400); font-size: 11px; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.race-status-label { font-size: 9px; white-space: nowrap; margin-left: auto; font-weight: 700; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }

.race-item.status-result { background: var(--success-100); border-color: #a7f3d0; }
.race-item.status-result .race-status-label { color: var(--success-600); }
.race-item.status-predicted { background: var(--info-100); border-color: #93c5fd; }
.race-item.status-predicted .race-status-label { color: var(--info-600); }
.race-item.status-before { background: var(--warn-100); border-color: #fde68a; }
.race-item.status-before .race-status-label { color: var(--warn-600); }
.race-item.status-entry .race-status-label { color: var(--gray-400); }
.race-item.status-waiting .race-status-label { color: var(--gray-300); }


/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s var(--ease-out);
  text-align: center;
  border: none;
  gap: 6px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-venue {
  background: var(--navy-800);
  color: var(--white);
  width: 100%;
  font-weight: 700;
}
.btn-venue:hover { background: var(--navy-700); color: var(--white); }

.btn-detail {
  background: var(--navy-800);
  color: var(--white);
  font-size: 13px;
}
.btn-detail:hover { background: var(--navy-700); color: var(--white); }

.venue-card-footer { padding: 10px 14px 14px; }


/* ─── Empty State ─── */
.empty-state { text-align: center; padding: 64px 20px; color: var(--gray-500); }
.empty-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  background: var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-icon svg { width: 24px; height: 24px; }
.empty-note { font-size: 13px; margin-top: 8px; color: var(--gray-400); }


/* ─── Site About ─── */
.site-about {
  margin-top: 48px;
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
.site-about h2 {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--navy-800);
  font-weight: 800;
  padding-left: 14px;
  border-left: 4px solid var(--accent-500);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.about-item { padding: 0 4px; }
.about-icon {
  width: 40px; height: 40px;
  margin-bottom: 10px;
  background: var(--navy-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-icon svg { width: 20px; height: 20px; color: var(--navy-800); }
.about-item h3 { font-size: 14px; margin-bottom: 6px; color: var(--gray-800); font-weight: 800; }
.about-item p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }


/* ─── Venue Page: Race Cards ─── */
.race-cards { display: flex; flex-direction: column; gap: 14px; }
.race-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow .2s var(--ease-out);
}
.race-card:hover { box-shadow: var(--shadow-md); }

.race-card-header {
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.race-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.race-no-badge {
  background: var(--navy-800);
  color: var(--white);
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
}
.race-time-badge { color: var(--gray-600); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.race-name-small { color: var(--gray-400); font-size: 12px; }

.race-status-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.badge-result { background: var(--success-100); color: var(--success-600); }
.badge-before { background: var(--warn-100); color: var(--warn-600); }
.badge-predicted { background: var(--purple-100); color: var(--purple-700); }
.badge-entry { background: var(--gray-100); color: var(--gray-600); }
.badge-waiting { background: var(--gray-100); color: var(--gray-400); }


/* ─── Result Bar (Venue page) ─── */
.result-bar {
  padding: 10px 16px;
  background: var(--success-100);
  border-bottom: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.result-combo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 18px;
  font-weight: 800;
  color: var(--success-700);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.result-payout { color: var(--success-600); font-weight: 700; }
.hit-badge {
  background: var(--accent-500);
  color: var(--white);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
}
.hit-chuana { background: var(--purple-600); }
.hit-ana { background: var(--rose-700); }


/* ─── Prediction Summary (Venue cards) ─── */
.pred-summary { padding: 12px 16px; }
.stable-rate-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.stable-label { font-size: 11px; color: var(--gray-500); white-space: nowrap; font-weight: 700; }
.stable-bar-outer { flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.stable-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-800), var(--info-500));
  border-radius: 3px;
  transition: width .4s var(--ease-out);
}
.stable-value { font-size: 12px; font-weight: 800; color: var(--navy-800); white-space: nowrap; }

.buy-targets { display: flex; gap: 6px; flex-wrap: wrap; }
.buy-item { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-sm); }
.buy-item.honmei { background: var(--info-100); }
.buy-item.chuana { background: var(--purple-100); }
.buy-item.ana { background: var(--rose-100); }
.buy-label { font-size: 10px; font-weight: 800; color: var(--gray-500); }
.buy-combo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
}
.buy-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  margin-left: 2px;
}

.race-card-footer { padding: 10px 16px 14px; }


/* ─── Race Detail Page ─── */
.section {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent-500);
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ─── Result Banner ─── */
.result-banner {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.result-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-content { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.result-combo-large {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 5px;
  background: rgba(255,255,255,.1);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-variant-numeric: tabular-nums;
}
.result-payouts { display: flex; flex-wrap: wrap; gap: 8px; }
.payout-item {
  font-size: 13px;
  background: rgba(255,255,255,.08);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.8);
}
.payout-item strong { color: var(--white); }
.hit-announcement {
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251,191,36,.12);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251,191,36,.3);
}


/* ─── Result Section (Redesigned) ─── */
.result-section {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
  overflow: hidden;
}
.result-header {
  background: var(--navy-800);
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-header-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-status-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  font-weight: 700;
}
.result-hit-bar {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: #b45309;
  background: rgba(251,191,36,.12);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(251,191,36,.25);
  animation: pulse-glow 1.5s ease-in-out 3;
}

/* Two-column result tables */
.result-tables-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.result-order-wrap {
  padding: 12px 16px 16px;
  border-right: 1px solid var(--gray-200);
}
.result-payout-wrap {
  padding: 12px 16px 16px;
}

/* Finishing Order Table */
.result-order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.result-order-table th {
  padding: 6px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}
.result-order-table th:last-child { text-align: left; }
.result-order-table td {
  padding: 8px 8px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}
.result-rank-cell {
  font-weight: 800;
  font-size: 16px;
  color: var(--navy-800);
  width: 36px;
}
.result-rank-1 .result-rank-cell { color: var(--accent-500); }
.result-waku-cell { width: 44px; }
.result-name-cell {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-800);
}

/* Payout Table */
.result-payout-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result-payout-table th {
  padding: 6px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}
.result-payout-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--gray-100);
}
.payout-label-cell {
  font-weight: 800;
  color: var(--navy-800);
  width: 56px;
  font-size: 12px;
  text-align: center;
}
.payout-combo-cell { text-align: center; }
.payout-combo-inner {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.combo-sep {
  color: var(--gray-400);
  font-weight: 700;
  font-size: 12px;
  margin: 0 1px;
}
.payout-amount-cell {
  font-weight: 800;
  color: var(--accent-600);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.payout-pop-cell {
  text-align: center;
  font-weight: 700;
  color: var(--navy-700);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 13px;
}
.payout-pop-cell small {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 1px;
}

/* Small waku badge (for payout combos) */
.waku-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 11px;
}
.waku-badge-sm.waku-color-1 { background: var(--waku-1-bg); color: var(--waku-1-text); border: 2px solid #ccc; }
.waku-badge-sm.waku-color-2 { background: var(--waku-2-bg); color: var(--waku-2-text); }
.waku-badge-sm.waku-color-3 { background: var(--waku-3-bg); color: var(--waku-3-text); }
.waku-badge-sm.waku-color-4 { background: var(--waku-4-bg); color: var(--waku-4-text); }
.waku-badge-sm.waku-color-5 { background: var(--waku-5-bg); color: var(--waku-5-text); }
.waku-badge-sm.waku-color-6 { background: var(--waku-6-bg); color: var(--waku-6-text); }


/* ─── Race Incidents (Flying/Late/Absent) ─── */
.race-incident {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
  font-weight: 700;
}
.incident-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  color: white;
}
.incident-flying { background: #ef4444; }
.incident-late { background: #f97316; }
.incident-absent { background: #6b7280; }
.incident-refund { background: #f59e0b; color: #000; }

/* ─── Entries Table ─── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entries-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.entries-table th {
  background: var(--navy-800);
  color: var(--white);
  padding: 9px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}
.entries-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  transition: background .1s;
}
.entries-table tbody tr:hover td { background: var(--navy-50); }
.entries-table tr.focus-player td { background: #fffbeb; }

.waku-cell { width: 38px; }
.waku-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  color: var(--white);
  font-size: 13px;
}
.waku-color-1 { background: var(--waku-1-bg); color: var(--waku-1-text); border: 2px solid #ccc; }
.waku-color-2 { background: var(--waku-2-bg); }
.waku-color-3 { background: var(--waku-3-bg); }
.waku-color-4 { background: var(--waku-4-bg); }
.waku-color-5 { background: var(--waku-5-bg); color: var(--waku-5-text); }
.waku-color-6 { background: var(--waku-6-bg); }

.name-cell { text-align: left; }
.racer-name { font-weight: 700; font-size: 13px; color: var(--gray-800); }
.racer-sub { font-size: 11px; color: var(--gray-400); }
.num-cell { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--gray-700); }
.best-time { color: var(--accent-500); font-weight: 800; }
.no-data { color: var(--gray-400); text-align: center; padding: 24px; }

.class-badge { padding: 2px 6px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 800; }
.class-A1 { background: var(--warn-100); color: var(--warn-600); }
.class-A2 { background: var(--info-100); color: var(--info-600); }
.class-B1 { background: var(--purple-100); color: var(--purple-700); }
.class-B2 { background: var(--gray-100); color: var(--gray-600); }


/* ─── Prediction Section ─── */
.phase-note {
  background: var(--warn-100);
  border-left: 3px solid #f59e0b;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--warn-600);
  margin-bottom: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.stable-rate-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.stable-rate-label {
  font-size: 13px;
  color: var(--navy-800);
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stable-rate-desc { font-size: 12px; color: var(--gray-500); font-weight: 400; }
.stable-rate-bar-wrap { margin-bottom: 4px; }
.stable-rate-bar-outer { height: 22px; background: var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.stable-rate-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-800), var(--info-500));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  min-width: 40px;
  transition: width .5s var(--ease-out);
}

/* 3-Pattern Predictions */
.predictions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pred-card {
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 4px solid;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}
.pred-honmei { border-left-color: var(--info-500); background: #f8faff; }
.pred-chuana { border-left-color: var(--purple-600); background: #faf8ff; }
.pred-ana { border-left-color: var(--rose-600); background: #fff8f8; }

.pred-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pred-type-badge { font-weight: 800; font-size: 15px; }
.pred-honmei .pred-type-badge { color: var(--info-600); }
.pred-chuana .pred-type-badge { color: var(--purple-600); }
.pred-ana .pred-type-badge { color: var(--rose-600); }
.pred-odds-level {
  font-size: 10px;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.pred-buy {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.pred-honmei .pred-buy { color: var(--info-700); }
.pred-chuana .pred-buy { color: var(--purple-700); }
.pred-ana .pred-buy { color: var(--rose-700); }

/* 6-point buy list */
.pred-buy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
/* When EV items present, switch to single column */
.pred-buy-list:has(.pred-buy-item-ev) {
  grid-template-columns: 1fr;
}
.pred-buy-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 6px 8px;
  background: rgba(0,0,0,.03);
  border-radius: var(--radius-sm);
  text-align: center;
}
.pred-honmei .pred-buy-item { color: var(--info-700); }
.pred-chuana .pred-buy-item { color: var(--purple-700); }
.pred-ana .pred-buy-item { color: var(--rose-700); }
.pred-buy-item:first-child {
  font-size: 19px;
  background: rgba(0,0,0,.06);
}

.pred-desc { font-size: 12px; color: var(--gray-500); line-height: 1.7; }

.pred-generated-at { font-size: 11px; color: var(--gray-400); text-align: right; margin-top: 6px; }

/* Total investment note */
.pred-total-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 8px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}


/* ─── Narrative ─── */
.pred-narrative {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy-800);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin-top: 18px;
  line-height: 1.9;
}
.pred-narrative p {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.pred-narrative p:last-child { margin-bottom: 0; }
.narrative-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-800);
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--accent-500);
}
.narrative-heading:first-child { margin-top: 0; }


/* ─── Prediction Pending ─── */
.pred-pending { text-align: center; padding: 40px 20px; color: var(--gray-500); }
.pending-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pending-icon svg { width: 24px; height: 24px; color: var(--gray-400); }


/* ─── Generate Buttons ─── */
.btn-generate {
  background: var(--accent-500);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 16px;
  transition: all .2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-generate:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-generate:disabled { background: var(--gray-300); cursor: wait; transform: none; box-shadow: none; }
.btn-generate.generating { background: var(--gray-500); }

.btn-regenerate {
  background: transparent;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
}
.btn-regenerate:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn-regenerate:disabled { border-color: var(--gray-200); color: var(--gray-300); cursor: wait; }
.btn-regenerate.generating { border-color: var(--gray-300); color: var(--gray-400); }

.pred-actions { margin-top: 18px; text-align: right; }

.generate-error {
  color: var(--accent-600);
  font-size: 13px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--accent-100);
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ─── EV (Expected Value) Badges ─── */
.pred-buy-item-ev {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(0,0,0,.03);
  border-radius: var(--radius-sm);
}
.pred-buy-item-ev:first-child {
  background: rgba(0,0,0,.06);
}
.pred-buy-combo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}

.pred-buy-odds {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ev-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: .3px;
}
.ev-badge.ev-positive { background: var(--success-100); color: var(--success-700); }
.ev-badge.ev-neutral { background: var(--warn-100); color: var(--warn-600); }
.ev-badge.ev-negative { background: var(--accent-100); color: var(--accent-700); }
.ev-badge.ev-unknown { background: var(--gray-100); color: var(--gray-500); }


/* ─── EV Summary (Recommendation) ─── */
.ev-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 18px;
  margin-bottom: 16px;
}
.ev-summary-section { margin-bottom: 16px; }
.ev-summary-section:last-of-type { margin-bottom: 8px; }

.ev-summary-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid;
}
.ev-title-positive { color: var(--success-700); border-left-color: var(--success-500); }
.ev-title-negative { color: var(--accent-700); border-left-color: var(--accent-500); }

.ev-combo-list { display: flex; flex-direction: column; gap: 6px; }
.ev-combo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-size: 13px;
}
.ev-combo-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: var(--navy-800);
  min-width: 52px;
}
.ev-combo-pattern {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.ev-pattern-本命 { background: var(--info-100); color: var(--info-700); }
.ev-pattern-中穴 { background: var(--purple-100); color: var(--purple-700); }
.ev-pattern-穴 { background: var(--rose-100); color: var(--rose-700); }

.ev-combo-detail {
  font-size: 11px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  white-space: nowrap;
}
.ev-note {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 10px;
  line-height: 1.5;
}


/* ─── Before Info (Collapsible) ─── */
.beforeinfo-section { padding: 0; }
.beforeinfo-details { }
.beforeinfo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.beforeinfo-summary::-webkit-details-marker { display: none; }
.beforeinfo-summary .section-title { margin-bottom: 0; }

.beforeinfo-toggle-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.beforeinfo-toggle-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400);
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}
details[open] > .beforeinfo-summary .beforeinfo-toggle-icon::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}

.beforeinfo-body { padding: 0 20px 20px; }

.beforeinfo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.beforeinfo-table th {
  background: var(--navy-800);
  color: var(--white);
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}
.beforeinfo-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
}
.beforeinfo-table tbody tr:hover td { background: var(--navy-50); }

.flying-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-500);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

/* ─── Weather Grid (Redesigned) ─── */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.weather-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center;
  transition: box-shadow .15s var(--ease-out);
}
.weather-card:hover { box-shadow: var(--shadow-sm); }
.weather-card-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--info-100);
  color: var(--info-600);
  padding: 6px;
}
.weather-card-icon svg { width: 100%; height: 100%; }
.weather-icon-temp { background: var(--accent-100); color: var(--accent-600); }
.weather-icon-water { background: #e0f2fe; color: #0284c7; }
.weather-icon-wind { background: var(--gray-100); color: var(--gray-600); }
.weather-icon-wave { background: #e0f2fe; color: #0369a1; }
.weather-card-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .3px;
}
.weather-card-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.weather-card-value small {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  margin-left: 1px;
}


/* ─── Odds ─── */
.odds-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.odds-item {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
}
.odds-combo { font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.odds-value { color: var(--accent-500); font-weight: 800; }
.odds-note { font-size: 11px; color: var(--gray-400); }


/* ─── Race Nav ─── */
.race-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-nav {
  background: var(--gray-50);
  color: var(--navy-800);
  font-size: 13px;
  border: 1px solid var(--gray-200);
  font-weight: 700;
}
.btn-nav:hover { background: var(--gray-200); color: var(--navy-800); }
.btn-nav-center {
  background: var(--navy-800);
  color: var(--white);
  flex: 1;
  font-weight: 700;
}
.btn-nav-center:hover { background: var(--navy-700); color: var(--white); }


/* ─── Card Appear Animation ─── */
.card-animate {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.card-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── Hit announcement pulse ─── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
  50% { box-shadow: 0 0 16px 4px rgba(251,191,36,.3); }
}
.hit-announcement { animation: pulse-glow 1.5s ease-in-out 3; }


/* ─── Responsive ─── */
@media (max-width: 768px) {
  .page-title { font-size: 19px; }
  .venue-grid { grid-template-columns: 1fr; }
  .predictions-grid { grid-template-columns: 1fr; }
  .result-content { flex-direction: column; align-items: flex-start; }
  .result-combo-large { font-size: 28px; }
  .pred-buy { font-size: 22px; }
  .pred-buy-item { font-size: 15px; }
  .pred-buy-item:first-child { font-size: 17px; }
  .pred-buy-list { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .pred-buy-item-ev { gap: 4px; padding: 5px 6px; }
  .pred-buy-combo { font-size: 14px; min-width: 44px; }
  .ev-combo-item { flex-wrap: wrap; gap: 4px; padding: 6px 8px; }
  .ev-combo-detail { margin-left: 0; }
  .ev-summary { padding: 14px 14px; }
  .result-tables-wrap { grid-template-columns: 1fr; }
  .weather-grid { grid-template-columns: repeat(3, 1fr); }
  .result-order-wrap { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 12px 14px; }
  .result-payout-wrap { padding: 12px 14px; }
  .result-header { padding: 10px 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .header-inner { height: 48px; }
  .site-logo { font-size: 16px; gap: 8px; }
  .logo-mark { width: 20px; height: 20px; }
  .page-title { font-size: 17px; }
  .entries-table { font-size: 11px; }
  .entries-table th, .entries-table td { padding: 6px 5px; }
  .pred-buy { font-size: 20px; }
  .result-combo-large { font-size: 24px; letter-spacing: 3px; }
  .pred-narrative { padding: 14px 16px; }
  .stable-rate-bar-inner { font-size: 11px; }
  .result-order-table { font-size: 13px; }
  .result-payout-table { font-size: 12px; }
  .waku-badge-sm { width: 20px; height: 20px; font-size: 10px; }
  .beforeinfo-table { font-size: 11px; }
  .beforeinfo-table th, .beforeinfo-table td { padding: 6px 5px; }
  .beforeinfo-body { padding: 0 14px 14px; }
  .weather-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .weather-card { padding: 8px 4px 6px; }
  .weather-card-icon { width: 26px; height: 26px; padding: 5px; }
  .weather-card-value { font-size: 15px; }
  .beforeinfo-summary { padding: 12px 14px; }
  .section { padding: 16px 14px; }
  .btn-generate { padding: 12px 24px; font-size: 14px; }
  .race-number-nav { grid-template-columns: repeat(4, 1fr); }
  .race-list { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════
   オッズ展開予想
   ═══════════════════════════════════════ */

.odds-pred-section {
  margin-top: 0;
}

.odds-pred-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin: -6px 0 12px;
}

.threshold-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: 8px;
  font-size: 13px;
}

.threshold-label {
  color: var(--gray-600);
  white-space: nowrap;
}

.threshold-input {
  width: 60px;
  padding: 4px 6px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  background: #fff;
}

.threshold-input-sm {
  width: 48px;
}

.btn-threshold {
  padding: 5px 14px;
  background: var(--info-500);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-threshold:hover {
  opacity: 0.85;
}

.odds-fetching-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  background: var(--gray-50);
  border-radius: 8px;
  margin: 8px 0;
}
.odds-reload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-800);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.odds-reload-btn:hover {
  background: var(--navy-700);
}

.odds-hit {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.tenbo-hit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.pred-buy-item-ev.combo-hit {
  background: rgba(16, 185, 129, 0.15);
  border-radius: 6px;
  padding: 2px 4px;
}

/* 推定的中率カード */
.coverage-rate-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-50);
  border: 2px solid var(--navy-600);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 14px;
}

.coverage-rate-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-600);
}

.coverage-rate-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-800);
}

.coverage-rate-pts {
  font-size: 13px;
  color: var(--gray-500);
}

/* 軸ペアセクション */
.odds-axis-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.odds-axis-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px;
}

.axis-pair-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.axis-pair-combo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.axis-odds {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-700);
}

.axis-count {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
}

.axis-combos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.combo-odds-3t {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
  margin-left: 2px;
  white-space: nowrap;
}

/* ハイライト（閾値以下）*/
.odds-highlighted {
  background: var(--accent-100) !important;
  border-color: var(--accent-400) !important;
}

/* clickable summary */
.section-title.clickable {
  cursor: pointer;
  user-select: none;
}
.section-title.clickable:hover {
  color: var(--navy-600);
}

/* カバレッジテーブル */
.coverage-section {
  margin-top: 0;
}

.coverage-table-wrap {
  padding-top: 10px;
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.coverage-table th {
  background: var(--navy-50);
  padding: 8px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--navy-600);
  border-bottom: 2px solid var(--gray-200);
}

.coverage-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.coverage-pct {
  font-weight: 700;
  color: var(--navy-800);
}

.coverage-current {
  background: var(--accent-100);
  font-weight: 700;
}
.coverage-current td {
  border-color: var(--accent-400);
}


/* ═══════════════════════════════════════
   的中サマリーバナー（トップページ）
   ═══════════════════════════════════════ */
.daily-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
}
.summary-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .15s;
}
.summary-card:hover { box-shadow: var(--shadow-md); }

.summary-icon-wrap {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent-600);
  flex-shrink: 0;
  padding: 7px;
}
.summary-icon-wrap svg { width: 100%; height: 100%; }
.summary-icon-odds {
  background: var(--info-100);
  color: var(--info-600);
}
.summary-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.summary-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .3px;
}
.summary-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.summary-value small {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
}
.summary-rate {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-500);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.summary-ai .summary-rate { color: var(--accent-500); }
.summary-odds .summary-rate { color: var(--info-600); }

/* 的中バッジ（会場カードヘッダー） */
.badge-hit {
  background: rgba(251,191,36,.15);
  color: #b45309;
}

/* 的中ドット（レースアイテム内） */
.race-hit-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.hit-positive { background: var(--success-500); box-shadow: 0 0 4px rgba(34,197,94,.4); }
.hit-odds { background: var(--info-500); box-shadow: 0 0 4px rgba(59,130,246,.4); }
.hit-miss { background: var(--gray-300); }


/* ═══════════════════════════════════════
   勝率ビジュアルバー（出走表）
   ═══════════════════════════════════════ */
.rate-cell {
  position: relative;
  min-width: 52px;
}
.rate-bar-bg {
  position: absolute;
  inset: 3px 4px;
  background: var(--gray-100);
  border-radius: 2px;
  overflow: hidden;
}
.rate-bar-fill {
  height: 100%;
  background: var(--gray-200);
  border-radius: 2px;
  transition: width .3s var(--ease-out);
}
.rate-bar-fill.rate-mid { background: var(--info-100); }
.rate-bar-fill.rate-high { background: var(--accent-100); }
.rate-text {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════
   メダルバッジ（展示タイム順位）
   ═══════════════════════════════════════ */
.medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
}
.medal-gold { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 1px 3px rgba(245,158,11,.4); }
.medal-silver { background: linear-gradient(135deg, #9ca3af, #6b7280); box-shadow: 0 1px 3px rgba(107,114,128,.3); }
.medal-bronze { background: linear-gradient(135deg, #c2703a, #a35a2c); box-shadow: 0 1px 3px rgba(180,100,50,.3); }
.rank-top { font-weight: 800; }


/* ─── Responsive (additions) ─── */
@media (max-width: 768px) {
  .daily-summary { grid-template-columns: 1fr; }
  .summary-rate { font-size: 18px; }
}
@media (max-width: 480px) {
  .summary-card { padding: 10px 12px; gap: 8px; }
  .summary-icon-wrap { width: 30px; height: 30px; padding: 6px; }
  .summary-value { font-size: 17px; }
  .summary-rate { font-size: 16px; }
}

/* ─── Race Number Nav (1R-12R) ─── */
.race-number-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-bottom: 12px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.race-num-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  font-size: 14px;
  font-weight: 700;
  background: #e8edf5;
  color: var(--navy-800);
  text-decoration: none;
  transition: background 0.15s;
}
.race-num-link:hover {
  background: var(--gray-200);
  text-decoration: none;
}
.race-num-active {
  background: #e08080;
  color: var(--white);
}
.race-num-active:hover {
  background: #d06060;
  color: var(--white);
}

/* ─── Filter Mode Tabs ─── */
.filter-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
}
.mode-tab {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: background 0.15s;
}
.mode-tab:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.mode-tab:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: none;
}
.mode-tab-active {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}
.threshold-sep {
  color: var(--gray-400);
  font-weight: 700;
  margin: 0 2px;
}
.filter-mode-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* ─── Combo Hit Marking ─── */
.combo-hit {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}
.combo-hit-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  background: #f59e0b;
  color: #fff;
  border-radius: 8px;
  margin-left: 4px;
}

/* ─── Responsive: Race Nav ─── */
@media (max-width: 480px) {
  .race-num-link {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
  }
}


/* ═══════════════════════════════════════
   的中検証ページ
   ═══════════════════════════════════════ */
.verify-filter-section { padding: 20px 16px; }
.verify-form { max-width: 600px; }

.verify-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.verify-field { flex: 1; }
.verify-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.verify-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--white);
  color: var(--gray-800);
}
.verify-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.verify-mode-tab {
  flex: 1;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  color: var(--gray-500);
  border: none;
  transition: all .15s;
}
.verify-mode-tab.active {
  background: var(--navy-800);
  color: var(--white);
}
/* 日付チェックボックスリスト */
.verify-date-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.verify-date-check {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  background: var(--white);
  transition: all .15s;
  user-select: none;
}
.verify-date-check:hover:not(.disabled) {
  border-color: var(--info-500);
  background: var(--info-100);
}
.verify-date-check:has(input:checked) {
  border-color: var(--navy-800);
  background: var(--navy-50);
}
.verify-date-check.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.verify-date-check input[type="checkbox"] {
  accent-color: var(--navy-800);
  margin: 0;
  width: 14px;
  height: 14px;
}
.verify-date-text {
  font-weight: 600;
  color: var(--navy-800);
}
.verify-date-count {
  color: var(--gray-400);
  font-size: 10px;
  font-weight: 600;
}
.verify-date-check:has(input:checked) .verify-date-text {
  font-weight: 800;
}
.date-cell {
  white-space: nowrap;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}

.verify-panel { margin-bottom: 16px; }
.verify-range-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.verify-range-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
  min-width: 48px;
}
.verify-range-sep, .verify-range-unit {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
}
.verify-input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.verify-input:focus {
  outline: none;
  border-color: var(--info-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.btn-verify {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--navy-800);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}
.btn-verify:hover { background: var(--navy-700); }

/* サマリーカード */
.verify-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.verify-stat {
  text-align: center;
  padding: 16px 8px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
.verify-stat.highlight {
  background: var(--info-100);
  border-color: #93c5fd;
}
.verify-stat.roi-plus {
  background: var(--success-100);
  border-color: #a7f3d0;
}
.verify-stat.roi-minus {
  background: var(--accent-50, #fff1f2);
  border-color: #fecaca;
}
.verify-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.verify-stat-value small {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
}
.verify-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  margin-top: 4px;
}

/* 投資/回収 */
.verify-money-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--navy-50);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.verify-money { text-align: center; }
.verify-money-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 2px;
}
.verify-money-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.verify-money-arrow {
  font-size: 18px;
  color: var(--gray-400);
}
.text-plus { color: var(--success-600); }
.text-minus { color: var(--accent-600); }

/* テーブル */
.subsection-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.verify-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.verify-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.verify-table th {
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.verify-table td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
  font-variant-numeric: tabular-nums;
}
.verify-table .venue-name-cell { text-align: left; font-weight: 700; }
.verify-table .venue-name-cell a { color: var(--navy-800); text-decoration: none; }
.verify-table .venue-name-cell a:hover { text-decoration: underline; }
.verify-table .payout-cell { text-align: right; font-weight: 700; }
.verify-table .result-combo-cell { white-space: nowrap; }

.verify-hit-row { background: var(--success-100); }
.verify-hit-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--success-500);
  color: var(--white);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}
.verify-miss-badge {
  color: var(--gray-300);
  font-size: 14px;
}
.verify-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--gray-400);
  font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .verify-summary { grid-template-columns: repeat(2, 1fr); }
  .verify-stat-value { font-size: 22px; }
  .verify-money-row { flex-direction: column; gap: 8px; }
  .verify-money-arrow { transform: rotate(90deg); }
  .verify-range-row { gap: 4px; }
  .verify-input { width: 56px; font-size: 13px; }
  .verify-table { font-size: 12px; }
  .verify-table th, .verify-table td { padding: 6px 6px; }
}
