/**
 * CSS Reset
 */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ol,
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}

/** 
 * Fix common issue with flex ellipsis 
 */
* {
  min-width: 0;
}

/**
 * Fix alignment of svgs
 */
svg {
  display: inline-block;
}

/**
 * Text selection color
 */
::selection {
  color: white;
  background: var(--primary-color);
}

/**
 * General
 */
p {
  line-height: 1.9;
}
pre {
  margin: 0;
}
html,
body {
  -webkit-font-smoothing: antialiased;
  font-family: 'Rubik', sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  background-color: black;
  color: white;
}
input,
textarea {
  border: 0;
  background: none;
  outline: 0;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
input::placeholder,
textarea::placeholder {
  /* color: rgba(255, 255, 255, 0.3); */
}
a {
  text-decoration: none;
  color: inherit;
}

/**
 * Hyperfy
 */

/* font (latin) */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/rubik.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/games/pacman/vendor/PressStart2P.ttf) format('truetype');
}

/* disable scroll bounce */

:root {
  overscroll-behavior: none;
}

/* fix common issue with flex ellipsis */

* {
  min-width: 0;
}

/* fix alignment of svgs */

svg {
  display: inline-block;
}

/* text selection */

::selection {
  color: white;
  background: black;
}

/* hide scrollbar */

.noscrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.noscrollbar::-webkit-scrollbar {
  display: none;
}

/* general */

p {
  line-height: 1.9;
}

pre {
  margin: 0;
}

html,
body {
  -webkit-font-smoothing: antialiased;
  font-family: 'Rubik', sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;

  background-color: black;
  color: white;
}

input,
textarea {
  border: 0;
  background: none;
  outline: 0;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* boot watchdog (index.html): why the world did not start */
.boot-error {
  position: fixed;
  left: 50%;
  z-index: 100000;
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgb(22 22 28 / 0.97);
  color: white;
  font-family: 'Rubik', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
}
/* nothing was drawn: in the middle */
.boot-error.blocking {
  top: 50%;
  transform: translate(-50%, -50%);
}
/* the app runs but is slow: small, at the bottom, out of the way */
.boot-error.notice {
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(24rem, calc(100vw - 2rem));
  max-height: 35vh;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  background: rgb(22 22 28 / 0.85);
  /* only its buttons take the pointer: the world under it stays usable */
  pointer-events: none;
}
.boot-error.notice button,
.boot-error.notice .boot-error-detail {
  pointer-events: auto;
}
.boot-error.notice .boot-error-title {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.boot-error.notice .boot-error-actions {
  margin-top: 0.5rem;
}
.boot-error-title {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.boot-error-hint {
  color: rgba(255, 255, 255, 0.75);
}
.boot-error-detail {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fca5a5;
  font-size: 0.8125rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.boot-error-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.boot-error-actions button {
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font: inherit;
  cursor: pointer;
}
