* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: #e8e0cf;
  font-family: Georgia, "Times New Roman", serif; user-select: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

#hud { position: fixed; inset: 0; pointer-events: none; }
#bars { position: absolute; left: 32px; top: 28px; width: 340px; }
.bar { position: relative; height: 12px; background: rgba(0,0,0,.55); border: 1px solid rgba(232,224,207,.35); margin-bottom: 7px; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transition: width .08s linear; }
.bar .fill.lag { transition: width .6s ease-in .35s; }
#hpBar .fill { background: #9c2a22; } #hpBar .fill.lag { background: #e3c27a; }
#stBar { height: 8px; width: 80%; } #stBar .fill { background: #5f8a4a; }
#moka { position: absolute; left: 32px; bottom: 34px; width: 64px; height: 64px; border: 1px solid rgba(232,224,207,.4);
  background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-size: 28px; }
#moka #mokaN { position: absolute; right: 5px; bottom: 2px; font-size: 16px; }
#moka.empty { opacity: .45; }
#soldi { position: absolute; right: 36px; bottom: 34px; text-align: right; font-size: 24px; letter-spacing: 1px;
  background: rgba(0,0,0,.45); padding: 6px 14px; border: 1px solid rgba(232,224,207,.25); }
#soldi small { display: block; font-size: 11px; opacity: .7; letter-spacing: 2px; text-transform: uppercase; }
#timer { position: absolute; left: 32px; top: 64px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
#timer .t { width: 120px; height: 4px; background: rgba(0,0,0,.6); }
#timer .fill { height: 100%; background: #e9b44c; width: 100%; }
#prompt { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); padding: 8px 18px;
  background: rgba(0,0,0,.65); border: 1px solid rgba(232,224,207,.35); font-size: 17px; }
#prompt b { color: #e3c27a; }
#lock { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid #f1e6c8; border-radius: 50%;
  box-shadow: 0 0 6px #000; }
#bossBox { position: absolute; left: 50%; bottom: 70px; width: 62%; transform: translateX(-50%); }
#bossName { font-size: 17px; margin-bottom: 5px; text-shadow: 0 0 4px #000; }
#bossBar { height: 10px; } #bossBar .fill { background: #8a1d17; } #bossBar .fill.lag { background: #d8b36a; }
#toast { position: absolute; right: 36px; top: 30px; text-align: right; font-size: 15px; }
#toast div { background: rgba(0,0,0,.6); padding: 6px 12px; margin-bottom: 6px; border-right: 2px solid #e3c27a;
  animation: toast 4s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateX(20px); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(140,10,0,.75));
  opacity: 0; transition: opacity .5s; }

#banner { position: fixed; left: 0; right: 0; top: 40%; text-align: center; pointer-events: none; opacity: 0;
  transition: opacity .9s; }
#banner.show { opacity: 1; }
#banner .txt { font-size: 64px; letter-spacing: 10px; padding: 18px 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.75) 25%, rgba(0,0,0,.75) 75%, transparent); }
#banner.red .txt { color: #a3241c; }
#banner.gold .txt { color: #e3c27a; }
#banner .sub { font-size: 18px; letter-spacing: 3px; opacity: .8; margin-top: 6px; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(20,16,12,.82), rgba(0,0,0,.96)); text-align: center; }
.screen h1 { font-size: 72px; letter-spacing: 16px; margin: 0; font-weight: normal; }
.screen h2 { font-size: 22px; letter-spacing: 8px; margin: 6px 0 26px; font-weight: normal; opacity: .75; }
.lore { font-style: italic; opacity: .8; line-height: 1.6; margin-bottom: 30px; }
button { font-family: inherit; font-size: 20px; color: #e8e0cf; background: rgba(0,0,0,.4); border: 1px solid rgba(232,224,207,.5);
  padding: 10px 34px; margin: 6px; cursor: pointer; letter-spacing: 2px; min-width: 260px; }
button:hover { background: rgba(227,194,122,.15); border-color: #e3c27a; }
button:disabled { opacity: .35; cursor: default; }
button.small { font-size: 14px; min-width: 0; padding: 6px 18px; }
.keys { margin-top: 34px; font-size: 14px; opacity: .7; line-height: 1.9; }
.keys b { color: #e3c27a; font-weight: normal; }
.ver { position: absolute; bottom: 16px; font-size: 12px; opacity: .4; }
#menuBody { margin: 20px 0; min-width: 420px; }
.stat { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 6px 0;
  border-bottom: 1px solid rgba(232,224,207,.15); }
.stat button { min-width: 0; font-size: 15px; padding: 5px 14px; }
.stat .v { color: #e3c27a; }
.opt { display: block; margin: 14px; font-size: 16px; }

/* language picker on the title screen */
#langs { margin-top: 14px; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; opacity: .85; }
#langs button { padding: 4px 10px; font-size: 12px; min-width: 0; margin: 0; opacity: .6; }
#langs button.on { opacity: 1; border-color: #e3c27a; color: #e3c27a; }
