.dgx{--ac:#854D0F;--ac2:#FDE7C7;--acg:linear-gradient(90deg,#854D0F,#B45309 50%,#F59E0B)}
.dgx [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(133,77,15,.18);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:#78350F;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#FFF7ED;background:#FFF7ED}
.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%,#FED7AA 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,#854D0F,#B45309);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(133,77,15,.3)}
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#FFF7ED;border:1px solid #FED7AA}
.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 #FED7AA}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#854D0F}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#1C1208}
.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}
.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(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:#854D0F}.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:#1C1208;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)}
/* はじめの説明（土の色） */
.dgx-kd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.dgx-kd p{margin:0;padding:8px 10px;border-radius:12px;background:#FFFBF5;border:1px solid #FED7AA;font-size:12px;font-weight:700;line-height:1.5;color:#44403C}
.dgx-kd span{display:block;font-size:18px;line-height:1.2}.dgx-kd b{display:block;font-size:12.5px;font-weight:900;color:#1C1208}
.dgx-tip{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#FFFBEB;font-size:12.5px;font-weight:700;line-height:1.7;color:#78350F}
/* 上のお知らせと音 */
.dgx-ms{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.dgx-msg{flex:1;min-width:0;margin:0;padding:8px 10px;border-radius:12px;background:#1C1208;color:#FDE7C7;font-size:12.5px;font-weight:800;line-height:1.55;min-height:3.1em}
.dgx-snd{flex:none;min-width:64px;height:44px;padding:0 8px;border:2px solid #FED7AA;border-radius:12px;background:#fff;color:#78350F;font:inherit;font-size:11px;font-weight:900;line-height:1.2;cursor:pointer;touch-action:manipulation}
/* 地面の断面 */
.dgx-gw{position:relative;padding:8px 6px 6px;border-radius:18px;background:linear-gradient(#BAE6FD 0,#E0F2FE 34px,#6B4423 34px,#3B2714 100%);overflow:hidden}
.dgx-grd{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.dgx-col{display:flex;flex-direction:column;gap:2px;min-width:0;margin:0;padding:0;border:0;border-radius:8px;background:none;font:inherit;color:#1C1208;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.dgx-col:disabled{cursor:default}
.dgx-col:focus-visible{outline:3px solid #FACC15;outline-offset:1px}
.dgx-top{display:flex;flex-direction:column;align-items:center;justify-content:center;height:40px;margin-bottom:3px;border-radius:9px;border:2px solid rgba(28,18,8,.25);line-height:1.1;transition:background .25s}
.dgx-top i{font-style:normal;font-size:17px}.dgx-top em{font-style:normal;font-size:10px;font-weight:900;white-space:nowrap;letter-spacing:-.04em}
.dgx-top.dgx-h0{background:#FEF08A}.dgx-top.dgx-h1{background:#FED7AA}.dgx-top.dgx-h2{background:#D6B48C}.dgx-top.dgx-h3{background:#E2E8F0;color:#64748B}
.dgx-cell{position:relative;display:grid;place-items:center;height:26px;border-radius:5px;font-size:15px;line-height:1;overflow:hidden}
.dgx-l0{background:#C8925A}.dgx-l1{background:#9A6235}
.dgx-l2{background:#5B4636;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0 4px,transparent 4px 9px)}
.dgx-col:not(:disabled):hover .dgx-top{border-color:#FACC15}
.dgx-dug{box-shadow:inset 0 3px 5px rgba(28,18,8,.45)}
.dgx-dug.dgx-h0{background:#FACC15}.dgx-dug.dgx-h1{background:#FB923C}.dgx-dug.dgx-h2{background:#8B5A2B}.dgx-dug.dgx-h3{background:#CBD5E1}
.dgx-cur{outline:2px solid #fff;outline-offset:-2px}
.dgx-new{animation:dgxpop .35s var(--ease)}
@keyframes dgxpop{0%{transform:scale(.6);filter:brightness(1.6)}100%{transform:scale(1);filter:none}}
.dgx-crk::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 44%,#1C1208 45%,#1C1208 49%,transparent 50%),linear-gradient(60deg,transparent 60%,#1C1208 61%,#1C1208 64%,transparent 65%)}
.dgx-crk{animation:dgxsk .3s}
@keyframes dgxsk{25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}
.dgx-f{font-size:16px}
.dgx-pend{box-shadow:0 0 0 2px #fff,0 0 12px 4px #FACC15;z-index:1;animation:dgxgl 1s infinite alternate}
@keyframes dgxgl{to{box-shadow:0 0 0 2px #fff,0 0 4px 1px #FACC15}}
.dgx-link{outline:2px dashed #FDE047;outline-offset:-3px;box-shadow:inset 0 0 8px rgba(250,204,21,.9)}
.dgx-take,.dgx-got{font-size:12px;font-weight:900;color:#fff}.dgx-take{background:#16A34A!important}.dgx-got{background:#D97706!important}
.dgx-lost{background:#7F1D1D!important;filter:grayscale(.6)}
.dgx-lgd{margin:6px 0 0;font-size:11px;font-weight:700;line-height:1.6;color:#57534E;text-align:center}
/* AIの雨 */
.dgx-gw::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;background:repeating-linear-gradient(100deg,transparent 0 14px,rgba(147,197,253,.85) 14px 16px,transparent 16px 30px);background-size:60px 60px;transition:opacity .3s}
.dgx-gw.dgx-rn::after{opacity:1;animation:dgxrain .45s linear infinite}
@keyframes dgxrain{to{background-position:-12px 60px}}
.dgx-rn .dgx-l0{filter:saturate(.4) brightness(1.15)}
/* お宝を見つけたとき */
.dgx-pick{margin-top:10px;padding:12px;border-radius:18px;background:#FFFBEB;border:2px solid #FACC15;animation:pop .3s}
.dgx-pick.dgx-pk2{background:#FEF3C7;border-color:#D97706}
.dgx-pkh{margin:0;font-size:15px;font-weight:900;color:#78350F}
.dgx-pkf{display:grid;grid-template-columns:52px 1fr;gap:10px;align-items:center;margin-top:8px}
.dgx-pkf>span{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:30px;background:#fff;box-shadow:0 0 0 2px #FDE68A}
.dgx-pkf b{display:block;font-size:16px;font-weight:900;color:#1C1208;line-height:1.4}.dgx-pkf small{display:block;font-size:12px;font-weight:800;color:#92400E;line-height:1.5}
.dgx-pkb{margin:8px 0 0;font-size:13px;font-weight:800;color:#44403C;line-height:1.6}
.dgx-pkc{margin:6px 0 0;padding:8px 10px;border-radius:10px;background:#fff;font-size:12.5px;font-weight:700;line-height:1.65;color:#44403C}.dgx-pkc b{color:#B45309}
.dgx-pkw{margin:6px 0 0;font-size:12.5px;font-weight:900;color:#DC2626;line-height:1.6}
.dgx-pkx{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:10px}
.dgx-pkx button{min-height:60px;padding:8px;border:0;border-radius:14px;font:inherit;font-size:15px;font-weight:900;line-height:1.3;cursor:pointer;touch-action:manipulation}
.dgx-pkx small{display:block;margin-top:3px;font-size:11px;font-weight:800;opacity:.9}
.dgx-btk{background:#16A34A;color:#fff;box-shadow:0 6px 14px rgba(22,163,74,.25)}
.dgx-bdp{background:#854D0F;color:#fff;box-shadow:0 6px 14px rgba(133,77,15,.3)}
/* 1年の終わり */
.dgx-ri{margin:4px 0 0;font-size:14px;font-weight:800;color:#1C1208}.dgx-ri b{font-size:18px;color:#16A34A}
.dgx-rm{margin-top:8px;padding:8px 10px;border-radius:12px;background:#fff}
.dgx-rm>p{margin:0;font-size:12px;font-weight:900;color:#1E40AF}
.dgx-rm ul{margin:4px 0 0;padding:0;list-style:none;font-size:12.5px;font-weight:700;color:#334155;line-height:1.6}
.dgx-rm .dgx-rn0{font-weight:700;color:#475569;font-size:12.5px}
.dgx-rl{margin:8px 0 0;font-size:12.5px;font-weight:800;color:#B91C1C}
/* 持ち帰ったスキル */
.dgx-bag{margin-top:12px;padding:10px;border-radius:16px;background:#FAFAF9;border:1px solid #E7E5E4}
.dgx-bh{margin:0 0 6px;font-size:12px;font-weight:900;color:#78350F}.dgx-bh~.dgx-bh{margin-top:10px}
.dgx-be{margin:0;font-size:12px;color:#78716C;line-height:1.6}
.dgx-bl{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.dgx-bl li{position:relative;display:grid;grid-template-columns:24px 1fr;gap:0 6px;padding:5px 8px;border-radius:10px;background:#fff;border:1px solid #E7E5E4;overflow:hidden}
.dgx-bl li>span{grid-row:span 2;font-size:18px;line-height:1.4}
.dgx-bl b{font-size:12.5px;line-height:1.4;color:#1C1208}.dgx-bl em{font-style:normal;font-size:11px;font-weight:800;color:#78716C}.dgx-bl em i{font-style:normal;color:#B45309}
.dgx-bl s{position:absolute;left:0;bottom:0;height:3px;background:#16A34A;text-decoration:none;transition:width .5s}
.dgx-bl li.dgx-b0 s{background:#F59E0B}.dgx-bl li.dgx-mlt{background:#F1F5F9}.dgx-bl li.dgx-mlt s{background:#94A3B8}
.dgx-cl{margin:0;display:flex;flex-wrap:wrap;gap:4px}.dgx-cl span{padding:3px 8px;border-radius:99px;background:#FEF9C3;border:1px dashed #CA8A04;font-size:11.5px;font-weight:800;color:#713F12}
/* 結果：タイプと大きな数字 */
.dgx-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#1C1208;color:#FDE7C7;text-align:center}
.dgx-tyl{margin:0;font-size:12px;font-weight:800;color:#FDBA74}
.dgx-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.dgx-tyn span{margin-right:6px}
.dgx-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.dgx-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,231,199,.25)}
.dgx-kp>div{min-width:0;padding:10px 6px;border-radius:14px;background:rgba(255,255,255,.07)}
.dgx-kp small{display:block;font-size:11.5px;font-weight:800;line-height:1.45;color:#FED7AA}
.dgx-kp b{display:block;margin-top:4px;font-size:clamp(32px,11vw,50px);font-weight:900;line-height:1.05;color:#FCD34D;font-variant-numeric:tabular-nums}.dgx-kp div+div b{color:#FDBA74}
.dgx-kp b i{margin-left:2px;font-style:normal;font-size:.42em}
.dgx-kp em{display:block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:#FDE7C7;line-height:1.5}
.dgx-ai{margin:10px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#FED7AA}.dgx-ai b{color:#fff}
/* ふりかえり：断面図 */
.dgx-sw{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dgx-sx{margin:0;min-width:0;padding:8px;border-radius:14px;background:#FAFAF9;border:1px solid #E7E5E4}
.dgx-sx figcaption{display:flex;flex-direction:column;gap:1px;margin-bottom:6px;font-size:11.5px;font-weight:900;color:#1C1208;line-height:1.35}.dgx-sx figcaption b{font-size:16px;color:#854D0F}.dgx-sx figcaption span{font-size:10px;color:#78716C;font-weight:800}
.dgx-sx svg{display:block;width:100%!important;height:auto!important;stroke:none!important;fill:none!important}
.dgx-s0{fill:#C8925A}.dgx-s1{fill:#9A6235}.dgx-s2{fill:#5B4636}.dgx-sd{stroke:rgba(28,18,8,.5)!important;stroke-width:1}
.dgx-st{font-size:12px;font-weight:900;text-anchor:middle;fill:#1C1208;stroke:none}
.dgx-s-take{fill:#15803D}.dgx-s-got{fill:#B45309}.dgx-s-lost{fill:#B91C1C}
.dgx-lg{margin:8px 0 4px;font-size:11.5px;font-weight:700;color:#57534E;line-height:1.6}
.dgx .sbd-tl{grid-template-columns:repeat(5,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}.dgx-gw{padding:6px 4px 4px}.dgx-grd{gap:2px}.dgx-cell{height:24px;font-size:13px}.dgx-top i{font-size:15px}.dgx-kp b{font-size:30px}.dgx-sw{gap:4px}.dgx-sx{padding:5px}.dgx-sx figcaption b{font-size:14px}}
@media(max-width:560px){.dgx-sw{grid-template-columns:1fr 1fr}.dgx-sw .dgx-sx:first-child{grid-column:span 2}}
@media(prefers-reduced-motion:reduce){.res,.end,.dgx-pick{animation:none}.dgx-new,.dgx-crk,.dgx-pend,.dgx-gw.dgx-rn::after{animation:none}.dgx-bl s,.dgx-top{transition:none}}
