/* wave-core-new/assets/style.css */

/* ============================================================
   ページベース（body.wave-page 専用）
   ============================================================ */

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

body.wave-page {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #1a1a1a;
    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: #f5f7fa;
}

/* スマホファースト：横幅いっぱい + 最小余白 */
.wave-page-main {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 10px 48px; /* 64px = 52px fixed header + 12px gap */
}

/* タブレット以上：余白を広げ中央寄せを維持 */
@media (min-width: 768px) {
    .wave-page-main {
        padding: 76px 16px 64px; /* 76px = 52px header + 24px gap */
    }
}

/* ============================================================
   WAVE固定ヘッダー（UI-003）
   ============================================================ */

.wave-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #41c9b4;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

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

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

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

.wave-header__tagline {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

/* WordPress管理バー対応（ログイン中の管理バーとの位置調整） */
body.admin-bar .wave-header {
    top: 32px;
}

body.admin-bar .wave-menu {
    padding-top: 84px; /* 32px admin-bar + 52px header */
}

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

/* ============================================================
   ハンバーガーボタン（UI-003）
   ============================================================ */

.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: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: center;
}

.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);
}

/* ============================================================
   オーバーレイ（UI-003）
   ============================================================ */

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

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

/* ============================================================
   ドロワーメニュー（UI-003）
   ============================================================ */

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

.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: #1a1a1a;
    text-decoration: none;
    font-size: 0.95em;
    border-bottom: 1px solid #f0f0f0;
}

.wave-menu__item:hover {
    background: #f5fdfb;
    color: #41c9b4;
}

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

.wave-menu__item--small:hover {
    color: #41c9b4;
}

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

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

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

.wave-error {
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    color: #c0392b;
}

.wave-empty,
.wave-cancelled {
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #666;
}

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

.wave-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: #f0f7ff;
    border: 1px solid #b8d4f0;
    border-radius: 4px;
    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;
}

.wave-summary__venue {
    font-weight: bold;
}

.wave-summary__hit {
    color: #1a8a7a;
    font-weight: bold;
}

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

.wave-summary__roi--plus {
    color: #1a8a7a;
}

.wave-summary__roi--minus {
    color: #c0392b;
}

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

/* ============================================================
   レースカード（race-list.php）
   ============================================================ */

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

.wave-race-card {
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

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

.wave-race-card__venue {
    color: #1a1a1a;
    font-weight: bold;
}

.wave-race-card__number {
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1.1em;
}

.wave-race-card__deadline {
    color: #555;
}

.wave-race-card__status {
    margin-left: auto;
    font-size: 0.8em;
    color: #41c9b4;
    font-weight: bold;
    padding: 1px 6px;
    border: 1px solid #41c9b4;
    border-radius: 3px;
}

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

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

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

.wave-race-card__confidence {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.wave-ev {
    color: #222;
    font-weight: bold;
}

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

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

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

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

.wave-confidence--high {
    background: #e8f5e9;
    color: #2e7d32;
}

.wave-confidence--medium {
    background: #fff8e1;
    color: #f57f17;
}

.wave-confidence--low {
    background: #fafafa;
    color: #888;
}

/* ============================================================
   有料バッジ（マスク表示）
   ============================================================ */

.wave-paid-badge {
    background: #fffbe6;
    border: 1px dashed #f0c040;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.875em;
    color: #7d5a00;
}

/* テーブル行の場合は背景色のみ適用 */
tr.wave-paid-badge {
    background: #fffbe6;
}

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

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

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

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

.wave-link--detail {
    color: #555;
}

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

.wave-link--note {
    color: #41c9b4;
    font-weight: bold;
}

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

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

/* ============================================================
   レース詳細（race-detail.php）
   ============================================================ */

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

.wave-race-detail__header {
    margin-bottom: 12px;
}

.wave-race-detail__title {
    font-size: 1.1em;
    margin: 0 0 4px;
}

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

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

.wave-race-detail__meet-part {
    font-size: 0.82em;
    color: #555;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 1px 6px;
    white-space: nowrap;
}

.wave-race-detail__meta {
    font-size: 0.85em;
    color: #666;
}

/* entries / predictions 共通テーブル */
.wave-entries-table-wrap,
.wave-predictions-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.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: 6px 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
    white-space: nowrap;
}

.wave-entries-table th,
.wave-predictions-table th {
    background: #f4f4f4;
    font-weight: bold;
    color: #444;
}

.wave-entries-table__row:nth-child(even),
.wave-predictions-table__row:nth-child(even) {
    background: #fafafa;
}

/* ============================================================
   結果ブロック
   ============================================================ */

.wave-result {
    padding: 10px 14px;
    background: #f9fdf4;
    border: 1px solid #c3e6a8;
    border-radius: 4px;
    font-size: 0.875em;
}

.wave-result__status {
    margin: 0 0 6px;
    font-size: 1em;
    color: #2e7d32;
}

.wave-result__places {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    font-weight: bold;
}

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

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

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

/* 的中バッジ */
.wave-hit {
    font-weight: bold;
    font-size: 0.95em;
}

.wave-hit--yes {
    color: #1a8a7a;
}

.wave-hit--no {
    color: #ccc;
}

.wave-hit--none {
    color: #bbb;
}

.wave-result--pending,
.wave-result--cancelled {
    background: #f8f8f8;
    border-color: #ddd;
}

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

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

.wave-result__kimari-label {
    color: #888;
}

/* ============================================================
   note 誘導バナー（note-cta.php / [wave_new_note_link]）
   ============================================================ */

.wave-note-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #e8faf7;
    border: 1px solid #41c9b4;
    border-radius: 6px;
    margin: 12px 0;
}

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

.wave-note-cta__button {
    display: inline-block;
    padding: 7px 18px;
    background: #41c9b4;
    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: #2ea898;
    color: #fff;
}

/* ============================================================
   料金プラン（pricing.php / [wave_new_pricing]）
   ============================================================ */

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

.wave-pricing__intro {
    font-size: 0.9em;
    color: #444;
    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: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
}

.wave-pricing__card--premium {
    border-color: #41c9b4;
    box-shadow: 0 2px 8px rgba(65, 201, 180, 0.2);
}

.wave-pricing__badge {
    background: #41c9b4;
    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 #f0f0f0;
}

.wave-pricing__plan-name {
    margin: 0 0 8px;
    font-size: 1.1em;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    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: #c0392b;
    font-weight: bold;
}

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

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

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

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

.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: #333;
    padding-left: 16px;
    position: relative;
}

.wave-pricing__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #41c9b4;
    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: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.15s;
}

.wave-pricing__cta:hover {
    background: #e0e0e0;
}

.wave-pricing__cta--premium {
    background: #41c9b4;
    color: #fff;
}

.wave-pricing__cta--premium:hover {
    background: #2ea898;
    color: #fff;
}

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

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

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

/* ============================================================
   スタブ（開発確認用・本番では不使用）
   ============================================================ */

.wave-stub {
    color: #888;
    font-style: italic;
    padding: 8px;
    border: 1px dashed #ccc;
    background: #fafafa;
}

/* ============================================================
   会場タブストリップ（race-list.php）
   ============================================================ */

.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;
}

/* PC: タブ折り返し */
@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;
    }
}

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

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

.wave-venue-tab.is-active {
    background: #41c9b4;
    border-color: #41c9b4;
    color: #fff;
}

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

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

.wave-venue-tab.is-active .wave-venue-tab__meta {
    opacity: 0.88;
}

/* ============================================================
   会場パネル（race-list.php）
   ============================================================ */

.wave-venue-panel {
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   レース行（race-list.php）
   ============================================================ */

.wave-race-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 48px;
    background: #fff;
}

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

.wave-race-row--no-bet {
    background: #fafafa;
}

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

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

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

.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: #1a8a7a;
    background: #e8faf7;
    border: 1px solid #41c9b4;
}

.wave-race-row__badge--nobet {
    color: #aaa;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

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

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

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

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

/* ============================================================
   的中/不的中バッジ（race-list.php）
   ============================================================ */

.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: #1a8a7a;
    background: #e8faf7;
    border: 1px solid #41c9b4;
}

.wave-race-row__miss-badge {
    color: #bbb;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
}

/* ============================================================
   サマリー的中（race-list.php）
   ============================================================ */

.wave-summary__hit {
    white-space: nowrap;
    color: #1a8a7a;
    font-weight: bold;
}

/* ============================================================
   会場タブ補足テキスト（grade/meet/day）
   ============================================================ */

.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;
}

/* ============================================================
   グレード別タブ色（grade が JSON に入ったら自動適用）
   ============================================================ */

.wave-venue-tab.wave-grade-sg {
    border-color: #d4a200;
}

.wave-venue-tab.wave-grade-sg.is-active {
    background: #e8a000;
    border-color: #e8a000;
    color: #fff;
}

.wave-venue-tab.wave-grade-g1 {
    border-color: #c0392b;
}

.wave-venue-tab.wave-grade-g1.is-active {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.wave-venue-tab.wave-grade-g2 {
    border-color: #2980b9;
}

.wave-venue-tab.wave-grade-g2.is-active {
    background: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

.wave-venue-tab.wave-grade-g3 {
    border-color: #7f8c8d;
}

.wave-venue-tab.wave-grade-g3.is-active {
    background: #7f8c8d;
    border-color: #7f8c8d;
    color: #fff;
}

/* wave-grade-general は default の #41c9b4 を使用（追加スタイル不要） */

/* ============================================================
   同会場レースナビ（race-detail.php）
   ============================================================ */

.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: #666;
    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: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.78em;
    font-weight: bold;
    color: #555;
    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: #41c9b4;
    color: #2ea898;
}

.wave-race-nav__tab.is-active {
    background: #41c9b4;
    border-color: #41c9b4;
    color: #fff;
}

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

.wave-race-nav__tab.is-hit {
    border-color: #ef4444;
    color: #ef4444;
}

.wave-race-nav__tab.is-hit.is-active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}
