/* やり直し英語：英語で旅する（旅行ゲーム） */
.tr { --tc: #e2552f; --tn: #1c2333; --tg: #c98a06; max-width: 860px; margin: 0 auto; scroll-margin-top: calc(var(--hd) + 8px); }
.tr [lang="en"] { font-family: var(--en); }
.tr-boot { padding: 60px 20px; text-align: center; color: var(--ink2); background: var(--card); border-radius: 22px; border: 1px solid var(--line); }
.tr-k { margin: 0; font: 800 .74rem var(--en); letter-spacing: .2em; text-transform: uppercase; color: #ffcf7a; }
.tr-h { font-size: 1.12rem; margin: 26px 0 10px; }

/* ── 行程 ── */
.tr-hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; background: #1c2333 center / cover no-repeat; box-shadow: var(--sh2); }
.tr-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 18, 28, .94) 8%, rgba(14, 18, 28, .55) 46%, rgba(14, 18, 28, 0) 78%); }
.tr-hero-b { position: relative; padding: 26px 22px 24px; color: #fff; display: grid; gap: 10px; width: 100%; animation: tr-up .6s ease both; }
.tr-hero-b h2 { margin: 0; font-size: clamp(1.8rem, 6.4vw, 2.7rem); line-height: 1.25; letter-spacing: .02em; border: 0; padding: 0; color: #fff; }
.tr-hero-l { margin: 0; font-size: .98rem; line-height: 1.8; max-width: 34em; color: #e8ebf2; }
.tr-hero-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tr-ghost { border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; padding: 10px 18px; font: 700 .92rem var(--jp); cursor: pointer; min-height: 48px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tr-ghost:hover { background: rgba(255, 255, 255, .22); }
.tr-ghost2 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 700 .9rem var(--jp); cursor: pointer; min-height: 46px; }
.tr-ghost2:hover { border-color: var(--tc); color: var(--tc); }
@keyframes tr-up { from { opacity: 0; transform: translateY(14px); } }
.tr-rt-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.tr-rt-h h2 { margin: 0; font-size: 1.2rem; border: 0; padding: 0; } .tr-rt-h p { margin: 0; font-size: .78rem; color: var(--ink3); }
.tr-route { list-style: none; display: flex; gap: 13px; overflow-x: auto; margin: 0 -16px; padding: 6px 16px 18px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tr-route li { flex: none; width: 216px; scroll-snap-align: start; }
.tr-sc { display: grid; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: var(--sh1); transition: transform .16s, box-shadow .16s; align-content: start; }
.tr-sc:not(.lock):hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.tr-sc.now { border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 28%, transparent), var(--sh1); }
.tr-sc-img { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; background: #2b3345 center / cover no-repeat; }
.tr-sc.lock { cursor: default; } .tr-sc.lock .tr-sc-img { filter: grayscale(1) brightness(.6); }
.tr-sc-lock { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
.tr-sc-img .tr-stamp { position: absolute; right: 6px; bottom: 6px; transform: rotate(var(--rot)) scale(.56); transform-origin: right bottom; }
.tr-sc-b { display: grid; gap: 3px; padding: 11px 13px 13px; }
.tr-sc-b small { font-size: .72rem; color: var(--ink3); font-weight: 700; } .tr-sc-b b { font-size: .96rem; line-height: 1.5; } .tr-sc-b > span { font-size: .8rem; color: var(--ink2); }
.tr-sc-b em { font-style: normal; font-size: .76rem; font-weight: 800; color: var(--tc); margin-top: 3px; } .tr-sc-b em.mute { color: var(--ink3); font-weight: 600; }
.tr-stars { display: inline-flex; gap: 1px; margin-top: 3px; } .tr-stars i { color: var(--line2); display: grid; } .tr-stars i.on { color: #f0a500; } .tr-stars svg { width: 18px; height: 18px; }
.tr-stars.big svg { width: 40px; height: 40px; } .tr-stars.big i.on { animation: tr-pop .5s cubic-bezier(.2, .9, .3, 1.6) both; } .tr-stars.big i:nth-child(2) { animation-delay: .18s; } .tr-stars.big i:nth-child(3) { animation-delay: .36s; }
@keyframes tr-pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } }

/* スタンプ */
.tr-stamp { display: inline-grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; border: 3px dashed var(--line2); color: var(--line2); transform: rotate(var(--rot)); flex: none; }
.tr-stamp-in { display: grid; place-items: center; align-content: center; gap: 1px; width: 92px; height: 92px; border-radius: 50%; border: 2px solid currentColor; text-align: center; line-height: 1.15; }
.tr-stamp small { font: 800 .5rem var(--en); letter-spacing: .14em; } .tr-stamp b { font: 900 .74rem var(--en); letter-spacing: .04em; max-width: 78px; }
.tr-stamp.got { border: 3px solid currentColor; color: #c2401d; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9); mix-blend-mode: normal; }
.tr-stamp.got.gold { color: #a87100; background: #fff7dd; }
:root[data-theme="dark"] .tr-stamp.got { background: #f6efe2; }

/* ── 場面 ── */
.tr-bar { display: flex; align-items: center; gap: 8px; padding: 0 0 10px; }
.tr-ib { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 50%; cursor: pointer; }
.tr-bar-t { flex: 1; min-width: 0; font-weight: 800; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-tg { flex: none; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink3); border-radius: 999px; padding: 6px 13px; font: 700 .8rem var(--jp); cursor: pointer; min-height: 40px; }
.tr-tg[aria-pressed="true"] { background: var(--tn); border-color: var(--tn); color: #fff; }
:root[data-theme="dark"] .tr-tg[aria-pressed="true"] { background: #edf0f6; border-color: #edf0f6; color: #12161f; }
.tr-stage { position: relative; aspect-ratio: 3 / 2; max-height: 46vh; width: 100%; border-radius: 22px 22px 0 0; overflow: hidden; background: #1c2333; }
.tr-bg { position: absolute; inset: -4%; background: #2b3345 center / cover no-repeat; animation: tr-pan 26s ease-in-out infinite alternate; }
@keyframes tr-pan { from { transform: scale(1.02) translateX(-1.6%); } to { transform: scale(1.08) translateX(1.6%); } }
.tr-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 18, 28, .55), rgba(14, 18, 28, 0) 42%); pointer-events: none; }
.tr-pic { position: absolute; left: 50%; bottom: -3%; height: 88%; width: auto; aspect-ratio: 1; object-fit: contain; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); transition: opacity .45s, transform .45s cubic-bezier(.2, .9, .3, 1.2); z-index: 1; animation: tr-breathe 4.2s ease-in-out infinite; }
@keyframes tr-breathe { 50% { transform: translateX(-50%) scaleY(1.012); } }
.tr-pic-ph { display: grid; place-items: center; height: 46%; bottom: 14%; border-radius: 50%; background: var(--tc); color: #fff; font: 900 3rem var(--en); }
.tr-stage.pre .tr-pic { opacity: 0; transform: translateX(-20%) scale(.94); animation: none; }
.tr-stage.pre .tr-name, .tr-stage.pre .tr-meter { opacity: 0; }
.tr-stage.r-good .tr-pic { animation: tr-hop .6s ease; } .tr-stage.r-ok .tr-pic { animation: tr-tilt .7s ease; } .tr-stage.r-bad .tr-pic { animation: tr-jolt .6s ease; }
@keyframes tr-hop { 30% { transform: translateX(-50%) translateY(-5%); } 60% { transform: translateX(-50%) translateY(0); } 80% { transform: translateX(-50%) translateY(-2%); } }
@keyframes tr-tilt { 40%, 70% { transform: translateX(-50%) rotate(-5deg); } }
@keyframes tr-jolt { 15% { transform: translateX(-53%) rotate(-3deg); } 30% { transform: translateX(-47%) rotate(3deg); } 45% { transform: translateX(-52%) rotate(-2deg); } 60% { transform: translateX(-49%); } }
.tr-emo { position: absolute; left: calc(50% + 15%); top: 9%; z-index: 2; min-width: 54px; height: 54px; padding: 0 12px; display: none; place-items: center; border-radius: 28px 28px 28px 6px; background: #fff; color: #1c2333; font: 900 1.5rem var(--jp); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.tr-stage.r-good .tr-emo, .tr-stage.r-ok .tr-emo, .tr-stage.r-bad .tr-emo { display: grid; animation: tr-pop .4s cubic-bezier(.2, .9, .3, 1.6) both; }
.tr-stage.r-good .tr-emo { color: #1d8a4e; } .tr-stage.r-bad .tr-emo { color: #cf3a3a; }
.tr-name { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: grid; color: #fff; font-size: .74rem; line-height: 1.35; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); transition: opacity .4s; }
.tr-name b { font: 800 1.12rem var(--en); }
.tr-meter { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; gap: 3px; width: 116px; color: #fff; font-size: .68rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); transition: opacity .4s; }
.tr-meter div { height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .28); overflow: hidden; } .tr-meter i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #ffcf7a, #ff8a4c); transition: width .5s ease; }
.tr-dots { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 2; display: flex; gap: 4px; }
.tr-dots i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .32); } .tr-dots i.done { background: #fff; } .tr-dots i.on { background: #ffcf7a; }

.tr-panel { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; padding: 16px 15px 18px; display: grid; gap: 12px; box-shadow: var(--sh2); min-height: 230px; align-content: start; }
.tr-panel.in > * { animation: tr-up .34s ease both; } .tr-panel.in > :nth-child(2) { animation-delay: .07s; } .tr-panel.in > :nth-child(3) { animation-delay: .14s; } .tr-panel.in > :nth-child(4) { animation-delay: .2s; } .tr-panel.in > :nth-child(5) { animation-delay: .26s; }
.tr-panel p { margin: 0; }
.tr-card { display: grid; gap: 9px; } .tr-card h2 { margin: 0; font-size: 1.36rem; line-height: 1.45; border: 0; padding: 0; }
.tr-day { font-size: .78rem; font-weight: 800; color: var(--tc); letter-spacing: .04em; }
.tr-goal { display: grid; gap: 2px; background: var(--gold-bg); border-radius: 13px; padding: 10px 14px; font-weight: 700; } .tr-goal b { font-size: .72rem; color: var(--gold); letter-spacing: .06em; }
.tr-narr { background: var(--bg2); border-radius: 15px; padding: 15px 16px; font-size: 1rem; line-height: 1.9; color: var(--ink); border: 1px dashed var(--line2); }
.tr-next { justify-self: end; min-width: 150px; justify-content: center; }
.tr-bub { position: relative; max-width: 92%; border-radius: 20px; padding: 11px 15px 12px; display: grid; gap: 4px; }
.tr-npc { justify-self: start; background: var(--bg2); border-top-left-radius: 6px; } .tr-me { justify-self: end; background: var(--tn); color: #fff; border-top-right-radius: 6px; }
:root[data-theme="dark"] .tr-me { background: #33405e; }
.tr-who { font-size: .7rem; font-weight: 800; opacity: .7; letter-spacing: .04em; }
.tr-en { font-size: 1.24rem; line-height: 1.55; font-weight: 700; overflow-wrap: anywhere; }
.tr-bub.small { opacity: .82; } .tr-bub.small .tr-en { font-size: 1rem; }
.tr-ja { font-size: .92rem; line-height: 1.7; opacity: .92; } .tr .hid { display: none; }
.tr-jab { justify-self: start; border: 0; background: none; color: var(--tc); font: 700 .82rem var(--jp); padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.tr-sp { display: inline-grid; place-items: center; vertical-align: middle; width: 34px; height: 34px; margin-left: 6px; border: 0; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; cursor: pointer; }
.tr-sp:hover { background: color-mix(in srgb, currentColor 28%, transparent); }
.tr-q { display: grid; gap: 3px; } .tr-q-k { font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--tc); } .tr-q-t { font-size: 1.08rem; font-weight: 800; line-height: 1.6; } .tr-q-j { font-size: .95rem; color: var(--ink2); font-weight: 700; }
.tr-opts { display: grid; gap: 9px; }
.tr-opts button { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 16px; padding: 12px 14px; font: 700 1.12rem var(--en); text-align: left; cursor: pointer; min-height: 56px; transition: transform .12s, border-color .12s, box-shadow .12s; }
.tr-opts-ja button { font: 700 1rem var(--jp); }
.tr-opts button:hover { border-color: var(--tc); transform: translateY(-2px); box-shadow: var(--sh1); }
.tr-opts i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg2); color: var(--ink2); font: 800 .82rem var(--en); font-style: normal; }
.tr-res { border-radius: 16px; padding: 13px 15px; display: grid; gap: 6px; font-size: .95rem; line-height: 1.8; border-left: 0; }
.tr-res-t { font-weight: 900; font-size: 1.05rem; }
.tr-res.tr-good { background: var(--ok-bg); } .tr-res.tr-good .tr-res-t { color: var(--ok); }
.tr-res.tr-ok { background: var(--gold-bg); } .tr-res.tr-ok .tr-res-t { color: var(--gold); }
.tr-res.tr-bad { background: var(--ng-bg); } .tr-res.tr-bad .tr-res-t { color: var(--ng); }
.tr-gag { font-weight: 700; }
.tr-oth { border: 1px solid var(--line); border-radius: 14px; padding: 2px 14px; font-size: .9rem; }
.tr-oth summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--ink2); min-height: 44px; }
.tr-oth ul { list-style: none; margin: 0; padding: 0 0 10px; display: grid; gap: 10px; } .tr-oth li { display: grid; gap: 1px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tr-oth b { font-size: 1.02rem; } .tr-oth span { color: var(--ink2); } .tr-oth small { font-size: .84rem; line-height: 1.7; }
.tr-oth li.tr-good b { color: var(--ok); } .tr-oth li.tr-bad b { color: var(--ng); } .tr-oth li.tr-ok b { color: var(--gold); }
.tr-ord { display: grid; gap: 11px; }
.tr-line { min-height: 62px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 2px dashed var(--line2); background: var(--bg2); }
.tr-line em { font-style: normal; font-size: .86rem; color: var(--ink3); } .tr-line span { font-size: 1.16rem; font-weight: 700; background: var(--tn); color: #fff; border-radius: 10px; padding: 5px 11px; animation: tr-pop .25s ease both; }
:root[data-theme="dark"] .tr-line span { background: #33405e; }
.tr-line.shake { animation: tr-shake .35s; border-color: var(--ng); }
@keyframes tr-shake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.tr-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-pool button { border: 2px solid var(--line2); border-bottom-width: 4px; background: var(--card); color: var(--ink); border-radius: 12px; padding: 8px 14px; font: 700 1.14rem var(--en); cursor: pointer; min-height: 48px; }
.tr-pool button:disabled { opacity: .22; cursor: default; } .tr-pool button:not(:disabled):hover { border-color: var(--tc); }
.tr-ord-a { display: flex; justify-content: space-between; gap: 10px; } .tr-ord-m { font-size: .88rem; color: var(--ng); font-weight: 700; min-height: 1.4em; }
.tr-wave { display: flex; align-items: flex-end; gap: 4px; height: 34px; color: var(--tc); } .tr-wave span { font-size: .8rem; font-weight: 700; margin-left: 8px; align-self: center; color: var(--ink2); }
.tr-wave i { width: 5px; height: 30%; border-radius: 4px; background: currentColor; animation: tr-eq 1s ease-in-out 3; } .tr-wave.go i { animation: tr-eq 1s ease-in-out 3; }
.tr-wave i:nth-child(2) { animation-delay: .12s; } .tr-wave i:nth-child(3) { animation-delay: .24s; } .tr-wave i:nth-child(4) { animation-delay: .36s; } .tr-wave i:nth-child(5) { animation-delay: .48s; }
@keyframes tr-eq { 50% { height: 100%; } }
.tr-lis { max-width: 100%; justify-self: stretch; } .tr-lis-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px !important; }

/* ── 結果・パスポート ── */
.tr-rs-top { position: relative; border-radius: 24px; overflow: hidden; background: #1c2333 center / cover no-repeat; }
.tr-rs-top::before { content: ""; position: absolute; inset: 0; background: rgba(14, 18, 28, .72); }
.tr-rs-in { position: relative; display: grid; justify-items: center; gap: 8px; padding: 30px 18px 26px; color: #fff; text-align: center; }
.tr-rs-stamp .tr-stamp { width: 150px; height: 150px; animation: tr-stamp .55s cubic-bezier(.3, 1.4, .5, 1) .15s both; } .tr-rs-stamp .tr-stamp-in { width: 126px; height: 126px; } .tr-rs-stamp small { font-size: .62rem; } .tr-rs-stamp b { font-size: 1rem; max-width: 108px; }
@keyframes tr-stamp { from { transform: rotate(var(--rot)) scale(2.6); opacity: 0; } }
.tr-rs-p { margin: 0; font-weight: 800; font-size: 1.05rem; } .tr-rs-m { margin: 0; font-size: .92rem; line-height: 1.75; color: #e8ebf2; max-width: 30em; }
.tr-end { margin-top: 16px; padding: 22px 20px; border-radius: 22px; background: linear-gradient(135deg, #1c2333, #2f4a8a); color: #fff; display: grid; gap: 8px; text-align: center; }
.tr-end h2 { margin: 0; border: 0; padding: 0; color: #fff; font-size: 1.5rem; } .tr-end p { margin: 0; line-height: 1.85; } .tr-end-s { font-weight: 800; color: #ffcf7a; }
.tr-take, .tr-ph ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tr-take li, .tr-ph li { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 11px 13px; }
.tr-take li .tr-sp, .tr-ph li .tr-sp { flex: none; margin: 2px 0 0; background: var(--bg2); color: var(--tc); width: 40px; height: 40px; }
.tr-take li > span, .tr-ph li > span { display: grid; gap: 1px; min-width: 0; } .tr-take b, .tr-ph li b { font-size: 1.1rem; line-height: 1.5; } .tr-take li span span, .tr-ph li span span { font-size: .92rem; color: var(--ink2); } .tr-take small, .tr-ph li small { font-size: .82rem; color: var(--ink3); line-height: 1.65; }
.tr-rs-a { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; align-items: center; }
.tr-book { border-radius: 22px; padding: 22px 16px 18px; background: linear-gradient(160deg, #23355f, #1c2333); color: #fff; box-shadow: var(--sh2); }
.tr-book-t { margin: 0 0 16px; text-align: center; font: 900 1.3rem var(--en); letter-spacing: .3em; color: #ffcf7a; display: grid; gap: 2px; } .tr-book-t small { font: 700 .7rem var(--jp); letter-spacing: .2em; color: #c9d0de; }
.tr-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px 6px; justify-items: center; background: #f6efe2; border-radius: 16px; padding: 16px 8px; }
.tr-stamps .tr-stamp { width: 100px; height: 100px; } .tr-stamps .tr-stamp-in { width: 82px; height: 82px; } .tr-stamps .tr-stamp:not(.got) { color: #cfc5b0; border-color: #cfc5b0; }
.tr-book-n { margin: 14px 0 0; text-align: center; font-size: .84rem; color: #d8deea; }
.tr-ph { border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin: 0 0 9px; padding: 0 13px; }
.tr-ph summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 13px 2px; cursor: pointer; min-height: 50px; } .tr-ph summary small { color: var(--ink3); flex: none; }
.tr-ph ul { padding-bottom: 13px; } .tr-ph li { background: var(--bg2); border: 0; }
.tr-empty { color: var(--ink2); background: var(--bg2); border-radius: 14px; padding: 16px; }
.tr-about { margin-top: 38px; } .tr-note { font-size: .86rem; color: var(--ink2); }
.tr-plist { margin: 4px 0 12px; padding-left: 1.2em; font-size: .92rem; line-height: 1.9; } .tr-about h3 small { font-weight: 500; color: var(--ink3); }
@media (min-width: 720px) { .tr-route { margin: 0; padding-left: 2px; padding-right: 2px; } .tr-hero { min-height: 460px; } .tr-hero-b { padding: 36px 34px 32px; } .tr-panel { padding: 20px 22px 22px; } .tr-stage { max-height: 440px; } }
@media (prefers-reduced-motion: reduce) { .tr-bg, .tr-pic, .tr-wave i, .tr-panel.in > * { animation: none !important; } }
