/* Ward 13 — UI styles */
:root {
  --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
  --ink: #e6dfcc; --dim: #9c968a; --red: #b3150f; --serif: Georgia, 'Times New Roman', Times, serif; --mono: 'Courier New', Courier, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--ink); overflow: hidden; overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; font-family: var(--sans); }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* touch zone */
#touchZone { position: fixed; inset: 0; z-index: 2; display: none; }
body.touch #touchZone { display: block; }
#stick { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 2px solid rgba(230,223,204,.25); background: radial-gradient(circle, rgba(255,255,255,.06), rgba(0,0,0,.15)); opacity: 0; transition: opacity .15s; pointer-events: none; }
#stick.on { opacity: 1; }
#knob { position: absolute; left: 42px; top: 42px; width: 56px; height: 56px; border-radius: 50%; background: rgba(230,223,204,.35); border: 1px solid rgba(255,255,255,.4); }

/* HUD */
#hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#hudTL { position: absolute; left: calc(14px + var(--sal)); top: calc(10px + var(--sat)); max-width: 46vw; }
#objective { font-family: var(--serif); font-size: 14px; color: var(--ink); text-shadow: 0 1px 3px #000; letter-spacing: .02em; opacity: .9; }
#objective.pulse { animation: pulse 2.2s ease; }
@keyframes pulse { 0% { color: #fff; text-shadow: 0 0 12px #fff8; } 100% { color: var(--ink); } }
.bars { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.bar { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .18em; color: var(--dim); transition: opacity .6s; }
.bar b { width: 46px; font-weight: 600; }
.bar .track { width: 110px; height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
#batFill { height: 100%; width: 100%; background: #e9d9a0; transition: width .3s; }
#bat.low #batFill { background: var(--red); animation: blink .6s infinite; }
#stamFill { height: 100%; width: 100%; background: #9fb6c8; }
#stam.faded { opacity: .35; }
@keyframes blink { 50% { opacity: .3; } }
#fuses { position: absolute; top: calc(12px + var(--sat)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; }
#fuses i { width: 10px; height: 22px; border-radius: 3px; border: 1px solid rgba(230,223,204,.35); background: rgba(0,0,0,.3); }
#fuses i.have { background: #ff8a30; box-shadow: 0 0 10px #ff7a20; border-color: #ffb070; }
#fuses i.in { background: #7dff9a; box-shadow: 0 0 8px #40ff70; border-color: #b0ffc0; }
#fuses span { font-size: 9px; letter-spacing: .25em; color: var(--dim); margin-left: 4px; }
#btnPause { position: absolute; top: calc(8px + var(--sat)); right: calc(12px + var(--sar)); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.35); border: 1px solid rgba(230,223,204,.25); font-weight: 700; font-size: 13px; pointer-events: auto; letter-spacing: -1px; }
#prompt { position: absolute; left: 50%; bottom: calc(26% + var(--sab)); transform: translateX(-50%); font-family: var(--serif); font-size: 16px; padding: 6px 14px; background: rgba(0,0,0,.45); border: 1px solid rgba(230,223,204,.2); border-radius: 3px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
#prompt.on { opacity: 1; }
#toast { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-family: var(--serif); font-style: italic; font-size: 17px; text-align: center; max-width: 70vw; text-shadow: 0 2px 6px #000, 0 0 2px #000; opacity: 0; transition: opacity .4s; }
#toast.on { opacity: 1; }
#fps { position: absolute; right: calc(60px + var(--sar)); top: calc(18px + var(--sat)); font-size: 9px; color: #fff4; font-family: var(--mono); }
#lockHint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 40px); font-size: 12px; color: var(--dim); letter-spacing: .1em; }

/* touch buttons */
#controls { position: fixed; right: calc(14px + var(--sar)); bottom: calc(14px + var(--sab)); z-index: 4; width: 160px; height: 132px; pointer-events: none; }
.cbtn { position: absolute; pointer-events: auto; touch-action: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(10,10,10,.45); border: 1.5px solid rgba(230,223,204,.35); font-size: 9px; font-weight: 700; letter-spacing: .08em; color: rgba(230,223,204,.85); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.cbtn:active { transform: scale(.93); background: rgba(80,80,80,.5); }
.cbtn.big { width: 68px; height: 68px; right: 0; bottom: 0; font-size: 12px; }
#btnUse.ready { border-color: #ffd890; color: #fff; box-shadow: 0 0 16px rgba(255,210,140,.45); }
#btnRun { width: 58px; height: 58px; right: 78px; bottom: 0; font-size: 10px; }
#btnRun.on { border-color: #9fd0ff; color: #fff; box-shadow: 0 0 14px rgba(140,200,255,.45); }
#btnFlash { right: 4px; bottom: 80px; }
#btnFlash.on { border-color: #ffe9a8; }
#btnHide { right: 58px; bottom: 74px; }
#btnCrouch { right: 112px; bottom: 74px; }
#btnCrouch.on { border-color: #ffd890; color: #fff; box-shadow: 0 0 14px rgba(255,210,140,.4); }
#btnJump { right: 146px; bottom: 20px; }
#btnHide.ready { border-color: #b0ffb8; color: #fff; box-shadow: 0 0 14px rgba(150,255,170,.35); }

/* cutscene */
#subs { position: fixed; left: 50%; bottom: calc(9% + var(--sab)); transform: translateX(-50%); z-index: 9; max-width: min(78vw, 820px); text-align: center; font-family: var(--serif); font-size: clamp(14px, 2.4vw, 21px); line-height: 1.4; color: #f0ead8; text-shadow: 0 2px 4px #000, 0 0 2px #000; opacity: 0; transition: opacity .35s; pointer-events: none; }
#subs.on { opacity: 1; }
#subs .who { display: block; font-family: var(--sans); font-size: .55em; letter-spacing: .35em; color: #c9b88a; margin-bottom: 2px; }
#titleCard { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
#titleCard.on { opacity: 1; }
#titleCard h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 13vw, 150px); letter-spacing: .18em; color: #e8e1cf; text-shadow: 0 0 30px rgba(255,40,30,.35), 3px 0 rgba(255,0,0,.35), -3px 0 rgba(0,180,255,.25); animation: flicker 3.2s steps(1) infinite; }
#titleCard p { font-family: var(--serif); font-style: italic; color: var(--dim); font-size: clamp(12px, 1.8vw, 17px); letter-spacing: .08em; }
@keyframes flicker { 0%,7%,9%,40%,42%,44%,70%,100% { opacity: 1; } 8%,41%,43% { opacity: .15; } 71% { opacity: .4; transform: translateX(3px); } 72% { transform: none; } }
#cutTap { position: fixed; inset: 0; z-index: 6; }
#skipBtn { position: fixed; right: calc(18px + var(--sar)); top: calc(14px + var(--sat)); z-index: 10; font-size: 12px; letter-spacing: .15em; color: rgba(230,223,204,.6); padding: 8px 12px; border: 1px solid rgba(230,223,204,.2); border-radius: 20px; background: rgba(0,0,0,.3); }

/* title */
#title { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; background: #000; overflow: hidden; }
#title .bgBlur { position: absolute; inset: -40px; background: url(../img/title.jpg) center/cover; filter: blur(24px) brightness(.45) saturate(.8); }
#title .art { position: absolute; left: 0; top: 0; bottom: 0; width: 58vw; background: url(../img/title.jpg) center 46%/cover; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { filter: brightness(1.12); transform: scale(1.02); } }
#title .menu { position: relative; margin-left: auto; margin-right: calc(6vw + var(--sar)); width: min(360px, 40vw); display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.logo { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 8vw, 92px); letter-spacing: .12em; line-height: 1; color: #ece4cf; text-shadow: 0 0 24px rgba(255,30,20,.3), 2px 0 rgba(255,0,0,.4), -2px 0 rgba(0,160,255,.2); animation: flicker 5s steps(1) infinite; }
.logo span { display: block; font-size: .62em; color: #c41a12; letter-spacing: .3em; margin-top: 4px; text-shadow: 0 0 18px rgba(255,0,0,.5); }
.tag { font-family: var(--serif); font-style: italic; color: var(--dim); font-size: 14px; margin: 6px 0 18px; line-height: 1.5; }
.mbtn { display: block; width: 100%; padding: 13px 18px; margin: 6px 0; font-family: var(--serif); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: #f4ecd8; background: rgba(120,14,10,.75); border: 1px solid rgba(255,120,100,.35); border-radius: 2px; box-shadow: 0 0 24px rgba(160,0,0,.3); }
.mbtn:active { transform: scale(.98); }
.mbtn.ghost { background: rgba(0,0,0,.35); border-color: rgba(230,223,204,.25); box-shadow: none; }
.mbtn.dark { background: #2a2620; color: #eee4cc; border-color: #000; box-shadow: none; }
.mbtn.disabled { opacity: .45; pointer-events: none; }
#loadMsg { min-height: 1.2em; font-size: 11px; color: var(--dim); letter-spacing: .1em; margin: 8px 0 0; font-style: italic; }
.small { font-size: 10px; color: #6f6a60; letter-spacing: .2em; text-transform: uppercase; margin-top: 10px; }
#a2hs { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--sab)); display: flex; align-items: center; gap: 12px; max-width: 88vw; padding: 9px 12px 9px 14px; font-size: 12px; line-height: 1.35; color: #ddd5c0; background: rgba(20,18,16,.9); border: 1px solid rgba(230,223,204,.2); border-radius: 10px; }
#a2hs button { padding: 6px 12px; border: 1px solid rgba(230,223,204,.3); border-radius: 6px; font-size: 12px; }

/* panels */
.panel { position: fixed; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.72); padding: calc(10px + var(--sat)) calc(10px + var(--sar)) calc(10px + var(--sab)) calc(10px + var(--sal)); }
.card { width: min(440px, 86vw); max-height: 92vh; overflow: auto; padding: 18px 22px; background: #0e0d0c; border: 1px solid rgba(230,223,204,.18); }
.card h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; letter-spacing: .15em; text-transform: uppercase; }
.card label { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); margin: 14px 0 6px; }
.card input[type=range] { width: 100%; accent-color: #b3150f; touch-action: auto; }
.seg { display: flex; border: 1px solid rgba(230,223,204,.2); }
.seg button { flex: 1; padding: 9px 0; font-size: 13px; letter-spacing: .08em; }
.seg button.sel { background: #7a100b; color: #fff; }
.hint { font-size: 11px; color: #77716a; margin: 6px 0 0; line-height: 1.4; }
.red { color: #d0261c; }
#death .card { text-align: center; border-color: rgba(200,20,10,.35); }
#death p { font-family: var(--serif); font-style: italic; color: var(--dim); }
#note .paper { position: relative; width: min(540px, 82vw); max-height: 90vh; display: flex; flex-direction: column; padding: 20px 26px 16px; color: #23201a; background: #d9cfb4; background-image: radial-gradient(circle at 80% 20%, rgba(120,80,30,.25), transparent 35%), radial-gradient(circle at 15% 85%, rgba(90,60,20,.22), transparent 30%), repeating-linear-gradient(0deg, transparent 0 25px, rgba(60,70,120,.12) 25px 26px); box-shadow: 0 10px 40px #000, inset 0 0 60px rgba(80,50,20,.35); transform: rotate(-.6deg); font-family: var(--mono); }
#noteCount { position: absolute; right: 18px; top: 10px; font-size: 10px; letter-spacing: .15em; color: #6a5f4a; }
#noteTitle { margin: 4px 0 2px; font-family: var(--serif); font-size: 19px; }
#noteDate { font-size: 11px; color: #5d5240; margin-bottom: 10px; font-style: italic; }
#noteBody { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; flex: 1; min-height: 0; padding-right: 6px; }
#noteClose { margin-top: 10px; font-size: 14px; padding: 9px; }
#ending { background: #000; }
.endWrap { width: min(640px, 86vw); text-align: center; font-family: var(--serif); max-height: 94vh; overflow-y: auto; }
.endWrap h2 { font-weight: 400; letter-spacing: .4em; color: #8a847a; font-size: 14px; margin: 0 0 18px; }
#endBody p { opacity: 0; animation: rise 1.6s ease forwards; font-size: clamp(14px, 2.2vw, 19px); line-height: 1.55; color: #ddd5c2; margin: 0 0 12px; }
#endBody p.badge { font-family: var(--sans); letter-spacing: .22em; color: #e9e0c8; font-size: clamp(13px, 2.1vw, 18px); padding: 10px; border: 1px solid rgba(233,224,200,.35); display: inline-block; background: rgba(40,60,100,.18); }
#endStats { opacity: 0; animation: rise 1.6s ease forwards; font-family: var(--mono); font-size: 11px; color: #6f6a62; letter-spacing: .12em; }
#endBtns { opacity: 0; animation: rise 1.6s ease forwards; display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
#endBtns .mbtn { width: auto; min-width: 150px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* jumpscare overlay + fade */
#jumpscare { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(160,0,0,.55) 80%, rgba(40,0,0,.95)); }
#jumpscare.on { animation: js .09s steps(2) infinite; }
@keyframes js { 0% { opacity: 1; } 50% { opacity: .55; } }
#fade { position: fixed; inset: 0; z-index: 8; background: #000; opacity: 1; pointer-events: none; }

/* portrait overlay (touch devices) */
#rotate { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; background: #050505; color: var(--ink); font-family: var(--serif); font-size: 18px; text-align: center; padding: 30px; }
#rotate .phone { width: 46px; height: 80px; border: 3px solid var(--ink); border-radius: 9px; margin-bottom: 24px; animation: rot 2.2s ease-in-out infinite; }
@keyframes rot { 0%, 25% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) { body.touch #rotate { display: flex; } }

@media (max-height: 430px) {
  .logo { font-size: 52px; } .tag { font-size: 12px; margin: 4px 0 10px; } .mbtn { padding: 10px 14px; font-size: 15px; } .small { display: none; }
}
@media (max-height: 430px) {
  #endBody p { font-size: 14px; margin-bottom: 7px; line-height: 1.45; }
  #endBody p.badge { padding: 6px 10px; font-size: 13px; }
  .endWrap h2 { margin-bottom: 10px; }
  #note .paper { padding: 14px 20px 12px; }
  #noteBody { font-size: 12.5px; }
}

/* v3: crowbar durability, attack button, driving intro */
#crowbarHud .pips { display: flex; gap: 4px; }
#crowbarHud .pips i { width: 14px; height: 6px; border-radius: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(230,223,204,.25); }
#crowbarHud .pips i.on { background: #c08458; border-color: #e0a878; box-shadow: 0 0 6px rgba(200,120,70,.5); }
#btnAttack { right: 112px; bottom: 66px; border-color: rgba(230,140,110,.55); }
#btnAttack:active { background: rgba(150,40,20,.55); }
#driveUI { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
#driveHint { position: absolute; left: 50%; top: calc(58px + var(--sat)); transform: translateX(-50%); font-size: 12px; letter-spacing: .12em; color: var(--ink); background: rgba(0,0,0,.4); padding: 6px 12px; border-radius: 3px; opacity: 0; transition: opacity .8s; white-space: nowrap; }
#driveHint.on { opacity: .85; }
#btnBrake { pointer-events: auto; right: calc(26px + var(--sar)); bottom: calc(26px + var(--sab)); width: 84px; height: 84px; font-size: 12px; }
#btnBrake.on { background: rgba(160,30,20,.55); border-color: #ff8a70; }
/* optional intro film */
#film { position: fixed; inset: 0; z-index: 30; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity .4s; }
#film.out { opacity: 0; pointer-events: none; }
#film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
#film button { position: absolute; font-size: 12px; letter-spacing: .15em; color: rgba(230,223,204,.75); padding: 8px 14px; border: 1px solid rgba(230,223,204,.25); border-radius: 20px; background: rgba(0,0,0,.4); }
#film .filmSkip { right: calc(18px + var(--sar)); top: calc(14px + var(--sat)); }
#film .filmSound { left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); color: #fff; border-color: rgba(255,255,255,.5); }
#film .hidden { display: none; }

#film .filmPlay { left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 16px; color: #fff; border-color: rgba(255,255,255,.6); padding: 14px 26px; }
#film .filmLoad { position: absolute; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; color: rgba(230,223,204,.6); }
#film .filmLoad.hidden { display: none; }

/* tap QTEs */
#qte { position: fixed; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(ellipse at center, rgba(60,0,0,.15) 20%, rgba(70,0,0,.6) 85%); pointer-events: auto; touch-action: none; }
#qteRing { position: relative; width: min(46vh, 210px); height: min(46vh, 210px); transition: transform .06s; }
#qteRing.pulse { transform: scale(1.09); }
#qteRing svg, #breathQ svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.qBg { fill: rgba(0,0,0,.12); stroke: rgba(230,223,204,.18); stroke-width: 5; }
.qFill { fill: none; stroke: #e8d9a8; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; filter: drop-shadow(0 0 8px rgba(255,220,140,.6)); }
.qTime { fill: none; stroke: #c0392b; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 358.1; stroke-dashoffset: 0; }
#qLabel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; letter-spacing: .18em; color: #f1e9d2; text-shadow: 0 0 14px rgba(0,0,0,.8); }
#qHint { color: #e6dfcc; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; text-align: center; padding: 0 20px; }
#breathQ { position: fixed; z-index: 7; width: 118px; height: 118px; margin: -59px 0 0 -59px; pointer-events: none; animation: bq .25s ease-out; }
#breathQ .qBg { fill: rgba(0,0,0,.55); stroke: rgba(230,223,204,.35); }
#breathQ .qTime { stroke: #e8d9a8; stroke-width: 6; stroke-dasharray: 345.6; filter: drop-shadow(0 0 8px rgba(255,220,140,.5)); }
#bLabel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; letter-spacing: .2em; color: #f1e9d2; }
@keyframes bq { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- objectives, inventory, waypoint, floor cards (v4) ---- */
#objective { font-size: 15px; font-weight: 600; opacity: 1; pointer-events: auto; cursor: pointer; }
#objHint { font-family: var(--serif); font-size: 11.5px; font-style: italic; color: var(--dim); text-shadow: 0 1px 3px #000; margin-top: 2px; max-width: 44vw; }
#objList { margin-top: 6px; padding: 6px 8px; background: rgba(0,0,0,.5); border: 1px solid rgba(230,223,204,.16); border-radius: 3px; font-family: var(--serif); font-size: 12px; line-height: 1.55; max-width: 44vw; pointer-events: none; }
#objList div.done { color: #7dff9a; text-decoration: line-through; opacity: .6; }
#objList div.cur { color: #ffd890; }
#objList div.todo { color: var(--dim); }
#inv { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
#inv span { font-family: var(--serif); font-size: 11px; padding: 2px 7px; border-radius: 10px; border: 1px solid rgba(230,223,204,.3); background: rgba(0,0,0,.45); color: var(--ink); }
#inv span b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: -0.5px; }
#wp { position: absolute; left: 50%; top: calc(46px + var(--sat)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; pointer-events: none; text-shadow: 0 1px 3px #000; }
#wp i { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 18px solid #ffd890; filter: drop-shadow(0 0 5px rgba(255,200,120,.6)); transition: transform .08s linear; }
#wp span { font-family: var(--serif); font-size: 12px; color: #ffd890; }
#floorCard { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 1.4s; }
#floorCard.on { opacity: 1; }
#floorCard h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 8vw, 90px); letter-spacing: .22em; color: #e8e1cf; text-shadow: 0 0 26px rgba(255,40,30,.35); }
#floorCard p { font-family: var(--serif); font-style: italic; color: var(--dim); font-size: clamp(12px, 1.8vw, 17px); letter-spacing: .08em; margin-top: 8px; text-align: center; max-width: 80vw; }
#rideNum { position: fixed; left: 50%; top: 14%; transform: translateX(-50%); z-index: 8; font-family: var(--serif); font-size: clamp(30px, 7vw, 64px); letter-spacing: .3em; color: #ff6a50; text-shadow: 0 0 18px rgba(255,60,40,.7); pointer-events: none; }
#btnFlare { right: 6px; bottom: 80px; border-color: rgba(255,150,70,.6); color: #ffb070; }
#btnFlare.ready { box-shadow: 0 0 14px rgba(255,140,60,.45); color: #fff; }

#settings { z-index: 13; }
#pause .card { min-width: min(86vw, 320px); }

#game { cursor: none; }
body.locked, body.locked * { cursor: none !important; }

#hpBar .track{width:140px;height:6px}#hpFill{height:100%;width:100%;background:#b8322c;transition:width .25s}#hpBar.low #hpFill{animation:blink .6s infinite}#hpBar.hit b{color:#ff5a4a}
