@font-face {
  font-family: "Baloo 2";
  src: url("/assets/baloo2.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #4a1520;
  --ink-soft: #7a4a50;
  --card: #fffaf0;
  --yellow: #ffc928;
  --yellow-edge: #e09a00;
  --line: #f0dcc0;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: #7cc8f2 url("/assets/sky.jpg") center top / cover no-repeat fixed;
}

main {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.logo {
  display: block;
  width: 230px;
  max-width: 64%;
  height: auto;
  margin: 0 auto -18px;
  position: relative;
  filter: drop-shadow(0 6px 10px rgba(74, 21, 32, 0.25));
}

.card {
  background: var(--card);
  border-radius: 28px;
  padding: 34px 22px 22px;
  box-shadow:
    0 10px 0 rgba(74, 21, 32, 0.12),
    0 18px 40px rgba(20, 60, 90, 0.25);
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

p {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.code {
  display: inline-block;
  margin: 18px 0 4px;
  padding: 6px 18px 2px;
  border: 3px dashed var(--line);
  border-radius: 16px;
  font-size: 40px;
  letter-spacing: 6px;
  color: var(--ink);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 12px 18px 8px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-size: 22px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--line);
}

.button.primary {
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--yellow-edge);
}

.button:active {
  transform: translateY(2px);
}

.button[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.steps {
  margin-top: 16px;
  font-size: 16px;
}

.hidden {
  display: none;
}

footer {
  margin-top: 14px;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
