/* soc-town（架空の 町の 地図）。えらんだ＝オレンジ、正かい＝みどり、まちがい＝赤。字は 16px 以上 */
.st { --st-o: #f59e0b; --st-ok: #10b981; --st-okd: #047857; --st-ng: #ef4444; --st-ngd: #b91c1c; font-size: 1.05rem; }
.st rt { font-size: .5em; font-weight: 500; }
.st-lead { margin: 0 0 8px; }
.st-q { background: linear-gradient(180deg, #fff8e6, #fffdf6); border: 2px solid var(--st-o); border-radius: 16px; padding: 8px 14px; margin-bottom: 10px; font-weight: 700; font-size: 1.08rem; line-height: 1.8; box-shadow: 0 2px 8px rgba(245, 158, 11, .12); }
.st-q:empty { display: none; }
.st-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.st-top:empty { display: none; }
.st-stage { position: relative; border-radius: 18px; padding: 6px; background: linear-gradient(180deg, #e9dfc6, #d9c9a2); box-shadow: inset 0 1px 0 #fff8, 0 4px 14px rgba(80, 60, 20, .18); }
.st-svg, .st-osvg { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; border-radius: 12px; user-select: none; -webkit-user-select: none; }
.st-osvg { max-width: 300px; background: #fffaf0; }
.st-ctl { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 10px 0 6px; }
.st-ctl:empty { display: none; }
.st-b { min-height: 48px; min-width: 64px; padding: 4px 16px; border: 2px solid #cbbf9f; border-radius: 14px; background: linear-gradient(180deg, #fff 0%, #fffaf0 60%, #f3ead6 100%);
  box-shadow: 0 3px 0 #ddd0ad, 0 4px 10px rgba(80, 60, 20, .1); font: inherit; font-weight: 700; color: var(--ink, #1f2937); cursor: pointer; line-height: 1.5; transition: transform .12s, box-shadow .12s; }
.st-b:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #ddd0ad; }
.st-b:disabled { cursor: default; opacity: .55; }
.st-b.st-sel { opacity: 1; border-color: var(--st-o); background: linear-gradient(180deg, #fffaf0, #ffe9b8); box-shadow: 0 0 0 3px rgba(245, 158, 11, .3), 0 3px 0 #f2c66b; }
.st-b.st-okb { opacity: 1; border-color: var(--st-ok); background: #dcf7ea; }
.st-b.st-ngb { opacity: 1; border-color: var(--st-ng); background: #ffe1e1; }
.st-go { background: linear-gradient(180deg, #2bb59a, #0f8a72); border-color: #0f8a72; color: #fff; box-shadow: 0 3px 0 #0a6553, 0 4px 10px rgba(15, 138, 114, .25); }
.st-look { font-size: .95rem; min-height: 42px; }
.st-read { background: #f3f6ff; border-radius: 14px; padding: 6px 14px; min-height: 30px; line-height: 1.8; }
.st-read:empty { display: none; }
.st-read p { margin: 4px 0; }
.st-res { font-weight: 800; }
.st-res.ok { color: var(--st-okd); } .st-res.ng { color: var(--st-ngd); }
.st-sm { font-size: .92rem; color: var(--sub, #4b5563); margin: 0; width: 100%; text-align: center; }
.st-name { font-size: 1.3rem; font-weight: 800; color: #0f5f50; }
.st-foot { margin: 8px 0 0; font-size: .8rem; color: #6b7280; line-height: 1.6; }
.st-foot rt { font-size: .55em; }

/* 地図の 中 */
.st-ink { fill: none; stroke: #1f1a14; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-halo { fill: #fffdf5; fill-opacity: .55; stroke: #fffdf5; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.st-area .st-halo { stroke-width: 3.4; fill-opacity: 0; }
.st-bd { outline: none; }
g.st-bd { cursor: pointer; }
.st-hit { fill: #fff; opacity: 0; transition: opacity .15s; }
g.st-bd:hover .st-hit, g.st-bd:focus-visible .st-hit { opacity: .35; }
.st-area { cursor: pointer; }
.st-lb { font-size: 11px; font-weight: 800; text-anchor: middle; fill: #1f2937; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.st-lb2 { font-size: 12px; fill: #b45309; }
.st-n { font-size: 12px; font-weight: 800; text-anchor: middle; fill: #c62828; }
.st-sct { font-size: 11px; font-weight: 700; text-anchor: middle; fill: #374151; }
.st-glow { fill: rgba(245, 158, 11, .18); stroke: var(--st-o); stroke-width: 3; animation: st-pulse 1.4s ease-in-out infinite; pointer-events: none; }
.st-glow.st-okc { fill: rgba(16, 185, 129, .2); stroke: var(--st-ok); animation: none; }
.st-glow.st-ngc { fill: rgba(239, 68, 68, .15); stroke: var(--st-ng); animation: none; }
@keyframes st-pulse { 50% { stroke-width: 5; fill: rgba(245, 158, 11, .32); } }
.st-o { fill: #fff; stroke: #1f2937; stroke-width: 2.5; pointer-events: none; }
.st-wedge { fill: rgba(245, 158, 11, .2); stroke: rgba(245, 158, 11, .7); stroke-width: 1; pointer-events: none; }
.st-wedge.ok { fill: rgba(16, 185, 129, .2); stroke: rgba(16, 185, 129, .7); }
.st-wedge.ng { fill: rgba(239, 68, 68, .14); stroke: rgba(239, 68, 68, .6); }
.st-ray { stroke: #b45309; stroke-width: 3; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: st-draw .6s forwards; pointer-events: none; }
.st-trail { fill: none; stroke: var(--st-o); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; pointer-events: none; }
.st-trail.ng { stroke: var(--st-ng); }
.st-meas { stroke: #2563eb; stroke-width: 2.4; stroke-dasharray: 4 3; pointer-events: none; }
.st-ruler { pointer-events: none; }
.st-rt { font-size: 7px; font-weight: 700; text-anchor: middle; fill: #4a3a1a; }
.st-rl { pointer-events: none; }

/* 8方位 */
.st-rose { display: grid; grid-template-columns: repeat(3, 76px); gap: 6px; justify-content: center; padding: 8px; border-radius: 50%; background: radial-gradient(circle, #fffaf0 55%, #f3ead6 100%); }
.st-rb { min-height: 44px; border: 2px solid #cbbf9f; border-radius: 12px; background: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 2px 0 #ddd0ad; color: #1f2937; }
.st-rb:disabled { opacity: .6; cursor: default; }
.st-rb.st-sel { opacity: 1; border-color: var(--st-o); background: #ffe9b8; }
.st-rc { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: radial-gradient(circle at 40% 35%, #555, #111); border-radius: 50%; width: 52px; height: 52px; margin: auto; font-size: .95rem; }

/* 道じゅん（コマ） */
.st-pad { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 76px); grid-template-rows: repeat(3, 48px); gap: 4px; justify-content: center; }
.st-pad .st-b { min-width: 0; padding: 0; }
.st-dN { grid-column: 2; grid-row: 1; } .st-dW { grid-column: 1; grid-row: 2; } .st-dE { grid-column: 3; grid-row: 2; } .st-dS { grid-column: 2; grid-row: 3; }
.st-walk .st-look { order: -1; flex-basis: 100%; max-width: 260px; }

/* さくいん */
.st-gl { stroke: #1d4ed8; stroke-width: .8; stroke-dasharray: 3 3; opacity: .55; pointer-events: none; }
.st-gb { cursor: pointer; outline: none; }
.st-gb rect { fill: #fff; stroke: #1d4ed8; stroke-width: 1.2; }
.st-gb text { font-size: 13px; font-weight: 800; text-anchor: middle; fill: #1d4ed8; pointer-events: none; }
.st-gb.on rect { fill: var(--st-o); stroke: #b45309; } .st-gb.on text { fill: #fff; }
.st-band { fill: rgba(245, 158, 11, .14); pointer-events: none; }
.st-cell { fill: rgba(245, 158, 11, .25); stroke: var(--st-o); stroke-width: 3; pointer-events: none; }
.st-idx { display: flex; align-items: baseline; gap: 6px; width: 100%; max-width: 320px; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid #d6cdb5; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); font-weight: 700; }
.st-idxh { font-size: .8rem; color: #fff; background: #1d4ed8; border-radius: 6px; padding: 0 6px; }
.st-dots { flex: 1; border-bottom: 2px dotted #9ca3af; }
.st-idx b { font-size: 1.3rem; color: #1d4ed8; }

/* 記号の もと */
.st-symb { min-width: 72px; min-height: 64px; padding: 4px; }
.st-ms { width: 46px; height: 46px; display: block; margin: auto; }
.st-ms .st-halo { stroke: none; fill: none; }
.st-obj { transition: opacity .9s, transform .9s; transform-origin: 0 0; }
.st-obj.st-fade { opacity: .3; transform: scale(.8); }
.st-drawin .st-ink { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1.6; animation: st-draw 1.1s .3s forwards; }
.st-drawin .st-halo { opacity: 0; }
@keyframes st-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .st-ray, .st-drawin .st-ink { animation: none; stroke-dashoffset: 0; } .st-glow { animation: none; } }
.st-gbtn { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.st-grow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px; }
.st-gk { font-size: .85rem; font-weight: 700; color: #1d4ed8; width: 100%; text-align: center; }
.st-gx { min-width: 32px; min-height: 40px; padding: 0 4px; border: 2px solid #93b4f0; border-radius: 10px; background: #fff; color: #1d4ed8; font: inherit; font-weight: 800; cursor: pointer; }
.st-gx.on { background: var(--st-o); border-color: #b45309; color: #fff; }
