/* trivia-rush · stage look: dark game-show card for play, rank ladder, coloured answer keys */
.tr-play { background: linear-gradient(180deg, #1B1033 0%, #2A1240 55%, #3B1030 100%); border-color: #DC2626; color: #fff; box-shadow: 0 5px 0 #7F1D1D; cursor: default; }
.tr-play .tr-bar { height: 10px; background: #ffffff22; }
.tr-play .tr-q { color: #fff; font-size: 1.2rem; }
.tr-play .tr-cat { background: #ffffff1f; color: #FDE68A; }
.tr-play .tr-cat[data-d="3"] { background: #C4B5FD33; color: #DDD6FE; }
.tr-play .tr-combo { color: #FCD34D; }
.tr-play .tr-combo[data-m="3"], .tr-play .tr-combo[data-m="4"] { color: #FCA5A5; }
.tr-play .tr-opt { background: #fff; border-color: #ffffff; color: #1e293b; box-shadow: 0 3px 0 #00000055; transition: transform .08s; }
.tr-play .tr-opt:nth-child(1) .tr-key { background: #FEE2E2; color: #B91C1C; }
.tr-play .tr-opt:nth-child(2) .tr-key { background: #DBEAFE; color: #1D4ED8; }
.tr-play .tr-opt:nth-child(3) .tr-key { background: #FEF3C7; color: #B45309; }
.tr-play .tr-opt:nth-child(4) .tr-key { background: #D1FAE5; color: #047857; }
.tr-play .tr-opt:disabled { opacity: .5; }
.tr-play .tr-opt.is-right { background: #10B981; border-color: #34D399; color: #fff; opacity: 1; }
.tr-play .tr-opt.is-wrong { background: #FEE2E2; border-color: #F87171; color: #991B1B; opacity: 1; }
.tr-play .tr-opt.is-right .tr-key { background: #ffffff44; color: #fff; }
.tr-play .tr-opt.is-wrong .tr-key { background: #FCA5A5; color: #7F1D1D; }
.tr-play .tr-pop.is-good { color: #6EE7B7; }
.tr-play .tr-pop.is-bad { color: #FCA5A5; }
.tr-play .tr-opts { padding-bottom: env(safe-area-inset-bottom, 0); }
.tr-rank { margin: 0 0 .7rem; text-align: left; }
.tr-rank-t { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: #475569; margin-bottom: .3rem; }
.tr-rank-t b { color: #B91C1C; font-weight: 800; }
.tr-rank-bar { display: block; height: 8px; border-radius: 99px; background: #DC262622; overflow: hidden; }
.tr-rank-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #DC2626, #F59E0B); }
.tr-xp { font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: #64748b; margin: .2rem 0 .5rem; }
.tr-over .tr-new { margin: .2rem 0; }
@media (max-height: 700px) { .tr-play .tr-q { min-height: 2.6em; font-size: 1.1rem; } .tr-play .tr-opt { min-height: 48px; } }
@media (prefers-reduced-motion: reduce) { .tr-play .tr-opt { transition: none; } }

/* wave 3 finish: lit backdrop, glossy answer keys, answer feedback pulses. Static gradients only, no per-frame work. */
.tr-play { background-image: radial-gradient(120% 70% at 50% -10%, #ffffff26 0%, #ffffff00 55%), radial-gradient(90% 60% at 100% 110%, #DC262655 0%, #DC262600 60%), linear-gradient(180deg, #1B1033 0%, #2A1240 55%, #3B1030 100%); }
.tr-play .tr-q { text-shadow: 0 2px 8px #00000066; }
.tr-play .tr-opt { background-image: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%); transition: transform .08s, box-shadow .12s; }
.tr-play .tr-opt:active:not(:disabled) { box-shadow: 0 1px 0 #00000055; }
.tr-play .tr-key { box-shadow: inset 0 -2px 0 #00000014; }
.tr-play .tr-opt.is-right { background-image: linear-gradient(180deg, #34D399 0%, #10B981 100%); animation: trRight .35s ease-out; box-shadow: 0 3px 0 #047857, 0 0 18px #34D39966; }
.tr-play .tr-opt.is-wrong { animation: trWrong .3s ease-out; }
.tr-fill { box-shadow: 0 0 10px #F59E0B88; }
.tr-go { background-image: linear-gradient(180deg, #ffffff30, #ffffff00 55%); }
.tr-final { text-shadow: 0 3px 0 #DC262622; }
@keyframes trRight { 40% { transform: scale(1.03); } }
@keyframes trWrong { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .tr-play .tr-opt.is-right, .tr-play .tr-opt.is-wrong { animation: none; } }
