/* 基本ユーティリティ */
[hidden] {
    display: none !important;
}

/* CSSカスタムプロパティ（デザインシステム） */
:root {
    --bg-gradient: linear-gradient(135deg, #0f172a, #1e1b4b);
    --card-bg: rgba(30, 41, 59, 0.75);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #f43f5e;
    --accent-hover: #e11d48;
    --success: #10b981;
    --focus-ring: #38bdf8;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --font-main: 'Noto Sans JP', sans-serif;
    --font-eng: 'Outfit', sans-serif;
}

/* リセット & ベーススタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-eng), var(--font-main);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    background: linear-gradient(to right, #a5b4fc, #6366f1, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    text-align: left;
}

/* アクセシビリティ：スクリーンリーダー用非表示 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* スキップリンク */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--focus-ring);
}

/* 共通カードレイアウト */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    width: 100%;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

input[type="text"], select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--focus-ring);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 0.6rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 区切り線 */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.divider::before { margin-right: 0.75rem; }
.divider::after { margin-left: 0.75rem; }

/* コピー用ボックス */
.copy-box {
    display: flex;
    gap: 0.5rem;
}

/* プレイヤーリスト */
.player-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* バッジ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge-host {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-bot {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.4);
}
.badge-rev {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}
.badge-11back {
    background: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.5);
}
.badge-lock {
    background: rgba(249, 115, 22, 0.25);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.5);
}
.badge-dir {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ライブ通知ステータスボックス */
.live-status-box {
    background: rgba(15, 23, 42, 0.7);
    border-left: 4px solid var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
}

/* プレイヤー状態チップ */
.player-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.player-chip.is-turn {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.player-chip.is-finished {
    opacity: 0.6;
    text-decoration: line-through;
}

/* トランプカード表示（サイズ設定カスタムプロパティ） */
:root {
    --card-img-width: 96px;
}
html[data-card-size="small"], body[data-card-size="small"] {
    --card-img-width: 64px;
}
html[data-card-size="normal"], body[data-card-size="normal"] {
    --card-img-width: 96px;
}
html[data-card-size="large"], body[data-card-size="large"] {
    --card-img-width: 128px;
}

/* 手札コンテナ（初期値：グリッド＝縦横並び、タブレット・PCは横5枚） */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem 0.5rem;
    justify-items: center;
    align-items: center;
    padding: 1rem 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    min-height: 120px;
}

.cards-grid > p {
    grid-column: 1 / -1;
    text-align: center;
}

/* 手札カードボタン（アクセシブル対応チェックボックス型） */
.card-btn {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
    border-radius: 6px;
    touch-action: manipulation;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.card-btn img {
    display: block;
    width: var(--card-img-width, 96px);
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: border 0.2s, box-shadow 0.2s, width 0.2s;
}

/* リスト表示用のカード名・選択状態テキスト（グリッド時は非表示） */
.card-btn-label {
    display: none;
}

.card-btn:hover {
    transform: translateY(-6px);
}

.card-btn:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 6px;
}

/* カード選択状態（チェック時） */
.card-btn[aria-checked="true"] {
    transform: translateY(-12px);
}

.card-btn[aria-checked="true"] img {
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.5);
    outline: 3px solid #f59e0b;
}

/* 手札レイアウト：リスト（音声で聞きやすい縦1列表示） */
html[data-hand-layout="list"] .cards-grid,
body[data-hand-layout="list"] .cards-grid,
.cards-grid.layout-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

html[data-hand-layout="list"] .card-btn,
body[data-hand-layout="list"] .card-btn,
.cards-grid.layout-list .card-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 0.45rem 0.85rem;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-align: left;
}

html[data-hand-layout="list"] .card-btn:hover,
body[data-hand-layout="list"] .card-btn:hover,
.cards-grid.layout-list .card-btn:hover {
    transform: none;
    background: rgba(51, 65, 85, 0.85);
}

html[data-hand-layout="list"] .card-btn[aria-checked="true"],
body[data-hand-layout="list"] .card-btn[aria-checked="true"],
.cards-grid.layout-list .card-btn[aria-checked="true"] {
    transform: none;
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

html[data-hand-layout="list"] .card-btn-label,
body[data-hand-layout="list"] .card-btn-label,
.cards-grid.layout-list .card-btn-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-btn-state {
    font-size: 0.85rem;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.card-btn[aria-checked="true"] .card-btn-state {
    background: rgba(245, 158, 11, 0.3);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.6);
}

/* 場のカード画像 */
.field-card-img {
    width: var(--card-img-width, 96px);
    max-width: 112px;
    height: auto;
    image-rendering: pixelated;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: dropIn 0.25s ease-out;
}

@keyframes dropIn {
    0% { transform: scale(0.8) translateY(-10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ランキングリスト */
.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.ranking-item.rank-1 {
    border-color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
}

/* レスポンシブ調整（スマホ画面ではグリッド横2枚並び） */
@media (max-width: 600px) {
    body {
        padding: 0.75rem;
    }
    .card {
        padding: 1.25rem;
    }
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    h1 {
        font-size: 1.8rem;
    }
}


/* 手札カード選択時のバリデーション通知ボックス */
.validation-status-box {
    display: block;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
}
.validation-status-box.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}
.validation-status-box.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #86efac;
}
.validation-status-box.info {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}


/* ----------------------------------------------------
   アクセシビリティ設定：フォントサイズ
   ---------------------------------------------------- */
html.font-size-large, body.font-size-large {
    font-size: 1.15rem;
}
html.font-size-large, body.font-size-large h1 {
    font-size: 2.2rem;
}
html.font-size-large, body.font-size-large h2 {
    font-size: 1.6rem;
}
html.font-size-large, body.font-size-large h3 {
    font-size: 1.25rem;
}
html.font-size-large, body.font-size-large .btn {
    font-size: 1.05rem;
    padding: 0.75rem 1.4rem;
}
html.font-size-large, body.font-size-large .badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

/* ----------------------------------------------------
   アクセシビリティ設定：色彩・白黒反転テーマ
   ---------------------------------------------------- */
/* 1. 白黒反転（高コントラスト黒背景・白文字） */
html[data-theme="high-contrast-dark"], body[data-theme="high-contrast-dark"] {
    --bg-gradient: #000000;
    --card-bg: #121212;
    --card-border: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #dc2626;
    --success: #22c55e;
    --focus-ring: #fbbf24;
    background: #000000 !important;
    color: #ffffff !important;
}
html[data-theme="high-contrast-dark"], body[data-theme="high-contrast-dark"] .card-btn {
    border: 2px solid #ffffff;
}
html[data-theme="high-contrast-dark"], body[data-theme="high-contrast-dark"] .badge {
    border: 2px solid #ffffff;
}

/* 2. 白背景・黒文字（高コントラストライト） */
html[data-theme="high-contrast-light"], body[data-theme="high-contrast-light"] {
    --bg-gradient: #ffffff;
    --card-bg: #f8fafc;
    --card-border: #000000;
    --text-primary: #000000;
    --text-secondary: #1e293b;
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --accent: #b91c1c;
    --success: #15803d;
    --focus-ring: #0284c7;
    background: #ffffff !important;
    color: #000000 !important;
}
html[data-theme="high-contrast-light"], body[data-theme="high-contrast-light"] header,
html[data-theme="high-contrast-light"], body[data-theme="high-contrast-light"] main,
html[data-theme="high-contrast-light"], body[data-theme="high-contrast-light"] section {
    color: #000000 !important;
}
html[data-theme="high-contrast-light"], body[data-theme="high-contrast-light"] .app-header {
    border-bottom: 2px solid #000000;
}
html[data-theme="high-contrast-light"], body[data-theme="high-contrast-light"] .card-btn {
    border: 2px solid #000000;
}
html[data-theme="high-contrast-light"], body[data-theme="high-contrast-light"] .badge {
    border: 2px solid #000000;
    color: #000000;
    background: #e2e8f0;
}

/* 3. 黄黒（最大コントラスト・弱視者向け） */
html[data-theme="yellow-black"], body[data-theme="yellow-black"] {
    --bg-gradient: #000000;
    --card-bg: #0a0a0a;
    --card-border: #ffff00;
    --text-primary: #ffff00;
    --text-secondary: #ffff55;
    --primary: #ffff00;
    --primary-hover: #e6e600;
    --accent: #ff5555;
    --success: #55ff55;
    --focus-ring: #ffff00;
    background: #000000 !important;
    color: #ffff00 !important;
}
html[data-theme="yellow-black"], body[data-theme="yellow-black"] * {
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
html[data-theme="yellow-black"], body[data-theme="yellow-black"] .btn-primary {
    background: #ffff00 !important;
    color: #000000 !important;
    font-weight: 900;
}
html[data-theme="yellow-black"], body[data-theme="yellow-black"] .btn-secondary {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

/* ----------------------------------------------------
   アクセシビリティツールバーのスタイル（折りたたみ対応）
   ---------------------------------------------------- */
.accessibility-bar {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.accessibility-bar-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}
.accessibility-toggle-btn {
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.15s ease;
}
.accessibility-toggle-btn:hover,
.accessibility-toggle-btn:focus-visible {
    background: rgba(51, 65, 85, 0.95);
    outline: 2px solid var(--focus-ring);
}
.accessibility-settings-panel {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.accessibility-bar-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.accessibility-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.accessibility-select {
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}
.accessibility-btn {
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.25rem 0.65rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.accessibility-btn:hover, .accessibility-btn:focus {
    background: rgba(51, 65, 85, 0.9);
    outline: 2px solid var(--focus-ring);
}

/* ----------------------------------------------------
   ルールタグボタン・ルール詳細ポップアップモーダル
   ---------------------------------------------------- */
.rules-tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.rule-tag-btn {
    appearance: none;
    background: rgba(59, 130, 246, 0.18);
    color: #e2e8f0;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 9999px;
    padding: 0.15rem 0.65rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.4;
}

.rule-tag-btn:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: #93c5fd;
    color: #ffffff;
    transform: translateY(-1px);
}

.rule-tag-btn:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.rule-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.rule-modal-dialog {
    background: #1e293b;
    color: var(--text-primary);
    border: 2px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
    text-align: left;
    animation: dropIn 0.2s ease-out;
}

.rule-modal-title {
    font-size: 1.2rem;
    color: #93c5fd;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
}

.rule-modal-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
}

.rule-modal-footer {
    display: flex;
    justify-content: center;
}

html.font-size-large .rule-tag-btn, body.font-size-large .rule-tag-btn {
    font-size: 0.92rem;
    padding: 0.25rem 0.8rem;
}

html.font-size-large .rule-modal-title, body.font-size-large .rule-modal-title {
    font-size: 1.35rem;
}

html.font-size-large .rule-modal-desc, body.font-size-large .rule-modal-desc {
    font-size: 1.1rem;
}

html[data-theme="high-contrast-dark"] .rule-modal-dialog,
body[data-theme="high-contrast-dark"] .rule-modal-dialog {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

html[data-theme="high-contrast-light"] .rule-modal-dialog,
body[data-theme="high-contrast-light"] .rule-modal-dialog {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

html[data-theme="high-contrast-light"] .rule-tag-btn,
body[data-theme="high-contrast-light"] .rule-tag-btn {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

html[data-theme="yellow-black"] .rule-modal-dialog,
body[data-theme="yellow-black"] .rule-modal-dialog {
    background: #000000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

html[data-theme="yellow-black"] .rule-tag-btn,
body[data-theme="yellow-black"] .rule-tag-btn {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

