* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: #fff;
  color: #000;
  font-family: system-ui, sans-serif;
}

.hidden { display: none !important; }

#gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

#decoy-input {
  width: min(320px, 90vw);
  border: none;
  outline: none;
  background: #fff;
  color: #fff;
  caret-color: transparent;
  font-size: 16px;
  text-align: center;
}

#decoy-input::placeholder { color: #fff; }

#app {
  min-height: 100vh;
  padding: 1rem;
  background: #fff;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.toolbar input {
  flex: 1;
  min-width: 120px;
  border: 1px solid #000;
  background: #fff;
  padding: 0.5rem;
  font-size: 14px;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.test-btn {
  aspect-ratio: 1.2;
  background: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px;
  font-size: 9px;
  line-height: 1.1;
  color: #000;
  word-break: break-word;
  overflow: hidden;
}

.test-btn:hover { background: #f5f5f5; }
.test-btn:active { background: #eee; }

#log {
  margin-top: 1rem;
  max-height: 28vh;
  overflow: auto;
  border: 1px solid #000;
  padding: 0.5rem;
  font: 11px/1.4 ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
