* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #eee;
  font-family: system-ui, sans-serif;
}

main {
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

#ascii-chud {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  line-height: 1.1;
  text-align: center;
  color: #fff;
  margin: 0 0 12px;
  user-select: none;
}

.card {
  display: flex;
  justify-content: center;
}

#gate-form {
  display: flex;
  gap: 8px;
}

#password {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #eee;
  font-size: 16px;
}

button {
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #2a2a2a;
  color: #eee;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #333;
}

.error {
  color: #f66;
  text-align: center;
  margin-top: 10px;
}

#dropzone {
  border: 2px dashed #444;
  border-radius: 10px;
  padding: 60px 20px;
  text-align: center;
  color: #888;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

#dropzone.drag-over {
  border-color: #6ab0ff;
  color: #eee;
  background: #16202b;
}

#results {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#results li {
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 12px;
  background: #1a1a1a;
}

.result-name {
  font-size: 14px;
  color: #ccc;
  overflow-wrap: anywhere;
}

.progress-track {
  height: 4px;
  border-radius: 2px;
  background: #2a2a2a;
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #6ab0ff;
  transition: width 0.1s linear;
}

.result-link {
  display: inline-block;
  margin-top: 8px;
  color: #6ab0ff;
  word-break: break-all;
}

.result-status.failed {
  color: #f66;
  margin-top: 8px;
}
