/* Rogue Party, browser version: the look of the Android widgets the game builds (dark, flat, blood red accents). */
html, body {
  margin: 0; padding: 0; height: 100%; background: #000; color: #f2f2f2; overflow: hidden;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none; touch-action: manipulation;
}
#app { position: fixed; inset: 0; }
.act { position: absolute; inset: 0; overflow: hidden; background: #000; }
.act > .content { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; }
.v { box-sizing: border-box; position: relative; min-width: 0; min-height: 0; flex-shrink: 1; }
.cv { display: block; overflow: hidden; touch-action: none; }
.cvc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.tv { display: flex; }
.tvs { white-space: pre-wrap; overflow-wrap: break-word; min-width: 0; max-width: 100%; }
.tv.single .tvs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { border: 0; margin: 0; background: transparent; color: inherit; cursor: pointer; outline: none; appearance: none; -webkit-appearance: none; }
.btn:focus-visible { box-shadow: 0 0 0 2px #ffc857 inset; }
.clickable { cursor: pointer; }
.disabled { opacity: 0.55; }
.iv { display: block; }
.ivc { width: 100%; height: 100%; display: block; object-fit: contain; image-rendering: pixelated; image-rendering: crisp-edges; }
.scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #5a0c14 transparent; }
.scroll::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-thumb { background: #5a0c14; border-radius: 3px; }
.spin { display: block; width: 100%; background: #16161a; color: #f2f2f2; border: 1px solid #3a0c12; border-radius: 6px; padding: 2px 6px; font: inherit; outline: none; }
.spin:focus { border-color: #ff3030; }
.edit { display: flex; align-items: flex-end; border-bottom: 2px solid #8a0f18; }
.edit:focus-within { border-bottom-color: #ff3030; }
.editin { width: 100%; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; padding: 4px 0; -webkit-user-select: text; user-select: text; }
.compound { display: inline-flex; align-items: center; cursor: pointer; }
.compound input { margin: 0; }
input.sw { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border-radius: 12px; background: #3a3a40; position: relative; cursor: pointer; transition: background .15s; outline: none; }
input.sw::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d0d0d4; transition: transform .15s, background .15s; }
input.sw:checked { background: #8a0f18; }
input.sw:checked::before { transform: translateX(20px); background: #ff3030; }
.dlg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 10; }
.dlgbox { display: flex; flex-direction: column; max-height: 92%; max-width: 98%; min-height: 0; }
.dlgroot { flex: 0 1 auto !important; min-height: 0; width: 100% !important; height: auto !important; max-height: 100%; overflow: hidden; margin: 0 !important; }
.toast { position: fixed; left: 50%; bottom: 10%; transform: translateX(-50%); background: rgba(40, 40, 44, 0.95); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 15px; opacity: 0; transition: opacity .3s; z-index: 50; pointer-events: none; max-width: 80%; text-align: center; }
.toast.on { opacity: 1; }
#fatal { position: fixed; left: 0; right: 0; top: 0; z-index: 1000; background: #600; color: #fff; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; padding: 10px; max-height: 50%; overflow: auto; display: none; }
#loading { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #000; z-index: 100; }
#loading .title { font-size: 40px; font-weight: 700; color: #f2f2f2; }
#loading .track { width: 260px; height: 6px; background: #1c1416; border-radius: 3px; overflow: hidden; }
#loading #bar { height: 100%; width: 0; background: #ff3030; transition: width .1s; }
#loading .note { color: #9a9aa2; font-size: 14px; }

/* the stand-in rewarded ad (before an AdSense account is set up) */
.rp-ad { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.88); display: flex; align-items: center; justify-content: center; font-family: sans-serif; }
.rp-ad-box { background: #f4f4f4; color: #222; border-radius: 12px; padding: 22px 22px 18px; width: min(88vw, 380px); text-align: center; position: relative; }
.rp-ad-tag { position: absolute; top: 10px; left: 10px; background: #f9c900; color: #222; font-weight: bold; font-size: 12px; padding: 2px 6px; border-radius: 3px; }
.rp-ad-title { font-size: 20px; font-weight: bold; margin: 8px 0 10px; }
.rp-ad-note { font-size: 14px; line-height: 1.4; color: #444; }
.rp-ad-count { margin: 14px 0; font-size: 15px; color: #666; }
.rp-ad-row { display: flex; gap: 10px; justify-content: center; }
.rp-ad-row button { flex: 1; font-size: 15px; padding: 10px 0; border: 0; border-radius: 8px; cursor: pointer; }
.rp-ad-close { background: #ddd; color: #222; }
.rp-ad-get { background: #1a73e8; color: #fff; }
.rp-ad-get:disabled { background: #9ab8e8; cursor: default; }
