* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  color: #17201b;
  background: #f7f4ef;
}

body {
  margin: 0;
}

a {
  color: #12624a;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  border-bottom: 1px solid #d7ded8;
  background: #fffdf8;
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 700;
  font-size: 20px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.links a {
  text-decoration: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(9, 20, 17, 0.84), rgba(9, 20, 17, 0.58)),
    url("assets/app-icon.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid #d7ded8;
}

.hero-inner,
.content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  color: #fffdf8;
}

.hero p {
  max-width: 700px;
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: #fff5d9;
}

.game-hero {
  background:
    linear-gradient(90deg, rgba(9, 20, 17, 0.82), rgba(9, 20, 17, 0.52)),
    url("assets/app-icon.png");
  background-position: center;
  background-size: cover;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  background: #fffdf8;
  border: 1px solid #d7ded8;
  border-radius: 8px;
  padding: 20px;
}

.card h2,
.content h1,
.content h2 {
  margin-top: 0;
}

.content {
  flex: 1;
  line-height: 1.7;
}

.content p,
.content li {
  max-width: 820px;
}

.notice {
  background: #eef7f1;
  border: 1px solid #c8ddce;
  border-radius: 8px;
  padding: 16px 18px;
}

.footer {
  border-top: 1px solid #d7ded8;
  background: #fffdf8;
  padding: 22px 24px;
  font-size: 13px;
  color: #526158;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.test-page {
  background: #f5f7f4;
}

.test-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(11, 28, 23, 0.76), rgba(11, 28, 23, 0.24)),
    url("assets/app-icon.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid #d7ded8;
}

.test-hero-copy {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 52px 24px;
  color: #fffdf8;
}

.test-icon {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.test-hero h1 {
  max-width: 720px;
  margin: 20px 0 16px;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: 0;
}

.test-hero p {
  max-width: 620px;
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}

.test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: #198f65;
  color: #fff;
  border-color: #198f65;
}

.button.secondary {
  background: #fffdf8;
  color: #17201b;
  border-color: #d7ded8;
}

.test-content {
  padding-top: 38px;
}

.test-notice {
  margin-bottom: 24px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1fr);
  gap: 28px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #d7ded8;
}

.tester-form {
  display: grid;
  gap: 14px;
}

.tester-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.tester-form input,
.tester-form textarea {
  width: 100%;
  border: 1px solid #cbd7ce;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  background: #fffdf8;
  color: #17201b;
}

.tester-form textarea {
  resize: vertical;
}

.check-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 400;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}

.form-button {
  justify-self: start;
  font: inherit;
}

.support-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid #d7ded8;
  border-radius: 8px;
  background: #fffdf8;
}

.number-merge-page {
  background: #f4fbfa;
}

.number-hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1fr);
  align-items: center;
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 24px 44px;
}

.number-hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
}

.number-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: #263e44;
  font-size: 21px;
  line-height: 1.55;
}

.number-icon {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(25, 90, 96, 0.22);
}

.number-board {
  aspect-ratio: 1;
  width: min(100%, 480px);
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid #c4dcda;
  border-radius: 18px;
  background: #e7f4f1;
  box-shadow: 0 20px 46px rgba(36, 86, 93, 0.2);
}

.number-board span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fffdf8;
  color: #17343b;
  font-size: clamp(15px, 3vw, 30px);
  font-weight: 800;
}

.number-board span:nth-child(5n + 1) {
  background: #dbf2ff;
}

.number-board span:nth-child(5n + 2) {
  background: #fff1a8;
}

.number-board span:nth-child(5n + 3) {
  background: #ffd6d1;
}

.number-board span:nth-child(5n + 4) {
  background: #ccebd5;
}

.number-board span:nth-child(5n) {
  background: #d9d6ff;
}

.number-notice {
  background: #e9f8f6;
  border-color: #b9dad6;
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-inner,
  .content {
    padding: 38px 18px;
  }

  .test-hero {
    min-height: 500px;
  }

  .test-hero-copy {
    padding: 40px 18px;
  }

  .test-hero h1 {
    font-size: 42px;
  }

  .form-section {
    grid-template-columns: 1fr;
  }

  .number-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 40px 18px;
  }

  .number-board {
    margin: 0;
  }

  .button,
  .form-button {
    width: 100%;
  }
}
