html,body,button,canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.replay-nav{position:fixed;top:max(8px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));z-index:50;display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}
.replay-nav a,.replay-nav select,.replay-nav button{pointer-events:auto}
.replay-back{display:flex;align-items:center;min-height:44px;padding:0 10px;border:1px solid #b18a5066;border-radius:8px;background:#14151ccc;color:#f9e5ba;text-decoration:none;font:bold 12px system-ui}
.replay-actions{display:flex;align-items:center;gap:8px}.language-picker select{height:44px;min-width:54px;border:1px solid #b18a50;border-radius:8px;background:#14151ce8;color:#f9e5ba;font:600 12px system-ui}
.replay-nav .tools{gap:6px}.replay-nav .tools button{width:44px;height:44px;font-size:22px}
.fear button{width:44px;height:44px;min-width:44px}
header{top:max(62px,calc(env(safe-area-inset-top) + 54px));gap:14px}.level{min-width:0;max-width:60%;font-size:13px}.level>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.level small{letter-spacing:1px}.fear{top:122px}
.panel{padding-top:max(76px,env(safe-area-inset-top));align-items:safe center}.card{max-height:100%;overflow:auto;padding:3px}.eyebrow>.tagline{color:inherit}.primary{min-height:48px}
@media(max-height:480px){.replay-nav{top:max(4px,env(safe-area-inset-top))}.replay-nav .tools button{width:40px;height:40px;min-width:40px}.language-picker select{height:40px;min-width:48px}.replay-back{min-height:40px}header{top:50px}.fear{top:92px}.level{font-size:11px;max-width:65%}.level small{letter-spacing:.5px}.panel{padding-top:58px;padding-bottom:12px}.card h1{font-size:44px}#instructions{margin-block:12px}}
@media(max-width:650px){.replay-back{font-size:0;min-width:40px;justify-content:center;padding:0}.replay-back::before{content:'‹';font:30px system-ui}.replay-nav{left:8px;right:8px}.replay-actions{gap:5px}header{left:12px;right:12px}header .vital{min-width:84px}.vital>span{font-size:22px;letter-spacing:3px}.level{font-size:10px}.level small{font-size:7px}.fear{gap:5px}.fear>span{font-size:7px}.fear button{width:40px;height:40px;min-width:40px}}
html[data-device=tablet] #controls button{width:88px;height:88px;font-size:40px}
@media(orientation:portrait){#rotate{padding-top:76px}#rotate h2{max-width:90%;font-size:25px}#rotate p{max-width:450px}#rotate>span{font-size:68px}}
