@font-face {
  font-family: "Velo WWangle";
  src: url("../../fonts/subset-VeloWWangle-Bold.woff2") format("woff2"),
       url("../../fonts/subset-VeloWWangle-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.wvp-shell,
.wvp-leaderboard {
  font-family: Inter, Arial, sans-serif;
}

.wvp-shell *,
.wvp-leaderboard * {
  box-sizing: border-box;
}

.wvp-form-card {
  padding: 42px 44px;
  position: relative;
  overflow: hidden;
}

.wvp-form {
  max-width: 1280px;
  margin: 0 auto;
}

.wvp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 44px;
}

.wvp-field,
.wvp-upload-row {
  display: flex;
  flex-direction: column;
}

.wvp-field span,
.wvp-upload-label {
  color: #000;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
  margin-bottom: 14px;
}

.wvp-field input {
  width: 100%;
  min-height: 76px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 18px;
  padding: 20px 24px;
}

.wvp-field input:focus,
.wvp-file-button:focus-within,
.wvp-primary-button:focus,
.wvp-secondary-button:focus {
  outline: 2px solid rgba(0, 0, 0, 0.28);
  outline-offset: 2px;
}

.wvp-upload-row {
  margin-top: 34px;
}

.wvp-upload-control {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.wvp-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 272px;
  min-height: 61px;
  padding: 18px 30px;
  border-radius: 10px;
  background: #000;
  cursor: pointer;
}

.wvp-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.wvp-file-button span {
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
}

.wvp-file-name {
  color: #000;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 25px;
}

.wvp-consent {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 34px;
  color: #000;
  font-size: 13px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
}

.wvp-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 2px;
  accent-color: #000;
}

.wvp-consent a {
  color: #000;
  font-size: 13px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  text-decoration: underline;
}

.wvp-message {
  min-height: 28px;
  margin-top: 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.wvp-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.wvp-primary-button,
.wvp-link-button,
.wvp-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

.wvp-primary-button,
.wvp-link-button {
  min-width: 338px;
  padding: 18px 32px;
  color: #fff;
  text-align: center;
  font-family: "Velo WWangle", Inter, Arial, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 25px;
  text-transform: uppercase;
  background: #000;
  white-space: normal;
}

.wvp-primary-button:hover,
.wvp-link-button:hover,
.wvp-primary-button:focus,
.wvp-link-button:focus,
.wvp-secondary-button:focus,
.wvp-primary-button:active,
.wvp-link-button:active,
.wvp-secondary-button:active,
.wvp-secondary-button:hover {
  background: #ffc79a;
}

.wvp-game-card,
.wvp-finish-card {
  background: transparent;
  color: #000;
  padding: 28px;
}

.wvp-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.wvp-stat-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.wvp-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: min(100%, 620px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.wvp-tile {
  border: 0;
  padding: 0;
  border-radius: 14px;
  background-size: 300% 300%;
  background-repeat: no-repeat;
  cursor: grab;
  filter: blur(2px) brightness(.92);
  transition: transform .15s ease, filter .25s ease, box-shadow .25s ease;
  touch-action: none;
}

.wvp-tile:active,
.wvp-tile.is-dragging {
  cursor: grabbing;
}

.wvp-tile:hover,
.wvp-tile.is-selected {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(0,0,0,.18);
}

.wvp-tile.is-correct {
  filter: blur(0) brightness(1.1);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.8);
}

.wvp-tile.is-dragging {
  opacity: .55;
  transform: scale(.96);
}

.wvp-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.wvp-secondary-button {
  padding: 13px 22px;
  background: rgba(0,0,0,.14);
  color: #fff;
  border: 1px solid rgba(0,0,0,.18);
  font-weight: 700;
  text-transform: uppercase;
}

.wvp-secondary-button:hover,
.wvp-secondary-button:focus,
.wvp-secondary-button:active {
  color: #000;
}

.wvp-finish-card {
  text-align: center;
}

.wvp-finish-message {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
}

.wvp-leaderboard {
  border-radius: 20px;
  background: rgba(25, 21, 18, 0.70);
  padding: 30px 28px 24px;
  color: #e4e2d7;
  overflow: hidden;
}

.wvp-leaderboard-head,
.wvp-leaderboard-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 200px;
  gap: 32px;
}

.wvp-leaderboard-head {
  color: #f58020;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  padding: 12px 0 20px;
}

.wvp-leaderboard-row {
  border-top: 1.5px solid rgba(182, 176, 145, 0.20);
  padding: 28px 0;
  color: #e4e2d7;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.075px;
}

.wvp-leaderboard-row > div {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wvp-leaderboard-empty {
  border-top: 1.5px solid rgba(182, 176, 145, 0.20);
  padding-top: 24px;
  color: #e4e2d7;
}

@media (max-width: 900px) {
  .wvp-form-card {
    padding: 28px 20px;
  }

  .wvp-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .wvp-field input {
    min-height: 64px;
    padding: 16px 18px;
  }

  .wvp-primary-button,
  .wvp-link-button {
    min-width: 100%;
    width: 100%;
  }

  .wvp-stats {
    flex-direction: column;
  }

  .wvp-leaderboard-head,
  .wvp-leaderboard-row {
    grid-template-columns: 90px minmax(0, 1fr) 110px;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .wvp-leaderboard {
    padding: 18px 16px 18px;
  }

  .wvp-leaderboard-head,
  .wvp-leaderboard-row {
    grid-template-columns: 72px minmax(0, 1fr) 92px;
    gap: 10px;
  }

  .wvp-leaderboard-head {
    font-size: 14px;
  }

  .wvp-leaderboard-row {
    font-size: 13px;
    line-height: 18px;
    padding: 18px 0;
  }
}
