* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  cursor: none;
  font-family: "CEF Fonts CJK", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
  overscroll-behavior: none;
  user-select: none;
}

li {
  list-style: none;
}

a, [onclick] {
  color: black;
  transition: all 0.2s ease;
}

a:hover,[onclick]:hover {
  filter: invert(1) hue-rotate(180deg);
}

#count {
  font-size: 2em;
}

body {
  background-color: #FF9E5D;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  user-select: none;
}

nav {
  position: fixed;
  width: 95%;
  margin-top: 0.5em;
  padding: 0.5em 2em;
  background: #FF9453;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 2em;
}

nav ul {
  display: flex;
  gap: 1em;
}

header {
  margin-top: 5em;
  padding: 0 2em;
  flex-grow: 1;
  text-align: center;
}

h2 {
  margin-top: 1em;
  text-align: center;
}

.action {
  display: flex;
  gap: 1em;
  justify-content: space-between;
}

.btn {
  background-color: #ffffff80;
  width: fit-content;
  margin-top: 2em;
  padding: 1em;
  border-radius: 2em;
}

.confirm,
.leaderBoardPage {
  display: none;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  padding: 2em;
  background-color: #ffffff80;
  backdrop-filter: blur(10px);
  z-index: 100;
  place-items: center;
}

.confirm .form,
.confirm #leaderboard {
  padding: 2em;
  border-radius: 2em;
  background-color: rgba(248, 242, 242, 0.813);
  display: flex;
  flex-direction: column;
  max-height: 60dvh;
  overflow: scroll;
}

.confirm .form input {
  margin-top: 2em;
  height: 4em;
  background-color: rgba(159, 173, 173, 0.32);
  padding: 0 2em;
  border-radius: 2em;
}

#leaderboard {
  width: 100%;
  border-collapse: collapse;
  flex-direction: column;
}

#leaderboard th,
#leaderboard td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

#leaderboard th {
  background-color: #f2f2f2;
}

main {
  max-width: 100vw;
  max-height: 60dvh;
  overflow: hidden;
}

video {
  margin: 0 auto;
  width: auto;
  height: 100%;
  max-width: 100vw;
  object-fit: contain;
  outline: none;
}

#cursor {
  position: absolute;
  top: 0px;
  left: 0px;
  pointer-events: none;
  z-index: 999;
  transition: transform 0.5s cubic-bezier(0.5, 1.5, 0, 1);
  transform-origin: 50%;
  translate: -100% -100%;
}

.menu-button {
  display: none;
}

.cf-turnstile {
  margin-top: 1em;
}

@media (max-width: 600px) {
  h1 {
    font-size: 0.8em;
  }

  nav ul {
    display: none;
  }

  .menu-button {
    display: block;
    background: #FF9453;
    border-radius: 50%;
    padding: 0.5em;
    cursor: pointer;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: #FF9453;
    border-radius: 1em;
    gap: 0.5em;
    padding: 1em;
  }

  .menu.show {
    display: flex;
  }
}