/* wave-core-new/assets/style.css — WAVE UI v1 dark theme */

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

/* ============================================================
   ページベース（dark theme）
   ============================================================ */

body.wave-page {
    margin: 0;
    padding: 0;
    background: #0d1117;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
                 'Yu Gothic', 'Meiryo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

.wave-page-wrapper {
    min-height: 100vh;
    background: #0d1117;
}

.wave-page-main {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 10px 48px;
}

@media (min-width: 768px) {
    .wave-page-main {
        padding: 76px 16px 64px;
    }
}

@media (min-width: 1024px) {
    .wave-page-main {
        max-width: 1240px;
        padding: 76px 24px 64px;
    }
}

/* wave-display-date は テンプレート内に吸収したので非表示 */
.wave-display-date {
    display: none;
}

/* ============================================================
   ダッシュボード 3カラムレイアウト
   ============================================================ */

.wave-dashboard {
    width: 100%;
}

.wave-layout-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.wave-sidebar-left  { order: 1; display: none; }
.wave-main          { order: 2; }
.wave-sidebar-right { order: 3; }

@media (min-width: 768px) {
    .wave-layout-3col {
        grid-template-columns: 1fr 240px;
        grid-template-areas: "main sidebar-right";
        align-items: start;
    }
    .wave-main          { grid-area: main; }
    .wave-sidebar-right { grid-area: sidebar-right; }
}

@media (min-width: 1024px) {
    .wave-layout-3col {
        grid-template-columns: 220px 1fr 260px;
        grid-template-areas: "sidebar-left main sidebar-right";
    }
    .wave-sidebar-left {
        display: block;
        grid-area: sidebar-left;
    }
}

/* ============================================================
   カード共通
   ============================================================ */

.wave-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
}

.wave-card__title {
    font-size: 0.78em;
    font-weight: bold;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #30363d;
    margin: 0;
}

/* ============================================================
   左サイドバー: 会場リスト
   ============================================================ */

.wave-venue-list {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.wave-venue-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    cursor: pointer;
    color: #8b949e;
    font-size: 0.88em;
    border: none;
    border-left: 2px solid transparent;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.12s, color 0.12s;
    -webkit-tap-highlight-color: transparent;
}

.wave-venue-item:hover {
    background: #1c2128;
    color: #e6edf3;
}

.wave-venue-item.is-active {
    background: #1c2128;
    color: #2ea898;
    font-weight: bold;
    border-left-color: #2ea898;
    padding-left: 12px;
}

.wave-venue-item__name {
    font-weight: bold;
}

.wave-venue-item__meta {
    font-size: 0.75em;
    color: #6e7681;
    margin-left: auto;
}

.wave-venue-item.is-active .wave-venue-item__meta {
    color: #2ea898;
    opacity: 0.8;
}

/* ============================================================
   右サイドバー: プランカード
   ============================================================ */

.wave-plan-card {
    padding: 16px;
}

.wave-plan-card__name {
    font-size: 0.72em;
    font-weight: bold;
    color: #2ea898;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px;
}

.wave-plan-card__price {
    font-size: 1.6em;
    font-weight: 900;
    color: #e6edf3;
    margin: 0 0 12px;
    line-height: 1.1;
}

.wave-plan-card__price small {
    font-size: 0.42em;
    font-weight: normal;
    color: #6e7681;
}

.wave-plan-card__features {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wave-plan-card__features li {
    font-size: 0.78em;
    color: #8b949e;
    padding-left: 14px;
    position: relative;
}

.wave-plan-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ea898;
    font-weight: bold;
}

.wave-plan-card__cta {
    display: block;
    width: 100%;
    padding: 9px 0;
    text-align: center;
    background: #21262d;
    color: #6e7681;
    border: 1px solid #30363d;
    border-radius: 5px;
    font-size: 0.82em;
    font-weight: bold;
    cursor: default;
}

.wave-plan-card__soon {
    font-size: 0.72em;
    color: #484f58;
    text-align: center;
    margin: 6px 0 0;
}

/* ============================================================
   ステータスバッジ
   ============================================================ */

.wave-status-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68em;
    font-weight: bold;
    color: #2ea898;
    background: rgba(46, 168, 152, 0.15);
    border: 1px solid rgba(46, 168, 152, 0.4);
    border-radius: 3px;
    padding: 1px 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.wave-status-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ea898;
    animation: wave-blink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes wave-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.wave-status-waiting {
    display: inline-block;
    font-size: 0.68em;
    color: #6e7681;
    background: rgba(110, 118, 129, 0.08);
    border: 1px solid #30363d;
    border-radius: 3px;
    padding: 1px 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.wave-status-finished {
    display: inline-block;
    font-size: 0.68em;
    color: #484f58;
    background: transparent;
    border: 1px solid #21262d;
    border-radius: 3px;
    padding: 1px 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   ボートバッジ（枠番カラー）
   ============================================================ */

.wave-boat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.78em;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1;
}

.wave-boat-1 { background: #f0f0f0; color: #1a1a1a; }
.wave-boat-2 { background: #1a1a1a; color: #ffffff; border: 1px solid #555; }
.wave-boat-3 { background: #dc2626; color: #ffffff; }
.wave-boat-4 { background: #2563eb; color: #ffffff; }
.wave-boat-5 { background: #eab308; color: #1a1a1a; }
.wave-boat-6 { background: #16a34a; color: #ffffff; }

/* 大きめサイズ（entries テーブル用） */
.wave-boat-badge--lg {
    width: 26px;
    height: 26px;
    font-size: 0.82em;
}

.wave-ticket-boats {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wave-ticket-sep {
    color: #6e7681;
    font-size: 0.7em;
    line-height: 1;
}

/* ============================================================
   固定ヘッダー（dark）
   ============================================================ */

.wave-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #161b22;
    z-index: 1000;
    box-shadow: 0 1px 0 #30363d;
}

.wave-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

.wave-header__brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
}

.wave-header__logo {
    font-size: 1.3em;
    font-weight: 900;
    color: #2ea898;
    letter-spacing: 0.02em;
}

.wave-header__tagline {
    font-size: 0.7em;
    color: #6e7681;
    white-space: nowrap;
}

body.admin-bar .wave-header {
    top: 32px;
}

body.admin-bar .wave-menu {
    padding-top: 84px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .wave-header {
        top: 46px;
    }
    body.admin-bar .wave-menu {
        padding-top: 98px;
    }
}

/* ============================================================
   ハンバーガーボタン
   ============================================================ */

.wave-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
}

.wave-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #8b949e;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: center;
}

.wave-hamburger:hover span {
    background: #e6edf3;
}

.wave-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.wave-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.wave-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   オーバーレイ
   ============================================================ */

.wave-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1010;
}

.wave-menu-overlay.is-open {
    display: block;
}

/* ============================================================
   ドロワーメニュー（dark）
   ============================================================ */

.wave-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: #161b22;
    z-index: 1020;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding-top: 52px;
    border-left: 1px solid #30363d;
}

.wave-menu.is-open {
    transform: translateX(0);
}

.wave-menu__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.wave-menu__item {
    display: block;
    padding: 13px 20px;
    color: #e6edf3;
    text-decoration: none;
    font-size: 0.95em;
    border-bottom: 1px solid #21262d;
    transition: background 0.12s, color 0.12s;
}

.wave-menu__item:hover {
    background: #1c2128;
    color: #2ea898;
}

.wave-menu__item.is-active {
    color: #2ea898;
    background: rgba(46, 168, 152, 0.08);
    border-left: 2px solid #2ea898;
    padding-left: 18px;
}

.wave-menu__item--small {
    font-size: 0.82em;
    color: #6e7681;
    padding: 10px 20px;
}

.wave-menu__item--small:hover {
    color: #8b949e;
    background: #1c2128;
}

.wave-menu__divider {
    height: 1px;
    background: #30363d;
    margin: 8px 0;
}

/* ============================================================
   共通状態
   ============================================================ */

.wave-error,
.wave-empty,
.wave-cancelled {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 0.9em;
}

.wave-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
}

.wave-empty,
.wave-cancelled {
    background: #161b22;
    border: 1px solid #30363d;
    color: #8b949e;
}

/* ============================================================
   デイリーサマリー
   ============================================================ */

.wave-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(46, 168, 152, 0.06);
    border: 1px solid rgba(46, 168, 152, 0.2);
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.875em;
}

.wave-summary__venue,
.wave-summary__total,
.wave-summary__recommend,
.wave-summary__hit,
.wave-summary__ev {
    white-space: nowrap;
    color: #8b949e;
}

.wave-summary__venue { font-weight: bold; color: #e6edf3; }

.wave-summary__hit {
    color: #2ea898;
    font-weight: bold;
}

.wave-summary__roi {
    font-weight: bold;
    white-space: nowrap;
}

.wave-summary__roi--plus { color: #2ea898; }
.wave-summary__roi--minus { color: #f87171; }

.wave-summary__note {
    font-size: 0.78em;
    color: #484f58;
    white-space: nowrap;
    align-self: center;
}

.wave-summary__pending {
    font-size: 0.82em;
    color: #6e7681;
    font-style: italic;
}

/* ============================================================
   会場タブストリップ（モバイル/タブレット）
   ============================================================ */

.wave-venue-tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -10px 14px;
    padding: 0 10px;
}

.wave-venue-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.wave-venue-tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
    min-width: max-content;
}

@media (min-width: 768px) {
    .wave-venue-tabs-wrap {
        overflow-x: visible;
        margin: 0 0 14px;
        padding: 0;
    }
    .wave-venue-tabs {
        flex-wrap: wrap;
        min-width: 0;
    }
}

/* デスクトップ: タブ非表示（左サイドバー使用） */
@media (min-width: 1024px) {
    .wave-venue-tabs-wrap {
        display: none;
    }
}

.wave-venue-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 12px;
    background: #161b22;
    border: 1.5px solid #30363d;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-family: inherit;
    color: #8b949e;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}

.wave-venue-tab:hover {
    border-color: #2ea898;
    color: #2ea898;
}

.wave-venue-tab.is-active {
    background: rgba(46, 168, 152, 0.12);
    border-color: #2ea898;
}

.wave-venue-tab__name {
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.2;
    color: #e6edf3;
}

.wave-venue-tab.is-active .wave-venue-tab__name {
    color: #2ea898;
}

.wave-venue-tab__meta {
    font-size: 0.68em;
    line-height: 1.2;
    opacity: 0.7;
}

.wave-venue-tab__meet {
    font-size: 0.68em;
    line-height: 1.2;
    opacity: 0.8;
}

.wave-venue-tab__day {
    font-size: 0.65em;
    line-height: 1.2;
    opacity: 0.7;
}

/* グレード別タブ色 */
.wave-venue-tab.wave-grade-sg { border-color: #b45309; }
.wave-venue-tab.wave-grade-sg.is-active {
    background: rgba(180, 83, 9, 0.15);
    border-color: #f59e0b;
}
.wave-venue-tab.wave-grade-sg.is-active .wave-venue-tab__name { color: #f59e0b; }

.wave-venue-tab.wave-grade-g1 { border-color: #991b1b; }
.wave-venue-tab.wave-grade-g1.is-active {
    background: rgba(153, 27, 27, 0.15);
    border-color: #ef4444;
}
.wave-venue-tab.wave-grade-g1.is-active .wave-venue-tab__name { color: #ef4444; }

.wave-venue-tab.wave-grade-g2 { border-color: #1e40af; }
.wave-venue-tab.wave-grade-g2.is-active {
    background: rgba(30, 64, 175, 0.15);
    border-color: #3b82f6;
}
.wave-venue-tab.wave-grade-g2.is-active .wave-venue-tab__name { color: #3b82f6; }

.wave-venue-tab.wave-grade-g3 { border-color: #374151; }
.wave-venue-tab.wave-grade-g3.is-active {
    background: rgba(55, 65, 81, 0.2);
    border-color: #6b7280;
}
.wave-venue-tab.wave-grade-g3.is-active .wave-venue-tab__name { color: #9ca3af; }

/* ============================================================
   会場パネル
   ============================================================ */

.wave-venue-panel {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.wave-venue-panel[hidden] {
    display: none;
}

/* ============================================================
   レース行（dark）
   ============================================================ */

.wave-race-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #21262d;
    min-height: 52px;
    background: #161b22;
    transition: background 0.1s;
}

.wave-race-row:last-child {
    border-bottom: none;
}

.wave-race-row:hover {
    background: #1c2128;
}

.wave-race-row--no-bet {
    opacity: 0.65;
}

.wave-race-row--no-bet .wave-race-row__number {
    color: #6e7681;
}

.wave-race-row__number {
    font-size: 0.88em;
    font-weight: bold;
    color: #e6edf3;
    min-width: 26px;
    flex-shrink: 0;
}

.wave-race-row__deadline {
    font-size: 0.75em;
    color: #6e7681;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 36px;
}

.wave-race-row__mid {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.wave-race-row__badge {
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
}

.wave-race-row__badge--rec {
    color: #2ea898;
    background: rgba(46, 168, 152, 0.12);
    border: 1px solid rgba(46, 168, 152, 0.35);
}

.wave-race-row__badge--nobet {
    color: #484f58;
    background: transparent;
    border: 1px solid #21262d;
}

.wave-race-row__ticket {
    font-size: 0.88em;
    font-weight: bold;
    color: #e6edf3;
    white-space: nowrap;
}

.wave-race-row__ev {
    font-size: 0.75em;
    color: #6e7681;
    white-space: nowrap;
}

.wave-race-row__detail {
    flex-shrink: 0;
    font-size: 0.75em;
    font-weight: bold;
    color: #2ea898;
    text-decoration: none;
    padding: 5px 10px;
    border: 1.5px solid rgba(46, 168, 152, 0.45);
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.wave-race-row__detail:hover {
    background: rgba(46, 168, 152, 0.12);
    border-color: #2ea898;
}

.wave-race-row__hit-badge,
.wave-race-row__miss-badge {
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
}

.wave-race-row__hit-badge {
    color: #2ea898;
    background: rgba(46, 168, 152, 0.12);
    border: 1px solid rgba(46, 168, 152, 0.35);
}

.wave-race-row__miss-badge {
    color: #484f58;
    background: transparent;
    border: 1px solid #21262d;
}

/* ============================================================
   信頼度バッジ
   ============================================================ */

.wave-confidence {
    font-size: 0.85em;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 3px;
}

.wave-confidence--high   { background: rgba(46, 168, 152, 0.12); color: #2ea898; }
.wave-confidence--medium { background: rgba(234, 179, 8, 0.1);   color: #d4a017; }
.wave-confidence--low    { background: rgba(110, 118, 129, 0.1); color: #6e7681; }

/* ============================================================
   有料バッジ
   ============================================================ */

.wave-paid-badge {
    background: rgba(234, 179, 8, 0.06);
    border: 1px dashed rgba(234, 179, 8, 0.35);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.875em;
    color: #d4a017;
}

tr.wave-paid-badge {
    background: rgba(234, 179, 8, 0.04);
}

tr.wave-paid-badge td {
    color: #d4a017;
    font-style: italic;
}

/* ============================================================
   リンク
   ============================================================ */

.wave-link { text-decoration: none; }

.wave-link--detail {
    color: #8b949e;
}

.wave-link--detail:hover {
    text-decoration: underline;
    color: #e6edf3;
}

.wave-link--note {
    color: #2ea898;
    font-weight: bold;
}

.wave-link--note:hover {
    text-decoration: underline;
}

.wave-note-pending {
    font-size: 0.8em;
    color: #6e7681;
}

/* ============================================================
   レース詳細（dark）
   ============================================================ */

.wave-race-detail {
    margin: 0 0 24px;
}

.wave-race-detail__header {
    padding: 16px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.wave-race-detail__header-main {
    flex: 1;
    min-width: 0;
}

.wave-race-detail__title {
    font-size: 1.15em;
    margin: 0 0 4px;
    color: #e6edf3;
    font-weight: bold;
}

.wave-race-detail__race-title {
    font-size: 0.78em;
    font-weight: normal;
    color: #6e7681;
    margin-left: 6px;
}

.wave-race-detail__meet-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 4px 0 6px;
}

.wave-race-detail__meet-part {
    font-size: 0.78em;
    color: #8b949e;
    background: #1c2128;
    border: 1px solid #30363d;
    border-radius: 3px;
    padding: 1px 6px;
    white-space: nowrap;
}

.wave-race-detail__meta {
    font-size: 0.85em;
    color: #8b949e;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.wave-race-detail__deadline {
    color: #8b949e;
}

/* ============================================================
   詳細タブ
   ============================================================ */

.wave-detail-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 12px;
    padding-bottom: 2px;
}

.wave-detail-tabs::-webkit-scrollbar {
    display: none;
}

.wave-detail-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: bold;
    color: #8b949e;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.wave-detail-tab:hover:not(.wave-detail-tab--locked) {
    border-color: #2ea898;
    color: #2ea898;
}

.wave-detail-tab.is-active {
    background: rgba(46, 168, 152, 0.12);
    border-color: #2ea898;
    color: #2ea898;
}

.wave-detail-tab--locked {
    opacity: 0.45;
    cursor: default;
}

.wave-detail-tab__lock {
    font-size: 0.82em;
}

.wave-detail-panel {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.wave-detail-panel[hidden] {
    display: none;
}

.wave-locked-panel {
    padding: 36px 20px;
    text-align: center;
}

.wave-locked-panel__icon {
    font-size: 2em;
    margin-bottom: 8px;
    color: #484f58;
}

.wave-locked-panel__text {
    font-size: 0.88em;
    color: #6e7681;
    margin: 0 0 14px;
    line-height: 1.5;
}

.wave-locked-panel__cta {
    display: inline-block;
    padding: 8px 20px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 5px;
    color: #6e7681;
    font-size: 0.82em;
    font-weight: bold;
    text-decoration: none;
}

/* ============================================================
   AI予想カード
   ============================================================ */

.wave-ai-pick {
    padding: 16px;
    border-bottom: 1px solid #21262d;
}

.wave-ai-pick:last-child {
    border-bottom: none;
}

.wave-ai-pick__rank {
    font-size: 0.72em;
    font-weight: bold;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.wave-ai-pick--top .wave-ai-pick__rank {
    color: #2ea898;
}

.wave-ai-pick__ticket-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.wave-ai-pick__ticket-str {
    font-size: 1.2em;
    font-weight: 900;
    color: #e6edf3;
    letter-spacing: 0.02em;
}

.wave-ai-pick__bet-type {
    font-size: 0.78em;
    color: #8b949e;
    background: #1c2128;
    border: 1px solid #30363d;
    border-radius: 3px;
    padding: 1px 7px;
}

.wave-ai-pick__meta {
    display: flex;
    gap: 12px;
    font-size: 0.82em;
    color: #8b949e;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.wave-ai-pick__ev {
    color: #2ea898;
    font-weight: bold;
}

.wave-ai-pick__reason {
    font-size: 0.82em;
    color: #6e7681;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   コンディションブロック
   ============================================================ */

.wave-condition-block {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #21262d;
    font-size: 0.82em;
    color: #6e7681;
}

.wave-condition-item {
    display: flex;
    gap: 4px;
    align-items: center;
}

.wave-condition-label {
    color: #484f58;
}

/* ============================================================
   entries / predictions テーブル（dark）
   ============================================================ */

.wave-entries-table-wrap,
.wave-predictions-table-wrap {
    overflow-x: auto;
    margin-bottom: 0;
}

.wave-entries-table,
.wave-predictions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.wave-entries-table th,
.wave-entries-table td,
.wave-predictions-table th,
.wave-predictions-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #21262d;
    text-align: left;
    white-space: nowrap;
    color: #e6edf3;
}

.wave-entries-table th,
.wave-predictions-table th {
    background: #1c2128;
    font-weight: bold;
    color: #6e7681;
    font-size: 0.82em;
    border-bottom: 1px solid #30363d;
}

.wave-entries-table tbody tr:hover,
.wave-predictions-table tbody tr:hover {
    background: #1c2128;
}

.wave-entries-table tbody tr:last-child td,
.wave-predictions-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   結果ブロック（dark）
   ============================================================ */

.wave-result {
    padding: 12px 16px;
    background: rgba(46, 168, 152, 0.06);
    border: 1px solid rgba(46, 168, 152, 0.2);
    border-radius: 6px;
    font-size: 0.875em;
}

.wave-result__status {
    margin: 0 0 8px;
    font-size: 1em;
    color: #2ea898;
    font-weight: bold;
}

.wave-result__places {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: bold;
    flex-wrap: wrap;
    color: #e6edf3;
}

.wave-result__payout {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #8b949e;
}

.wave-result__exacta,
.wave-result__trifecta {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.wave-result__payout-amount {
    font-weight: bold;
    color: #f87171;
}

.wave-hit { font-weight: bold; font-size: 0.95em; }
.wave-hit--yes  { color: #2ea898; }
.wave-hit--no   { color: #484f58; }
.wave-hit--none { color: #30363d; }

.wave-result--pending,
.wave-result--cancelled {
    background: #161b22;
    border-color: #30363d;
}

.wave-result__pending-label {
    margin: 0;
    font-size: 0.875em;
    color: #6e7681;
}

.wave-result__kimari {
    font-size: 0.875em;
    color: #8b949e;
    margin-bottom: 6px;
}

.wave-result__kimari-label {
    color: #6e7681;
}

/* ============================================================
   note 誘導バナー（dark）
   ============================================================ */

.wave-note-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(46, 168, 152, 0.06);
    border: 1px solid rgba(46, 168, 152, 0.25);
    border-radius: 6px;
    margin: 12px 0;
}

.wave-note-cta__text {
    margin: 0;
    font-size: 0.9em;
    color: #2ea898;
    font-weight: bold;
}

.wave-note-cta__button {
    display: inline-block;
    padding: 7px 18px;
    background: #2ea898;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.15s;
}

.wave-note-cta__button:hover {
    background: #41c9b4;
    color: #fff;
}

/* ============================================================
   料金プラン（dark）
   ============================================================ */

.wave-pricing {
    margin: 0 0 24px;
}

.wave-pricing__intro {
    font-size: 0.9em;
    color: #8b949e;
    margin: 0 0 20px;
    line-height: 1.6;
}

.wave-pricing__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 600px) {
    .wave-pricing__cards {
        flex-direction: row;
        align-items: stretch;
    }
    .wave-pricing__card {
        flex: 1;
    }
}

.wave-pricing__card {
    position: relative;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wave-pricing__card--premium {
    border-color: #2ea898;
    box-shadow: 0 2px 12px rgba(46, 168, 152, 0.15);
}

.wave-pricing__badge {
    background: #2ea898;
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    text-align: center;
    padding: 4px 0;
    letter-spacing: 0.03em;
}

.wave-pricing__card-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid #21262d;
}

.wave-pricing__plan-name {
    margin: 0 0 8px;
    font-size: 1.1em;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #e6edf3;
    text-transform: lowercase;
}

.wave-pricing__card--premium .wave-pricing__plan-name {
    color: #2ea898;
}

.wave-pricing__price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-wrap: wrap;
}

.wave-pricing__launch-note {
    font-size: 0.8em;
    color: #f87171;
    font-weight: bold;
}

.wave-pricing__amount {
    font-size: 1.8em;
    font-weight: 900;
    color: #e6edf3;
    line-height: 1;
}

.wave-pricing__amount--launch { color: #f87171; }

.wave-pricing__period {
    font-size: 0.8em;
    color: #6e7681;
}

.wave-pricing__regular-note {
    margin: 4px 0 0;
    font-size: 0.78em;
    color: #6e7681;
}

.wave-pricing__features {
    list-style: none;
    margin: 0;
    padding: 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wave-pricing__features li {
    font-size: 0.875em;
    color: #8b949e;
    padding-left: 16px;
    position: relative;
}

.wave-pricing__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ea898;
    font-weight: bold;
}

.wave-pricing__feature--highlight {
    color: #2ea898;
    font-weight: bold;
}

.wave-pricing__cta {
    display: block;
    margin: 0 18px 18px;
    padding: 11px 0;
    text-align: center;
    background: #21262d;
    color: #6e7681;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    border: 1px solid #30363d;
    cursor: default;
}

.wave-pricing__note-section {
    background: #1c2128;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 16px 18px;
}

.wave-pricing__note-title {
    margin: 0 0 8px;
    font-size: 0.9em;
    color: #2ea898;
    font-weight: bold;
}

.wave-pricing__note-text {
    margin: 0;
    font-size: 0.85em;
    color: #8b949e;
    line-height: 1.6;
}

.wave-pricing__note-text a { color: #2ea898; }

.wave-pricing__disclaimer {
    margin: 16px 0 0;
    font-size: 0.78em;
    color: #484f58;
    line-height: 1.6;
}

/* ============================================================
   同会場レースナビ（dark）
   ============================================================ */

.wave-race-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wave-race-nav::-webkit-scrollbar { display: none; }

.wave-race-nav__header {
    font-size: 0.8em;
    font-weight: bold;
    color: #6e7681;
    white-space: nowrap;
    flex-shrink: 0;
}

.wave-race-nav__tabs {
    display: flex;
    gap: 4px;
    min-width: max-content;
}

.wave-race-nav__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 6px;
    background: #161b22;
    border: 1.5px solid #30363d;
    border-radius: 5px;
    font-size: 0.78em;
    font-weight: bold;
    color: #8b949e;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.wave-race-nav__tab:hover {
    border-color: #2ea898;
    color: #2ea898;
}

.wave-race-nav__tab.is-active {
    background: rgba(46, 168, 152, 0.12);
    border-color: #2ea898;
    color: #2ea898;
}

.wave-race-nav__tab.is-no-bet { opacity: 0.4; }

.wave-race-nav__tab.is-hit {
    border-color: rgba(239, 68, 68, 0.6);
    color: #f87171;
}

.wave-race-nav__tab.is-hit.is-active {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* ============================================================
   ヒーローセクション（hero.php）
   ============================================================ */

.wave-hero {
    padding: 32px 0 28px;
    text-align: center;
    border-bottom: 1px solid #21262d;
    margin-bottom: 28px;
}

.wave-hero__logo {
    font-size: 3.2em;
    font-weight: 900;
    color: #2ea898;
    letter-spacing: -0.03em;
    margin: 0 0 4px;
    line-height: 1;
}

.wave-hero__tagline {
    font-size: 1em;
    color: #8b949e;
    margin: 0 0 24px;
}

.wave-hero__stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wave-hero__stat { text-align: center; }

.wave-hero__stat-value {
    font-size: 1.6em;
    font-weight: 900;
    color: #2ea898;
    line-height: 1;
}

.wave-hero__stat-label {
    font-size: 0.75em;
    color: #6e7681;
    margin-top: 3px;
}

.wave-hero__features {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wave-hero__feature {
    font-size: 0.82em;
    color: #8b949e;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 5px 14px;
}

.wave-hero__cta {
    display: inline-block;
    padding: 11px 28px;
    background: #2ea898;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 16px;
    transition: background 0.15s;
}

.wave-hero__cta:hover {
    background: #41c9b4;
    color: #fff;
}

.wave-hero__disclaimer {
    font-size: 0.75em;
    color: #484f58;
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.6;
}

/* ============================================================
   結果スタブ（results.php）
   ============================================================ */

.wave-results {
    margin: 0 0 24px;
}

.wave-results__coming {
    text-align: center;
    padding: 48px 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #6e7681;
}

.wave-results__coming-icon {
    font-size: 2.4em;
    margin-bottom: 10px;
    color: #484f58;
}

.wave-results__coming-text {
    font-size: 0.9em;
    margin: 0 0 6px;
}

.wave-results__coming-sub {
    font-size: 0.78em;
    color: #484f58;
    margin: 0;
}

/* ============================================================
   スタブ（開発確認用）
   ============================================================ */

.wave-stub {
    color: #6e7681;
    font-style: italic;
    padding: 8px;
    border: 1px dashed #30363d;
    background: #161b22;
    font-size: 0.85em;
}

/* ============================================================
   旧スタイル互換（race-card等）
   ============================================================ */

.wave-race-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wave-race-card {
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    background: #161b22;
}

.wave-race-card__header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: #161b22;
    border-bottom: 2px solid #2ea898;
    font-size: 0.875em;
}

.wave-race-card__venue  { color: #e6edf3; font-weight: bold; }
.wave-race-card__number { color: #e6edf3; font-weight: bold; font-size: 1.1em; }
.wave-race-card__deadline { color: #6e7681; }

.wave-race-card__status {
    margin-left: auto;
    font-size: 0.8em;
    color: #2ea898;
    font-weight: bold;
    padding: 1px 6px;
    border: 1px solid rgba(46, 168, 152, 0.5);
    border-radius: 3px;
}

.wave-race-card__body {
    padding: 12px 14px;
    color: #e6edf3;
}

.wave-race-card__body--no-bet { background: #0d1117; }

.wave-no-bet-label {
    display: inline-block;
    font-size: 0.875em;
    font-weight: bold;
    color: #6e7681;
    border: 1px solid #30363d;
    border-radius: 3px;
    padding: 3px 10px;
}

.wave-pick__ticket {
    display: inline-block;
    font-size: 1.1em;
    font-weight: bold;
    color: #e6edf3;
    margin-bottom: 4px;
}

.wave-pick__reason {
    margin: 4px 0 0;
    font-size: 0.875em;
    color: #8b949e;
    line-height: 1.5;
}

.wave-race-card__links {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    font-size: 0.85em;
}

/* ============================================================
   PCヘッダーナビ（≥1024px）
   ============================================================ */

.wave-header__nav {
    display: none;
}

@media (min-width: 1024px) {
    .wave-header__nav {
        display: flex;
        align-items: center;
        gap: 2px;
        margin-left: auto;
        margin-right: 0;
    }
    .wave-hamburger {
        display: none;
    }
}

.wave-header__nav-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    font-size: 0.84em;
    color: #8b949e;
    text-decoration: none;
    border-radius: 5px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    font-weight: 500;
}

.wave-header__nav-item:hover {
    color: #e6edf3;
    background: #1c2128;
}

.wave-header__nav-item.is-active {
    color: #2ea898;
    background: rgba(46, 168, 152, 0.08);
}

/* ============================================================
   会場ランプ（左サイドバー）
   ============================================================ */

.wave-venue-lamp {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #30363d;
}

.wave-venue-lamp--live {
    background: #2ea898;
    animation: wave-blink 1.2s ease-in-out infinite;
}

.wave-venue-lamp--waiting {
    background: #d4a017;
}

.wave-venue-lamp--finished {
    background: #30363d;
}

/* ============================================================
   右サイドバー: スタット/スタブカード
   ============================================================ */

.wave-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wave-stat-card {
    padding: 14px;
}

.wave-stat-card__title {
    font-size: 0.72em;
    font-weight: bold;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
}

.wave-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.wave-stat-grid__item {
    text-align: center;
    background: #1c2128;
    border: 1px solid #30363d;
    border-radius: 5px;
    padding: 8px 4px 7px;
}

.wave-stat-grid__value {
    font-size: 1.15em;
    font-weight: 900;
    color: #2ea898;
    line-height: 1;
    margin-bottom: 4px;
}

.wave-stat-grid__label {
    font-size: 0.66em;
    color: #484f58;
}

.wave-stat-card__def {
    font-size: 0.7em;
    color: #484f58;
    margin: 8px 0 0;
    line-height: 1.4;
}

.wave-stat-card__def--pending {
    color: #6e7681;
    font-style: italic;
}

.wave-stub-card {
    padding: 16px 14px;
    text-align: center;
}

.wave-stub-card__label {
    font-size: 0.8em;
    color: #484f58;
    margin: 0 0 4px;
    font-weight: bold;
}

.wave-stub-card__sub {
    font-size: 0.72em;
    color: #30363d;
    margin: 0;
}

/* ============================================================
   結果ステータスバッジ
   ============================================================ */

.wave-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
}

.wave-result-hit {
    color: #2ea898;
    background: rgba(46, 168, 152, 0.12);
    border: 1px solid rgba(46, 168, 152, 0.4);
}

.wave-result-miss {
    color: #484f58;
    background: transparent;
    border: 1px solid #21262d;
}

.wave-result-pending {
    color: #6e7681;
    background: rgba(110, 118, 129, 0.06);
    border: 1px solid #30363d;
}

.wave-result-skip {
    color: #484f58;
    background: transparent;
    border: 1px solid #21262d;
}

.wave-result-reference-hit {
    color: #d4a017;
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.3);
}

/* 払戻金表示 */
.wave-payout {
    font-size: 0.78em;
    font-weight: bold;
    color: #2ea898;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 結果カード内のステータス行 */
.wave-result__rec-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.wave-result__skip-note {
    font-size: 0.72em;
    color: #484f58;
}

/* 一覧レース行：的中ハイライト（レイアウト崩しを避けて box-shadow で左辺アクセント） */
.wave-race-row--hit {
    background: rgba(46, 168, 152, 0.04);
    box-shadow: inset 3px 0 0 #2ea898;
}

.wave-race-row--hit:hover {
    background: rgba(46, 168, 152, 0.08);
}

/* 不的中：軽く暗める */
.wave-race-row--miss {
    opacity: 0.75;
}

.wave-race-row--miss:hover {
    opacity: 1;
}

/* 見送り参考的中：琥珀色の左辺アクセント */
.wave-race-row--ref-hit {
    box-shadow: inset 3px 0 0 rgba(212, 160, 23, 0.55);
}

/* ========== 直近的中履歴カード ========== */
.wave-hit-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wave-hit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.wave-hit-item:hover {
    background: rgba(46, 168, 152, 0.08);
}

.wave-hit-badge {
    font-size: 0.9em;
    flex-shrink: 0;
    line-height: 1;
}

.wave-hit-meta {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.wave-hit-venue {
    font-size: 0.8em;
    font-weight: 700;
    color: #e6edf3;
    white-space: nowrap;
    flex-shrink: 0;
}

.wave-hit-race {
    font-size: 0.75em;
    color: #6e7681;
    white-space: nowrap;
    flex-shrink: 0;
}

.wave-hit-ticket {
    font-size: 0.8em;
    font-weight: 700;
    color: #c9d1d9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wave-hit-payout {
    font-size: 0.78em;
    font-weight: 700;
    color: #2ea898;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.wave-hit-payout--none {
    color: #484f58;
    font-weight: 400;
}

.wave-hit-empty {
    font-size: 0.8em;
    color: #484f58;
    text-align: center;
    padding: 12px 0;
    margin: 0;
}

/* ========== 詳細ページ：一覧に戻るナビ ========== */
.wave-detail-nav {
    display: flex;
    align-items: center;
    padding: 8px 0 4px;
    margin-bottom: 4px;
}

.wave-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.82em;
    color: #6e7681;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #21262d;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.wave-back-link:hover {
    color: #c9d1d9;
    border-color: #30363d;
    background: #161b22;
}

/* ========== 詳細ページ：結果ステータスバー ========== */
.wave-detail-result-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 0 0 12px;
    border-radius: 6px;
    background: #161b22;
    border: 1px solid #21262d;
    flex-wrap: wrap;
}

.wave-detail-result-bar__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.wave-detail-result-bar__payout {
    font-size: 0.88em;
    font-weight: 700;
    color: #2ea898;
    white-space: nowrap;
}

.wave-detail-result-bar__note {
    font-size: 0.75em;
    color: #484f58;
    white-space: nowrap;
}

/* 各状態のバッジ色（既存 wave-result-* クラスと統一） */
.wave-detail-result-bar .wave-detail-result-hit {
    color: #2ea898;
    background: rgba(46, 168, 152, 0.12);
    border: 1px solid rgba(46, 168, 152, 0.4);
}

.wave-detail-result-bar .wave-detail-result-miss {
    color: #6e7681;
    background: transparent;
    border: 1px solid #21262d;
}

.wave-detail-result-bar .wave-detail-result-pending {
    color: #6e7681;
    background: rgba(110, 118, 129, 0.06);
    border: 1px solid #30363d;
}

.wave-detail-result-bar .wave-detail-result-skip {
    color: #484f58;
    background: transparent;
    border: 1px solid #21262d;
}

.wave-detail-result-bar .wave-detail-result-reference-hit {
    color: #d4a017;
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.3);
}

/* 結果状態による詳細ページ全体の左辺アクセント */
.wave-detail-result-hit.wave-race-detail {
    border-left: 3px solid #2ea898;
}

.wave-detail-result-miss.wave-race-detail {
    /* 不的中は装飾なし（控えめに） */
}

.wave-detail-result-pending.wave-race-detail {
    /* 結果待ちは装飾なし */
}

.wave-detail-result-skip.wave-race-detail {
    border-left: 3px solid #21262d;
}

.wave-detail-result-reference-hit.wave-race-detail {
    border-left: 3px solid rgba(212, 160, 23, 0.55);
}

/* ── result-hero カード ─────────────────────────────────────────── */
.wave-detail-result-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin: 0 0 8px;
    border-radius: 6px;
    border: 1px solid #30363d;
    background: #161b22;
}

.wave-detail-result-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wave-detail-result-hero__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.wave-detail-result-hero__label {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.wave-detail-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .9rem;
    color: #8b949e;
}

.wave-detail-result-hero__ticket {
    color: #c9d1d9;
    font-weight: 600;
    letter-spacing: .03em;
}

.wave-detail-result-hero__bet-type {
    font-size: .78rem;
    font-weight: 400;
    color: #8b949e;
    margin-left: 4px;
}

.wave-detail-result-hero__payout {
    color: #2ea898;
    font-weight: 700;
    font-size: 1rem;
}

.wave-detail-result-hero__payout-zero {
    color: #6e7681;
    font-size: .88rem;
}

.wave-detail-result-hero__note {
    color: #6e7681;
    font-size: .85rem;
}

/* 的中 */
.wave-detail-result-hero--hit {
    border-color: #2ea898;
    background: rgba(46, 168, 152, 0.06);
}
.wave-detail-result-hero--hit .wave-detail-result-hero__label {
    color: #2ea898;
}

/* 不的中 */
.wave-detail-result-hero--miss {
    border-color: #30363d;
    background: #161b22;
}
.wave-detail-result-hero--miss .wave-detail-result-hero__label {
    color: #6e7681;
}

/* 見送り */
.wave-detail-result-hero--skip {
    border-color: #21262d;
    background: #0d1117;
}
.wave-detail-result-hero--skip .wave-detail-result-hero__label {
    color: #484f58;
}

/* 参考的中 */
.wave-detail-result-hero--reference-hit {
    border-color: rgba(212, 160, 23, 0.3);
    background: rgba(212, 160, 23, 0.05);
}
.wave-detail-result-hero--reference-hit .wave-detail-result-hero__label {
    color: #d4a017;
}

/* 結果待ち */
.wave-detail-result-hero--pending {
    border-color: #30363d;
    background: #161b22;
}
.wave-detail-result-hero--pending .wave-detail-result-hero__label {
    color: #8b949e;
}

/* ── 結果ヒーロー（カードUIリニューアル） ─────────────────── */
.wave-detail-result-hero {
    align-items: stretch;
}
.wave-detail-result-hero__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 84px;
    padding-right: 14px;
    border-right: 1px solid #30363d;
}
.wave-detail-result-hero__tag {
    font-size: .68rem;
    color: #8b949e;
    background: rgba(139, 148, 158, 0.12);
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
}
.wave-detail-result-hero__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.wave-detail-result-hero__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.wave-detail-result-hero__row-label {
    font-size: .72rem;
    color: #6e7681;
    flex-shrink: 0;
    min-width: 2.6em;
}
.wave-detail-result-hero__ticket.is-hit {
    color: #2ea898;
}
.wave-detail-result-hero__actual {
    color: #c9d1d9;
    font-weight: 600;
    letter-spacing: .03em;
}
.wave-detail-result-hero__actual-payout {
    color: #8b949e;
    font-weight: 400;
    font-size: .85rem;
    margin-left: 4px;
}
.wave-detail-result-hero__payout strong {
    font-size: 1.15rem;
    color: #2ea898;
}
.wave-detail-result-hero__pending-msg {
    font-size: .85rem;
    color: #8b949e;
}
.wave-detail-result-hero__baseline {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #21262d;
}
.wave-detail-result-hero__baseline-calc {
    font-size: .8rem;
    color: #adbac7;
}
.wave-detail-result-hero__baseline-note {
    font-size: .7rem;
    color: #6e7681;
}

/* ── 一覧: 集計状態バッジ / フォールバック通知 ───────────── */
.wave-summary__state {
    font-size: .78rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: .03em;
}
.wave-summary__state--waiting {
    color: #8b949e;
    background: rgba(139, 148, 158, 0.14);
}
.wave-summary__state--partial {
    color: #d4a017;
    background: rgba(212, 160, 23, 0.14);
}
.wave-summary__state--confirmed {
    color: #2ea898;
    background: rgba(46, 168, 152, 0.14);
}
.wave-summary__note--rec {
    color: #8b6d1a;
}
.wave-stat-card__def--rec {
    color: #8b6d1a;
    font-size: .8rem;
}
.wave-fallback-notice {
    margin: 0 0 10px;
    padding: 8px 12px;
    font-size: .85rem;
    color: #d4a017;
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 6px;
}

/* 実着順ブロック（OK確定時のみ） */
.wave-result--ok {
    padding: 12px 18px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    margin: 0 0 8px;
}
