/* ブラウザ版の有料開放（試作。paid.js）。サーバーの JANSATSU_PAID=1 の時だけページに入る。
   画面の外に出す物（確認画面・演出）は、ホームの卓と同じく 1280×720 の大きさで組んで、--stg（画面に合わせた倍率）で縮める */

/* ---------- 入口：ホームの「製品版を開放」（体験版の札の下。金の艶と、斜めに走る光） */
.pd-homebox { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 10px 0 0 4px; }
.pd-home { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 9px 22px 10px; overflow: hidden;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 48%) padding-box,
    linear-gradient(180deg, #ffe68a 0%, #f5b72a 45%, #b86a00 52%, #f0a020 78%, #ffd870 100%) padding-box,
    linear-gradient(180deg, #fffbe0, #c98a1a 40%, #5a3000 60%, #ffe58a) border-box;
  box-shadow: 0 4px 0 #5a3008, 0 8px 16px rgba(0, 0, 0, .55), 0 0 22px rgba(255, 200, 80, .55);
  color: #3a1600; font: 900 22px/1.2 "Shippori Mincho B1", serif; letter-spacing: 2px; text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  animation: pdBeat 2.8s ease-in-out infinite; }
.pd-home small { font: 800 17px/1 "M PLUS Rounded 1c", sans-serif; letter-spacing: 0; color: #6a0a1e; }
.pd-home-shine, .pd-pay-shine, .pd-host-shine, .pd-ben-shine { position: absolute; top: -20%; bottom: -20%; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85) 50%, transparent);
  transform: translateX(-160%) skewX(-18deg); animation: pdShine 3.2s ease-in-out 1s infinite; will-change: transform; }
.pd-home:active { transform: translateY(2px); }
@keyframes pdShine { 0% { transform: translateX(-160%) skewX(-18deg); } 35%, 100% { transform: translateX(360%) skewX(-18deg); } }
@keyframes pdBeat { 0%, 100% { transform: scale(1); } 6% { transform: scale(1.05); } 12% { transform: scale(1); } }
.pd-home-host { padding: 2px 12px; border-radius: 999px; background: linear-gradient(90deg, #ff3d6e, #ff8a3d); color: #fff; white-space: nowrap;
  font: 900 15px/1.4 "M PLUS Rounded 1c", sans-serif; text-shadow: 0 1px 0 #6a0018; box-shadow: 0 0 0 1.5px #ffe58a, 0 3px 8px rgba(0, 0, 0, .45); }
/* 開放した後：体験版の札の代わり */
.pd-owned { font: 900 36px/1 "Shippori Mincho B1", serif; letter-spacing: 7px; }   /* 作者 2026-11-21「もう少し大きく」（30px から） */
/* 影は一番外の黒ぶち（l1）にだけ付け、光の帯は窓（l5w）と中の白い字（l5i）の逆向きの transform で走らせる（ホームの題字と同じ作り） */
.pd-owned > span { position: relative; }
.pd-owned .l1 { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)) drop-shadow(0 0 12px rgba(255, 190, 80, .6)); }
.pd-owned .l5w { position: relative; justify-self: start; align-self: stretch; width: 1.4em; padding: 0; overflow: hidden; pointer-events: none;
  transform-origin: 0 0; transform: translateX(-2em) skewX(-20deg); animation: ownBand 3.2s .6s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 58%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 58%, transparent 100%); }
.pd-owned .l5i { position: absolute; left: 0; top: 0; padding: .08em .12em; white-space: nowrap; color: rgba(255, 255, 255, .95);
  transform-origin: 0 0; transform: skewX(20deg) translateX(2em); animation: ownBandIn 3.2s .6s ease-in-out infinite; }
@keyframes ownBand { 0% { transform: translateX(-2em) skewX(-20deg); } 30%, 100% { transform: translateX(4.6em) skewX(-20deg); } }
@keyframes ownBandIn { 0% { transform: skewX(20deg) translateX(2em); } 30%, 100% { transform: skewX(20deg) translateX(-4.6em); } }
.pd-owned-note { padding: 3px 12px; border-radius: 10px; background: rgba(20, 6, 16, .78); box-shadow: 0 0 0 1.5px #e7c46a;
  color: #fff3c4; font: 800 15px/1.4 "M PLUS Rounded 1c", sans-serif; }

/* 小さな札（4つ） */
.pd-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pd-chip { padding: 2px 10px; border-radius: 999px; white-space: nowrap; font: 900 14px/1.5 "M PLUS Rounded 1c", sans-serif; color: #3a1600;
  background: linear-gradient(180deg, #fffbe0, #ffd860 50%, #f0a020); box-shadow: 0 0 0 1.5px #8a5200, 0 2px 4px rgba(0, 0, 0, .4); }
.pd-chips.home .pd-chip { font-size: 14px; }

/* 小さな金のボタン（図鑑・設定・コードの板） */
.pd-mini { flex: none; padding: 7px 16px; border-radius: 999px; border: 2px solid #8a5200; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #fffbe0, #ffd860 45%, #e09a10 55%, #ffd060); color: #3a1600; font: 900 16px/1.2 "M PLUS Rounded 1c", sans-serif;
  box-shadow: 0 3px 0 #5a3008, 0 0 10px rgba(255, 200, 80, .5); }
.pd-mini:active { transform: translateY(2px); box-shadow: 0 1px 0 #5a3008; }
.pd-mini:disabled { opacity: .6; }

/* 図鑑：大きなカードの下の「製品版で使えます → 開放する」 */
.overlay.bookzoom { flex-direction: column; gap: 12px; }
.pd-bookbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; max-width: 640px; padding: 10px 14px; border-radius: 16px;
  background: rgba(20, 6, 16, .92); box-shadow: 0 0 0 2px #e7c46a, 0 6px 16px rgba(0, 0, 0, .6); color: #fff3c4; font: 800 16px/1.3 "M PLUS Rounded 1c", sans-serif; cursor: default; }
/* 横向きのスマホ（背が低い）：カードの横に並べる */
@media (max-height: 600px) {
  .overlay.bookzoom:has(.pd-bookbar) { flex-direction: row; gap: 16px; }
  .pd-bookbar { flex-direction: column; max-width: 260px; text-align: center; }
  .pd-bookbar .pd-chips { justify-content: center; }
}

/* 終局の画面の案内 */
.pd-endbox { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 4px; }
.pd-endbox .pd-chips { justify-content: center; }
.pd-end-host { color: #ffd0dc; font: 900 14px/1.4 "M PLUS Rounded 1c", sans-serif; text-align: center; }
.pd-end { display: block; padding: 6px 18px; border-radius: 999px; border: 1.5px solid #e7c46a; background: rgba(255, 220, 120, .14);
  color: #ffe9a8; font: 800 15px/1.3 "M PLUS Rounded 1c", sans-serif; cursor: pointer; }
.pd-end small { font-size: 13px; color: #f3d8a0; }

/* ---------- 増える物（大きな4枚の札）：漆の板に金の縁、左にアイコン、右に2行 */
.pd-bens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.pd-ben { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 96px; padding: 10px 12px; border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%) padding-box,
    linear-gradient(160deg, #8a1428, #4a0716 60%, #2a0410) padding-box,
    linear-gradient(180deg, #fffbe0, #f2c24a 30%, #8a5200 55%, #ffe58a) border-box;
  box-shadow: 0 4px 0 #3a0610, 0 8px 16px rgba(0, 0, 0, .45), 0 0 16px rgba(255, 190, 80, .35); }
.pd-ben-shine { animation-duration: 4s; animation-delay: calc(1.2s + var(--i) * .25s); }
.pd-ben-tx { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-ben-tx b { color: #fff3c4; font: 900 20px/1.25 "M PLUS Rounded 1c", sans-serif; text-shadow: 0 2px 0 #2a0008, 0 0 10px rgba(255, 190, 80, .5); white-space: nowrap; }
.pd-ben-tx small { color: #ffd9a8; font: 700 14px/1.35 "M PLUS Rounded 1c", sans-serif; white-space: normal; word-break: keep-all; }

/* いちばんの売り：友だちも遊べる！（虹の縁、友だちの顔、金属の文字） */
.pd-host { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 18px; border-radius: 16px;
  border: 3px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 50%) padding-box,
    linear-gradient(90deg, #6a0030, #a01040 50%, #6a0030) padding-box,
    linear-gradient(90deg, #ff4d6d, #ffb84d, #fff04d, #4dff88, #4dd2ff, #8a6bff, #ff4dd8) border-box;
  box-shadow: 0 5px 0 #3a0018, 0 10px 20px rgba(0, 0, 0, .45), 0 0 22px rgba(255, 120, 200, .45); }
.pd-host-faces { flex: none; display: flex; }
.pd-host-faces i { width: 46px; height: 46px; margin-right: -10px; border-radius: 50%; background: #333 center / cover; box-shadow: 0 0 0 2.5px #ffe58a, 0 2px 6px rgba(0, 0, 0, .5); }
.pd-host-tx { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-left: 8px; }
.pd-host-big { font: 900 34px/1.1 "Shippori Mincho B1", serif; letter-spacing: 3px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.pd-host-small { color: #fff; font: 800 17px/1.4 "M PLUS Rounded 1c", sans-serif; text-shadow: 0 1px 0 #3a0010; }
.pd-host.lobby { margin: 4px 0 6px; width: auto; max-width: 980px; }
.pd-host.lobby .pd-chips { flex-basis: 100%; }

/* ---------- 確認画面（特定商取引法の最終確認画面） */
.overlay.pd-confirm { z-index: 9200; background: radial-gradient(ellipse at 50% 30%, rgba(70, 10, 30, .9), rgba(6, 2, 10, .96) 70%); padding: 0; }
.pd-box { position: absolute; left: 50%; top: 50%; width: 1180px; max-height: calc(100dvh / var(--stg, 1) - 12px); overflow: auto;
  transform: translate(-50%, -50%) scale(var(--stg, 1)); transform-origin: 50% 50%;
  border-radius: 22px; color: #2b2140; background: linear-gradient(180deg, #fffaf0, #fbefd8);
  border: 3px solid #c99a3e; box-shadow: 0 0 0 2px #fff3c4, 0 0 40px rgba(255, 190, 80, .45), 0 20px 50px rgba(0, 0, 0, .6); }
.pd-head { display: flex; align-items: center; gap: 18px; padding: 10px 16px 8px 26px; background: linear-gradient(160deg, #5a1626, #200a1c); border-bottom: 3px solid #c99a3e; }
.pd-title { font: 900 38px/1 "Shippori Mincho B1", serif; letter-spacing: 6px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)) drop-shadow(0 0 14px rgba(255, 190, 80, .5)); }
.pd-head-sub { flex: 1; color: #ffe9b0; font: 800 18px/1 "M PLUS Rounded 1c", sans-serif; white-space: nowrap; }
.pd-x { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #c99a3e; background: #2a0c1c; color: #fff3c4; font-size: 26px; cursor: pointer; }
.pd-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 22px 18px; }
.pd-lower { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.pd-small { margin: 6px 0 0; font: 600 14px/1.5 "M PLUS Rounded 1c", sans-serif; color: #5a4a3a; word-break: keep-all; overflow-wrap: anywhere; }
.pd-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 0 0 4px; }
.pd-price b { font: 900 56px/1 "Orbitron", "M PLUS Rounded 1c", sans-serif; background: linear-gradient(180deg, #fff6c0, #ffc020 46%, #a05a00 54%, #ffd860);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #5a2a00; filter: drop-shadow(0 3px 0 #3a1600); }
.pd-price span { font: 900 28px/1 "Shippori Mincho B1", serif; color: #3a1600; }
.pd-price small { font: 800 17px/1 "M PLUS Rounded 1c", sans-serif; color: #6a0a1e; }
.pd-terms { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1.5px #e0c070;
  font: 700 15px/1.45 "M PLUS Rounded 1c", sans-serif; }
.pd-terms dt { color: #6a0a1e; white-space: nowrap; }
.pd-terms dd { margin: 0; color: #2b2140; word-break: keep-all; overflow-wrap: anywhere; }
.pd-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font: 700 14px/1.4 "M PLUS Rounded 1c", sans-serif; }
.pd-links a { color: #2a4aa8; white-space: nowrap; }
.pd-pay { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 10px 10px 8px;
  border-radius: 16px; border: 3px solid transparent; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 48%) padding-box,
    linear-gradient(180deg, #ff6a7e 0%, #e0163a 46%, #8a0018 54%, #d0203a 100%) padding-box,
    linear-gradient(180deg, #fffbe0, #f2c24a 35%, #7a4000 60%, #ffe58a) border-box;
  box-shadow: 0 5px 0 #4a0010, 0 10px 20px rgba(0, 0, 0, .4), 0 0 24px rgba(255, 90, 110, .5); color: #fff; }
.pd-pay b { font: 900 30px/1.2 "Shippori Mincho B1", serif; letter-spacing: 4px; text-shadow: 0 2px 0 #4a0010, 0 0 10px rgba(255, 220, 140, .7); }
.pd-pay small { font: 800 15px/1.3 "M PLUS Rounded 1c", sans-serif; color: #ffe9b0; }
.pd-pay:active { transform: translateY(3px); box-shadow: 0 2px 0 #4a0010; }
.pd-pay:disabled { filter: grayscale(.6) brightness(.85); cursor: default; }
.pd-mock { margin: 6px 0 0; padding: 5px 10px; border-radius: 8px; background: #fff4d6; border: 1px dashed #d0a020; font: 700 13px/1.4 "M PLUS Rounded 1c", sans-serif; color: #6a4a00; }

/* 支払いを確かめている間 */
.overlay.pd-wait { z-index: 9300; flex-direction: column; gap: 14px; background: rgba(6, 2, 10, .82); }
.pd-wait-msg { color: #fff3c4; font: 800 20px/1.4 "M PLUS Rounded 1c", sans-serif; }

/* ---------- 開放の演出：朱と金の宝物殿の大扉が奥へ開き、カメラが光あふれる宝の間へ寄る
   絵は /static/_v/487240923e/paid/（gate_l・gate_r・hall。Gemini で描いた物）。動かすのは transform と opacity だけ。光は glow.js（ブルーム） */
.pd-show { position: fixed; inset: 0; z-index: 44; overflow: hidden; opacity: 0; transition: opacity .3s; background: #0a0306; }
.pd-show.in { opacity: 1; }
body.pd-cover #app { visibility: hidden; }   /* 演出が全体を覆っている間は、裏のホームを描かない */
/* カメラ：絵（16:9 前後）を画面いっぱいに敷き、開く時に奥へ寄る */
.pd-cam { position: absolute; left: 50%; top: 50%; width: max(100vw, 172.6vh); height: max(57.94vw, 100vh); transform: translate(-50%, -50%) scale(1);
  perspective: 1600px; will-change: transform; }
.pd-show.open .pd-cam { transform: translate(-50%, -50%) scale(1.14); transition: transform 2.6s cubic-bezier(.3, .1, .2, 1); }
.pd-hall { position: absolute; inset: 0; background: #2a0a06 center / cover no-repeat; transform: scale(1.12); }
.pd-show.open .pd-hall { transform: scale(1); transition: transform 2.6s cubic-bezier(.3, .1, .2, 1); }
.pd-hall-shade { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(20, 4, 8, .35), rgba(10, 2, 4, .78) 100%); }
.pd-show.free .pd-hall-shade { opacity: 1; transition: opacity .8s; }
/* 扉：左右2枚。蝶番（外側）を軸に、奥へ回って開く */
.pd-gate { position: absolute; inset: 0; transform-style: preserve-3d; }
.pd-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: center / 100% 100% no-repeat; backface-visibility: hidden; will-change: transform;
  transition: transform 1.3s cubic-bezier(.55, 0, .3, 1), opacity .35s 1s; }
.pd-leaf.l { left: 0; transform-origin: 0 50%; }
.pd-leaf.r { right: 0; transform-origin: 100% 50%; }
.pd-leaf-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); opacity: 0; transition: opacity 1.1s; }
.pd-leaf.r .pd-leaf-shade { background: linear-gradient(270deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); }
.pd-show.open .pd-leaf.l { transform: rotateY(82deg); opacity: 0; }
.pd-show.open .pd-leaf.r { transform: rotateY(-82deg); opacity: 0; }
.pd-show.open .pd-leaf-shade { opacity: 1; }
/* 合わせ目からもれる光 */
.pd-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 60px; margin-left: -30px; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 250, 220, .95), rgba(255, 200, 80, .5) 40%, transparent 70%); transform: scaleX(.3); }
.pd-show.crack .pd-seam { opacity: 1; transform: scaleX(1); transition: opacity .3s, transform .5s ease-in; }
.pd-show.open .pd-seam { opacity: 0; transform: scaleX(14); transition: opacity .6s .1s, transform .6s ease-out; }

/* 手前の舞台（カード・題字・増える物・ホストの帯・コード） */
.pd-stage { position: absolute; left: 50%; top: 50%; width: 1240px; height: 720px; transform: translate(-50%, -50%) scale(var(--stg, 1));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.pd-show.panel .pd-stage { pointer-events: auto; }
.pd-cards { position: relative; display: flex; gap: 10px; justify-content: center; opacity: 0; }
.pd-show.free .pd-cards { opacity: 1; transition: opacity .3s; }
.pd-card { position: relative; width: 66px; height: 94px; border-radius: 7px; transform: translateY(14px) scale(.9);
  transition: transform .5s cubic-bezier(.2, 1.6, .4, 1) calc(var(--i) * 60ms); }
.pd-rim { position: absolute; inset: -4px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #8a6a3a, #3a2a1a); }
.pd-rim::before { content: ""; position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; opacity: 0;
  background: conic-gradient(#ff4d6d, #ffb84d, #fff04d, #4dff88, #4dd2ff, #8a6bff, #ff4dd8, #ff4d6d); transition: opacity .3s calc(var(--i) * 60ms);
  animation: pdSpin 1.6s linear infinite; will-change: transform; }
@keyframes pdSpin { to { transform: rotate(360deg); } }
.pd-art { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; background: #111 center / cover no-repeat; }
.pd-dark { position: absolute; inset: 0; border-radius: 6px; background: rgba(10, 6, 14, .78); transition: opacity .35s calc(var(--i) * 60ms); }
.pd-lock { position: absolute; left: 50%; top: 50%; font-size: 28px; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 3px #000);
  transition: transform .45s cubic-bezier(.5, -0.4, .7, .6) calc(var(--i) * 60ms + .1s), opacity .45s calc(var(--i) * 60ms + .1s); }
.pd-show.free .pd-card { transform: none; }
.pd-show.free .pd-rim::before { opacity: 1; }
.pd-show.free .pd-dark { opacity: 0; }
.pd-show.free .pd-lock { transform: translate(-50%, -260%) rotate(-30deg) scale(1.3); opacity: 0; }
/* 解けたカードに、白い光の筋が走る（絵の中だけ。走り終わったら消える） */
.pd-art::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .9) 50%, transparent); }
.pd-show.free .pd-art::after { animation: pdCardShine .7s ease calc(var(--i) * 60ms + .15s) both; }
@keyframes pdCardShine { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(270%); opacity: 1; } }

.pd-big { font: 900 76px/1 "Shippori Mincho B1", serif; letter-spacing: 12px; opacity: 0; transform: scale(2.4);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(255, 190, 80, .7)); }
.pd-show.title .pd-big { opacity: 1; transform: scale(1); transition: transform .45s cubic-bezier(.2, 1.5, .4, 1), opacity .15s; }
.pd-bens.show .pd-ben { opacity: 0; transform: translateY(26px) scale(.6); }
.pd-bens.show .pd-ben.on { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.2, 1.6, .4, 1), opacity .2s; }
.pd-host.show { width: auto; opacity: 0; transform: scale(1.8); }
.pd-show.host .pd-host.show { opacity: 1; transform: none; transition: transform .4s cubic-bezier(.2, 1.4, .4, 1), opacity .15s; }

.pd-panel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 24px 10px; border-radius: 16px; opacity: 0; transform: translateY(30px);
  background: linear-gradient(180deg, rgba(40, 8, 22, .95), rgba(16, 4, 14, .95)); border: 2px solid #c99a3e;
  box-shadow: 0 0 0 1px rgba(255, 230, 160, .35) inset, 0 0 26px rgba(255, 190, 80, .35), 0 12px 26px rgba(0, 0, 0, .6); }
.pd-show.panel .pd-panel { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.2, 1.3, .4, 1), opacity .3s; }
.pd-codeline { display: flex; align-items: center; gap: 16px; }
.pd-codelab { color: #f3d8a0; font: 800 17px/1.2 "M PLUS Rounded 1c", sans-serif; white-space: nowrap; }
.pd-code { font: 900 42px/1.1 "Orbitron", monospace; letter-spacing: 3px; white-space: nowrap; user-select: all; -webkit-user-select: all;
  background: linear-gradient(180deg, #fffef0 0%, #ffe680 30%, #ffb800 48%, #8a4a00 52%, #e89a10 70%, #fff2a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #3a1600; filter: drop-shadow(0 3px 0 #120400) drop-shadow(0 0 12px rgba(255, 200, 80, .5)); }
.pd-btns { display: flex; gap: 10px; align-items: center; }
.pd-go { padding: 8px 30px; border-radius: 999px; border: 2px solid #fff3c4; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 50%), linear-gradient(180deg, #ff6a7e, #c8102e 55%, #ff4a64);
  color: #fff; font: 900 20px/1.2 "Shippori Mincho B1", serif; letter-spacing: 4px; text-shadow: 0 2px 0 #4a0010; box-shadow: 0 4px 0 #4a0010, 0 0 16px rgba(255, 90, 110, .6); }
.pd-note { max-width: 1000px; text-align: center; color: #f3dcc0; font: 600 15px/1.5 "M PLUS Rounded 1c", sans-serif; }

/* 設定：開放コード */
.pd-setcode { display: flex; align-items: center; gap: 8px; }
.pd-setval { font: 900 18px/1 "Orbitron", monospace; letter-spacing: 1px; color: #6a0a1e; white-space: nowrap; }
.pd-input { width: 170px; font-family: "Orbitron", monospace; letter-spacing: 1px; text-transform: uppercase; }
.pd-shake { animation: pdNo .4s; }
@keyframes pdNo { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (prefers-reduced-motion: reduce) {
  .pd-home, .pd-home-shine, .pd-pay-shine, .pd-host-shine, .pd-ben-shine, .pd-rim::before { animation: none; }
}

/* ---------- スマホでも読める大きさ（確認画面・演出は 1280×720 で組んで縮めるので、字を大きめにしておく） */
.pd-confirm .pd-ben-tx b { font-size: 23px; }
.pd-confirm .pd-ben-tx small { font-size: 16px; }
.pd-confirm .pd-host-big { font-size: 36px; }
.pd-confirm .pd-host-small { font-size: 20px; }
.pd-confirm .pd-terms { font-size: 17px; }
.pd-confirm .pd-links { font-size: 16px; }
.pd-confirm .pd-small, .pd-confirm .pd-mock { font-size: 15px; }
.pd-chip { font-size: 16px; }
/* 演出の4枚の札：アイコンを上、字を下にして大きく */
.pd-bens.show .pd-ben { flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 150px; padding: 10px 8px; }
.pd-bens.show .pd-ben-tx { align-items: center; }
.pd-bens.show .pd-ben-tx b { font-size: 27px; }
.pd-bens.show .pd-ben-tx small { font-size: 18px; }
.pd-host.show .pd-host-big { font-size: 40px; }
.pd-host.show .pd-host-small { font-size: 21px; }
.pd-show .pd-note { font-size: 18px; }
.pd-show .pd-codelab { font-size: 20px; }
.pd-confirm .pd-ben-tx b { font-size: 21px; }
/* 友だち対戦の準備の画面：枠からはみ出さないように縮めて折り返す */
.pd-host-tx { min-width: 0; flex: 1; }
.pd-host.lobby { gap: 10px; padding: 8px 14px; }
.pd-host.lobby .pd-host-faces i { width: 36px; height: 36px; }
.pd-host.lobby .pd-host-big { font-size: 26px; }
.pd-host.lobby .pd-host-small { font-size: 16px; }
.pd-host.lobby .pd-chip { font-size: 14px; }
/* 閉じた大扉：ゆっくり寄りながら、金の艶が斜めに走る（止まった間を作らない） */
.pd-gate { transform: scale(1); }
.pd-show.in .pd-gate { transform: scale(1.05); transition: transform 1.4s cubic-bezier(.3, .1, .3, 1); }
.pd-gate::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 30%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 190, .55) 50%, transparent); transform: translateX(-120%) skewX(-12deg); }
.pd-show.in .pd-gate::after { animation: pdGateGloss 1s .1s ease-in-out both; }
@keyframes pdGateGloss { to { transform: translateX(420%) skewX(-12deg); } }

/* ---------- 増える物のアイコン：Gemini で描いた金のメダル（/static/_v/487240923e/paid/ic_*.webp）。主役に見えるよう大きく、字は艶のある金の板に */
.pd-ic { position: relative; flex: none; display: block; width: 96px; height: 96px; margin: -10px -2px -10px -14px; }
.pd-ic img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(255, 200, 90, .55)); }
.pd-ben { overflow: visible; gap: 10px; padding: 10px 10px 10px 12px; min-height: 104px; }
.pd-ben-shine { display: none; }
.pd-ben-tx { flex: 1; justify-content: center; gap: 2px; padding: 6px 10px 7px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 46%), linear-gradient(180deg, #fff3c0 0%, #f2c24a 40%, #b7781a 52%, #e8b040 78%, #fff0b0 100%);
  box-shadow: 0 0 0 1.5px #6a3a00, inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 0 rgba(90, 40, 0, .45), 0 2px 4px rgba(0, 0, 0, .4); }
.pd-ben-tx::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 35%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8) 50%, transparent); transform: translateX(-160%) skewX(-18deg);
  animation: pdShine 3.6s ease-in-out calc(1s + var(--i, 0) * .3s) infinite; }
.pd-ben-tx b { display: block; color: #4a0a10; text-shadow: 0 1px 0 rgba(255, 255, 255, .75); white-space: normal; word-break: keep-all; line-height: 1.2; }
.pd-ben-tx .pd-ben-small { display: block; color: #5a2a08; font: 800 14px/1.3 "M PLUS Rounded 1c", sans-serif; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.pd-confirm .pd-ben-tx b { font-size: 22px; }
.pd-confirm .pd-ben-small { font-size: 15px !important; }
.pd-confirm .pd-ic { width: 104px; height: 104px; }
/* 演出の札：メダルを上に大きく、金の板を下に */
.pd-bens.show { gap: 16px; }
.pd-bens.show .pd-ben { flex-direction: column; align-items: stretch; gap: 0; padding: 0 8px 10px; min-height: 0; background: none; border: 0; box-shadow: none; }
.pd-bens.show .pd-ic { width: 150px; height: 150px; margin: 0 auto -18px; z-index: 1; }
.pd-bens.show .pd-ben-tx { align-items: center; text-align: center; padding: 18px 8px 8px; }
.pd-bens.show .pd-ben-tx b { font-size: 26px; }
.pd-bens.show .pd-ben-small { font-size: 17px; }
/* 「ドン」：メダルが大きく上から落ちて着き、板が後から出る */
.pd-bens.show .pd-ben { opacity: 1; transform: none; }
.pd-bens.show .pd-ben .pd-ic { opacity: 0; transform: translateY(-120px) scale(2.4); }
.pd-bens.show .pd-ben .pd-ben-tx { opacity: 0; transform: scaleX(.3); }
.pd-bens.show .pd-ben.on .pd-ic { opacity: 1; transform: none; transition: transform .32s cubic-bezier(.5, 0, .7, 1.4), opacity .12s; }
.pd-bens.show .pd-ben.on .pd-ben-tx { opacity: 1; transform: none; transition: transform .35s cubic-bezier(.2, 1.5, .4, 1) .18s, opacity .2s .18s; }
.pd-bens.show .pd-ben.on .pd-ic img { animation: pdThud .5s .3s ease-out both; }
@keyframes pdThud { 0% { transform: scale(1.12, .9); } 40% { transform: scale(.96, 1.05); } 100% { transform: none; } }
/* 小さな札：メダルを左にはみ出させ、字は金の板 */
.pd-chip { display: inline-flex; align-items: center; gap: 2px; padding: 0 10px 0 0; margin-left: 10px; }
.pd-chip .pd-ic { width: 34px; height: 34px; margin: -6px 0 -6px -14px; }
.pd-chip .pd-ic img { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.pd-chip b { font: inherit; }
.pd-chips { gap: 6px 4px; }
/* 4枚の札が字の長さで広がらないように（字は板の中で折り返す） */
.pd-ben, .pd-ben-tx { min-width: 0; }
.pd-confirm .pd-ben-tx b { font-size: 20px; }
.pd-confirm .pd-ic { width: 92px; height: 92px; }
.pd-confirm .pd-ben-tx b { font-size: 19px; letter-spacing: 0; }
.pd-confirm .pd-ic { width: 84px; height: 84px; margin-right: -4px; }
.pd-confirm .pd-ben-tx { padding: 5px 8px 6px; }
/* 終局の画面の字の飾り（金の文字など）を受けないように */
.pd-chip b { color: #3a1600 !important; -webkit-text-fill-color: #3a1600; background: none !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .6) !important;
  font: 900 15px/1.5 "M PLUS Rounded 1c", sans-serif !important; letter-spacing: 0 !important; animation: none !important; }
.pd-endbox .pd-chip .pd-ic { width: 30px; height: 30px; }
.pd-bens.show .pd-ic, .pd-bens.show .pd-ben-tx { will-change: transform, opacity; }   /* 影つきのメダルを1度だけ描いて、動きは合成だけで（軽く） */

/* ================= 開放の演出（カードが主役の並び）=================
   舞台の中は 1240×720 の座標で、すべて絶対位置に置く（paid.js の FAN と合わせる） */
.pd-stage2 { display: block; }
.pd-stage2 > * { position: absolute; }
/* 扇：鍵付きだったカード40枚。最初は奥の真ん中に小さく重なっていて、扇に広がる */
.pd-fan { inset: 0; z-index: 1; }
.pd-fc { position: absolute; left: 0; top: 0; width: 118px; height: 164px; opacity: 0; transform: translate(561px, 300px) rotate(0deg) scale(.2); will-change: transform; }
.pd-show.fan .pd-fc { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--a));
  transition: transform .75s cubic-bezier(.2, 1.25, .4, 1) calc(var(--d) * 16ms), opacity .2s calc(var(--d) * 16ms); }
.pd-fc-rim { position: absolute; inset: -4px; border-radius: 10px; background: linear-gradient(180deg, #8a6a3a, #3a2a1a); box-shadow: 0 6px 12px rgba(0, 0, 0, .6); }
.pd-fc-rim::after { content: ""; position: absolute; inset: 0; border-radius: 10px; opacity: 0;
  background: linear-gradient(135deg, #ff4d6d, #ffb84d, #fff04d, #4dff88, #4dd2ff, #8a6bff, #ff4dd8);
  box-shadow: 0 0 14px rgba(255, 240, 180, .9), 0 0 26px rgba(255, 120, 220, .6); transition: opacity .25s calc(var(--d) * 30ms); }
.pd-fc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.pd-fc-dark { position: absolute; inset: 0; border-radius: 6px; background: rgba(12, 6, 16, .74); transition: opacity .3s calc(var(--d) * 30ms); }
/* 錠前（金）：左右の半分と掛け金。解ける時にバキンと割れて飛ぶ */
.pd-fc-lock { position: absolute; left: 50%; top: 50%; width: 46px; height: 38px; margin: -10px 0 0 -23px; }
.pd-fc-lock::before { content: ""; position: absolute; left: 9px; top: -20px; width: 28px; height: 26px; border: 6px solid #e8b030; border-bottom: 0; border-radius: 16px 16px 0 0;
  box-sizing: border-box; box-shadow: inset 0 2px 0 rgba(255, 245, 200, .8); transition: transform .35s ease-in calc(var(--d) * 30ms), opacity .35s calc(var(--d) * 30ms); }
.pd-fc-lock i { position: absolute; top: 0; width: 23px; height: 38px; background: linear-gradient(180deg, #fff3b0, #f0b020 45%, #8a4a00 55%, #ffd860);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .6); transition: transform .45s cubic-bezier(.5, -0.3, .7, .6) calc(var(--d) * 30ms), opacity .45s calc(var(--d) * 30ms); }
.pd-fc-lock i.l { left: 0; border-radius: 7px 0 0 7px; }
.pd-fc-lock i.r { right: 0; border-radius: 0 7px 7px 0; }
.pd-fc-lock i.l::after { content: ""; position: absolute; right: -4px; top: 12px; width: 8px; height: 12px; border-radius: 4px; background: #5a2a00; }
.pd-show.free .pd-fc-rim::after { opacity: 1; }
.pd-show.free .pd-fc-dark { opacity: 0; }
.pd-show.free .pd-fc-lock::before { transform: translateY(-40px) rotate(-25deg); opacity: 0; }
.pd-show.free .pd-fc-lock i.l { transform: translate(-46px, 30px) rotate(-55deg); opacity: 0; }
.pd-show.free .pd-fc-lock i.r { transform: translate(46px, 30px) rotate(55deg); opacity: 0; }
.pd-fc-shine { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; pointer-events: none; }
.pd-fc-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 60%; opacity: 0;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .95) 50%, transparent); }
.pd-show.free .pd-fc-shine::after { animation: pdCardShine .6s ease calc(var(--d) * 30ms + .12s) both; }
.pd-show.free .pd-fc { animation: pdFcPop .45s cubic-bezier(.2, 1.6, .4, 1) calc(var(--d) * 30ms) both; }
@keyframes pdFcPop { 0% { translate: 0 0; scale: 1; } 40% { translate: 0 -14px; scale: 1.12; } 100% { translate: 0 0; scale: 1; } }

/* 題字：扇の手前（カードの束が題字の後ろに大きく残る） */
.pd-stage2 .pd-big { left: 0; right: 0; top: 196px; width: fit-content; margin: 0 auto; z-index: 3; font-size: 84px; }
.pd-fansub { left: 0; right: 0; top: 286px; text-align: center; z-index: 3; opacity: 0; color: #fff6d6;
  font: 900 24px/1.3 "M PLUS Rounded 1c", sans-serif; text-shadow: 0 2px 0 #3a0610, 0 0 10px rgba(0, 0, 0, .9), 0 0 16px rgba(255, 180, 80, .7); }
.pd-show.title .pd-fansub { opacity: 1; transition: opacity .4s .2s; }

/* 手前に飛ばす主役のカード */
.pd-heroes { inset: 0; z-index: 6; pointer-events: none; }
.pd-hero { position: absolute !important; left: 0; top: 0; margin: 0; filter: drop-shadow(0 0 22px rgba(255, 240, 180, .9)) drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); }

/* 増える物（メダル4つ）：扇より小さく、横一列 */
.pd-stage2 .pd-bens.show { left: 120px; right: 120px; top: 330px; width: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; z-index: 2; }
.pd-stage2 .pd-bens.show .pd-ben { flex-direction: row; align-items: center; gap: 0; padding: 0; min-height: 0; }
.pd-stage2 .pd-bens.show .pd-ic { width: 88px; height: 88px; margin: 0 -14px 0 0; }
.pd-stage2 .pd-bens.show .pd-ben-tx { align-items: flex-start; text-align: left; padding: 6px 8px 7px 18px; }
.pd-stage2 .pd-bens.show .pd-ben-tx b { font-size: 19px; }
.pd-stage2 .pd-bens.show .pd-ben-small { font-size: 14px; }
.pd-stage2 .pd-host.show { left: 0; right: 0; top: 432px; width: fit-content; max-width: 1060px; margin: 0 auto; z-index: 2; }
.pd-stage2 .pd-host.show .pd-host-big { font-size: 34px; }
.pd-stage2 .pd-host.show .pd-host-small { font-size: 19px; }
.pd-stage2 .pd-panel { left: 0; right: 0; top: 528px; width: fit-content; margin: 0 auto; z-index: 2; }

/* ---------- 確認画面・入口でも「カードが使えるようになる」を一番に：カードの札を広く、軽い絵を扇に並べる */
.pd-confirm .pd-bens { grid-template-columns: 1.75fr 1fr 1fr 1fr; }
.pd-ben-fan { position: relative; flex: none; width: 128px; height: 84px; margin-left: 2px; }
.pd-ben-fan img { position: absolute; left: 50%; bottom: 0; width: 40px; height: 56px; margin-left: -20px; object-fit: cover; border-radius: 4px;
  border: 2px solid #ffe58a; box-shadow: 0 2px 5px rgba(0, 0, 0, .6); transform-origin: 50% 140%; transform: rotate(var(--r)); }
.pd-ben.cards { box-shadow: 0 4px 0 #3a0610, 0 8px 16px rgba(0, 0, 0, .45), 0 0 0 2px #fff3a0, 0 0 22px rgba(255, 140, 220, .7); }
.pd-chip.cards { font-size: 18px; padding-right: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 50%), linear-gradient(90deg, #ffd0e0, #fff4a0, #c8ffd8, #c8e8ff, #f0d0ff);
  box-shadow: 0 0 0 2px #8a5200, 0 0 12px rgba(255, 140, 220, .8), 0 2px 4px rgba(0, 0, 0, .4); }
.pd-chip.cards b { font-size: 17px !important; }
.pd-chip.cards .pd-ic { width: 42px; height: 42px; }
/* 並びの調整：メダルの列を広く、帯とコードの板が重ならないように */
.pd-stage2 .pd-bens.show { left: 50px; right: 50px; top: 326px; }
.pd-stage2 .pd-bens.show .pd-ben-tx b { font-size: 18px; }
.pd-stage2 .pd-bens.show .pd-ben-small { font-size: 13px; }
.pd-stage2 .pd-host.show { top: 424px; padding: 6px 16px; }
.pd-stage2 .pd-host.show .pd-host-big { font-size: 30px; }
.pd-stage2 .pd-host.show .pd-host-small { font-size: 18px; }
.pd-stage2 .pd-panel { top: 548px; }
/* 錠前：カードは重なって左の端だけ見えるので、見えている所に小さく置く */
.pd-fc-lock { left: 4px; top: 34%; margin: 0; transform: scale(.62); transform-origin: 0 0; }
.pd-confirm .pd-bens { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 10px; }
.pd-confirm .pd-ic { width: 74px; height: 74px; margin-right: -8px; }
.pd-confirm .pd-ben-small { font-size: 13px !important; }
.pd-confirm .pd-ben-tx b { font-size: 18px; }
.pd-confirm .pd-ben-fan { width: 112px; margin-right: -4px; }
/* スマホ（指で触る画面）：40枚のカードの影と光のにじみ・跳ねる動きを省いて軽くする（虹の縁と光の筋は残す） */
@media (pointer: coarse) {
  .pd-fc-rim, .pd-fc-rim::after, .pd-fc-lock i { box-shadow: none; }
  .pd-show.free .pd-fc { animation: none; }
}

/* ---------- 別の端末でコードが使われて、体験版に戻った時の知らせ */
.overlay.pd-moved { z-index: 9300; background: rgba(8, 2, 10, .72); }
.pd-moved-box { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(560px, 92vw); padding: 20px 22px 18px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, #3a0c1c, #1a0610); border: 3px solid #c99a3e; box-shadow: 0 0 0 2px #fff3c4, 0 0 30px rgba(255, 190, 80, .4), 0 16px 40px rgba(0, 0, 0, .6); }
.pd-moved-box > b { color: #ffe9a8; font: 900 26px/1.2 "Shippori Mincho B1", serif; letter-spacing: 3px; }
.pd-moved-msg { color: #fff; font: 800 17px/1.5 "M PLUS Rounded 1c", sans-serif; }
.pd-moved-sub { color: #f3d8c0; font: 600 14px/1.55 "M PLUS Rounded 1c", sans-serif; }
.pd-moved-box .pd-btns { flex-wrap: wrap; justify-content: center; }
.pd-note .pd-rule { color: #ffe58a; font-weight: 900; }

/* ---------- 2局目のあとに1回だけ出す案内（扇のカード・金属文字・小さな札・製品版を見る/閉じる） */
.overlay.pd-nudge { z-index: 9100; padding: 0; background: radial-gradient(ellipse at 50% 40%, rgba(70, 10, 40, .82), rgba(6, 2, 10, .9) 70%);
  opacity: 0; transition: opacity .2s; }
.overlay.pd-nudge.in { opacity: 1; }
.overlay.pd-nudge.out { opacity: 0; }
.pd-nudge-box { position: absolute; left: 50%; top: 50%; width: 900px; padding: 18px 30px 22px; border-radius: 24px; text-align: center;
  transform: translate(-50%, -50%) scale(calc(var(--stg, 1) * .9)); display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 30%), linear-gradient(180deg, #4a0c22, #1c0612);
  border: 3px solid #e7c46a; box-shadow: 0 0 0 2px #fff3c4, 0 0 40px rgba(255, 160, 220, .45), 0 20px 50px rgba(0, 0, 0, .6); }
.pd-nudge-x { position: absolute; right: 12px; top: 12px; }
.pd-nudge-fan { position: relative; width: 640px; height: 250px; }
.pd-nc { position: absolute; left: 50%; bottom: 0; width: 132px; height: 184px; margin-left: -66px; border-radius: 9px; padding: 4px; box-sizing: border-box;
  background: linear-gradient(135deg, #ff4d6d, #ffb84d, #fff04d, #4dff88, #4dd2ff, #8a6bff, #ff4dd8); box-shadow: 0 0 16px rgba(255, 240, 180, .8), 0 8px 14px rgba(0, 0, 0, .6);
  transform-origin: 50% 190%; transform: rotate(0deg) scale(.4); opacity: 0; will-change: transform; }
.pd-nc img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.pd-nudge.in .pd-nc { transform: rotate(var(--a)) scale(1); opacity: 1;
  transition: transform .6s cubic-bezier(.2, 1.4, .4, 1) calc(.08s + var(--d) * 40ms), opacity .2s calc(.08s + var(--d) * 40ms); }
.pd-nc-shine { position: absolute; inset: 4px; border-radius: 6px; overflow: hidden; pointer-events: none; }
.pd-nc-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 60%; background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .9) 50%, transparent); opacity: 0; }
.pd-nudge.in .pd-nc-shine::after { animation: pdCardShine .7s ease calc(.55s + var(--d) * 60ms) both; }
.pd-nudge-title { font: 900 56px/1.1 "Shippori Mincho B1", serif; letter-spacing: 4px; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(255, 190, 80, .7));
  transform: scale(1.8); opacity: 0; }
.pd-nudge.in .pd-nudge-title { transform: none; opacity: 1; transition: transform .4s cubic-bezier(.2, 1.5, .4, 1) .35s, opacity .15s .35s; }
.pd-nudge-lead { color: #fff3d6; font: 800 20px/1.4 "M PLUS Rounded 1c", sans-serif; }
.pd-nudge-chips { justify-content: center; align-items: center; gap: 8px; }
.pd-nudge-chips .pd-home-host { font-size: 17px; }
.pd-nudge .pd-btns { gap: 16px; margin-top: 4px; }
.pd-nudge .pd-go { font-size: 24px; padding: 10px 40px; }
.pd-nudge .pd-mini { font-size: 18px; padding: 9px 22px; }

/* ---------- 「1人持ってれば、みんなで遊べる！」の札（大きい字＋すぐ下に小さい字。狭い所は「（あなたの部屋なら）」） */
.pd-hosttag { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 14px 5px; border-radius: 12px; line-height: 1.25;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 50%), linear-gradient(90deg, #ff3d6e, #ff8a3d);
  color: #fff; text-shadow: 0 1px 0 #6a0018; box-shadow: 0 0 0 1.5px #ffe58a, 0 3px 8px rgba(0, 0, 0, .45); }
.pd-hosttag > b { font: 900 18px/1.25 "M PLUS Rounded 1c", sans-serif; white-space: nowrap; }
.pd-hosttag > small, .pd-hosttag .pd-ht-small { font: 800 13px/1.35 "M PLUS Rounded 1c", sans-serif; color: #fff4dc; }
.pd-hosttag.book, .pd-hosttag.nudge { flex-direction: row; align-items: baseline; gap: 4px; border-radius: 999px; }
.pd-hosttag.end { align-items: center; text-align: center; }
.pd-hosttag.end > b { font-size: 16px; }
.pd-hosttag.nudge > b { font-size: 17px; }
.pd-hosttag.nudge > small { font-size: 14px; }
@media (max-height: 600px) { .pd-hosttag.book { flex-direction: column; align-items: center; border-radius: 12px; } }

/* ================= ホームの看板（製品版を開放）：ホームの下の札・対局の紋章と同じ、金の縁の朱塗り・艶・金属の字 =================
   有料開放を出す時だけ。体験版の札（.home-trial）は看板の角の「体験版」に入れ替える（有料開放が切の時の見た目は変えない） */
.home-logo:has(.pd-sign) .home-trial { display: none; }
.pd-homebox:has(.pd-sign) { margin-top: 26px; }
.pd-sign { position: relative; display: block; width: 372px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: #fff6d6; }
/* 上に覗く、鍵付きだったカードの扇 */
.pd-sign-fan { position: absolute; right: 26px; top: -46px; width: 150px; height: 70px; pointer-events: none; z-index: 0; }
.pd-sign-fan img { position: absolute; left: 50%; bottom: -14px; width: 46px; height: 64px; margin-left: -23px; object-fit: cover; border-radius: 4px;
  border: 2px solid #ffe58a; box-shadow: 0 0 10px rgba(255, 200, 120, .7), 0 3px 6px rgba(0, 0, 0, .6);
  transform-origin: 50% 180%; transform: rotate(calc(var(--k) * 13deg)); }
/* 額：朱塗りに厚い金の縁（.hb-btn.main と同じ塗り） */
.pd-sign-board { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 12px; border: 4px solid transparent; border-radius: 18px;
  background:
    radial-gradient(110% 60% at 50% 0%, rgba(255, 230, 160, .38), transparent 62%) padding-box,
    radial-gradient(90% 60% at 50% 100%, rgba(255, 120, 80, .3), transparent 70%) padding-box,
    linear-gradient(180deg, #d42c42 0%, #94102a 52%, #58071a 100%) padding-box,
    linear-gradient(180deg, #fffbe0 0%, #f6cc58 24%, #8e5208 50%, #fff0a0 74%, #b07414 100%) border-box;
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 180, .7), inset 0 -10px 14px rgba(40, 0, 10, .5), inset 0 3px 6px rgba(255, 220, 170, .3),
    0 6px 0 #7a4a0c, 0 8px 0 #2e1602, 0 14px 20px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 200, 90, .6);
  transition: box-shadow .15s; }
.pd-sign-board .hb-gloss { border-radius: 14px; }
.pd-sign:hover .pd-sign-board { box-shadow: inset 0 0 0 1.5px rgba(255, 246, 200, .9), inset 0 -10px 14px rgba(40, 0, 10, .5), inset 0 3px 6px rgba(255, 220, 170, .3),
    0 6px 0 #7a4a0c, 0 8px 0 #2e1602, 0 14px 20px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 214, 100, .9); }
.pd-sign.is-pressed .pd-sign-board, .pd-sign:active .pd-sign-board { box-shadow: inset 0 0 0 1.5px rgba(255, 246, 200, .9), inset 0 -5px 10px rgba(40, 0, 10, .5),
    0 1px 0 #7a4a0c, 0 2px 0 #2e1602, 0 4px 8px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 220, 120, .95); }
.pd-sign-board > *:not(.hb-gloss) { position: relative; z-index: 1; }
/* 角の「体験版」の札（黒漆に金） */
.pd-sign-trial { position: absolute !important; left: -8px; top: -16px; padding: 2px 12px; border-radius: 999px; border: 2px solid #f2c24a;
  background: linear-gradient(180deg, #4a1022, #1e030a); color: #ffe9a8; font: 800 15px/1.35 "Shippori Mincho B1", serif; letter-spacing: 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .6); white-space: nowrap; }
/* 金属の字（太い黒ぶち＋金。ホームの下の札と同じ重ね方） */
.pd-mt { display: inline-grid; white-space: nowrap; line-height: 1.1; }
.pd-mt b { grid-area: 1 / 1; font: inherit; }
.pd-mt .o { color: #1a0206; -webkit-text-stroke: .26em #1a0206; text-shadow: 0 3px 0 #000; }
.pd-mt .f { color: transparent; background: linear-gradient(180deg, #ffffff 0%, #fff0a8 34%, #ffd040 52%, #f0a418 62%, #fff2b8 92%); -webkit-background-clip: text; background-clip: text; }
.pd-sign-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.pd-sign-title { font: 900 27px "Shippori Mincho B1", serif; letter-spacing: 2px; }
/* 980円：金の小判 */
.pd-sign-coin { display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 10px 4px; border-radius: 50% / 46%;
  background: radial-gradient(ellipse at 40% 30%, #fffbe0, #f4c64e 45%, #a86c10 80%); border: 2px solid #6a3a00;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 #5a2a00, 0 0 12px rgba(255, 210, 90, .7); }
.pd-coin-n { font: 900 24px "Orbitron", sans-serif; }
.pd-coin-n .o { -webkit-text-stroke-width: .2em; text-shadow: none; }
.pd-coin-n .f { background: linear-gradient(180deg, #fff 0%, #ffe680 50%, #ffb000 60%, #fff0b0 100%); -webkit-background-clip: text; background-clip: text; }
.pd-sign-coin small { font: 900 15px "M PLUS Rounded 1c", sans-serif; color: #3a1600; }
/* 一番の売り：カード80枚 */
.pd-sign-main { display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(30, 3, 10, .55), rgba(30, 3, 10, .15)); box-shadow: inset 0 0 0 1px rgba(255, 220, 140, .35); }
.pd-sign-main .pd-ic { width: 70px; height: 70px; margin: -6px 0 -6px -4px; }
.pd-sign-maintx { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.pd-sign-cards { font: 900 34px "M PLUS Rounded 1c", sans-serif; letter-spacing: 1px; }
.pd-sign-maintx small { font: 900 15px/1.3 "M PLUS Rounded 1c", sans-serif; color: #fff1c4; text-shadow: 0 1px 0 #3a0010, 0 0 6px rgba(0, 0, 0, .7); padding-left: 4px; }
/* 半荘戦・リプレイ・ルール自由：黒漆の小札にメダル */
.pd-sign-subs { display: flex; gap: 5px; }
.pd-sign-sub { flex: 1; display: inline-flex; align-items: center; gap: 0; padding: 1px 6px 1px 0; border-radius: 999px; border: 1.5px solid #e8b84a;
  background: linear-gradient(180deg, #4a1022, #1e030a); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .35), 0 2px 3px rgba(0, 0, 0, .5); }
.pd-sign-sub .pd-ic { width: 34px; height: 34px; margin: -5px 0 -5px -4px; }
.pd-sign-subt { font: 900 15px "M PLUS Rounded 1c", sans-serif; }
.pd-sign-subt .o { -webkit-text-stroke-width: .22em; text-shadow: none; }
/* 1人持ってれば、みんなで遊べる！：金の板に朱の字 */
.pd-sign-host { display: flex; flex-direction: column; align-items: center; padding: 4px 8px 5px; border-radius: 10px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 46%), linear-gradient(180deg, #fff3c0 0%, #f2c24a 40%, #b7781a 52%, #e8b040 78%, #fff0b0 100%);
  box-shadow: 0 0 0 1.5px #6a3a00, inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 4px rgba(0, 0, 0, .45); }
.pd-sign-host > b { color: #8a0018; font: 900 21px/1.25 "M PLUS Rounded 1c", sans-serif; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.pd-sign-hostsm { color: #4a1a00; font: 800 13px/1.35 "M PLUS Rounded 1c", sans-serif; }
/* ---- 看板の中で一番目立つ押す所：「製品版を開放 980円」 */
.pd-sign-head { display: none; }
.pd-sign-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px -4px 2px; padding: 9px 12px 10px 16px;
  border: 5px solid transparent; border-radius: 16px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 210, 150, .45), transparent 60%) padding-box,
    linear-gradient(180deg, #7a1226 0%, #3e0714 55%, #1e030a 100%) padding-box,
    linear-gradient(180deg, #fffbe0 0%, #ffd860 22%, #8e5208 48%, #fff4a8 70%, #c08018 88%, #6a3a00 100%) border-box;
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 180, .8), inset 0 -8px 12px rgba(0, 0, 0, .55), inset 0 3px 6px rgba(255, 220, 170, .3),
    0 5px 0 #7a4a0c, 0 7px 0 #2e1602, 0 10px 16px rgba(0, 0, 0, .55); }
.pd-cta-gloss { position: absolute; inset: 0; border-radius: 11px; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .06) 42%, rgba(255, 255, 255, 0) 48%); }
.pd-cta-gloss .hb-shine { animation-duration: 3.6s; }
/* 脈打つ光：後ろのにじみの濃さだけを変える（合成だけで動くので軽い） */
.pd-cta-pulse { position: absolute; inset: -18px -16px; border-radius: 30px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 220, 110, .95), rgba(255, 170, 60, .45) 55%, transparent 100%);
  opacity: .35; animation: pdPulse 1.6s ease-in-out infinite; will-change: opacity; }
@keyframes pdPulse { 0%, 100% { opacity: .3; } 50% { opacity: .95; } }
.pd-sign-cta > .pd-mt, .pd-sign-cta > .pd-sign-coin { position: relative; z-index: 1; }
.pd-sign-cta .pd-sign-title { font-size: 31px; letter-spacing: 3px; }
.pd-sign-cta .pd-sign-title .o { -webkit-text-stroke-width: .27em; }
.pd-sign .pd-mt .f { background: linear-gradient(180deg, #ffffff 0%, #fff3b0 30%, #ffd040 50%, #e8920c 60%, #ffcf50 78%, #fff6c8 96%); -webkit-background-clip: text; background-clip: text; }
.pd-sign.is-pressed .pd-sign-cta, .pd-sign:active .pd-sign-cta { box-shadow: inset 0 0 0 1.5px rgba(255, 246, 200, .95), inset 0 -4px 8px rgba(0, 0, 0, .55),
    0 1px 0 #7a4a0c, 0 2px 0 #2e1602, 0 0 30px rgba(255, 220, 120, .95); transform: translateY(4px); }
/* 体験版の札：同じ質感（厚い金の縁・黒漆・金属の字） */
.pd-sign-trial { left: -10px; top: -20px; padding: 3px 14px 4px; border: 3px solid transparent; border-radius: 999px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 210, 150, .35), transparent 60%) padding-box,
    linear-gradient(180deg, #4a1022, #1e030a) padding-box,
    linear-gradient(180deg, #fffbe0, #f4c64e 30%, #8e5208 55%, #ffe68c 80%, #a86c10) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, .5), 0 3px 0 #5a3008, 0 5px 8px rgba(0, 0, 0, .6), 0 0 10px rgba(255, 200, 90, .45); }
.pd-trial-t { font: 900 16px "Shippori Mincho B1", serif; letter-spacing: 4px; }
.pd-trial-t .o { -webkit-text-stroke-width: .24em; text-shadow: none; }
.pd-sign-board { padding-top: 16px; }
/* カードの扇：看板の右の外に覗かせる（題字の下の字と重ならないように） */
.pd-sign-fan { right: -86px; top: 34px; width: 110px; height: 120px; }
.pd-sign-fan img { width: 50px; height: 70px; margin-left: -25px; bottom: 0; transform-origin: 50% 160%; transform: rotate(calc(var(--k) * 15deg + 8deg)); }
@media (prefers-reduced-motion: reduce) { .pd-cta-pulse { animation: none; opacity: .6; } }
body.lite .pd-cta-pulse { animation: none; opacity: .6; }

/* ================= 製品版の札を、ホームの下の列の左端へ（ボタン2つ分の幅。2026-11-17 作者の指示）=================
   下の列：[製品版の札][遊び方][カード図鑑][しもべ][設定][対局の記録][ご意見][クレジット] ＋ 右に対局の紋章。
   札が入る時だけ、ほかの札を少し細くして収める（有料開放が切の時は、下の列は今のまま）。
   大事な順：対局（金の丸）＞ 製品版・遊び方・図鑑（朱塗り・大きめ）＞ その他（黒漆） */
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) { gap: 6px; max-width: 980px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn { width: 92px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn.main { width: 108px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn span.hb-t { font-size: 16px; letter-spacing: 0; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn.main span.hb-t { font-size: 19px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn .hb-ic { width: 64px; height: 64px; margin-left: -32px; top: -24px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn.main .hb-ic { width: 82px; height: 82px; margin-left: -41px; top: -32px; }
/* 部屋へ戻るボタンもある時（札が9つ）：もう少し細くする */
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .hb-btn { width: 86px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .hb-btn.main { width: 100px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .pd-bar-sign { width: 210px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .hb-btn span.hb-t { font-size: 15px; }

/* 札：幅はボタン2つ分、下を下の札とそろえ、上に少し高く（覗くカードと合わせて目立たせる） */
.pd-sign.pd-bar-sign { flex: none; width: 240px; height: 150px; margin-right: 2px; align-self: flex-end; }
.pd-bar-sign .pd-sign-board { height: 100%; box-sizing: border-box; gap: 5px; padding: 8px 9px 8px; justify-content: space-between; }
.pd-bar-sign .pd-sign-cta { margin: 0; padding: 6px 7px 7px 10px; border-width: 4px; border-radius: 14px; }
.pd-bar-sign .pd-sign-title { font-size: 23px; letter-spacing: 1px; }
.pd-bar-sign .pd-sign-coin { padding: 2px 7px 3px; }
.pd-bar-sign .pd-coin-n { font-size: 19px; }
.pd-bar-sign .pd-sign-coin small { font-size: 13px; }
.pd-bar-sign .pd-sign-main { padding: 0 6px 0 0; gap: 2px; border-radius: 10px; }
.pd-bar-sign .pd-sign-main .pd-ic { width: 40px; height: 40px; margin: -4px 0 -4px -2px; }
.pd-bar-sign .pd-sign-maintx { flex-direction: row; align-items: baseline; gap: 1px; }
.pd-bar-sign .pd-sign-cards { font-size: 22px; letter-spacing: 0; }
.pd-bar-sign .pd-sign-maintx small { font-size: 14px; padding-left: 1px; }
.pd-bar-sign .pd-sign-host { padding: 2px 6px 3px; border-radius: 8px; }
.pd-bar-sign .pd-sign-hostbig { color: #8a0018; font: 900 15px/1.25 "M PLUS Rounded 1c", sans-serif; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
/* 覗くカード：札の上の縁から3枚 */
.pd-bar-sign .pd-sign-fan { left: 50%; right: auto; top: -30px; width: 0; height: 0; }
.pd-bar-sign .pd-sign-fan img { width: 38px; height: 53px; margin-left: -19px; bottom: auto; top: 0; transform-origin: 50% 170%; transform: rotate(calc(var(--k) * 16deg)); }
.pd-bar-sign .pd-sign-fan img:nth-child(2) { z-index: 1; }
/* 押した時：札全体が沈む */
.pd-bar-sign.is-pressed .pd-sign-board, .pd-bar-sign:active .pd-sign-board { filter: brightness(1.08); }

/* 体験版の札（題字の下の今の位置）：有料開放を出す時は、札と同じ黒漆・厚い金の縁・金属の字の質感に */
.stage.home:has(.pd-bar-sign) .home-trial { padding: 3px 16px 4px; border: 3px solid transparent; letter-spacing: 4px; color: #fff0b0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 210, 150, .35), transparent 60%) padding-box,
    linear-gradient(180deg, #4a1022, #1e030a) padding-box,
    linear-gradient(180deg, #fffbe0, #f4c64e 30%, #8e5208 55%, #ffe68c 80%, #a86c10) border-box;
  text-shadow: -1px -1px 0 #1a0206, 1px -1px 0 #1a0206, -1px 1px 0 #1a0206, 1px 1px 0 #1a0206, 0 3px 0 #000;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, .5), 0 3px 0 #5a3008, 0 5px 8px rgba(0, 0, 0, .6), 0 0 12px rgba(255, 200, 90, .5); }
/* 札の中の字が縁からはみ出さないように詰める */
.pd-sign.pd-bar-sign { width: 250px; }
.pd-bar-sign .pd-sign-cta { padding: 5px 5px 6px 8px; gap: 4px; }
.pd-bar-sign .pd-sign-title { font-size: 21px; letter-spacing: 0; }
.pd-bar-sign .pd-sign-coin { padding: 1px 6px 2px; flex: none; }
.pd-bar-sign .pd-coin-n { font-size: 17px; }
.pd-bar-sign .pd-sign-coin small { font-size: 12px; }
.pd-bar-sign .pd-sign-cards { font-size: 20px; }
.pd-bar-sign .pd-sign-maintx small { font-size: 13px; }
.pd-bar-sign .pd-sign-main .pd-ic { width: 36px; height: 36px; }
.pd-bar-sign .pd-sign-hostbig { font-size: 16px; }
.pd-bar-sign .pd-sign-main { justify-content: center; padding: 0 4px; }
.pd-bar-sign .pd-sign-main .pd-ic { width: 30px; height: 30px; margin: -3px 1px -3px 0; }
.pd-bar-sign .pd-sign-cards { font-size: 19px; }
.pd-bar-sign .pd-sign-maintx small { font-size: 12.5px; }

/* クレジットを設定へ移したので（2026-11-17）、空いた分だけ札を広げて押しやすく戻す */
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn { width: 112px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn.main { width: 120px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn span.hb-t { font-size: 18px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn.main span.hb-t { font-size: 20px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn .hb-ic { width: 70px; height: 70px; margin-left: -35px; top: -26px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign) .hb-btn.main .hb-ic { width: 86px; height: 86px; margin-left: -43px; top: -34px; }
/* 部屋へ戻るボタンもある時（札が8つ）：その他は幅96（スマホ横667で約50px） */
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .hb-btn { width: 96px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .hb-btn.main { width: 112px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .pd-bar-sign { width: 230px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .hb-btn span.hb-t { font-size: 16px; }
.home-bar.home-bar:has(> .pd-bar-sign.pd-bar-sign):has(> .hb-back) .hb-btn .hb-ic { width: 64px; height: 64px; margin-left: -32px; top: -24px; }

/* ================= 下の列の製品版の札（見やすく作り直し。.pd-bs）=================
   2段だけ：1段目「製品版を開放」＋980円の小判、2段目は1つの言葉を約3秒ごとに切り替える。
   字の後ろは暗い漆。字の大きさは、スマホ横 667×375（倍率 約0.52）で 1段目 20px・2段目 12px 以上になるようにしてある。
   上に鍵付きだったカード3枚の扇（切れずに見える・押せる）。対局の次に目立つ（少し大きく・脈打つ光） */
.home-bar.home-bar:has(> .pd-bs.pd-bs) { gap: 6px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs) .hb-btn { width: 102px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs) .hb-btn.main { width: 110px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs) .hb-btn span.hb-t { font-size: 17px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs) .hb-btn.main span.hb-t { font-size: 19px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs) .hb-btn .hb-ic { width: 66px; height: 66px; margin-left: -33px; top: -25px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs) .hb-btn.main .hb-ic { width: 80px; height: 80px; margin-left: -40px; top: -31px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs):has(> .hb-back) .hb-btn { width: 96px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs):has(> .hb-back) .hb-btn.main { width: 106px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs):has(> .hb-back) .hb-btn span.hb-t { font-size: 16px; }
.home-bar.home-bar:has(> .pd-bs.pd-bs):has(> .hb-back) .hb-btn .hb-ic { width: 62px; height: 62px; margin-left: -31px; top: -23px; }

.pd-sign.pd-bs { width: 312px; height: 176px; margin-right: 2px; }
.home-bar:has(> .hb-back) .pd-sign.pd-bs { width: 244px; }
/* カードの扇：札の上に乗る（押せる） */
.pd-bs-fan { position: absolute; left: 0; right: 0; top: 0; height: 74px; z-index: 2; pointer-events: auto; }
.pd-bs-fan img { position: absolute; left: 50%; top: 4px; width: 50px; height: 70px; margin-left: -25px; object-fit: cover; border-radius: 5px;
  border: 2px solid #ffe58a; box-shadow: 0 0 10px rgba(255, 210, 120, .75), 0 3px 6px rgba(0, 0, 0, .6);
  transform: translateX(calc(var(--k) * 46px)) translateY(calc(var(--k) * var(--k) * 6px)) rotate(calc(var(--k) * 12deg)); }
.pd-bs-fan img:nth-child(2) { z-index: 1; transform: translateY(-4px) scale(1.08); }
/* 額：下の札と同じ朱塗り・厚い金の縁 */
.pd-bs-board { position: absolute; left: 0; right: 0; bottom: 0; height: 112px; z-index: 1; display: flex; flex-direction: column; gap: 5px;
  padding: 7px 8px 8px; box-sizing: border-box; border: 4px solid transparent; border-radius: 18px;
  background:
    radial-gradient(110% 60% at 50% 0%, rgba(255, 230, 160, .35), transparent 62%) padding-box,
    linear-gradient(180deg, #d42c42 0%, #94102a 52%, #58071a 100%) padding-box,
    linear-gradient(180deg, #fffbe0 0%, #f6cc58 24%, #8e5208 50%, #fff0a0 74%, #b07414 100%) border-box;
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 180, .7), inset 0 -8px 12px rgba(40, 0, 10, .5),
    0 6px 0 #7a4a0c, 0 8px 0 #2e1602, 0 14px 20px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 200, 90, .7); }
.pd-bs-board .hb-gloss { border-radius: 14px; }
.pd-bs-board > *:not(.hb-gloss) { position: relative; z-index: 1; }
/* 1段目：暗い漆の上に金属の字と小判 */
.pd-bs-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 52px; padding: 0 6px 0 10px; border-radius: 12px;
  background: linear-gradient(180deg, #3a0612, #14020a); box-shadow: inset 0 0 0 1.5px rgba(255, 220, 140, .55), inset 0 2px 0 rgba(255, 220, 170, .2); }
.pd-bs-top .pd-cta-pulse { inset: -10px -8px; border-radius: 22px; }
.pd-bs-title { position: relative; display: flex; align-items: baseline; gap: 1px; white-space: nowrap; }
.pd-bs-big { font: 900 42px "Shippori Mincho B1", serif; letter-spacing: 1px; }
.pd-bs-small { font: 900 24px "Shippori Mincho B1", serif; }
.pd-bs .pd-mt .o { -webkit-text-stroke: .24em #1a0206; }
.pd-bs-coin { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 9px 4px; border-radius: 50% / 46%;
  background: radial-gradient(ellipse at 40% 30%, #fffbe0, #f4c64e 45%, #a86c10 80%); border: 2px solid #6a3a00;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 #5a2a00, 0 0 12px rgba(255, 210, 90, .7); }
.pd-bs-yen { font: 900 24px "Orbitron", sans-serif; }
.pd-bs-yen .o { -webkit-text-stroke-width: .2em !important; text-shadow: none; }
.pd-bs-coin small { font: 900 16px "M PLUS Rounded 1c", sans-serif; color: #3a1600; }
/* 2段目：暗い漆の帯に白い字。2つの言葉を重ねて置き、切り替える */
.pd-bs-ticker { position: relative; display: grid; height: 36px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #24040e, #0e0206); box-shadow: inset 0 0 0 1.5px rgba(255, 220, 140, .45); }
.pd-bs-line { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  font: 900 24px/1 "M PLUS Rounded 1c", sans-serif; letter-spacing: -.5px; font-feature-settings: "palt"; color: #fff;
  text-shadow: 0 0 6px rgba(255, 200, 90, .9), 0 2px 0 #000; }
.pd-bs-line b { font: inherit; }
.pd-bs-line .short { display: none; }
.home-bar:has(> .hb-back) .pd-bs-line .long { display: none; }
.home-bar:has(> .hb-back) .pd-bs-line .short { display: inline; }
.pd-bs-line.l0 { color: #fff3b0; animation: pdTick0 6s ease-in-out infinite; }
.pd-bs-line.l1 { animation: pdTick1 6s ease-in-out infinite; }
@keyframes pdTick0 { 0%, 44% { opacity: 1; transform: none; } 50%, 94% { opacity: 0; transform: translateY(-60%); } 100% { opacity: 1; transform: none; } }
@keyframes pdTick1 { 0%, 44% { opacity: 0; transform: translateY(60%); } 50%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-60%); } }
.pd-bs-flash { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 240, 190, .8) 50%, transparent 70%);
  transform: translateX(-110%); animation: pdTickFlash 3s ease-in-out infinite; }
@keyframes pdTickFlash { 0%, 80% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.pd-bs.is-pressed .pd-bs-board, .pd-bs:active .pd-bs-board { filter: brightness(1.1); }
/* 軽量モード・動きを減らす設定：切り替えを止めて「カード80枚が全部使える！」だけ */
body.lite .pd-bs-line, body.lite .pd-bs-flash { animation: none; }
body.lite .pd-bs-line.l1, body.lite .pd-bs-flash { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pd-bs-line, .pd-bs-flash { animation: none; }
  .pd-bs-line.l1, .pd-bs-flash { display: none; }
}
/* 字が縁からはみ出さないように（スマホ横667でも1段目は約20px・2段目は12px以上） */
.pd-bs-top { padding: 0 5px 0 8px; gap: 2px; }
.pd-bs-big { font-size: 38px; letter-spacing: 0; }
.pd-bs-small { font-size: 21px; }
.pd-bs-coin { padding: 2px 7px 3px; }
.pd-bs-yen { font-size: 21px; }
.pd-bs-coin small { font-size: 14px; }
.pd-bs-line { font-size: 23.5px; letter-spacing: -1px; }
.home-bar:has(> .hb-back) .pd-bs-small { display: none; }

/* ================= 下の列の製品版の札：色を見やすく（.pd-bs2。2026-11-17）=================
   3段とも「暗い地に明るい字＋黒い太ぶち」。金は額の縁と段の細い縁だけ（字の後ろに金を置かない）。
   段ごとに地の色を変える：1段目 黒漆、2段目 濃い紺、3段目 濃い紅。値段は右上の角の赤い丸い値札 */
.pd-sign.pd-bs2 { height: auto; align-self: flex-end; padding-top: 58px; }
.pd-bs2 .pd-bs-fan { top: 0; height: 74px; }
.pd-b2-board { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 6px 7px 7px; border: 4px solid transparent; border-radius: 16px;
  background: linear-gradient(180deg, #2a0810, #12030a) padding-box,
    linear-gradient(180deg, #fffbe0 0%, #f6cc58 24%, #8e5208 50%, #fff0a0 74%, #b07414 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 180, .5), 0 6px 0 #7a4a0c, 0 8px 0 #2e1602, 0 14px 20px rgba(0, 0, 0, .6), 0 0 28px rgba(255, 200, 90, .65); }
.pd-b2-board .hb-gloss { border-radius: 12px; opacity: .55; }
.pd-b2-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; padding: 3px 6px 4px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .55), inset 0 2px 0 rgba(255, 255, 255, .08); }
.pd-b2-row.r1 { background: linear-gradient(180deg, #1e1e24, #050507); padding: 4px 6px 5px; }
.pd-b2-row.r2 { background: linear-gradient(180deg, #14245a, #070d2a); }
.pd-b2-row.r3 { background: linear-gradient(180deg, #5a0a1e, #24020a); }
.pd-b2-row .pd-cta-pulse { inset: -6px -6px; border-radius: 16px; opacity: .25; }
/* 字：黒い太ぶち＋明るい字。狭い時は言葉の区切りでだけ折り返す */
.pd-b2-t { position: relative; display: flex; flex-wrap: wrap; justify-content: center; text-align: center; line-height: 1.12; }
.pd-b2-w { display: inline-grid; white-space: nowrap; }
.pd-b2-w b { grid-area: 1 / 1; font: inherit; }
.pd-b2-w .o { color: #000; -webkit-text-stroke: .24em #000; }
.pd-b2-t.t1 { font: 900 34px "Shippori Mincho B1", serif; letter-spacing: 1px; }
.pd-b2-t.t1 .f { color: transparent; background: linear-gradient(180deg, #ffffff 0%, #fffbe6 40%, #ffe27a 62%, #fff6c8 100%); -webkit-background-clip: text; background-clip: text; }
.pd-b2-t.t2 { font: 900 23.5px "M PLUS Rounded 1c", sans-serif; letter-spacing: -.5px; font-feature-settings: "palt"; }
.pd-b2-t.t2 .f { color: #fff3a0; }
.pd-b2-t.t3 { font: 900 23.5px "M PLUS Rounded 1c", sans-serif; letter-spacing: -.5px; font-feature-settings: "palt"; }
.pd-b2-t.t3 .f { color: #ffffff; }
.pd-b2-t.t2 .o, .pd-b2-t.t3 .o { -webkit-text-stroke-width: .22em; }
/* 値段：赤い丸い値札に白い太い字。右上の角に少しはみ出す */
.pd-b2-price { position: absolute; right: -14px; top: 30px; z-index: 3; width: 74px; height: 74px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; transform: rotate(10deg);
  background: radial-gradient(circle at 38% 30%, #ff8a8a 0%, #ec1c2e 45%, #8a0010 100%);
  border: 4px solid #fff; box-shadow: 0 0 0 3px #8a0010, 0 4px 8px rgba(0, 0, 0, .6), 0 0 18px rgba(255, 60, 60, .7); }
.pd-b2-price b { color: #fff; font: 900 28px/1 "Orbitron", "M PLUS Rounded 1c", sans-serif; letter-spacing: -1px;
  text-shadow: -2px -2px 0 #5a0008, 2px -2px 0 #5a0008, -2px 2px 0 #5a0008, 2px 2px 0 #5a0008, 0 3px 0 #3a0004; }
.pd-b2-price small { color: #fff; font: 900 17px/1 "M PLUS Rounded 1c", sans-serif; margin-top: 1px;
  text-shadow: -1.5px -1.5px 0 #5a0008, 1.5px -1.5px 0 #5a0008, -1.5px 1.5px 0 #5a0008, 1.5px 1.5px 0 #5a0008; }
/* 1段目は値札とぶつからないよう、右を空ける */
.pd-b2-row.r1 { padding-right: 58px; justify-content: flex-start; padding-left: 10px; }
.pd-bs2.is-pressed .pd-b2-board, .pd-bs2:active .pd-b2-board { filter: brightness(1.12); }
/* 値札：数字を折り返さない横長の丸。札の右上の角の上に乗せ、1段目の字とぶつからないようにする */
.pd-b2-price { width: 92px; height: 66px; border-radius: 50%; top: 4px; right: -16px; }
.pd-b2-price b { white-space: nowrap; font-size: 30px; }
.pd-b2-row.r1 { padding-right: 26px; padding-left: 8px; }
.home-bar:has(> .hb-back) .pd-b2-t.t1 { font-size: 30px; letter-spacing: 0; }
.home-bar:has(> .hb-back) .pd-b2-row.r1 { padding-right: 8px; padding-left: 6px; justify-content: center; }
.home-bar:has(> .hb-back) .pd-b2-price { width: 84px; height: 60px; right: -12px; top: 8px; }
.home-bar:has(> .hb-back) .pd-b2-price b { font-size: 26px; }
.pd-b2-price small { font-size: 21px; margin-top: 0; } .pd-b2-price { height: 70px; }

/* ================= 製品版の札：見た目の3案（.pd-vA / .pd-vB / .pd-vC。作者に選んでもらう）=================
   どれも土台は banner2 と同じ質感（漆・厚い金の縁・艶・走る光・脈打つ光）。字は暗い地に明るい字＋黒の太ぶち */
/* 共通：段の箱をやめて、札そのものの塗りの上に字を置く。段の区切りは細い金の線 */
.pd-bs2[class*="pd-v"] .pd-b2-row { background: none; box-shadow: none; border-radius: 0; padding: 2px 6px 3px; }
.pd-bs2[class*="pd-v"] .pd-b2-row.r2, .pd-bs2[class*="pd-v"] .pd-b2-row.r3 { border-top: 1.5px solid rgba(255, 214, 120, .45); }
.pd-bs2[class*="pd-v"] .pd-b2-board .hb-gloss { opacity: 1; }
/* 金属の金の字（1段目）：黒の太ぶち＋白から金のグラデ */
.pd-bs2[class*="pd-v"] .pd-b2-t.t1 .f { background: linear-gradient(180deg, #ffffff 0%, #fff3b0 30%, #ffd040 52%, #e8920c 62%, #ffcf50 80%, #fff6c8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-bs2[class*="pd-v"] .pd-b2-t.t1 .o { -webkit-text-stroke-width: .26em; text-shadow: 0 3px 0 #000; }
.pd-bs2[class*="pd-v"] .pd-b2-t.t2 .f, .pd-bs2[class*="pd-v"] .pd-b2-t.t3 .f { color: #fff; }
.pd-bs2[class*="pd-v"] .pd-b2-t.t2 .o, .pd-bs2[class*="pd-v"] .pd-b2-t.t3 .o { -webkit-text-stroke-width: .26em; text-shadow: 0 2px 0 #000; }

/* ---- 案A：パチンコの役物ふう。黒漆に厚い金の縁。値段は右に一体化した、赤い漆に金の縁の小判 */
.pd-bs2.pd-vA .pd-b2-board { padding-right: 70px;
  background: radial-gradient(120% 60% at 30% 0%, rgba(255, 200, 120, .22), transparent 60%) padding-box,
    linear-gradient(180deg, #2a1418 0%, #0e0608 55%, #050203 100%) padding-box,
    linear-gradient(180deg, #fffbe0 0%, #f6cc58 22%, #8e5208 48%, #fff0a0 72%, #b07414 100%) border-box; }
.pd-bs2.pd-vA .pd-b2-t.t2 .f { color: #fff1b8; }
.pd-bs2.pd-vA .pd-b2-row.r1 { padding-right: 6px; justify-content: center; }
.pd-bs2.pd-vA .pd-b2-price { top: auto; bottom: 18px; right: -10px; width: 76px; height: 104px; border-radius: 40px / 54px; transform: none;
  border: 4px solid transparent;
  background: radial-gradient(circle at 40% 28%, rgba(255, 160, 150, .7), transparent 45%) padding-box,
    linear-gradient(180deg, #e8203a 0%, #a8001a 55%, #5a0010 100%) padding-box,
    linear-gradient(180deg, #fffbe0, #f6cc58 28%, #8e5208 55%, #ffe68c 80%, #a86c10) border-box;
  box-shadow: inset 0 2px 0 rgba(255, 220, 200, .55), 0 3px 0 #5a2a00, 0 0 22px rgba(255, 60, 60, .8); animation: pdPriceGlow 1.6s ease-in-out infinite; }
.pd-bs2.pd-vA .pd-b2-price b { font-size: 28px; text-shadow: -2px -2px 0 #3a0006, 2px -2px 0 #3a0006, -2px 2px 0 #3a0006, 2px 2px 0 #3a0006, 0 0 10px rgba(255, 255, 200, .9); }
.pd-bs2.pd-vA .pd-b2-price small { font-size: 22px; }
@keyframes pdPriceGlow { 0%, 100% { box-shadow: inset 0 2px 0 rgba(255, 220, 200, .55), 0 3px 0 #5a2a00, 0 0 12px rgba(255, 60, 60, .55); }
  50% { box-shadow: inset 0 2px 0 rgba(255, 220, 200, .55), 0 3px 0 #5a2a00, 0 0 26px rgba(255, 80, 80, 1); } }
.home-bar:has(> .hb-back) .pd-bs2.pd-vA .pd-b2-board { padding-right: 58px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vA .pd-b2-price { width: 64px; height: 92px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vA .pd-b2-price b { font-size: 23px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vA .pd-b2-t.t1 { font-size: 26px; }

/* ---- 案B：朱の漆の札（遊び方・図鑑と同じ朱）。1段目は黒い帯に金の字、2・3段目は朱の上に白い太字。
   値段は上の縁に乗る、紫の宝石の丸い値札に金の数字 */
.pd-bs2.pd-vB .pd-b2-board {
  background: radial-gradient(110% 60% at 50% 0%, rgba(255, 230, 160, .40), transparent 62%) padding-box,
    radial-gradient(90% 60% at 50% 100%, rgba(255, 120, 80, .30), transparent 70%) padding-box,
    linear-gradient(180deg, #d42c42 0%, #94102a 52%, #58071a 100%) padding-box,
    linear-gradient(180deg, #fffbe0 0%, #f6cc58 24%, #8e5208 50%, #fff0a0 74%, #b07414 100%) border-box; }
.pd-bs2.pd-vB .pd-b2-row.r1 { margin: 0 -2px; padding: 5px 8px 6px; border-radius: 10px; justify-content: center;
  background: linear-gradient(180deg, #2a0a10, #0a0204); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .6), 0 2px 4px rgba(0, 0, 0, .5); }
.pd-bs2.pd-vB .pd-b2-row.r2 { border-top: 0; }
.pd-bs2.pd-vB .pd-b2-price { top: 2px; right: 12px; width: 84px; height: 84px; border-radius: 50%; transform: none; border: 4px solid transparent;
  background: radial-gradient(circle at 36% 26%, rgba(255, 255, 255, .85) 0 8%, transparent 26%) padding-box,
    radial-gradient(circle at 50% 60%, #b06cff 0%, #6a1ad8 45%, #2a0670 100%) padding-box,
    linear-gradient(180deg, #fffbe0, #f6cc58 28%, #8e5208 55%, #ffe68c 80%, #a86c10) border-box;
  box-shadow: 0 3px 0 #5a2a00, 0 0 20px rgba(170, 100, 255, .9); }
.pd-bs2.pd-vB .pd-b2-price b { font-size: 29px; color: #ffe27a; text-shadow: -2px -2px 0 #1a0040, 2px -2px 0 #1a0040, -2px 2px 0 #1a0040, 2px 2px 0 #1a0040, 0 0 8px rgba(255, 230, 140, .9); }
.pd-bs2.pd-vB .pd-b2-price small { font-size: 21px; color: #ffe68c; text-shadow: -1.5px -1.5px 0 #1a0040, 1.5px -1.5px 0 #1a0040, -1.5px 1.5px 0 #1a0040, 1.5px 1.5px 0 #1a0040; }
.pd-bs2.pd-vB .pd-bs-fan { left: -70px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vB .pd-b2-t.t1 { font-size: 30px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vB .pd-b2-price { width: 72px; height: 72px; right: 4px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vB .pd-b2-price b { font-size: 24px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vB .pd-bs-fan { left: -50px; }

/* ---- 案C：金の額に藍の夜漆（金の粒）。3段目は札を横切る紅の襷（たすき）に白い字。
   値段はパチンコの「確変」ふう、黄の斜めの縞の帯に赤い数字 */
.pd-bs2.pd-vC .pd-b2-board { border-width: 5px;
  background: radial-gradient(circle at 20% 30%, rgba(255, 220, 120, .55) 0 1px, transparent 1.6px) 0 0 / 18px 16px padding-box,
    radial-gradient(circle at 70% 70%, rgba(255, 220, 120, .4) 0 1px, transparent 1.6px) 0 0 / 23px 19px padding-box,
    radial-gradient(120% 70% at 50% 0%, rgba(120, 160, 255, .35), transparent 60%) padding-box,
    linear-gradient(180deg, #1a2a6a 0%, #0a1238 55%, #04081a 100%) padding-box,
    linear-gradient(180deg, #fffbe0 0%, #f6cc58 22%, #8e5208 48%, #fff0a0 72%, #b07414 100%) border-box; }
.pd-bs2.pd-vC .pd-b2-row.r1 { justify-content: center; padding-right: 6px; }
.pd-bs2.pd-vC .pd-b2-row.r2 { border-top: 0; }
.pd-bs2.pd-vC .pd-b2-t.t2 .f { color: #ffe9a0; }
.pd-bs2.pd-vC .pd-b2-row.r3 { margin: 2px -11px 0; padding: 4px 10px 5px; border-top: 0; border-radius: 4px;
  background: linear-gradient(180deg, #e8203a 0%, #a8001a 60%, #6a0012 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 200, 200, .6), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 0 0 2px #fff4d0, 0 3px 6px rgba(0, 0, 0, .55); }
.pd-bs2.pd-vC .pd-b2-price { top: 18px; right: -18px; width: 104px; height: 40px; border-radius: 6px; transform: rotate(-8deg); border: 3px solid #1a0204;
  background: repeating-linear-gradient(-45deg, #ffe600 0 9px, #ffb800 9px 18px);
  box-shadow: 0 0 0 2px #fff, 0 4px 8px rgba(0, 0, 0, .6), 0 0 18px rgba(255, 220, 0, .85); flex-direction: row; gap: 1px; align-items: baseline; padding-top: 2px; }
.pd-bs2.pd-vC .pd-b2-price b { font-size: 28px; color: #e8001e; text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 3px 0 #3a0004; }
.pd-bs2.pd-vC .pd-b2-price small { font-size: 19px; color: #e8001e; text-shadow: -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px 1.5px 0 #fff; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-price { width: 90px; right: -12px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-price b { font-size: 24px; }
@media (prefers-reduced-motion: reduce) { .pd-bs2.pd-vA .pd-b2-price { animation: none; } }
body.lite .pd-bs2.pd-vA .pd-b2-price { animation: none; }

/* ================= 1段目「製品版を開放」と「体験版」：明朝＋金のグラデをやめ、ホームの下の札と同じ太いゴシックに（2026-11-17）=================
   字は明るい黄色の単色、外側に黒の太いふち、その外に薄い影を1つだけ。字の後ろの地は暗いまま */
.pd-bs2[class*="pd-v"] .pd-b2-t.t1 { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; letter-spacing: 0; }
.pd-bs2[class*="pd-v"] .pd-b2-t.t1 .f { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff36a; }
.pd-bs2[class*="pd-v"] .pd-b2-t.t1 .o { color: #1a0206; -webkit-text-stroke: .24em #1a0206; text-shadow: 0 3px 4px rgba(0, 0, 0, .55); }
/* 体験版の札（題字の下）：同じく太いゴシックの明るい黄色に黒の太いふち */
.stage.home:has(.pd-bar-sign) .home-trial { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; letter-spacing: 2px; color: #fff36a;
  text-shadow: -2px -2px 0 #1a0206, 2px -2px 0 #1a0206, -2px 2px 0 #1a0206, 2px 2px 0 #1a0206, 0 -2px 0 #1a0206, 0 2px 0 #1a0206, -2px 0 0 #1a0206, 2px 0 0 #1a0206, 0 4px 4px rgba(0, 0, 0, .5); }

/* ================= 案C の仕上げ（作者が選んだ案。2026-11-17）=================
   額は Gemini で描いた金の額の絵（/static/_v/3db794ab65/paid/sign_frame.webp を border-image で伸ばす）＋上の真ん中に鳳凰（sign_phoenix.webp）。
   中は藍の夜漆に金箔の散らし（ゆっくりきらめく）・ときどき斜めに走る光。紅の襷は金の縁と房。値札は金の縁で、ときどき光る。
   後ろにうっすら金の後光、上のカードも光らせる。動きは transform と opacity だけ。軽量モード・動きを減らす設定では止める */
.pd-bs2.pd-vC .pd-b2-board { border-style: solid; border-width: 21px 23px 23px; border-radius: 12px; padding: 1px 2px 2px; gap: 3px;
  border-image: url("/static/_v/3db794ab65/paid/sign_frame.webp") 150 165 165 165 / 21px 23px 23px 23px stretch;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(120, 160, 255, .38), transparent 60%),
    linear-gradient(180deg, #1c2c70 0%, #0a1238 55%, #04081a 100%);
  background-clip: padding-box; background-origin: padding-box;
  box-shadow: 0 8px 0 rgba(40, 20, 0, .55), 0 14px 22px rgba(0, 0, 0, .6); }
.pd-bs2.pd-vC .pd-b2-board .hb-gloss { inset: 0; border-radius: 6px; }
/* 金箔の散らし：大小2つの層をずらして、ゆっくり明滅させる */
.pd-bs2.pd-vC .pd-b2-board::before, .pd-bs2.pd-vC .pd-b2-board::after { content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; z-index: 0; }
.pd-bs2.pd-vC .pd-b2-board::before {
  background: radial-gradient(circle, rgba(255, 228, 140, .95) 0 1.2px, transparent 1.8px) 0 0 / 17px 15px,
    radial-gradient(circle, rgba(255, 210, 110, .7) 0 2.2px, transparent 3px) 7px 9px / 41px 33px,
    radial-gradient(ellipse 3px 1.5px, rgba(255, 236, 170, .9), transparent) 23px 4px / 29px 23px;
  opacity: .55; animation: pdGoldTw 3.4s ease-in-out infinite; }
.pd-bs2.pd-vC .pd-b2-board::after {
  background: radial-gradient(circle, rgba(255, 245, 200, 1) 0 1.4px, transparent 2px) 11px 6px / 23px 19px,
    radial-gradient(circle, rgba(255, 220, 120, .8) 0 1px, transparent 1.6px) 3px 13px / 13px 21px;
  opacity: .15; animation: pdGoldTw 3.4s ease-in-out -1.7s infinite; }
@keyframes pdGoldTw { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }
/* 鳳凰：上の縁の真ん中から飛び出す */
.pd-c-ph { position: absolute; left: 50%; top: -20px; width: 56px; height: 48px; margin-left: -28px; z-index: 3; pointer-events: none;
  background: url("/static/_v/10808d3905/paid/sign_phoenix.webp") center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); }
/* 後ろの金の後光（脈打つ） */
.pd-bs2.pd-vC::before { content: ""; position: absolute; left: -26px; right: -26px; top: 40px; bottom: -22px; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 110, .75), rgba(255, 170, 60, .3) 55%, transparent 100%);
  opacity: .45; animation: pdHalo 2.4s ease-in-out infinite; }
@keyframes pdHalo { 0%, 100% { opacity: .3; transform: scale(.97); } 50% { opacity: .8; transform: scale(1.03); } }
/* 上のカード：金の光で縁取る */
.pd-bs2.pd-vC .pd-bs-fan img { box-shadow: 0 0 0 1px #fff3c0, 0 0 14px rgba(255, 220, 120, .95), 0 3px 6px rgba(0, 0, 0, .6); }
.pd-bs2.pd-vC .pd-bs-fan { z-index: 2; }
.pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { content: ""; position: absolute; left: 50%; top: 2px; width: 150px; height: 76px; margin-left: -75px; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%); mix-blend-mode: screen;
  transform: translateX(-120%); animation: pdFanShine 4.2s ease-in-out 1.2s infinite; }
@keyframes pdFanShine { 0%, 70% { transform: translateX(-120%); opacity: 0; } 72% { opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }
/* 紅の襷：金の縁で締め、両端に金の結び、艶 */
.pd-bs2.pd-vC .pd-b2-row.r3 { margin: 2px -6px 0; padding: 4px 14px 5px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 45%), linear-gradient(180deg, #ee2840 0%, #b0001e 60%, #6a0012 100%);
  box-shadow: inset 0 0 0 2px #ffd860, inset 0 0 0 3px #7a4000, inset 0 -3px 0 rgba(0, 0, 0, .3), 0 3px 6px rgba(0, 0, 0, .55); }
.pd-bs2.pd-vC .pd-b2-row.r3::before, .pd-bs2.pd-vC .pd-b2-row.r3::after { content: ""; position: absolute; top: 50%; width: 15px; height: 22px; margin-top: -11px; z-index: 2;
  background: radial-gradient(circle at 50% 30%, #fffbe0 0 2px, #f6c84a 3px, #9a5a08 6px, transparent 7px) 50% 0 / 15px 15px no-repeat,
    linear-gradient(180deg, #ffe68c, #c8860e 60%, #8a5000) 50% 10px / 5px 12px no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.pd-bs2.pd-vC .pd-b2-row.r3::before { left: -3px; }
.pd-bs2.pd-vC .pd-b2-row.r3::after { right: -3px; }
/* 値札：金の縁を付け、ときどきフラッシュ。数字は濃い赤に白の細ぶち＋黒の影 */
.pd-bs2.pd-vC .pd-b2-price { top: 6px; border: 3px solid #ffd860; overflow: hidden;
  box-shadow: 0 0 0 2px #6a3a00, 0 0 0 4px #fff3b0, 0 4px 8px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 220, 0, .9); }
.pd-bs2.pd-vC .pd-b2-price b { color: #c4001a; text-shadow: -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px 1.5px 0 #fff, 0 3px 0 #3a0004; }
.pd-bs2.pd-vC .pd-b2-price small { color: #c4001a; }
.pd-bs2.pd-vC .pd-b2-price::after { content: ""; position: absolute; inset: -4px; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .95) 50%, transparent 70%);
  transform: translateX(-130%); animation: pdTagFlash 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes pdTagFlash { 0%, 62% { transform: translateX(-130%); } 82%, 100% { transform: translateX(130%); } }
/* 細い時（部屋へ戻るボタンもある時） */
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-board { border-width: 18px 18px 19px; border-image-width: 18px 18px 19px 18px; }
.home-bar:has(> .hb-back) .pd-c-ph { width: 46px; height: 40px; margin-left: -23px; top: -16px; }
/* 軽量モード・動きを減らす設定：動きを止める */
body.lite .pd-bs2.pd-vC::before, body.lite .pd-bs2.pd-vC .pd-b2-board::before, body.lite .pd-bs2.pd-vC .pd-b2-board::after,
body.lite .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl, body.lite .pd-bs2.pd-vC .pd-b2-price::after { animation: none; }
body.lite .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl, body.lite .pd-bs2.pd-vC .pd-b2-price::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pd-bs2.pd-vC::before, .pd-bs2.pd-vC .pd-b2-board::before, .pd-bs2.pd-vC .pd-b2-board::after { animation: none; }
  .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl, .pd-bs2.pd-vC .pd-b2-price::after { display: none; }
}
/* 鳳凰は額の上の縁の上に乗せる（字に掛からないように）。カードの扇は左へ寄せて、鳳凰と値札の間を空ける */
.pd-bs2.pd-vC .pd-c-ph { top: -40px; width: 52px; height: 45px; margin-left: -26px; }
.pd-bs2.pd-vC .pd-bs-fan { left: -78px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-c-ph { top: -34px; width: 44px; height: 38px; margin-left: -22px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { left: -58px; }
/* 細い時：額を細くして、「製品版を開放」を1行に収める（字は小さくしない） */
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-board { border-width: 14px 13px 15px; border-image-width: 14px 13px 15px 13px; padding: 1px 0 1px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-row.r1 { padding: 2px 0 3px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-row.r3 { margin: 2px -2px 0; padding: 4px 10px 5px; }
.pd-bs2.pd-vC .pd-bs-fan { left: -112px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { left: -88px; }
.pd-bs2.pd-vC .pd-b2-board { z-index: 3; }   /* 鳳凰（額の中の要素）をカードより手前に */

/* ================= 製品版の札：ホログラム加工（2026-11-17）=================
   トレカのホロ箔のように、見る角度で虹色が流れる。夜漆の面と金の額にかけ、字の上にはかけない（字の段は z-index で上）。
   虹は図鑑の虹色のカード（.jcard.secret .jc-foil）と同じ7色。動きは transform だけ（毎コマ filter は変えない）。
   --hx・--hy（paid.js の holoTilt。PC はマウス、スマホは傾き）で、虹の位置が少しずれる */
.pd-holo { position: absolute; top: -21px; bottom: -23px; left: -23px; right: -23px; z-index: 0; pointer-events: none; overflow: hidden; border-radius: 10px;
  mix-blend-mode: soft-light; opacity: .95; }
.pd-holo-flow { position: absolute; top: -50%; bottom: -50%; left: -150%; width: 400%;
  background: linear-gradient(115deg,
    rgba(255, 77, 109, 0) 0%, rgba(255, 77, 109, .9) 8%, rgba(255, 184, 77, .9) 14%, rgba(255, 240, 77, .9) 20%, rgba(77, 255, 136, .9) 26%,
    rgba(77, 210, 255, .9) 32%, rgba(138, 107, 255, .9) 38%, rgba(255, 77, 216, .9) 44%, rgba(255, 77, 216, 0) 50%,
    rgba(255, 77, 109, .9) 58%, rgba(255, 184, 77, .9) 64%, rgba(255, 240, 77, .9) 70%, rgba(77, 255, 136, .9) 76%,
    rgba(77, 210, 255, .9) 82%, rgba(138, 107, 255, .9) 88%, rgba(255, 77, 216, .9) 94%, rgba(255, 77, 216, 0) 100%);
  transform: translateX(calc((var(--hx, .5) - .5) * -18%)) translateY(calc((var(--hy, .5) - .5) * -10%));
  will-change: transform; }
.pd-holo-flow::after { content: ""; position: absolute; inset: 0; background: inherit; opacity: 0; }
.pd-holo { --flow: 0; }
.pd-holo-flow { animation: pdHoloFlow 7s linear infinite; }
@keyframes pdHoloFlow { from { translate: 0 0; } to { translate: 25% 0; } }
/* 細かい虹の粒（ホイルのきらめき）：止めた絵で、層ごとゆっくり明滅 */
.pd-holo-foil { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .5;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 .8px, transparent 1.3px) 0 0 / 9px 11px,
    radial-gradient(circle, rgba(180, 230, 255, .8) 0 .7px, transparent 1.2px) 4px 6px / 13px 7px,
    radial-gradient(circle, rgba(255, 200, 240, .8) 0 .7px, transparent 1.2px) 7px 2px / 11px 15px;
  animation: pdFoilTw 2.6s ease-in-out infinite; }
@keyframes pdFoilTw { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }
/* 値札にも少し */
.pd-bs2.pd-vC .pd-b2-price::before { content: ""; position: absolute; left: -3px; top: -3px; bottom: -3px; width: calc(600% + 36px); z-index: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .55;
  background: linear-gradient(115deg, #ff4d6d, #ffb84d 18%, #fff04d 34%, #4dff88 50%, #4dd2ff 66%, #8a6bff 82%, #ff4dd8) 0 0 / 50% 100% repeat-x;
  animation: pdTagHolo2 2.5s linear infinite; will-change: transform; }
@keyframes pdTagHolo2 { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pdTagHolo { from { background-position: 0% 0; } to { background-position: 300% 0; } }
.pd-bs2.pd-vC .pd-b2-price b, .pd-bs2.pd-vC .pd-b2-price small { position: relative; z-index: 1; }
/* 字の段は虹の上（読みやすさを落とさない） */
.pd-bs2 .pd-b2-row { z-index: 2; }
/* 他にできること：半荘戦・リプレイ・ルール自由（小さなメダル＋字。暗い地に明るい字） */
.pd-b2-row.r4 { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin: 1px 0; padding: 3px 4px 4px; border-radius: 8px;
  background: rgba(4, 8, 26, .72); box-shadow: inset 0 0 0 1px rgba(255, 214, 120, .45); border-top: 0 !important; }
.pd-b2-more { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.pd-b2-more .pd-ic { width: 24px; height: 24px; margin: -2px 0; }
.pd-b2-more b { color: #fff; font: 800 21.5px/1.2 "M PLUS Rounded 1c", sans-serif; letter-spacing: -.5px; font-feature-settings: "palt";
  text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000, 0 2px 0 #000; }
/* 軽量モード・動きを減らす設定：流れを止める（止めた虹は残す） */
body.lite .pd-holo-flow, body.lite .pd-holo-foil, body.lite .pd-bs2.pd-vC .pd-b2-price::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .pd-holo-flow, .pd-holo-foil, .pd-bs2.pd-vC .pd-b2-price::before { animation: none; } }
.pd-holo { opacity: .72; }

/* ================= 案C（ホロ版）を少しだけコンパクトに（2026-11-17 作者「もうちょっとだけコンパクトに」）=================
   字の大きさは変えず、額の太さ・余白・行の間・上のカードを詰める（高さ 約2割減） */
.pd-sign.pd-bs2 { padding-top: 40px; }
.pd-bs2 .pd-bs-fan { height: 60px; }
.pd-bs2.pd-vC .pd-bs-fan img { width: 42px; height: 58px; margin-left: -21px; top: 2px; }
.pd-bs2.pd-vC .pd-c-ph { top: -32px; width: 44px; height: 38px; margin-left: -22px; }
.pd-bs2.pd-vC .pd-b2-price { top: 0; transform: rotate(-8deg) scale(.92); }
.pd-bs2.pd-vC .pd-b2-board { border-width: 15px 16px 16px; border-image-width: 15px 16px 16px 16px; gap: 2px; padding: 0 1px 1px; }
.pd-holo { top: -15px; bottom: -16px; left: -16px; right: -16px; }
.pd-bs2[class*="pd-v"] .pd-b2-row { padding: 1px 4px 1px; }
.pd-bs2 .pd-b2-t { line-height: 1.04; }
.pd-bs2.pd-vC .pd-b2-row.r1 { padding: 1px 4px 2px; }
.pd-bs2.pd-vC .pd-b2-row.r3 { margin: 1px -3px 0; padding: 3px 12px 3px; }
.pd-b2-row.r4 { margin: 0; padding: 2px 4px 2px; gap: 0 8px; }
.pd-b2-more b { line-height: 1.08; }
.pd-b2-more .pd-ic { width: 22px; height: 22px; margin: -3px 0; }
/* 細い時（部屋へ戻るボタンもある時） */
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-board { border-width: 12px 11px 12px; border-image-width: 12px 11px 12px 11px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-c-ph { top: -28px; width: 40px; height: 34px; margin-left: -20px; }
.home-bar:has(> .hb-back) .pd-b2-row.r4 { gap: 0 6px; }
/* 詰めすぎない（高さ 約2.5割減に戻す）：行の間と上下の余白を少しだけ戻す */
.pd-sign.pd-bs2 { padding-top: 44px; }
.pd-bs2 .pd-b2-t { line-height: 1.1; }
.pd-bs2[class*="pd-v"] .pd-b2-row { padding: 2px 4px 2px; }
.pd-bs2.pd-vC .pd-b2-row.r1 { padding: 2px 4px 3px; }
.pd-bs2.pd-vC .pd-b2-board { gap: 3px; }

/* ================= 札の上のカード3枚を目立たせる（2026-11-17）=================
   札の大きさは変えず、カードだけ大きくして上にはみ出させる。扇に広げ、手前（真ん中）を一番大きく。
   金の縁と金の光（止まった光。毎コマ filter は変えない）で暗い背景から浮かせ、ホロの光沢がときどき流れる */
.pd-bs2.pd-vC .pd-bs-fan { left: 74px; right: auto; width: 0; top: -40px; height: 0; z-index: 4; }
.pd-bs2.pd-vC .pd-bs-fan img { position: absolute; left: 0; top: 0; width: 60px; height: 84px; margin: 0 0 0 -30px; border-radius: 6px; object-fit: cover;
  border: 3px solid #ffd860; box-shadow: 0 0 0 1.5px #6a3a00, 0 0 0 3px rgba(255, 246, 200, .9), 0 0 16px 4px rgba(255, 210, 100, .85), 0 6px 10px rgba(0, 0, 0, .7);
  transform-origin: 50% 120%; transform: translateX(calc(var(--k) * 40px)) rotate(calc(var(--k) * 15deg)); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { z-index: 2; width: 70px; height: 98px; margin-left: -35px; top: -10px; transform: none;
  box-shadow: 0 0 0 1.5px #6a3a00, 0 0 0 3px rgba(255, 246, 200, .95), 0 0 22px 7px rgba(255, 220, 120, .95), 0 8px 12px rgba(0, 0, 0, .7); }
/* 光沢：手前のカードの上を、虹色の帯がときどき流れる */
.pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { left: -35px; top: -10px; width: 70px; height: 98px; margin: 0; z-index: 3; border-radius: 6px; overflow: hidden;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 120, 200, .55) 40%, rgba(255, 255, 255, .85) 48%, rgba(120, 220, 255, .55) 56%, transparent 66%) 0 0 / 300% 100% no-repeat;
  mix-blend-mode: screen; transform: none; opacity: 1; animation: pdFanHolo 3.6s ease-in-out infinite; }
@keyframes pdFanHolo { 0%, 45% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
/* 光沢の帯は、窓（.pd-fan-gl。カードの形に切り抜く）の中の帯（i）を transform で動かす（毎コマ描き直さない） */
.pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { position: absolute; background: none; animation: none; }
.pd-bs2 .pd-bs-fan > .pd-fan-gl > i { position: absolute; left: 0; top: 0; width: 300%; height: 100%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 120, 200, .55) 40%, rgba(255, 255, 255, .85) 48%, rgba(120, 220, 255, .55) 56%, transparent 66%);
  transform: translateX(-80%); animation: pdFanSweep 3.6s ease-in-out infinite; will-change: transform; }
@keyframes pdFanSweep { 0%, 45% { transform: translateX(-80%); } 100% { transform: translateX(26.67%); } }
.pd-bs2:not(.pd-vC) .pd-bs-fan > .pd-fan-gl { display: none; }
/* 細い時（部屋へ戻るボタンもある時）：少し小さく */
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { left: 58px; top: -34px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img { width: 52px; height: 73px; margin-left: -26px; transform: translateX(calc(var(--k) * 34px)) rotate(calc(var(--k) * 15deg)); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { width: 60px; height: 84px; margin-left: -30px; top: -8px; transform: none; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { left: -30px; top: -8px; width: 60px; height: 84px; }
body.lite .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) { .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { animation: none; display: none; } }
/* 扇をはっきり広げる */
.pd-bs2.pd-vC .pd-bs-fan img { transform: translateX(calc(var(--k) * 44px)) translateY(calc(var(--k) * var(--k) * 8px)) rotate(calc(var(--k) * 20deg)); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img { transform: translateX(calc(var(--k) * 36px)) translateY(calc(var(--k) * var(--k) * 6px)) rotate(calc(var(--k) * 20deg)); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(2), .home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { transform: none; }
.pd-bs2.pd-vC .pd-bs-fan { left: 64px; } .home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { left: 52px; }

/* ================= 札の上のカードを5枚の扇に（2026-11-17 作者「できれば5枚ぐらい」）=================
   製品版で増えるカードだけ。真ん中（手前）を一番大きく、外ほど小さく後ろへ。鳳凰はカードより手前 */
.pd-bs2.pd-vC .pd-bs-fan { left: 84px; top: -30px; }
.pd-bs2.pd-vC .pd-bs-fan img { width: 50px; height: 70px; margin-left: -25px; top: calc(var(--a) * 5px);
  z-index: calc(3 - var(--a));
  transform: translateX(calc(var(--k) * 29px)) rotate(calc(var(--k) * 13deg)); transform-origin: 50% 130%; }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { z-index: 3; width: 64px; height: 90px; margin-left: -32px; top: -14px; transform: none; }
.pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { left: -32px; top: -14px; width: 64px; height: 90px; z-index: 4; }
.pd-bs2.pd-vC .pd-c-ph { z-index: 6; }
.pd-bs2.pd-vC .pd-b2-board { z-index: 3; }
.pd-bs2.pd-vC .pd-bs-fan { z-index: 4; }
/* 細い時（部屋へ戻るボタンもある時）：5枚のまま少し小さく */
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { left: 66px; top: -26px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img { width: 42px; height: 59px; margin-left: -21px; transform: translateX(calc(var(--k) * 23px)) rotate(calc(var(--k) * 13deg)); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { width: 54px; height: 76px; margin-left: -27px; top: -12px; transform: none; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { left: -27px; top: -12px; width: 54px; height: 76px; }
/* 5枚をはっきり見せる：扇の中心を札の真ん中に置き、鳳凰をその根元（手前）の飾りにする。両側のカードは位置を決め打ち */
.pd-bs2.pd-vC .pd-bs-fan { left: 50%; top: -34px; }
.pd-bs2.pd-vC .pd-bs-fan img { width: 48px; height: 67px; margin-left: -24px; transform-origin: 50% 100%; }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(1) { z-index: 1; top: 12px; transform: translateX(-74px) rotate(-22deg); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { z-index: 2; top: 2px; transform: translateX(-40px) rotate(-11deg); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(4) { z-index: 2; top: 2px; transform: translateX(40px) rotate(11deg); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(5) { z-index: 1; top: 12px; transform: translateX(74px) rotate(22deg); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { z-index: 3; width: 62px; height: 87px; margin-left: -31px; top: -12px; transform: none; }
.pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { left: -31px; top: -12px; width: 62px; height: 87px; }
/* 鳳凰は扇の根元の手前（board より上に出す） */
.pd-bs2.pd-vC .pd-b2-board { z-index: 5; }
.pd-bs2.pd-vC .pd-c-ph { top: -38px; width: 52px; height: 45px; margin-left: -26px; z-index: 6; }
/* 値札は右へ寄せて、右端のカードと重ならないように */
.pd-bs2.pd-vC .pd-b2-price { right: -34px; top: 8px; }
/* 細い時 */
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { left: 50%; top: -28px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img { width: 40px; height: 56px; margin-left: -20px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(1) { transform: translateX(-60px) rotate(-22deg); top: 10px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { transform: translateX(-32px) rotate(-11deg); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(4) { transform: translateX(32px) rotate(11deg); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(5) { transform: translateX(60px) rotate(22deg); top: 10px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { width: 52px; height: 73px; margin-left: -26px; top: -10px; transform: none; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { left: -26px; top: -10px; width: 52px; height: 73px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-c-ph { top: -32px; width: 44px; height: 38px; margin-left: -22px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-price { right: -30px; top: 6px; }
/* 値札はカードより手前に出して、数字が隠れないように */
.pd-bs2.pd-vC .pd-b2-price { z-index: 7; right: -42px; top: 14px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-price { right: -40px; top: 14px; }
/* 鳳凰を外し（作者「鳥みたいなんいらん」）、空いた札の上の辺の真ん中に5枚の扇を置く */
.pd-bs2.pd-vC .pd-bs-fan { left: 50%; top: -26px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { left: 50%; top: -20px; }
/* 値札：右端のカードと重ならないよう、少し右下へ */
.pd-bs2.pd-vC .pd-b2-price { right: -50px; top: 22px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-price { right: -50px; top: 22px; }
/* カードの下端を題字より上に、値札は右端のカードの外へ */
.pd-bs2.pd-vC .pd-bs-fan { top: -50px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { top: -40px; }
.pd-bs2.pd-vC .pd-b2-price { right: -70px; top: 30px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-price { right: -66px; top: 30px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-price { right: -76px; top: 34px; }

/* ================= 扇を札に被せる（2026-11-17 作者「もうちょい被る感じで」）=================
   札全体の高さは変えず、札の上の外の余白を減らした分だけ、額の中の題字の上に余白を足す。
   カードの下の3〜4割が金の額の上の辺に重なり、影を落として札に差し込んだように見せる */
.pd-sign.pd-bs2 { padding-top: 18px; }
.pd-bs2.pd-vC .pd-b2-board { padding-top: 26px; }
.pd-bs2.pd-vC .pd-bs-fan { top: -27px; z-index: 6; }
.pd-bs2.pd-vC .pd-bs-fan img { box-shadow: 0 0 0 1.5px #6a3a00, 0 0 0 3px rgba(255, 246, 200, .9), 0 0 12px 3px rgba(255, 210, 100, .75), 0 10px 10px rgba(0, 0, 0, .75); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(1) { transform: translateX(-62px) rotate(-20deg); top: 10px; }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { transform: translateX(-33px) rotate(-10deg); top: 2px; }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(4) { transform: translateX(33px) rotate(10deg); top: 2px; }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(5) { transform: translateX(62px) rotate(20deg); top: 10px; }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { box-shadow: 0 0 0 1.5px #6a3a00, 0 0 0 3px rgba(255, 246, 200, .95), 0 0 18px 5px rgba(255, 220, 120, .9), 0 12px 12px rgba(0, 0, 0, .8); }
.pd-bs2.pd-vC .pd-b2-price { z-index: 7; }
/* 細い時（部屋へ戻るボタンもある時） */
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-b2-board { padding-top: 22px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { top: -24px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(1) { transform: translateX(-50px) rotate(-20deg); top: 8px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { transform: translateX(-27px) rotate(-10deg); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(4) { transform: translateX(27px) rotate(10deg); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(5) { transform: translateX(50px) rotate(20deg); top: 8px; }
/* ---- 5枚とも同じ大きさ（作者「カードの大きさもちゃんと揃えて」）。真ん中は重なり順と光で目立たせる。
   傾き（±10°・±20°）と間隔（±30px・±58px）は左右対称。カードの下の約3.5割が額に重なる */
.pd-bs2.pd-vC .pd-bs-fan { top: -31px; }
.pd-bs2.pd-vC .pd-bs-fan img, .pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { width: 54px; height: 76px; margin-left: -27px; transform-origin: 50% 100%; }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(1) { z-index: 1; top: 4px; transform: translateX(-58px) rotate(-20deg); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { z-index: 2; top: 1px; transform: translateX(-30px) rotate(-10deg); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { z-index: 3; top: 0; transform: none; }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(4) { z-index: 2; top: 1px; transform: translateX(30px) rotate(10deg); }
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(5) { z-index: 1; top: 4px; transform: translateX(58px) rotate(20deg); }
.pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { left: -27px; top: 0; width: 54px; height: 76px; }
/* 細い時：5枚とも同じ比率（0.85倍）で小さく */
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan { top: -24px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img, .home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { width: 46px; height: 65px; margin-left: -23px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(1) { top: 3px; transform: translateX(-49px) rotate(-20deg); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(2) { top: 1px; transform: translateX(-25px) rotate(-10deg); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(3) { top: 0; transform: none; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(4) { top: 1px; transform: translateX(25px) rotate(10deg); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(5) { top: 3px; transform: translateX(49px) rotate(20deg); }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan > .pd-fan-gl { left: -23px; top: 0; width: 46px; height: 65px; }
/* 前の3枚の時の「2枚目を大きく」を打ち消して、5枚とも同じ大きさに */
.pd-bs2.pd-vC .pd-bs-fan img:nth-child(n) { width: 54px; height: 76px; margin-left: -27px; }
.home-bar:has(> .hb-back) .pd-bs2.pd-vC .pd-bs-fan img:nth-child(n) { width: 46px; height: 65px; margin-left: -23px; }

/* ================= 購入の確認画面を豪華に（2026-11-18 作者「豪華さ改良」「説明は短く」「購入するで普通に」「値段の位置・空白」）=================
   ホームの製品版の札と同じ世界：金の額（sign_frame.webp）・藍の夜漆に金箔・ホロの艶。後ろは宝物殿の宝の間を暗く敷く。
   値段は購入ボタンの上の縁に乗る値札にして一体に。特商法の最終確認の項目は短く1行ずつ残す */
.overlay.pd-confirm { background:
    radial-gradient(ellipse at 50% 40%, rgba(40, 6, 24, .55), rgba(4, 2, 8, .92) 75%),
    url("/static/_v/bb9a819056/paid/hall.webp") center / cover no-repeat, #0a0306; }
.pd-box { width: 1160px; border: 22px solid transparent; border-radius: 16px;
  border-image: url("/static/_v/3db794ab65/paid/sign_frame.webp") 150 165 165 165 / 22px 24px 24px 24px stretch;
  background:
    radial-gradient(circle, rgba(255, 228, 140, .8) 0 1.1px, transparent 1.7px) 0 0 / 19px 17px,
    radial-gradient(circle, rgba(255, 210, 110, .55) 0 1.8px, transparent 2.6px) 9px 7px / 43px 37px,
    radial-gradient(120% 60% at 50% 0%, rgba(120, 160, 255, .32), transparent 60%),
    linear-gradient(180deg, #1c2c70 0%, #0c1640 55%, #050a1e 100%);
  background-clip: padding-box; color: #fff6e0;
  box-shadow: 0 0 60px rgba(255, 200, 90, .45), 0 24px 50px rgba(0, 0, 0, .7); }
.pd-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 6px; mix-blend-mode: soft-light; opacity: .55;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 77, 109, .9) 12%, rgba(255, 240, 77, .9) 24%, rgba(77, 255, 136, .9) 36%, rgba(77, 210, 255, .9) 48%, rgba(138, 107, 255, .9) 60%, rgba(255, 77, 216, .9) 72%, transparent 84%) 0 0 / 300% 100%;
  animation: pdTagHolo 9s linear infinite; }
.pd-box > * { position: relative; }
.pd-head { padding: 6px 10px 8px 14px; background: none; border-bottom: 2px solid rgba(255, 214, 120, .55); }
.pd-head-sub { color: #ffe9a8; font-size: 20px; }
.pd-x { border: 2px solid #ffd860; background: linear-gradient(180deg, #4a1022, #1e030a); color: #ffe9a8; box-shadow: 0 0 10px rgba(255, 200, 90, .6); }
.pd-body { gap: 10px; padding: 10px 8px 6px; }
/* 下の段：左の条件と右の購入を同じ高さにそろえる */
.pd-lower { grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: stretch; }
.pd-terms { display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 4px 14px; margin: 0; padding: 10px 16px; border-radius: 12px;
  background: rgba(4, 8, 26, .72); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .5); font: 700 18px/1.4 "M PLUS Rounded 1c", sans-serif; }
.pd-terms dt { color: #ffd860; white-space: nowrap; }
.pd-terms .pd-dd { color: #fff; }
/* 右：値札＋購入ボタン（一体）・Stripe の一言・リンク・未成年の一言を詰めて並べる */
.pd-right { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.pd-buy { position: relative; padding-top: 30px; }
.pd-buy .pd-price { position: absolute; z-index: 2; left: 50%; top: -6px; transform: translateX(-50%) rotate(-3deg); padding: 3px 18px 4px; gap: 2px; border-radius: 999px;
  background: repeating-linear-gradient(-45deg, #ffe600 0 9px, #ffb800 9px 18px); border: 3px solid #ffd860;
  box-shadow: 0 0 0 2px #6a3a00, 0 0 0 4px #fff3b0, 0 4px 8px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 220, 0, .85); white-space: nowrap; }
.pd-buy .pd-price b { font: 900 40px/1 "Orbitron", sans-serif; color: #c4001a; background: none; -webkit-text-stroke: 0; filter: none;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 3px 0 #3a0004; }
.pd-buy .pd-price span { font: 900 24px/1 "M PLUS Rounded 1c", sans-serif; color: #c4001a; text-shadow: -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px 1.5px 0 #fff; }
.pd-buy .pd-price small { font: 900 16px/1 "M PLUS Rounded 1c", sans-serif; color: #6a0010; }
.pd-pay { min-height: 92px; justify-content: center; padding: 30px 10px 10px; }
.pd-pay b { font: 900 36px/1.1 "M PLUS Rounded 1c", sans-serif; letter-spacing: 6px; color: #fff;
  text-shadow: -2px -2px 0 #4a0010, 2px -2px 0 #4a0010, -2px 2px 0 #4a0010, 2px 2px 0 #4a0010, 0 3px 0 #2a0008, 0 0 14px rgba(255, 220, 140, .8); }
.pd-pay-note:empty { display: none; }
.pd-pay-note { font: 800 15px/1.3 "M PLUS Rounded 1c", sans-serif; color: #ffe9b0; }
.pd-stripe { margin: 0; text-align: center; color: #e8e2ff; font: 700 15px/1.3 "M PLUS Rounded 1c", sans-serif; }
.pd-links { justify-content: center; margin: 0; font-size: 15px; }
.pd-links a { color: #9fd0ff; }
.pd-box .pd-small { display: block; margin: 0; text-align: center; color: #f3dcc0; font: 700 15px/1.35 "M PLUS Rounded 1c", sans-serif; }
.pd-box .pd-mock { margin: 0; padding: 3px 8px; text-align: center; background: rgba(255, 244, 214, .12); border: 1px dashed #d0a020; color: #ffe9b0; font-size: 14px; }
/* 増える物の小さい字も、スマホで読める大きさに */
.pd-confirm .pd-ben-small { font-size: 16px !important; }
.pd-confirm .pd-ben-tx b { font-size: 20px; }
body.lite .pd-box::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .pd-box::before { animation: none; } }
/* 字をスマホでも読める大きさに（スマホ横667で 9px 以上）。増える物の札の字が枠からはみ出さないように */
.pd-terms { font-size: 20px; gap: 3px 14px; }
.pd-stripe, .pd-box .pd-small, .pd-links { font-size: 18px; }
.pd-buy .pd-price small { font-size: 18px; }
.pd-box .pd-mock { font-size: 17px; }
.pd-confirm .pd-bens { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.pd-confirm .pd-ic { width: 64px; height: 64px; margin-right: -10px; }
.pd-confirm .pd-ben-fan { width: 96px; }
.pd-confirm .pd-ben { min-height: 0; padding: 8px 8px 8px 8px; }
.pd-confirm .pd-ben-tx { overflow: visible; }
.pd-confirm .pd-ben-tx b { font-size: 19px; }
.pd-confirm .pd-ben-small { font-size: 17px !important; line-height: 1.25; }
.pd-box .pd-terms { font-size: 22px; line-height: 1.45; gap: 4px 16px; padding: 10px 18px; }
.pd-confirm .pd-ben-small { font-size: 18px !important; }

/* ================= 引き継ぎの図（2026-11-18 作者「一目見て分かるように」）=================
   前の端末（灰色・体験版）→ 金の矢印 → 移した先（金色に光る・製品版）。文の説明より、絵で見せる */
.pd-move { display: inline-flex; align-items: flex-end; gap: 4px; flex: none; line-height: 1; }
.pd-dev { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.pd-dev svg { display: block; height: 40px; width: auto; }
.pd-dev .frame { fill: #3a3a44; stroke: #9a9aa6; stroke-width: 2.5; }
.pd-dev .scr { fill: #6a6a78; }
.pd-dev .dot { fill: #9a9aa6; }
.pd-dev small { font: 800 13px/1 "M PLUS Rounded 1c", sans-serif; color: #b8b8c4; white-space: nowrap; }
.pd-dev.to .frame { fill: #8a5200; stroke: #fff0a0; }
.pd-dev.to .scr { fill: #ffd860; }
.pd-dev.to svg { filter: drop-shadow(0 0 6px rgba(255, 210, 90, .95)); }
.pd-dev.to small { color: #ffe27a; text-shadow: 0 0 6px rgba(255, 200, 80, .8); }
.pd-move-arrow { align-self: center; margin-bottom: 14px; }
.pd-move-arrow svg { display: block; width: 40px; height: 18px; }
.pd-move-arrow .shaft { stroke: #ffd860; stroke-width: 4; stroke-linecap: round; fill: none; }
.pd-move-arrow .head { fill: #ffd860; }
.pd-move-explain { display: inline-flex; align-items: center; gap: 10px; }
.pd-move-text { color: #fff; font: 800 18px/1.3 "M PLUS Rounded 1c", sans-serif; }
/* 確認画面の行：図を小さく横に */
.pd-move-explain.terms { gap: 8px; }
.pd-move-explain.terms .pd-dev svg { height: 28px; }
.pd-move-explain.terms .pd-dev small { font-size: 12px; }
.pd-move-explain.terms .pd-move-arrow { margin-bottom: 10px; }
.pd-move-explain.terms .pd-move-arrow svg { width: 30px; height: 14px; }
.pd-move-explain.terms .pd-move-text { font-size: 20px; }
/* 開放の演出の番号の板：番号を大きく、「控えておいて」を添える */
.pd-codelab { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pd-codelab b { font: 900 22px/1.1 "M PLUS Rounded 1c", sans-serif; color: #ffe9a8; }
.pd-codelab small { font: 800 15px/1.2 "M PLUS Rounded 1c", sans-serif; color: #fff; }
.pd-code { font-size: 50px; }
.pd-panel { gap: 6px; }
.pd-move-explain.inpanel .pd-move-text { font-size: 20px; }
/* 設定 */
.set-row:has(> .pd-setmove) { padding-top: 0; }
.pd-setmove { flex: 1; display: flex; justify-content: center; }
.pd-setmove .pd-move-text { color: #4a2a10; font-size: 16px; }
.pd-setmove .pd-dev small { color: #6a6a74; }
.pd-setmove .pd-dev.to small { color: #a86c00; text-shadow: none; }
/* 体験版に戻った時のお知らせ */
.pd-moved-box .pd-move { margin: 4px 0; }
.pd-moved-box .pd-move .pd-dev svg { height: 44px; }
/* 体験版に戻った時の図も、ふつうの引き継ぎの図と同じ色と向き：この端末（灰色・体験版）→ 別の端末（金色・製品版） */
/* 「あと○回」の札：引き継ぎ番号のそば */
.pd-left { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; padding: 3px 10px 4px; border-radius: 10px;
  background: linear-gradient(180deg, #1c6a3a, #0a3a1e); border: 2px solid #8affb8; box-shadow: 0 0 10px rgba(80, 255, 150, .5); line-height: 1.1; white-space: nowrap; }
.pd-left small { font: 800 12px/1.1 "M PLUS Rounded 1c", sans-serif; color: #c8ffd8; }
.pd-left b { font: 900 20px/1.1 "M PLUS Rounded 1c", sans-serif; color: #fff; text-shadow: 0 1px 0 #003a10; }
.pd-left.zero { background: linear-gradient(180deg, #5a5a64, #2a2a30); border-color: #b8b8c4; box-shadow: none; }
.pd-setcode .pd-left b { font-size: 16px; }

/* 番号の板：1段目に番号と「あと○回」、2段目に引き継ぎの図と一言・ボタン（札の高さに収める） */
.pd-stage2 .pd-panel { top: 540px; padding: 8px 20px 10px; gap: 6px; }
.pd-codeline { gap: 14px; }
.pd-codebottom { display: flex; align-items: center; gap: 22px; }
.pd-codebottom .pd-move-explain { padding: 3px 12px; border-radius: 10px; background: rgba(4, 8, 26, .6); box-shadow: inset 0 0 0 1px rgba(255, 214, 120, .45); }
/* 確認画面の条件：1行ずつに収める */
.pd-box .pd-terms { font-size: 20px; line-height: 1.35; gap: 2px 14px; }
.pd-move-explain.terms .pd-move-text { font-size: 19px; }
.pd-move-explain.terms .pd-move-text .nb { white-space: nowrap; }
/* 開放した後のホームの一言：言葉の切れ目で折り返して、画面からはみ出さないように */
.pd-owned-note { display: block; max-width: 440px; white-space: normal; }
/* Safari は折り返さない字（.nb）が続くと、その間でも折り返さず帯の外にはみ出す（844×390 など）。塊にして、塊の間（意味の切れ目）でだけ折り返す */
.pd-owned-note .nb { display: inline-block; }

/* ================= 製品版の人の特別感：名札・アイコンの金の枠（2026-11-18）=================
   自分で開放した人だけ（サーバーが引き継ぎ番号を確かめた席の pro）。ホストのおかげで製品版の部屋に入った人には出さない。
   金の額（sign_frame.webp）＋止まったホロの艶。対局中に毎コマ変わる動きは入れない（重さ対策） */
.plate.pro { border: 12px solid transparent; padding: 0 6px 0 2px;
  border-image: url("/static/_v/3db794ab65/paid/sign_frame.webp") 150 165 165 165 / 12px 12px 12px 12px stretch;
  background:
    linear-gradient(115deg, rgba(255, 77, 109, .16), rgba(255, 240, 77, .16) 25%, rgba(77, 255, 136, .14) 45%, rgba(77, 210, 255, .16) 65%, rgba(255, 77, 216, .16) 85%),
    radial-gradient(circle, rgba(255, 228, 140, .5) 0 1px, transparent 1.6px) 0 0 / 15px 13px,
    radial-gradient(120% 70% at 50% 0%, rgba(120, 160, 255, .3), transparent 60%),
    linear-gradient(180deg, #1c2c70 0%, #0c1640 55%, #050a1e 100%);
  background-clip: padding-box;
  box-shadow: 0 0 18px rgba(255, 200, 90, .55), 0 10px 24px rgba(0, 0, 0, .55); }
.plate.pro.right { padding: 0 2px 0 6px; }
.plate.pro::before, .plate.pro::after { display: none; }
/* アイコン：金の太い輪に、虹の箔の輪（止まった絵） */
.plate.pro .pl-face::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: conic-gradient(#ff4d6d, #ffb84d, #fff04d, #4dff88, #4dd2ff, #8a6bff, #ff4dd8, #ff4d6d);
  box-shadow: 0 0 12px 3px rgba(255, 220, 120, .8); }
.plate.pro .pl-avatar { box-shadow: 0 0 0 3px #fff3b0, 0 0 0 5px #d4a020, 0 0 0 6px #6a3a00, 0 6px 12px rgba(0, 0, 0, .6); }
.plate.pro .pl-name { color: #ffe9a8; text-shadow: 0 1px 0 #000, 0 0 8px rgba(255, 200, 90, .8); }
/* ロビー（部屋の人の一覧）：金の縁と虹の帯、「製品版」の小さな札 */
.seat.pro { position: relative; border-radius: 10px; background: linear-gradient(90deg, #fff6d0, #fffbea 40%, #fff3c4);
  box-shadow: inset 0 0 0 2px #d4a020, 0 0 12px rgba(255, 200, 90, .55); }
.seat.pro::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #ff4d6d, #ffb84d, #fff04d, #4dff88, #4dd2ff, #8a6bff, #ff4dd8); }
.seat.pro > div:first-child::after { content: "製品版"; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font: 900 12px/1.5 "M PLUS Rounded 1c", sans-serif;
  color: #3a1600; background: linear-gradient(180deg, #fffbe0, #ffd860 50%, #e8a020); box-shadow: 0 0 0 1px #8a5200; vertical-align: 2px; }
/* ホームの名前の札：金の光をまとい、アイコンに虹の箔の輪 */
.home-namechip.pro::before { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)) drop-shadow(0 0 12px rgba(255, 210, 90, .9)); }
.home-namechip.pro .hn-face { box-shadow: 0 0 0 3px #fff3b0, inset 0 0 8px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, 0); }
.home-namechip.pro .hn-face::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; z-index: -1;
  background: conic-gradient(#ff4d6d, #ffb84d, #fff04d, #4dff88, #4dd2ff, #8a6bff, #ff4dd8, #ff4d6d); box-shadow: 0 0 12px 3px rgba(255, 220, 120, .85); }
.home-namechip.pro .hn-shine { opacity: 1; }

/* ---- しもべの一覧：製品版だけのしもべ（金の雷獣・金の鳳凰）は金の札と「製品版」のしるし。体験版の人には鍵付き */
.svp-item.pro { position: relative; border: 3px solid transparent !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%) padding-box,
    linear-gradient(160deg, #fff6c8, #f2c24a 45%, #c88a10) padding-box,
    linear-gradient(180deg, #fffbe0, #f4c64e 30%, #8e5208 55%, #ffe68c 80%, #a86c10) border-box !important;
  box-shadow: 0 0 16px rgba(255, 200, 90, .7) !important; color: #3a1600; }
.svp-item.pro b { color: #6a0a1e; }
.svp-item.pro small { color: #4a2a08; }
.svp-pro { position: absolute; right: 6px; top: 6px; padding: 1px 8px; border-radius: 999px; font: 900 12px/1.5 "M PLUS Rounded 1c", sans-serif;
  color: #fff; background: linear-gradient(90deg, #ff4d6d, #ffb84d, #4dd2ff, #8a6bff); box-shadow: 0 0 0 1.5px #fff, 0 2px 4px rgba(0, 0, 0, .4); }
.svp-item.locked .svp-stage { filter: grayscale(.4) brightness(.8); }
/* 製品版のしもべ：上下にふわっと */
.fx-servant.pro-sv .sv-thread { height: 66px; background: linear-gradient(180deg, #fff3b0, #e8a020); }
.fx-servant.pro-sv .sv-body { animation: svBob .55s ease-in-out infinite alternate; }
.fx-sv-spark.raiju, .fx-sv-spark.houou { background: radial-gradient(circle, #fff, rgba(255, 210, 90, .95) 40%, transparent 70%); }
/* 虹の箔の輪：輪の形に切り抜いて、写真の上に重ねる（写真を隠さない） */
.plate.pro .pl-face::before, .home-namechip.pro .hn-face::before { z-index: 1; pointer-events: none;
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 64%); mask: radial-gradient(circle, transparent 0 62%, #000 64%); }
.plate.pro .pl-face::before { inset: -8px; }
.home-namechip.pro .hn-face::before { inset: -7px; }
/* 友だち対戦の準備の画面の帯：枠からはみ出さないように縮める */
.pd-host.lobby { max-width: 100%; box-sizing: border-box; flex-wrap: wrap; }
.pd-host.lobby .pd-host-tx { min-width: 0; flex: 1 1 260px; }
.pd-host.lobby .pd-host-big { font-size: 24px; white-space: normal; }
.pd-host.lobby .pd-host-small { font-size: 15px; }
.pd-host.lobby .pd-chip { font-size: 13px; }
.pd-host.lobby .pd-chip .pd-ic { width: 28px; height: 28px; }
/* ---- 製品版のしもべ（金の雷獣・金の鳳凰）：後光（ゆっくり回る）・ホロの艶。一覧では光の柱の舞台 */
.fx-servant.pro-sv .sv-halo { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 230, 140, .55) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, rgba(0, 0, 0, .5) 40%, transparent 68%); mask: radial-gradient(circle, #000 18%, rgba(0, 0, 0, .5) 40%, transparent 68%);
  animation: pdSpin 9s linear infinite; will-change: transform; }
.fx-servant.pro-sv .sv-body { position: relative; }
/* 一覧：製品版のしもべの札の舞台に、光の柱と金の後光 */
.svp-item.pro .svp-stage { position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(255, 240, 180, .55), transparent 55%), linear-gradient(180deg, #4a1022, #1c0610); }
.svp-item.pro .svp-stage::before { content: ""; position: absolute; left: 50%; top: 40%; width: 260px; height: 260px; margin: -130px 0 0 -130px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 220, 120, .45) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 65%); mask: radial-gradient(circle, #000 10%, transparent 65%); animation: pdSpin 14s linear infinite; }
/* 体験版の人：鍵付きで暗い。それでも後光がちらっと漏れる */
.svp-item.pro.locked .svp-stage { filter: none; }
.svp-item.pro.locked .svp-stage .fx-servant { filter: brightness(.25) saturate(.3); }
.svp-item.pro.locked .svp-grip { opacity: .25; }
.svp-item.pro.locked .svp-stage::after { content: "🔒"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 30px; filter: drop-shadow(0 2px 3px #000); }
.svp-item.pro.locked .svp-stage::before { animation: pdSpin 14s linear infinite, pdPeek 3.2s ease-in-out infinite; }
@keyframes pdPeek { 0%, 60%, 100% { opacity: .15; } 75% { opacity: 1; } }
/* 選んだ時に舞う金の羽と花びら */
.sv-petal { position: fixed; z-index: 9600; width: 14px; height: 14px; pointer-events: none; }
.sv-petal.feather { width: 10px; height: 22px; border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%; background: linear-gradient(180deg, #fffbe0, #ffd84a 50%, #c88a10); box-shadow: 0 0 6px rgba(255, 210, 90, .9); }
.sv-petal.sakura { border-radius: 60% 0 60% 0; background: linear-gradient(135deg, #ffe6f0, #ff9cc2); box-shadow: 0 0 6px rgba(255, 180, 210, .8); }
body.lite .fx-servant.pro-sv .sv-halo, body.lite .svp-item.pro .svp-stage::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .fx-servant.pro-sv .sv-halo, .svp-item.pro .svp-stage::before { animation: none; } }
.svp-item.pro.locked .svp-stage::after { z-index: 5; font-size: 34px; }

/* ---- 金の名札の直し（2026-11-18 作者「つぶつぶが変」「アイコンの枠が字と被る」）
   面は藍の漆のなめらかな濃淡、金箔は縁の近くにまばらにちぎって散らす（格子の点はやめる）。止まったホロの艶はそのまま */
.plate.pro {
  background:
    linear-gradient(115deg, rgba(255, 77, 109, .14), rgba(255, 240, 77, .14) 25%, rgba(77, 255, 136, .12) 45%, rgba(77, 210, 255, .14) 65%, rgba(255, 77, 216, .14) 85%),
    radial-gradient(9px 5px at 7% 14%, rgba(255, 226, 140, .85), transparent 70%),
    radial-gradient(6px 4px at 15% 88%, rgba(255, 214, 120, .75), transparent 70%),
    radial-gradient(11px 6px at 93% 10%, rgba(255, 230, 150, .8), transparent 70%),
    radial-gradient(5px 7px at 97% 62%, rgba(255, 214, 120, .7), transparent 70%),
    radial-gradient(8px 4px at 58% 95%, rgba(255, 226, 140, .7), transparent 70%),
    radial-gradient(4px 3px at 40% 6%, rgba(255, 236, 170, .75), transparent 70%),
    radial-gradient(140% 90% at 30% 0%, rgba(110, 150, 255, .32), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(10, 20, 70, .9), transparent 60%),
    linear-gradient(170deg, #22347a 0%, #111d52 45%, #070d2a 100%);
  background-clip: padding-box; }
/* アイコンの虹の輪：細くして、アイコンの円の内側に収める（外の金の輪とすき間は、体験版の名札と同じ） */
.plate.pro .pl-avatar { box-shadow: 0 0 0 3px #e7c46a, 0 0 0 5px #6b4a12, 0 0 0 6px rgba(255, 230, 160, .6), 0 6px 12px rgba(0, 0, 0, .6), 0 0 12px 2px rgba(255, 215, 110, .55); }
.plate.pro .pl-face::before { inset: 0; box-shadow: none;
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 89%, #000 91% 99%, transparent 100%);
  mask: radial-gradient(circle closest-side, transparent 0 89%, #000 91% 99%, transparent 100%); }
/* 親・風の札は輪より手前に */
.plate.pro .pl-wind, .plate.pro .pl-oya { z-index: 2; }
/* ホームの名前の札の輪も同じく内側に細く */
.home-namechip.pro .hn-face::before { inset: 0; box-shadow: none;
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 88%, #000 90% 99%, transparent 100%);
  mask: radial-gradient(circle closest-side, transparent 0 88%, #000 90% 99%, transparent 100%); }
.home-namechip.pro .hn-face { box-shadow: inset 0 0 8px rgba(0, 0, 0, .55), 0 0 12px 2px rgba(255, 215, 110, .7); }

/* しもべの説明：意味の切れ目でだけ折り返す（servant.js で句ごとの塊にしている） */
.svp-ph { display: inline-block; }

/* 金の雷獣：駆ける（体を前後に傾けながら上下）。金の鳳凰：羽ばたく（縦に縮んで伸びる） */
.fx-servant.raiju .sv-thread { background: linear-gradient(180deg, #f2e6ff, #b48cff 50%, #ffd84a); }
.fx-servant.houou .sv-thread { background: linear-gradient(180deg, #fff3b0, #ff7a2a); }
.fx-sv-spark.raiju { background: radial-gradient(circle, #fff, rgba(200, 160, 255, .95) 40%, transparent 70%); }
.fx-sv-spark.houou { background: radial-gradient(circle, #fff, rgba(255, 150, 60, .95) 40%, transparent 70%); }
/* はじける時の粒：雷獣は紫の火花、鳳凰は炎の羽 */
.sv-petal.spark { width: 6px; height: 26px; border-radius: 3px; background: linear-gradient(180deg, #fff, #c9a0ff 50%, #ffd84a); box-shadow: 0 0 8px rgba(190, 140, 255, .95); }
.sv-petal.flame { width: 12px; height: 24px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: linear-gradient(180deg, #fff3b0, #ff9a2a 45%, #e0281e); box-shadow: 0 0 8px rgba(255, 140, 40, .95); }

/* ---- 製品版のしもべの札（2026-11-19 作者「集中線みたいなの嫌」）
   放射状の線の後光はやめる。深い藍の舞台に、やわらかい金の光のにじみと、ゆっくり舞う光の粒だけ */
.svp-item.pro .svp-stage { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255, 214, 120, .38), rgba(255, 190, 90, .12) 55%, transparent 75%),
  radial-gradient(ellipse at 50% 80%, #1e3a6a, #0a1530 70%); }
.svp-item.pro .svp-stage::before { width: 200px; height: 200px; margin: -100px 0 0 -100px; top: 45%;
  background: radial-gradient(circle, rgba(255, 236, 170, .55), rgba(255, 200, 100, .18) 45%, transparent 70%);
  -webkit-mask: none; mask: none; animation: svpGlow 3.6s ease-in-out infinite; }
@keyframes svpGlow { 0%, 100% { opacity: .65; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
/* 体験版の人：暗い影の後ろから、光のにじみがときどき漏れる */
.svp-item.pro.locked .svp-stage::before { animation: svpGlow 3.6s ease-in-out infinite, pdPeek 3.2s ease-in-out infinite; }
.svp-mote { position: absolute; left: var(--x); bottom: -6px; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: #fff6d0; box-shadow: 0 0 6px 2px rgba(255, 210, 110, .8); animation: svpMote var(--d) linear infinite; animation-delay: var(--dl); }
@keyframes svpMote { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: .9; } 100% { transform: translateY(-170px); opacity: 0; } }
.svp-item.pro.locked .svp-mote { opacity: .35; }
/* しもべの後ろの後光も、線ではなく光のにじみに（対局で運ぶ時も同じ） */
.fx-servant.pro-sv .sv-halo { width: 150px; height: 150px; margin: -75px 0 0 -75px;
  background: radial-gradient(circle, rgba(255, 236, 170, .6), rgba(255, 200, 100, .2) 45%, transparent 70%);
  -webkit-mask: none; mask: none; animation: svpGlow 2.4s ease-in-out infinite; }
body.lite .svp-mote { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .svp-mote { animation: none; opacity: 0; } .svp-item.pro .svp-stage::before, .fx-servant.pro-sv .sv-halo { animation: none; } }
/* 一覧の製品版の札：絵の重心（体の中心）を窓の真ん中に。幅は窓の8割ほど（端が切れないように）
   style.css の .svp-stage .fx-servant.demo:not(.flames):not(.hotaru) より強くするため .svp-item.pro から書く */
.svp-item.pro .svp-stage .fx-servant.raiju.demo { top: 50%; scale: 1.12; margin: var(--my, 0) 0 0 var(--mx, 0); }
.svp-item.pro .svp-stage .fx-servant.houou.demo { top: 50%; scale: .93; margin: var(--my, 0) 0 0 var(--mx, 0); }
.svp-item.pro .svp-stage .fx-servant.raiju.demo { --mx: 11px; --my: 20px; }
.svp-item.pro .svp-stage .fx-servant.houou.demo { --mx: -10px; --my: -1px; }
@media (max-height: 520px) and (min-aspect-ratio: 3/2) {
  .svp-item.pro .svp-stage .fx-servant.raiju.demo { scale: .82; --mx: -12px; --my: -3px; }
  .svp-item.pro .svp-stage .fx-servant.houou.demo { scale: .7; --mx: -27px; --my: -13px; }
}

/* ---- 製品版のしもべは糸で吊らない（2026-11-19 作者「牌の上に被ってる縦線の棒みたいなのなに？」）
   つかむ所はしもべの中心から --lift 下（牌の位置）。牌くらいの大きさの枠の中に、雷獣は稲妻、鳳凰は炎 */
.sv-grip { position: absolute; left: 50%; top: calc(50% + var(--lift)); width: 40px; height: 52px; margin: -26px 0 0 -20px; pointer-events: none; opacity: 0; }
.svp-stage .svp-grip { top: 134px; opacity: 1; z-index: 3; }
@media (max-height: 520px) and (min-aspect-ratio: 3/2) { .svp-stage .svp-grip { top: 104px; } }
/* 雷獣：牌の四辺に、小さな稲妻（ぎざぎざの光）がまとわりついて明滅する。牌が雷で浮いているように */
.sv-grip.raiju { filter: drop-shadow(0 0 4px rgba(190, 150, 255, .95)) drop-shadow(0 0 8px rgba(255, 220, 120, .7)); }
.sv-zap { position: absolute; width: 22px; height: 9px; background: linear-gradient(90deg, #fff, #e6d4ff 50%, #ffe68c);
  clip-path: polygon(0 55%, 22% 10%, 38% 60%, 58% 0, 74% 55%, 100% 25%, 100% 45%, 76% 80%, 58% 30%, 40% 95%, 22% 45%, 0 80%);
  animation: svZap .32s steps(2, end) infinite; animation-delay: calc(var(--i) * -.09s); }
.sv-zap:nth-child(1) { left: -8px; top: 6px; transform: rotate(-70deg); }
.sv-zap:nth-child(2) { right: -8px; top: 18px; transform: rotate(75deg); }
.sv-zap:nth-child(3) { left: 4px; bottom: -6px; transform: rotate(8deg); }
.sv-zap:nth-child(4) { right: 2px; top: -5px; transform: rotate(-12deg); }
@keyframes svZap { 0% { opacity: 1; } 50% { opacity: .25; } 100% { opacity: 1; } }
/* 鳳凰：牌のまわりを金と朱の炎が包む（炎は牌の後ろと横から、ゆらゆら） */
.sv-grip.houou { filter: drop-shadow(0 0 6px rgba(255, 150, 60, .9)); }
.sv-flame { position: absolute; bottom: -6px; width: 20px; height: 34px; border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 85%, #fffbe0, #ffd84a 35%, #ff7a2a 65%, rgba(224, 40, 30, 0) 80%); mix-blend-mode: screen;
  transform-origin: 50% 100%; animation: svFlame .45s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.15s); }
.sv-flame:nth-child(1) { left: -10px; }
.sv-flame:nth-child(2) { left: 10px; bottom: -10px; width: 24px; height: 22px; opacity: .8; }
.sv-flame:nth-child(3) { right: -10px; }
@keyframes svFlame { from { transform: scaleY(.85) rotate(-6deg); } to { transform: scaleY(1.12) rotate(6deg); } }
body.lite .sv-zap, body.lite .sv-flame { animation: none; }
@media (prefers-reduced-motion: reduce) { .sv-zap, .sv-flame { animation: none; } }

/* ---- 製品版のしもべの絵：止まった1枚の絵を、ふわっと上下させるだけ（transform だけ）。
   切り抜いて羽ばたかせる作りは「不自然」だったのでやめた（2026-11-19）。軽量モードと「動きを減らす」では止める */
.fx-servant.pro-sv .sv-body { animation: none; }
.sv-art { position: relative; will-change: transform; animation: svArtBob 1.6s ease-in-out infinite; }
.fx-servant:not(.demo) .sv-art { animation-duration: .6s; }
.sv-art .sv-l { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
@keyframes svArtBob { 0%, 100% { transform: translateY(2%); } 50% { transform: translateY(-3%); } }
.svp-item.pro.locked .sv-art { animation: none; }
body.lite .sv-art { animation: none; }
@media (prefers-reduced-motion: reduce) { .sv-art { animation: none; } }
/* 鳳凰の炎：牌の両脇と下から立ちのぼる細い炎の舌（大きな塊に見えないよう細く・半透明に） */
.sv-flame { width: 11px; height: 30px; bottom: 2px; opacity: .85;
  background: radial-gradient(ellipse 50% 60% at 50% 80%, #fffbe0, #ffd84a 30%, #ff8a2a 60%, rgba(224, 40, 30, 0) 85%); }
.sv-flame:nth-child(1) { left: -7px; }
.sv-flame:nth-child(2) { left: 50%; margin-left: -9px; bottom: -8px; width: 18px; height: 16px; opacity: .7; }
.sv-flame:nth-child(3) { right: -7px; }
/* 雷獣の稲妻：少し大きく、はっきり */
.sv-zap { width: 26px; height: 10px; }
/* 一覧の札の動画（金の鳳凰）。動画の背景の藍は lighten で札の舞台に溶かす（四角い枠が見えないように） */
/* 一覧の札の動画は、窓の幅いっぱいに置く（鳳凰は羽を一番広げた時に動画の端近くまで届くので、窓の幅＝動画の幅にする）。
   動画の四角い縁だけを細くぼかして、舞台になじませる */
.svp-stage .fx-servant.demo.has-vid .sv-art { visibility: hidden; }
.svp-stage .svp-vid { position: absolute; left: 2%; width: 96%; top: 46%; aspect-ratio: 440 / 300; translate: 0 -50%; z-index: 2; pointer-events: none; object-fit: contain;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect; }
.svp-stage .svp-tile, .svp-stage .svp-grip { z-index: 3; }
/* 動画の時は、しもべの後光（動画の上にかぶって白っぽくなる）を出さない。光のにじみは舞台の後ろのものだけ */
.svp-stage .fx-servant.demo.has-vid .sv-halo { display: none; }
.svp-stage .fx-servant.demo.has-vid { z-index: 1; }


/* 2026-11-19 直し：引き継ぎ番号の欄（JF-XXXX-XXXX が端まで見える幅）・まちがいの案内は欄の下に */
.pd-setcode .pd-input { width: 196px; box-sizing: border-box; padding: 8px 10px; font-size: 14px; letter-spacing: .5px; text-align: center; }
.set-row:has(> .pd-seterr:empty) { display: none; }
.set-row:has(> .pd-seterr) { padding-top: 0; justify-content: flex-end; }
.pd-seterr { flex: 1; display: flex; justify-content: flex-end; }
.pd-seterr-tx { display: inline-block; max-width: 100%; padding: 6px 12px; border-radius: 10px; text-align: right;
  background: linear-gradient(180deg, #fff1f1, #ffe0e0); border: 2px solid #e05a6a; color: #9a0a22;
  font: 800 14px/1.45 "M PLUS Rounded 1c", sans-serif; box-shadow: 0 2px 0 rgba(150, 10, 30, .25); }
.pd-seterr.on .pd-seterr-tx { animation: pdErrIn .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pdErrIn { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
/* 部屋の帯：字が枠からはみ出さないように */
.pd-host.lobby { max-width: min(980px, calc(100vw - 32px)); box-sizing: border-box; }
.pd-host.lobby .pd-host-small { min-width: 0; }
/* 支払いの確かめが遅れている時の画面（体験版に戻った時のお知らせと同じ箱） */
.pd-later .pd-moved-box > b { letter-spacing: 2px; }

/* ================= 2026-11-19 直し：iPhone の横向き（Safari）で、字が枠からはみ出す・右の列が切れる =================
   Safari は「折り返さない字（.nb）」が続くと、その間でも折り返さない。そのせいで札や条件の列が字の長さまで広がっていた。
   .nb を1つずつの塊（inline-block）にして、塊と塊の間（意味の切れ目）でだけ折り返せるようにする。
   列は minmax(0, …) にして、字の長さで広がらないようにする */
.pd-box .nb, .pd-bookbar .nb, .pd-show .nb { display: inline-block; }
.pd-lower { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
.pd-lower > * { min-width: 0; }

/* 増える物（5つ）：カードの札を左に大きく（2段分）、残りの4つ（半荘戦・リプレイ・ルール・製品版だけのしもべ）を右に2段×2つ */
.pd-confirm .pd-bens { grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; gap: 8px 10px; }
.pd-confirm .pd-ben { min-height: 0; padding: 5px 8px 5px 6px; gap: 0; }
.pd-confirm .pd-ben.cards { grid-row: span 2; padding: 8px 6px 8px 8px; }
.pd-confirm .pd-ic { width: 66px; height: 66px; margin: -6px -10px -6px -4px; z-index: 1; }
.pd-confirm .pd-ben-tx { padding: 4px 10px 5px 16px; }
.pd-confirm .pd-ben-tx b { font-size: 21px; line-height: 1.2; white-space: nowrap; }
.pd-confirm .pd-ben-small { font-size: 18px !important; line-height: 1.25 !important; white-space: nowrap; }
/* カードの札：メダルと字を大きく、右に鍵付きだったカードの扇を大きく */
.pd-confirm .pd-ben.cards .pd-ic { width: 96px; height: 96px; margin: -8px -14px -8px -6px; }
.pd-confirm .pd-ben.cards .pd-ben-tx { flex: 0 1 auto; padding: 7px 12px 8px 20px; }
.pd-confirm .pd-ben.cards .pd-ben-tx b { font-size: 25px; }
.pd-confirm .pd-ben.cards .pd-ben-small { font-size: 20px !important; }
.pd-confirm .pd-ben-fan { flex: 1 0 128px; width: auto; height: 118px; margin: 0 0 0 4px; }
.pd-confirm .pd-ben-fan img { width: 54px; height: 76px; margin-left: -27px; bottom: 8px; transform-origin: 50% 150%; }
/* 製品版だけのしもべの札：金と紫の雷の縁が光る（カードの札と同じく、目を引く札に） */
.pd-ben.servant { border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%) padding-box,
    radial-gradient(120% 140% at 0% 50%, #6a3aa8, #2a1450 55%, #12082a) padding-box,
    linear-gradient(180deg, #fffbe0, #f2c24a 30%, #8a5200 55%, #ffe58a) border-box;
  box-shadow: 0 4px 0 #1a0830, 0 8px 16px rgba(0, 0, 0, .45), 0 0 0 2px #fff3a0, 0 0 22px rgba(190, 140, 255, .75); }
.pd-chip.servant { background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 50%), linear-gradient(90deg, #fff0b0, #ffd860 45%, #e6c8ff);
  box-shadow: 0 0 0 2px #8a5200, 0 0 10px rgba(190, 140, 255, .8), 0 2px 4px rgba(0, 0, 0, .4); }

/* 図鑑の鍵付きカード：横長の画面では、カードの右に案内を並べる（重ならない・はみ出さない幅に決める） */
@media (min-aspect-ratio: 5/4) {
  .overlay.bookzoom:has(.pd-bookbar) { flex-direction: row; gap: 14px; }
  .pd-bookbar { flex: none; flex-direction: column; flex-wrap: nowrap; width: 312px; max-width: none; box-sizing: border-box; padding: 10px 12px 12px; gap: 8px; text-align: center; }
}
.pd-bookbar { box-shadow: 0 0 0 2px #e7c46a, 0 0 0 4px rgba(90, 50, 0, .9), 0 0 18px rgba(255, 200, 90, .45), 0 6px 16px rgba(0, 0, 0, .6);
  background: radial-gradient(120% 60% at 50% 0%, rgba(120, 160, 255, .28), transparent 60%), linear-gradient(180deg, #1c2c70 0%, #0c1640 55%, #050a1e 100%); }
.pd-bb-lead { color: #ffe9a8; font: 900 16px/1.3 "M PLUS Rounded 1c", sans-serif; text-shadow: 0 1px 0 #000; }
/* 札：カード80枚を1段目に大きく、残りの4つを2つずつ */
.pd-chips.book { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 7px 6px; }
.pd-chips.book .pd-chip.cards { grid-column: 1 / -1; justify-self: center; }
.pd-chips.book .pd-chip { justify-self: start; }
.pd-hosttag.book { flex-direction: column; align-items: center; border-radius: 12px; padding: 4px 12px 5px; }
.pd-hosttag.book > b { font-size: 15px; }
.pd-hosttag.book > small { font-size: 13px; }
.pd-bookbar .pd-mini { font-size: 16px; padding: 7px 18px; }
@media (min-aspect-ratio: 5/4) and (min-height: 601px) {
  .pd-bookbar { width: 380px; padding: 14px 16px 16px; gap: 12px; }
  .pd-bb-lead { font-size: 20px; }
  .pd-hosttag.book > b { font-size: 19px; }
  .pd-hosttag.book > small { font-size: 15px; }
  .pd-bookbar .pd-mini { font-size: 19px; padding: 9px 24px; }
}

/* 開放の演出：増える物5つを横一列に（カードの札を少し広く） */
.pd-stage2 .pd-bens.show { left: 24px; right: 24px; grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); gap: 8px; }
.pd-stage2 .pd-bens.show .pd-ic { width: 74px; height: 74px; margin: 0 -14px 0 0; }
.pd-stage2 .pd-bens.show .pd-ben-tx { padding: 5px 6px 6px 18px; }
.pd-stage2 .pd-bens.show .pd-ben-tx b { font-size: 17px; white-space: nowrap; }
.pd-stage2 .pd-bens.show .pd-ben-small { font-size: 13px; line-height: 1.3; }
.pd-stage2 .pd-bens.show .pd-ben.cards .pd-ic { width: 84px; height: 84px; }
.pd-stage2 .pd-bens.show .pd-ben-tx, .pd-stage2 .pd-bens.show .pd-ben-tx * { letter-spacing: 0; }
.pd-stage2 .pd-bens.show .pd-ben-small { white-space: nowrap; }
.pd-stage2 .pd-bens.show .pd-ic { width: 70px; height: 70px; }
/* 「製品版だけのしもべ」は字が多いので、右端の札だけ少し広くして、字を少し小さくする（はみ出さない・1行のまま） */
.pd-stage2 .pd-bens.show { grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); }
.pd-stage2 .pd-bens.show .pd-ben.servant .pd-ben-tx b { font-size: 15.5px; }
/* 確認画面：札の光の筋は札の中だけ（外に出ると、確認画面が横に動かせてしまう）。カードの字は扇に押されて縮まない */
.pd-box { overflow-x: hidden; }
.pd-confirm .pd-ben-tx { overflow: hidden; }
.pd-confirm .pd-ben.cards .pd-ben-tx { flex: none; }
.pd-confirm .pd-ben-fan { flex: 1 1 0; min-width: 0; }
/* カードの札の扇：字の板の右の空きに収まる開き方に（字に重ならない・札の外に出ない） */
.pd-confirm .pd-ben.cards .pd-ben-tx b { font-size: 23px; }
.pd-confirm .pd-ben.cards .pd-ben-small { font-size: 19px !important; }
.pd-confirm .pd-ben-fan { align-self: stretch; height: auto; margin: 0 4px 0 6px; }
.pd-confirm .pd-ben-fan img { width: 60px; height: 84px; margin-left: -30px; bottom: 50%; margin-bottom: -46px; transform-origin: 50% 130%; transform: rotate(calc(var(--r) * .5)); }
/* 金属の大きい字（1人持ってれば、みんなで遊べる！）：「、」の後ろでだけ折り返す（2026-11-20 部屋の準備の画面で「みんなで／遊べる」と途中で折れていた）。
   各層の中の言葉の塊（.nb）を1つずつの箱にして、箱の中では折り返さない。金の塗りは塊ごとに付けて、2行になっても上下の色がそろうように */
.pd-host-big.mtx > span { white-space: normal; }
.pd-host-big.mtx .nb { display: inline-block; white-space: nowrap; }
.pd-host-big.mtx .l4 { background: none; }
.pd-host-big.mtx .l4 > .nb { background: var(--fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-host.lobby .pd-host-big { text-align: left; }
/* ホームの「製品版」の額（作者 2026-11-21「豪華な枠で飾って」）：漆の板に、黒ぶち→明るい金→濃い金→金の縁を重ねた額。
   左右の真ん中に宝石入りの菱、上下の真ん中に小さな金具、角にきらめき。動くのはきらめき（transform・opacity）だけ */
.pd-owned-plate { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 11px 28px 9px; margin: 10px 0 4px 6px; border-radius: 10px;
  background: radial-gradient(120% 140% at 50% 0%, #7a1a2c 0%, #40081a 55%, #14020a 100%);
  box-shadow: 0 0 0 2px #1a0804, 0 0 0 4.5px #fff3b0, 0 0 0 7px #b8801c, 0 0 0 9px #ffd86a, 0 0 0 11px #6a3a08,
    0 0 22px 6px rgba(255, 200, 80, .55), 0 8px 16px rgba(0, 0, 0, .7), inset 0 0 18px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 220, 160, .25); }
.pd-owned-plate .pd-owned { position: relative; z-index: 2; }
.pd-op-in { position: absolute; inset: 5px; border-radius: 6px; border: 1.5px solid rgba(255, 216, 106, .75); box-shadow: inset 0 0 0 1px rgba(26, 8, 4, .8); pointer-events: none; }
.pd-op-gem { position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; transform: rotate(45deg); z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #ffd0e0, #e8143c 45%, #5a0010 100%);
  box-shadow: 0 0 0 2px #1a0804, 0 0 0 4px #ffe08a, 0 0 0 5.5px #8a5a10, 0 0 10px rgba(255, 80, 110, .8); }
.pd-op-gem.l { left: -13px; } .pd-op-gem.r { right: -13px; }
.pd-op-hishi { position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); z-index: 3; pointer-events: none;
  background: linear-gradient(135deg, #fffbe0, #ffd86a 45%, #b86e0a 70%, #ffeb94); box-shadow: 0 0 0 1.5px #1a0804, 0 0 8px rgba(255, 210, 90, .8); }
.pd-op-hishi.t { top: -9px; } .pd-op-hishi.b { bottom: -9px; }
.pd-op-tw { position: absolute; width: 18px; height: 18px; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 2px, transparent 3px), linear-gradient(90deg, transparent 45%, #fff8d8 50%, transparent 55%), linear-gradient(0deg, transparent 45%, #fff8d8 50%, transparent 55%);
  filter: drop-shadow(0 0 4px #ffe08a); animation: pdOpTw 3.2s ease-in-out infinite; }
.pd-op-tw.t1 { left: -6px; top: -8px; } .pd-op-tw.t2 { right: -6px; bottom: -8px; animation-delay: 1.6s; }
@keyframes pdOpTw { 0%, 60%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 75% { opacity: 1; transform: scale(1) rotate(45deg); } }
body.lite .pd-op-tw { animation: none; }
@media (prefers-reduced-motion: reduce) { .pd-op-tw { animation: none; } }
/* 「製品版」の額を黄色の板に（作者 2026-11-21「色が一緒で見にくい。黄色ベースで」）：明るい山吹の板に、朱〜深紅の金属文字。縁の金は濃くして板と分ける */
.pd-owned-plate { background: radial-gradient(130% 150% at 50% 0%, #fffbe0 0%, #ffe56a 32%, #ffc81e 62%, #e89a10 100%);
  box-shadow: 0 0 0 2px #2a0e02, 0 0 0 4.5px #fff8d8, 0 0 0 7px #8a4a08, 0 0 0 9px #ffd86a, 0 0 0 11px #4a2004,
    0 0 22px 6px rgba(255, 210, 80, .6), 0 8px 16px rgba(0, 0, 0, .7), inset 0 0 14px rgba(150, 70, 0, .45), inset 0 3px 0 rgba(255, 255, 255, .7); }
.pd-owned-plate .pd-op-in { border-color: rgba(138, 74, 8, .85); box-shadow: inset 0 0 0 1px rgba(255, 248, 216, .9); }
.pd-owned-plate .pd-owned.mtx.gold { --rim1: #fff2d0; --rim2: #3a0000;
  --fill: linear-gradient(180deg, #ff9a7a 0%, #ff3a2a 30%, #c80018 48%, #5a0008 53%, #b0101c 72%, #ff6a4a 100%); }
.pd-owned-plate .pd-owned .l1 { filter: drop-shadow(0 2px 2px rgba(80, 30, 0, .55)); }
