* { box-sizing: border-box; }
html { min-height: 100%; background: #0a0d37; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; padding: 24px;
  background: url('/background.webp') center center / cover no-repeat fixed;
  font-family: Arial, Helvetica, sans-serif; color: #fff;
}
.panel {
  width: min(500px, 100%); padding: 44px 40px 40px;
  background: rgba(113, 104, 190, .17);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 20px;
  box-shadow: 0 16px 48px rgba(8, 5, 37, .15);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
h1 { margin: 0 0 30px; text-align: center; font-size: 40px; line-height: 1.2; font-weight: 700; }
form { display: grid; gap: 24px; }
input, button { width: 100%; min-width: 0; min-height: 60px; border-radius: 13px; font-size: 20px; }
input {
  padding: 16px 20px; border: 2px solid rgba(255, 255, 255, .9);
  background: rgba(18, 14, 40, .22); color: #fff; font-family: monospace;
}
input::placeholder { color: rgba(255, 255, 255, .7); }
input:focus { outline: 2px solid #24212e; outline-offset: -4px; }
button { padding: 15px 20px; border: 0; background: #fff; color: #302957; font-weight: 600; cursor: pointer; }
button:hover { background: #f1ecff; }
button:focus-visible { outline: 3px solid #b9aaff; outline-offset: 3px; }
button:disabled { opacity: .7; cursor: wait; }
#result { margin: 24px 0 0; line-height: 1.5; text-align: center; overflow-wrap: anywhere; white-space: pre-wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) {
  body { padding: 20px; background-attachment: scroll; }
  .panel { padding: 36px 24px 30px; }
  h1 { font-size: 36px; margin-bottom: 26px; }
  input, button { font-size: 18px; }
}
