body {
  overflow: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: #000000;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

canvas {
  overflow: hidden;
}

#loading-canvas {
  width: 100vw;
  height: 100vh;
  display: block;
}

#loading-container {
  display: none;
  width: 100vw;
  height: 100vh;
  font-family: "ITCErasStd", Arial, Helvetica, sans-serif;
}

#icon-container {
  display: none;
  width: 100vw;
  height: 100vh;
}

#game-container {
  position: relative;
  display: none;
  width: fit-content;
  width: 100vw;
  height: 100vh;
}

#blur-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(40px) brightness(1.2);
  transform: scale(1.1);
  z-index: -1;
  opacity: 0.2;
}

#app {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.fade-in-fast {
  animation: fadeIn 0.1s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.fade-out {
  animation: fadeOut 0.4s ease-out forwards;
}

.app-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.input {
  background-color: white;
  color: black;
  padding: 0.6rem 1rem;
  position: absolute;
  border: 1px solid #86868f;
  border-radius: 10px;
  outline: none;
  font-size: 40px;
  width: 400px;
  height: 60px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  opacity: 1;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

input,
textarea,
select {
  font-size: 40px;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.input:focus {
  background-color: rgb(211, 211, 211);
}

.input:disabled {
  opacity: 0.4 !important;
}

#rotate-notice {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0, 0, 0);
  color: white;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.rotate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2rem;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 90vw;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.rotate-icon {
  width: 60px;
  height: 100px;
  border: 2px solid white;
  border-radius: 10px;
  position: relative;
  margin-bottom: 1rem;
  animation: rotateAnim 2.5s infinite ease-in-out;
}

#web-disabled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 9999;
  text-align: center;
  padding: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #111827, #0a0808);
  color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.overlay-container {
  max-width: 400px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.overlay-container h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-family: "MontserratBlack", Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.overlay-container h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: "MontserratBlack", Arial, Helvetica, sans-serif;
  font-weight: 300;
}

.overlay-container p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

#pwa-install-android,
#pwa-install-ios {
  color: #e6ebf0 !important;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: bold;
}

#install-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  background: #1a6df3;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

#install-btn:hover {
  background: #175aeb;
}

@font-face {
  font-family: "ITCErasStd";
  src: url("assets/fonts/ITC-Eras-Std-Bold.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MontserratBlack";
  src: url("assets/fonts/Montserrat-Black.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes rotateAnim {
  0% {
    transform: rotate(0deg) scale(1);
  }
  20% {
    transform: rotate(-90deg) scale(1);
  }
  40% {
    transform: rotate(-90deg) scale(1.2);
  }
  60% {
    transform: rotate(-90deg) scale(1);
  }
  80% {
    transform: rotate(0deg) scale(1);
  }
}

@media (max-width: 400px) {
  .round-canvas {
    border-radius: 0;
  }
}

@media (min-width: 400px) {
  .round-canvas {
    border-radius: 0.5rem;
  }
}

@media (min-width: 700px) {
  .round-canvas {
    border-radius: 1rem;
  }
}

@media (min-width: 900px) {
  .round-canvas {
    border-radius: 1.5rem;
  }
}
