.trf{--ac:#0F766E;--ac2:#CCFBF1;--acg:linear-gradient(90deg,#0D9488,#2DD4BF 55%,#FACC15)}
.trf [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(13,148,136,.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:#134E4A;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#F0FDFA;background:#F0FDFA}
.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%,#99F6E4 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,#0F766E,#0D9488);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(13,148,136,.3)}
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#F0FDFA;border:1px solid #99F6E4}
.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 #99F6E4}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#0F766E}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#042F2E}
.aiput{margin-top:8px;padding:8px 14px;border:0;border-radius:99px;background:#0F766E;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,#0F766E,#14B8A6);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;touch-action:manipulation;box-shadow:0 8px 20px rgba(15,118,110,.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(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:#0F766E}.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:#042F2E;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)}
/* はじめの説明（車の種類） */
.trf-kd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.trf-kd p{margin:0;padding:8px 10px;border-radius:12px;background:#F8FAFC;border:1px solid #E2E8F0;font-size:11.5px;font-weight:700;line-height:1.5;color:#334155}
.trf-kd span{display:block;font-size:20px;line-height:1.2}.trf-kd span i{font-style:normal;font-size:12px;vertical-align:top}.trf-kd b{display:block;font-size:12.5px;font-weight:900;color:#042F2E}
.trf-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}
/* その日の出来事 */
.trf-day{padding:12px 14px;border-radius:18px;background:#042F2E;color:#CCFBF1}.trf-day>b{display:block;font-size:16px;font-weight:900;color:#fff;line-height:1.5}
.trf-day p{margin:6px 0 0;font-size:13.5px;line-height:1.75;font-weight:700}.trf-day p b{color:#FACC15;font-weight:900}
/* 時計とやる気 */
.trf-top{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;margin:12px 0 8px;padding:8px 12px;border-radius:14px;background:#F0FDFA;border:1px solid #99F6E4}
.trf-clk small,.trf-mo small{display:block;font-size:11px;font-weight:800;color:#115E59;line-height:1.3}
.trf-clk b{font-size:19px;font-weight:900;color:#042F2E;font-variant-numeric:tabular-nums;line-height:1.15;white-space:nowrap}
.trf-mo{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px;min-width:0}.trf-mo small{grid-column:1/-1}
.trf-mob{display:block;height:10px;border-radius:99px;background:#E2E8F0;overflow:hidden}.trf-mob i{display:block;height:100%;width:100%;border-radius:99px;background:linear-gradient(90deg,#14B8A6,#2DD4BF);transition:width .5s var(--ease)}.trf-mob i.trf-low{background:linear-gradient(90deg,#F97316,#DC2626)}
.trf-mo>b{font-size:18px;font-weight:900;color:#0F766E;font-variant-numeric:tabular-nums}
/* 交差点の地図 */
.trf-mw{position:relative;border-radius:18px;overflow:hidden;background:#BBF7D0;box-shadow:inset 0 0 0 2px rgba(15,118,110,.18)}
.trf-mw svg.trf-map{display:block;width:100%!important;height:auto!important;stroke:none!important;fill:none!important;overflow:hidden;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.trf-map.trf-shake{animation:trfshk .45s}
@keyframes trfshk{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
.trf-map text{stroke:none;text-anchor:middle}
.trf-grass{fill:#D9F99D}
.trf-road{fill:#475569}
.trf-ln{fill:none;stroke:rgba(255,255,255,.7);stroke-width:1.2;stroke-dasharray:6 6}
.trf-box{fill:#334155;stroke:rgba(255,255,255,.85);stroke-width:1.5;stroke-dasharray:3 3}
.trf-bg rect{fill:#042F2E}.trf-bg text{font-size:11px;font-weight:900;fill:#fff}
.trf-bg2 rect{fill:#7C2D12}
.trf-cp{font-size:9px;font-weight:900;fill:#B91C1C;paint-order:stroke;stroke:#fff!important;stroke-width:2.6px;stroke-linejoin:round}
.trf-lb{font-size:9px;font-weight:900;fill:#14532D;paint-order:stroke;stroke:#F7FEE7!important;stroke-width:2.4px;stroke-linejoin:round}
.trf-ex{font-size:9px;font-weight:900;fill:#065F46;paint-order:stroke;stroke:#F7FEE7!important;stroke-width:2.4px;stroke-linejoin:round}
.trf-sh{cursor:pointer}.trf-hit{fill:transparent}
.trf-shb{fill:#111827;stroke:#fff;stroke-width:1.2}
.trf-lamp{fill:#EF4444;transition:fill .2s}.trf-sh.trf-on .trf-lamp{fill:#22C55E}
.trf-sh.trf-on .trf-shb{stroke:#22C55E;stroke-width:2}
.trf-car{transition:transform .32s cubic-bezier(.3,.7,.4,1),opacity .3s}
.trf-cr{fill:#fff;stroke:#CBD5E1;stroke-width:1.5}
.trf-ce{font-size:16.5px;fill:#000}.trf-ck,.trf-cx,.trf-fx{fill:#000}
.trf-cx{font-size:10px}
.trf-c-x .trf-cr{fill:#FEE2E2;stroke:#EF4444}
.trf-c-a .trf-cr{fill:#FEF2F2;stroke:#DC2626;stroke-width:2;animation:trfsir 1s steps(2) infinite}
@keyframes trfsir{0%{stroke:#DC2626}50%{stroke:#2563EB}}
.trf-c-t .trf-cr{fill:#FEF3C7;stroke:#D97706}
.trf-wb{display:none}.trf-wb circle{fill:#F59E0B;stroke:#fff;stroke-width:1}.trf-wb text{font-size:8px;font-weight:900;fill:#fff}
.trf-w1 .trf-wb,.trf-w2 .trf-wb{display:inline}.trf-w2 .trf-wb circle{fill:#DC2626}
.trf-ck{display:none;font-size:10px}.trf-chk .trf-ck{display:inline}
.trf-will .trf-cr{stroke:#16A34A;stroke-width:3}
.trf-warn .trf-cr{stroke:#DC2626;stroke-width:3;stroke-dasharray:3 2}
.trf-chk .trf-cr{stroke:#D97706;stroke-width:3;stroke-dasharray:4 2}
.trf-hid,.trf-fly,.trf-out{opacity:0}
.trf-ov rect{fill:#DC2626}.trf-ov text{font-size:9px;font-weight:900;fill:#fff}
.trf-fx{font-size:16px;font-weight:900;pointer-events:none;animation:trffx .9s var(--ease) forwards;transform-box:fill-box;transform-origin:center}
.trf-fxa{font-size:34px;animation-duration:1.1s}
@keyframes trffx{0%{opacity:0;transform:scale(.5)}25%{opacity:1;transform:scale(1.25)}70%{opacity:1}100%{opacity:0;transform:translateY(-12px)}}
/* 信号のボタン */
.trf-sig{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.trf-sx{min-width:0;padding:8px;border-radius:16px;background:#F8FAFC;border:2px solid #E2E8F0;display:grid;gap:6px}
.trf-sx.trf-sxbad{border-color:#DC2626;background:#FEF2F2}
.trf-sxt{margin:0;font-size:13px;font-weight:900;color:#042F2E;line-height:1.35}.trf-sxt small{display:block;font-size:10.5px;font-weight:800;color:#64748B}
.trf-sb{display:grid;grid-template-columns:1fr;justify-items:center;align-content:center;gap:1px;min-height:52px;width:100%;padding:5px 6px;border:2px solid #FCA5A5;border-radius:12px;background:#fff;color:#042F2E;font:inherit;font-size:12px;font-weight:800;text-align:center;line-height:1.3;cursor:pointer;touch-action:manipulation;transition:background .15s,border-color .15s}
.trf-sb span{min-width:0;overflow-wrap:anywhere}.trf-sb b{font-size:13px;font-weight:900;color:#B91C1C}
.trf-sb.trf-sbon{border-color:#22C55E;background:#F0FDF4}.trf-sb.trf-sbon b{color:#15803D}
.trf-sb:disabled{opacity:.55;cursor:default}
/* 見通し・注意 */
.trf-pv{margin:10px 0 0;font-size:12.5px;font-weight:800;color:#334155;line-height:1.6;text-align:center}.trf-pv b{font-size:15px;color:#0F766E}
.trf-bad{color:#DC2626}
.trf-wn{margin:6px 0 0;display:grid;gap:4px}.trf-wn span{display:block;padding:6px 10px;border-radius:10px;background:#FEF2F2;color:#991B1B;font-size:12px;font-weight:800;line-height:1.5}
.trf-del{display:block;width:100%;margin-top:10px;min-height:52px;padding:8px 12px;border:2px dashed #0D9488;border-radius:16px;background:#F0FDFA;color:#115E59;font:inherit;font-size:14px;font-weight:900;cursor:pointer;touch-action:manipulation;line-height:1.35}
.trf-del small{display:block;font-size:11px;font-weight:800;color:#0F766E}
.trf-del:disabled{opacity:.5;cursor:default}.trf-del.trf-deldone{opacity:1;border-style:solid;background:#CCFBF1}
.trf-log{margin:8px 0 0;min-height:1.6em;font-size:12px;font-weight:800;color:#475569;text-align:center;line-height:1.6}
/* 1日の結果 */
.trf-rs{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:6px}.trf-rs span{padding:3px 8px;border-radius:99px;background:rgba(255,255,255,.75);font-size:12px;font-weight:800;color:#334155}.trf-rs b{color:#042F2E}
.trf-rai{margin:6px 0 0;font-size:12.5px;font-weight:800;color:#475569}
.trf-why{margin:6px 0 0;font-size:11.5px;color:#64748B}
/* 予定表 */
.trf-pl{margin-top:12px;padding:10px 8px 8px;border-radius:16px;background:#F8FAFC;border:1px solid #E2E8F0}
.trf-plt{margin:0 0 6px;padding-left:2px;font-size:12px;font-weight:900;color:#134E4A}
.trf-pt{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}
.trf-pt th,.trf-pt td{padding:3px 1px;border-top:1px solid #E2E8F0;text-align:center;vertical-align:middle;line-height:1.25}
.trf-pt thead th{border-top:0;font-size:10.5px;color:#64748B;font-variant-numeric:tabular-nums}
.trf-pt tbody th{width:3.6em;font-size:14px;font-weight:900}.trf-pt tbody th small{display:block;font-size:9px;color:#475569;font-weight:800;overflow-wrap:anywhere}
.trf-pt td{font-size:12px;letter-spacing:-.12em;word-break:break-all}
.trf-pt .trf-pnow{background:#CCFBF1;color:#042F2E}.trf-pt thead .trf-pnow{border-radius:6px 6px 0 0;font-weight:900}
.trf-pt .trf-ppast{opacity:.35}
.trf-px{font-style:normal}.trf-px::after{content:'❗';font-size:8px;vertical-align:top}
/* 5日の記録 */
.trf-hs{margin-top:12px;padding:10px 10px 8px;border-radius:16px;background:#F8FAFC;border:1px solid #E2E8F0}
.trf-hst{margin:0 0 6px;font-size:12px;font-weight:900;color:#134E4A}
.trf-hl{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.trf-hl li{min-width:0;padding:4px 1px;border-radius:8px;background:#fff;border:1px solid #E2E8F0;text-align:center;line-height:1.3}
.trf-hl small{display:block;font-size:9.5px;font-weight:800;color:#64748B;white-space:nowrap}.trf-hl b{display:block;font-size:15px}
.trf-hl em{display:block;font-style:normal;font-size:11px;font-weight:900;color:#042F2E}.trf-hl i{display:block;min-height:12px;font-style:normal;font-size:9.5px;font-weight:800;color:#B91C1C}
.trf-hl li.trf-hg{background:#F0FDF4;border-color:#86EFAC}.trf-hl li.trf-hm{background:#FFFBEB;border-color:#FCD34D}.trf-hl li.trf-hb{background:#FEF2F2;border-color:#FCA5A5}
.trf-hl li.trf-hnow{border:2px solid #0F766E}
/* 結果：タイプと大きな数字 */
.trf-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#042F2E;color:#CCFBF1;text-align:center}
.trf-tyl{margin:0;font-size:12px;font-weight:800;color:#5EEAD4}
.trf-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.trf-tyn span{margin-right:6px}
.trf-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.trf-kp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed rgba(204,251,241,.25)}
.trf-kp>div{min-width:0;padding:10px 6px;border-radius:14px;background:rgba(255,255,255,.07)}
.trf-kp small{display:block;font-size:11.5px;font-weight:800;line-height:1.45;color:#99F6E4}
.trf-kp b{display:block;margin-top:4px;font-size:clamp(36px,12vw,50px);font-weight:900;line-height:1.05;color:#FACC15;font-variant-numeric:tabular-nums}.trf-kp div+div b{color:#FCA5A5}
.trf-kp b i{margin-left:2px;font-style:normal;font-size:.42em}
.trf-kp em{display:block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:#CCFBF1;line-height:1.5}
.trf-ai{margin:10px 0 0;font-size:12px;font-weight:700;line-height:1.6;color:#99F6E4}.trf-ai b{color:#fff}
/* ふりかえり */
.trf-cw{margin:0;padding:10px;border-radius:14px;background:#F8FAFC;border:1px solid #E2E8F0}
.trf-cw figcaption{margin-bottom:6px;font-size:12.5px;font-weight:900;color:#042F2E;line-height:1.5}
.trf-cw svg{display:block;width:100%!important;height:auto!important;stroke:none!important;fill:none!important}
.trf-cw text{stroke:none}
.trf-gl{stroke:#E2E8F0!important;stroke-width:.8}.trf-gt{font-size:8px;font-weight:800;fill:#94A3B8;text-anchor:end}
.trf-gd2{stroke:#94A3B8!important;stroke-width:.8;stroke-dasharray:2 2}.trf-gx{font-size:11px;text-anchor:middle;fill:#000}
.trf-gb{fill:#2DD4BF}
.trf-ga{fill:none;stroke:#EF4444!important;stroke-width:1.8;stroke-linejoin:round}.trf-gad{fill:#EF4444}
.trf-gg{fill:none;stroke:#0F766E!important;stroke-width:1.4;stroke-dasharray:4 3}
.trf-cl{display:flex;flex-wrap:wrap;gap:2px 12px;margin:6px 0 0;font-size:11.5px;font-weight:800}.trf-cl1{color:#0D9488}.trf-cl2{color:#EF4444}.trf-cl3{color:#0F766E}
.trf-tbw{margin-top:12px;overflow-x:auto}
.trf-tb{width:100%;border-collapse:collapse;font-size:12.5px}
.trf-tb th,.trf-tb td{padding:7px 6px;border-bottom:1px solid #E2E8F0;text-align:left;vertical-align:top;line-height:1.45}
.trf-tb thead th{font-size:11.5px;color:#64748B}.trf-tb thead small{display:block;font-size:9.5px;font-weight:700}
.trf-tb tbody th{font-weight:900;color:#042F2E}.trf-tb small{display:block;font-size:10.5px;color:#64748B;font-weight:700}
.trf-tb td b{font-size:14px;color:#0F766E;white-space:nowrap}
.trf-gd{margin-top:12px;padding:10px 12px;border-radius:14px;background:#F0FDFA}
.trf-gd>p{margin:0 0 6px;font-size:12.5px;font-weight:900;color:#134E4A}
.trf-gd details{border-top:1px solid #CCFBF1;padding:4px 0}.trf-gd summary{cursor:pointer;min-height:32px;display:flex;align-items:center;font-size:13px;font-weight:900;color:#042F2E}
.trf-gd ol{margin:2px 0 4px;padding:0;list-style:none;display:grid;gap:2px}.trf-gd li{font-size:12.5px;font-weight:700;color:#334155;font-variant-numeric:tabular-nums}
.trf .sbd-tl{grid-template-columns:repeat(5,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}.trf-sig{gap:6px}.trf-sx{padding:6px}.trf-sb{padding:5px 4px;font-size:11px}.trf-sb b{font-size:12px}.trf-clk b{font-size:17px}.trf-kp b{font-size:34px}.trf-kd p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.res,.end{animation:none}.trf-car,.trf-mob i,.trf-lamp{transition:none}.trf-c-a .trf-cr,.trf-fx,.trf-map.trf-shake{animation:none}}
