/* ============================================================
   爆速フリーセル DLC の見た目（2026-11-08・dlc.js と対）
   - 盤面テーマ（fs_01）: .app-container[data-fs-board] と、その中の .fsd-board-fx（動く層）
   - カード面（fs_02）: body.fsc-<名>
   - 店・試し見の帯・くわしい戦績（fs_04）の画面
   ============================================================ */

/* ---------- 盤面テーマ: 縁と動く層 ---------- */
.app-container[data-fs-board] { isolation: isolate; }
.fsd-board-fx { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; }
.app-container[data-fs-board="casino"] { box-shadow: inset 0 0 0 6px #6b0f17, inset 0 0 0 9px #c9a227, inset 0 0 60px rgba(0,0,0,.6), 0 25px 50px -12px rgba(0,0,0,.6); }
.app-container[data-fs-board="wood"] { box-shadow: inset 0 0 0 10px #3b2412, inset 0 0 0 12px #8a5a2b, inset 0 0 80px rgba(0,0,0,.45), 0 25px 50px -12px rgba(0,0,0,.6); }
.app-container[data-fs-board="marble"] { box-shadow: inset 0 0 0 3px #b8892b, inset 0 0 90px rgba(0,0,0,.7), 0 25px 50px -12px rgba(0,0,0,.6); }
.app-container[data-fs-board="tatami"] { box-shadow: inset 0 0 0 12px #1f2a1a, inset 0 0 0 14px #c9a227, inset 0 0 70px rgba(0,0,0,.35), 0 25px 50px -12px rgba(0,0,0,.6); }
.app-container[data-fs-board="neon"] { animation: fsdNeonEdge 4s ease-in-out infinite; }
@keyframes fsdNeonEdge {
    0%,100% { box-shadow: inset 0 0 0 2px #ff2bd6, inset 0 0 24px rgba(255,43,214,.45), 0 0 24px rgba(255,43,214,.35); }
    50%     { box-shadow: inset 0 0 0 2px #22d3ee, inset 0 0 24px rgba(34,211,238,.45), 0 0 24px rgba(34,211,238,.35); }
}

/* 星降る夜: 2層の星がずれて瞬く＋流れ星 */
.fsd-board-fx .fsd-stars { position: absolute; inset: -10%; background-repeat: repeat; }
.fsd-board-fx .fsd-stars.a { background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 120px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 160px 60px, #dbeafe, transparent), radial-gradient(1px 1px at 230px 170px, #fff, transparent); background-size: 260px 220px; animation: fsdTwinkle 3.2s ease-in-out infinite; }
.fsd-board-fx .fsd-stars.b { background-image: radial-gradient(1px 1px at 50px 80px, #fde68a, transparent), radial-gradient(1.6px 1.6px at 140px 20px, #fff, transparent),
    radial-gradient(1px 1px at 200px 140px, #c7d2fe, transparent); background-size: 300px 260px; animation: fsdTwinkle 4.6s ease-in-out infinite reverse; }
@keyframes fsdTwinkle { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.fsd-board-fx .fsd-shoot { position: absolute; top: 12%; left: 70%; width: 140px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.9), transparent);
    transform: rotate(-25deg); opacity: 0; animation: fsdShoot 9s linear infinite 2s; }
@keyframes fsdShoot { 0% { opacity: 0; transform: translate(0,0) rotate(-25deg); } 2% { opacity: 1; } 8% { opacity: 0; transform: translate(-420px,200px) rotate(-25deg); } 100% { opacity: 0; } }

/* 夜桜: 花びらが舞い落ちる（花びらは dlc.js が撒く） */
.fsd-board-fx .fsd-petal { position: absolute; top: -20px; width: 12px; height: 9px; border-radius: 12px 0 12px 0; background: linear-gradient(135deg, #ffe4ef, #f9a8d4);
    opacity: .85; animation: fsdPetalFall linear infinite; }
@keyframes fsdPetalFall {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(30px, 26vh) rotate(120deg); }
    50%  { transform: translate(-20px, 52vh) rotate(220deg); }
    75%  { transform: translate(25px, 78vh) rotate(320deg); }
    100% { transform: translate(-10px, 105vh) rotate(420deg); }
}

/* 深海: ゆらぐ光と泡 */
.fsd-board-fx .fsd-caustic { position: absolute; inset: -20%; opacity: .18;
    background: repeating-radial-gradient(circle at 30% 20%, rgba(186,230,253,.6) 0 2px, transparent 3px 26px), repeating-radial-gradient(circle at 70% 60%, rgba(186,230,253,.5) 0 2px, transparent 3px 34px);
    animation: fsdCaustic 14s ease-in-out infinite alternate; }
@keyframes fsdCaustic { from { transform: translate(0,0) scale(1); } to { transform: translate(-4%, 3%) scale(1.08); } }
.fsd-board-fx .fsd-bubble { position: absolute; bottom: -20px; border-radius: 50%; border: 1px solid rgba(224,242,254,.55); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 60%);
    animation: fsdBubble linear infinite; }
@keyframes fsdBubble { from { transform: translate(0, 0); opacity: 0; } 10% { opacity: .8; } to { transform: translate(18px, -105vh); opacity: 0; } }

/* ネオン: 奥へ流れる床の格子 */
.fsd-board-fx .fsd-grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%;
    background-image: linear-gradient(rgba(255,43,214,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.45) 1px, transparent 1px);
    background-size: 60px 60px; transform: perspective(300px) rotateX(62deg); transform-origin: bottom; animation: fsdGrid 2.4s linear infinite;
    -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); }
@keyframes fsdGrid { from { background-position: 0 0, 0 0; } to { background-position: 0 60px, 0 0; } }

/* 雪の夜: 揺れながら降る雪 */
.fsd-board-fx .fsd-snow { position: absolute; top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.8); animation: fsdSnow linear infinite; }
@keyframes fsdSnow { from { transform: translate(0, 0); } 33% { transform: translate(16px, 36vh); } 66% { transform: translate(-12px, 72vh); } to { transform: translate(6px, 108vh); } }
/* オーロラ: ぼかした光の帯がゆっくり揺れる */
.fsd-board-fx .fsd-aurora { position: absolute; left: -30%; right: -30%; top: -12%; height: 62%; border-radius: 50%; filter: blur(28px); opacity: .55; mix-blend-mode: screen;
    background: linear-gradient(100deg, transparent 10%, rgba(52,211,153,.75) 30%, rgba(34,211,238,.5) 45%, transparent 60%, rgba(167,139,250,.5) 75%, transparent 90%);
    animation: fsdAurora 14s ease-in-out infinite alternate; }
.fsd-board-fx .fsd-aurora.b { top: 4%; opacity: .4; animation-duration: 19s; animation-direction: alternate-reverse;
    background: linear-gradient(80deg, transparent 15%, rgba(167,139,250,.6) 35%, rgba(52,211,153,.5) 55%, transparent 75%); }
@keyframes fsdAurora { from { transform: translateX(-8%) skewX(-10deg) scaleY(.8); } to { transform: translateX(8%) skewX(10deg) scaleY(1.15); } }

@media (prefers-reduced-motion: reduce) {
    .fsd-board-fx *, .app-container[data-fs-board="neon"] { animation: none !important; }
}

/* ---------- カード面 ---------- */
body[class*="fsc-"] .card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; }
/* 金縁 */
body.fsc-gold .card { background: linear-gradient(160deg, #fffdf5, #f3e6c4); }
body.fsc-gold .card::after { box-shadow: inset 0 0 0 2px #b8892b, inset 0 0 0 4px #fff8e1, inset 0 0 0 5px #d4af37; }
body.fsc-gold .card .rank { font-family: Georgia, 'Times New Roman', serif; }
body.fsc-gold .card[data-color="red"] { color: #a3122a; }
body.fsc-gold .card[data-color="black"] { color: #2a2118; }
/* 漆黒 */
body.fsc-black .card { background: radial-gradient(circle at 30% 20%, #2a2a2a, #0b0b0b); }
body.fsc-black .card::after { box-shadow: inset 0 0 0 1px #4b4b4b, inset 0 0 0 3px #0b0b0b, inset 0 0 0 4px #8a6d1f; }
body.fsc-black .card .rank, body.fsc-black .card .suit-icon { text-shadow: 0 0 4px #000, 0 0 8px #000; }
body.fsc-black .card[data-color="red"] { color: #ff5a76; }
body.fsc-black .card[data-color="black"] { color: #e9d8a6; }
body.fsc-black .card .center-suit { opacity: .18; }
/* 和紙 */
body.fsc-washi .card { background: radial-gradient(rgba(140,110,70,.08) 1px, transparent 1px) 0 0/7px 7px, radial-gradient(rgba(140,110,70,.06) 1px, transparent 1px) 3px 4px/11px 11px, #f6f0e2; }
body.fsc-washi .card::after { box-shadow: inset 0 0 0 3px #b23a2b, inset 0 0 0 5px #f6f0e2, inset 0 0 0 6px rgba(178,58,43,.5); }
body.fsc-washi .card .rank { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif; }
body.fsc-washi .card[data-color="red"] { color: #b23a2b; }
body.fsc-washi .card[data-color="black"] { color: #1f1b16; }
/* ネオン */
body.fsc-neon .card { background: #0b0b1a; }
body.fsc-neon .card[data-color="black"]::after { box-shadow: inset 0 0 0 2px #22d3ee, inset 0 0 14px rgba(34,211,238,.55); }
body.fsc-neon .card[data-color="red"]::after { box-shadow: inset 0 0 0 2px #ff2bd6, inset 0 0 14px rgba(255,43,214,.55); }
body.fsc-neon .card[data-color="red"] { color: #ff7ae6; }
body.fsc-neon .card[data-color="black"] { color: #7df9ff; }
body.fsc-neon .card .rank, body.fsc-neon .card .suit-icon { text-shadow: 0 0 6px currentColor, 0 0 2px #000; }
body.fsc-neon .card .center-suit { opacity: .22; text-shadow: 0 0 12px currentColor; }
/* ガラス */
body.fsc-glass .card { background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(214,228,255,.9)); }
body.fsc-glass .card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), inset 0 0 0 2px rgba(120,150,210,.35);
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 42%, transparent 54%); }
body.fsc-glass .card[data-color="red"] { color: #e0245e; }
body.fsc-glass .card[data-color="black"] { color: #1e3a5f; }
/* ロイヤル */
body.fsc-royal .card { background: radial-gradient(circle at 0 0, #d4af37 0 5px, transparent 6px), radial-gradient(circle at 100% 0, #d4af37 0 5px, transparent 6px),
    radial-gradient(circle at 0 100%, #d4af37 0 5px, transparent 6px), radial-gradient(circle at 100% 100%, #d4af37 0 5px, transparent 6px), #fdfcf7; }
body.fsc-royal .card::after { box-shadow: inset 0 0 0 3px #1e3a8a, inset 0 0 0 5px #fdfcf7, inset 0 0 0 6px #c9a227; }
body.fsc-royal .card .rank { font-family: Georgia, serif; }
body.fsc-royal .card[data-color="red"] { color: #9f1239; }
body.fsc-royal .card[data-color="black"] { color: #1e3a8a; }
/* 桜色 */
body.fsc-sakura .card { background: radial-gradient(circle at 100% 100%, rgba(249,168,212,.45) 0 18%, transparent 19%), linear-gradient(160deg, #fff7fb, #fde4ef); }
body.fsc-sakura .card::after { box-shadow: inset 0 0 0 2px #f472b6, inset 0 0 0 4px #fff7fb, inset 0 0 0 5px rgba(244,114,182,.5); }
body.fsc-sakura .card .rank { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; }
body.fsc-sakura .card[data-color="red"] { color: #db2777; }
body.fsc-sakura .card[data-color="black"] { color: #4a2c3a; }
/* ドット（昔のゲーム機の角ばった枠と字） */
body.fsc-pixel .card { background: #f4ecd8; border-radius: 2px; }
body.fsc-pixel .card::after { border-radius: 2px; box-shadow: inset 0 0 0 3px #1f2937, inset 6px 6px 0 0 #fff8e7, inset -6px -6px 0 0 #c9b98f; }
body.fsc-pixel .card .rank, body.fsc-pixel .card .suit-icon { font-family: 'Courier New', 'MS Gothic', monospace; font-weight: 900; text-shadow: 2px 2px 0 rgba(0,0,0,.18); }
body.fsc-pixel .card[data-color="red"] { color: #c81e1e; }
body.fsc-pixel .card[data-color="black"] { color: #1f2937; }

/* ---------- ヘッダーの DLC ボタン ---------- */
#fsd-shop-btn { background: linear-gradient(#5a4512, #3a2c0a); border: 1px solid #c9a227; color: #fde68a; }
#fsd-shop-btn:hover { filter: brightness(1.15); }
@media (max-width: 768px) { #fsd-shop-btn { display: none !important; } }	/* スマホは ⚙ 設定の中（#fsd-shop-btn-m） */
#fsd-shop-btn-m { border-color: #c9a227; color: #fde68a; }

/* ---------- 店 ---------- */
#fsd-shop { z-index: 95000; }
#fsd-shop .modal-content { max-width: 760px; padding: 22px; overflow-y: auto; }
.fsd-note { font-size: 12px; color: var(--text-muted); margin: -8px 0 12px; }
.fsd-items { display: grid; gap: 12px; }
.fsd-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px; border: 1px solid #334155; border-radius: 12px; background: #111a2e; }
.fsd-item.set { border-color: #c9a227; background: linear-gradient(135deg, #2a2210, #111a2e 60%); }
.fsd-item.owned { border-color: #22c55e55; }
.fsd-thumb { height: 84px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; background: #0f172a; font-size: 34px; position: relative; }
.fsd-item h3 { font-size: 16px; margin-bottom: 4px; color: #f8fafc; }
.fsd-item p { font-size: 12px; color: #94a3b8; line-height: 1.5; }
.fsd-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.fsd-btn { font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 99px; cursor: pointer; border: 1px solid #475569; background: #1e293b; color: #e2e8f0; }
.fsd-btn:hover { filter: brightness(1.2); }
.fsd-btn.buy { border-color: #c9a227; background: linear-gradient(#6b5214, #3f300b); color: #fde68a; font-weight: bold; }
.fsd-btn.own { border-color: #22c55e; color: #86efac; cursor: default; }
.fsd-btn[disabled] { opacity: .5; cursor: default; filter: none; }
.fsd-owned-badge { font-size: 12px; color: #86efac; }
@media (max-width: 560px) { .fsd-item { grid-template-columns: 1fr; } .fsd-thumb { height: 64px; } }

/* 店の見本（ミニカード・ミニ盤面） */
.fsd-mini-card { width: 30px; height: 42px; border-radius: 4px; position: relative; font-size: 13px; font-weight: bold; display: flex; align-items: flex-start; justify-content: flex-start; padding: 2px 3px; box-sizing: border-box;
    background: #fff; color: #1e293b; box-shadow: 0 2px 4px rgba(0,0,0,.4); overflow: hidden; line-height: 1.05; }
.fsd-mini-card[data-color="red"] { color: #e11d48; }
.fsd-mc-gold  { background: linear-gradient(160deg, #fffdf5, #f3e6c4); box-shadow: inset 0 0 0 2px #b8892b, inset 0 0 0 3px #fff8e1, inset 0 0 0 4px #d4af37, 0 2px 4px rgba(0,0,0,.4); font-family: Georgia, serif; }
.fsd-mc-gold[data-color="red"] { color: #a3122a; }
.fsd-mc-black { background: radial-gradient(circle at 30% 20%, #2a2a2a, #0b0b0b); color: #e9d8a6; box-shadow: inset 0 0 0 1px #4b4b4b, inset 0 0 0 3px #0b0b0b, inset 0 0 0 4px #8a6d1f, 0 2px 4px rgba(0,0,0,.4); }
.fsd-mc-black[data-color="red"] { color: #ff5a76; }
.fsd-mc-washi { background: #f6f0e2; color: #1f1b16; box-shadow: inset 0 0 0 2px #b23a2b, 0 2px 4px rgba(0,0,0,.4); font-family: 'Yu Mincho', serif; }
.fsd-mc-washi[data-color="red"] { color: #b23a2b; }
.fsd-mc-neon  { background: #0b0b1a; color: #7df9ff; box-shadow: inset 0 0 0 2px #22d3ee, inset 0 0 8px rgba(34,211,238,.6); text-shadow: 0 0 5px currentColor; }
.fsd-mc-neon[data-color="red"] { color: #ff7ae6; box-shadow: inset 0 0 0 2px #ff2bd6, inset 0 0 8px rgba(255,43,214,.6); }
.fsd-mc-glass { background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(214,228,255,.9)); color: #1e3a5f; box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2px rgba(120,150,210,.35), 0 2px 4px rgba(0,0,0,.4); }
.fsd-mc-glass[data-color="red"] { color: #e0245e; }
.fsd-mc-royal { background: #fdfcf7; color: #1e3a8a; box-shadow: inset 0 0 0 2px #1e3a8a, inset 0 0 0 3px #fdfcf7, inset 0 0 0 4px #c9a227, 0 2px 4px rgba(0,0,0,.4); font-family: Georgia, serif; }
.fsd-mc-royal[data-color="red"] { color: #9f1239; }
.fsd-mc-sakura { background: linear-gradient(160deg, #fff7fb, #fde4ef); color: #4a2c3a; box-shadow: inset 0 0 0 2px #f472b6, inset 0 0 0 3px #fff7fb, 0 2px 4px rgba(0,0,0,.4); font-family: 'Yu Mincho', serif; }
.fsd-mc-sakura[data-color="red"] { color: #db2777; }
.fsd-mc-pixel { background: #f4ecd8; color: #1f2937; border-radius: 2px; box-shadow: inset 0 0 0 2px #1f2937, inset 3px 3px 0 0 #fff8e7, 0 2px 4px rgba(0,0,0,.4); font-family: 'Courier New', monospace; font-weight: 900; }
.fsd-mc-pixel[data-color="red"] { color: #c81e1e; }

/* ---------- 絵柄管理の中の DLC 欄 ---------- */
.fsd-dm-section { padding: 10px 16px; border-bottom: 1px solid #334155; flex-shrink: 0; }
.fsd-dm-title { font-size: 12px; color: #94a3b8; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.fsd-dm-title a { color: #fde68a; cursor: pointer; text-decoration: underline; font-size: 12px; }
.fsd-swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fsd-sw { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 3px solid #334155; position: relative; flex-shrink: 0; transition: .15s; }
.fsd-sw.on { border-color: #fde047; box-shadow: 0 0 12px rgba(253,224,71,.6); }
.fsd-sw.lock::after { content: '🔒'; position: absolute; right: -6px; bottom: -6px; font-size: 13px; }
.fsd-chip { font: inherit; font-size: 12px; padding: 5px 12px; border-radius: 99px; cursor: pointer; border: 1px solid #475569; background: #1e293b; color: #e2e8f0; position: relative; }
.fsd-chip.on { border-color: #fde047; color: #fde047; }
.fsd-chip.lock::after { content: '🔒'; margin-left: 4px; font-size: 11px; }
.fsd-cardsw { width: 34px; height: 48px; border-radius: 5px; cursor: pointer; outline: 3px solid transparent; outline-offset: 2px; position: relative; flex-shrink: 0; }
.fsd-cardsw.on { outline-color: #fde047; }
.fsd-cardsw.lock::before { content: '🔒'; position: absolute; right: -8px; bottom: -8px; font-size: 13px; z-index: 3; }
/* 公式の絵柄（fs_05）の札: 見本3枚を扇に並べ、下に名前 */
.fsd-artsw { display: flex; align-items: flex-end; gap: 0; padding: 6px 10px 6px 6px; border-radius: 10px; cursor: pointer; border: 2px solid #334155; background: #0f172a; position: relative; transition: .15s; }
.fsd-artsw:hover { border-color: #c9a227; }
.fsd-artsw.on { border-color: #fde047; box-shadow: 0 0 12px rgba(253,224,71,.5); }
.fsd-artsw img { width: 38px; height: 55px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.5); margin-right: -12px; background: #fff; }
.fsd-artsw img:nth-child(2) { transform: translateY(-4px); }
.fsd-artsw span { margin-left: 20px; font-size: 13px; color: #fde68a; font-weight: bold; align-self: center; }
.fsd-artsw.lock::after { content: '🔒'; position: absolute; right: -6px; bottom: -6px; font-size: 13px; }

/* 店の見本（公式の絵柄） */
.fsd-thumb-art { height: 100%; width: 30%; object-fit: cover; object-position: top; border-radius: 4px; }

/* ---------- 公式の絵柄の見本の窓（絵柄の管理 90000 の上・確認の窓 100500 の下） ---------- */
#fsd-gallery { z-index: 100400; }
#fsd-gallery .modal-content { max-width: 720px; padding: 22px; overflow-y: auto; }
.fsd-gal-body .fsd-note { margin: 12px 0 0; line-height: 1.6; }
.fsd-gal-row { display: flex; gap: 14px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.fsd-gal-card { width: 135px; height: 196px; border-radius: 8px; overflow: hidden; position: relative; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.5); animation: fsdGalIn .35s ease backwards; }
.fsd-gal-card:nth-child(2) { animation-delay: .08s; } .fsd-gal-card:nth-child(3) { animation-delay: .16s; }
.fsd-gal-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fsd-gal-card b { position: absolute; left: 6px; top: 4px; font-size: 20px; line-height: 1.05; color: #1e293b; text-shadow: 0 0 3px #fff, 0 0 6px #fff; }
.fsd-gal-card[data-color="red"] b { color: #e11d48; }
/* 列に重なった時の見え方（上の帯） */
.fsd-gal-stack { width: 135px; height: 264px; position: relative; }
.fsd-gal-stack .fsd-gal-card { position: absolute; left: 0; animation: none; }
@keyframes fsdGalIn { from { transform: translateY(18px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) { .fsd-gal-card, .fsd-gal-stack { width: 92px; } .fsd-gal-card { height: 134px; } .fsd-gal-stack { height: 202px; } .fsd-gal-stack .fsd-gal-card { margin-top: 0; } }

/* ---------- 試し見の帯 ---------- */
#fsd-preview-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 96000; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center;
    background: rgba(15,23,42,.94); border: 1px solid #c9a227; border-radius: 14px; padding: 8px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100vw - 24px); animation: fsdBarIn .3s ease; }
#fsd-preview-bar b { color: #fde68a; font-size: 13px; }
#fsd-preview-bar span { color: #94a3b8; font-size: 12px; }
@keyframes fsdBarIn { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- 勝利画面の1行案内 ---------- */
.fsd-win-hint { margin-top: 14px; font-size: 12px; color: #94a3b8; }
.fsd-win-hint a { color: #fde68a; cursor: pointer; text-decoration: underline; margin-left: 6px; }
#fsd-win-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1500; pointer-events: none; transition: opacity .8s ease; }
#fsd-win-canvas.hold { pointer-events: auto; cursor: pointer; }
#victory-overlay.fsd-hold { opacity: 0; pointer-events: none; }
.fsd-skip { position: fixed; right: 16px; bottom: 16px; z-index: 1501; color: #cbd5e1; font-size: 12px; background: rgba(15,23,42,.7); padding: 4px 10px; border-radius: 99px; pointer-events: none; }

/* ---------- くわしい戦績 ---------- */
.fsd-tabs { display: flex; gap: 6px; margin-left: auto; margin-right: 12px; }
.fsd-tabs button { font: inherit; font-size: 13px; padding: 5px 14px; border-radius: 99px; border: 1px solid #475569; background: #1e293b; color: #cbd5e1; cursor: pointer; }
.fsd-tabs button.on { background: #38bdf8; border-color: #38bdf8; color: #0f172a; font-weight: bold; }
#fsd-stats { overflow-y: auto; position: relative; flex: 1; min-height: 0; }
.fsd-stats-body { display: grid; gap: 14px; }
.fsd-stats-body.blur { filter: blur(5px); pointer-events: none; user-select: none; }
.fsd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fsd-tile { background: #111a2e; border: 1px solid #334155; border-radius: 10px; padding: 10px 12px; }
.fsd-tile small { display: block; font-size: 11px; color: #94a3b8; }
.fsd-tile b { font-size: 22px; color: #f8fafc; }
.fsd-tile em { font-style: normal; font-size: 11px; color: #64748b; margin-left: 4px; }
.fsd-chart { background: #111a2e; border: 1px solid #334155; border-radius: 10px; padding: 10px 12px; }
.fsd-chart h4 { font-size: 13px; color: #cbd5e1; margin-bottom: 8px; font-weight: 600; }
.fsd-bars { display: flex; align-items: flex-end; gap: 2px; height: 110px; }
.fsd-bar { flex: 1; display: flex; flex-direction: column-reverse; min-width: 3px; height: 100%; position: relative; }
.fsd-bar i { display: block; width: 100%; border-radius: 2px 2px 0 0; transform-origin: bottom; animation: fsdGrow .6s ease-out both; }
.fsd-bar i.w { background: #22c55e; } .fsd-bar i.l { background: #ef4444aa; } .fsd-bar i.r { background: #38bdf8; }
@keyframes fsdGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.fsd-axis { display: flex; gap: 2px; font-size: 10px; color: #64748b; margin-top: 3px; }
.fsd-axis span { flex: 1; text-align: center; white-space: nowrap; overflow: visible; }
.fsd-legend { font-size: 11px; color: #94a3b8; margin-left: 8px; font-weight: normal; }
.fsd-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 3px 0 8px; vertical-align: middle; }
.fsd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .fsd-two { grid-template-columns: 1fr; } }
.fsd-best { width: 100%; border-collapse: collapse; font-size: 13px; }
.fsd-best td { padding: 5px 6px; border-top: 1px solid #1e293b; color: #e2e8f0; }
.fsd-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fsd-lock > div { background: rgba(15,23,42,.95); border: 1px solid #c9a227; border-radius: 14px; padding: 18px 22px; max-width: 380px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.fsd-lock h3 { color: #fde68a; margin-bottom: 6px; font-size: 17px; }
.fsd-lock p { color: #cbd5e1; font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
