/* CardCraft site: the same felt green, dark panels and gold accent as the app. */

:root {
  --felt: #1f7a4f;
  --felt-edge: #175c3c;
  --panel: #14211b;
  --text: #f1f4ef;
  --muted: rgba(241, 244, 239, 0.62);
  --faint: rgba(241, 244, 239, 0.45);
  --gold: #f2c14e;
  --button: #223329;
  --button-hover: #2b4034;
  --line: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse at center, var(--felt) 0%, var(--felt-edge) 100%) fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

.card {
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}

.brand {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--faint);
}

h1 {
  margin: 0 0 22px;
  font-size: 26px;
  line-height: 1.2;
}

.label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--faint);
}

.code {
  margin: 0 0 26px;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--gold);
  /* The letter spacing also follows the last letter; balance it so the code looks centred. */
  padding-left: 8px;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.button {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--button);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--button-hover);
}

.button.primary {
  background: var(--gold);
  color: #14140f;
}

.button.primary:hover {
  background: #f6cd6a;
}

.button.quiet {
  background: transparent;
  color: var(--muted);
}

.button.quiet:hover {
  background: var(--button);
}

.hint {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.hint b {
  color: var(--text);
}

.tagline {
  margin: -12px 0 24px;
  font-size: 18px;
  color: var(--muted);
}

.title {
  margin: 0 0 18px;
  font-size: 44px;
  font-weight: 800;
}

footer {
  margin-top: 22px;
  font-size: 13px;
  color: var(--faint);
}

footer a {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .card {
    padding: 26px 18px 20px;
  }

  .code {
    font-size: 42px;
    letter-spacing: 6px;
    padding-left: 6px;
  }
}
