.tbz{--ac:#5C3A0E;--ac2:#FDF3E1;--acg:linear-gradient(90deg,#5C3A0E,#A8742A 50%,#F5B83D)}
.tbz [hidden]{display:none!important}
.ghero{position:relative;text-align:center;padding:5svh 0 18px}
.game{position:relative;background:#fff;border-radius:28px;padding:16px;box-shadow:0 1px 2px rgba(14,17,22,.05),0 20px 50px rgba(92,58,14,.16);overflow:hidden;overflow:clip}
.gtop{margin-bottom:12px}
.ghud{display:flex;justify-content:space-between;gap:6px;font-size:12px;font-weight:800;color:var(--ink2);white-space:nowrap}.ghud b{font-size:16px;font-variant-numeric:tabular-nums}
/* 遊び方 */
.il{margin:0 0 10px;font-size:13px;font-weight:800;color:#3A2408;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#FBF6EC;background:#FBF6EC}
.doc h4{margin:0 0 6px;font-size:14px;font-weight:900}
.doc ul{margin:0;padding:0;list-style:none}.doc li{display:grid;grid-template-columns:1.8em 1fr;gap:6px;padding:5px 0;border-top:1px dashed rgba(15,23,42,.1);font-size:13px;line-height:1.65;font-weight:600;color:var(--ink)}
.doc li:first-child{border-top:0}
.doc li b{font-size:11.5px;color:var(--ink2);padding-top:1px}
.doc mark{background:linear-gradient(transparent 55%,#F5DFB5 55%);color:inherit;font-weight:800}
.intro .go{display:block;width:100%;margin-top:14px;height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#4A2E0B,#5C3A0E);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 26px rgba(92,58,14,.3)}
.hint{margin:10px 0 0;text-align:center;font-size:11px;color:var(--mut);line-height:1.6}
.res{margin-top:12px;border-radius:16px;padding:14px;font-size:13px;line-height:1.75;animation:pop .35s}
.res.right{background:#F0FDF4}.res.wrong{background:#FEF2F2}.res.half{background:#FFFBEB}
.res>b{display:block;font-size:16px;line-height:1.55}.res.right>b{color:#16A34A}.res.wrong>b{color:#DC2626}.res.half>b{color:#B45309}
.res .nx{display:block;width:100%;margin-top:12px;height:52px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer}
.res,.nx{scroll-margin-bottom:110px}
.fx{position:absolute;left:50%;top:22%;transform:translateX(-50%);z-index:6;font-size:clamp(18px,6vw,26px);font-weight:900;white-space:nowrap;pointer-events:none;text-shadow:0 2px 0 #fff,0 4px 14px rgba(0,0,0,.15);animation:fx 1.3s var(--ease) forwards}
.fx.A{color:#16A34A}.fx.B{color:#B45309}.fx.C{color:#DC2626}
@keyframes fx{0%{opacity:0;transform:translate(-50%,10px) scale(.7)}25%{opacity:1;transform:translate(-50%,0) scale(1.08)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-24px)}}
.end{margin-top:4px;animation:pop .4s var(--ease)}
.rvw{display:grid;grid-template-columns:28px 1fr;gap:4px 10px;padding:14px 0;border-bottom:1px solid #F1F5F9}.rvw:last-child{border-bottom:0}.rvw .mk{font-size:18px}.rvw b{font-size:13.5px;line-height:1.6}
.rvw p{grid-column:2;margin:0;font-size:12.5px;color:var(--ink2);line-height:1.75}.rvw p.q{font-size:13.5px;font-weight:700;color:#3A2408;margin:4px 0}
.tips{margin:0;padding-left:1.3em;color:#C9CCD6;font-size:14px;line-height:1.8}.tips li{margin:0 0 12px}.tips b{display:block;color:#fff}
.mt0{margin:0 0 10px;font-size:13px;color:var(--ink2);line-height:1.75}
.ctap{color:#C9CCD6;font-size:14px;margin:0 0 16px;line-height:1.75}.cta-c h3{color:var(--ac2)}
.tbz .sbd-tl{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tbz .sbd-tl span{font-size:20px}.tbz .sbd-tl em{font-size:11px;white-space:nowrap}


/* ── このゲームだけの部品 ── */
.tbz-kd{margin-top:10px;display:grid;gap:6px}
.tbz-kd p{display:grid;grid-template-columns:54px 1fr;gap:0 8px;margin:0;padding:9px 12px;border-radius:14px;background:#fff;border:2px solid #FDF3E1;font-size:12.5px;line-height:1.6;font-weight:700;color:var(--ink2)}
.tbz-kd p span{grid-row:span 2;align-self:center}.tbz-kd p b{font-size:14px;font-weight:900;color:#3A2408}
.tbz-dm{display:grid;place-items:center;height:32px;border-radius:8px;font-size:12px;font-weight:900;line-height:1;letter-spacing:-.04em;background:#fff;border:2px solid #F5DFB5;color:#5C3A0E;white-space:nowrap}
.tbz-dm.tbz-wh{background:#5C3A0E;border-color:#5C3A0E;color:#F5B83D;font-size:14px}.tbz-dm.tbz-wm{background:#FDF3E1;border-color:#E8C27A;font-size:14px}.tbz-dm.tbz-wr{background:#F1F5F9;border-color:#CBD5E1;color:#64748B}
.tbz-tip{margin:10px 0 0;padding:9px 12px;border-radius:12px;background:#FEF3C7;font-size:13px;font-weight:800;line-height:1.6;color:#713F12}
/* もめごとの見出し */
.tbz-hd{display:grid;grid-template-columns:48px 1fr;gap:10px;align-items:start;padding:10px 12px;border-radius:16px;background:#2A1A06;color:#FDF3E1}
.tbz-av{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff;font-size:28px;line-height:1}
.tbz-hi{min-width:0}.tbz-hi b{display:block;font-size:16px;font-weight:900;color:#F5B83D;line-height:1.4}
.tbz-hi p{margin:2px 0 0;font-size:12.5px;font-weight:700;line-height:1.6}
/* 天秤 */
.tbz-stg{position:relative;height:246px;max-width:420px;margin:8px auto 0;border-radius:18px;background:radial-gradient(120% 90% at 50% 0%,#FFFBF2,#F6ECD8);border:2px solid #EADCC0;overflow:hidden;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;user-select:none}
.tbz-stg:focus-visible{outline:3px solid #5C3A0E;outline-offset:2px}
.tbz-stg::before,.tbz-stg::after{content:'';position:absolute;top:0;bottom:0;width:50%;background:rgba(245,184,61,.22);opacity:0;transition:opacity .15s;pointer-events:none}
.tbz-stg::before{left:0}.tbz-stg::after{right:0}
.tbz-stg.tbz-arm::before,.tbz-stg.tbz-arm::after{opacity:.35}
.tbz-stg[data-z="L"]::before,.tbz-stg[data-z="R"]::after{opacity:1}
.tbz-post{position:absolute;left:50%;top:46px;bottom:26px;width:10px;margin-left:-5px;border-radius:4px;background:linear-gradient(90deg,#8A5A1C,#C9A45C 50%,#8A5A1C)}
.tbz-foot{position:absolute;left:50%;bottom:22px;width:84px;height:12px;margin-left:-42px;border-radius:8px 8px 3px 3px;background:#5C3A0E}
.tbz-beam{position:absolute;left:50%;top:41px;width:60%;height:10px;border-radius:6px;background:linear-gradient(180deg,#F5B83D,#B9822A);box-shadow:0 2px 0 #8A5A1C;transform:translateX(-50%);transform-origin:50% 50%}
.tbz-pv{position:absolute;left:50%;top:36px;width:20px;height:20px;margin-left:-10px;border-radius:50%;background:#5C3A0E;box-shadow:0 0 0 4px #F5B83D;z-index:2}
.tbz-pan{position:absolute;left:0;top:0;width:36%;height:118px;pointer-events:none;will-change:transform}
.tbz-pan::before{content:'';position:absolute;left:6%;right:6%;top:0;bottom:10px;background:linear-gradient(to top left,transparent calc(50% - 1px),#A8742A calc(50% - 1px),#A8742A calc(50% + 1px),transparent calc(50% + 1px)) left/50% 100% no-repeat,linear-gradient(to top right,transparent calc(50% - 1px),#A8742A calc(50% - 1px),#A8742A calc(50% + 1px),transparent calc(50% + 1px)) right/50% 100% no-repeat}
.tbz-pan::after{content:'';position:absolute;left:0;right:0;bottom:0;height:12px;border-radius:0 0 50% 50%/0 0 100% 100%;background:linear-gradient(180deg,#E8C27A,#A8742A)}
.tbz-pan.tbz-pr::after{background:linear-gradient(180deg,#FDBA74,#C2410C)}.tbz-pan.tbz-pl::after{background:linear-gradient(180deg,#93C5FD,#1D4ED8)}
.tbz-cl{position:absolute;left:0;right:0;bottom:13px;display:flex;flex-wrap:wrap-reverse;justify-content:center;align-content:flex-start;gap:3px;pointer-events:auto}
.tbz-lb{position:absolute;left:6px;right:6px;bottom:4px;display:flex;justify-content:space-between;gap:6px;font-size:11.5px;font-weight:900;line-height:1.3;pointer-events:none}
.tbz-lb span{max-width:47%;overflow-wrap:anywhere}.tbz-lb span:first-child{color:#1D4ED8}.tbz-lb span:last-child{color:#C2410C;text-align:right}
.tbz-stat{margin:6px 0 0;text-align:center;font-size:13px;font-weight:900;color:#3A2408;min-height:1.6em}
.tbz-stat.tbz-sw{color:#B45309;animation:tbzBl 1s infinite}
@keyframes tbzBl{50%{opacity:.45}}
/* カード（皿・箱にのったもの） */
.tbz-ch{display:inline-grid;grid-template-columns:auto auto;align-items:center;gap:3px;min-width:34px;height:30px;padding:0 6px;border:2px solid #E8C27A;border-radius:8px;background:#fff;font:inherit;font-size:11px;font-weight:900;line-height:1;color:#3A2408;cursor:grab;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.tbz-ch b{display:grid;place-items:center;min-width:16px;height:16px;border-radius:99px;background:#5C3A0E;color:#fff;font-size:10px}
.tbz-ch i{font-style:normal;letter-spacing:-.06em;color:#A8742A}
.tbz-ch.tbz-wh{background:#5C3A0E;border-color:#3A2408}.tbz-ch.tbz-wh b{background:#F5B83D;color:#3A2408}.tbz-ch.tbz-wh i{color:#F5B83D}
.tbz-ch.tbz-wm{background:#FDF3E1;border-color:#C9A45C}.tbz-ch.tbz-wm i{color:#5C3A0E}
.tbz-ch.tbz-wr{background:#F8FAFC;border-color:#CBD5E1;opacity:.85}.tbz-ch.tbz-wr b{background:#94A3B8}.tbz-ch.tbz-wr i{color:#64748B;letter-spacing:0}
.tbz-stg.tbz-rv .tbz-ch{animation:tbzRv .45s var(--ease)}
@keyframes tbzRv{0%{transform:scale(.7)}60%{transform:scale(1.12)}100%{transform:none}}
.tbz-sel{outline:3px solid #F5B83D!important;outline-offset:1px;z-index:3}
.tbz-lift{opacity:.35}
/* 箱 */
.tbz-box{margin-top:8px;padding:8px 10px;min-height:58px;border:2px dashed #CBD5E1;border-radius:14px;background:#F8FAFC;cursor:pointer;box-sizing:border-box;touch-action:manipulation}
.tbz-box:focus-visible{outline:3px solid #5C3A0E;outline-offset:2px}
.tbz-box p{margin:0;font-size:12.5px;font-weight:900;color:#475569;line-height:1.4}.tbz-box p small{margin-left:6px;font-size:11px;font-weight:700;color:#94A3B8}
.tbz-bc{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;min-height:28px}
.tbz-box.tbz-arm{border-color:#E8C27A;background:#FFFBF2}.tbz-box.tbz-hl{border-style:solid;border-color:#F5B83D;background:#FEF3C7}
/* 選んだカード・のこり */
.tbz-selb{margin-top:8px;padding:8px 12px;border-radius:12px;background:#FBF6EC;font-size:12.5px;font-weight:700;line-height:1.55;color:#57534E;overflow-wrap:anywhere}
.tbz-selb.tbz-on{background:#FEF3C7;color:#3A2408}.tbz-selb b{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-right:4px;border-radius:99px;background:#5C3A0E;color:#fff;font-size:11px}
.tbz-selb small{display:block;margin-top:2px;font-size:11.5px;font-weight:900;color:#B45309}
.tbz-tl{margin:8px 0 0;font-size:12px;font-weight:700;color:var(--ink2);text-align:center}.tbz-tl b{color:#5C3A0E}
/* 机の上のカード */
.tbz-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}
.tbz-cd{display:grid;grid-template-columns:22px 1fr;gap:2px 6px;align-content:start;min-height:64px;padding:7px 8px;border:2px solid #EADCC0;border-radius:12px;background:#fff;font:inherit;text-align:left;color:var(--ink);cursor:grab;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;box-shadow:0 2px 0 #EADCC0}
.tbz-cd:focus-visible,.tbz-ch:focus-visible{outline:3px solid #5C3A0E;outline-offset:1px}
.tbz-cd b{grid-row:span 2;display:grid;place-items:center;width:22px;height:22px;border-radius:99px;background:#5C3A0E;color:#fff;font-size:11.5px;font-weight:900}
.tbz-cd span{font-size:12px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.tbz-cd em{font-style:normal;font-size:11px;font-weight:900;color:#A8742A;letter-spacing:-.02em}
.tbz-cd em.tbz-wh{color:#5C3A0E}.tbz-cd em.tbz-wr{color:#94A3B8}
.tbz-gh{position:fixed;left:0;top:0;z-index:60;width:140px;padding:7px 9px;border-radius:12px;background:#fff;border:2px solid #F5B83D;box-shadow:0 14px 30px rgba(42,26,6,.3);font-size:11.5px;font-weight:700;line-height:1.45;color:var(--ink);pointer-events:none;opacity:.95}
.tbz-gh b{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-right:4px;border-radius:99px;background:#5C3A0E;color:#fff;font-size:10px}
/* 判定 */
.tbz-jd{margin-top:10px;padding:12px;border-radius:16px;background:#FBF6EC;border:2px solid #EADCC0;animation:pop .35s}
.tbz-jh{margin:0 0 6px;font-size:14px;font-weight:900;color:#3A2408;text-align:center}
.tbz-jq{margin:10px 0 6px;font-size:12.5px;font-weight:900;color:#5C3A0E}
.tbz-og{display:grid;gap:6px}
.tbz-op{min-height:44px;padding:8px 12px;border:2px solid #E8C27A;border-radius:12px;background:#fff;font:inherit;font-size:13px;font-weight:800;line-height:1.45;color:#3A2408;text-align:left;cursor:pointer;touch-action:manipulation}
.tbz-op.tbz-on{border-color:#5C3A0E;background:#5C3A0E;color:#fff;box-shadow:0 4px 12px rgba(92,58,14,.3)}
.tbz-go{display:block;width:100%;min-height:52px;margin-top:12px;border:0;border-radius:999px;background:linear-gradient(90deg,#4A2E0B,#5C3A0E);color:#fff;font:inherit;font-size:15px;font-weight:900;cursor:pointer;touch-action:manipulation}
.tbz-go:disabled{opacity:.4;cursor:default}
#tzplay.tbz-dn .tbz-stg,#tzplay.tbz-dn .tbz-box{cursor:default}
/* 1件ごとの結果 */
.tbz-ck{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:4px}
.tbz-ck li{padding:6px 9px;border-radius:10px;font-size:12.5px;font-weight:800;line-height:1.5}
.tbz-ck li.tbz-ok{background:#DCFCE7;color:#14532D}.tbz-ck li.tbz-ng{background:#FEE2E2;color:#7F1D1D}
.tbz-ex{margin:10px 0 0;padding:9px 12px;border-radius:12px;background:#fff;font-size:12.5px;font-weight:700;line-height:1.7;color:#3A2408}
.tbz-ex small{display:block;font-size:11px;font-weight:900;color:#A8742A}
.tbz-ml{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:5px}
.tbz-ml li{padding:7px 10px;border-radius:12px;background:#fff;border-left:5px solid #CBD5E1;font-size:12.5px;line-height:1.55}
.tbz-ml li span{display:block;font-size:11px;font-weight:900;color:#64748B}.tbz-ml li b{display:block;font-size:13px;font-weight:800;color:#1E293B}.tbz-ml li p{margin:2px 0 0;font-size:11.5px;font-weight:800;color:#475569}
.tbz-ml li.tbz-mo{border-color:#22C55E}.tbz-ml li.tbz-mx{border-color:#EF4444}.tbz-ml li.tbz-mx p{color:#B91C1C}
.tbz-ai{margin:8px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#475569}
/* ふりかえり */
.tbz-rv{margin-top:14px;padding-top:12px;border-top:1px solid #E2E8F0}
.tbz-rv h4{display:flex;align-items:center;gap:6px;margin:0;font-size:14px;font-weight:900;color:#3A2408;line-height:1.5}
.tbz-rv h4 em{margin-left:auto;flex:none;padding:0 10px;border-radius:99px;font-style:normal;font-size:12px;line-height:24px;height:24px;white-space:nowrap}
.tbz-rv h4 em.tbz-eo{background:#DCFCE7;color:#14532D}.tbz-rv h4 em.tbz-ex2{background:#FEE2E2;color:#7F1D1D}
.tbz-rg{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:center;margin-top:8px}
.tbz-mi{position:relative;height:60px;border-radius:12px;background:#FBF6EC}
.tbz-mi .tbz-mb{position:absolute;left:15px;right:15px;top:24px;height:6px;border-radius:4px;background:#C9A45C}
.tbz-mi .tbz-mp{position:absolute;left:50%;top:22px;bottom:8px;width:6px;margin-left:-3px;border-radius:3px;background:#5C3A0E}
.tbz-rs{margin:0;font-size:12.5px;font-weight:700;line-height:1.7;color:#475569}.tbz-rs b{color:#3A2408}
/* 結果画面 */
.tbz-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#2A1A06;color:#FDF3E1;text-align:center}
.tbz-tyl{margin:0;font-size:12px;font-weight:800;color:#E8C27A}
.tbz-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.tbz-tyn span{margin-right:6px}
.tbz-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.tbz-kp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed rgba(253,243,225,.25)}
.tbz-kp>div{min-width:0;padding:10px 6px;border-radius:14px;background:rgba(255,255,255,.07)}
.tbz-kp small{display:block;font-size:11.5px;font-weight:800;line-height:1.45;color:#F5DFB5}
.tbz-kp b{display:block;margin-top:4px;font-size:clamp(36px,12vw,50px);font-weight:900;line-height:1.05;color:#F5B83D;font-variant-numeric:tabular-nums}
.tbz-kp b i{margin-left:2px;font-style:normal;font-size:.42em}
.tbz-kp em{display:block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:#FDF3E1;line-height:1.5}
.tbz-ai2{margin:10px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#F5DFB5}.tbz-ai2 b{color:#fff}
@media(min-width:560px){.tbz-tray{grid-template-columns:repeat(3,minmax(0,1fr))}.tbz-og{grid-template-columns:repeat(2,minmax(0,1fr))}#tzv{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){.game{padding:10px}.ghud{gap:4px;font-size:10.5px;letter-spacing:-.02em}.ghud b{font-size:14px}.tbz-cd{padding:6px;gap:2px 4px;grid-template-columns:20px 1fr}.tbz-cd b{width:20px;height:20px}.tbz-cd span{font-size:11.5px}.tbz-ch{min-width:30px;padding:0 4px;gap:2px}.tbz-kp b{font-size:34px}.tbz .sbd-tl{gap:4px}.tbz-rg{grid-template-columns:90px 1fr}}
@media(prefers-reduced-motion:reduce){.end,.res,.tbz-jd,.tbz-stg.tbz-rv .tbz-ch,.tbz-stat.tbz-sw{animation:none}}
