.dlg{--ac:#A16207;--ac2:#FEF3C7;--acg:linear-gradient(90deg,#A16207,#EAB308 50%,#CA8A04)}
.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(161,98,7,.15);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}
.dg-tb{height:6px;border-radius:99px;background:#EEF0F4;margin-top:10px;overflow:hidden}.dg-tb i{display:block;height:100%;width:100%;border-radius:99px;transform-origin:left center;transform:scaleX(0);transition:transform .6s var(--ease);background:linear-gradient(90deg,#A16207,#EAB308)}
/* 遊び方 */
.intro[hidden]{display:none}
.il{margin:0 0 10px;font-size:13px;font-weight:800;color:#422006;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#FFFBEB;background:#FFFBEB}
.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%,#FDE68A 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,#A16207,#CA8A04);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 26px rgba(161,98,7,.3)}
#play[hidden]{display:none}
/* できごと */
.dg-ev{margin-bottom:10px;padding:10px 14px;border-radius:16px;background:#1C1505;color:#FEF3C7;animation:pop .35s var(--ease)}.dg-ev[hidden]{display:none}
.dg-ev b{display:block;font-size:14px;font-weight:900;color:#FDE047;line-height:1.5}.dg-ev p{margin:3px 0 0;font-size:12.5px;line-height:1.65;font-weight:700}
/* チーム */
.dg-team{display:grid;gap:6px;padding:10px;border-radius:18px;background:#FFFBEB;border:1px solid #FDE68A}
.dg-mb{display:flex;gap:8px;align-items:center;min-width:0}
.dg-av{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:22px;line-height:1;background:#fff;box-shadow:0 0 0 2px #FDE68A}
.dg-mi{flex:1;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}
.dg-nm{grid-column:1/-1;margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;line-height:1.3}
.dg-nm b{font-size:13px;font-weight:900;color:#422006}.dg-nm small{font-size:10.5px;font-weight:800;color:#78716C}
.dg-nm em{margin-left:auto;padding:0 7px;border-radius:99px;background:#A16207;color:#fff;font-style:normal;font-size:10px;font-weight:900;line-height:1.6}.dg-nm em.dg-hv{background:#DC2626}
.dg-st{display:grid;grid-template-columns:auto 1fr 2.1em;gap:4px;align-items:center;min-width:0}
.dg-st span{font-size:10px;font-weight:800;color:#78716C;white-space:nowrap}.dg-st b{font-size:12px;font-weight:900;color:#422006;text-align:right;font-variant-numeric:tabular-nums}
.dg-br{display:block;height:7px;border-radius:99px;background:#fff;box-shadow:inset 0 0 0 1px #E7E5E4;overflow:hidden}
.dg-br u{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#CA8A04,#A16207);transition:width .6s var(--ease)}
.dg-br.dg-mo u{background:linear-gradient(90deg,#4ADE80,#16A34A)}.dg-br.dg-hp u{background:linear-gradient(90deg,#60A5FA,#2563EB)}.dg-br.dg-lo u{background:#EF4444}
.dg-me{padding-top:6px;border-top:1px dashed #FDE68A}.dg-me .dg-st{grid-column:1/-1}
/* 仕事カード */
.dg-wt{margin:12px 0 6px;font-size:13px;font-weight:900;color:#422006}
.dg-cards{display:grid;gap:10px}
.dg-cd{padding:10px 12px;border-radius:16px;background:#fff;border:2px solid #E7E5E4;animation:pop .35s var(--ease) both}
.dg-cd.dg-set{border-color:#FCD34D;background:#FFFDF5}
.dg-ct{display:flex;gap:8px;align-items:flex-start}
.dg-ci{flex:none;font-size:22px;line-height:1.2}
.dg-ct>div{min-width:0}.dg-ct>div>b{display:block;font-size:14.5px;font-weight:900;line-height:1.5;color:#1C1917;overflow-wrap:anywhere}
.dg-tl{display:flex;flex-wrap:wrap;gap:4px 6px;margin:3px 0 0;align-items:center}
.dg-df{font-size:11px;font-weight:800;color:#57534E}.dg-df b{font-size:14px;color:#A16207}
.dg-im{font-size:12px;letter-spacing:-1px;color:#EAB308}.dg-im s{text-decoration:none;color:#E7E5E4}
.dg-tg{padding:1px 7px;border-radius:99px;font-size:10.5px;font-weight:900;line-height:1.6}
.dg-tg.dg-u{background:#FEE2E2;color:#B91C1C}.dg-tg.dg-e{background:#FCE7F3;color:#9D174D}.dg-tg.dg-n{background:#E0E7FF;color:#3730A3}
.dg-op{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.dg-ob{display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 2px 6px;border:2px solid #E7E5E4;border-radius:12px;background:#fff;font:inherit;font-size:12px;font-weight:900;color:#292524;line-height:1.35;cursor:pointer;touch-action:manipulation}
.dg-ob small{font-size:10px;font-weight:800;color:#78716C}
.dg-ob.dg-on{border-color:#A16207;background:#FEF3C7;box-shadow:0 0 0 2px rgba(161,98,7,.25)}.dg-ob.dg-on small{color:#854D0E}
.dg-ob:disabled{cursor:default}.dg-ob:disabled:not(.dg-on){opacity:.45}
.dg-who{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px;padding:6px;border-radius:12px;background:#FFFBEB}
.dg-wb{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 2px;border:2px solid #FDE68A;border-radius:10px;background:#fff;font:inherit;color:#292524;cursor:pointer;touch-action:manipulation;min-width:0}
.dg-wb span{font-size:18px;line-height:1.2}.dg-wb b{font-size:11.5px;font-weight:900}
.dg-wb small{font-size:10px;font-weight:900}.dg-wb small.dg-fit{color:#15803D}.dg-wb small.dg-easy{color:#57534E}.dg-wb small.dg-bore{color:#9A3412}.dg-wb small.dg-hard{color:#DC2626}
.dg-wb i{font-style:normal;font-size:9.5px;font-weight:900;line-height:1.4}.dg-wb i.dg-gd{color:#A16207}.dg-wb i.dg-wk{color:#DC2626}
.dg-wb.dg-on{border-color:#A16207;background:#FEF3C7;box-shadow:0 0 0 2px rgba(161,98,7,.25)}
.dg-wb:disabled{cursor:default}.dg-wb:disabled:not(.dg-on){opacity:.45}
.dg-rc{margin:6px 0 0;font-size:11px;font-weight:800;color:#78716C}
.dg-plan{margin:10px 0 0;padding:8px 12px;border-radius:12px;background:#EFF6FF;font-size:12.5px;font-weight:800;color:#1E3A8A}.dg-plan b{font-size:16px;font-variant-numeric:tabular-nums}.dg-plan b.dg-lw{color:#DC2626}.dg-plan small{margin-left:4px;font-size:10.5px;color:#64748B}
/* AIのおすすめ */
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-radius:18px;background:#FFFBEB;border:1px solid #FDE68A}
.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 #FDE68A}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#A16207}.aiad small b{display:inline-block;padding:1px 9px;border-radius:99px;background:#A16207;color:#fff;font-size:12px}
.aiad p{margin:4px 0 0;font-size:13px;line-height:1.65;font-weight:700;color:#422006}
.aiput{margin-top:8px;padding:8px 14px;border:0;border-radius:99px;background:#A16207;color:#fff;font:inherit;font-size:13px;font-weight:900;cursor:pointer;touch-action:manipulation}.aiput:disabled{opacity:.4;cursor:default}
.go2{display:block;width:100%;margin-top:14px;padding:14px;border:0;border-radius:16px;background:#A16207;color:#fff;font:inherit;font-size:15px;font-weight:900;cursor:pointer}
.go2:disabled{background:#E2E8F0;color:#94A3B8;cursor:default}
/* 週の結果 */
.res{margin-top:12px;border-radius:16px;padding:14px;font-size:13px;line-height:1.75;animation:pop .35s}.res[hidden]{display:none}
.res.right{background:#F0FDF4}.res.wrong{background:#FEF2F2}.res.half{background:#FFFBEB}
.res>b{display:block;font-size:16px}.res.right>b{color:#16A34A}.res.wrong>b{color:#DC2626}.res.half>b{color:#A16207}
.mlr{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.mlr li{display:flex;gap:8px;padding:8px 10px;border-radius:12px;background:#fff;border-left:4px solid #16A34A;animation:pop .3s var(--ease) both}.mlr li.ng{border-left-color:#DC2626}
.mlr .mk{flex:none}.mlr li>div{min-width:0}.mlr span{display:block;font-size:12.5px;line-height:1.6;color:#1F2937;font-weight:700}.mlr span b{font-weight:900}
.dg-dt{margin-top:8px;padding:8px 10px;border-radius:12px;background:#fff}.dg-dt:empty{display:none}
.dg-dt p{margin:0;padding:3px 0;border-top:1px dashed #F1F5F9;font-size:12px;font-weight:700;color:#44403C;line-height:1.6}.dg-dt p:first-child{border-top:0}
.dg-dt p>span:first-child{display:inline-block;min-width:5.6em;font-weight:900;color:#292524}.dg-dt b{font-variant-numeric:tabular-nums}
.dg-dt em{margin-left:3px;font-style:normal;font-size:11px;font-weight:900}.dg-up{color:#16A34A}.dg-dn{color:#DC2626}
.dg-sp{margin-left:8px;white-space:nowrap}.dg-dt small{font-size:10.5px;color:#78716C}
.dg-cmp{margin:8px 0 0;padding:8px 12px;border-radius:12px;background:#1C1505;color:#FEF3C7;font-size:12.5px;font-weight:800;line-height:1.6}.dg-cmp b{color:#FDE047}
.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[hidden]{display:none}
.res,.nx{scroll-margin-bottom:110px}
/* 折れ線グラフ */
.dg-ch{margin-top:10px;padding:8px 6px 6px;border-radius:16px;background:#fff;border:2px solid #E7E5E4}
.dg-mt{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:4px}
.dg-mt button{padding:5px 0;border:0;border-radius:99px;background:#F5F5F4;font:inherit;font-size:10.5px;font-weight:900;color:#57534E;cursor:pointer;white-space:nowrap;touch-action:manipulation}.dg-mt button.dg-on{background:#A16207;color:#fff}
.dg-ch svg{display:block;width:100%;height:auto;stroke:none}.dg-ch svg text,.dg-ch svg rect{stroke:none}
.dg-ch .dg-gl{stroke:#EEF0F4;stroke-width:1}
.dg-ch .dg-tk{font-size:10px;font-weight:800;fill:#78716C;text-anchor:end}
.dg-ch .dg-xl{font-size:10px;font-weight:800;fill:#57534E;text-anchor:middle}
.dg-ch .dg-late{fill:#FEF3C7;opacity:.55}.dg-ch .dg-lt{font-size:9.5px;font-weight:900;fill:#A16207;text-anchor:middle}
.dg-ch .dg-la{fill:none;stroke:#94A3B8;stroke-width:2.5;stroke-dasharray:5 4}.dg-ch .dg-lad{fill:#94A3B8;stroke:#fff;stroke-width:1.5}
.dg-ch .dg-lm{fill:none;stroke:#A16207;stroke-width:3.5;stroke-linejoin:round}.dg-ch .dg-lmd{fill:#A16207;stroke:#fff;stroke-width:1.5}
.dg-lg{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin-top:4px;font-size:11.5px;font-weight:900;color:#44403C}
.dg-lg span{display:flex;align-items:center;gap:5px}.dg-lg span:before{content:"";width:18px;height:0;border-top:3.5px solid #A16207}.dg-lg .dg-lga:before{border-top:2.5px dashed #94A3B8}
.hint{margin:10px 0 0;text-align:center;font-size:11px;color:var(--mut)}.hint[hidden]{display:none}
.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) both}
.fx.A{color:#16A34A}.fx.B{color:#A16207}.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)}.end[hidden]{display:none}
.dlg .sbd-tl{grid-template-columns:repeat(6,minmax(0,1fr))}
/* 結果：上司タイプと点数の内わけ */
.dg-ty{margin:14px 0 0;padding:14px;border-radius:18px;background:#1C1505;color:#FEF3C7;text-align:center}
.dg-ty small{display:block;font-size:11px;font-weight:800;color:#FCD34D}.dg-ty b{display:block;margin-top:2px;font-size:20px;font-weight:900;color:#fff;line-height:1.4}.dg-ty p{margin:6px 0 0;font-size:12.5px;line-height:1.7;font-weight:700;text-align:left}
.dg-pt{margin:10px 0 0;padding:10px 12px;list-style:none;border-radius:14px;background:#fff;display:grid;gap:6px}
.dg-pt li{display:grid;grid-template-columns:8.2em 1fr 3.4em;gap:8px;align-items:center;font-size:12px;font-weight:800;color:#44403C}
.dg-pt b{text-align:right;font-size:14px;font-weight:900;color:#1C1917;font-variant-numeric:tabular-nums}.dg-pt b small{font-size:10px;color:#78716C}
/* ふりかえり */
.dg-h4{margin:18px 0 0;font-size:14px;font-weight:900}
.dg-fk li{background:#FFFBEB;border-left-color:#A16207}.dg-fk b{display:block;font-size:13.5px;font-weight:900;color:#422006}
.dg-tbl{margin-top:8px;border-radius:12px;border:1px solid #E7E5E4;overflow:hidden}
.dg-tbl table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.dg-tbl th,.dg-tbl td{padding:5px 2px;text-align:center;font-size:12px;font-weight:800;border-bottom:1px solid #F5F5F4;white-space:nowrap}
.dg-tbl thead th{font-size:10.5px;color:#57534E;background:#FAFAF9}.dg-tbl tbody th{font-size:11px;color:#57534E}
.dg-tbl td span{font-size:15px;letter-spacing:1px}.dg-tbl .dg-x{opacity:.35}.dg-tbl td.dg-x{opacity:1;color:#DC2626}
.dg-tbl tbody tr:nth-child(n+7){background:#FFFDF5}.dg-tbl tr:last-child th,.dg-tbl tr:last-child td{border-bottom:0}
.dg-nt{margin:6px 0 0;font-size:11px;color:var(--mut);line-height:1.6}
.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)}
#revc[hidden],#sharec[hidden]{display:none}
@media(max-width:360px){.game{padding:12px}.ghud{gap:4px;font-size:10.5px;letter-spacing:-.02em}.ghud b{font-size:14px}.dg-mi{grid-template-columns:1fr}.dg-ob{font-size:11px}.dg-ob small,.dg-wb small{font-size:9.5px}.dg-wb b{font-size:10.5px}.dg-pt li{grid-template-columns:7.4em 1fr 3.2em;gap:6px;font-size:11px}.dg-tbl td span{font-size:13px;letter-spacing:0}.aiad{padding:10px}.aiad .av{width:34px;height:34px;font-size:22px}.dg-mt button{font-size:9.5px}}
@media(prefers-reduced-motion:reduce){.res,.end,.fx,.dg-cd,.mlr li,.dg-ev{animation:none}.dg-br u,.dg-tb i{transition:none}}
