:root {
  --sky-top: #55b9ea;
  --sky-mid: #8adff0;
  --sky-bottom: #58c6e6;
  --cream: #fffcf2;
  --gold-border: #f4b41e;
  --ink: #17385b;
  --muted: #38546e;
  --green-top: #7be51d;
  --green-bottom: #13a314;
  --blue-top: #5bc8f5;
  --blue-bottom: #2a8fd4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 55%,
    var(--sky-bottom) 100%
  );
  color: var(--ink);
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 2.5rem;
}

.brand-link {
  margin-top: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 0.9;
}

.brand-link:hover {
  text-decoration: underline;
}

.hero-icon {
  width: 120px;
  height: 120px;
  margin: 1rem 0 0.5rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.card {
  width: min(400px, 100%);
  background: var(--cream);
  border: 2px solid var(--gold-border);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  text-align: center;
}

.card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--ink);
}

.subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(110, 53, 185, 0.12);
  color: #6e35b9;
  font-size: 0.8rem;
  font-weight: 900;
}

.cover {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 2px solid #e7dcc6;
}

.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  font-weight: 800;
  background: #fff7df;
  border: 1.5px solid #cdaa64;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

.note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.note.password {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #6b4e00;
}

.note.expired,
.note.error {
  background: #ffe9ef;
  border: 1px solid #ff8aa0;
  color: #7b1830;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.btn-primary {
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  border-color: #ffc83d;
}

.btn-secondary {
  background: linear-gradient(180deg, var(--blue-top), var(--blue-bottom));
  border-color: #1a7bb8;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid #e7dcc6;
  box-shadow: none;
  font-size: 0.9rem;
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.loading {
  padding: 2rem 0;
  font-weight: 800;
  color: var(--muted);
}

.hidden {
  display: none !important;
}
