.dam{--ac:#A16208;--ac2:#FDE68A;--acg:linear-gradient(90deg,#A16208,#D97706 50%,#0284C7)}
.dam [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(161,98,8,.16);overflow:hidden}
.gtop{margin-bottom:12px}
.ghud{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;font-size:12px;font-weight:800;color:var(--ink2)}.ghud span{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:#713F12;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#FEF9C3;background:#FEFCE8}
.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,#A16208,#CA8A04);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(161,98,8,.3)}
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#FEFCE8;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:#A16208}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#1C1305}
.aiput{margin-top:8px;padding:8px 14px;min-height:40px;border:0;border-radius:99px;background:#A16208;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:linear-gradient(90deg,#0369A1,#0284C7);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;touch-action:manipulation;box-shadow:0 8px 20px rgba(2,132,199,.28)}
.go2:disabled{background:#E2E8F0;color:#94A3B8;cursor:default;box-shadow:none}
.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(22px,8vw,34px);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:#0284C7}.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:#1C1305;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)}
/* はじめの説明（2つの線） */
.dam-kd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.dam-kd p{margin:0;padding:8px 10px;border-radius:12px;background:#F8FAFC;border:1px solid #E2E8F0;font-size:12px;font-weight:700;line-height:1.5;color:#334155}
.dam-kd span{display:block;font-size:18px;line-height:1.2}.dam-kd b{display:block;font-size:12.5px;font-weight:900;color:#1C1305}
.dam-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}
/* その月の出来事 */
.dam-wk{padding:12px 14px;border-radius:18px;background:#1C1305;color:#FEF3C7}.dam-wk>b{display:block;font-size:16px;font-weight:900;color:#fff;line-height:1.5}
.dam-wk p{margin:6px 0 0;font-size:13.5px;line-height:1.75;font-weight:700}.dam-wk p b{color:#FCD34D;font-weight:900}
.dam-wk .dam-cr{margin-top:6px;padding:6px 10px;border-radius:10px;background:rgba(254,243,199,.1);font-size:12.5px;line-height:1.6;color:#FDE68A}
/* 予報 */
.dam-fch{margin:12px 0 6px;font-size:12px;font-weight:900;color:#713F12}
.dam-fc{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.dam-fc li{min-width:0;padding:7px 6px;border-radius:12px;background:#F0F9FF;border:1px solid #BAE6FD;text-align:center;line-height:1.35}
.dam-fc li.dam-fnow{border:2px solid #0284C7;background:#E0F2FE}
.dam-fc li.dam-fbn span{color:#B91C1C}
.dam-fc small{display:block;font-size:10.5px;font-weight:800;color:#0369A1}
.dam-fc b{display:block;font-size:13.5px;font-weight:900;color:#0C4A6E;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.02em}
.dam-fc em{display:block;font-style:normal;font-size:9.5px;font-weight:800;color:#15803D}
.dam-fc span{display:block;margin-top:2px;font-size:10px;font-weight:800;color:#64748B}
/* ダムの絵 */
.dam-sw{position:relative;margin-top:10px;border-radius:18px;overflow:hidden;background:#E0F2FE;box-shadow:inset 0 0 0 2px rgba(2,132,199,.18)}
.dam-sw svg.dam-sc{display:block;width:100%!important;height:auto!important;stroke:none!important;fill:none!important;overflow:hidden}
.dam-sc text{stroke:none}
.dam-sky{fill:#E0F2FE}
.dam-mt{fill:#A3B18A}.dam-snow{fill:#fff}
.dam-tr{text-anchor:middle}
.dam-riv{fill:none;stroke:#38BDF8!important;stroke-width:5;stroke-linecap:round}
.dam-cld{fill:#fff;stroke:#CBD5E1!important;stroke-width:1}
.dam-drop{stroke:#38BDF8!important;stroke-width:2;stroke-linecap:round;opacity:.55}
.dam-rn .dam-drop{opacity:1;animation:dmdrop .45s linear infinite}
@keyframes dmdrop{0%{transform:translateY(-4px);opacity:0}30%{opacity:1}100%{transform:translateY(8px);opacity:0}}
.dam-bed{fill:#78716C}
.dam-wav{fill:none;stroke:rgba(255,255,255,.7)!important;stroke-width:1.5}
.dam-ln{fill:none;stroke-width:1.4;stroke-dasharray:4 3}
.dam-lt{stroke:#DC2626!important}.dam-ll{stroke:#D97706!important}
.dam-lb{font-size:8px;font-weight:900;paint-order:stroke;stroke:#fff!important;stroke-width:2.4px;stroke-linejoin:round}
.dam-lbt{fill:#B91C1C}.dam-lbl{fill:#B45309}
.dam-pvln{fill:none;stroke:#0C4A6E!important;stroke-width:1.6;stroke-dasharray:2 2}
.dam-pvln.dam-pvb{stroke:#DC2626!important}
.dam-lvt{font-size:13px;font-weight:900;fill:#fff;text-anchor:middle;paint-order:stroke;stroke:rgba(3,105,161,.6)!important;stroke-width:3px}
.dam-wall{fill:#A8A29E}.dam-wtop{fill:none;stroke:#57534E!important;stroke-width:3}
.dam-fall{fill:none;stroke:#7DD3FC!important;stroke-width:0;stroke-linecap:round;transition:stroke-width .3s}
.dam-fall.dam-on{stroke-width:6;animation:dmfall .5s linear infinite;stroke-dasharray:6 4}
@keyframes dmfall{to{stroke-dashoffset:-10}}
.dam-out path{fill:none;stroke-linecap:round;transition:stroke-width .2s}
.dam-o0{stroke:#38BDF8!important}.dam-o1{stroke:#22C55E!important}.dam-o2{stroke:#A8A29E!important}
.dam-going .dam-out path{stroke-dasharray:6 4;animation:dmfall .4s linear infinite}
/* 予報どおりならの見こみ */
.dam-pv{margin-top:8px;padding:8px 12px;border-radius:12px;background:#F8FAFC;border:1px solid #E2E8F0;font-size:12.5px;font-weight:700;line-height:1.6;color:#334155}
.dam-pv p{margin:0}.dam-pv b{color:#0369A1;font-size:14px}
.dam-pv .dam-pw{color:#B91C1C;font-weight:900}.dam-pv .dam-pok{color:#15803D;font-weight:900}
/* 3つの水門 */
.dam-gts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.dam-gt{min-width:0;padding:8px 6px 6px;border-radius:16px;background:#F5F5F4;border:2px solid #E7E5E4;text-align:center}
.dam-g0{background:#F0F9FF;border-color:#BAE6FD}.dam-g1{background:#F0FDF4;border-color:#BBF7D0}.dam-g2{background:#FAFAF9;border-color:#E7E5E4}
.dam-gn{margin:0;font-size:12px;font-weight:900;color:#1C1305;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dam-gn span{margin-right:2px}
.dam-gv{margin:2px 0 6px;line-height:1.25}.dam-gv b{display:block;font-size:14px;font-weight:900;color:#0C4A6E;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.02em}
.dam-gv small{display:block;min-height:14px;font-size:10px;font-weight:800;color:#64748B;white-space:nowrap}
.dam-gv small.dam-okn{color:#15803D}.dam-gv small.dam-bad{color:#DC2626}.dam-gv small.dam-warn{color:#B45309}
.dam-tk{--p:0%;--n:0%;position:relative;height:132px;margin:0 auto;width:min(100%,76px);border-radius:12px;background:#E7E5E4;box-shadow:inset 0 0 0 2px #A8A29E;overflow:hidden;touch-action:none;cursor:ns-resize;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;outline:none}
.dam-tk:focus-visible{box-shadow:inset 0 0 0 2px #A8A29E,0 0 0 3px #0284C7}
.dam-tk .dam-flow{position:absolute;left:0;right:0;bottom:0;height:var(--p);background:linear-gradient(180deg,#7DD3FC,#0284C7);transition:height .12s}
.dam-g1 .dam-tk .dam-flow{background:linear-gradient(180deg,#86EFAC,#16A34A)}
.dam-g2 .dam-tk .dam-flow{background:linear-gradient(180deg,#D6D3D1,#78716C)}
.dam-tk .dam-door{position:absolute;left:0;right:0;top:0;bottom:var(--p);background:repeating-linear-gradient(180deg,#A8A29E 0 10px,#8D8781 10px 12px);transition:bottom .12s}
.dam-tk .dam-hd{position:absolute;left:8px;right:8px;bottom:calc(var(--p) - 5px);height:10px;border-radius:99px;background:#1C1305;box-shadow:0 0 0 2px #fff;transition:bottom .12s}
.dam-tk .dam-need{position:absolute;left:0;right:0;bottom:var(--n);height:0;border-top:2px dashed #DC2626;z-index:1}
.dam-tk.dam-drg .dam-flow,.dam-tk.dam-drg .dam-door,.dam-tk.dam-drg .dam-hd{transition:none}
.dam-tk.dam-lock{cursor:default;opacity:.75}
.dam-bt{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:6px}
.dam-b{height:44px;border:2px solid #D6D3D1;border-radius:12px;background:#fff;color:#1C1305;font:inherit;font-size:15px;font-weight:900;line-height:1;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;padding:0}
.dam-b:disabled{opacity:.35;cursor:default}
.dam-gd{margin:4px 0 0;font-size:10px;font-weight:800;color:#78716C;line-height:1.35}
/* 1か月の結果 */
.dam-rl{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:5px}
.dam-rl li{padding:6px 10px;border-radius:10px;background:#fff;border-left:4px solid #94A3B8;font-size:12.5px;line-height:1.6;color:var(--ink2)}
.dam-rl li b{color:#0C4A6E}.dam-rl li>b:last-child:not(:first-child){display:block}
.dam-rl li.dam-lmid{border-left-color:#D97706}.dam-rl li.dam-lbad{border-left-color:#DC2626}.dam-rl li.dam-lbad>b:last-child{color:#B91C1C}.dam-rl li.dam-lmid>b:last-child{color:#B45309}
.dam-rai{margin:8px 0 0;font-size:11.5px;font-weight:700;color:#64748B}
/* 12か月の水位 */
.dam-hs{margin-top:12px;padding:10px 10px 8px;border-radius:16px;background:#F8FAFC;border:1px solid #E2E8F0}
.dam-hst{margin:0 0 6px;font-size:12px;font-weight:900;color:#713F12}
.dam-hl{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;align-items:end}
.dam-hl li{min-width:0;text-align:center}
.dam-hl span{display:block;position:relative;height:46px;border-radius:6px;background:#E2E8F0;overflow:hidden}
.dam-hl i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#7DD3FC,#0284C7)}
.dam-hl li.dam-hm i{background:linear-gradient(180deg,#FDE68A,#D97706)}.dam-hl li.dam-hb i{background:linear-gradient(180deg,#FCA5A5,#DC2626)}
.dam-hl span:before,.dam-hl span:after{content:"";position:absolute;left:0;right:0;z-index:1;border-top:1px dashed}
.dam-hl span:before{bottom:73.3%;border-color:#DC2626}.dam-hl span:after{bottom:16.7%;border-color:#D97706}
.dam-hl small{display:block;margin-top:2px;font-size:9.5px;font-weight:800;color:#64748B;white-space:nowrap;overflow:hidden}
.dam-hl li.dam-hnow span{box-shadow:inset 0 0 0 2px #0284C7}.dam-hl li.dam-hnow small{color:#0284C7;font-weight:900}
/* 結果：タイプと大きな数字 */
.dam-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#1C1305;color:#FEF3C7;text-align:center}
.dam-tyl{margin:0;font-size:12px;font-weight:800;color:#FCD34D}
.dam-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.dam-tyn span{margin-right:6px}
.dam-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.dam-kp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed rgba(254,243,199,.25)}
.dam-kp>div{min-width:0;padding:10px 6px;border-radius:14px;background:rgba(255,255,255,.07)}
.dam-kp small{display:block;font-size:11.5px;font-weight:800;line-height:1.45;color:#FDE68A}
.dam-kp b{display:block;margin-top:4px;font-size:clamp(36px,12vw,50px);font-weight:900;line-height:1.05;color:#FCD34D;font-variant-numeric:tabular-nums}.dam-kp div+div b{color:#7DD3FC}
.dam-kp b i{margin-left:2px;font-style:normal;font-size:.42em}
.dam-kp em{display:block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:#FEF3C7;line-height:1.5}
.dam-ai{margin:10px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#FDE68A}.dam-ai b{color:#fff}
/* ふりかえり */
.dam-gf{margin:0;padding:10px;border-radius:14px;background:#F8FAFC;border:1px solid #E2E8F0}
.dam-gf svg{display:block;width:100%!important;height:auto!important;stroke:none!important;fill:none!important}
.dam-gf text{stroke:none}
.dam-gok{fill:rgba(56,189,248,.12)}
.dam-gx{font-size:8px;font-weight:800;fill:#64748B;text-anchor:middle}
.dam-gl{fill:none;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.dam-gl.dam-you{stroke:#0284C7!important;stroke-width:3}.dam-gl.dam-aiw{stroke:#94A3B8!important;stroke-dasharray:5 4}.dam-gl.dam-best{stroke:#16A34A!important;stroke-dasharray:2 3}
.dam-gsh{fill:#DC2626;stroke:#fff!important;stroke-width:1.2}
.dam-gf figcaption{display:grid;gap:4px;margin-top:8px;font-size:12.5px;font-weight:900;color:#1C1305}
.dam-gf figcaption span{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px}
.dam-gf figcaption i{flex:none;display:inline-block;width:18px;height:4px;border-radius:2px;align-self:center}
.dam-gf .dam-you i{background:#0284C7}.dam-gf .dam-aiw i{background:#94A3B8}.dam-gf .dam-best i{background:#16A34A}
.dam-gf figcaption b{font-size:15px;color:#A16208}.dam-gf figcaption small{font-size:11px;color:#64748B;font-weight:800}
.dam-tbw{margin-top:12px;overflow-x:auto}
.dam-tb{width:100%;border-collapse:collapse;font-size:11.5px;font-variant-numeric:tabular-nums}
.dam-tb th,.dam-tb td{padding:6px 3px;border-bottom:1px solid #E2E8F0;text-align:right;line-height:1.35;white-space:nowrap}
.dam-tb thead th{font-size:10px;color:#64748B;text-align:right}.dam-tb thead th:first-child,.dam-tb tbody th{text-align:left}
.dam-tb tbody th{font-weight:900;color:#1C1305}
.dam-tb td b{color:#0369A1}.dam-tb .dam-tw{color:#B45309;font-weight:900}.dam-tb .dam-tr2,.dam-tb .dam-tr2 b{color:#DC2626;font-weight:900}
.dam-tb tr.dam-tbad{background:#FEF2F2}
.dam-tbn{margin:4px 0 0;font-size:10.5px;color:#64748B;text-align:right}
.dam-gdt{margin:14px 0 0;font-size:12.5px;font-weight:900;color:#14532D}
.dam-gd{margin:6px 0 0;padding:10px 12px;list-style:none;border-radius:14px;background:#F0FDF4;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px}
.dam-gd li{min-width:0;font-size:12px;line-height:1.5}.dam-gd b{display:block;color:#14532D}.dam-gd span{color:#334155;font-weight:700}
.dam .sbd-tl{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:360px){.game{padding:12px}.ghud{gap:2px 6px;font-size:10.5px;letter-spacing:-.02em}.ghud b{font-size:14px}.dam-gts{gap:5px}.dam-gt{padding:6px 4px 5px}.dam-gn{font-size:11px}.dam-gv b{font-size:12.5px}.dam-fc b{font-size:12px}.dam-b{font-size:14px}.dam-gd{grid-template-columns:1fr}.dam-kp b{font-size:34px}}
@media(prefers-reduced-motion:reduce){.res,.end{animation:none}.dam-rn .dam-drop,.dam-fall.dam-on,.dam-going .dam-out path{animation:none}.dam-tk .dam-flow,.dam-tk .dam-door,.dam-tk .dam-hd{transition:none}}
