@keyframes slideInFromLeftSoft {
  0% {
    opacity: 0;
    transform: translate3d(-120%, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-32%, 0, 0);
  }
  80% {
    opacity: 1;
    transform: translate3d(-8%, 0, 0);
  }
  96% {
    opacity: 1;
    transform: translate3d(2%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes slideInFromRightSoft {
  0% {
    opacity: 0;
    transform: translate3d(120%, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(32%, 0, 0);
  }
  80% {
    opacity: 1;
    transform: translate3d(8%, 0, 0);
  }
  96% {
    opacity: 1;
    transform: translate3d(-2%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInOverlaySoft {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes centerPopBurst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.2);
    filter: brightness(1);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.2);
    filter: brightness(1.7);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(1);
  }
}
@keyframes centerPopBurstToLeft {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.2);
    filter: brightness(1);
  }
  55% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.2);
    filter: brightness(1.75);
  }
  to {
    opacity: 1;
    transform: translate3d(-3%, 0, 0) scale(1);
    filter: brightness(1);
  }
}
*,
.screen {
  box-sizing: border-box;
}
html {
  align-items: flex-start;
}
#game-container,
body,
html {
  overflow: hidden;
  margin: 0;
}
body,
html {
  padding: 0;
  width: 100%;
  max-width: 100%;
  background-color: #000;
}
body {
  min-height: 100vh;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#game-container {
  position: relative;
  width: 750px;
  height: 1260px;
  background-color: #1a1a2e;
  transform-origin: top left;
  display: block;
}
.screen {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  color: #fff;
}
#rotate-overlay.show,
.screen.show {
  display: flex;
}
.screen h1 {
  font-size: 28px;
  margin-bottom: 20px;
}
.screen .btn {
  margin: 8px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  background: #e67e22;
  border: 0;
  color: #fff;
  border-radius: 8px;
  min-height: 44px;
}
.screen .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.screen .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}
.screen label {
  font-size: 14px;
  margin-right: 4px;
}
.screen select {
  padding: 6px 10px;
  font-size: 14px;
  min-width: 80px;
}
#screen-album,
#screen-result,
#screen-team-input {
  overflow-y: auto;
  overflow-x: hidden;
}
#screen-game,
#screen-prepare {
  padding: 0;
  overflow: hidden;
}
button {
  padding: 12px 24px;
  font-size: 18px;
  cursor: pointer;
  background: #e67e22;
  border: 0;
  color: #fff;
  border-radius: 8px;
  min-height: 48px;
  font-family: inherit;
}
button:hover {
  background: #d35400;
}
button:active {
  transform: scale(0.98);
}
:root {
  --screen-intro-duration: 0.3s;
  --screen-pop-duration: 0.5s;
  --screen-pop-return-duration: 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --screen-intro-duration: 0.01ms;
    --screen-pop-duration: 0.01ms;
    --screen-pop-return-duration: 0.01ms;
  }
}
#rotate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #fff;
  font-size: 18px;
  text-align: center;
  padding: 20px;
}
.prepare-slot {
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  padding: 10px;
  margin: 6px 0;
  min-width: 140px;
}
.prepare-slot.red {
  border-color: #e74c3c;
}
.prepare-slot.blue {
  border-color: #3498db;
}
.prepare-slot.green {
  border-color: #2ecc71;
}
#formation-code-input {
  width: 100%;
  max-width: 280px;
  padding: 8px;
  font-size: 12px;
  margin: 8px 0;
}
#result-actions,
#result-code-row {
  margin-top: 12px;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
#album-detail img,
#screen-album img {
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
}
.btn-2state {
  background: 0 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-2state-active,
.btn-2state:active .btn-2state-normal {
  display: none !important;
}
.btn-2state:active .btn-2state-active {
  display: block !important;
}
