html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
  color: white;
}

body {
  background:
    linear-gradient(
      rgba(5, 10, 8, 0.78),
      rgba(5, 10, 8, 0.88)
    ),
    url('/images/berlin-backdrop-dark-runners.webp');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 24px;
  box-sizing: border-box;
}

.page-inner {
  width: min(420px, 92vw);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  background: rgba(10, 18, 14, 0.72);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 28px;

  box-shadow:
    0 10px 40px rgba(0,0,0,0.45),
    0 0 80px rgba(124,255,155,0.06);

  padding: 28px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: -6px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  line-height: 1.4;
}

label {
  align-self: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

input,
button {
  width: 100%;

  padding: 14px 16px;

  border-radius: 16px;

  font-size: 16px;

  box-sizing: border-box;
}

input {
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.05);

  color: white;

  outline: none;
}

input::placeholder {
  color: rgba(255,255,255,0.35);
}

input:focus {
  border-color: rgba(124,255,155,0.6);
  box-shadow: 0 0 0 4px rgba(124,255,155,0.08);
}

button {
  border: none;

  background: #7CFF9B;

  color: #071008;

  font-weight: 700;

  cursor: pointer;

  transition: transform 0.15s ease,
              opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: scale(0.99);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

#reader {
  width: 100%;

  min-height: 280px;

  overflow: hidden;

  border-radius: 22px;

  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.06);
}

#result {
  width: 100%;

  padding: 16px;

  border-radius: 16px;

  text-align: center;

  font-weight: 700;

  box-sizing: border-box;

  transition: all 0.25s ease;
}

  .legalFooter {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    width: fit-content;
    margin: auto;
    padding: 4px 10px;
    font-size: 12px;
    background: rgba(0,0,0,0.45);
    color: white;
    border-radius: 8px;
    z-index: 9999;
  }

  .legalFooter a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
  }

  .legalFooter a:hover {
    text-decoration: underline;
  }

.result-neutral {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
}

.result-success {
  background: rgba(22, 90, 48, 0.78);
  color: #7CFF9B;
}

.result-error {
  background: rgba(120, 22, 22, 0.78);
  color: #ff8a8a;
}

.manual-box {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 10px;

  margin-top: 4px;
  padding-top: 6px;

  border-top: 1px solid rgba(255,255,255,0.06);
}

.manual-box label {
  margin-top: 2px;
}

#manualCode {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: center;
}

#manualBtn {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
}

#manualBtn:hover {
  background: rgba(255,255,255,0.14);
}

@media (max-width: 600px) {
  .page-inner {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    font-size: 26px;
  }
}

@media (min-width: 700px) {
  .manual-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
  }

  .manual-box label {
    grid-column: 1 / -1;
  }

  #manualBtn {
    width: 180px;
  }
}