/* さかい・さやま のりつぎすごろく */
:root {
  --green: #1f7a4d; --green-d: #15603b; --green-soft: #e6f4ec;
  --sky: #1e88d6; --yellow: #f2a516; --pink: #e0528a;
  --ink: #1a2b26; --ink-2: #55675f; --line: #e4e8e6; --paper: #ffffff; --bg: #f4f8f5;
  --r: 18px; --shadow: 0 10px 30px rgba(20, 50, 35, .16), 0 2px 6px rgba(20, 50, 35, .08);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif; font-weight: 500; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- 枠組み ---------- */
#app { position: fixed; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; grid-template-columns: 1fr; }
.topbar { display: flex; align-items: center; gap: 8px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 5; }
.back { color: var(--green); text-decoration: none; font-weight: 700; font-size: 13px; padding: 8px 4px; white-space: nowrap; }
.when { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; border: 0; background: var(--green-soft); border-radius: 14px; display: grid; place-content: center; gap: 4px; cursor: pointer; transition: transform .12s; }
.icon-btn span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--green); }
.icon-btn:active { transform: scale(.92); }

.dest { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 14px; background: linear-gradient(90deg, #fff4f7, #fff); border-bottom: 1px solid var(--line); font-size: 14px; z-index: 4; min-height: 42px; }
.dest:empty { display: none; }
.dlab { background: #ff5a7a; color: #fff; font-weight: 900; font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.dest b { font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.darea { color: var(--ink-2); font-size: 12px; }
.dleft { font-weight: 700; color: var(--pink); }
.dprize { margin-left: auto; font-weight: 900; color: var(--green); }

/* ---------- 地図の舞台（空・山・街・地図の板） ---------- */
.stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  --sky1: #bfe6ff; --sky2: #ffe8f0; --land: #f2f7ea; --land-dot: rgba(31, 122, 77, .10); --mt1: #c5e0d0; --mt2: #a6cfb6; --bld: #d6e6df; --win: rgba(255,255,255,0); --lbl: #1f302a; --halo: #fff; --area: rgba(31, 100, 70, .16); --haze: rgba(255,255,255,.85);
  transition: background-color 1s; background: var(--sky2); }
.stage.s-summer { --sky1: #5dbaf7; --sky2: #d4f1ff; --land: #edf8ec; --land-dot: rgba(30, 136, 214, .09); --mt1: #9fd3b4; --mt2: #78bd95; --bld: #cfe4ef; }
.stage.s-autumn { --sky1: #ffcf9a; --sky2: #fff0dd; --land: #f9f2e5; --land-dot: rgba(200, 100, 42, .10); --mt1: #e8b48a; --mt2: #d18f60; --bld: #ecdccb; --area: rgba(160, 80, 30, .16); }
.stage.s-winter { --sky1: #d8e9f7; --sky2: #f6fbff; --land: #f5f8fb; --land-dot: rgba(80, 120, 160, .10); --mt1: #dbe6f0; --mt2: #c5d5e4; --bld: #e1e9f1; --area: rgba(60, 90, 130, .14); }
.stage.night { --sky1: #0b1834; --sky2: #26386a; --land: #1a2541; --land-dot: rgba(255, 255, 255, .05); --mt1: #1d2c58; --mt2: #16244a; --bld: #22325f; --win: #ffd76a; --lbl: #f3f6ff; --halo: #1a2541; --area: rgba(255, 255, 255, .12); --haze: rgba(38, 56, 106, .9); }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky1), var(--sky2) 30%); transition: background 1.2s; }
.sun { position: absolute; right: 12%; top: 4%; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #fff9d8 30%, #ffe48a 70%, rgba(255, 228, 138, 0) 72%); box-shadow: 0 0 40px 10px rgba(255, 236, 160, .55); transition: all 1.2s; }
.night .sun { background: radial-gradient(circle at 40% 40%, #fffbe8 40%, #f3e7b3 60%, rgba(0,0,0,0) 62%); box-shadow: 0 0 30px 6px rgba(255, 250, 220, .25); width: 34px; height: 34px; }
.cloud { position: absolute; height: 18px; border-radius: 20px; background: rgba(255,255,255,.85); filter: blur(.3px); animation: drift 60s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 26px; height: 26px; left: 12px; top: -12px; }
.cloud::after { width: 18px; height: 18px; left: 34px; top: -7px; }
.c1 { width: 80px; top: 6%; left: 10%; }
.c2 { width: 60px; top: 11%; left: 55%; animation-duration: 85s; animation-delay: -30s; opacity: .8; }
.night .cloud { opacity: .12; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
.layer { position: absolute; left: 0; width: calc(100% + 800px); will-change: transform; }
.mt { height: 60px; top: calc(14% - 34px); background-repeat: repeat-x; background-size: 400px 60px; }
.mt.far { background-image: linear-gradient(transparent, transparent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60'%3E%3Cpath d='M0 60 L0 34 Q40 14 80 26 T160 18 Q210 4 250 22 T330 20 Q370 12 400 34 L400 60Z'/%3E%3C/svg%3E") repeat-x 0 0/400px 60px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60'%3E%3Cpath d='M0 60 L0 34 Q40 14 80 26 T160 18 Q210 4 250 22 T330 20 Q370 12 400 34 L400 60Z'/%3E%3C/svg%3E") repeat-x 0 0/400px 60px; background: var(--mt1); opacity: .9; }
.mt.near { top: calc(14% - 22px); height: 50px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 50'%3E%3Cpath d='M0 50 L0 30 Q60 18 110 28 T220 24 Q280 14 320 26 T400 30 L400 50Z'/%3E%3C/svg%3E") repeat-x 0 0/400px 50px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 50'%3E%3Cpath d='M0 50 L0 30 Q60 18 110 28 T220 24 Q280 14 320 26 T400 30 L400 50Z'/%3E%3C/svg%3E") repeat-x 0 0/400px 50px; background: var(--mt2); }
.city { top: calc(14% - 26px); height: 34px; opacity: .9; }
.city .bld { fill: var(--bld); transition: fill 1s; }
.city .win { fill: var(--win); transition: fill 1s; }

/* 地図の板（少し奥へ倒す＝ジオラマのように） */
.plane { position: absolute; left: -18%; width: 136%; top: 14%; height: 100%; transform: perspective(1100px) rotateX(16deg); transform-origin: 50% 100%; }
#map { width: 100%; height: 100%; display: block; cursor: grab; }
#map:active { cursor: grabbing; }
.haze { position: absolute; left: 0; right: 0; top: calc(14% - 4px); height: 46px; background: linear-gradient(180deg, var(--haze), rgba(255,255,255,0)); pointer-events: none; transition: background 1s; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* 線 */
.ln-case { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.night .ln-case { stroke: #33416a; }
.ln-case.t { stroke-width: 6.5; }
.ln-rail { fill: none; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.ln-tie { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.3; stroke-dasharray: 3 7; }
.ln-tram { fill: none; stroke-width: 3.6; stroke-linecap: round; }
.ln-bus { fill: none; stroke-width: 2.2; stroke-dasharray: 1 5; stroke-linecap: round; opacity: .9; }
.ln-walk { stroke: #8d9a94; stroke-width: 1.6; stroke-dasharray: 2 4; }
.arealbl { font-size: calc(var(--af, 30) * 1px); font-weight: 900; fill: var(--area); letter-spacing: .12em; pointer-events: none; }

/* 駅 */
.st { cursor: pointer; }
.st .hit { fill: transparent; }
.st .dot { fill: #fff; stroke: #2a3b33; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .2s; }
.st.hub .dot { stroke-width: 2.6; }
.st.bus .dot { fill: #3a8fd6; stroke: #fff; stroke-width: 1.2; }
.st.tram .dot { fill: #fff; stroke: #c4306a; }
.st.off { opacity: .35; }
.lbl { font-size: calc(var(--lf, 12.5) * 1px); font-weight: 700; fill: var(--lbl); paint-order: stroke; stroke: var(--halo); stroke-width: calc(var(--lf, 12.5) * .32px); stroke-linejoin: round; pointer-events: none; }
.lbl.bus { font-size: calc(var(--lf, 12.5) * .8px); font-weight: 500; }
.lbl.major { font-weight: 900; }
#map.zfar .lbl.minor, #map:not(.znear) .lbl.bus { display: none; }
.st .opt-ring { fill: rgba(255, 207, 51, .25); stroke: #ffb800; stroke-width: 3; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.st.opt .opt-ring { opacity: 1; animation: optpulse 1s ease-in-out infinite; }
.st.opt .dot { fill: #ffcf33; }
.st.is-dest .dot { fill: #ff5a7a; }
@keyframes optpulse { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.25); } }
.dest-pulse { fill: rgba(255, 90, 122, .16); stroke: #ff5a7a; stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: destpulse 1.8s ease-out infinite; }
@keyframes destpulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* 乗り物 */
.vehicle .beam { opacity: 0; transition: opacity .4s; }
.vehicle.lit .beam { opacity: .55; }
.night .vehicle .beam { opacity: .95; }
.vehicle .lamp { filter: drop-shadow(0 0 1px #fff3a0); }
.badge-t { font-size: 10px; font-weight: 900; fill: #fff; font-family: inherit; }
.bgcar { opacity: .78; }
.tint circle { transition: opacity 1s; }

/* 地図のボタン */
.mapctl { position: absolute; right: 10px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.ctl { width: 48px; height: 48px; border-radius: 16px; border: 0; background: rgba(255,255,255,.94); box-shadow: var(--shadow); font-size: 22px; font-weight: 900; color: var(--green); cursor: pointer; transition: transform .12s var(--spring), background .2s; }
.ctl.txt { font-size: 12px; }
.ctl:active { transform: scale(.9); }
.ctl.on { background: var(--green); color: #fff; }
.ticker { position: absolute; left: 10px; right: 70px; bottom: 12px; background: rgba(255,255,255,.94); border-radius: 14px; padding: 8px 12px; font-size: 13px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.ticker.show { opacity: 1; transform: none; animation: tickfade 4s forwards; }
@keyframes tickfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* 人の札 */
.stage { grid-row: 3; grid-column: 1; }
.side { grid-row: 3; grid-column: 1; align-self: start; position: relative; z-index: 4; pointer-events: none; min-width: 0; }
.dock { grid-row: 4; grid-column: 1; }
.players { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; pointer-events: auto; }
.players::-webkit-scrollbar { display: none; }
.pcard { --pc: var(--green); flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n name" "n money" "n meta"; column-gap: 7px; align-items: center; background: rgba(255,255,255,.95); border-radius: 14px; padding: 6px 10px 6px 7px; box-shadow: 0 2px 8px rgba(0,0,0,.08); border: 2px solid transparent; transition: transform .3s var(--spring), border-color .3s; min-width: 118px; }
.pcard.on { border-color: var(--pc); transform: translateY(2px) scale(1.04); }
.pnum { grid-area: n; width: 26px; height: 26px; border-radius: 50%; background: var(--pc); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.pname { grid-area: name; font-weight: 700; font-size: 12px; white-space: nowrap; }
.pname small { margin-left: 4px; color: var(--ink-2); font-size: 10px; font-weight: 500; }
.pmoney { grid-area: money; font-weight: 900; font-size: 14px; white-space: nowrap; display: inline-block; }
.pmoney.neg { color: #d33; }
.pmoney.bump { animation: bump .5s var(--spring); color: var(--green); }
.pmoney.bump-down { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.pmeta { grid-area: meta; font-size: 10px; color: var(--ink-2); white-space: nowrap; }
.log-h, .log { display: none; }

/* 下の操作 */
.dock { background: var(--paper); border-top: 1px solid var(--line); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 -6px 20px rgba(0,0,0,.05); min-height: 64px; }
.turn-info { font-size: 14px; display: flex; align-items: center; gap: 6px; min-height: 22px; }
.turn-info .left { margin-left: auto; font-weight: 900; color: var(--pink); }
.tdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.actions { display: flex; gap: 8px; margin-top: 6px; }
.actions:empty { display: none; }

/* ボタン（押すと少し縮む） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 16px; border: 0; cursor: pointer; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .14s var(--spring), box-shadow .2s, background .2s; position: relative; }
.btn:active:not(:disabled) { transform: scale(.94); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.big { width: 100%; min-height: 56px; font-size: 17px; }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d), 0 10px 20px rgba(31, 122, 77, .25); }
.btn.primary:active:not(:disabled) { box-shadow: 0 2px 0 var(--green-d); transform: translateY(3px) scale(.98); }
.btn.sub { background: #fff6dc; color: #7a5600; box-shadow: 0 4px 0 #f2d68a; }
.btn.ghost { background: #fff; color: var(--green); border: 2px solid var(--green-soft); }
.btn.roll { flex: 1; font-size: 19px; }
.btn em { font-style: normal; background: var(--yellow); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 13px; }
.die-ico { width: 22px; height: 22px; border-radius: 6px; background: #fff; position: relative; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.die-ico::before { content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%; background: #e0528a; }
.glow { animation: glow 1.2s ease-in-out infinite; z-index: 2; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 165, 22, .7), 0 5px 0 var(--green-d); } 50% { box-shadow: 0 0 0 10px rgba(242, 165, 22, 0), 0 5px 0 var(--green-d); } }

.choose { width: 100%; }
.choose p { margin: 0 0 6px; font-weight: 700; display: flex; }
.choose .left { margin-left: auto; color: var(--pink); }
.choice { width: 100%; justify-content: flex-start; background: #fffbe6; border: 2px solid #ffcf33; margin-bottom: 6px; font-size: 17px; }
.choice small { margin-left: auto; color: var(--ink-2); font-size: 12px; }
.choice .sw { width: 14px; height: 14px; border-radius: 4px; }

/* ---------- 重ねる窓 ---------- */
.overlay.start { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: linear-gradient(180deg, rgba(220, 242, 255, .55), rgba(255, 240, 246, .75)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); overflow-y: auto; }
.start-card { width: min(440px, 100%); background: rgba(255,255,255,.96); border-radius: 26px; padding: 22px 18px 18px; box-shadow: var(--shadow); display: grid; gap: 12px; animation: rise .6s var(--spring); }
@keyframes rise { from { transform: translateY(30px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.logo { text-align: center; display: grid; gap: 2px; margin-bottom: 4px; }
.logo .l1 { font-size: 15px; font-weight: 700; color: var(--sky); letter-spacing: .2em; }
.logo .l2 { font-size: 30px; font-weight: 900; color: var(--green); line-height: 1.2; }
.logo .l3 { font-size: 13px; color: var(--ink-2); }
.cont, .quick { flex-direction: column; gap: 0; }
.cont b, .quick b { font-size: 20px; }
.cont small, .quick small { font-size: 12px; font-weight: 500; opacity: .9; }
.setup summary { cursor: pointer; font-weight: 700; color: var(--green); padding: 12px 4px; list-style: none; text-align: center; }
.setup summary::-webkit-details-marker { display: none; }
.setup-body { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 30px 1fr 130px; gap: 6px; align-items: center; }
.prow .pnum { width: 28px; height: 28px; }
.prow input, .prow select { min-height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; background: #fff; min-width: 0; font-size: 16px; }
.years { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.years > span { font-weight: 700; margin-right: 4px; }
.years label input { position: absolute; opacity: 0; }
.years label span { display: inline-grid; place-items: center; min-width: 64px; min-height: 44px; border-radius: 12px; border: 2px solid var(--line); font-weight: 700; cursor: pointer; }
.years label input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.how { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; line-height: 1.7; }
.sample { font-size: 11px; color: #a06a00; margin: 0; text-align: center; }

.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); pointer-events: none; }
.sheet.panel { z-index: 25; }
.sheet-card { pointer-events: auto; width: min(520px, 100%); max-height: 78vh; overflow-y: auto; background: #fff; border-radius: 24px; padding: 18px 16px 14px; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.sheet.in .sheet-card { animation: sheetin .42s var(--spring); }
@keyframes sheetin { from { transform: translateY(70%); opacity: .3; } to { transform: none; opacity: 1; } }
.sheet-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.sheet-card h3 small { font-size: 13px; color: var(--ink-2); font-weight: 500; margin-left: 6px; }
.sheet-card .btn.big { margin-top: 8px; }
.sheet-card.night { background: linear-gradient(180deg, #13224a, #1e2f5e); color: #f3f6ff; }
.night-h { color: #ffe08a; }
.night-p { margin: 0 0 8px; opacity: .8; font-size: 13px; }
.areaprog { background: var(--green-soft); border-radius: 12px; padding: 8px 10px; margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.areaprog small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12px; }
.money-now { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.half { color: var(--pink); }
.shop, .cards, .areas, .rank, .loglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shop li, .cards li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #f7faf8; }
.shop li > div, .cards li > div { flex: 1; min-width: 0; }
.shop b, .cards b { display: block; font-size: 16px; }
.shop small, .cards small { color: var(--ink-2); font-size: 12px; }
.btn.buy { background: var(--yellow); color: #fff; box-shadow: 0 4px 0 #c88400; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.owned { font-size: 12px; font-weight: 700; color: #fff; background: var(--pc); border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.settle { width: 100%; border-collapse: collapse; font-size: 13px; }
.settle th, .settle td { padding: 8px 4px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.settle thead th { font-size: 11px; opacity: .75; font-weight: 500; }
.settle tbody th { text-align: left; display: flex; align-items: center; gap: 6px; }
.settle .pnum { --pc: inherit; background: var(--pc); width: 22px; height: 22px; font-size: 11px; }
.settle tr { --pc: #888; }
.settle .tot { font-weight: 900; color: #ffe08a; font-size: 15px; }
.settle .faces td { text-align: left; font-size: 12px; color: #ffe08a; border-bottom: 0; padding-top: 0; }
.areas li { padding: 10px 12px; border-radius: 14px; background: #f7faf8; display: grid; gap: 6px; }
.areas li.faced { background: color-mix(in srgb, var(--pc) 14%, #fff); }
.areas li.none { opacity: .55; }
.areas b em { font-style: normal; font-size: 13px; color: var(--pc); margin-left: 6px; }
.areas small { color: var(--ink-2); font-size: 12px; }
.bars { display: grid; gap: 3px; }
.bar { display: flex; align-items: center; gap: 6px; }
.bar i { flex: 1; height: 8px; border-radius: 9px; background: #e6ece9; position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--pc); border-radius: 9px; transition: width .6s; }
.bar em { font-style: normal; font-size: 12px; width: 18px; text-align: right; font-weight: 700; }
.rank li { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "m n v" "m s s"; align-items: center; gap: 2px 10px; padding: 12px; border-radius: 16px; background: #f7faf8; border-left: 6px solid var(--pc); }
.medal { grid-area: m; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: #a9b4af; }
.medal.m1 { background: linear-gradient(135deg, #ffd34d, #f2a516); }
.medal.m2 { background: linear-gradient(135deg, #e3e9ee, #a9b6c2); }
.medal.m3 { background: linear-gradient(135deg, #f3b98a, #c97a3d); }
.rank b { grid-area: n; font-size: 17px; }
.rank .val { grid-area: v; font-weight: 900; font-size: 18px; color: var(--green); }
.rank small { grid-area: s; color: var(--ink-2); font-size: 12px; }
.note { font-size: 12px; color: var(--ink-2); margin: 8px 0 0; }
.menu { display: grid; gap: 8px; }
.loglist li { font-size: 14px; padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.good { color: var(--green-d); }
.bad { color: #c0392b; }

/* サイコロ（立体） */
.dice-stage { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,0) 60%); pointer-events: none; perspective: 700px; }
.die-wrap { width: 72px; height: 72px; perspective: 520px; animation: drop 1.05s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes drop { 0% { transform: translateY(-46vh) scale(.6); } 55% { transform: translateY(0) scale(1); } 70% { transform: translateY(-26px); } 85% { transform: translateY(0); } 92% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.die { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; }
.face { position: absolute; inset: 0; background: linear-gradient(145deg, #ffffff, #eef2f0); border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06), inset -4px -6px 10px rgba(0,0,0,.06); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 10px; backface-visibility: hidden; }
.face i { display: block; margin: auto; width: 12px; height: 12px; border-radius: 50%; }
.face i.on { background: radial-gradient(circle at 35% 35%, #4a5b55, #1a2b26); }
.face i.on.red { width: 18px; height: 18px; background: radial-gradient(circle at 35% 35%, #ff7a9a, #d6336c); }
.face.front { transform: translateZ(36px); }
.face.back { transform: rotateY(180deg) translateZ(36px); }
.face.right { transform: rotateY(90deg) translateZ(36px); }
.face.left { transform: rotateY(-90deg) translateZ(36px); }
.face.top { transform: rotateX(90deg) translateZ(36px); }
.face.bottom { transform: rotateX(-90deg) translateZ(36px); }
.dice-sum { flex-basis: 100%; text-align: center; animation: pop .45s var(--spring); }
.dice-sum b { display: block; font-size: 72px; font-weight: 900; color: var(--green); line-height: 1; text-shadow: 0 4px 0 #fff, 0 8px 20px rgba(0,0,0,.15); }
.dice-sum span { font-weight: 900; font-size: 18px; background: #fff; padding: 4px 14px; border-radius: 99px; box-shadow: var(--shadow); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* 大きな札 */
.banner { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; pointer-events: none; padding: 16px; }
.banner > div { background: #fff; border-radius: 26px; padding: 18px 26px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 4px; min-width: 220px; max-width: 92vw; transform: scale(.6) rotate(-4deg); opacity: 0; }
.banner.in > div { animation: tagin .5s var(--spring) forwards; }
.banner.out > div { animation: tagout .25s ease-in forwards; }
@keyframes tagin { to { transform: none; opacity: 1; } }
@keyframes tagout { from { transform: none; opacity: 1; } to { transform: scale(.9) translateY(-20px); opacity: 0; } }
.banner .kick { font-size: 13px; font-weight: 900; color: var(--ink-2); letter-spacing: .1em; }
.banner b { font-size: 30px; font-weight: 900; line-height: 1.25; }
.banner.gold > div { background: linear-gradient(180deg, #fffdf2, #fff3c9); border: 3px solid #ffd34d; }
.banner .arrive .kick { font-size: 38px; color: #ff5a7a; letter-spacing: .05em; }
.banner .who { font-weight: 900; font-size: 16px; }
.banner .prize { font-size: 26px; font-weight: 900; color: var(--green); }
.banner .next span { font-size: 13px; font-weight: 700; color: #ff5a7a; }
.banner .event p { margin: 2px 0; font-size: 14px; }
.banner .plus { color: var(--green); font-weight: 900; font-size: 20px; }
.banner .minus { color: #c0392b; font-weight: 900; font-size: 20px; }
.banner .face small { font-size: 13px; color: var(--ink-2); }
.banner.turn-tag > div { padding: 12px 24px; }
.banner.turn-tag b { font-size: 24px; }

/* カード（めくる） */
.cardflip { perspective: 600px; width: 200px; height: 130px; margin: 6px auto 4px; }
.cf-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip .8s .15s var(--spring) both; }
.cf-back, .cf-front { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; display: grid; place-items: center; text-align: center; padding: 10px; }
.cf-back { background: repeating-linear-gradient(45deg, var(--sky), var(--sky) 8px, #4aa5e8 8px, #4aa5e8 16px); color: #fff; font-weight: 900; font-size: 22px; }
.cf-front { background: #fff; border: 3px solid var(--sky); transform: rotateY(180deg); align-content: center; gap: 2px; }
.cf-front span { font-size: 11px; color: var(--sky); font-weight: 900; }
.cf-front b { font-size: 20px; }
.cf-front p { margin: 0; font-size: 12px; color: var(--ink-2); }
@keyframes flip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.cardflip.bad .cf-back { background: repeating-linear-gradient(45deg, #9aa7a1, #9aa7a1 8px, #b3bdb8 8px, #b3bdb8 16px); }
.cardflip.bad .cf-front { border-color: #9aa7a1; }
.cardflip.bad .cf-front span { color: #6f7c76; }
.cardnote { text-align: center; font-weight: 700; color: var(--green-d); margin: 4px 0 0; font-size: 14px; }
.banner .cardnote { color: var(--green-d); }

.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 22; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; width: min(420px, calc(100% - 32px)); line-height: 1.6; }
.toast.in { animation: toastin .35s var(--spring); }
@keyframes toastin { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.toast a { color: var(--green); font-weight: 700; }
.mame { display: inline-block; background: var(--yellow); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 11px; font-weight: 900; margin-right: 6px; }
.coach { position: fixed; z-index: 45; width: 240px; background: #1a2b26; color: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); pointer-events: none; animation: pop .4s var(--spring); }
.coach::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }

/* ---------- PC：地図を大きく、右に札ときろく ---------- */
@media (min-width: 900px) {
  #app { grid-template-columns: 1fr 340px; grid-template-rows: auto auto 1fr auto; }
  .topbar, .dest { grid-column: 1 / -1; }
  .stage { grid-column: 1; grid-row: 3 / 5; }
  .side { position: static; align-self: stretch; grid-column: 2; grid-row: 3; display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid var(--line); overflow: hidden; pointer-events: auto; }
  .players { flex-direction: column; overflow: visible; padding: 12px; }
  .pcard { min-width: 0; padding: 10px 12px; }
  .pcard.on { transform: translateX(-4px) scale(1.02); }
  .pmoney { font-size: 18px; }
  .pname { font-size: 14px; }
  .log-h { display: block; font-size: 13px; margin: 6px 14px; color: var(--ink-2); }
  .log { display: block; list-style: none; margin: 0; padding: 0 14px 14px; overflow-y: auto; flex: 1; font-size: 13px; }
  .log li { padding: 5px 0; border-bottom: 1px dashed var(--line); animation: pop .3s ease-out; }
  .dock { grid-column: 2; grid-row: 4; border-left: 1px solid var(--line); }
  .ticker { display: none; }
  .back { font-size: 14px; }
  .toast { bottom: 40px; left: calc(50% - 170px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cloud { display: none; }
}

/* ---- 仕上げ係の手直し（2026-11-12） ---- */
.prow .pnum { grid-area: auto; }
.dprize small { font-size: 11px; font-weight: 700; color: var(--ink-2); margin-right: 4px; }
/* 買い物・メニューの窓が開いている間は、まめちしき等を上に出して窓のボタンを隠さない */
#sheet:not([hidden]) ~ .toast, #panel:not([hidden]) ~ .toast { top: calc(8px + env(safe-area-inset-top)); bottom: auto; }
/* 分かれ道が多い駅（バスのたまり場）でも地図をつぶさない */
.choose p small { margin-left: auto; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.choice-list { max-height: min(38vh, 300px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 2px 4px; margin: 0 -2px; }
.choose.many .choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.choose.many .choice { margin: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 7px 10px 7px 24px; min-height: 54px; font-size: 15px; line-height: 1.25; text-align: left; }
.choose.many .choice .sw { position: absolute; left: 9px; top: 50%; margin-top: -5px; width: 10px; height: 10px; border-radius: 3px; }
.choose.many .choice small { margin-left: 0; font-size: 11px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#app:has(.choose) .mapctl { display: none; }
/* 地平線（14%）より下は地面の色にして、倒した地図の板の上に空の帯が見えないようにする */
.sky { background: linear-gradient(180deg, var(--sky1), var(--sky2) 13%, var(--land) 14.5%); }
/* 倒した地図の板の奥の端で線がぷつっと切れないよう、ふわっと地面になじませる */
.plane { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px); mask-image: linear-gradient(180deg, transparent 0, #000 70px); }

/* ============================================================
   ＋ 上の札・順位の札・下の3つのボタン・会話の窓・解説の窓・クイズ・図鑑・ゆるキャラ・立体の盤
   ============================================================ */
/* 上の札（今の番の人・何年目何月・目的地まであと何マス） */
.dest { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "me cal" "dst dst"; align-items: center; gap: 6px 10px; padding: 8px 12px; background: linear-gradient(180deg, #fff, #fff7fa); }
.hud-me { grid-area: me; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hud-f { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--pc), 0 3px 8px rgba(0,0,0,.12); display: grid; place-items: center; overflow: hidden; }
.hud-f svg { display: block; }
.hud-nm { display: grid; min-width: 0; line-height: 1.25; }
.hud-nm b { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-nm span { font-size: 17px; font-weight: 900; color: var(--green); white-space: nowrap; }
.hud-cal { grid-area: cal; display: flex; align-items: baseline; gap: 4px; background: var(--green); color: #fff; border-radius: 14px; padding: 4px 12px; box-shadow: 0 3px 0 var(--green-d); }
.hud-cal b { font-size: 15px; font-weight: 900; white-space: nowrap; }
.hud-cal b.m { font-size: 26px; line-height: 1.1; }
.hud-dst { grid-area: dst; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; background: #fff; border: 2px solid #ffd3de; border-radius: 14px; padding: 5px 10px; }
.hud-dst b { font-size: 19px; font-weight: 900; }
.hud-dst .dleft { color: var(--pink); font-weight: 900; }
.hud-dst .dleft em { font-style: normal; font-size: 22px; margin: 0 2px; }
.hud-dst .dprize { margin-left: auto; font-size: 13px; }
.snd { font-size: 20px; margin-left: 0; }
.snd.on { background: #fff1c7; }

/* 順位の札 */
.players { gap: 5px; padding: 6px 8px; }
.pcard.rk { position: relative; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "f b"; column-gap: 5px; padding: 5px 6px 5px 5px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 3px 10px rgba(20,50,35,.12); will-change: transform; }
.pcard.rk.on { border-color: var(--pc); transform: translateY(2px); }
.rk-n { position: absolute; left: -3px; top: -4px; z-index: 1; width: 19px; height: 19px; border-radius: 50%; background: #9aa6a0; color: #fff; font-weight: 900; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pcard.rk:nth-child(1) .rk-n { background: #e9b100; }
.pcard.rk:nth-child(2) .rk-n { background: #9fb0bb; }
.pcard.rk:nth-child(3) .rk-n { background: #c9874a; }
.rk-f { grid-area: f; position: relative; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--pc); display: grid; place-items: center; overflow: visible; align-self: center; }
.rk-f > svg, .rk-f > .gx-fb { border-radius: 50%; overflow: hidden; }
.rk-kumo { position: absolute; right: -10px; bottom: -8px; width: 18px; height: 18px; }
.rk-b { grid-area: b; display: grid; min-width: 0; line-height: 1.2; }
.pcard.rk .pname { font-size: 10.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.pcard.rk .pmoney { font-size: 11.5px; letter-spacing: -.02em; overflow: hidden; }
.pcard.rk .pmeta { font-size: 9.5px; overflow: hidden; text-overflow: clip; }
.pcard.rk.up { animation: rkup .9s var(--spring); }
.pcard.rk.down { animation: rkdown .9s ease; }
@keyframes rkup { 0% { box-shadow: 0 0 0 0 rgba(255,200,40,.9); } 60% { box-shadow: 0 0 0 8px rgba(255,200,40,0); } }
@keyframes rkdown { 0%, 100% { filter: none; } 40% { filter: saturate(.4) brightness(.95); } }
.gx-fb { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; }
.gx-fb.chara { width: 100%; height: 100%; font-size: 48px; color: #6b7fa8; }

/* 下：3つの大きなボタン・全体の地図・虫めがね */
.dock-top { display: flex; align-items: center; gap: 6px; }
.dock-top .turn-info { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 10px; border-radius: 99px; border: 2px solid var(--green-soft); background: #fff; color: var(--green); font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .12s var(--spring), background .2s; }
.pill:active { transform: scale(.94); }
.pill.on { background: var(--green); color: #fff; border-color: var(--green); }
.gx-ic { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.gx-ic.map { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3 3 5.5v15.5l6-2.5 6 2.5 6-2.5V3l-6 2.5zm0 2.2 6 2.5v11.1l-6-2.5z'/%3E%3C/svg%3E"); }
.gx-ic.lupe { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l5.1 5.1-1.5 1.5-5.1-5.1A7 7 0 1 1 10 3zm0 2.2a4.8 4.8 0 1 0 0 9.6 4.8 4.8 0 0 0 0-9.6z'/%3E%3C/svg%3E"); }
.gx-ic.card { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm5 6.5-1.3 2.7-3 .4 2.2 2.1-.5 3 2.6-1.4 2.6 1.4-.5-3 2.2-2.1-3-.4z'/%3E%3C/svg%3E"); width: 22px; height: 22px; }
.gx-ic.more { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2.4'/%3E%3Ccircle cx='12' cy='12' r='2.4'/%3E%3Ccircle cx='19' cy='12' r='2.4'/%3E%3C/svg%3E"); width: 22px; height: 22px; }
.actions { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 8px; }
.actions .choose, .actions .gx-cpu-hint { grid-column: 1 / -1; }
.actions .btn.gx-b1, .actions .btn.gx-b2, .actions .btn.gx-b3 { min-height: 68px; border-radius: 20px; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 15px; width: auto; margin: 0; }
.actions .btn.gx-b1 { font-size: 20px; flex-direction: row; gap: 10px; }
.actions .btn.gx-b1 .die-ico { width: 30px; height: 30px; border-radius: 8px; }
.actions .btn.gx-b2 em { position: absolute; top: 6px; right: 8px; }
.gx-cpu-hint { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 6px 4px; }
.gx-cpu-hint svg, .gx-cpu-hint .gx-fb { flex: none; border-radius: 50%; }

/* 会話の窓 */
.gx-talk { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px); width: min(680px, calc(100% - 16px)); z-index: 34; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: #fff; border: 3px solid #2b4a3c; border-radius: 22px; padding: 12px 14px 14px 12px; box-shadow: 0 14px 40px rgba(20, 40, 30, .28); opacity: 0; transition: opacity .22s ease, transform .32s var(--spring); cursor: pointer; }
.gx-talk.in { opacity: 1; transform: translate(-50%, 0); }
.gx-tk-face { width: 64px; height: 64px; border-radius: 50%; background: #f1f7f3; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #cfe3d7; }
.gx-tk-face[hidden] { display: none; }
.gx-tk-body { min-width: 0; }
.gx-tk-name { display: inline-block; background: #2b4a3c; color: #fff; font-size: 13px; font-weight: 900; border-radius: 99px; padding: 2px 12px; margin: 0 0 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-tk-text { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.65; min-height: 2.4em; white-space: pre-wrap; }
.gx-tk-extra:empty { display: none; }
.gx-tk-extra { margin-top: 6px; display: grid; gap: 6px; }
.gx-tk-next { position: absolute; right: 14px; bottom: 6px; color: #2b4a3c; font-size: 14px; opacity: 0; }
.gx-talk.ready .gx-tk-next { opacity: 1; animation: tknext .8s ease-in-out infinite; }
@keyframes tknext { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.gx-talk.cpu { border-color: #6c7e76; }
.gx-talk.chara-mukumo { border-color: #8a97c4; background: linear-gradient(180deg, #f6f7ff, #fff); }
.gx-talk.chara-nenneru { border-color: #e8a7c0; background: linear-gradient(180deg, #fff6fa, #fff); }
.gx-talk.chara-houhou { border-color: #c09a5b; background: linear-gradient(180deg, #fffaf0, #fff); }
.gx-new { justify-self: start; background: var(--yellow); color: #fff; font-size: 12px; font-weight: 900; border-radius: 99px; padding: 2px 10px; }
.gx-spots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gx-sp-h { flex-basis: 100%; font-size: 12px; font-weight: 900; color: var(--green-d); }
.gx-sp { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 4px 10px 4px 4px; border-radius: 12px; background: var(--green-soft); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.gx-sp i { font-style: normal; font-size: 11px; background: #fff; color: var(--green); border-radius: 8px; padding: 2px 6px; white-space: nowrap; }
.gx-sp.map { background: #fff; border: 2px solid var(--green-soft); color: var(--green); padding-left: 10px; }
.gx-art { justify-self: start; color: var(--sky); font-weight: 700; font-size: 14px; }

/* ゆるキャラ */
.gx-chara { position: fixed; left: 50%; bottom: 168px; z-index: 33; transform: translate(-50%, 30px) scale(.4); opacity: 0; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(20, 30, 60, .25)); }
.gx-chara.in { animation: chin .7s var(--spring) forwards; }
.gx-chara.out { animation: chout .32s ease-in forwards; }
@keyframes chin { 0% { transform: translate(-50%, 40px) scale(.3); opacity: 0; } 55% { transform: translate(-50%, -10px) scale(1.08, .94); opacity: 1; } 75% { transform: translate(-50%, 0) scale(.96, 1.05); } 100% { transform: translate(-50%, 0) scale(1); opacity: 1; } }
@keyframes chout { to { transform: translate(-50%, -30px) scale(.5); opacity: 0; } }

/* 駅の解説の窓（左） */
.gx-info { position: fixed; z-index: 26; left: 8px; right: 8px; top: calc(118px + env(safe-area-inset-top)); max-height: calc(100% - 300px); min-height: 200px; overflow-y: auto; transform: translateX(-110%); transition: transform .38s var(--spring); }
.gx-info.in { transform: none; }
.gx-info-card { position: relative; background: rgba(255,255,255,.98); border-radius: 22px; padding: 14px 14px 12px; box-shadow: 0 12px 34px rgba(20, 50, 35, .22); display: grid; gap: 10px; }
.gx-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f4f2; font-size: 22px; cursor: pointer; }
.gx-i-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; padding-right: 44px; }
.gx-i-head b { font-size: 24px; font-weight: 900; }
.gx-i-head span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.gx-been { font-style: normal; font-size: 12px; font-weight: 900; color: #fff; background: var(--pink); border-radius: 99px; padding: 1px 9px; }
.gx-i-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #eef3f0; }
.gx-i-lines { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-2); }
.gx-i-lines span { display: inline-flex; align-items: center; gap: 4px; }
.gx-i-lines i { width: 10px; height: 10px; border-radius: 3px; }
.gx-i-sec h4 { margin: 0 0 4px; font-size: 13px; color: var(--green-d); }
.gx-i-sec ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; line-height: 1.6; }
.gx-i-btns { display: grid; gap: 6px; }
.gx-i-btns .btn { min-height: 44px; font-size: 14px; }
html.gx-inspect .st .dot { animation: optpulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* クイズ */
.gx-quiz { display: grid; gap: 10px; }
.gx-q-kick { justify-self: start; background: var(--sky); color: #fff; font-weight: 900; font-size: 13px; border-radius: 99px; padding: 2px 12px; }
.gx-q { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.6; }
.gx-qc { display: grid; gap: 8px; }
.gx-qb { justify-content: flex-start; min-height: 56px; background: #f4f8ff; border: 2px solid #cfe0f5; font-size: 17px; text-align: left; }
.gx-qb span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: #fff; display: grid; place-items: center; font-size: 15px; }
.gx-qb.right { background: #e8f7ee; border-color: var(--green); }
.gx-qb.right span { background: var(--green); }
.gx-qb.wrong { background: #fff0f0; border-color: #e07a7a; }
.gx-qb:disabled { opacity: 1; }
.gx-qa:empty { display: none; }
.gx-qa { display: grid; gap: 6px; animation: pop .4s var(--spring); }
.gx-qa b { font-size: 20px; }
.gx-qa b.ok { color: var(--green); }
.gx-qa b.ng { color: #c0392b; }
.gx-qa p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* 図鑑 */
.gx-zk { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.gx-zk > li { background: #f7faf8; border-radius: 14px; padding: 4px 10px; }
.gx-zk summary { display: grid; grid-template-columns: 6.5em 1fr auto; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
.gx-zk summary::-webkit-details-marker { display: none; }
.gx-zk-bar { height: 10px; border-radius: 99px; background: #e2ebe6; overflow: hidden; }
.gx-zk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #6cc28f); border-radius: 99px; }
.gx-zk summary em { font-style: normal; font-weight: 900; font-size: 13px; white-space: nowrap; }
.gx-zk ul { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gx-zk-st { border: 0; background: #fff; border-radius: 12px; padding: 6px 10px; min-height: 40px; font-weight: 700; display: grid; text-align: left; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.gx-zk-st small { font-size: 11px; color: var(--ink-2); font-weight: 500; }
/* 1118_meguri：ぜんぶの駅とバス停をめぐろう（図鑑の上）。色・角丸・字の大きさは 図鑑と同じ物 */
.gx-mg { background: #f7faf8; border-radius: 14px; padding: 10px 12px 12px; }
.gx-mg h4 { margin: 0; font-size: 15px; font-weight: 900; color: var(--green-d); }
.gx-mg-all { margin: 2px 0 6px; font-size: 15px; font-weight: 900; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.gx-mg-all b { font-size: 22px; color: var(--pink); }
.gx-mg > .gx-zk-bar { display: block; }
.gx-mg-all small { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.gx-mg-kinds { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gx-mg-kinds li { background: #fff; border-radius: 12px; padding: 6px 10px 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.gx-mg-kinds b { font-size: 13px; font-weight: 900; }
.gx-mg-kinds em { font-style: normal; font-weight: 900; font-size: 13px; white-space: nowrap; }
.gx-mg-kinds .gx-zk-bar { flex: 1 0 100%; height: 8px; margin-top: 2px; }
.gx-zk summary em .gx-been { display: block; margin-top: 2px; text-align: center; }
.gx-learn { margin: 10px 0 0; font-size: 15px; text-align: center; }
.gx-learn b { font-size: 22px; color: var(--pink); }

/* カード（3Dで裏返す） */
.gx-cardbox { width: 190px; height: 266px; margin: 6px auto 4px; }
.gx-cf { height: 100%; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 16px 12px; text-align: center; background: linear-gradient(180deg, #fffdf3, #fff1c9); border-radius: inherit; }
.gx-cf.bad { background: linear-gradient(180deg, #f7f8ff, #e3e7f7); }
.gx-cf.held { background: linear-gradient(180deg, #f2fbff, #d7efff); }
.gx-cf span { font-size: 12px; font-weight: 900; color: var(--ink-2); letter-spacing: .1em; }
.gx-cf b { font-size: 20px; font-weight: 900; line-height: 1.35; }
.gx-cf p { margin: 0; font-size: 14px; line-height: 1.6; }

/* サイコロ（art/fx.js） */
.dice-stage.gx { gap: 14px; }
.gx-die { width: 130px; height: 130px; position: relative; }

/* スタート（タイトルの絵の上に） */
.overlay.start { background: #cfeaff; }
.gx-title-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.gx-title-bg svg { width: 100%; height: 100%; display: block; }
.overlay.start .start-card { position: relative; z-index: 1; background: rgba(255,255,255,.93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin-top: 18vh; }
.overlay.start.gx-out { animation: gxout .55s ease-in forwards; }
@keyframes gxout { to { opacity: 0; transform: scale(1.08); filter: blur(10px); } }
.gx-pick { display: grid; gap: 6px; }
.gx-pick > span { font-weight: 900; font-size: 15px; text-align: center; color: var(--green-d); }
.gx-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gx-fp { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 16px; border: 2px solid transparent; background: #f5f9f7; cursor: pointer; transition: transform .15s var(--spring), border-color .2s, background .2s; }
.gx-fp small { font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.gx-fp.on { border-color: var(--green); background: #e6f4ec; transform: scale(1.04); }

/* 立体の盤（map3d） */
.board3d { position: absolute; inset: 0; z-index: 1; }
.stage.m3d-on .sky, .stage.m3d-on .plane, .stage.m3d-on .haze { display: none; }
.stage.m3d-on .mapctl { bottom: 30px; }
.stage.m3d-on #zin, .stage.m3d-on #zout, .stage.m3d-on #zme { display: none; }
.gx-tag { display: grid; justify-items: center; pointer-events: none; transition: transform .25s var(--spring); }
.gx-tag-f { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--pc), 0 6px 12px rgba(0,0,0,.25); display: grid; place-items: center; overflow: hidden; }
.gx-tag-n { margin-top: 3px; font-size: 11px; font-weight: 900; color: #fff; border-radius: 99px; padding: 1px 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.gx-tag::after { content: ""; width: 3px; height: 14px; background: var(--pc); border-radius: 2px; margin-top: 1px; }
.gx-tag.on { transform: scale(1.25); z-index: 5; }
.decos { pointer-events: none; }

/* 重い端末：飾りを減らす */
html.gx-lite .cloud, html.gx-lite .layer { display: none; }
html.gx-lite .overlay.start .start-card, html.gx-lite .overlay.start { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.gx-lite .decos { display: none; }

@media (max-width: 899px) {
  .topbar { padding-top: calc(4px + env(safe-area-inset-top)); padding-bottom: 4px; }
  .topbar .icon-btn { width: 40px; height: 40px; }
  .stage.m3d-on .ticker { bottom: 30px; }
}
@media (max-width: 380px) {
  .pcard.rk .pmeta { display: none; }
  .hud-cal b.m { font-size: 22px; }
  .pill { padding: 4px 8px; font-size: 12px; }
  .actions .btn.gx-b1 { font-size: 18px; }
}
@media (min-width: 900px) {
  .dest { grid-template-columns: auto 1fr auto; grid-template-areas: "me dst cal"; padding: 8px 16px; }
  .pcard.rk { flex: none; grid-template-columns: auto 1fr; padding: 10px 12px; }
  .rk-f { width: 44px; height: 44px; }
  .pcard.rk .pname { font-size: 14px; }
  .pcard.rk .pmoney { font-size: 18px; }
  .pcard.rk .pmeta { font-size: 12px; }
  .rk-n { width: 24px; height: 24px; font-size: 13px; left: -4px; top: -6px; }
  .gx-info { left: 12px; right: auto; width: 380px; top: 128px; bottom: 16px; max-height: none; }
  .gx-talk { left: calc(50% - 170px); }
  .gx-chara { left: calc(50% - 170px); bottom: 190px; }
  .dock .actions { grid-template-columns: 1fr 1fr; }
  .dock .actions .btn.gx-b1 { grid-column: 1 / -1; }
  .dock-top { flex-wrap: wrap; }
  .dock-top .turn-info { flex-basis: 100%; }
}
/* ＋の手直し（撮って見た後） */
.rk-b > * { grid-area: auto !important; }
#sheet:not([hidden]) ~ .coach, #panel:not([hidden]) ~ .coach, html.gx-info-open .coach, html.gx-talking .coach { display: none !important; }
.gx-faces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gx-fp small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.gx-fp svg { max-width: 100%; height: auto; }
@media (max-width: 899px) { #app.playing .when { display: none; } }
.choose.many .choice-list { max-height: 34vh; overflow-y: auto; }

/* fix1：駅の解説の窓を開いている間は、サイコロの絵を出さない（窓の上に重ならない） */
html.gx-info-open .dice-stage { visibility: hidden !important; }
/* fix1：ご当地クイズの答えで、選択肢それぞれの地区を1行で */
.gx-qa .gx-q-areas { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.gx-qa .gx-q-areas b { font-size: inherit; color: var(--ink, #1f3d2e); }

/* ===== 一気に進む・分かれ道の札・おまかせ・目的地の方向（move 2026-11-12） ===== */
.choose.v2 { width: 100%; }
.choose.v2 .ch-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; }   /* 右の列が狭い時は おまかせ を次の行へ（はみ出して切れた・点検 1112 の2回目） */
.choose.v2 .ch-h > b { font-size: 16px; font-weight: 900; white-space: nowrap; }
.choose.v2 .ch-left { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.choose.v2 .ch-left em { font-style: normal; font-size: 18px; font-weight: 900; color: var(--pink); }
.btn.auto { margin-left: auto; min-height: 40px; padding: 6px 14px; border-radius: 99px; background: var(--sky); color: #fff; font-size: 15px; font-weight: 900; gap: 6px; box-shadow: 0 4px 0 #1565a8; white-space: nowrap; }
.btn.auto:active { transform: translateY(3px); box-shadow: 0 1px 0 #1565a8; }
.gx-ic.auto-ic { width: 16px; height: 16px; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4l9 8-9 8zm8 0l9 8-9 8z'/%3E%3C/svg%3E"); }
.choose.v2 .choice-list { max-height: min(40vh, 320px); }
.choose.v2 .choice { position: relative; display: grid; grid-template-columns: 1fr; justify-items: start; align-content: center; gap: 1px; width: 100%; margin: 0; padding: 8px 12px 8px 30px; min-height: 0; text-align: left; line-height: 1.3; background: #fff; border: 2px solid var(--line); font-size: 15px; }
.choose.v2 .choice .sw { position: absolute; left: 11px; top: 13px; width: 11px; height: 11px; border-radius: 3px; }
.choose.v2 .choice small { margin: 0; font-size: 11px; color: var(--ink-2); font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choose.v2 .choice .c-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.choose.v2 .choice .c-nm { font-weight: 900; }
.choose.v2 .choice .c-end { color: var(--green-d); font-weight: 700; }
.choose.v2 .c-dest { font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: var(--pink); border-radius: 99px; padding: 1px 8px 1px 6px; white-space: nowrap; }
.choose.v2 .c-dest::before { content: "➜ "; }
.choose.v2 .choice.best { background: #fffbe6; border: 2px solid #ffcf33; padding: 10px 14px 10px 32px; font-size: 19px; margin-bottom: 6px; animation: bestglow 1.6s ease-in-out infinite; }
.choose.v2 .choice.best .sw { top: 17px; width: 13px; height: 13px; }
.choose.v2 .choice.best small { font-size: 12px; }
.choose.v2 .choice.best .c-dest { font-size: 12px; padding: 2px 10px 2px 8px; }
@keyframes bestglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, .55); } 50% { box-shadow: 0 0 0 6px rgba(255, 184, 0, 0); } }
.choose.v2 .ch-others { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.choose.v2 .ch-others .choice { font-size: 14px; padding: 6px 8px 6px 24px; }
.choose.v2 .ch-others .choice .sw { left: 8px; top: 11px; width: 9px; height: 9px; }
.choose.v2 .ch-others .choice.toward { border-color: #f4b6cc; }
.choose.v2 .ch-more { margin-top: 6px; }
.choose.v2 .ch-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--green); padding: 6px 2px; list-style: none; }
.choose.v2 .ch-more summary::before { content: "＋ "; }
.choose.v2 .ch-more[open] summary::before { content: "− "; }

/* 残りの数（盤の下・数え下げ） */
.gx-left { position: absolute; left: 50%; bottom: 14px; z-index: 6; display: flex; align-items: baseline; gap: 6px; padding: 6px 18px 7px; border-radius: 99px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); color: var(--ink); font-weight: 900; pointer-events: none; opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s; }
.gx-left.in { opacity: 1; transform: translate(-50%, 0); }
.gx-left span { font-size: 13px; color: var(--ink-2); }
.gx-left b { font-size: 30px; line-height: 1; color: var(--pink); min-width: 1.1em; text-align: center; }
.gx-left b.z { font-size: 20px; color: var(--green); }
.gx-left.tick b { animation: lefttick .35s var(--spring); }
@keyframes lefttick { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.stage:has(.gx-left.in) .ticker { opacity: 0 !important; }

/* 目的地の方向の札（画面の端） */
.gx-dir { position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 6px; max-width: min(250px, 72vw); padding: 5px 12px 5px 6px; border-radius: 99px; background: rgba(255,255,255,.95); border: 2px solid #ff5a7a; box-shadow: 0 4px 14px rgba(0,0,0,.14); font-size: 12px; font-weight: 700; color: var(--ink); pointer-events: none; opacity: 0; transition: opacity .3s, transform .35s ease-out; will-change: transform; }
.gx-dir.in { opacity: 1; }
.gx-dir span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-dir b { font-weight: 900; color: #e23c62; }
.gx-dir .ar { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ff5a7a; color: #fff; font-style: normal; font-size: 13px; line-height: 1; transition: transform .3s; }
.gx-dir.lit { border-color: #ffb800; box-shadow: 0 0 0 4px rgba(255, 216, 77, .45), 0 4px 14px rgba(0,0,0,.14); }
.gx-dir.lit .ar { background: #ffb800; }
#app:has(.choose) .gx-dir { opacity: .92; }

/* 平らな盤：目的地へ向く線・旗の光 */
.dir-line { stroke: #ff5a7a; stroke-width: 2.4; stroke-dasharray: 6 7; stroke-linecap: round; opacity: .55; animation: dirflow 1.2s linear infinite; pointer-events: none; }
.dir-line.lit { stroke: #ffb800; stroke-width: 4; opacity: .95; filter: drop-shadow(0 0 4px rgba(255, 216, 77, .9)); }
@keyframes dirflow { to { stroke-dashoffset: -26; } }
.destflag.lit { filter: drop-shadow(0 0 6px rgba(255, 216, 77, .95)) drop-shadow(0 0 14px rgba(255, 184, 0, .7)); }
.destflag.lit .dest-pulse { fill: rgba(255, 216, 77, .3); stroke: #ffb800; }

/* 平らな盤：進める道の先の光 */
.route { pointer-events: none; }
.rt-glow { fill: none; stroke: #fff3a0; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.rt-glow.best { stroke-width: 16; opacity: .8; filter: blur(2px); }
.rt-line { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 6; opacity: .8; }
.rt-line.best { stroke: #ffb800; stroke-width: 5; stroke-dasharray: 10 6; opacity: 1; animation: dirflow .9s linear infinite; }
.rt-dot { fill: #fff; stroke: #c9a64a; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rt-dot.best { stroke: #ff9800; }
.rt-end-c { fill: #fff; stroke: #c9a64a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.rt-end.best .rt-end-c { stroke: #ff9800; stroke-width: 4; animation: optpulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rt-end.goal .rt-end-c { stroke: #ff5a7a; }
.rt-tag rect { fill: #ff9800; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rt-end.goal .rt-tag rect { fill: #ff5a7a; }
.rt-tag text { fill: #fff; font-size: 13px; font-weight: 900; }

/* 立体の盤：止まる所の札・目的地の光 */
.gx-route-tag { padding: 3px 10px; border-radius: 99px; background: #ff9800; color: #fff; font-size: 12px; font-weight: 900; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25); white-space: nowrap; pointer-events: none; }
.gx-route-tag.goal { background: #ff5a7a; }
.gx-destglow { width: 96px; height: 96px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.gx-destglow.lit { opacity: 1; }
.gx-destglow i { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #ffd84d; box-shadow: 0 0 18px 6px rgba(255, 216, 77, .7), inset 0 0 18px rgba(255, 216, 77, .6); animation: destglow 1.6s ease-out infinite; }
.gx-destglow i + i { animation-delay: .8s; }
@keyframes destglow { 0% { transform: scale(.35); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .choose.v2 .choice.best, .dir-line, .rt-line.best, .gx-destglow i, .gx-left.tick b { animation: none; }
}
/* 実画面の点検の手直し（move_qa・375px）：下の行の「のこり」は盤の大きな数字と同じなので、狭い画面では出さない（ボタンに押されて「のこ」で切れていた） */
@media (max-width: 560px) {
  .dock-top .turn-info .left { display: none; }
}

/* ===== v2（近くの店の係・2026-11-12）：近くにある物の札・「ここ知ってる！」・近くの実在の店の使い道・4つのポイント ===== */
:root { --pt-okane: #fff3d6; --pt-shisan: #f1e8ff; --pt-manzoku: #ffe6ef; --pt-kenko: #e3f5e9; --pt-shiru: #e4f1ff; }
.pt { font-style: normal; display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 900; border-radius: 8px; padding: 1px 6px; margin: 0 4px 2px 0; white-space: nowrap; background: #f1f4f2; color: var(--ink); }
.pt.k-okane { background: var(--pt-okane); } .pt.k-shisan { background: var(--pt-shisan); }
.pt.k-manzoku { background: var(--pt-manzoku); } .pt.k-kenko { background: var(--pt-kenko); } .pt.k-shiru { background: var(--pt-shiru); }
/* 順位の札の小さなポイント */
.ppts { display: flex; flex-wrap: wrap; gap: 0 3px; font-size: 9.5px; font-weight: 700; color: var(--ink-2); line-height: 1.35; min-width: 0; letter-spacing: -.02em; }
.ppts i { font-style: normal; white-space: nowrap; }
@media (min-width: 900px) { .ppts { font-size: 11.5px; gap: 0 6px; } }
/* 会話の窓：近くにある物の札 */
.nb-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-shiru { background: var(--sky); }
.nb-waka { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.nb-box { display: grid; gap: 6px; }
.nb-h { font-size: 12px; font-weight: 900; color: var(--green-d); }
.nb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nb-chip { display: flex; align-items: center; gap: 6px; min-height: 48px; min-width: 0; padding: 4px 8px 4px 6px; border-radius: 12px; background: var(--green-soft); color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.nb-chip .nb-em { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 16px; }
.nb-chip .nb-t { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.nb-chip .nb-t small { display: block; font-size: 10.5px; font-weight: 700; color: var(--green); }
.nb-chip.c-cafe { background: #fff1e4; } .nb-chip.c-super { background: #fff8d9; } .nb-chip.c-kouen { background: #e6f5e9; }
.nb-chip.c-asobiba, .nb-chip.c-ev { background: #ffeef4; } .nb-chip.c-babyshop { background: #f1ecff; } .nb-chip.c-hiroba { background: #e8f3ff; }
.nb-chip.c-junyu { background: #fdf0f6; } .nb-chip.c-hoikuen, .nb-chip.c-youchien { background: #eef6f1; }
.nb-all { min-height: 48px; border-radius: 12px; border: 2px solid var(--green-soft); background: #fff; color: var(--green); font: inherit; font-size: 13.5px; font-weight: 900; cursor: pointer; }
.nb-sec .nb-hk { margin: 0 0 8px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.nb-note { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-2); }
/* 止まった所の使い道の窓（名物を買う画面の代わり） */
.sp-h { margin: 14px 0 6px; font-size: 16px; font-weight: 900; color: var(--ink); }
.sp-h small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sp-bag { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: #6a4fb3; background: var(--pt-shisan); border-radius: 10px; padding: 6px 10px; }
.sp-msg { margin: 0 0 8px; padding: 8px 10px; border-radius: 12px; background: #fff6dc; font-size: 14px; line-height: 1.6; }
.sp-msg .sp-got { display: inline-block; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-it { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "em tx tx" "em ln go"; align-items: center; gap: 4px 8px; padding: 10px; border-radius: 14px; background: #f7faf8; }
.sp-it.k-babyshop { grid-template-areas: "em tx tx" "em ln ln" "mo mo mo"; }
.sp-em { grid-area: em; align-self: start; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 18px; }
.sp-tx { grid-area: tx; min-width: 0; }
.sp-tx b { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.sp-tx small { display: block; font-size: 12px; color: var(--ink-2); }
.sp-gain { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-2); }
.sp-why { display: block; font-style: normal; font-size: 11.5px; color: var(--sky); font-weight: 700; }
.sp-ln { grid-area: ln; justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--green-soft); background: #fff; color: var(--green); font-size: 13px; font-weight: 900; text-decoration: none; }
.sp-it .sp-go { grid-area: go; min-height: 48px; }
.btn.buy:disabled, .sp-mo:disabled { opacity: .45; cursor: default; box-shadow: none; }
.sp-mochi { grid-area: mo; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.btn.sp-mo { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-height: 64px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 2px solid #eadff9; color: var(--ink); font-size: 13px; text-align: left; }
.btn.sp-mo b { font-size: 13.5px; }
.btn.sp-mo small { font-size: 11px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.btn.sp-mo em { font-style: normal; font-weight: 900; color: #6a4fb3; font-size: 13px; background: none; padding: 0; }
.event.sp-tag p { margin: 2px 0 0; }
/* 結果：合計点のうちわけ・項目ごとの賞 */
.rank .rs-pts { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.rank .rs-pts i { font-style: normal; white-space: nowrap; }
.aw { margin: 12px 0 4px; }
.aw h4 { margin: 0 0 6px; font-size: 15px; font-weight: 900; }
.aw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aw-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "ic tx" "ic who"; gap: 0 8px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fffaf0; }
.aw-ic { grid-area: ic; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 20px; }
.aw-tx { grid-area: tx; min-width: 0; }
.aw-tx b { font-size: 15px; margin-right: 6px; }
.aw-tx small { font-size: 12px; color: var(--ink-2); }
.aw-list em { grid-area: who; font-style: normal; font-weight: 900; font-size: 14px; overflow-wrap: anywhere; }
/* 遊び方：4つのポイント */
.how4 { margin: 8px 0 0; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.8); }
.how4-h { display: block; font-size: 14px; font-weight: 900; margin-bottom: 6px; }
.how4 ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.how4 li { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "i b" "i s"; gap: 0 4px; align-items: center; padding: 6px 8px; border-radius: 12px; background: #f7faf8; }
.how4 li i { grid-area: i; font-style: normal; font-size: 18px; }
.how4 li b { grid-area: b; font-size: 13px; }
.how4 li small { grid-area: s; font-size: 11px; color: var(--ink-2); line-height: 1.35; }
.how4 p { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.btn.sp-mo { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.sp-it .sp-go { white-space: nowrap; }

/* ---- v2 カード80枚・天気・キャラの絵（カードの係 2026-11-12） ---- */
/* キャラの PNG（顔の札は丸く切る・全身は会話の時のゆるキャラ） */
.gx-png { display: inline-block; flex: none; max-width: 100%; aspect-ratio: 1; height: auto; border-radius: 50%; background-color: #fff4e6; background-repeat: no-repeat; vertical-align: middle; }
.gx-png-body { display: block; max-width: 100%; height: auto; object-fit: contain; }
.gx-png-body.enter { animation: pngIn .55s var(--spring) both; }
@keyframes pngIn { from { transform: translateY(18px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.gx-fp-f { display: grid; place-items: center; max-width: 100%; }
.rk-f > .gx-png { box-shadow: none; }

/* 天気：上の札のマーク・お知らせ・止まった線 */
.hud-cal { align-items: center; }
.hud-wx { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.12); flex: none; }
.hud-wx svg { display: block; width: 30px; height: 30px; }
.wx-emo { line-height: 1; }
.banner .wx-tag { gap: 6px; max-width: min(360px, 92vw); }
.wx-big { display: grid; place-items: center; }
.wx-big svg { width: 72px; height: 72px; }
.wx-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.wx-notes i { font-style: normal; font-size: 12px; font-weight: 700; background: #eef5ff; color: #24507a; border-radius: 99px; padding: 3px 10px; }
.banner .wx-tag.k-taifu > b { color: #3d4f63; }
.wx-toast { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.wx-toast svg { flex: none; width: 28px; height: 28px; }
#map path.wx-off { opacity: .28; stroke-dasharray: 6 6; }

/* カードの札（名前の絵文字・レア度で色が変わる） */
.k2 { --k: #2e8b61; --kb: #9fd8bb; --k1: #ffffff; --k2: #ecf8f1; position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; height: 100%; padding: 8px 8px 10px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, var(--k1), var(--k2)); border: 3px solid var(--kb); box-shadow: 0 3px 0 var(--kb); color: var(--ink); overflow: hidden; }
.k2.r2 { --k: #2f6fb8; --kb: #9cc4ef; --k1: #ffffff; --k2: #e8f2ff; }
.k2.r3 { --k: #9a6510; --kb: #f1c556; --k1: #fffdf3; --k2: #fff0c4; }
.k2.r3::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.75) 50%, transparent 58%); animation: k2shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes k2shine { 0%, 55% { transform: translateX(-40%); } 100% { transform: translateX(40%); } }
.k2.bad { --k: #6b5796; --kb: #c9bde3; --k1: #fbf9ff; --k2: #efe9f8; }
.k2-rar { font-size: 11px; font-weight: 900; color: #fff; background: var(--k); border-radius: 99px; padding: 2px 9px; letter-spacing: .04em; white-space: nowrap; }
.k2-rar i { font-style: normal; color: #ffe27a; letter-spacing: 0; }
.k2.r3 .k2-rar i { color: #fff6c8; }
.k2-em { display: grid; place-items: center; width: 58px; height: 58px; margin: 2px 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--kb); font-size: 34px; line-height: 1; }
.k2-nm { display: block; font-size: 14px; font-weight: 900; line-height: 1.35; word-break: break-word; }
.k2-tx { display: block; font-size: 12px; line-height: 1.5; color: var(--ink-2); word-break: break-word; }
.k2-uses { font-style: normal; font-size: 11px; font-weight: 900; color: var(--k); background: #fff; border: 2px solid var(--kb); border-radius: 99px; padding: 1px 8px; }
.k2-pl { font-size: 11.5px; font-weight: 700; color: var(--k); line-height: 1.4; }
.k2-say { margin: 2px auto 0; max-width: 320px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.banner .k2 b.k2-nm { font-size: 14px; line-height: 1.35; }
.banner .k2.big b.k2-nm { font-size: 18px; }
.k2.big { align-content: center; gap: 5px; padding: 12px 10px; border-radius: inherit; }
.k2.big .k2-em { width: 70px; height: 70px; font-size: 42px; }
.k2.big .k2-nm { font-size: 18px; }
.k2.big .k2-tx { font-size: 12.5px; }
.gx-cardbox.k2-box { width: 210px; height: 300px; }
.k2-flipwrap { width: 210px; height: 300px; margin: 6px auto 4px; }
.k2-flipwrap .k2 { animation: pop .45s var(--spring); }
.k2-mini { width: 150px; margin: 4px auto; }
.banner .k2-used, .banner .cardwrap { gap: 6px; }
.banner .k2-used p { font-weight: 700; }
.k2-hint { margin: -2px 0 8px; font-size: 13px; color: var(--ink-2); }
/* 手持ちの一覧・売り場（2列。押す所は48px以上） */
.k2-hand, .k2-shop { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.k2-hand li, .k2-shop li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.k2-hand .k2, .k2-shop .k2 { flex: 1; }
.k2-use, .k2-buy { width: 100%; min-height: 48px; }
@media (min-width: 520px) { .k2-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* だれに使う？ */
.k2-who { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.k2-tg { width: 100%; min-height: 60px; justify-content: flex-start; gap: 10px; background: #fff; color: var(--ink); border: 3px solid var(--pc); text-align: left; }
.k2-tg span { display: grid; min-width: 0; }
.k2-tg b { font-size: 16px; }
.k2-tg small { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.how-more { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .k2.r3::after, .gx-png-body.enter, .k2-flipwrap .k2 { animation: none !important; }
}

/* ===== 部屋（離れた人と遊ぶ・v2_online）：作る・入る・待ち合わせ・スタンプ ===== */
.btn.rm-open { flex-direction: column; gap: 0; }
.btn.rm-open small, .btn.quick small { font-weight: 500; }
.rm-view { display: grid; gap: 10px; min-width: 0; }
.rm-h { margin: 0; font-size: 20px; text-align: center; color: var(--green); }
.rm-tx { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.rm-note { margin: -4px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.rm-name { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.rm-name input, .rm-code { min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; background: #fff; font-size: 16px; min-width: 0; width: 100%; box-sizing: border-box; font-family: inherit; }
.rm-code { font-size: 24px; font-weight: 900; letter-spacing: .14em; text-align: center; }
.rm-sec { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: #f6fbf8; border: 2px solid var(--green-soft); min-width: 0; }
.rm-sec h3 { margin: 0; font-size: 16px; }
.rm-opt label span { min-height: 48px; min-width: 56px; padding: 0 8px; }
.rm-msg { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 700; color: #b4442a; text-align: center; }
.rm-view .gx-faces { gap: 6px; }
.rm-lobby { min-width: 0; }
.rm-lobby .btn { min-height: 48px; }
.rm-lobby [data-stamp] { min-width: 48px !important; min-height: 48px !important; padding: 4px; }
.rm-lobby [data-kick] { padding: 6px 12px; }
.rm-lobby p { overflow-wrap: anywhere; }
.rm-wait { margin: 0 0 6px; font-weight: 700; color: var(--ink-2); }
.rm-me { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.pcard.rk .pname .rm-me { position: absolute; right: 4px; top: -7px; z-index: 1; margin: 0; padding: 1px 6px; font-size: 10px; line-height: 1.3; box-shadow: 0 0 0 2px #fff; color: #fff; }
.rm-stamp-btn { position: absolute; left: 10px; bottom: 12px; z-index: 4; font-size: 24px; }
#app.rm-on .ticker { left: 66px; }
.rm-stamps { position: absolute; left: 10px; bottom: 68px; z-index: 7; display: grid; grid-template-columns: repeat(4, 48px); gap: 6px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.rm-stamps[hidden] { display: none; }
.rm-sb { width: 48px; height: 48px; border: 0; border-radius: 14px; background: #f4f8ff; font-size: 26px; cursor: pointer; }
.rm-sb:active { transform: scale(.9); }
.rm-pops { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 8; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.rm-pop { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: 99px; background: #fff; border: 3px solid var(--pc, var(--green)); box-shadow: var(--shadow); font-size: 14px; animation: rmpop .35s var(--spring); }
.rm-pop b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rm-pop .rm-pop-e { font-size: 28px; line-height: 1; }
.rm-pop .gx-png, .rm-pop svg { flex: none; border-radius: 50%; }
@keyframes rmpop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rm-pop { animation: none; } .rm-sb:active { transform: none; } }

/* ---------- v2 点検（2026-11-12・375px と 1440px で撮って直した所） ---------- */
/* 名前・カード名を ことばの切れ目で折る（「でびゅ／ーん」のように ー や小さい字が行の頭に来ない） */
.k2-nm, .k2-tx, .nb-t, .sp-tx b, .k2-say, .gx-talk p { line-break: strict; word-break: auto-phrase; overflow-wrap: anywhere; }
.k2-nm { text-wrap: balance; }
.k2-tx { text-wrap: pretty; }
/* 会話の窓の ▼ が「近くの物を ぜんぶ見る」に重ならない */
.gx-talk .nb-all { margin-bottom: 14px; }
/* スマホの順位の札：名前を札の幅いっぱいに（「みど…」と切れない）、顔の横にお金、下にポイント */
@media (max-width: 899px) {
  .pcard.rk { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "nm nm" "f mo" "pt pt"; row-gap: 1px; column-gap: 4px; padding: 4px 5px 5px; align-content: start; }
  .pcard.rk .rk-b { display: contents; }
  .pcard.rk .rk-f { grid-area: f; width: 24px; height: 24px; }
  .pcard.rk .rk-f > svg, .pcard.rk .rk-f > .gx-png { width: 24px !important; height: 24px !important; }
  .pcard.rk .rk-b > .pname { grid-area: nm !important; padding-left: 15px; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.03em; }
  .pcard.rk .rk-b > .pmoney { grid-area: mo !important; font-size: 11px; letter-spacing: -.03em; overflow: hidden; white-space: nowrap; }
  .pcard.rk .rk-b > .ppts { grid-area: pt !important; }
  .pcard.rk .rk-b > .pmeta { grid-column: 1 / -1 !important; grid-row: 4; }
}
/* 部屋の画面：「人数」「遊ぶ長さ」は上の行に、えらぶ札は1行に並べる（4人まで が1つだけ下に落ちない）・文の終わりの1字だけの行を作らない */
.rm-opt > span:first-child { flex-basis: 100%; }
.rm-opt label { flex: 1 1 0; min-width: 0; }
.rm-opt label span { width: 100%; min-width: 0; padding: 0 4px; white-space: nowrap; }
.rm-tx, .rm-note, .how-more, .start-card p { text-wrap: pretty; word-break: auto-phrase; line-break: strict; }
/* 近くの物の札：スマホの2列で店の名前が「セリアハウ／ス」と切れないよう、丸を少し小さく・字を12pxに */
.nb-chip { gap: 5px; padding: 4px 6px 4px 5px; }
.nb-chip .nb-em { width: 26px; height: 26px; font-size: 14px; }
.nb-chip .nb-t { font-size: 12px; letter-spacing: -.01em; }
/* 結果の画面：賞の数（1億200万円）を途中で折らない・合計点の説明を ことばの切れ目で折る */
.aw-v { white-space: nowrap; }
.aw-tx small, #sheet p.note { line-break: strict; word-break: auto-phrase; text-wrap: pretty; }
/* 名物の「1年の利益 140万円」を途中で折らない */
.nw { white-space: nowrap; }
/* 3Dの写真の地図では、雨の線が暗い屋根に溶けて雨の月に見えなかった → 雨・夕立・台風の月は地図を少し灰色に、雨の線を明るく（重い端末＝gx-lite では付けない） */
/*   点検 1112：.board3d ごとだと 中の金の札（地図の印）までくすんで、目的地の方の札と見分けにくかった → 地図の絵（canvas）だけに */
/*   1112_q（メモリ）：地図の絵（canvas）への CSS の filter はやめた（絵の写しが1枚増えて重い）→ game.js の m3Wx で 写真の層だけ 灰色に */
#app[data-wx=ame] .stage.m3d-on .gw-canvas, #app[data-wx=yuudachi] .stage.m3d-on .gw-canvas, #app[data-wx=taifu] .stage.m3d-on .gw-canvas { filter: brightness(2.4); }
.gx-dir.hide { opacity: 0 !important; }
/* 「〇〇の記事を読む」のリンクが高さ20pxで押しにくかった → 48px に。カードの場所の名前を ことばの切れ目で折る */
.gx-art { display: inline-flex; align-items: center; min-height: 48px; }
.k2-pl { line-break: strict; word-break: auto-phrase; text-wrap: balance; }
/* 押す所を48px以上に（見た目の大きさはそのまま、押せる範囲だけ広げる）：上の音・メニュー（40px）・「全体の地図」「虫めがね」（36px）・「← 堺さやま子育て帖」 */
.icon-btn, .pill { position: relative; }
.icon-btn::after { content: ""; position: absolute; inset: -4px; }
.pill::after { content: ""; position: absolute; inset: -6px 0; }
.back { display: inline-flex; align-items: center; min-height: 48px; }
/* むくもくんの小さな印が、順位の札の「合計」の字に重なっていた → 顔の丸のすぐ外に */
.pcard.rk .rk-kumo { right: -5px; bottom: -6px; width: 15px; height: 15px; }
.pcard.rk .rk-kumo svg { width: 15px; height: 15px; }

/* 2026-11-12 15:28 運営者「近くを表示すると押しても何も反応ないわ！」→「近くの物を ぜんぶ見る」で開く虫めがねの窓（z 26）が、会話の窓（z 34）の後ろに隠れていた。
   開いている間は虫めがねの窓を上に出し、会話の窓は隠す（閉じると戻る）。本番の画面で効くのを確かめた */
html.gx-info-open .gx-info { z-index: 38; max-height: calc(100% - 140px); }
html.gx-info-open .gx-talk { visibility: hidden; }

/* ===== maptap・bigmap（2026-11-12）：地図の金の駅を押して道を選ぶ／スマホは地図を画面いっぱいに ===== */
.rk-tot { display: none; }
/* 分かれ道の「札で選ぶ」とスマホの見出しは スマホ（幅 600px 未満）だけ。PC は札の一覧がいつも出ている */
.choose.v2 .ch-open, .choose.v2 .t-mob { display: none; }
.back .bk-t { margin-left: .3em; }
.choose.v2 .choice.picked { background: #ffd23f !important; border-color: #f29a00 !important; transform: scale(.98); }
/* 地図の金の札（止まる駅・立体の地図）：入れ物（.gx-tapm）は地図が動かすので、縮むのは中の札だけ */
.gx-tapm { pointer-events: none; z-index: 6; }   /* 分かれ道の間は、駒の名札（.gx-tag.on＝5）より上に */
.gx-tapm.best { z-index: 7; }
.gx-tap { --lc: #c9a64a; pointer-events: auto; position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 7px; border-radius: 99px; border: 3px solid var(--lc); background: #fff8d6; color: #4a2c00; font: inherit; font-size: 13px; font-weight: 900; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.28); cursor: pointer; transition: transform .08s ease-out, background-color .08s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gx-tap::before { content: ""; position: absolute; inset: -7px -6px; }   /* 押せる所を 48px に */
.gx-tap::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 11px; height: 11px; margin-left: -5.5px; background: var(--lc); transform: rotate(45deg); border-radius: 2px; z-index: -1; }
.gx-tap .tp-sw { flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 2px #fff; }
.gx-tap.toward { box-shadow: 0 0 0 3px rgba(255, 90, 122, .45), 0 4px 12px rgba(0,0,0,.28); }
.gx-tap.best { background: linear-gradient(180deg, #ffe680, #ffc21a); font-size: 15px; min-height: 40px; padding: 5px 14px 5px 8px; animation: tapglow 1.6s ease-in-out infinite; }
.gx-tap.sm { min-height: 30px; padding: 2px 9px 2px 5px; font-size: 12px; gap: 4px; border-width: 2px; background: rgba(255, 248, 214, .94); }
.gx-tap.sm::before { inset: -9px -6px; }
.gx-tap.sm .tp-sw { width: 10px; height: 10px; }
.gx-tap.goal { background: linear-gradient(180deg, #ff8aa2, #ff5a7a); color: #fff; }
.gx-tap.down, .gx-tap.pick { background: #f6a800; color: #3a1f00; transform: scale(.93); }
.gx-tap.goal.down, .gx-tap.goal.pick { background: #e23c62; color: #fff; }
@keyframes tapglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, .7), 0 4px 12px rgba(0,0,0,.28); } 50% { box-shadow: 0 0 0 8px rgba(255, 184, 0, 0), 0 4px 12px rgba(0,0,0,.28); } }
/* 平らな地図（SVG）の金の札 */
.taps .gx-tap { cursor: pointer; }
.taps .tp-hit { fill: transparent; }
.taps .tp-bg { fill: #fff8d6; stroke-width: 3; }
.taps .gx-tap.best .tp-bg { fill: #ffd23f; }
.taps .gx-tap.goal .tp-bg { fill: #ff7d97; }
.taps .gx-tap.toward .tp-bg { filter: drop-shadow(0 0 3px rgba(255, 90, 122, .7)); }
.taps .tp-tx { font-size: 14px; font-weight: 900; fill: #4a2c00; }
.taps .gx-tap.goal .tp-tx { fill: #fff; }
.taps .gx-tap.sm .tp-tx { font-size: 12px; }
.taps .gx-tap.down .tp-bg, .taps .gx-tap.pick .tp-bg { fill: #f6a800; }
@media (prefers-reduced-motion: reduce) { .gx-tap.best { animation: none; } .gx-tap { transition: none; } }

/* ---- スマホ（幅 600px 未満）：地図を画面いっぱいに。上は細い帯1本＋地図に浮かぶ丸いボタン、下は今の行 ---- */
@media (max-width: 599px) {
  #app { grid-template-rows: auto auto 1fr auto; }
  .dest { grid-row: 1; grid-column: 1; }
  .topbar { grid-row: 2; grid-column: 1; }   /* 列を決めないと、地図と重なる所を避けて 2列目が作られる */
  .side { grid-row: 2; }
  .stage { grid-row: 2 / 4; }
  .dock { grid-row: 4; }

  /* 上の帯（56px くらい）：番の人の顔・名前・お金／目的地 あとNマス／月と天気 */
  .dest { grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; grid-template-areas: "me dst cal"; align-items: center; gap: 6px; padding: calc(5px + env(safe-area-inset-top)) 8px 5px; min-height: 0; border-bottom: 0; background: rgba(255,255,255,.97); box-shadow: 0 2px 10px rgba(20, 50, 35, .12); z-index: 7; }
  .hud-me { gap: 6px; max-width: 124px; }
  .hud-f { width: 34px; height: 34px; box-shadow: 0 0 0 2.5px var(--pc), 0 2px 6px rgba(0,0,0,.12); }
  .hud-f > svg, .hud-f > .gx-png, .hud-f > .gx-fb { width: 34px !important; height: 34px !important; }
  .hud-nm { line-height: 1.15; }
  .hud-nm b { font-size: 12px; }
  .hud-nm span { font-size: 15px; }
  .hud-dst { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "lab left" "nm nm"; align-items: center; gap: 1px 5px; padding: 3px 8px 3px 6px; border-radius: 12px; min-width: 0; cursor: pointer; }
  .hud-dst .dlab { grid-area: lab; justify-self: start; font-size: 12px; padding: 0 7px; line-height: 1.5; }
  .hud-dst .dleft { grid-area: left; font-size: 12px; white-space: nowrap; overflow: hidden; }
  .hud-dst .dleft em { font-size: 17px; }
  .hud-dst b { grid-area: nm; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .hud-dst .dprize { display: none; }
  .hud-cal { padding: 2px 6px 2px 9px; border-radius: 12px; box-shadow: 0 2px 0 var(--green-d); gap: 2px; }
  .hud-cal .y { display: none; }
  .hud-cal b.m { font-size: 20px; }
  .hud-wx { width: 26px; height: 26px; margin-left: 2px; }
  .hud-wx svg { width: 22px; height: 22px; }

  /* 地図に浮かぶ丸いボタン（戻る・音・メニュー） */
  .topbar { align-self: start; background: none; border: 0; box-shadow: none; padding: 6px 8px 0; gap: 6px; pointer-events: none; z-index: 6; }
  .topbar > * { pointer-events: auto; }
  .topbar .back { position: relative; width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.18); font-size: 20px; font-weight: 900; }
  .topbar .back::after { content: ""; position: absolute; inset: -4px; }
  .back .bk-t { display: none; }
  .topbar .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
  .topbar .snd { margin-left: auto; }

  /* 順位の4枚 → 小さな顔の丸の列（順位の数字と合計点）。押すと詳しい札が開く */
  .side { align-self: start; justify-self: start; margin: 0 0 0 52px; max-width: calc(100% - 148px); z-index: 6; }
  .players { padding: 4px 2px 4px; gap: 4px; }
  #side:not(.open) .pcard.rk { flex: 0 0 54px; width: 54px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0 3px; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.16); cursor: pointer; transform: none; }
  #side:not(.open) .pcard.rk .rk-b { display: none; }
  #side:not(.open) .pcard.rk .rk-f { width: 26px; height: 26px; }
  #side:not(.open) .pcard.rk .rk-f > svg, #side:not(.open) .pcard.rk .rk-f > .gx-png, #side:not(.open) .pcard.rk .rk-f > .gx-fb { width: 26px !important; height: 26px !important; }
  #side:not(.open) .rk-tot { display: block; font-size: 12px; font-weight: 900; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
  #side:not(.open) .rk-n { width: 18px; height: 18px; font-size: 12px; left: -3px; top: -4px; }
  #side:not(.open) .pcard.rk .rk-kumo { right: -4px; bottom: -4px; }
  /* 開いた時：2列で大きめの字 */
  #side.open { justify-self: stretch; margin: 0 8px; max-width: none; z-index: 8; }
  #side.open .players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 18px; background: rgba(255,255,255,.75); box-shadow: 0 8px 24px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  #side.open .pcard.rk { grid-template-columns: 30px minmax(0, 1fr); padding: 6px 8px 7px; }
  #side.open .pcard.rk .rk-f { width: 30px; height: 30px; }
  #side.open .pcard.rk .rk-f > svg, #side.open .pcard.rk .rk-f > .gx-png, #side.open .pcard.rk .rk-f > .gx-fb { width: 30px !important; height: 30px !important; }
  #side.open .pcard.rk .rk-b > .pname { font-size: 13px; padding-left: 16px; }
  #side.open .pcard.rk .rk-b > .pmoney { font-size: 14px; }
  #side.open .ppts { font-size: 12px; gap: 0 6px; }
  #side.open .pcard.rk .pmeta { display: block; font-size: 12px; }
  #side.open .rk-n { width: 20px; height: 20px; font-size: 12px; }

  /* 下の札：細く（押す所は 44px 以上のまま） */
  .dock { padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); min-height: 0; }
  .actions { margin-top: 6px; }
  .actions .btn.gx-b1, .actions .btn.gx-b2, .actions .btn.gx-b3 { min-height: 56px; }

  /* 分かれ道：札の一覧はたたむ（見出し・札で選ぶ・おまかせ の1行）。地図の金の駅を押して選ぶ */
  .choose.v2.mob .ch-h { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t open auto" "l open auto"; align-items: center; gap: 0 6px; margin: 0; }
  .choose.v2 .t-pc { display: none; }
  .choose.v2 .t-mob { display: inline; }
  .choose.v2.mob .ch-h > b { grid-area: t; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .choose.v2.mob .ch-left { grid-area: l; font-size: 12px; }
  .choose.v2.mob .ch-left em { font-size: 16px; }
  .choose.v2.mob .btn.ch-open { display: inline-flex; align-items: center; grid-area: open; min-height: 44px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 2px solid #ffcf33; color: #7a5600; font-size: 14px; font-weight: 900; white-space: nowrap; gap: 4px; }
  .choose.v2.mob .btn.ch-open i { font-style: normal; font-size: 12px; }
  .choose.v2.mob .btn.auto { grid-area: auto; margin: 0; min-height: 44px; padding: 6px 12px; font-size: 14px; }
  .choose.v2.mob:not(.open) .choice-list { display: none; }
  .choose.v2.mob.open .choice-list { margin-top: 8px; max-height: 42vh; }

  /* 地図の端の物：小さく端へ（駒と道を隠さない） */
  .mapctl { right: 6px; bottom: 8px; gap: 6px; }
  .ctl { position: relative; width: 42px; height: 42px; border-radius: 14px; font-size: 19px; }
  .ctl::after { content: ""; position: absolute; inset: -3px; }
  .ctl.txt { font-size: 12px; padding: 0; letter-spacing: -.04em; white-space: nowrap; }
  .stage.m3d-on .mapctl { bottom: 26px; }
  .gx-left { left: 8px; bottom: 8px; transform: translate(0, 10px); padding: 4px 12px 5px; gap: 4px; }
  .gx-left.in { transform: none; }
  .gx-left span { font-size: 12px; }
  .gx-left b { font-size: 24px; }
  .stage.m3d-on .gx-left { bottom: 26px; }
  .ticker { left: 8px; right: 60px; bottom: 8px; font-size: 12px; padding: 6px 10px; }
  .stage.m3d-on .ticker { bottom: 26px; }
  .gx-dir { gap: 4px; max-width: min(230px, 64vw); padding: 2px 10px 2px 3px; font-size: 12px; border-width: 1.5px; }
  .gx-dir .ar { width: 20px; height: 20px; font-size: 12px; }
  .gx-info { top: calc(64px + env(safe-area-inset-top)); }
}
/* 分かれ道の最初の案内（地図の上の端に置く時）：三角は出さない（指す先が無いので）・点検 1112 */
.coach.at-top::after { display: none; }
/* スマホの会話の窓：低く（地図を見せる）。止まった所の窓は 近くの物を「ぜんぶ見る」1つにたたむ（点検 1112：地図が 44% しか見えなかった） */
.nb-box.mini .nb-all { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.nb-ems { display: inline-flex; gap: 1px; font-size: 16px; line-height: 1; }
.nb-ems i { font-style: normal; }
@media (max-width: 599px) {
  .gx-talk { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 9px 10px 10px 9px; border-radius: 18px; bottom: calc(6px + env(safe-area-inset-bottom)); }
  .gx-tk-face { width: 46px; height: 46px; }
  .gx-tk-face > svg, .gx-tk-face > .gx-png, .gx-tk-face > .gx-fb, .gx-tk-face img { width: 46px !important; height: 46px !important; }
  .gx-tk-name { font-size: 12px; padding: 1px 10px; margin: 0 0 2px; }
  .gx-tk-text { font-size: 15px; line-height: 1.55; min-height: 0; }
  .gx-tk-extra { margin-top: 4px; gap: 5px; }
  .gx-talk.local { max-height: 30vh; max-height: 30dvh; overflow-y: auto; overscroll-behavior: contain; }
  .gx-talk.local .nb-badges .gx-new { font-size: 12px; padding: 2px 9px; }
  .gx-talk .nb-box.mini .nb-all { min-height: 44px; margin-bottom: 0; padding: 4px 26px 4px 10px; font-size: 13px; }
  .gx-talk.local .gx-spots { gap: 4px; }
}
/* ずらした金の札と駅をつなぐ線（点検 1112：ずらすと どの駅の札か分かりにくい） */
.gx-tapm .tp-lead { display: none; position: absolute; left: 50%; top: 100%; width: 3px; margin-left: -1.5px; background: var(--lc, #c9a64a); border-radius: 2px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); transform-origin: 50% 0; pointer-events: none; z-index: -1; }
.taps .tp-lead { stroke-width: 3; stroke-linecap: round; opacity: .95; }
@media (max-width: 599px) {
  /* 止まった所の窓（スマホ）：顔は名前の札で分かるので出さず、字の幅を広く。名前の横に「来たよ・知った事」、その下に一言、下に「近くの物」1つ */
  .gx-talk.local { grid-template-columns: minmax(0, 1fr); padding: 8px 12px 9px; }
  .gx-talk.local .gx-tk-face { display: none; }
  .gx-talk.local .gx-tk-body { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 6px; row-gap: 3px; }
  .gx-talk.local .gx-tk-extra { display: contents; }
  .gx-talk.local .gx-tk-body > *, .gx-talk.local .gx-tk-extra > * { grid-column: 1 / -1; }
  .gx-talk.local .gx-tk-name { grid-column: 1; grid-row: 1; margin: 0; }
  .gx-talk.local .nb-badges { grid-column: 2; grid-row: 1; gap: 4px; }
  .gx-talk.local .nb-badges .gx-new { padding: 1px 8px; }
  .gx-talk.local .gx-tk-text { line-height: 1.5; }
  .gx-talk.local .nb-waka { display: none; }   /* 2つ目の「わかる〜」は スマホでは出さない（窓を低く） */
  .gx-talk.local .nb-box.mini .nb-all { padding-right: 30px; }
}
.hud-dst .dmade { font-style: normal; }
/* スマホの上の帯：お金が長い時（1億1,960万円）に「あと10マス」が切れた → 「まで」を外し、お金の字を少し小さく（撮り直しで見つけた所） */
@media (max-width: 599px) {
  .hud-dst .dmade { display: none; }
  .hud-nm span { font-size: 14px; letter-spacing: -.02em; }
}
.taps .tp-lead { pointer-events: none; }

/* ==== 勝ち方と総合の見せ方（2026-11-12 運営者「どうなれば勝ちか分からないとあかん」「総合評価が見える方がよい」） ==== */
/* 冠の印（今の gx-ic の部品と同じ作り・絵文字は使わない） */
.gx-ic.crown { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M2 5.5l5 4.2L12 2l5 7.7 5-4.2-2 10.5H4z'/%3E%3Ccircle cx='2' cy='4.3' r='1.9'/%3E%3Ccircle cx='12' cy='1.9' r='1.9'/%3E%3Ccircle cx='22' cy='4.3' r='1.9'/%3E%3C/svg%3E"); width: 20px; height: 15px; color: #f0b000; vertical-align: -2px; }
/* 順位の丸：同じ点は同じ順位の色・1位の顔の上に冠 */
.pcard.rk .rk-n.p1 { background: #e9b100; }
.pcard.rk .rk-n.p2 { background: #9fb0bb; }
.pcard.rk .rk-n.p3 { background: #c9874a; }
.pcard.rk .rk-n.p4 { background: #9aa6a0; }
.rk-f .rk-crown { position: absolute; left: 50%; top: -12px; z-index: 2; width: 18px; height: 13px; margin-left: -9px; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
/* 順位の札：大きい数字は おもいで点・お金は小さく */
.pcard.rk .pmoney.ptot { color: var(--ink); }
.pmoney.ptot small { font-size: .68em; margin-left: 1px; }
.ppts .pm-v { display: inline-block; }
.ppts .pm-v.neg { color: #d33; }
.ppts .pm-v.bump { animation: bump .5s var(--spring); color: var(--green); }
.ppts .pm-v.bump-down { animation: bump .5s var(--spring); }

/* 上の帯：番の人の おもいで点と順位・のこりの年と月 */
.hud-me { position: relative; }
.hud-nm .hud-pt { color: var(--green); }
.hud-pt small { font-size: .7em; margin-left: 1px; }
.hud-pt .hud-pl2 { font-style: normal; font-size: .8em; color: var(--ink); margin-left: 2px; }
.hud-pl { display: none; }
.hud-cal { flex-wrap: nowrap; }
.hud-cm { display: inline-flex; align-items: center; gap: 4px; }
.hud-left { margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.22); font-size: 13px; font-weight: 900; white-space: nowrap; }
.hud-left b { font-size: inherit; margin-right: 4px; }
.hud-left .lt-s { display: none; }
.hud-cal.last { background: #f29d00; box-shadow: 0 3px 0 #b86f00; }
.hud-cal.last .hud-left { background: #fff3c9; color: #7a4a00; }
.hud-cal.lastm { background: #e23c62; box-shadow: 0 3px 0 #a82346; }
.hud-cal.lastm .hud-left { background: #fff; color: #c42853; animation: lastpulse 1.4s ease-in-out infinite; }
@keyframes lastpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hud-cal.lastm .hud-left { animation: none; } }
@media (max-width: 599px) {
  .hud-pt .hud-pl2 { display: none; }
  .hud-pl { display: inline-flex; align-items: center; gap: 1px; position: absolute; left: 17px; top: 25px; z-index: 1; transform: translateX(-50%); padding: 0 4px; border-radius: 99px; background: #9aa6a0; color: #fff; font-style: normal; font-size: 10px; font-weight: 900; line-height: 14px; white-space: nowrap; box-shadow: 0 0 0 1.5px #fff; }
  .hud-pl.top { background: #e9b100; }
  .hud-pl .gx-ic.crown { width: 11px; height: 8px; color: #fff; vertical-align: 0; }
  .hud-nm .hud-pt { font-size: 14px; letter-spacing: -.02em; }
  .hud-cal { flex-direction: column; align-items: center; gap: 0; padding: 2px 6px 3px; }
  .hud-left { margin: 0; padding: 0 5px; font-size: 10px; line-height: 14px; letter-spacing: -.03em; }
  .hud-left b { margin-right: 0; }
  .hud-left .lt-l { display: none; }
  .hud-left .lt-s { display: inline; }
}

/* 点が増えた時：その人の札の上に「+600点」が浮かんで消える */
.pt-float { --pc: var(--green); position: fixed; z-index: 40; transform: translate(-50%, -100%); display: grid; justify-items: center; padding: 3px 10px 4px; border-radius: 14px; background: #fff; border: 2.5px solid var(--pc); box-shadow: 0 4px 12px rgba(0,0,0,.2); pointer-events: none; white-space: nowrap; animation: ptup 1.9s cubic-bezier(.2,.8,.3,1) forwards; }
.pt-float b { font-size: 18px; font-weight: 900; color: var(--green); line-height: 1.15; }
.pt-float small { font-size: 11px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
@keyframes ptup { 0% { opacity: 0; transform: translate(-50%, -40%) scale(.7); } 14% { opacity: 1; transform: translate(-50%, -100%) scale(1.06); } 24% { transform: translate(-50%, -100%) scale(1); } 78% { opacity: 1; transform: translate(-50%, -150%); } 100% { opacity: 0; transform: translate(-50%, -175%); } }
@media (prefers-reduced-motion: reduce) { .pt-float { animation: ptfade 1.9s linear forwards; } @keyframes ptfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } } }

/* 目的地に着いた時：「とうちゃく！ +2,680点」を大きく・ごほうびの円は小さく・順位が変わったら1行 */
.banner .arrive .prize { font-size: 46px; line-height: 1.05; letter-spacing: -.01em; }
.banner .prize-y { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.banner .arrive b { font-size: 22px; margin-top: 4px; }
.banner .rank-news { --pc: var(--green); justify-self: center; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 14px; border-radius: 99px; background: var(--pc); color: #fff; font-size: 17px; font-weight: 900; }
.banner .rank-news .gx-ic.crown { color: #ffe08a; }
.banner .next .prize-y { color: var(--green); }
.banner .turn .tl { display: block; margin-top: 2px; font-size: 13px; letter-spacing: 0; color: var(--green); }
.banner .turn .tl.last { color: #c77700; }

/* 3月：しんきゅう おめでとう！ 1年のまとめ・今の順位 */
.night-k { margin: 0; font-size: 12px; font-weight: 700; opacity: .8; }
.ye-rank:empty { display: none; }
.ye-rank { margin: 12px 0 4px; }
.ye-rank h4 { margin: 0 0 6px; font-size: 15px; font-weight: 900; color: #ffe08a; display: flex; align-items: baseline; gap: 8px; }
.ye-rank h4 small { font-size: 11px; font-weight: 700; opacity: .8; color: #fff; }
.ye-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ye-list li { --pc: #888; display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; grid-template-areas: "p f n v" "p f g g"; align-items: center; gap: 0 8px; padding: 5px 10px 5px 6px; border-radius: 12px; background: rgba(255,255,255,.09); border-left: 4px solid var(--pc); }
.ye-pl { grid-area: p; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; background: #6c7a8f; }
.ye-pl.p1 { background: #e9b100; }
.ye-pl .gx-ic.crown { width: 15px; height: 11px; color: #fff; vertical-align: 0; }
.ye-f { grid-area: f; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px var(--pc); display: grid; place-items: center; }
.ye-f > svg, .ye-f > .gx-png, .ye-f > .gx-fb { width: 30px !important; height: 30px !important; }
.ye-list b { grid-area: n; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ye-list em { grid-area: v; font-style: normal; font-weight: 900; font-size: 17px; color: #ffe08a; white-space: nowrap; }
.ye-list em small { font-size: .7em; }
.ye-gap { grid-area: g; font-size: 11.5px; opacity: .85; }
.ye-left { margin: 8px 0 0; text-align: center; font-weight: 900; font-size: 15px; color: #ffe08a; }
.ye-left.fin { font-size: 20px; padding: 6px 10px; border-radius: 12px; background: #ffd34d; color: #4a2c00; }

/* 最後の結果：「〇〇の勝ち！」・1位の顔と名前を大きく・点の内訳の横の棒 */
.rs-win { text-align: center; display: grid; gap: 4px; margin-bottom: 10px; }
.rs-kick { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rs-h { margin: 0; font-size: 28px; font-weight: 900; color: var(--green-d); line-height: 1.25; }
.rs-tie { justify-self: center; margin: 0; padding: 2px 12px; border-radius: 99px; background: #fff3c9; color: #7a5600; font-size: 14px; font-weight: 900; }
.rs-faces { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.rs-wf { --pc: var(--green); display: grid; justify-items: center; gap: 2px; }
.rs-wf > .gx-ic.crown { width: 40px; height: 30px; margin-bottom: -6px; position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.rs-wface { border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 4px var(--pc), 0 6px 16px rgba(0,0,0,.15); display: grid; place-items: center; }
.rs-wf b { font-size: 20px; font-weight: 900; }
.rs-wf em { font-style: normal; font-weight: 900; font-size: 24px; color: var(--green); line-height: 1.1; }
.rs-wf em small { font-size: .6em; }
.rank.rs2 li { grid-template-areas: "m n v" "m bar bar" "m s s"; }
.rank.rs2 b small.rs-tie-s { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 99px; background: #fff3c9; color: #7a5600; font-size: 11px; vertical-align: 2px; }
.rs-bar { grid-area: bar; display: flex; height: 10px; margin: 3px 0 1px; border-radius: 99px; overflow: hidden; background: #e8eeeb; }
.rs-bar .sg { display: block; height: 100%; min-width: 3px; }
.sg-okane { background: #f2a516; } .sg-shisan { background: #e0528a; } .sg-manzoku { background: #ff7a45; } .sg-kenko { background: #1f9d55; } .sg-shiru { background: #1e88d6; }
.rank .rs-pts .sw { display: inline-block; width: 8px; height: 8px; margin-right: 3px; border-radius: 2px; vertical-align: 0; text-decoration: none; }

/* 始めの画面：「〇年たって、おもいで点が多い人の勝ち！」と5つの点のマーク */
.win1 { text-align: center; display: grid; gap: 4px; padding: 10px 10px 8px; border-radius: 18px; background: linear-gradient(180deg, #fffaf0, #fff3c9); border: 2px solid #ffd34d; }
.win1-h { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.4; color: var(--green-d); }
.win1-h b { font-size: 1.25em; color: var(--pink); }
.win1-h em { font-style: normal; color: var(--pink); }
.win1-s { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.win1-ic { list-style: none; margin: 2px 0 0; padding: 0; display: flex; justify-content: center; gap: 4px; }
.win1-ic li { display: grid; justify-items: center; min-width: 52px; padding: 3px 2px 2px; border-radius: 10px; background: #fff; }
.win1-ic i { font-style: normal; font-size: 20px; line-height: 1.2; }
.win1-ic small { font-size: 10px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.win1-more { justify-self: center; min-height: 36px; margin-top: 2px; padding: 4px 14px; border: 0; border-radius: 99px; background: transparent; color: var(--green); font: inherit; font-size: 13px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.years label span { line-height: 1.15; padding: 2px 6px; }
.years label span small { display: block; font-size: 10px; font-weight: 700; opacity: .8; }
.how4 li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 勝ち方の札（メニュー）：①〜④ */
.sheet.panel.top { z-index: 32; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 8px; align-items: start; padding: 10px 12px; border-radius: 14px; background: #f7faf8; }
.rl-n { font-size: 22px; font-weight: 900; color: var(--green); line-height: 1.1; }
.rules > li > div > b { font-size: 16px; line-height: 1.5; }
.rl-how { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
.rl-how li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: #fff; }
.rl-how i { font-style: normal; font-size: 18px; }
.rl-how b { display: block; font-size: 14px; }
.rl-how small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
/* お店の札：使う前から おもいで点が いくつ増えるか */
.sp-gain .pt.sp-pt { background: #fff3c9; color: #7a5600; font-weight: 900; }

/* ---- 点検 1112 win の直し ---- */
/* 上の帯：さいごの年の色は .last（1年で遊ぶ時は のこり3か月から）。スマホでは札を細く（目的地の「あと12マス」を切らない） */
.hud-left .nt-h { margin-right: 4px; }
@media (max-width: 599px) {
  .hud-cal { max-width: 84px; }
  .hud-left { max-width: 80px; overflow: hidden; }
  .hud-left .lt-s { display: none; }
  .hud-cal.nt .nt-h { display: none; }
}
/* スマホの順位の丸：上の帯と同じ「10,800点」（字を少し小さく） */
@media (max-width: 599px) {
  #side:not(.open) .rk-tot { font-size: 11px; letter-spacing: -.04em; max-width: 54px; }
  #side:not(.open) .rk-tot small { font-size: 8.5px; margin-left: 0; letter-spacing: 0; }
}
/* 浮かぶ点：スマホのたたんだ丸の列では、丸の下から下へ */
.pt-float.dn { transform: translate(-50%, 0); animation: ptdn 1.9s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes ptdn { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 14% { opacity: 1; transform: translate(-50%, 0) scale(1.06); } 24% { transform: translate(-50%, 0) scale(1); } 78% { opacity: 1; transform: translate(-50%, 40%); } 100% { opacity: 0; transform: translate(-50%, 60%); } }
@media (prefers-reduced-motion: reduce) { .pt-float.dn { animation: ptfade 1.9s linear forwards; } }
/* ニコニココインの印（2026-11-13・前は「¥」の字）：絵文字の 🪙 は古いスマホで出ないことがあるので、星の金色のコインを絵で（顔にすると 😊心の満足 と見分けにくい） */
.yen-ic { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; margin-right: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.1' fill='%23ffc928' stroke='%23d18f00' stroke-width='1.6'/%3E%3Ccircle cx='10' cy='10' r='6.8' fill='%23ffb800' stroke='%23e9a100' stroke-width='.8'/%3E%3Cpath d='M10 5.2l1.35 2.9 3.15.36-2.35 2.13.66 3.1L10 12.1l-2.81 1.59.66-3.1L5.5 8.46l3.15-.36z' fill='%23fff6cf' stroke='%23c98600' stroke-width='.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* 3月のまとめの表：375px でも札の中に収める */
.settle { table-layout: fixed; }
.settle col.c-n { width: 38%; }
.settle col.c-t { width: 24%; }
.settle tbody th { display: table-cell; }
.settle .st-nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.settle .st-nm .pnum { flex: none; }
.settle .st-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settle thead th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .settle { font-size: 12px; }
  .settle th, .settle td { padding: 7px 2px; }
  .settle .tot { font-size: 13.5px; }
  .settle td { letter-spacing: -.02em; }
}
/* 次で結果発表！：ボタンに見えない字だけの見出し（旗の印） */
.gx-ic.flag { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h2v20H5zM8 3h12l-3 4.5 3 4.5H8z'/%3E%3C/svg%3E"); width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.ye-left.fin { font-size: 18px; padding: 0; border-radius: 0; background: none; color: #ffe08a; }
/* 勝ち方を くわしく：押せる高さを 44px に */
.win1-more { min-height: 44px; padding: 10px 16px; }
/* 結果の点の内訳の棒：お金は落ち着いた灰青、心の満足・健康・知った事を目立つ色に。お金がマイナスなら棒の右に印 */
.sg-okane { background: #a9b6c4; } .sg-shisan { background: #e0528a; } .sg-manzoku { background: #ff8a00; } .sg-kenko { background: #1f9d55; } .sg-shiru { background: #1e88d6; }
.rs-bar { position: relative; overflow: visible; }
.rs-bar .rs-fill { display: flex; height: 100%; border-radius: 99px; overflow: hidden; background: #e8eeeb; }
.rs-bar .rs-fill:empty { display: none; }
.rs-bar.neg { margin-bottom: 4px; }
.rs-bar .rs-neg { position: absolute; top: 50%; transform: translateY(-50%); padding: 0 6px; border-radius: 99px; background: #fde4ea; color: #b3203f; font-size: 10.5px; font-weight: 900; line-height: 16px; white-space: nowrap; }
.pt-float.sm { padding: 1px 7px 2px; border-width: 2px; }
.pt-float.sm b { font-size: 14px; }
.pt-float.sm small { display: none; }
.yen-ic.big { width: 1.15em; height: 1.15em; margin: 0; vertical-align: -.18em; }

/* ---- 点検 1112 win 2回目の直し ---- */
/* 自分の丸の印「あなた」（1人で遊ぶ時と部屋の自分の席）。部屋の名前の横の印と2つにならないよう、こちら1つにする */
.rk-me { display: none; }
.pcard.rk.me .pname .rm-me { display: none; }
.pcard.rk.me .rk-me { display: block; position: absolute; right: 8px; top: -8px; z-index: 2; padding: 1px 7px; white-space: nowrap; border-radius: 99px; background: var(--green); color: #fff; font-style: normal; font-size: 10px; font-weight: 900; line-height: 1.35; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
@media (max-width: 599px) {
  /* たたんだ丸：むくもくんは顔の右上（順位の数字の反対側）。点の字の行には重ねない */
  #side:not(.open) .pcard.rk .rk-kumo { left: auto; right: -14px; top: -4px; bottom: auto; }
  /* たたんだ丸の自分の分：下の端に小さい「あなた」と、少し太い縁 */
  #side:not(.open) .pcard.rk.me { box-shadow: 0 0 0 2px var(--green), 0 2px 8px rgba(0,0,0,.16); }
  #side:not(.open) .pcard.rk.me .rk-me { right: auto; left: 50%; top: auto; bottom: -13px; transform: translateX(-50%); padding: 0 5px; font-size: 9px; line-height: 12px; box-shadow: 0 0 0 1.5px #fff; }
  #side:not(.open) .players { padding-bottom: 14px; }
}
/* 浮かぶ点（広い画面と開いた札）：その人の札の中、名前の行の右に出す。上の帯へは上がらない */
.pt-float.in { transform: translate(-100%, 0); transform-origin: 100% 0; animation: ptin 1.9s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes ptin { 0% { opacity: 0; transform: translate(-100%, 8px) scale(.75); } 14% { opacity: 1; transform: translate(-100%, 0) scale(1.06); } 24% { transform: translate(-100%, 0) scale(1); } 78% { opacity: 1; transform: translate(-100%, -3px); } 100% { opacity: 0; transform: translate(-100%, -6px); } }
@media (prefers-reduced-motion: reduce) { .pt-float.in { animation: ptfade 1.9s linear forwards; } }
/* 3月のまとめの表：名前の前は席の番号ではなく顔（下の順位の丸と まぎれないように） */
.settle .st-f { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--pc); display: grid; place-items: center; overflow: hidden; }
.settle .st-f > svg, .settle .st-f > .gx-png, .settle .st-f > .gx-fb, .settle .st-f img { width: 22px !important; height: 22px !important; }

/* ===== 1112_q：止まった所の窓を小さく（画面の半分くらいまで）・1行ずつ・「なにもせずに進む」はいつも見える ===== */
.sheet-card.sp-c { display: flex; flex-direction: column; max-height: 52vh; max-height: 52dvh; overflow: hidden; padding: 12px 12px 10px; }
.sheet-card.sp-c .sp-top { flex: none; }
.sheet-card.sp-c h3 { font-size: 17px; margin: 0 0 2px; }
.sheet-card.sp-c .money-now { margin: 0 0 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-card.sp-c .sp-msg { margin: 0 0 4px; padding: 5px 9px; font-size: 13px; line-height: 1.45; }
.sheet-card.sp-c .sp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.sheet-card.sp-c .sp-foot { flex: none; padding-top: 6px; border-top: 1px solid #eef2ef; margin-top: 4px; }
.sheet-card.sp-c .sp-foot .btn.big { margin-top: 0; min-height: 46px; width: 100%; }
.sp-h1 { margin: 8px 0 4px; font-size: 14px; font-weight: 900; color: var(--ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sp-h1:first-child { margin-top: 2px; }
.sp-h1 small { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.sp1-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sp1 { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 12px; background: #f7faf8; min-height: 48px; }
.sp1 .sp-em { grid-area: auto; grid-column: 1; grid-row: 1; width: 28px; height: 28px; font-size: 15px; align-self: center; }
.sp1 > .sp1-t { grid-column: 2; grid-row: 1; }
.sp1 > .sp-ln1 { grid-row: 1; }
.sp1 > .btn.sp1-go, .sp1 > .owned { grid-row: 1; }
.sp1-t { min-width: 0; display: block; }
.sp1-t b { display: block; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp1-t small { display: block; font-size: 11px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp1-g .pt { font-size: 10.5px; padding: 0 5px; }
/* 1113_s：点の札を 2段目の先頭に（「…」で切れるのは 後ろの「ランチ・約150m」の方）・お金が足りない時の字 */
.sp1-t small .sp1-g { margin-right: 3px; }
.sp1-g .pt { margin: 0 2px 0 0; vertical-align: 1px; }
.sp-short { display: block; font-size: 10px; line-height: 1.1; font-weight: 900; color: #b3261e; letter-spacing: .02em; }
.btn.sp1-go.short { flex-direction: column; gap: 0; line-height: 1.15; }
.btn.buy.short:disabled { opacity: .7; }
.btn.sp-mo em .sp-short { display: inline; margin-left: 6px; }
.sp1 .owned { grid-column: 3 / 5; font-size: 11.5px; font-weight: 900; color: #fff; background: var(--pc, #888); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.btn.sp1-go { grid-column: 4; min-height: 40px; min-width: 64px; padding: 0 10px; font-size: 13px; border-radius: 10px; white-space: nowrap; }
.sp1 .sp-ln1 { grid-column: 3; font-size: 11.5px; font-weight: 900; color: var(--green); text-decoration: none; padding: 10px 4px; white-space: nowrap; }
.sp-mo-open { background: #fff; border: 2px solid #d9cdf3; color: #6a4fb3; }
.sp-mo-open.on { background: #f1ecff; }
.sp1 .sp-mochi { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.sp1 .sp-mochi[hidden] { display: none; }
.sp1 .btn.sp-mo { min-height: 52px; padding: 6px 8px; }
.sp-more { display: block; width: 100%; margin: 4px 0 0; min-height: 40px; border-radius: 10px; border: 1.5px dashed #bcd6c6; background: #fff; color: var(--green); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.sp-rest[hidden] { display: none; }
/* 近くの物は 小さな1行（押した時だけ 虫めがねの窓で開く）・PC も同じ */
.gx-talk .nb-box.mini .nb-all { min-height: 40px; margin: 0; padding: 2px 12px; font-size: 13px; width: auto; justify-content: flex-start; border-width: 1.5px; }
.nb-go { margin-left: 4px; font-size: 16px; line-height: 1; }
@media (min-width: 900px) { .sheet-card.sp-c { max-height: 50vh; } }

/* ===== 1113_m 遊びやすさ（目的地の案内・サイコロの数・止まった時の帯・お店の帯・速さ） ===== */
/* A1・A2・A7：目的地の札（サイトの緑。前のピンクはやめた） */
.gx-dir { border-color: var(--green); flex-wrap: wrap; row-gap: 0; }
.gx-dir b { color: var(--green-d); }
.gx-dir em { font-style: normal; font-weight: 900; font-size: 1.15em; color: var(--green-d); margin: 0 1px; }
.gx-dir .ar { background: var(--green); }
.gx-dir .fl { font-style: normal; margin-right: 2px; }
.gx-dir.lit { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 122, 77, .22), 0 4px 14px rgba(0,0,0,.14); }
.gx-dir.lit .ar { background: var(--green); }
.gx-dir.off { box-shadow: 0 0 0 3px rgba(255,255,255,.7), 0 4px 14px rgba(0,0,0,.2); }
.gx-dir .reach { flex-basis: 100%; padding-left: 30px; font-size: 12px; font-weight: 900; color: var(--ink-2); }
.gx-dir .reach.ok { color: var(--green); }
.dir-line { stroke: var(--green); stroke-width: 3.2; stroke-dasharray: 7 6; opacity: .95; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff); }
.dir-line.lit { stroke: var(--green); stroke-width: 3.2; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff); }
.gx-destglow { opacity: 1; }
.gx-destglow i { border-color: #ffd84d; }
/* A3：ふった後の「着ける／足りない」 */
.reach { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 900; background: var(--bg); color: var(--ink-2); }
.reach.ok { background: var(--green); color: #fff; }
/* A4：分かれ道の札の「目的地まで あと N マス」 */
.choose.v2 .c-dest { background: var(--green); }
.choose.v2 .c-left { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.choose.v2 .c-left.to { color: var(--green-d); font-weight: 900; }
.gx-tap.toward { box-shadow: 0 0 0 3px rgba(31, 122, 77, .55), 0 4px 12px rgba(0,0,0,.28); }
.gx-tap.two > span { display: inline-flex; flex-direction: column; line-height: 1.15; text-align: left; }
.gx-tap .tp-sub { font-size: 11px; font-weight: 900; color: #5b4a1a; }
.gx-tap.toward .tp-sub { color: var(--green-d); }
.gx-tap.goal .tp-sub { color: #fff; }
/* E3：分かれ道の先の 止まれる駅 */
.st .opt-ring.end { fill: rgba(31, 122, 77, .18); stroke: var(--green); }
/* B5：通る駅の番号 */
.gx-step { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: #fff; border: 2px solid var(--green); color: var(--green-d); font: 900 12px/1 "Zen Maru Gothic", sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.25); pointer-events: none; transition: opacity .25s; }   /* 仕上げ 1113：transform は地図の印の置き場（maplibre が毎コマ書く）なので 動きを付けない */
.gx-step b { font-weight: 900; }
.gx-step small { position: absolute; top: 100%; margin-top: 2px; font-size: 10px; background: #fff; border-radius: 6px; padding: 0 4px; color: var(--ink); white-space: nowrap; }
.gx-step.last { background: var(--green); color: #fff; }
.gx-step.walk { border-style: dashed; }
.gx-step.done { opacity: 0; }
g.gx-step .st-c { fill: #fff; stroke: var(--green); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
g.gx-step.last .st-c { fill: var(--green); }
g.gx-step .st-t { font: 900 13px "Zen Maru Gothic", sans-serif; text-anchor: middle; fill: var(--green-d); }
g.gx-step.last .st-t { fill: #fff; }
g.gx-step .st-w { font: 700 10px "Zen Maru Gothic", sans-serif; text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
g.gx-step.done { opacity: 0; transition: opacity .25s; }
/* B2・B3：サイコロの足し引き */
.dice-sum.plus .ds-eq { display: inline-flex; align-items: center; gap: 6px; background: none; box-shadow: none; padding: 0; }
.dice-sum.plus .ds-eq b { display: inline-block; }
.dice-sum.plus .ds-raw { font-size: 56px; color: var(--ink-2); }
.dice-sum.plus .ds-tot { font-size: 72px; }
.dice-sum .ds-add { font-style: normal; display: inline-flex; flex-direction: column; align-items: center; font-weight: 900; font-size: 30px; color: var(--yellow); line-height: 1; }
.dice-sum .ds-add small { font-size: 11px; color: var(--ink); background: #fff; border-radius: 8px; padding: 1px 6px; margin-top: 2px; }
.dice-sum.plus em { font-style: normal; font-size: 30px; font-weight: 900; color: var(--ink-2); }
.dice-sum.fixed .ds-k { display: inline-block; margin-bottom: 6px; background: var(--yellow); color: #fff; }
/* C1：止まった時の短い帯（押さなくても消える） */
.gx-stopband { position: absolute; left: 50%; bottom: 64px; z-index: 7; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; max-width: calc(100% - 32px); padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--ink); opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.gx-stopband.in { opacity: 1; transform: translate(-50%, 0); }
.gx-stopband b { color: var(--green-d); font-weight: 900; }
.gx-stopband span { white-space: nowrap; }
.gx-stopband .pt { font-style: normal; }
/* E2：止まった所のお店の帯（5秒のゲージ） */
.actions > .sp-band { grid-column: 1 / -1; }
.sp-band { display: grid; gap: 6px; }
.sp-band-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sp-band-h b { font-weight: 900; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-gauge { flex: 1; min-width: 40px; height: 6px; border-radius: 99px; background: var(--green-soft); overflow: hidden; }
.sp-gauge i { display: block; height: 100%; background: var(--green); transform-origin: left center; animation: spgauge linear forwards; }
@keyframes spgauge { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.sp-band-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.sp-bd { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "e n" "e s"; align-items: center; column-gap: 6px; text-align: left; min-height: 48px; padding: 6px 8px; border-radius: 14px; border: 2px solid var(--green-soft); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.sp-bd .sp-em { grid-area: e; font-size: 20px; }
.sp-bd b { grid-area: n; font-size: 13px; font-weight: 900; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-bd small { grid-area: s; font-size: 11px; color: var(--ink-2); line-height: 1.3; }
.sp-bd.all { grid-template-columns: 1fr; grid-template-areas: "n" "s"; background: var(--green-soft); }
.sp-bd:disabled { opacity: .5; }
.sp-bd:active:not(:disabled) { transform: scale(.97); }
.sp-band-skip { min-height: 44px; }
/* E4：速さ */
.gx-speed { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; }
.gx-speed > span { font-weight: 900; font-size: 14px; color: var(--ink-2); margin-right: 2px; }
.gx-speed .btn { flex: 1; min-height: 44px; }
.gx-speed .btn.on { background: var(--green); color: #fff; }
.gx-more #mHere small { display: block; font-size: 11px; font-weight: 700; opacity: .8; }
/* A9：吹き出しを下の端に置いた時は 矢じりを下に */
.coach.at-bot::after { bottom: -7px; top: auto; }
/* C5：駅の窓の近くのお店 */
.gx-i-shops { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gx-i-shops li > a, .gx-i-shops li > span { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "e n g" "e s g"; align-items: center; column-gap: 8px; padding: 6px 8px; border-radius: 12px; background: var(--green-soft); color: var(--ink); text-decoration: none; min-height: 44px; }
.gx-i-shops .sp-em { grid-area: e; font-size: 18px; }
.gx-i-shops b { grid-area: n; font-size: 14px; }
.gx-i-shops small { grid-area: s; font-size: 12px; color: var(--ink-2); }
.gx-i-shops .gx-go { grid-area: g; font-style: normal; color: var(--green); font-weight: 900; }
.gx-src { font-size: 12px; color: var(--green); font-weight: 700; white-space: nowrap; }
.gx-q-more { font-size: 12px; color: var(--ink-2); text-align: center; margin: 4px 0; }
/* D4：お店の名前のカードは 行き先 */
.k2-pl.k2-to { background: #fff; color: var(--green-d); font-weight: 900; }
.warp-tag p { font-weight: 900; color: var(--green-d); }
@media (prefers-reduced-motion: reduce) { .sp-gauge i { animation-timing-function: linear; } .gx-stopband { transition: none; } }
/* お店の帯：1行に1件（名前と点・距離が切れないように）。下に「ぜんぶ見る」と「なにもせずに進む」を横並び */
.sp-band { grid-template-columns: 1fr 1fr; }
.sp-band-h, .sp-band-row { grid-column: 1 / -1; }
.sp-band-row { display: contents; }
.sp-bd { grid-column: 1 / -1; grid-template-columns: auto 1fr; grid-template-areas: "e n" "e s"; min-height: 44px; padding: 5px 10px; }
.sp-bd b { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
.sp-bd small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-bd.all { grid-column: 1; min-height: 44px; place-content: center; text-align: center; }
.sp-band-skip { grid-column: 2; margin: 0; }
/* 下の帯の字が長い時（「あと N マス足りない」付き）に 画面の幅が広がらないように */
.dock { min-width: 0; }
.dock-top .turn-info { flex: 1 1 0; width: 0; }
.turn-info .reach { flex: none; }
.coach.at-bot::after { display: none; }
/* 目的地の札：矢印は左の列・字は右の列（長い駅名でも 矢印だけが1行にならない） */
.gx-dir { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; max-width: min(330px, 84vw); }
.gx-dir .ar { grid-row: 1 / span 2; align-self: center; }
.gx-dir > span { grid-column: 2; }
.gx-dir .reach { grid-column: 2; padding-left: 0; }
.gx-speed .btn { white-space: nowrap; min-width: 0; padding-left: 6px; padding-right: 6px; font-size: 15px; }

/* ===== 仕上げ 1113（点検の直し） ===== */
/* 1：端の札の「この目で着ける！」が 緑の地に緑の字で読めなかった */
.gx-dir .reach.ok { justify-self: start; color: #fff; background: var(--green); padding: 1px 8px; border-radius: 99px; }
/* 2：止まる駅が画面の外の札は 画面の端に寄せて「➜」で向きを出す */
.gx-tap .tp-edge { display: none; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; font-size: 12px; line-height: 20px; text-align: center; }
.gx-tapm.edge .gx-tap .tp-edge { display: inline-block; }
/* 4：下の帯の「Nマス すすむ・あと N マス足りない」が「全体の地図」「虫めがね」に隠れない（2段にしてよい） */
.dock-top .turn-info { white-space: normal; flex-wrap: wrap; row-gap: 2px; line-height: 1.35; }
.turn-info .reach { margin-left: 0; }
@media (min-width: 900px) { .dock-top .turn-info { flex: 1 1 100%; width: auto; } }
@media (max-width: 899px) {
  .dock-top:has(.turn-info .reach) .pill { font-size: 0; gap: 0; padding: 4px 9px; min-width: 40px; justify-content: center; }
}
/* 6：端の札が 自分の駒や金の札にかぶさる時の 小さい形（矢印と「あとN」だけ） */
.gx-dir.mini { padding: 4px 8px 4px 4px; column-gap: 4px; }
.gx-dir.mini > span, .gx-dir.mini .reach { display: none; }
.gx-dir.mini::after { content: "あと" attr(data-left); grid-column: 2; align-self: center; font-weight: 900; font-size: 12px; color: var(--green-d); white-space: nowrap; }
/* 9：そのほか の「ちず」の説明 */
.gx-more #mMap small { display: block; font-size: 11px; font-weight: 700; opacity: .8; }

/* 2026-11-13 15:17 運営者「いらっしゃいませみたいになる方がよいね」「その場所のことを寄り道する人は知ることもできるように」：寄ると決めた時の窓の頭 */
.sp-welcome { margin: 4px 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--paper, #fffaf0); border: 1px solid rgba(0,0,0,.08); }
.sp-welcome p { margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
.sp-welcome p span { margin-right: 4px; }
.sp-welcome .sp-more { width: 100%; min-height: 40px; margin-top: 4px; font-size: 14px; }

/* 15:27 運営者「下の選べる一覧小さすぎてスクロールできるのもわからん」：寄ると決めた時は 窓を高く・下にまだある時は札 */
.sheet-card.sp-c.sp-yoru { max-height: 82vh; max-height: 82dvh; }
@media (min-width: 900px) { .sheet-card.sp-c.sp-yoru { max-height: 78vh; } }
.sheet-card.sp-c { position: relative; }
.sheet-card.sp-c.sp-more-on .sp-foot::before { content: '▼ 下にもっとあります'; position: absolute; left: 0; right: 0; transform: translateY(-100%); margin-top: -6px; padding: 18px 0 4px; text-align: center; font-size: 13px; font-weight: 700; color: var(--green, #1f7a4d); background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 60%); pointer-events: none; }
.sheet-card.sp-c .sp-foot { position: relative; }

/* 15:38 サイコロのボタン：「サイコロ」は1行・足す分（ベビーカー・カード）は下に小さく（字の途中で折れない） */
#rollBtn .rl { display: flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 0; }
#rollBtn .rl b { white-space: nowrap; }
#rollBtn .rl small { font-size: 13px; font-weight: 700; opacity: .9; white-space: nowrap; margin-top: 2px; }

/* ---- あそびかた（2026-11-13 guide）：1画面に1つずつ・今ある札の部品で。375×667 で 1ページが窓に収まる高さ ---- */
.win1-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 4px; margin: 2px 0 0; }
.win1-links .win1-more { margin-top: 0; }
.sheet-card:has(> .gd) { max-height: 88vh; max-height: 88dvh; padding-top: 12px; }
.gd-top { display: flex; align-items: center; gap: 10px; }
.gd-k { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.gd-k b { font-size: 15px; color: var(--green); }
.gd-x { flex: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--green-soft); color: var(--green); font-size: 22px; font-weight: 900; line-height: 1; cursor: pointer; }
.gd-dots { display: flex; gap: 5px; margin: 0; }
.gd-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.gd-dots i.on { width: 18px; border-radius: 99px; background: var(--green); }
.sheet-card h3.gd-h { margin: 2px 0 8px; font-size: 20px; line-height: 1.35; color: var(--green-d); }
.gd-pic { aspect-ratio: 2 / 1; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #f7faf8; }
.gd-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.gd-t { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.gd-t li { position: relative; padding-left: 15px; font-size: 15px; line-height: 1.55; }
.gd-t li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.gd-pts { margin-top: 6px; flex-wrap: wrap; }
.gd-pts li { background: #fffaf0; border: 1px solid #ffe7a3; }
.gd-link { display: block; margin: 2px auto 0; min-height: 44px; padding: 10px 16px; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 14px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gd-nav { position: sticky; bottom: -14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px -4px -6px; padding: 4px 4px 8px; background: #fff; }
.gd-nav .btn.big { margin-top: 0; }

/* ---- ゴールの祝い（2026-11-15 運営者「ゴールしたときの祝福系のイベントが欲しいね！そのときの音楽とね」） ----
   画面いっぱい・字は16px以上・縦375px／横（低い画面）は2列／PC は真ん中の札。紙吹雪（z 47）は札の上を通る */
.cele { position: fixed; inset: 0; z-index: 46; display: grid; place-items: start center; padding: calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 50% 30%, rgba(255, 246, 204, .97), rgba(255, 222, 234, .95) 55%, rgba(214, 238, 255, .95)); opacity: 0; transition: opacity .28s ease; }
.cele[hidden] { display: none; }
.cele.in { opacity: 1; }
.cele.out { opacity: 0; }
.ce-card { --pc: var(--green); position: relative; width: min(540px, 100%); margin: auto 0; display: grid; gap: 10px; padding: 18px 16px 16px; border-radius: 28px; background: #fff; border: 4px solid #f2c230; box-shadow: 0 0 0 6px rgba(255,255,255,.7), 0 20px 50px rgba(120, 70, 0, .22); text-align: center; color: var(--ink); }
.cele.in .ce-card { animation: ceIn .6s var(--spring) both; }
.ce-l, .ce-r { display: grid; gap: 8px; min-width: 0; }
.ce-kick { margin: 0; font-size: clamp(44px, 13vw, 68px); font-weight: 900; line-height: 1.05; letter-spacing: .04em; color: var(--pink);
  text-shadow: 0 3px 0 #fff, 0 -3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 6px 0 rgba(224, 82, 138, .25); }
.ce-card.fin .ce-kick { font-size: clamp(28px, 8vw, 40px); color: #b07800; }
.ce-h { margin: 0; font-size: clamp(26px, 7.4vw, 36px); font-weight: 900; line-height: 1.25; color: var(--green-d); overflow-wrap: anywhere; }
.ce-sub { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.ce-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 2px; min-height: 120px; padding-top: 18px; }
.ce-me { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.ce-me-in { display: block; animation: ceHop .8s ease-in-out infinite; transform-origin: 50% 100%; }
.ce-me-in img, .ce-me-in svg { display: block; }
.ce-who { display: inline-block; padding: 2px 14px; border-radius: 99px; background: var(--pc); color: #fff; font-size: 17px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-pal { display: block; flex: none; animation: ceWave .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.ce-pal img, .ce-pal svg { display: block; }
.ce-pal0 { animation-delay: -.3s; }
.ce-pal1 { animation-delay: -.6s; }
.ce-pal2 { position: absolute; top: -6px; right: 4%; animation-name: ceFloat; animation-duration: 1.6s; }
.ce-pal .gx-fb.chara { font-size: 40px; }
.ce-prize { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 10px; }
.ce-prize span { font-size: clamp(32px, 9vw, 42px); font-weight: 900; color: #b07800; line-height: 1.1; }
.ce-prize small { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.cele .rank-news { --pc: var(--green); justify-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 4px 14px; border-radius: 99px; background: var(--pc); color: #fff; font-size: 17px; font-weight: 900; }
.cele .rank-news .gx-ic.crown { color: #ffe08a; }
.ce-rank { text-align: left; background: #fffaf0; border-radius: 18px; padding: 10px 12px; }
.ce-rank h3 { margin: 0 0 6px; font-size: 17px; font-weight: 900; color: var(--ink); }
.ce-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ce-rank li { --pc: var(--green); display: grid; grid-template-columns: 28px 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 14px; background: #fff; border: 2px solid transparent; font-size: 16px; }
.ce-rank li.me { border-color: var(--pc); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ce-pl { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #6c7a8f; color: #fff; font-size: 16px; font-weight: 900; }
.ce-pl.p1 { background: #e9b100; }
.ce-f { width: 30px; height: 30px; display: grid; place-items: center; }
.ce-n { font-size: 16px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-v { display: grid; justify-items: end; line-height: 1.2; }
.ce-v em { font-style: normal; font-size: 17px; font-weight: 900; color: var(--green-d); white-space: nowrap; }
.ce-v em small { font-size: 16px; margin-left: 1px; }
.ce-coin { font-size: 16px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.ce-go { margin-top: 2px; font-size: 18px; }
/* 音のボタン（祝いの札が上の🔈をふさぐので 札の中にも）と つづけるボタンを1列に */
.ce-btns { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 2px; }
.ce-btns .ce-go { margin-top: 0; min-width: 0; }
.ce-snd { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
/* 同点で1位：勝った人を並べる（仲間の2人は外す） */
.ce-stage.many { gap: 6px; flex-wrap: nowrap; }
.ce-stage.many .ce-me { flex: 0 1 auto; }
@keyframes ceIn { 0% { transform: scale(.6) translateY(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ceHop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-12px) rotate(-2deg); } 60% { transform: translateY(0) scale(1.03, .97); } }
@keyframes ceWave { 0% { transform: rotate(-9deg) translateY(0); } 100% { transform: rotate(9deg) translateY(-6px); } }
@keyframes ceFloat { 0% { transform: translateY(0) rotate(-6deg); } 100% { transform: translateY(-10px) rotate(6deg); } }
/* 低めの縦の画面（iPhone SE など）：ボタンまで1画面に入るよう 少しつめる */
@media (max-height: 760px) and (max-width: 599px) {
  .ce-card { padding: 12px 12px 12px; gap: 8px; }
  .ce-kick { font-size: 44px; }
  .ce-stage { min-height: 0; padding-top: 10px; }
  .ce-rank { padding: 8px 10px; }
  .ce-rank li { padding: 2px 8px; }
  .ce-v { display: flex; align-items: baseline; gap: 8px; }
}
/* 横に広くて低い画面（スマホの横）：左に祝い・右に順位とボタン */
@media (max-height: 560px) and (min-width: 600px) {
  .ce-card { width: min(860px, 100%); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px; }
  .ce-kick { font-size: 40px; }
  .ce-card.fin .ce-kick { font-size: 26px; }
  .ce-h { font-size: 24px; }
  .ce-sub { font-size: 16px; }
  .ce-stage { min-height: 0; padding-top: 10px; }
  .ce-prize span { font-size: 30px; }
  .ce-rank { padding: 8px 10px; }
  .ce-rank li { padding: 2px 8px; }
  .ce-v { display: flex; align-items: baseline; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cele, .ce-card, .ce-me-in, .ce-pal { animation: none !important; transition: none !important; }
}

/* ---- 曲について（クレジット・2026-11-15） ---- */
.mc-lead { margin: 0 0 10px; font-size: 16px; line-height: 1.7; color: var(--ink); }
.mc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mc-list li { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--green-soft); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.mc-k { font-size: 16px; font-weight: 900; color: var(--green-d); }
.mc-t b { font-size: 17px; font-weight: 900; }
.mc-l { color: var(--ink-2); }
.mc-mod { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.mc-list a { color: var(--green); text-underline-offset: 3px; }
