[hidden] { display: none !important; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
}

body {
  background:
    linear-gradient(rgba(5, 10, 8, 0.78), rgba(5, 10, 8, 0.9)),
    url('/images/berlin-backdrop-dark-runners.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 76px;
  box-sizing: border-box;
}

.reward-card {
  width: min(460px, 94vw);
  padding: 28px;
  box-sizing: border-box;
  border-radius: 28px;
  background: rgba(10, 18, 14, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.back-link:hover {
  color: #fff;
}

.reward-icon {
  font-size: 44px;
  line-height: 1;
  text-align: center;
  margin-bottom: 12px;
}

h1,
h2 {
  margin: 0;
  text-align: center;
}

h1 {
  font-size: clamp(28px, 7vw, 36px);
  letter-spacing: -0.025em;
}

h2 {
  font-size: 24px;
}

.subtitle {
  margin: 10px auto 24px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  line-height: 1.5;
}

form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 650;
}

input,
button {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
}

input {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  font-weight: 800;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

input:focus {
  border-color: rgba(124, 255, 155, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 255, 155, 0.08);
}

button {
  border: 0;
  background: #7cff9b;
  color: #071008;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.58;
  cursor: default;
}

.status {
  margin-top: 16px;
  padding: 14px 16px;
  box-sizing: border-box;
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.status-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.status-error {
  background: rgba(120, 22, 22, 0.78);
  color: #ffabab;
}

.status-success {
  background: rgba(22, 90, 48, 0.72);
  color: #a8ffbd;
}

.active-reward {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.success-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(124, 255, 155, 0.14);
  color: #7cff9b;
  font-size: 28px;
  font-weight: 900;
}

.asset-title {
  min-height: 20px;
  margin: 7px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.session-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.session-box span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
}

.session-box strong {
  color: #7cff9b;
  font-size: 14px;
  text-align: right;
}

.session-note,
.generation-notice {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.64);
}

.session-note {
  margin: 13px 2px 16px;
}

.generation-notice {
  margin: 0 0 14px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(124, 255, 155, 0.16);
  background: rgba(124, 255, 155, 0.07);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legalFooter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  width: fit-content;
  max-width: calc(100vw - 20px);
  margin: auto;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.legalFooter a {
  color: #fff;
  text-decoration: none;
  margin: 0 4px;
}

.legalFooter a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .reward-card {
    padding: 22px;
    border-radius: 24px;
  }

  .session-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-box strong {
    text-align: left;
  }
}

.generated-reward {
  margin-top: 16px;
}

.reward-preview {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  margin: 0 0 14px;
  border-radius: 16px;
  background: #fff;
}

.download-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #7cff9b;
  color: #071008;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.spaced-btn {
  margin-top: 10px;
}
