:root{
  --orange:#efad1d; --lime:#dede37; --green:#84c164; --teal:#067b7b;
  --blue:#2b6ea9; --sky:#4792d0; --purple:#b569a7; --red:#ea545f;
  --text:#3e3a39; --bg:#FAFAF7; --card:#FFFFFF; --line:#E5E5E0; --key:#067b7b;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:"Inter","Noto Sans JP",sans-serif;
  color:var(--text); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.6;
}
button{font-family:inherit;color:inherit;cursor:pointer;border:none;background:none}
a{color:var(--key)}
.strip{display:flex;height:6px;width:100%}
.strip>span{flex:1}
.strip>span:nth-child(1){background:var(--orange)}
.strip>span:nth-child(2){background:var(--lime)}
.strip>span:nth-child(3){background:var(--green)}
.strip>span:nth-child(4){background:var(--teal)}
.strip>span:nth-child(5){background:var(--blue)}
.strip>span:nth-child(6){background:var(--sky)}
.strip>span:nth-child(7){background:var(--purple)}
.strip>span:nth-child(8){background:var(--red)}

.wrap{max-width:920px;margin:0 auto;padding:20px 18px 56px}
.topbar{padding:14px 18px;border-bottom:1px solid var(--line);background:var(--card)}
.topbar .inner{max-width:920px;margin:0 auto;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.brand{font-weight:700;font-size:15px;letter-spacing:.01em}
.brand .jp{font-weight:500;font-size:12px;margin-left:6px;opacity:.7}
.meta{margin-left:auto;font-size:12px;opacity:.7}

h1{font-size:26px;font-weight:700;letter-spacing:.01em;margin-bottom:6px}
h2{font-size:18px;font-weight:700;margin-bottom:8px}
.lead{font-size:14px;opacity:.85;max-width:46em}
.section-label{font-size:12px;font-weight:700;letter-spacing:.08em;opacity:.6;margin:26px 0 10px}

.panel{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px}
.panel + .panel{margin-top:14px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--key);color:#fff;font-weight:600;font-size:15px;
  padding:13px 22px;border-radius:8px;transition:opacity .12s}
.btn:hover{opacity:.9}
.btn:disabled{opacity:.35;cursor:default}
.btn.full{width:100%}
.btn.ghost{background:#fff;color:var(--text);border:1px solid var(--line)}
.btn.ghost:hover{border-color:#cfcfca;opacity:1}
.btn.small{font-size:13px;padding:9px 16px}
.btn.danger{background:var(--red);color:#fff;border-color:var(--red)}
.btn.danger:hover{opacity:.9;border-color:var(--red)}
.btn.ghost.snd-on{border-color:var(--teal);color:var(--teal)}

.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.spacer{flex:1}

.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-size:12px;font-weight:700;letter-spacing:.04em;opacity:.7}
.field input{font-family:inherit;font-size:15px;color:var(--text);
  padding:12px 13px;border:1px solid var(--line);border-radius:8px;background:#fff}
.field input:focus{outline:none;border-color:var(--key)}

.dot{width:16px;height:16px;border-radius:50%;flex:none}

/* cards — 実物カード画像 */
.cv{position:relative;background:var(--card);border:1px solid var(--line);border-radius:12px;
  overflow:hidden;line-height:0;aspect-ratio:63/88}
.cv img{width:100%;height:100%;object-fit:cover;display:block}
.cv.sel{border-color:var(--key);box-shadow:0 0 0 2px var(--key)}
.cv.click{cursor:pointer;transition:border-color .12s,box-shadow .12s}
.cv.click:hover{border-color:#bdbdb8}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.grid.hand{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}
.grid.sm{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}

/* card back / deck */
.back{background:var(--key);border-radius:12px;min-height:148px;display:flex;
  flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;border:none}
.back .mark{display:flex;gap:3px}
.back .mark span{width:7px;height:18px;border-radius:4px;display:block}
.back .lbl{font-size:12px;font-weight:600;letter-spacing:.02em;opacity:.95}
.back .cnt{font-size:12px;opacity:.8}
/* 裏向き（枚数のみ）小型カード */
.cvback{aspect-ratio:63/88;border-radius:12px;background:var(--key);position:relative;
  display:flex;align-items:center;justify-content:center}
.cvback .mk{display:flex;gap:2px}
.cvback .mk span{width:5px;height:13px;border-radius:3px;display:block}

.src{cursor:pointer;text-align:center}
.src .cap{font-size:12px;font-weight:600;margin-bottom:7px;display:flex;align-items:center;justify-content:center;gap:6px}

.instr{font-size:14px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--key);
  border-radius:6px;padding:12px 14px;margin-bottom:14px}
.instr .sub{font-size:12.5px;opacity:.7;margin-top:4px}

/* discard history / 場 */
.histwrap{max-height:440px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;
  padding:14px;background:#fff}
.histgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px}
.histcell .cap{font-size:11px;font-weight:600;display:flex;align-items:center;gap:5px;
  margin-bottom:6px;opacity:.85}
.histcell .dot{width:9px;height:9px;border-radius:50%;flex:none}

/* ホバー拡大プレビュー（テーブル・手札） */
.cardprev{position:fixed;z-index:1200;border-radius:12px;overflow:hidden;line-height:0;
  border:1px solid var(--line);background:#fff;box-shadow:0 14px 40px rgba(40,44,94,.28);
  pointer-events:none;animation:prevpop .12s ease}
.cardprev img{width:100%;height:100%;object-fit:cover;display:block}
@keyframes prevpop{0%{opacity:0;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}

/* flying card animation */
.flycard{position:fixed;z-index:1000;border-radius:12px;overflow:hidden;line-height:0;
  pointer-events:none;border:1px solid var(--line);background:#fff;will-change:transform,opacity}
.flycard img{width:100%;height:100%;object-fit:cover;display:block}
@keyframes pop{0%{transform:scale(.92)}55%{transform:scale(1.05)}100%{transform:scale(1)}}

/* reveal */
.player-block{border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px;margin-bottom:14px}
.player-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.player-head .nm{font-weight:700;font-size:17px}
.player-head .tag{margin-left:auto;font-size:12px;opacity:.6}

.hint{font-size:12.5px;opacity:.65;margin-top:8px}
.center{text-align:center}
.muted{opacity:.7}
.pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;
  border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600}
.turnbadge{display:inline-flex;align-items:center;gap:9px;font-weight:600;font-size:14px;
  border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 16px}

/* waiting room / groups */
.glist{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.gcard{border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:10px}
.gcard .gname{font-weight:700;font-size:16px}
.gcard .gmeta{font-size:12px;opacity:.7}
.gcard.sel{border-color:var(--key);box-shadow:inset 0 0 0 1px var(--key)}
.gcard.resultcard{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.gcard.resultcard .gmeta{color:var(--red);font-weight:700}
.btn.result{background:var(--red)}
.avatars{display:flex;flex-wrap:wrap;gap:6px}
.avatar{display:inline-flex;align-items:center;gap:6px;font-size:12px;border:1px solid var(--line);
  border-radius:999px;padding:4px 10px;background:#fff}
.avatar.away{opacity:.5;border-style:dashed}
.avatar .dot{width:9px;height:9px}

/* facilitator monitor */
.mon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.mon-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px}
.mon-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.mon-head .nm{font-weight:700}
.mon-player{border-top:1px dashed var(--line);padding-top:10px;margin-top:10px}
.mon-player .pn{font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;margin-bottom:6px}

.banner{font-size:13px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 14px}
.err{color:var(--red);font-size:13px;margin-top:8px;min-height:18px}
footer{text-align:center;font-size:11px;opacity:.5;padding:24px 0 6px}

/* ===== online v2 ===== */
/* 自分の番ハイライト（赤） */
.yourturn{background:var(--red);color:#fff;border-radius:12px;padding:13px 18px;font-weight:700;font-size:18px;text-align:center;letter-spacing:.02em}
.actionmsg{font-size:13.5px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--red);border-radius:6px;padding:10px 14px;margin:10px 0}
.src.actionable .dtop{box-shadow:0 0 0 3px var(--red)}
.table-hi{box-shadow:0 0 0 3px var(--red);border-radius:12px}

/* 紙カードの背面（支給の背面画像をそのまま） */
.cback{aspect-ratio:63/88;border-radius:6px;overflow:hidden;line-height:0}
.cbimg{width:100%;height:100%;object-fit:cover;display:block}
/* 山札（背面の積み重ね） */
.dstack{position:relative;width:124px;height:172px}
.dlayer{position:absolute;width:120px;height:168px;border-radius:10px;overflow:hidden;background:#242c5e}
.dlayer .cbimg{width:100%;height:100%;object-fit:cover}
.dtop{z-index:10}
.dctop{position:absolute;top:11px;left:0;right:0;text-align:center;color:#fff;font-size:11px;font-weight:600;letter-spacing:.04em;opacity:.92}
.dcbot{position:absolute;bottom:9px;left:0;right:0;text-align:center;color:#fff;font-size:11px;font-weight:500;opacity:.9;letter-spacing:.02em}
.deckempty{width:120px;height:168px;border:2px dashed var(--line);border-radius:10px;display:flex;
  align-items:center;justify-content:center;font-size:12px;color:#9a9a95;text-align:center;padding:10px}
/* 円形タイマー（クリーンなカードに収める） */
.ctcard{width:124px;background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:11px 12px 13px;display:flex;flex-direction:column;align-items:center;gap:7px;box-sizing:border-box}
.ctcap{font-size:10px;font-weight:700;letter-spacing:.08em;opacity:.55}
.ctimer{position:relative;width:76px;height:76px;flex:none}
.ctimer svg{transform:rotate(-90deg);display:block}
.ctimer .track{stroke:#eeeeea;stroke-width:6;fill:none}
.ctimer .prog{stroke:var(--teal);stroke-width:6;fill:none;stroke-linecap:round;transition:stroke-dashoffset .25s linear}
.ctimer.warn .prog{stroke:var(--red)}
.ctimer .cnum{position:absolute;left:0;right:0;top:0;bottom:17px;display:flex;align-items:center;justify-content:center;font-size:25px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.ctimer .csec{position:absolute;left:0;right:0;bottom:14px;text-align:center;font-size:10px;font-weight:600;opacity:.5}
.ctimer.warn .cnum{color:var(--red)}
@keyframes tpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.ctimer.warn{animation:tpulse .7s ease-in-out infinite}
/* ヘッダーの参加者チップ */
.ph-players{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end;flex:1;min-width:0}
.pchip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;
  border-radius:999px;padding:5px 11px;font-size:12.5px;font-weight:600}
.pchip .dot{width:9px;height:9px}
.pchip b{font-weight:700;background:#f3f3ef;border-radius:6px;padding:0 6px;font-size:11px}
.pchip i{font-style:normal;font-size:10px;font-weight:700;color:var(--red)}
.pchip.turn{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
/* 山札＋タイマー列 */
.deckcol{display:flex;flex-direction:column;align-items:center;gap:14px;flex:none}
.deckgap{height:0}
/* 参加者一覧：手番の人を枠で囲う */
.pwrap{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-start}
.pcell{text-align:center;border:2px solid transparent;border-radius:12px;padding:8px 10px;min-width:84px}
.pcell.turn{border-color:var(--red);background:#fff}
.pcell .pn{font-size:11px;font-weight:600;display:flex;gap:5px;justify-content:center;align-items:center;margin-bottom:5px}
.pcell .pn .dot{width:9px;height:9px}
.pcell .turnlabel{font-size:10px;font-weight:700;color:var(--red);margin-top:3px}
/* 最終ラウンド告知 */
.finalnote{background:#fff;border:1px solid var(--orange);border-left:4px solid var(--orange);border-radius:8px;padding:10px 13px;font-size:13.5px;margin:8px 0}
.finalnote b{font-weight:700}

/* コンパクト対戦レイアウト（1画面） */
.playhead{display:flex;align-items:center;gap:10px 14px;margin-bottom:6px;flex-wrap:wrap}
.playhead .ph-l{min-width:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ph-title{font-size:18px;font-weight:700}
.turnbadge.mine{background:var(--red);color:#fff;border-color:var(--red)}
.minilabel{font-size:11px;font-weight:700;letter-spacing:.06em;opacity:.55;margin:9px 0 5px}
.actionmsg{margin:8px 0}
.actionmsg.muted{border-left-color:var(--line)}
.playmid{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
#deckspot{flex:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center}
.tablebox{flex:1;min-width:240px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px 8px}
.tablebox .minilabel{margin:0 0 8px}
.tablegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px;
  overflow-y:auto;max-height:360px;padding-right:2px}
.tablegrid .histcell .cap{font-size:11px}
.tablestrip-empty{display:flex;align-items:center;color:#9a9a95;font-size:12.5px;min-height:120px}
.pstrip{display:flex;gap:10px;flex-wrap:wrap}
.handstrip{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:10px}
.logbox.compact{max-height:74px}
/* タイマー */
.timerwrap{display:flex;align-items:center;gap:10px;margin:6px 0 12px}
.timerbar{flex:1;height:8px;background:#ececE8;border-radius:4px;overflow:hidden}
.timerbar>i{display:block;height:100%;width:100%;background:var(--teal);transition:width .25s linear}
.timerbar.warn>i{background:var(--red)}
.timernum{font-weight:700;font-size:14px;min-width:58px;text-align:right}
/* ログ */
.logbox{max-height:150px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 12px}
.logline{font-size:13px;padding:3px 0;border-bottom:1px dashed #f0f0ec}
.logline:last-child{border-bottom:none}
.logline b{font-weight:700}
.logline .me{color:var(--blue)}
/* 確認モーダル（全画面） */
.modal{position:fixed;inset:0;background:rgba(62,58,57,.55);display:flex;align-items:center;justify-content:center;z-index:1100;padding:20px}
.modal .box{background:#fff;border-radius:12px;max-width:430px;width:100%;padding:26px 22px 22px;text-align:center}
.modal .q{font-size:21px;font-weight:700;margin:6px 0}
.modal .qs{font-size:13px;opacity:.7}
.modal .mc{width:150px;margin:16px auto 4px}
.modal .acts{display:flex;gap:12px;margin-top:18px}
.modal .acts .btn{flex:1}
/* 結果：重要カード */
.cvwrap{position:relative}
.cvwrap.imp .cv{box-shadow:0 0 0 3px var(--orange)}
.cvwrap.pick{cursor:pointer}
.impbadge{display:inline-block;font-size:11px;font-weight:700;color:#fff;background:var(--orange);border-radius:999px;padding:2px 9px;margin-bottom:6px}
.proc{margin-top:12px;background:#fcfcfa;border:1px solid var(--line);border-radius:8px;padding:12px;max-height:220px;overflow-y:auto}
.proc .pl{font-size:12.5px;padding:3px 0;border-bottom:1px dashed #efefea}
.proc .pl:last-child{border-bottom:none}
.proc .pl b{font-weight:700}
.sharebtns{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.sharebtns .btn{color:#fff}

/* ===== UXテスト後の改善 ===== */
/* あなたの番トースト */
.turntoast{position:fixed;left:50%;top:38%;transform:translate(-50%,-50%);z-index:1500;
  background:var(--red);color:#fff;font-weight:700;font-size:26px;letter-spacing:.04em;
  padding:20px 44px;border-radius:12px;pointer-events:none;animation:toastpop 1.9s ease forwards}
@keyframes toastpop{0%{opacity:0;transform:translate(-50%,-50%) scale(.85)}10%{opacity:1;transform:translate(-50%,-50%) scale(1.02)}16%{transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0}}
/* 最終ラウンドの幕間 */
.interstitial{position:fixed;inset:0;z-index:1500;background:rgba(36,44,94,.93);
  display:flex;align-items:center;justify-content:center;pointer-events:none;animation:interfade 2.3s ease forwards}
.interstitial .ibox{text-align:center;color:#fff;padding:0 24px}
.interstitial .it{font-size:30px;font-weight:700;margin-bottom:12px}
.interstitial .is{font-size:14.5px;opacity:.85;line-height:1.9}
@keyframes interfade{0%{opacity:0}8%{opacity:1}82%{opacity:1}100%{opacity:0}}
/* 直近アクションのフラッシュ表示 */
.flashlog{position:fixed;top:64px;left:50%;transform:translateX(-50%);z-index:1400;max-width:90vw;
  background:#fff;border:1px solid var(--line);border-left:4px solid var(--red);border-radius:8px;
  padding:10px 18px;font-size:13.5px;pointer-events:none;animation:flashfade 2.6s ease forwards;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes flashfade{0%{opacity:0;transform:translate(-50%,-8px)}8%{opacity:1;transform:translate(-50%,0)}80%{opacity:1}100%{opacity:0}}
/* 置かれたばかりのカード */
.newbadge{position:absolute;top:-7px;right:-6px;z-index:5;background:var(--red);color:#fff;
  font-size:9px;font-weight:700;letter-spacing:.06em;border-radius:999px;padding:2px 7px}
.newcard .cv{animation:newglow 1.6s ease-in-out 3}
@keyframes newglow{0%,100%{box-shadow:none}50%{box-shadow:0 0 0 3px var(--orange)}}
/* タイマー2段階警告 */
.ctimer.caution .prog{stroke:var(--orange)}
.ctimer.caution .cnum{color:var(--orange)}
/* 参加者チップ：順番とNEXT */
.pchip .pnum{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;
  border-radius:50%;background:#f0f0ec;font-size:10px;font-weight:700;flex:none}
.pchip u{text-decoration:none;font-size:9px;font-weight:700;color:var(--orange);letter-spacing:.06em}
/* モーダル内ミニタイマー */
.mtimer{font-size:12px;color:var(--red);font-weight:700;min-height:16px;margin-top:4px}
/* あそびかた3ステップ */
.howto{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;max-width:680px}
.hstep{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px 14px;font-size:13px;line-height:1.7}
.hstep b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;
  border-radius:50%;background:var(--teal);color:#fff;font-size:13px}
/* Open Qカード */
.qcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px 20px;text-align:center;margin-top:14px}
.qcard .qh{color:var(--key);font-weight:700;letter-spacing:.18em;font-size:13px;margin-bottom:12px}
.qcard .qt{font-size:17px;font-weight:500;line-height:1.8}
.qcard .qn{margin-top:12px;font-size:11px;letter-spacing:.1em;color:var(--key);opacity:.8}
/* 紙吹雪（8色ベタ塗り） */
.confetti{position:fixed;inset:0;z-index:1450;pointer-events:none;overflow:hidden}
.confetti span{position:absolute;top:-24px;border-radius:2px;animation:confall linear forwards}
@keyframes confall{0%{transform:translateY(0) rotate(0deg);opacity:1}90%{opacity:1}100%{transform:translateY(108vh) rotate(540deg);opacity:0}}

/* プロセス（ワーク経過）モーダル */
.procmodal{position:fixed;inset:0;background:rgba(62,58,57,.55);z-index:1100;display:flex;align-items:flex-start;justify-content:center;padding:28px 14px;overflow-y:auto}
.procmodal .pbox{background:#fff;border-radius:12px;max-width:1040px;width:100%;padding:26px 28px 36px;position:relative}
.procmodal .pclose{position:absolute;top:12px;right:14px;width:38px;height:38px;font-size:26px;line-height:1;color:#999;background:none;border:none;cursor:pointer}
.procmodal h2{font-size:23px;margin-bottom:4px}
.proc-turn{text-align:center;font-weight:700;font-size:15px;margin:20px 0 12px}
.proc-arrow{text-align:center;font-size:22px;color:#c4c4be;margin:6px 0}
.proc-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.proc-cell{position:relative;text-align:center}
.proc-mark{height:24px;font-size:20px;font-weight:700;margin-bottom:6px;line-height:1}
.proc-mark.keep{color:var(--teal)}
.proc-mark.drop{color:var(--red)}
.proc-cell .cv{transition:transform .18s cubic-bezier(.2,.6,.3,1)}
.proc-cell:hover{z-index:30}
.proc-cell:hover .cv{transform:scale(1.9);border-color:var(--key)}
@media(max-width:760px){ .proc-row{grid-template-columns:repeat(3,1fr)} .proc-cell:hover .cv{transform:scale(1.4)} }
.imphint{font-size:12px;opacity:.7;margin:2px 0 10px}
/* エクスポート用カード（オフスクリーン・シェア向けエディトリアル） */
.exp{position:fixed;left:-9999px;top:0;width:840px;background:#FAFAF7;
  font-family:"Inter","Noto Sans JP",sans-serif;color:#3e3a39}
.exp .estrip{display:flex;height:14px}
.exp .estrip>span{flex:1}
.exp .estrip>span:nth-child(1){background:var(--orange)}.exp .estrip>span:nth-child(2){background:var(--lime)}
.exp .estrip>span:nth-child(3){background:var(--green)}.exp .estrip>span:nth-child(4){background:var(--teal)}
.exp .estrip>span:nth-child(5){background:var(--blue)}.exp .estrip>span:nth-child(6){background:var(--sky)}
.exp .estrip>span:nth-child(7){background:var(--purple)}.exp .estrip>span:nth-child(8){background:var(--red)}
.exp .ebody{padding:46px 52px 42px}
.exp .eyebrow{font-size:13px;letter-spacing:.26em;color:var(--teal);font-weight:700}
.exp .etitle{font-size:36px;font-weight:700;line-height:1.24;margin:10px 0 6px;letter-spacing:.01em}
.exp .ename{font-size:16px;color:#8f8f8a;margin-bottom:30px}
.exp .ename b{color:#3e3a39;font-weight:700}
.exp .hero{display:flex;gap:28px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px}
.exp .hero .hc{width:176px;flex:none;border-radius:12px;overflow:hidden;border:3px solid var(--orange);line-height:0}
.exp .hero .hc img{width:100%;display:block}
.exp .hero .ht{flex:1}
.exp .hero .hlab{display:inline-block;font-size:12px;font-weight:700;color:#fff;background:var(--orange);border-radius:999px;padding:5px 14px;margin-bottom:14px;letter-spacing:.04em}
.exp .hero .hw{font-size:34px;font-weight:700;line-height:1.15}
.exp .hero .hd{font-size:14.5px;color:#6e6e69;margin-top:10px;line-height:1.75}
.exp .olab{font-size:12px;font-weight:700;letter-spacing:.14em;color:#a6a6a1;margin:32px 0 16px}
.exp .orow{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.exp .orow.five{grid-template-columns:repeat(5,1fr);gap:16px}
.exp .ocard{border-radius:10px;overflow:hidden;border:1px solid var(--line);line-height:0;background:#fff}
.exp .ocard img{width:100%;display:block}
.exp .ocap{text-align:center;font-size:13px;font-weight:600;margin-top:9px}
.exp .foot{margin-top:38px;display:flex;justify-content:space-between;align-items:flex-end;border-top:2px solid var(--teal);padding-top:18px}
.exp .foot .bm{font-size:16px;font-weight:700;letter-spacing:.02em}
.exp .foot .bm small{display:block;font-size:11px;font-weight:500;color:#8f8f8a;margin-top:3px;letter-spacing:0}
.exp .foot .tg{font-size:13px;color:#8f8f8a;text-align:right;line-height:1.6}

/* スマホ：テーブルと手札のカードを同サイズ・同列数に揃える
   （テーブルは枠の内側ぶん少しだけ狭くなるが、列数を固定して食い違いを防ぐ） */
@media(max-width:560px){
  .playmid{gap:10px}
  .tablebox{padding:10px 8px 8px}
  .tablebox .minilabel{margin-bottom:6px}
  .tablegrid{grid-template-columns:repeat(3,1fr);gap:10px;max-height:none;overflow:visible}
  .handstrip{grid-template-columns:repeat(3,1fr);gap:10px}
}
@media(max-width:340px){
  .tablegrid,.handstrip{grid-template-columns:repeat(2,1fr)}
}

/* SNSリンクプレビュー用 横長OG画像（1200×630・オフスクリーンで生成） */
.og{position:fixed;left:-99999px;top:0;width:1200px;height:630px;background:#FAFAF7;
  font-family:"Inter","Noto Sans JP",sans-serif;color:#3e3a39;overflow:hidden}
.og .ostrip{display:flex;height:12px}
.og .ostrip>span{flex:1}
.og .ostrip>span:nth-child(1){background:var(--orange)}.og .ostrip>span:nth-child(2){background:var(--lime)}
.og .ostrip>span:nth-child(3){background:var(--green)}.og .ostrip>span:nth-child(4){background:var(--teal)}
.og .ostrip>span:nth-child(5){background:var(--blue)}.og .ostrip>span:nth-child(6){background:var(--sky)}
.og .ostrip>span:nth-child(7){background:var(--purple)}.og .ostrip>span:nth-child(8){background:var(--red)}
.og .obody{padding:40px 60px 0}
.og .oeye{font-size:15px;letter-spacing:.28em;color:var(--teal);font-weight:700}
.og .otitle{font-size:36px;font-weight:700;line-height:1.2;margin:8px 0 4px}
.og .oname{font-size:18px;color:#8f8f8a;margin-bottom:26px}
.og .oname b{color:#3e3a39;font-weight:700}
.og .ocards{display:flex;gap:22px;justify-content:center;align-items:flex-start}
.og .ocell{width:168px}
.og .opic{border-radius:10px;overflow:hidden;border:1px solid var(--line);line-height:0;background:#fff}
.og .opic.imp{border:3px solid var(--orange)}
.og .opic img{width:100%;display:block}
.og .ocap{text-align:center;font-size:15px;font-weight:600;margin-top:10px}
.og .ofoot{position:absolute;left:60px;right:60px;bottom:30px;display:flex;justify-content:space-between;
  align-items:flex-end;border-top:2px solid var(--teal);padding-top:14px}
.og .ofoot .bm{font-size:17px;font-weight:700;letter-spacing:.02em}
.og .ofoot .bm small{display:block;font-size:12px;font-weight:500;color:#8f8f8a;margin-top:3px;letter-spacing:0}
.og .ofoot .tg{font-size:13px;color:#8f8f8a;text-align:right;line-height:1.6}
