/* 名言ホント？ウソ？（REAL OR FAKE）：黒地に金の名言カードを左右にはじく */
.gm-stage[data-game="truth"] { aspect-ratio: 16 / 11; max-height: 86vh; min-height: 520px; }
@media (max-width: 640px) {
  .gm-stage[data-game="truth"] { aspect-ratio: auto; height: 88vh; height: min(88svh, 800px); min-height: 540px; max-height: none; }
}
.gm-stage[data-game="truth"]:fullscreen { aspect-ratio: auto; }

.tr {
  --gold: #c9a24a; --gold2: #e1c47e; --paper: #f3ede2; --verm: #c4584a; --verm2: #ec9c8a;
  --mincho: 'Shippori Mincho B1', var(--jp), serif; --pf: 'Playfair Display', Georgia, serif; --pp: 'Poppins', var(--jp), sans-serif;
  --cw: 320px; --ch: 440px; --fs: 0.8;
  position: absolute; inset: 0; overflow: hidden; color: var(--paper); font-family: var(--jp); line-height: 1.6; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
:where(.tr) p, :where(.tr) h2, :where(.tr) h3, :where(.tr) ol { margin: 0; }
:where(.tr) a { color: var(--gold2); }
.tr button:focus-visible, .tr a:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }
.tr kbd { display: inline-block; min-width: 1.9em; padding: 4px 6px; border-radius: 5px; border: 1px solid rgba(243, 237, 226, 0.22); background: rgba(255, 255, 255, 0.04); color: rgba(243, 237, 226, 0.62); font: 600 10.5px/1 var(--pp); text-align: center; letter-spacing: 0.04em; }
.tr > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tr-bg { z-index: 0; }
.tr-fx { z-index: 15; pointer-events: none; }
.tr-shell { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; }
.tr[data-state="title"] .tr-shell, .tr[data-state="result"] .tr-shell, .tr[data-state="pause"] .tr-shell { visibility: hidden; }
.tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 上の帯（得点・倍率・ボタン） */
.tr-hud { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px 4px; }
.tr-hl, .tr-stk { display: flex; flex-direction: column; gap: 5px; }
.tr-hc { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tr-stk { align-items: center; }
.tr-hr { display: flex; justify-content: flex-end; gap: 8px; }
.tr-lab { font: 600 9.5px/1 var(--pp); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.tr-num { font: 600 21px/1 var(--pf); font-variant-numeric: tabular-nums lining-nums; color: var(--paper); }
.tr-num small { font-size: 0.62em; color: rgba(243, 237, 226, 0.5); }
.tr-mult { min-width: 48px; padding: 6px 11px 7px; border-radius: 999px; border: 1px solid rgba(201, 162, 74, 0.45); font: italic 700 18px/1 var(--pf); color: var(--gold2); text-align: center; transition: box-shadow 0.3s; }
.tr-mult.tr-x2 { border-color: rgba(225, 196, 126, 0.8); }
.tr-mult.tr-x3 { border-color: var(--gold2); box-shadow: 0 0 20px -4px rgba(225, 196, 126, 0.65); }
.tr-mult.tr-x4, .tr-mult.tr-x5 { border-color: transparent; background: linear-gradient(180deg, #f1d996, #b8913c); color: #141217; box-shadow: 0 0 26px -2px rgba(225, 196, 126, 0.75); }
.tr-ib { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(225, 196, 126, 0.28); background: rgba(12, 12, 15, 0.45); color: var(--gold2); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.tr-ib:hover { border-color: rgba(225, 196, 126, 0.7); background: rgba(225, 196, 126, 0.08); }
.tr-ib svg { width: 18px; height: 18px; }
.tr-mute[aria-pressed="true"] .tr-sw, .tr-mute:not([aria-pressed="true"]) .tr-sx { display: none; }
.tr-mute[aria-pressed="true"] { color: rgba(243, 237, 226, 0.45); }

/* ── 時間の帯 */
.tr-time { position: relative; z-index: 60; flex: none; display: flex; align-items: center; gap: 12px; height: 22px; padding: 2px 18px 0; }
.tr[data-mode="ten"] .tr-time { display: none; }
.tr-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(243, 237, 226, 0.09); overflow: hidden; }
.tr-bar i { display: block; height: 100%; transform-origin: 0 50%; border-radius: 4px; background: linear-gradient(90deg, #7d6020, #e1c47e 75%, #fff1c8); box-shadow: 0 0 12px rgba(225, 196, 126, 0.8); }
.tr-sec { min-width: 44px; text-align: right; font: 600 15px/1 var(--pf); font-variant-numeric: tabular-nums lining-nums; color: var(--gold2); }
.tr.tr-low .tr-bar i { background: linear-gradient(90deg, #6e2219, #e0705c); box-shadow: 0 0 14px rgba(236, 120, 100, 0.85); animation: tr-blink 0.5s ease-in-out infinite alternate; }
.tr.tr-low .tr-sec { color: var(--verm2); }
@keyframes tr-blink { to { opacity: 0.55; } }
.tr-dt { position: absolute; right: 12px; top: 24px; padding: 5px 10px 6px; border-radius: 999px; background: rgba(9, 9, 11, 0.82); font: italic 700 14px/1 var(--pf); white-space: nowrap; pointer-events: none; animation: tr-dt 1s ease-out forwards; }
.tr-dt small { margin-left: 2px; font: 700 10px/1 var(--jp); font-style: normal; }
.tr-dt.tr-dtp { color: var(--gold2); text-shadow: 0 0 10px rgba(225, 196, 126, 0.7); }
.tr-dt.tr-dtm { color: var(--verm2); }
@keyframes tr-dt { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ── 場（カードの山） */
.tr-play { position: relative; flex: 1; min-height: 0; touch-action: none; }
.tr-stack { position: absolute; inset: 0; transition: filter 0.45s, opacity 0.45s; }
.tr[data-state="count"] .tr-stack { filter: blur(10px) brightness(0.65); }
.tr[data-state="end"] .tr-stack { filter: saturate(0.3) brightness(0.45) blur(3px); }
.tr.tr-dragging, .tr.tr-dragging * { cursor: grabbing !important; }
.tr[data-state="play"] .tr-play, .tr[data-state="reveal"] .tr-play { cursor: grab; }

.tr-side { position: absolute; top: 50%; display: none; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.tr.tr-wide .tr-side { display: flex; }
.tr-side.tr-sd-l { left: calc((100% - var(--cw)) / 4); transform: translate(-50%, -50%) scale(calc(1 + var(--lf, 0) * 0.12)); color: var(--verm2); opacity: calc(0.26 + var(--lf, 0) * 0.74); }
.tr-side.tr-sd-r { right: calc((100% - var(--cw)) / 4); transform: translate(50%, -50%) scale(calc(1 + var(--lr, 0) * 0.12)); color: var(--gold2); opacity: calc(0.26 + var(--lr, 0) * 0.74); }
.tr-side span { font: 400 34px/1 var(--pf); }
.tr-side b { font: 800 30px/1.1 var(--mincho); letter-spacing: 0.16em; padding-left: 0.16em; }
.tr-side i { font: italic 600 13px/1 var(--pf); letter-spacing: 0.32em; text-transform: uppercase; padding-left: 0.32em; }
.tr-side.tr-sd-r b { text-shadow: 0 0 calc(var(--lr, 0) * 26px) rgba(225, 196, 126, 0.8); }
.tr-side.tr-sd-l b { text-shadow: 0 0 calc(var(--lf, 0) * 26px) rgba(236, 140, 120, 0.8); }

/* ── カード */
.tr-card { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2); perspective: 1700px; will-change: transform, opacity; --dim: 0; --sr: 0; --sf: 0; --sh: 0; }
.tr-flip { position: absolute; inset: 0; transform-style: preserve-3d; }
.tr-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1.5px solid transparent;
  background:
    radial-gradient(130% 85% at 50% 0%, #25212c 0%, #141217 56%, #0b0b0e 100%) padding-box,
    linear-gradient(140deg, #f7e5ad, #a9832f 26%, #ebd18f 50%, #86661f 74%, #f0d999) border-box;
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.95), 0 0 46px -20px rgba(201, 162, 74, 0.45);
  color: var(--paper);
}
.tr-face::before {
  content: ''; position: absolute; inset: 7px; z-index: 1; pointer-events: none; border: 1px solid rgba(201, 162, 74, 0.34); border-radius: 12px;
  background:
    linear-gradient(var(--gold), var(--gold)) left 6px top 6px / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left 6px top 6px / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 6px top 6px / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 6px top 6px / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left 6px bottom 6px / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left 6px bottom 6px / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 6px bottom 6px / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 6px bottom 6px / 1px 16px no-repeat;
}
.tr-front { display: flex; flex-direction: column; padding: calc(14px + 6px * var(--fs)) calc(16px + 8px * var(--fs)) calc(12px + 4px * var(--fs)); }
.tr-front::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: #060608; opacity: var(--dim); }
.tr-back { transform: rotateY(180deg); }

.tr-top { position: relative; z-index: 2; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 0; }
.tr-no { font: 600 10px/1 var(--pp); letter-spacing: 0.22em; color: var(--gold); }
.tr-roq { font: italic 600 12.5px/1 var(--pf); letter-spacing: 0.06em; color: var(--gold2); }
.tr-body { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; align-items: center; overflow: hidden; }
.tr-in { width: 100%; padding: 4px 4px; text-align: center; }
.tr-qm { display: block; height: 0.42em; margin-bottom: 0.08em; font: italic 600 calc(40px + 26px * var(--fs))/1 var(--pf); color: var(--gold); opacity: 0.6; }
.tr-en { font: italic 600 26px/1.34 var(--pf); color: #f8f2e6; letter-spacing: 0.004em; overflow-wrap: break-word; text-wrap: balance; }
.tr-who { margin-top: 0.85em; font: 800 clamp(13px, calc(8px + 8px * var(--fs)), 19px)/1.4 var(--mincho); letter-spacing: 0.06em; color: var(--gold2); }
.tr-ja { max-width: 27em; margin: 0 auto; font: 600 14px/1.75 var(--mincho); color: rgba(243, 237, 226, 0.7); text-wrap: pretty; }
.tr-ja::before { content: ''; display: block; width: 38px; height: 1px; margin: 0.75em auto 0.7em; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tr-foot { position: relative; z-index: 2; flex: none; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 6px 4px; font: 700 11px/1 var(--jp); letter-spacing: 0.06em; }
.tr-foot .tr-ff { color: rgba(236, 156, 138, 0.62); }
.tr-foot .tr-fr { color: rgba(225, 196, 126, 0.62); }
.tr-foot .tr-fq { font: 800 12.5px/1 var(--mincho); color: rgba(243, 237, 226, 0.78); }

.tr-stamp { position: absolute; top: calc(44px + 14px * var(--fs)); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 16px 7px; border: 3px double currentColor; border-radius: 10px; background: rgba(8, 8, 10, 0.72); pointer-events: none; font: 800 calc(16px + 10px * var(--fs))/1.1 var(--mincho); letter-spacing: 0.1em; }
.tr-stamp i { font: italic 600 0.48em/1.2 var(--pf); letter-spacing: 0.26em; text-transform: uppercase; }
.tr-stamp.tr-st-real { left: 20px; color: var(--gold2); opacity: var(--sr); transform: rotate(-13deg) scale(calc(1.3 - 0.3 * var(--sr))); box-shadow: 0 0 30px -6px rgba(225, 196, 126, calc(var(--sr) * 0.8)); }
.tr-stamp.tr-st-fake { right: 20px; color: var(--verm2); opacity: var(--sf); transform: rotate(13deg) scale(calc(1.3 - 0.3 * var(--sf))); box-shadow: 0 0 30px -6px rgba(236, 140, 120, calc(var(--sf) * 0.8)); }
.tr-sheen { position: absolute; inset: -30%; z-index: 5; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 190, 0.1) 48%, rgba(255, 236, 190, 0.03) 54%, transparent 60%); transform: translateX(calc(var(--sh) * 30%)); }
.tr-verdict { position: absolute; inset: 0; z-index: 7; display: none; place-items: center; pointer-events: none; background: radial-gradient(closest-side, rgba(8, 8, 10, 0.6), transparent); }
.tr-card.tr-judged .tr-verdict { display: grid; }
.tr-card.tr-judged .tr-stamp { display: none; }
.tr-card.tr-judged .tr-seal { animation: tr-stampin 0.3s cubic-bezier(0.2, 1.5, 0.4, 1) both; }

/* 判定の印（本人の言葉／実は別人） */
.tr-seal { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 20px 9px; border: 3px double currentColor; border-radius: 12px; background: rgba(9, 9, 11, 0.86); font: 800 calc(15px + 7px * var(--fs))/1.1 var(--mincho); letter-spacing: 0.12em; transform: rotate(-7deg); }
.tr-seal i { font: italic 600 11.5px/1 var(--pf); letter-spacing: 0.3em; text-transform: uppercase; }
.tr-seal.tr-real { color: var(--gold2); box-shadow: 0 0 34px -6px rgba(225, 196, 126, 0.6), inset 0 0 18px -8px rgba(225, 196, 126, 0.6); }
.tr-seal.tr-fake { color: var(--verm2); box-shadow: 0 0 34px -6px rgba(236, 140, 120, 0.55), inset 0 0 18px -8px rgba(236, 140, 120, 0.6); }
@keyframes tr-stampin { from { opacity: 0; transform: rotate(-7deg) scale(1.9); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }

/* ── カードの裏（じっくり 10 問の解説） */
.tr-bk-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: calc(5px + 4px * var(--fs)); padding: calc(16px + 6px * var(--fs)) calc(16px + 8px * var(--fs)) calc(14px + 4px * var(--fs)); overflow: hidden; }
.tr-back.tr-open .tr-bk-in { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(201, 162, 74, 0.5) transparent; }
.tr-bk-h { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 0; }
.tr-mk { display: inline-flex; align-items: center; gap: 8px; }
.tr-mk svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.tr-mk b { font: 800 calc(16px + 6px * var(--fs))/1 var(--mincho); letter-spacing: 0.08em; white-space: nowrap; }
.tr-mk i { font: italic 600 13px/1 var(--pf); letter-spacing: 0.06em; opacity: 0.75; }
.tr-mk.tr-ok { color: var(--gold2); }
.tr-mk.tr-ok svg { box-shadow: 0 0 18px -4px rgba(225, 196, 126, 0.8); }
.tr-mk.tr-ng { color: var(--verm2); }
.tr-bk-you { font: 700 11px/1.3 var(--jp); color: rgba(243, 237, 226, 0.55); text-align: right; white-space: nowrap; }
.tr-narrow .tr-mk i { display: none; }
.tr-narrow .tr-bk-you { font-size: 10.5px; }
.tr-back .tr-seal { flex: none; align-self: center; margin: auto 0 2px; transform: rotate(-4deg); }
.tr-bk-en { flex: none; font: italic 600 calc(10.5px + 4.5px * var(--fs))/1.45 var(--pf); color: #f8f2e6; text-align: center; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-back.tr-open .tr-bk-en { display: block; }
.tr-bk-w { flex: none; text-align: center; font: 800 calc(9.5px + 3.8px * var(--fs))/1.4 var(--mincho); color: var(--gold2); }
.tr-bk-w small { margin-left: 4px; font: 600 11px var(--jp); color: rgba(243, 237, 226, 0.5); }
.tr-bk-lab { flex: none; display: flex; align-items: center; gap: 10px; margin-top: 2px; font: 800 11.5px/1 var(--mincho); letter-spacing: 0.14em; color: var(--gold); }
.tr-bk-lab::before, .tr-bk-lab::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.55)); }
.tr-bk-lab::after { background: linear-gradient(90deg, rgba(201, 162, 74, 0.55), transparent); }
.tr-bk-d { flex: 0 1 auto; min-height: 3.6em; overflow: hidden; font: 400 calc(9.8px + 4.2px * var(--fs))/1.85 var(--jp); color: rgba(243, 237, 226, 0.88); }
.tr-back.tr-clamped:not(.tr-open) .tr-bk-d { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
.tr-back.tr-open .tr-bk-d { flex: none; overflow: visible; }
.tr-more { flex: none; align-self: center; padding: 3px 4px; border: 0; border-bottom: 1px solid rgba(225, 196, 126, 0.45); background: none; color: var(--gold2); font: 700 12px/1.4 var(--jp); cursor: pointer; }
.tr-bk-act { flex: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.tr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(225, 196, 126, 0.42); background: rgba(225, 196, 126, 0.06); color: var(--gold2); font: 700 12.5px/1 var(--jp); text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.tr-chip:hover { background: rgba(225, 196, 126, 0.15); border-color: rgba(225, 196, 126, 0.8); }
.tr-chip svg { width: 15px; height: 15px; }

/* ── 下のボタン */
.tr-ctrl { flex: none; display: flex; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 24px); min-height: 86px; padding: 8px 16px 18px; }
.tr-ans { position: relative; flex: 1; max-width: 236px; height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border-radius: 999px; border: 1px solid; cursor: pointer; background: rgba(12, 12, 15, 0.55); touch-action: manipulation; transition: transform 0.14s, background 0.2s, box-shadow 0.2s, opacity 0.3s; }
.tr-ans span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tr-ans b { font: 800 19px/1 var(--mincho); letter-spacing: 0.14em; padding-left: 0.14em; }
.tr-ans i { font: italic 600 10.5px/1 var(--pf); letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.72; }
.tr-ans svg { width: 22px; height: 22px; flex: none; }
.tr-ans kbd { position: absolute; top: 50%; transform: translateY(-50%); }
.tr-ans.tr-a-fake kbd { left: 14px; }
.tr-ans.tr-a-real kbd { right: 14px; }
.tr-ans.tr-a-fake { color: var(--verm2); border-color: rgba(236, 156, 138, 0.5); }
.tr-ans.tr-a-real { color: var(--gold2); border-color: rgba(225, 196, 126, 0.72); background: linear-gradient(180deg, rgba(225, 196, 126, 0.13), rgba(225, 196, 126, 0.03)); }
.tr-ans:hover, .tr-ans.tr-hit { transform: translateY(-2px); }
.tr-ans.tr-a-fake:hover, .tr-ans.tr-a-fake.tr-hit { background: rgba(196, 88, 74, 0.17); box-shadow: 0 0 30px -8px rgba(236, 140, 120, 0.65); }
.tr-ans.tr-a-real:hover, .tr-ans.tr-a-real.tr-hit { background: rgba(225, 196, 126, 0.2); box-shadow: 0 0 30px -8px rgba(225, 196, 126, 0.75); }
.tr-ans:active { transform: scale(0.97); }
.tr-next { display: none; align-items: center; justify-content: center; gap: 14px; min-width: min(300px, 100%); height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #ecd28f, #b8913c); color: #141217; font: 800 17px/1 var(--mincho); letter-spacing: 0.1em; cursor: pointer; box-shadow: 0 12px 28px -12px rgba(201, 162, 74, 0.85); transition: transform 0.15s; animation: tr-rise 0.35s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.tr-next:hover { transform: translateY(-2px); }
.tr-next kbd { border-color: rgba(20, 18, 23, 0.3); background: rgba(20, 18, 23, 0.08); color: rgba(20, 18, 23, 0.7); }
.tr[data-state="reveal"] .tr-ans { display: none; }
.tr[data-state="reveal"] .tr-next { display: inline-flex; }
.tr[data-state="count"] .tr-ans, .tr[data-state="end"] .tr-ans, .tr[data-state="end"] .tr-next { opacity: 0.4; pointer-events: none; }
@keyframes tr-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── 浮かぶ文字 */
.tr-pops { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.tr-pop { position: absolute; left: 50%; top: 2%; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: rgba(9, 9, 11, 0.84); border: 1px solid rgba(225, 196, 126, 0.45); white-space: nowrap; font: 800 17px/1 var(--mincho); letter-spacing: 0.06em; transform: translateX(-50%); animation: tr-pop 0.95s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; box-shadow: 0 10px 24px -12px #000; }
.tr-pop.tr-ok { color: var(--gold2); }
.tr-pop.tr-ng { color: var(--verm2); border-color: rgba(236, 156, 138, 0.5); }
.tr-pop b { font: italic 700 19px/1 var(--pf); color: #fff3d2; }
.tr-pop em { font: 700 13px/1 var(--jp); font-style: normal; color: rgba(243, 237, 226, 0.85); }
.tr-pop.tr-pmult { top: 12%; gap: 12px; padding: 7px 20px 8px; border-color: rgba(225, 196, 126, 0.8); background: radial-gradient(120% 140% at 50% 0%, rgba(58, 48, 28, 0.95), rgba(10, 10, 12, 0.92)); box-shadow: 0 0 36px -6px rgba(225, 196, 126, 0.75); font: italic 700 30px/1 var(--pf); color: var(--gold2); text-shadow: 0 0 18px rgba(225, 196, 126, 0.75); animation: tr-mult 1.15s cubic-bezier(0.2, 1.3, 0.4, 1) forwards; }
.tr-pop.tr-pmult small { font: 600 11px/1 var(--pp); letter-spacing: 0.34em; text-transform: uppercase; color: var(--paper); text-shadow: none; }
.tr-pop.tr-phint { top: auto; bottom: 3%; padding: 9px 18px; font: 700 13.5px/1 var(--jp); color: var(--paper); animation: tr-pop 2.8s ease forwards; }
@keyframes tr-pop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.85); } 14% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 24% { transform: translate(-50%, 0) scale(1); } 76% { opacity: 1; transform: translate(-50%, -2px); } 100% { opacity: 0; transform: translate(-50%, -16px); } }
@keyframes tr-mult { 0% { opacity: 0; transform: translateX(-50%) scale(1.7); } 22% { opacity: 1; transform: translateX(-50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(0.9) translateY(-14px); } }

.tr-big { position: absolute; inset: 0; z-index: 18; display: grid; place-items: center; pointer-events: none; }
.tr-big span { font: italic 700 clamp(84px, 15vw, 150px)/1 var(--pf); color: var(--gold2); text-shadow: 0 0 44px rgba(225, 196, 126, 0.65); animation: tr-big 0.72s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
.tr-big span.tr-go { font-size: clamp(54px, 10vw, 108px); letter-spacing: 0.08em; text-transform: uppercase; }
.tr-big span.tr-up { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0.5em 0.8em; font-size: clamp(44px, 8.5vw, 88px); letter-spacing: 0.04em; background: radial-gradient(closest-side, rgba(8, 8, 10, 0.88), rgba(8, 8, 10, 0)); animation: tr-up 1.5s cubic-bezier(0.2, 1.2, 0.4, 1) forwards; }
.tr-big span.tr-up small { font: 800 15px/1 var(--mincho); font-style: normal; letter-spacing: 0.3em; color: var(--paper); text-shadow: none; }
@keyframes tr-big { 0% { opacity: 0; transform: scale(1.7); } 25% { opacity: 1; transform: scale(1); } 72% { opacity: 1; } 100% { opacity: 0; transform: scale(0.82); } }
@keyframes tr-up { 0% { opacity: 0; transform: scale(1.5); } 16% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }

/* ── 重ねる画面（タイトル・一時停止・結果） */
.tr-ov { z-index: 20; }
.tr-ov[hidden] { display: none !important; }
.tr-title { gap: 12px; overflow-y: auto; justify-content: safe center; background: radial-gradient(circle at 50% 34%, rgba(32, 28, 38, 0.55), rgba(8, 8, 10, 0.9) 78%); }
.tr-title h2 small { margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.24em; font-size: 12.5px; }
.tr p.tr-lead { max-width: 33em; font-size: 14px; }
.tr-fan { position: relative; flex: none; width: 220px; height: 138px; }
.tr-mini {
  position: absolute; left: 50%; top: 4px; display: grid; place-items: center; width: 84px; height: 118px; margin-left: -42px; border-radius: 9px; border: 1px solid transparent;
  background: radial-gradient(130% 85% at 50% 0%, #26222d, #111014 70%) padding-box, linear-gradient(140deg, #f7e5ad, #a9832f 30%, #ebd18f 55%, #86661f) border-box;
  box-shadow: 0 18px 30px -14px #000, 0 0 30px -16px rgba(201, 162, 74, 0.6);
}
.tr-mini::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(201, 162, 74, 0.32); border-radius: 6px; }
.tr-mini.tr-m1 { transform: translateX(-60px) translateY(10px) rotate(-15deg); animation: tr-f1 5s ease-in-out infinite; }
.tr-mini.tr-m3 { transform: translateX(60px) translateY(10px) rotate(15deg); animation: tr-f3 5s ease-in-out infinite; }
.tr-mini.tr-m2 { z-index: 2; animation: tr-f2 5s ease-in-out infinite; }
.tr-mini em { padding: 5px 8px; border: 2px double currentColor; border-radius: 6px; font: 800 14px/1 var(--mincho); font-style: normal; letter-spacing: 0.08em; }
.tr-mini.tr-m1 em { color: var(--verm2); transform: rotate(10deg); }
.tr-mini.tr-m3 em { color: var(--gold2); transform: rotate(-10deg); }
.tr-mini.tr-m2 { align-content: center; gap: 2px; }
.tr-mini.tr-m2 i { height: 30px; font: italic 600 60px/1 var(--pf); color: var(--gold); }
.tr-mini.tr-m2 small { font: italic 600 10px/1 var(--pf); letter-spacing: 0.06em; color: var(--gold2); }
@keyframes tr-f1 { 50% { transform: translateX(-64px) translateY(6px) rotate(-17deg); } }
@keyframes tr-f2 { 50% { transform: translateY(-5px); } }
@keyframes tr-f3 { 50% { transform: translateX(64px) translateY(6px) rotate(17deg); } }
.tr-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: 14px; margin-top: 4px; }
.tr-mode {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 16px 44px 14px 18px; text-align: left; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(225, 196, 126, 0.42); background: linear-gradient(160deg, rgba(38, 34, 44, 0.92), rgba(14, 13, 17, 0.94));
  box-shadow: inset 0 0 0 4px rgba(10, 10, 12, 0.6), inset 0 0 0 5px rgba(201, 162, 74, 0.16); transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.tr-mode:hover { transform: translateY(-3px); border-color: rgba(225, 196, 126, 0.9); box-shadow: inset 0 0 0 4px rgba(10, 10, 12, 0.6), inset 0 0 0 5px rgba(201, 162, 74, 0.3), 0 18px 34px -18px rgba(201, 162, 74, 0.6); }
.tr-mode::after { content: '→'; position: absolute; right: 16px; top: 15px; font: 400 20px/1 var(--pf); color: var(--gold2); transition: transform 0.22s; }
.tr-mode:hover::after { transform: translateX(3px); }
.tr-mode > i { font: italic 600 12px/1 var(--pf); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.tr-mode > b { font: 800 19px/1.35 var(--mincho); color: var(--paper); }
.tr-mode > span { font-size: 12.5px; line-height: 1.7; color: rgba(243, 237, 226, 0.7); }
.tr-mode > em { margin-top: 4px; font: 600 11.5px/1.4 var(--jp); font-style: normal; color: var(--gold2); }
.tr-mode > em b { margin-left: 8px; font: 700 11.5px/1 var(--jp); color: rgba(243, 237, 226, 0.7); }
.tr-mode > em b span { margin-right: 3px; font: italic 700 14px/1 var(--pf); color: var(--paper); }
.tr-mode > em b span.tr-none { margin: 0; font: 600 11.5px/1 var(--jp); color: rgba(243, 237, 226, 0.5); }
.tr p.tr-keys { font-size: 12px; opacity: 0.72; }
.tr-keys kbd { margin: 0 3px 0 6px; }
.tr-keys .tr-tc { display: none; }
.tr p.tr-life { font-size: 12px; color: rgba(243, 237, 226, 0.6); }
.tr-life:empty { display: none; }
.tr-title.tr-tight .tr-fan { display: none; }
.tr-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tr-pause { background: radial-gradient(circle at 50% 40%, rgba(28, 26, 34, 0.96), rgba(8, 8, 10, 0.99)); }

/* 結果 */
.tr-result { display: block; padding: 0; overflow-y: auto; overscroll-behavior: contain; text-align: left; background: radial-gradient(120% 60% at 50% 0%, rgba(36, 32, 42, 0.95), rgba(8, 8, 10, 0.97) 70%); scrollbar-width: thin; scrollbar-color: rgba(201, 162, 74, 0.5) transparent; }
.tr-res { max-width: 740px; margin: 0 auto; padding: 30px 22px 44px; }
.tr p.tr-res-k { max-width: none; text-align: center; font: 600 11px/1 var(--pp); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); opacity: 1; }
.tr-res-k span { display: block; margin-top: 8px; font: 800 14px/1.4 var(--mincho); letter-spacing: 0.12em; text-transform: none; color: var(--paper); }
.tr-res-top { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 20px 0 22px; }
.tr-rank {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 118px; height: 118px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--gold); background: radial-gradient(circle at 35% 28%, #3d3424, #121015 70%);
  box-shadow: inset 0 0 0 6px #0e0d11, inset 0 0 0 7px rgba(225, 196, 126, 0.55), 0 0 50px -12px rgba(225, 196, 126, 0.6);
  animation: tr-rank 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.tr-rank b { font: italic 700 64px/0.9 var(--pf); color: var(--gold2); text-shadow: 0 0 26px rgba(225, 196, 126, 0.6); }
.tr-rank i { font: 600 9px/1 var(--pp); font-style: normal; letter-spacing: 0.32em; padding-left: 0.32em; text-transform: uppercase; color: var(--gold); }
.tr-rank::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 42%, rgba(255, 240, 200, 0.32) 50%, transparent 58%); transform: translateX(-60%); animation: tr-shine 3.4s 0.8s ease-in-out infinite; }
.tr-rank[data-rk="S"] { box-shadow: inset 0 0 0 6px #0e0d11, inset 0 0 0 7px rgba(225, 196, 126, 0.8), 0 0 80px -6px rgba(225, 196, 126, 0.85); }
.tr-rank[data-rk="C"] b { color: rgba(243, 237, 226, 0.85); }
@keyframes tr-rank { from { opacity: 0; transform: scale(0.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes tr-shine { 0% { transform: translateX(-60%); } 40%, 100% { transform: translateX(60%); } }
.tr .tr-res-t h2 { font: 800 clamp(22px, 3.4vw, 30px)/1.3 var(--mincho); letter-spacing: 0.04em; }
.tr .tr-res-t p { margin-top: 6px; max-width: 28em; text-wrap: pretty; font-size: 14px; line-height: 1.75; color: rgba(243, 237, 226, 0.8); opacity: 1; }
.tr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tr-stats > div { position: relative; padding: 13px 8px 11px; border-radius: 12px; border: 1px solid rgba(225, 196, 126, 0.22); background: rgba(255, 255, 255, 0.025); text-align: center; }
.tr-stats span { display: block; font: 700 11.5px/1.3 var(--jp); letter-spacing: 0.04em; color: rgba(243, 237, 226, 0.6); }
.tr-stats b { display: block; margin-top: 6px; font: 600 27px/1.05 var(--pf); font-variant-numeric: lining-nums; color: var(--paper); }
.tr-stats b small { margin-left: 3px; font: 700 12px/1 var(--jp); color: rgba(243, 237, 226, 0.6); }
.tr-stats em { display: block; margin-top: 5px; font: 600 11px/1 var(--jp); font-style: normal; color: rgba(243, 237, 226, 0.5); }
.tr-stats em.tr-new { position: absolute; top: -9px; left: 50%; margin: 0; padding: 4px 9px; border-radius: 999px; background: linear-gradient(180deg, #ecd28f, #b8913c); color: #141217; font: 700 9px/1 var(--pp); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); }
.tr-stats .tr-isnew { border-color: rgba(225, 196, 126, 0.75); box-shadow: 0 0 26px -10px rgba(225, 196, 126, 0.85); }
.tr-res-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 6px; }
.tr-res-btns .gm-btn { min-width: 132px; }
.tr-res-h { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(225, 196, 126, 0.3); font: 800 18px/1.4 var(--mincho); }
.tr-res-h small { font: 600 12px/1 var(--jp); color: rgba(243, 237, 226, 0.55); }
.tr-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tr-list > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 16px 13px 12px; border-radius: 12px; border: 1px solid rgba(243, 237, 226, 0.08); background: rgba(255, 255, 255, 0.03); animation: tr-rise 0.5s calc(var(--k, 0) * 45ms) both; }
.tr-list > li.tr-ok { box-shadow: inset 2px 0 0 rgba(225, 196, 126, 0.75); }
.tr-list > li.tr-ng { box-shadow: inset 2px 0 0 rgba(236, 156, 138, 0.7); }
.tr-li-mk svg { display: block; width: 28px; height: 28px; padding: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.tr-list > li.tr-ok .tr-li-mk { color: var(--gold2); }
.tr-list > li.tr-ng .tr-li-mk { color: var(--verm2); }
.tr p.tr-li-en { max-width: none; opacity: 1; font: italic 600 16px/1.45 var(--pf); color: #f8f2e6; }
.tr p.tr-li-ja { max-width: none; opacity: 1; margin-top: 3px; font: 600 12.5px/1.7 var(--mincho); color: rgba(243, 237, 226, 0.66); }
.tr p.tr-li-w { max-width: none; opacity: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; font: 800 13px/1.4 var(--mincho); color: var(--gold2); }
.tr-tag { padding: 2px 9px; border-radius: 6px; border: 1px solid currentColor; font: 700 11px/1.5 var(--jp); }
.tr-tag.tr-real { color: var(--gold2); }
.tr-tag.tr-fake { color: var(--verm2); }
.tr-li-you { font: 600 11px/1.4 var(--jp); color: rgba(243, 237, 226, 0.5); }
.tr p.tr-li-d { max-width: none; opacity: 1; margin-top: 8px; font-size: 13px; line-height: 1.85; color: rgba(243, 237, 226, 0.82); }
.tr-li-d button { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--gold2); font: 700 12px/1 var(--jp); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tr p.tr-li-a { max-width: none; opacity: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.tr p.tr-empty { max-width: none; padding: 20px 0; text-align: center; color: rgba(243, 237, 226, 0.6); }
.tr p.tr-res-more { max-width: none; opacity: 1; margin-top: 24px; text-align: center; }
.tr-res-more a { font: 700 13.5px/1.6 var(--jp); text-underline-offset: 4px; }

/* ── 画面の大きさ */
@media (max-width: 720px) {
  .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
}
@media (max-width: 560px) {
  .tr-hud { padding: 10px 12px 2px; min-height: 48px; gap: 6px; }
  .tr-hc { gap: 12px; }
  .tr-ib { width: 34px; height: 34px; }
  .tr-num { font-size: 19px; }
  .tr-time { padding: 2px 14px 0; }
  .tr-ctrl { min-height: 80px; padding: 6px 12px 14px; gap: 12px; }
  .tr-ans { height: 56px; gap: 10px; padding: 0 12px; }
  .tr-ans b { font-size: 18px; }
  .tr-modes { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 380px; gap: 10px; }
  .tr-mode { padding: 13px 40px 12px 16px; gap: 3px; }
  .tr-mode > b { font-size: 17.5px; }
  .tr-mode > span { font-size: 12px; line-height: 1.6; }
  .tr-title { gap: 10px; padding: 18px 16px; }
  .tr-fan { height: 132px; transform: scale(0.86); margin: -10px 0 -8px; }
  .tr p.tr-lead { font-size: 13.5px; line-height: 1.75; }
  .tr-res { padding: 24px 16px 36px; }
  .tr-res-top { gap: 16px; margin: 16px 0 18px; }
  .tr-rank { width: 96px; height: 96px; }
  .tr-rank b { font-size: 52px; }
  .tr .tr-res-t p { font-size: 13px; }
  .tr-stats b { font-size: 24px; }
  .tr-list > li { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px 12px 11px 10px; }
  .tr-li-mk svg { width: 25px; height: 25px; padding: 5px; }
  .tr p.tr-li-en { font-size: 15px; }
  .tr-res-btns .gm-btn { min-width: 0; flex: 1 1 40%; padding: 12px 14px; }
  .tr-pop { font-size: 15px; padding: 7px 14px; }
  .tr-pop em { font-size: 12px; }
}
@media (hover: none), (pointer: coarse) {
  .tr kbd, .tr-keys .tr-kb { display: none; }
  .tr-keys .tr-tc { display: inline; }
  .tr-mode:hover, .tr-ans:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-mini, .tr-rank, .tr-rank::after, .tr-list > li, .tr-next { animation: none !important; }
  .tr.tr-low .tr-bar i { animation: none; }
  .tr-stack { transition: none; }
}
