/* 見た目のテーマ（2026-11-06）。table.css・style.css の上に重ねる。切り替えは shared/client/theme.js
   html[data-theme="b"]＝ホログラム（はじめの見た目）、"c"＝夜の雀卓、"a"＝ネオン（まだ選べない。対局画面だけ作ってある）
   牌の表（図柄）は読みやすさのため白のまま。厚み・裏・まわりの色と飾りだけ変える
   上から下へ走る光の線・動く床などは、麻雀の邪魔になるので卓・結果の画面には出さない（トップ画面だけ。2026-11-06 ユーザー） */

/* ---------- どのテーマでも ---------- */
/* 設定のパネルの「見た目」の段 */
.theme-row { display: flex; align-items: center; gap: 12px; }
.theme-row > span { width: 4.5em; flex: none; }
.theme-choices { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-choices button { font-size: 18px; padding: 8px 4px; opacity: .7; }
.theme-choices button.on { opacity: 1; outline: 2px solid var(--accent); }
#title .theme-row > span { width: 3.5em; }
#title .theme-choices button { font-size: 13px; padding: 8px 2px; white-space: nowrap; }
/* テーマ B だけの絵と文字のロゴ（ほかのテーマでは隠す） */
.title-holo, .logo-text { display: none; }
/* お知らせ・目安箱のアイコンの抜き（背景の色で塗っている） */
.top-icon svg [fill="#0a2a1b"] { fill: var(--bg); }
.top-icon svg [stroke="#0a2a1b"] { stroke: var(--bg); }
/* トップ画面の飾り（::before / ::after）を背景と中身のあいだに描く */
#title { isolation: isolate; }


/* =====================================================================
   B：ホログラム（管制室の画面。シアン × オレンジ・格子・角を切った形）
   ===================================================================== */
html[data-theme="b"] {
  --bg: #04121b;
  --felt-1: #0b2a3a;
  --felt-2: #04121b;
  --ink: #eaffff;
  --muted: #8fd3dc;
  --accent: #5ff3ff;
  --orange: #ff9d2e;
  --danger: #ff6a5a;
  --tile-face: #f5fcff;
  --tile-side: #63c9d6;
  --tile-back-1: #1a7f92;
  --tile-back-2: #0b3f4f;
  --screen-bg:
    linear-gradient(#5ff3ff0f 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, #5ff3ff0f 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(ellipse at 50% 30%, #0b2a3a 0%, #04121b 60%, #01070b 100%);
  --panel: #04121bf2;
  --panel-glass: #04121bdd;
  --card-bg: linear-gradient(#0b2a3a, #04121b);
  --card-border: #5ff3ff88;
  --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --cut-s: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
:where([data-theme="b"]) button { border-radius: 4px; }
[data-theme="b"] button.primary, [data-theme="b"] .tab.on, [data-theme="b"] .lang-switch button.on { color: #01070b; }

/* ---------- トップ画面 ---------- */
/* 上から下へ走る光の線（トップ画面だけ） */
[data-theme="b"] #title::after {
  content: ""; position: fixed; left: 0; right: 0; height: 90px; top: -90px; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent, #5ff3ff1f 80%, #5ff3ff66 100%); animation: b-title-scan 3.2s linear infinite;
}
@keyframes b-title-scan { to { top: 100%; } }
[data-theme="b"] .title-hero { display: none; }
[data-theme="b"] .title-holo { display: grid; place-items: center; position: relative; width: min(320px, 100%); height: 210px; margin-bottom: -4px; }
[data-theme="b"] .title-holo .ring { position: absolute; width: 196px; height: 196px; border-radius: 50%; border: 1px dashed #5ff3ff66; animation: b-spin 14s linear infinite; }
[data-theme="b"] .title-holo .ring.r2 { width: 156px; height: 156px; border: 2px solid transparent; border-top-color: var(--accent); border-bottom-color: var(--orange); animation-duration: 5s; animation-direction: reverse; }
[data-theme="b"] .holo-tile {
  width: 88px; height: 118px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, #bffcff40, #5ff3ff14); box-shadow: inset 0 0 0 2px #5ff3ffcc, 0 0 30px #5ff3ff66;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-weight: 900; font-size: 62px; color: #ff6a5a; text-shadow: 0 0 14px #ff3b2e;
  animation: b-float 3s ease-in-out infinite;
}
@keyframes b-float { 50% { transform: translateY(-8px); } }
[data-theme="b"] .title-holo .tag { position: absolute; font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 10px; line-height: 1.5; color: var(--accent); letter-spacing: .1em; }
[data-theme="b"] .title-holo .t1 { top: 10px; left: 4px; text-align: left; }
[data-theme="b"] .title-holo .t2 { bottom: 10px; right: 4px; text-align: right; }
[data-theme="b"] .title-holo .t3 { top: 10px; right: 4px; color: var(--orange); }
[data-theme="b"] .title-logo svg, [data-theme="b"] .welcome-logo svg { display: none; }
[data-theme="b"] .logo-text { display: block; font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-weight: 900; font-size: 42px; line-height: 1.1; letter-spacing: .04em; color: #eaffff; text-shadow: 0 0 12px #5ff3ffaa; }
[data-theme="b"] .logo-text em { font-style: normal; color: var(--orange); text-shadow: 0 0 12px #ff9d2eaa; }
[data-theme="b"] #title .lead { color: #5ff3ffcc; letter-spacing: .25em; margin-top: 2px; }
[data-theme="b"] #title .lead::before { content: "> "; color: var(--orange); font-family: "Share Tech Mono", monospace; }
[data-theme="b"] #title.intro .logo-text { animation: fade-in .9s ease-out both; }
[data-theme="b"] .welcome-logo .logo-text { font-size: 36px; text-align: center; }

/* 大きなボタン：角を切った板。左に光る線 */
[data-theme="b"] .big-choice { border-radius: 0; clip-path: var(--cut); box-shadow: inset 4px 0 0 var(--edge, var(--accent)); }
[data-theme="b"] .big-choice:active { box-shadow: inset 4px 0 0 var(--edge, var(--accent)); }
[data-theme="b"] .big-choice.casual { background: linear-gradient(90deg, #0f6f86, #0a3f52); --edge: var(--accent); }
[data-theme="b"] .big-choice.ranked { background: linear-gradient(90deg, #a3501a, #5b2a0d); --edge: var(--orange); }
[data-theme="b"] .big-choice.sanma { background: linear-gradient(90deg, #8a6a12, #4a3606); --edge: #ffd25e; }
[data-theme="b"] .big-choice.yonma { background: linear-gradient(90deg, #12806c, #0a4239); --edge: #6dffd9; }
[data-theme="b"] .big-choice small { font-family: system-ui, sans-serif; }
[data-theme="b"] .big-choice .choice-wait { border-radius: 2px; font-family: "Share Tech Mono", monospace; font-weight: 400; letter-spacing: .05em; }
[data-theme="b"] .kind-pill, [data-theme="b"] .mode-pill, [data-theme="b"] .back-pill { border-radius: 0; clip-path: var(--cut-s); box-shadow: none; }
[data-theme="b"] .kind-pill.casual { background: linear-gradient(90deg, #0f6f86, #0a3f52); }
[data-theme="b"] .kind-pill.ranked { background: linear-gradient(90deg, #a3501a, #5b2a0d); }
[data-theme="b"] .mode-pill.sanma { background: linear-gradient(90deg, #8a6a12, #4a3606); }
[data-theme="b"] .mode-pill.yonma { background: linear-gradient(90deg, #12806c, #0a4239); }
[data-theme="b"] .back-pill { background: linear-gradient(90deg, #2c3d45, #1a262c) !important; }
/* 下のリンク：細い枠の板 */
[data-theme="b"] .title-links button { background: #5ff3ff0d; color: #c9fbff; box-shadow: inset 0 0 0 1px #5ff3ff55; text-shadow: none; border-radius: 0; clip-path: var(--cut-s); }
[data-theme="b"] .title-links .l-rules { box-shadow: inset 0 0 0 1px #ff9d2e77; color: #ffe2bf; }
/* 右上・左上 */
[data-theme="b"] .top-icon, [data-theme="b"] #title .mute-button, [data-theme="b"] .profile-chip { border-radius: 4px; border-color: #5ff3ff55; background: #04121bcc; }
[data-theme="b"] .lang-switch button { border-radius: 2px; }
[data-theme="b"] .pre-badge { border-radius: 0; clip-path: var(--cut-s); background: linear-gradient(90deg, #c4621f, #8a3a10); box-shadow: none; letter-spacing: .2em; }
[data-theme="b"] .app-version { font-family: "Share Tech Mono", monospace; color: #5ff3ff88; }
[data-theme="b"] .app-version::after { content: " // READY"; }
/* ようこそ・カード */
[data-theme="b"] .welcome-card, [data-theme="b"] .card-box { border-radius: 6px; }
[data-theme="b"] .welcome-open { border-radius: 0 !important; clip-path: var(--cut); background: linear-gradient(90deg, #0f6f86, #0a3f52) !important; box-shadow: inset 4px 0 0 var(--accent) !important; }
[data-theme="b"] .welcome-points li { border-radius: 4px; }
[data-theme="b"] .welcome-points li::before { border-radius: 2px; color: #01070b; }
[data-theme="b"] .welcome-points li:first-child { background: linear-gradient(135deg, #5ff3ff22, #00000035); }
[data-theme="b"] .welcome-cta { border-radius: 4px; background: linear-gradient(135deg, #5ff3ff1f, #5ff3ff08); border-color: #5ff3ff66; }
[data-theme="b"] .ranking-me { border-radius: 4px; background: linear-gradient(135deg, #5ff3ff26, #5ff3ff08); border-color: #5ff3ff66; }
[data-theme="b"] .ranking-table td, [data-theme="b"] .my-stats .stat b, [data-theme="b"] .ranking-me b { font-family: "Share Tech Mono", ui-monospace, monospace; }
[data-theme="b"] .paifu-row, [data-theme="b"] .my-stats, [data-theme="b"] .msg { border-radius: 4px; }

/* ---------- 卓 ---------- */
[data-theme="b"] .tile { box-shadow: 0 calc(var(--tw) * .07) 0 var(--tile-side), 0 calc(var(--tw) * .09) calc(var(--tw) * .14) #000a; }
[data-theme="b"] .tile.back { box-shadow: inset 0 0 0 calc(var(--tw) * .05) #5ff3ff88, 0 calc(var(--tw) * .07) 0 #0a2a35; }
[data-theme="b"] .tile.last::after { border-radius: 2px; box-shadow: 0 0 0 2px var(--orange), 0 0 12px var(--orange); }
/* 卓：角を切った板に細かい格子と四隅のかぎ型 */
[data-theme="b"] .board {
  border-radius: 0;
  clip-path: polygon(40px 0, calc(100% - 40px) 0, 100% 40px, 100% calc(100% - 40px), calc(100% - 40px) 100%, 40px 100%, 0 calc(100% - 40px), 0 40px);
  background:
    linear-gradient(#5ff3ff12 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, #5ff3ff12 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 50% 45%, #0e3446 0%, #061923 70%, #030d13 100%);
  box-shadow: inset 0 0 0 2px #5ff3ff66, inset 0 0 80px #000c;
}
[data-theme="b"] .board::before {
  content: ""; position: absolute; inset: 16px; pointer-events: none; opacity: .9;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 46px 3px, linear-gradient(var(--accent), var(--accent)) 0 0 / 3px 46px,
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 46px 3px, linear-gradient(var(--accent), var(--accent)) 100% 0 / 3px 46px,
    linear-gradient(var(--orange), var(--orange)) 0 100% / 46px 3px, linear-gradient(var(--orange), var(--orange)) 0 100% / 3px 46px,
    linear-gradient(var(--orange), var(--orange)) 100% 100% / 46px 3px, linear-gradient(var(--orange), var(--orange)) 100% 100% / 3px 46px;
  background-repeat: no-repeat;
}
/* 真ん中の枠：回る輪（点線と、シアン×オレンジの弧）。4辺の点数の札にかからないよう小さく */
[data-theme="b"] .center-box { isolation: isolate; border-radius: 4px; box-shadow: inset 0 0 0 1px #5ff3ff55, 0 0 30px #5ff3ff22; }
[data-theme="b"] .center-box::before,
[data-theme="b"] .center-box::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
[data-theme="b"] .center-box::before { inset: 74px; border: 1px dashed #5ff3ff55; animation: b-spin 18s linear infinite; }
[data-theme="b"] .center-box::after { inset: 88px; border: 2px solid transparent; border-top-color: var(--accent); border-bottom-color: var(--orange); animation: b-spin 6s linear infinite reverse; opacity: .7; }
@keyframes b-spin { to { transform: rotate(360deg); } }
[data-theme="b"] .info-box { border-radius: 0; clip-path: var(--cut); box-shadow: inset 0 0 0 1px #5ff3ff77, inset 4px 0 0 var(--orange); }
[data-theme="b"] .stage.yonma .center-box .info-box { background: none; box-shadow: none; clip-path: none; }
[data-theme="b"] .info-box .round,
[data-theme="b"] .center-box .pot,
[data-theme="b"] .seat-label { font-family: "Share Tech Mono", ui-monospace, monospace; }
[data-theme="b"] .info-box .round .round-name { font-family: system-ui, sans-serif; color: var(--accent); text-shadow: 0 0 10px #5ff3ffaa; }
[data-theme="b"] .center-box .pot { color: var(--orange); }
[data-theme="b"] .center-box .pot:not(:empty)::before { content: "> "; }
[data-theme="b"] .seat-label { color: #c9fbff; font-size: 28px; border-radius: 2px; }
[data-theme="b"] .seat-label .wind { color: var(--orange); font-family: system-ui, sans-serif; }
[data-theme="b"] .seat-label .oya { border-radius: 2px; }
[data-theme="b"] .seat-label.turn { background: linear-gradient(90deg, #5ff3ff33, #5ff3ff0d); box-shadow: inset 4px 0 0 var(--orange), 0 0 0 1px var(--accent); animation: b-blink 1.2s steps(2) infinite; }
@keyframes b-blink { 50% { box-shadow: inset 4px 0 0 var(--orange), 0 0 0 1px #5ff3ff55; } }
/* 名前の札・アイコン：角を切った枠 */
[data-theme="b"] .nameplate .avatar { border-radius: 0; border: none; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); box-shadow: inset 0 0 0 3px var(--accent); background: linear-gradient(160deg, #bffcff, #5fbfcc); }
[data-theme="b"] .nameplate .avatar.bot { background: linear-gradient(160deg, #cfd8e3, #8d9bb0); }
[data-theme="b"] .nameplate .status { font-family: "Share Tech Mono", monospace; }
/* ボタン：角を切った板。シアン＝ふつう、オレンジ＝あがり */
[data-theme="b"] .actions button {
  border: none; border-radius: 0; clip-path: var(--cut); color: #eaffff; letter-spacing: .06em;
  background: linear-gradient(90deg, #0f6f86, #0a3f52); box-shadow: inset 4px 0 0 var(--accent);
}
[data-theme="b"] .actions button.win,
[data-theme="b"] .actions button.fever-choice { background: linear-gradient(90deg, #c4621f, #6b300e); box-shadow: inset 4px 0 0 var(--orange); }
[data-theme="b"] .actions button.pass { background: linear-gradient(90deg, #2c3d45, #1a262c); box-shadow: inset 4px 0 0 #8fa7b0; }
[data-theme="b"] .actions button.on { background: var(--accent); color: #01070b; }
/* 持ち時間：数字は等幅、残りは区切ったメーター */
[data-theme="b"] .timer-sec { font-family: "Share Tech Mono", monospace; font-weight: 400; font-size: 46px; color: var(--accent); text-shadow: 0 0 12px #5ff3ffaa; }
[data-theme="b"] .timer-bank { font-family: "Share Tech Mono", monospace; font-weight: 400; color: var(--orange); }
[data-theme="b"] .bank { height: 10px; border-radius: 0; background: #5ff3ff1a; }
[data-theme="b"] .bank-bar { background: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 10px); }
/* 手牌の帯：かぎ型の線 */
[data-theme="b"] .hand-strip::before {
  content: ""; position: absolute; left: 50px; right: 50px; top: 10px; height: 12px; pointer-events: none;
  border-top: 1px solid #5ff3ff88; border-left: 3px solid var(--accent); border-right: 3px solid var(--orange);
}
[data-theme="b"] .hint:not(:empty)::before { content: "> "; color: var(--orange); font-family: "Share Tech Mono", monospace; }
[data-theme="b"] .meld .meld-no { border-radius: 2px; color: #01070b; }
[data-theme="b"] .prefs-bar .pref, [data-theme="b"] .mute-button { border-radius: 2px; background: #04121bcc; border-color: #5ff3ff55; }
[data-theme="b"] .prefs-bar .pref.on { background: var(--accent); color: #01070b; }
[data-theme="b"] .sound-panel, [data-theme="b"] .dice-panel { border-radius: 0; box-shadow: inset 0 0 0 1px var(--accent), 0 8px 24px #000c; }
/* 発声の大きな文字：ホログラム（シアンの光と横線） */
[data-theme="b"] .callout .word {
  color: #eaffff; filter: none;
  text-shadow: 0 0 18px #5ff3ff, 0 0 46px #5ff3ff88, 4px 0 0 #ff9d2e66, -4px 0 0 #5ff3ff66;
  -webkit-mask-image: repeating-linear-gradient(#000 0 5px, #000a 5px 7px); mask-image: repeating-linear-gradient(#000 0 5px, #000a 5px 7px);
}
[data-theme="b"] .callout .who { border-radius: 0; background: #04121bdd; box-shadow: inset 4px 0 0 var(--orange); font-family: "Share Tech Mono", monospace; }
[data-theme="b"] .callout:not(:empty) { background: radial-gradient(ellipse at center, #01121bd0 0%, #01121b80 45%, transparent 70%); }
/* 結果 */
[data-theme="b"] .result-card { border-radius: 0; clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); background: linear-gradient(#0b2a3a, #04121b); border: none; box-shadow: inset 0 0 0 1px var(--accent); }
[data-theme="b"] .result-card h2 { color: #eaffff; filter: none; text-shadow: 0 0 16px #5ff3ffaa; }
[data-theme="b"] .ranks td:nth-child(n+2) { font-family: "Share Tech Mono", monospace; font-size: 1.1em; }


/* =====================================================================
   C：夜の雀卓（雀卓の緑 × 金はそのまま。夜の深い緑に回路の線と流れる光、ボタンは暗いガラスに光るふち）
   ===================================================================== */
html[data-theme="c"] {
  --bg: #062217;
  --screen-bg: radial-gradient(ellipse at 50% 26%, #0f5a3a 0%, #062217 55%, #020b07 100%);
  --panel: #04170ef2;
  --panel-glass: #04170edd;
  --card-bg: radial-gradient(ellipse at 50% 0%, #0f5a3a, #04170e 85%);
  --tile-side: #e8d9a8;
}
/* トップ画面：回路の線と、横に流れる光 */
[data-theme="c"] #title::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%2341f0a0' stroke-opacity='.35' stroke-width='1.2'%3E%3Cpath d='M0 30h40l12 12h30l10-10h28M20 120V86l14-14h36M120 70H96l-10 10v40M60 0v18l-8 8'/%3E%3C/g%3E%3Cg fill='%2341f0a0' fill-opacity='.6'%3E%3Ccircle cx='82' cy='42' r='2.5'/%3E%3Ccircle cx='70' cy='72' r='2.5'/%3E%3Ccircle cx='52' cy='26' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, transparent 25%, #000 75%); mask-image: radial-gradient(ellipse at 50% 35%, transparent 25%, #000 75%);
}
[data-theme="c"] #title::after {
  content: ""; position: fixed; left: 0; right: 0; top: 63%; height: 2px; z-index: -1; pointer-events: none; opacity: .8;
  background: linear-gradient(90deg, transparent, #41f0a0, transparent) no-repeat; background-size: 40% 100%; animation: c-run 2.4s linear infinite;
}
@keyframes c-run { from { background-position: -40% 0; } to { background-position: 140% 0; } }
[data-theme="c"] .title-hero svg { filter: drop-shadow(0 0 14px #41f0a055); }
[data-theme="c"] .title-logo svg { filter: drop-shadow(0 0 10px #f6c45366); }
[data-theme="c"] #title .lead { color: #d7f5e5; }
/* 大きなボタン：暗いガラスに光るふち */
[data-theme="c"] .big-choice { border: 1px solid #ffffff2a; box-shadow: inset 0 0 0 1px var(--edge), 0 0 16px color-mix(in srgb, var(--edge) 30%, transparent); }
[data-theme="c"] .big-choice:active { box-shadow: inset 0 0 0 1px var(--edge); }
[data-theme="c"] .big-choice.casual { background: linear-gradient(135deg, #0c3d4f, #082431); --edge: #3fd1ff; }
[data-theme="c"] .big-choice.casual b { color: #9fe9ff; }
[data-theme="c"] .big-choice.ranked { background: linear-gradient(135deg, #4a2a06, #2a1703); --edge: #f6c453; }
[data-theme="c"] .big-choice.ranked b { color: #ffd77a; }
[data-theme="c"] .big-choice.sanma { background: linear-gradient(135deg, #4d2d0a, #2b1805); --edge: #ff9d4a; }
[data-theme="c"] .big-choice.sanma b { color: #ffc48f; }
[data-theme="c"] .big-choice.yonma { background: linear-gradient(135deg, #0b4038, #06241f); --edge: #41f0c0; }
[data-theme="c"] .big-choice.yonma b { color: #a6ffe6; }
[data-theme="c"] .title-links button { background: #00000040; color: #d7f5e5; box-shadow: inset 0 0 0 1px #41f0a044; text-shadow: none; }
[data-theme="c"] .title-links .l-ranking { box-shadow: inset 0 0 0 1px #f6c45377; color: #ffe3a3; }
[data-theme="c"] .top-icon, [data-theme="c"] #title .mute-button { box-shadow: inset 0 0 0 1px #41f0a033; }
/* 卓：今の雀卓の緑のまま（背景だけ夜の深い緑） */


/* =====================================================================
   A：ネオン（夜の街。紫の空・シアン × ピンク）。まだ選べない（theme.js の hidden）。
   対局画面は作ってある。トップ画面などは色だけで、ちゃんと作るのは出すと決めてから
   ===================================================================== */
html[data-theme="a"] {
  --bg: #05040d;
  --felt-1: #2a1458;
  --felt-2: #0c0620;
  --ink: #f4f2ff;
  --muted: #c4b6f2;
  --accent: #00e5ff;
  --pink: #ff3df2;
  --danger: #ff4f8b;
  --tile-face: #f8f6ff;
  --tile-side: #ff3df2;
  --tile-back-1: #9b2fd8;
  --tile-back-2: #4a0c78;
  --screen-bg: radial-gradient(ellipse at 50% 20%, #3b1b6e 0%, #140a2e 45%, #05040d 100%);
  --panel: #0a0620f2;
  --panel-glass: #0a0620d9;
  --card-bg: linear-gradient(#1e0d44, #0a0620);
  --card-border: #ff3df2;
}
[data-theme="a"] button.primary, [data-theme="a"] .tab.on { color: #05040d; }
[data-theme="a"] .tile { box-shadow: 0 calc(var(--tw) * .07) 0 var(--tile-side), 0 calc(var(--tw) * .09) calc(var(--tw) * .3) #ff3df255; }
[data-theme="a"] .tile.back { box-shadow: 0 calc(var(--tw) * .07) 0 #00e5ff, 0 0 calc(var(--tw) * .3) #00e5ff55; }
[data-theme="a"] .tile.last::after { box-shadow: 0 0 0 3px var(--accent), 0 0 14px var(--accent); }
[data-theme="a"] .board {
  background: radial-gradient(circle at 50% 42%, #2a1458 0%, #12082c 60%, #07041a 100%);
  box-shadow: inset 0 0 0 3px #ff3df2, inset 0 0 26px #ff3df277, 0 0 34px #ff3df266, 0 10px 40px #000c;
}
[data-theme="a"] .center-box,
[data-theme="a"] .info-box {
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 2px #00e5ff, inset 0 0 24px #00e5ff44, 0 0 22px #00e5ff66;
}
[data-theme="a"] .stage.yonma .center-box .info-box { background: none; box-shadow: none; backdrop-filter: none; }
[data-theme="a"] .info-box .round .round-name { text-shadow: 0 0 10px #ff3df2, 0 0 2px #fff; }
[data-theme="a"] .seat-label { color: #e9e4ff; }
[data-theme="a"] .seat-label .wind { color: var(--accent); text-shadow: 0 0 8px var(--accent); }
[data-theme="a"] .seat-label.turn { background: #00e5ff22; box-shadow: 0 0 0 2px var(--accent), 0 0 18px #00e5ffaa; }
[data-theme="a"] .seat-label .stick { box-shadow: 0 0 10px var(--pink), 0 1px 3px #0008; }
[data-theme="a"] .nameplate .avatar { box-shadow: 0 0 14px #00e5ffaa; }
[data-theme="a"] .nameplate .name { text-shadow: 0 0 8px #ff3df2aa; }
[data-theme="a"] .actions button {
  background: #0a0620d0; border: none; color: #fff;
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 18px #00e5ff99, inset 0 0 18px #00e5ff44; text-shadow: 0 0 8px var(--accent);
}
[data-theme="a"] .actions button.win,
[data-theme="a"] .actions button.fever-choice {
  box-shadow: inset 0 0 0 2px var(--pink), 0 0 22px #ff3df2cc, inset 0 0 22px #ff3df266; text-shadow: 0 0 10px var(--pink);
  animation: a-pulse 1.1s ease-in-out infinite;
}
@keyframes a-pulse { 50% { box-shadow: inset 0 0 0 2px var(--pink), 0 0 36px #ff3df2, inset 0 0 26px #ff3df288; } }
[data-theme="a"] .actions button.pass { box-shadow: inset 0 0 0 2px #ffffff55; text-shadow: none; }
[data-theme="a"] .actions button.on { background: var(--accent); color: #05040d; text-shadow: none; }
[data-theme="a"] .timer-sec { color: #fff; text-shadow: 0 0 6px var(--accent), 0 0 18px var(--accent); }
[data-theme="a"] .timer-bank { color: var(--pink); text-shadow: 0 0 8px var(--pink); }
[data-theme="a"] .bank-bar { background: linear-gradient(90deg, var(--pink), var(--accent)); box-shadow: 0 0 10px var(--accent); }
[data-theme="a"] .hand-strip::before {
  content: ""; position: absolute; left: 60px; right: 60px; top: 14px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--pink), transparent); box-shadow: 0 0 14px #00e5ff99;
}
[data-theme="a"] .meld .meld-no { color: #05040d; box-shadow: 0 0 10px var(--accent); }
[data-theme="a"] .prefs-bar .pref.on { background: var(--accent); color: #05040d; }
[data-theme="a"] .callout .word { color: #fff5fe; filter: none; text-shadow: 0 0 4px #fff, 0 0 14px var(--pink), 0 0 40px var(--pink), 0 0 80px #c400ff; }
[data-theme="a"] .result-card { border: none; box-shadow: inset 0 0 0 2px var(--pink), 0 0 40px #ff3df266; }
[data-theme="a"] .result-card h2 { filter: none; text-shadow: 0 0 6px #fff, 0 0 20px var(--accent); }
[data-theme="a"] .big-choice { background: #0a0620cc; box-shadow: inset 0 0 0 2px var(--accent), 0 0 18px #00e5ff88; }
[data-theme="a"] .big-choice.ranked, [data-theme="a"] .big-choice.yonma { box-shadow: inset 0 0 0 2px var(--pink), 0 0 18px #ff3df288; }

@media (prefers-reduced-motion: reduce) {
  [data-theme] #title::after, [data-theme] .center-box::before, [data-theme] .center-box::after, [data-theme] .title-holo *,
  [data-theme] .actions button, [data-theme] .seat-label.turn { animation: none !important; }
}
