* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #08150b;
  font-family: Arial, Helvetica, sans-serif;
}

.lucky-screen {
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  background: #08150b;
}

.lucky-image {
  display: block;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center;
}

.test-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f2f2f2;
  color: #141414;
}

.test-card {
  width: min(100%, 520px);
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid #dddddd;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgb(0 0 0 / 8%);
}

.test-kicker {
  margin: 0 0 18px;
  color: #767676;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.test-card h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.test-copy {
  margin: 18px 0 0;
  color: #666666;
  font-size: 16px;
  line-height: 1.7;
}

.test-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.test-primary,
.test-secondary {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.test-primary {
  background: #ff0000;
  color: #ffffff;
}

.test-secondary {
  border: 1px solid #d7d7d7;
  background: #ffffff;
  color: #141414;
}

.test-primary:focus-visible,
.test-secondary:focus-visible,
.test-back:focus-visible {
  outline: 3px solid #141414;
  outline-offset: 3px;
}

.test-result {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f2f2f2;
  font-size: 14px;
  line-height: 1.5;
}

.test-back {
  display: inline-block;
  margin-top: 28px;
  color: #666666;
  font-size: 14px;
}
