#tile-playground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
}

html {
  cursor: url("CursorOpen.png") 16 10, grab;
}

.tile {
  position: absolute;
  width: 54px;
  height: 54px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  font-family: "Press Start 2P", sans-serif;
  color: #333;
  cursor: url("CursorOpen.png") 16 10, grab;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 2px 3px 0px #333;
  z-index: 31;
  animation: tile-pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.tile:active {
  cursor: url("CursorGrab.png") 16 10, grabbing;
}
.tile.dragging {
  box-shadow: 4px 6px 0px rgba(0, 0, 0, 0.4);
  z-index: 100;
  transform: scale(1.1);
}
body.dark-theme .tile {
  background: #FFB84D;
  border-color: #c98a2e;
  color: #50514F;
  box-shadow: 2px 3px 0px #8a6020;
}
.tile.fleeing {
  overflow: visible;
}
.tile.fleeing::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  width: 18px;
  height: 14px;
  transform: translateX(-50%);
  background: none;
  border-left: 2.5px solid #333;
  border-right: 2.5px solid #333;
  border-bottom: none;
  border-top: none;
  animation: run-legs 0.15s steps(2) infinite;
}
body.dark-theme .tile.fleeing::before {
  border-left-color: #c98a2e;
  border-right-color: #c98a2e;
}
.tile.fleeing::after {
  content: "";
  position: absolute;
  top: 40%;
  left: -12px;
  width: calc(100% + 24px);
  height: 2.5px;
  background: linear-gradient(to right, #333 12px, transparent 12px, transparent calc(100% - 12px), #333 calc(100% - 12px));
  transform: translateY(-50%);
  animation: flail-arms 0.18s ease-in-out infinite alternate;
}
body.dark-theme .tile.fleeing::after {
  background: linear-gradient(to right, #c98a2e 12px, transparent 12px, transparent calc(100% - 12px), #c98a2e calc(100% - 12px));
}

@keyframes tile-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes run-legs {
  0% {
    transform: translateX(-50%) skewX(-20deg);
  }
  50% {
    transform: translateX(-50%) skewX(20deg);
  }
  100% {
    transform: translateX(-50%) skewX(-20deg);
  }
}
@keyframes flail-arms {
  0% {
    transform: translateY(-50%) rotate(-15deg);
  }
  100% {
    transform: translateY(-50%) rotate(15deg);
  }
}
.login-wrapper {
  position: relative;
  z-index: 20;
  max-width: 360px;
  margin: 80px auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #333;
  border-radius: 4px;
  box-shadow: 4px 6px 0px #333;
  text-align: center;
  cursor: default;
}
body.dark-theme .login-wrapper {
  background: rgba(60, 60, 60, 0.97);
  border-color: #aaa;
  box-shadow: 4px 6px 0px #222;
}
.login-wrapper h2 {
  margin-bottom: 12px;
  font-family: "Press Start 2P", sans-serif;
  font-size: 16px;
}
.login-wrapper p.subtitle {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 18px;
}
.login-wrapper label {
  display: block;
  text-align: left;
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 12px;
  font-family: "Press Start 2P", sans-serif;
}
.login-wrapper input[type=text] {
  width: 100%;
  padding: 6px 10px;
  font-size: 15px;
  font-family: "Courier New", Courier, monospace;
  border: 2px solid #333;
  border-radius: 4px;
  margin-bottom: 12px;
  box-sizing: border-box;
  box-shadow: inset 1px 2px 0px rgba(0, 0, 0, 0.1);
}
body.dark-theme .login-wrapper input[type=text] {
  background: #555;
  border-color: #aaa;
  color: #f0f0f0;
  box-shadow: inset 1px 2px 0px rgba(0, 0, 0, 0.2);
}

#drop-zone,
#confirm-zone {
  min-height: 36px;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 4px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
  background: #fff;
  position: relative;
  font-family: "Courier New", Courier, monospace;
  box-sizing: border-box;
  width: 100%;
  box-shadow: inset 1px 2px 0px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.dark-theme #drop-zone,
body.dark-theme #confirm-zone {
  border-color: #aaa;
  background: #444;
  box-shadow: inset 1px 2px 0px rgba(0, 0, 0, 0.15);
}
#drop-zone .tile-static,
#confirm-zone .tile-static {
  position: static;
  width: 22px;
  height: 26px;
  font-size: 16px;
  font-family: "Courier New", Courier, monospace;
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  animation: none;
  font-weight: bold;
}
body.dark-theme #drop-zone .tile-static,
body.dark-theme #confirm-zone .tile-static {
  color: #f0f0f0;
  background: transparent;
}
#drop-zone .tile-static:hover,
#confirm-zone .tile-static:hover {
  background: rgba(0, 0, 0, 0.08);
  border: none;
}
body.dark-theme #drop-zone .tile-static:hover,
body.dark-theme #confirm-zone .tile-static:hover {
  background: rgba(255, 255, 255, 0.1);
}
#drop-zone::after,
#confirm-zone::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 20px;
  background: #333;
  animation: blink-caret 0.8s step-end infinite;
  flex-shrink: 0;
  align-self: center;
}
body.dark-theme #drop-zone::after,
body.dark-theme #confirm-zone::after {
  background: #FFB84D;
}

@keyframes blink-caret {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
#drop-zone-label,
#confirm-zone-label {
  font-size: 11px;
  font-family: "Press Start 2P", sans-serif;
  color: #999;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}

#drop-zone.has-tiles #drop-zone-label,
#confirm-zone.has-tiles #confirm-zone-label {
  display: none;
}

.requirements {
  text-align: left;
  font-size: 10px;
  font-family: "Press Start 2P", sans-serif;
  margin-bottom: 10px;
  list-style: none;
  padding: 0;
  line-height: 1.6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
}
.requirements li {
  margin-bottom: 0;
  color: #c44;
  transition: color 0.2s;
}
.requirements li::before {
  content: "[ ] ";
  font-family: "Courier New", Courier, monospace;
}
.requirements li.met {
  color: #2a2;
  text-decoration: none;
}
.requirements li.met::before {
  content: "[x] ";
}

.btn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-row button {
  padding: 6px 12px;
  font-size: 10px;
  cursor: pointer;
  font-family: "Press Start 2P", sans-serif;
  background: #fff;
  border: 2px solid #333;
  border-radius: 4px;
  box-shadow: 2px 3px 0px #333;
  color: #333;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-row button:active {
  box-shadow: 0px 1px 0px #333;
  transform: translateY(2px);
}
body.dark-theme .btn-row button {
  background: #444;
  color: #f0f0f0;
  border-color: #aaa;
  box-shadow: 2px 3px 0px #222;
}
body.dark-theme .btn-row button:active {
  box-shadow: 0px 1px 0px #222;
}
.btn-row button:hover {
  opacity: 0.85;
}

#confirm-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed #ccc;
  animation: confirm-slide-in 0.3s ease-out both;
}
body.dark-theme #confirm-section {
  border-top-color: #666;
}

@keyframes confirm-slide-in {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
#confirm-display {
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 4px;
  padding: 8px 10px;
  margin-bottom: 12px;
  background: #f0f0f0;
  border: 2px solid #333;
  border-radius: 4px;
  text-align: center;
  box-shadow: inset 1px 2px 0px rgba(0, 0, 0, 0.08);
}
body.dark-theme #confirm-display {
  background: #555;
  border-color: #aaa;
  color: #FFB84D;
  box-shadow: inset 1px 2px 0px rgba(0, 0, 0, 0.15);
}

#login-error {
  color: #c44;
  font-size: 10px;
  font-family: "Press Start 2P", sans-serif;
  min-height: 16px;
  margin-top: 6px;
  line-height: 1.6;
}

/*# sourceMappingURL=login.css.map */
