.pdl{--ac:#7C2D38;--ac2:#FBE7EA;--acg:linear-gradient(90deg,#7C2D38,#A8434F 50%,#D97706)}
.pdl [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(124,45,56,.16);overflow:hidden}
.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:#7C2D38;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#FDF2F3;background:#FDF2F3}
.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%,#FECDD3 55%);color:inherit;font-weight:800}
.pdl-plan{display:grid;gap:6px;margin-top:10px}
.pdl-plan p{display:grid;grid-template-columns:2em auto 1fr;align-items:center;gap:6px;margin:0;padding:8px 10px;border-radius:14px;background:#FFF7F7;border:1px solid #F5D0D6;font-size:12.5px;font-weight:800;color:#475569}
.pdl-plan span{font-size:20px;line-height:1}.pdl-plan b{font-size:13.5px;font-weight:900;color:#1F0B10}
.pdl-plan em{justify-self:end;font-style:normal;font-size:12px;font-weight:900;color:#7C2D38;white-space:nowrap}
.intro .go{display:block;width:100%;margin-top:14px;height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#7C2D38,#5A1E28);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 26px rgba(124,45,56,.3)}
/* 場面の見出し */
.pdl-dev{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:18px;background:#7C2D38;color:#fff}
.pdl-dic{flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:28px;line-height:1;background:rgba(255,255,255,.14)}
.pdl-dev>div{min-width:0}
.pdl-dev b{display:block;font-size:14.5px;font-weight:900;line-height:1.45}
.pdl-dev small{display:block;font-size:11.5px;font-weight:700;color:#F9D5DA;line-height:1.5}
.pdl-dev p{margin:3px 0 0;font-size:12.5px;font-weight:800;line-height:1.55;color:#FDE68A}
.pdl-ev{margin:8px 0 0;padding:8px 10px;border-radius:14px;background:#FEF2F2;border:2px solid #FCA5A5;font-size:12.5px;font-weight:800;line-height:1.6;color:#991B1B;animation:pop .4s var(--ease)}
/* AIが見ているもの */
.pdl-prof{margin-top:8px;padding:10px 12px;border-radius:16px;background:#F8FAFC;border:1px solid #E2E8F0}
.pdl-ph{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0}.pdl-ph b{font-size:12.5px;font-weight:900;color:#4338CA}.pdl-ph small{font-size:10.5px;font-weight:700;color:#64748B}
.pdl-pn{margin:4px 0 0;font-size:13px;font-weight:900;color:#0F172A}
.pdl-pl{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;margin:4px 0 0;padding:0;list-style:none}
.pdl-pl li{display:flex;justify-content:space-between;gap:4px;padding:3px 0;border-bottom:1px dashed #E2E8F0;font-size:11.5px;font-weight:700;color:#475569;min-width:0}
.pdl-pl li b{font-weight:900;color:#0F172A;font-variant-numeric:tabular-nums;text-align:right}
.pdl-sh{margin:8px 0 0;font-size:11.5px;font-weight:900;color:#4338CA}
.pdl-sn{margin:4px 0 0;padding:0;list-style:none;display:grid;gap:4px}
.pdl-sn li{padding:6px 9px;border-radius:12px;background:#fff;border:1px solid #E0E7FF;font-size:12px;font-weight:700;line-height:1.55;color:#1E293B}
.pdl-sn em{display:inline-block;margin-right:5px;padding:0 6px;border-radius:99px;background:#EF4444;color:#fff;font-style:normal;font-size:10px;font-weight:900;line-height:1.6;vertical-align:1px}
/* 思い出のカード */
.pdl-cards{margin-top:10px}
.pdl-ch2{margin:0 0 6px;font-size:12.5px;font-weight:900;color:#7C2D38;line-height:1.5}.pdl-ch2 small{display:block;font-size:11px;font-weight:700;color:#64748B}
.pdl-cg{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pdl-cd{position:relative;display:grid;grid-template-columns:1.6em 1fr;grid-template-rows:auto auto;align-items:center;gap:0 4px;min-height:48px;padding:5px 8px;border:2px solid #E2E8F0;border-radius:12px;background:#fff;font:inherit;text-align:left;color:#334155;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pdl-cd i{grid-row:1/3;font-style:normal;font-size:20px;line-height:1}
.pdl-cd b{font-size:16px;font-weight:900;letter-spacing:.06em;color:#0F172A;font-variant-numeric:tabular-nums;line-height:1.2}
.pdl-cd small{font-size:10.5px;font-weight:700;line-height:1.3;color:#64748B}
.pdl-cd em{position:absolute;top:-7px;right:-5px;min-width:18px;height:18px;border-radius:99px;background:#7C2D38;color:#fff;font-style:normal;font-size:11px;font-weight:900;line-height:18px;text-align:center;display:none}
.pdl-cd[aria-pressed="true"]{border-color:#7C2D38;background:#FFF1F2;box-shadow:0 0 0 2px #FECDD3}.pdl-cd[aria-pressed="true"] em{display:block}
.pdl-cd.pdl-use{border-color:#16A34A;background:#F0FDF4}
/* AIのことば */
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-radius:18px;background:#EEF2FF;border:1px solid #C7D2FE}
.aiad .av{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:26px;line-height:1;background:#fff;box-shadow:0 0 0 2px #C7D2FE}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#4338CA}
.aiad p{margin:2px 0 0;font-size:13px;line-height:1.65;font-weight:700;color:#1E1B4B}
/* ダイヤル錠 */
.pdl-lk{position:relative;margin-top:10px;padding:10px 10px 8px;border-radius:22px;background:linear-gradient(180deg,#3B1219,#1F0B10);box-shadow:inset 0 2px 0 rgba(255,255,255,.08),0 10px 24px rgba(31,11,16,.25)}
.pdl-gd,.pdl-dials{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:5px;max-width:calc(var(--n,4)*58px);margin:0 auto}
.pdl-gd{min-height:20px;margin-bottom:4px}
.pdl-gd span{text-align:center;font-size:13px;font-weight:900;line-height:20px;color:#FDE68A;font-variant-numeric:tabular-nums}
.pdl-gd span.pdl-gn{color:#FDE68A;opacity:.85}.pdl-gd span.pdl-gm{color:#4ADE80}
.pdl-gd span.pdl-gm::after{content:'✓';font-size:9px;margin-left:1px}
.pdl-over{margin:0 0 4px;text-align:center;font-size:11px;font-weight:800;color:#FCA5A5}
.pdl-body{position:relative}
.pdl-wh{position:relative;height:var(--rh,114px);overflow:hidden;border-radius:12px;background:linear-gradient(180deg,#78716C 0%,#F5F5F4 30%,#FFFFFF 50%,#F5F5F4 70%,#78716C 100%);box-shadow:inset 0 0 0 2px rgba(0,0,0,.25),0 2px 0 rgba(255,255,255,.1);touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.pdl-wh::after{content:'';position:absolute;left:0;right:0;top:33.33%;height:33.34%;border-top:2px solid rgba(124,45,56,.55);border-bottom:2px solid rgba(124,45,56,.55);pointer-events:none}
.pdl-wh:focus-visible{outline:3px solid #FDE68A;outline-offset:2px}
.pdl-wh.pdl-drg{cursor:grabbing}
.pdl-st{position:absolute;left:0;right:0;top:-33.33%;will-change:transform}
.pdl-st span{display:block;height:calc(var(--rh,114px)/3);line-height:calc(var(--rh,114px)/3);text-align:center;font-size:24px;font-weight:900;color:#78716C;font-variant-numeric:tabular-nums}
.pdl-st span.pdl-c{color:#1F0B10;font-size:30px}
.pdl-lk.pdl-open .pdl-wh::after{border-color:#22C55E;background:rgba(34,197,94,.12)}
.pdl-lk.pdl-open{box-shadow:0 0 0 3px #EF4444,0 10px 24px rgba(31,11,16,.25)}
.pdl-note{position:absolute;right:6px;bottom:30px;z-index:3;width:118px;padding:6px 8px 8px;background:#FEF08A;color:#713F12;font-size:11px;font-weight:800;line-height:1.35;transform:rotate(-6deg);box-shadow:0 6px 14px rgba(0,0,0,.35);animation:pdlnote .5s var(--ease)}
.pdl-note small{display:block;font-size:9.5px;color:#A16207}.pdl-note b{font-size:18px;letter-spacing:.08em;font-variant-numeric:tabular-nums}
@keyframes pdlnote{0%{opacity:0;transform:translateY(-30px) rotate(-30deg)}100%{opacity:1;transform:rotate(-6deg)}}
.pdl-cap{margin:8px 0 0;text-align:center;font-size:11.5px;font-weight:800;color:#F9D5DA}
/* 覚えやすさ */
.pdl-mem{margin-top:8px;padding:8px 10px;border-radius:14px;background:#F0FDF4;border:2px solid #86EFAC;transition:background .25s,border-color .25s}
.pdl-mem[data-ok="0"]{background:#FFFBEB;border-color:#FCD34D}
.pdl-mh{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin:0;font-size:12px;font-weight:800;color:#334155}.pdl-mh b{font-weight:900}.pdl-mh span b{font-size:17px}
.pdl-pr{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 0}
.pdl-pc{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:9px;font-size:13px;font-weight:900;line-height:1.5;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.pdl-pc i{font-style:normal;font-size:13px}.pdl-pc small{font-size:9.5px;font-weight:800;letter-spacing:0;opacity:.85}
.pdl-pk{background:#DCFCE7;color:#14532D}.pdl-pp{background:#FFEDD5;color:#7C2D12}.pdl-pm{background:#FEE2E2;color:#991B1B}.pdl-pf{background:#E2E8F0;color:#334155;min-width:1.6em;justify-content:center}
.pdl-mv{margin:5px 0 0;font-size:12.5px;font-weight:900;line-height:1.5;color:#166534}.pdl-mem[data-ok="0"] .pdl-mv{color:#B45309}
.pdl-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.ghost2{min-height:44px;padding:9px 10px;border:2px solid #CBD5E1;border-radius:14px;background:#fff;font:inherit;font-size:12px;font-weight:800;line-height:1.4;color:#334155;cursor:pointer;touch-action:manipulation}
.go2{display:block;width:100%;margin-top:12px;padding:14px;border:0;border-radius:16px;background:#7C2D38;color:#fff;font:inherit;font-size:15px;font-weight:900;cursor:pointer;touch-action:manipulation}
.go2:disabled{background:#E2E8F0;color:#94A3B8;cursor:default}
.pdl-busy .pdl-cards,.pdl-busy .pdl-two,.pdl-busy .aiad{opacity:.45;pointer-events:none}
.pdl-busy .pdl-mem,.pdl-busy #pdlockb,.pdl-busy .pdl-cap{display:none}
.pdl-busy .pdl-wh{cursor:default}
/* 攻撃AIのログ */
.pdl-atk{margin-top:8px}
.pdl-term{max-height:220px;overflow-y:auto;padding:10px 12px;border-radius:16px;background:#0B0F14;color:#CBD5E1;font-size:12px;font-weight:700;line-height:1.6}
.pdl-term p{margin:0 0 4px;animation:pop .3s var(--ease)}
.pdl-sm{color:#64748B;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.pdl-x{font-style:normal;color:#F87171;white-space:nowrap}
.pdl-term p.pdl-ln{color:#FDE68A}
.pdl-term p.pdl-lng{margin-top:6px;padding:6px 8px;border-radius:10px;background:#7F1D1D;color:#fff;font-size:13.5px;font-weight:900}.pdl-term p.pdl-lng small{display:block;font-size:11.5px;font-weight:700;color:#FECACA}
.pdl-term p.pdl-lok{margin-top:6px;padding:6px 8px;border-radius:10px;background:#064E3B;color:#fff;font-size:13.5px;font-weight:900}
/* 1つの錠の結果 */
.pdl-res{margin-top:10px;padding:12px;border-radius:18px;background:#1F0B10;color:#FBE7EA;animation:pop .4s var(--ease)}
.pdl-rh{margin:0;font-size:13.5px;font-weight:800;line-height:1.6;color:#FDE68A}.pdl-rh b{font-size:18px;color:#fff}
.pdl-rp{margin:4px 0 0;font-size:14px;font-weight:800}.pdl-rp b{font-size:30px;font-weight:900;color:#FDA4AF;font-variant-numeric:tabular-nums}
.pdl-res .go2{background:#BE123C}
.hint{margin:10px 0 0;text-align:center;font-size:11px;color:var(--mut);line-height:1.6}
.fx{position:absolute;left:50%;top:22%;transform:translateX(-50%);z-index:6;font-size:clamp(16px,5.4vw,24px);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) both}
.fx.A{color:#15803D}.fx.B{color:#7C2D38}.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)}}
.game.shake{animation:shk .45s}@keyframes shk{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.end{margin-top:4px;animation:pop .4s var(--ease)}
/* 結果の大きな数字 */
.pdl-big{margin:14px 0 4px;padding:14px;border-radius:18px;background:#1F0B10;color:#FBE7EA;text-align:center}
.pdl-big>small{display:block;font-size:12.5px;font-weight:800;color:#FDE68A}
.pdl-big>b{display:block;margin-top:2px;font-size:clamp(40px,13vw,64px);font-weight:900;line-height:1.15;color:#FDA4AF;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pdl-big>em{display:block;font-style:normal;font-size:11px;font-weight:700;color:#D6B5BA}
.pdl-ty{margin:12px 0 0;padding:10px;border-radius:14px;background:rgba(255,255,255,.08)}
.pdl-ty small{display:block;font-size:11px;font-weight:800;color:#FDE68A}.pdl-ty b{display:block;font-size:20px;font-weight:900;color:#fff}.pdl-ty span{display:block;margin-top:2px;font-size:12.5px;font-weight:700;line-height:1.6;color:#FBE7EA}
.pdl-vs{margin:8px 0 0;font-size:12.5px;font-weight:800;line-height:1.6;color:#E7C9CE}.pdl-vs b{color:#fff;white-space:nowrap}
/* ふりかえり */
.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}
.pdl-rg{grid-column:1/-1;display:grid;gap:6px;margin:6px 0 2px}
.pdl-rg>div{padding:7px 9px;border-radius:12px;background:#FFF7F7;min-width:0}
.pdl-rg small{display:block;font-size:11px;font-weight:900;color:#334155}
.pdl-rg .pdl-pr{margin:3px 0 0}
.pdl-rg em{display:block;margin-top:4px;font-style:normal;font-size:12px;font-weight:800;line-height:1.55}
.pdl-rg em.pdl-ok{color:#166534}.pdl-rg em.pdl-ng{color:#B91C1C}
.rvw p.pdl-why{grid-column:1/-1;margin:6px 0 0;padding:8px 10px;border-radius:12px;background:#F0FDF4;font-size:12.5px;font-weight:700;line-height:1.75;color:#1E293B}
.pdl-why b{display:block;font-size:12.5px;font-weight:900;color:#166534}
.pdl-lg{margin:10px 0 0;font-size:11.5px;font-weight:700;line-height:1.7;color:#475569}
.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)}
.pdl .sbd-tl{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:360px){.game{padding:12px}.ghud{gap:4px;font-size:10.5px;letter-spacing:-.02em}.ghud b{font-size:14px}.pdl-dev{padding:10px}.pdl-dic{width:40px;height:40px;font-size:24px}
 .pdl-lk{padding:8px 6px 6px}.pdl-gd,.pdl-dials{gap:4px}.pdl-st span{font-size:21px}.pdl-st span.pdl-c{font-size:26px}
 .pdl-pl{grid-template-columns:1fr}.pdl-cd{padding:5px 6px}.pdl-cd b{font-size:15px}.pdl-cd small{font-size:10px}.aiad{padding:10px}.aiad .av{width:34px;height:34px;font-size:22px}.pdl-plan p{font-size:11.5px}}
@media(prefers-reduced-motion:reduce){.end,.fx,.pdl-res,.pdl-note,.pdl-ev,.pdl-term p{animation:none}}
