@font-face { font-family: "MPLUS"; font-weight: 400; src: url("assets/fonts/MPLUSRounded1c-Regular.woff2") format("woff2"); }
@font-face { font-family: "MPLUS"; font-weight: 500; src: url("assets/fonts/MPLUSRounded1c-Medium.woff2") format("woff2"); }
@font-face { font-family: "MPLUS"; font-weight: 700; src: url("assets/fonts/MPLUSRounded1c-Bold.woff2") format("woff2"); }

html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden; background: #231F20;
  touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
#app { position: fixed; inset: 0; margin: 0 auto; max-width: 576px; overflow: hidden; background: #dbd9db; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* UI root: sized in Unity canvas units (reference 376x695) and scaled like CanvasScaler. */
#ui { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-family: "MPLUS", sans-serif; color: #000; }
#ui * { box-sizing: border-box; }
.r { position: absolute; }
.hidden { display: none !important; }
.img { background-repeat: no-repeat; background-size: 100% 100%; }
.img.keep { background-size: contain; background-position: center; }
.btn { cursor: pointer; pointer-events: auto; }
.btn:active { filter: brightness(0.92); }
.btn.disabled { pointer-events: none; }
.txt { display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.2; white-space: normal; overflow-wrap: normal; word-break: normal; pointer-events: none; }
.txt > .tx { display: block; max-width: 100%; }
.txt.left { text-align: left; align-items: flex-start; } .txt.center { text-align: center; } .txt.right { text-align: right; align-items: flex-end; }
.txt.bold { font-weight: 700; }
.txt.upper { text-transform: uppercase; }
.dim { background: rgba(0, 0, 0, 0.2); pointer-events: auto; }
.dim.d30 { background: rgba(0, 0, 0, 0.3); }

/* Leaderboard list */
.scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-y; pointer-events: auto; }
.leaders { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 12px 16px; }
.leader { position: relative; height: 56px; flex: 0 0 auto; }

/* Pause sliders (Unity default UI slider look) */
.slider { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; pointer-events: auto; }
.slider::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(to right, #fff var(--v, 0%), #d9d9d9 var(--v, 0%)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -4px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.slider::-moz-range-track { height: 12px; border-radius: 6px; background: #d9d9d9; }
.slider::-moz-range-progress { height: 12px; border-radius: 6px; background: #fff; }
.slider::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* Prize flow */
.pill { border-radius: 72px / 24px; }
.input-bg { background: #fff; border: 1px solid #c8c8c8; border-radius: 6px; }
.phone-input { font: inherit; font-weight: 700; font-size: 16px; color: #333; border: 0; outline: 0; background: transparent; width: 100%; height: 100%; padding: 0 16px; pointer-events: auto; }
.phone-input::placeholder { color: rgba(51,51,51,.5); }
.code-cell { display: flex; align-items: center; justify-content: center; font-size: 32px; color: #333; pointer-events: auto; }
.code-cell.error { color: rgb(252, 32, 2); }
.key { display: flex; align-items: center; justify-content: center; font-size: 22px; pointer-events: auto; cursor: pointer; }
