:root {
  --green: #65bd52;
  --deep-green: #184f2a;
  --lime: #b7e87a;
  --cream: #fff8e8;
  --paper: #ffffff;
  --ink: #253047;
  --muted: #68707d;
  --line: #e7dfcf;
  --yellow: #ffd95a;
  --red: #f36f63;
  --blue: #5b9df8;
  --shadow: 0 18px 50px rgba(45, 75, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(183, 232, 122, 0.38), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(101, 189, 82, 0.16), transparent 28%),
    var(--cream);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 248, 232, 0.86);
  border-bottom: 1px solid rgba(231, 223, 207, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-green);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--deep-green);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(101, 189, 82, 0.14);
}

main {
  overflow: hidden;
}

.hero {
  min-height: 620px;
  padding: clamp(72px, 10vw, 126px) clamp(20px, 7vw, 96px) 84px;
  text-align: center;
}

.hero-copy {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero h1,
.section-heading h2,
.monster-copy h2,
.start-section h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.18;
}

.hero h1 {
  width: 100%;
  font-size: clamp(38px, 6.4vw, 88px);
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 620px;
  margin: 22px auto 0;
  color: #415067;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.9;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.store-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  color: #ffffff;
  background: var(--deep-green);
  box-shadow: 0 10px 22px rgba(24, 79, 42, 0.24);
}

.secondary-button {
  color: var(--deep-green);
  background: #ffffff;
  border: 2px solid rgba(24, 79, 42, 0.12);
}

.leaf {
  position: absolute;
  width: 80px;
  height: 42px;
  border-radius: 80px 8px 80px 8px;
  background: rgba(101, 189, 82, 0.22);
  transform: rotate(-28deg);
}

.leaf-one {
  top: 54px;
  right: 70px;
}

.leaf-two {
  bottom: 70px;
  left: 62px;
  transform: rotate(22deg);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
}

.monster-section {
  width: min(1280px, calc(100% - 40px));
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2,
.monster-copy h2,
.start-section h2 {
  font-size: clamp(28px, 3.4vw, 46px);
}

.news-section {
  padding: 30px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.news-list {
  display: grid;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 76px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 8px;
  border-top: 1px solid var(--line);
}

.news-item:first-child {
  border-top: 0;
}

.news-item time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.news-item p {
  margin: 0;
  font-weight: 800;
  line-height: 1.7;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.news-tag.important {
  background: var(--red);
}

.news-tag.update {
  background: var(--green);
}

.news-tag.info {
  background: var(--blue);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.feature-card,
.mode-card {
  min-height: 230px;
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--deep-green);
  background: #e8f8df;
  font-weight: 900;
}

.feature-card h3,
.mode-card h3 {
  margin: 22px 0 10px;
  color: var(--deep-green);
  font-size: 24px;
}

.feature-card p,
.mode-card p,
.monster-copy p,
.start-section p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.72;
  word-break: normal;
  overflow-wrap: anywhere;
}

.feature-card p {
  font-size: clamp(15px, 1.25vw, 17px);
}

.keep-line {
  white-space: nowrap;
}

p .keep-line {
  white-space: normal;
}

.mobile-break {
  display: none;
}

.monster-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 44px;
  align-items: center;
  padding: clamp(36px, 5.6vw, 68px);
  border-radius: 36px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 217, 90, 0.28), transparent 30%),
    linear-gradient(135deg, var(--deep-green), #2a7c3e);
  box-shadow: var(--shadow);
}

.monster-copy h2 {
  color: #ffffff;
  max-width: 520px;
  font-size: clamp(28px, 3vw, 42px);
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: anywhere;
}

.monster-copy p {
  max-width: 590px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.evolution-flow {
  position: relative;
  min-height: 500px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 217, 90, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.evolution-card {
  position: absolute;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0;
  background: transparent;
}

.evolution-card img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.28));
}

.evolution-egg {
  left: 18px;
  bottom: 18px;
  width: min(28%, 170px);
  aspect-ratio: 1;
}

.evolution-monsters {
  top: 28px;
  right: 20px;
  width: min(66%, 430px);
  min-height: 250px;
}

.evolution-arrow {
  position: absolute;
  left: 33%;
  top: 53%;
  color: var(--yellow);
  font-size: clamp(104px, 50vw, 200px);
  font-weight: 900;
  line-height: 1;
  transform: rotate(10deg);
  text-shadow:
    0 8px 18px rgba(0, 0, 0, 0.32),
    0 0 2px rgba(255, 255, 255, 0.7);
}

.mode-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 20px;
}

.enemy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 76% 22%, rgba(243, 111, 99, 0.34), transparent 28%),
    radial-gradient(circle at 24% 82%, rgba(255, 217, 90, 0.16), transparent 30%),
    linear-gradient(135deg, #2a1622, #5a1f2e 52%, #1b1825);
  box-shadow: 0 24px 60px rgba(52, 19, 34, 0.26);
}

.enemy-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.18;
}

.enemy-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1.8;
  max-width: 560px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.enemy-shadow {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mode-card:nth-child(1) {
  background: #fff3db;
}

.mode-card:nth-child(2) {
  background: #eef9e7;
}

.mode-card:nth-child(3) {
  background: #edf4ff;
}

.mode-card:nth-child(4) {
  background: #f3edff;
}

.start-section {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 36px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.start-section p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px auto 0;
}

.store-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-buttons a {
  color: #ffffff;
  background: #9aa0a8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}

.site-footer {
  padding: 34px 20px 46px;
  color: #5d665f;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--deep-green);
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.terms-hero {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 78px) 0 24px;
  text-align: center;
}

.terms-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.18;
}

.terms-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.8;
}

.terms-card {
  width: min(980px, calc(100% - 40px));
  margin: 24px auto 72px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.terms-card h2 {
  margin: 34px 0 10px;
  color: var(--deep-green);
  font-size: 22px;
}

.terms-card h2:first-of-type {
  margin-top: 18px;
}

.terms-card p,
.terms-card li {
  color: #4f5865;
  font-weight: 700;
  line-height: 1.9;
}

.terms-card ul {
  margin: 10px 0 0;
  padding-left: 24px;
}

.terms-operator {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--deep-green);
  background: #e8f8df;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .monster-panel,
  .enemy-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .feature-grid,
  .mode-section {
    grid-template-columns: 1fr;
  }

  .keep-line {
    white-space: normal;
  }

  .evolution-flow {
    min-height: 460px;
  }

  .evolution-arrow {
    left: 47%;
    top: 50%;
    transform: rotate(-8deg);
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 8% 4%, rgba(183, 232, 122, 0.3), transparent 24%),
      var(--cream);
  }

  .site-header {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand span {
    font-size: 19px;
  }

  .site-nav a {
    padding: 8px 11px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding: 48px 18px 52px;
  }

  .hero h1 {
    font-size: clamp(27px, 7.2vw, 36px);
    white-space: normal;
    line-height: 1.12;
    overflow-wrap: normal;
  }

  .hero h1 .keep-line {
    white-space: nowrap;
  }

  .mobile-break {
    display: block;
  }

  .lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .feature-card,
  .mode-card {
    min-height: 0;
    padding: 22px;
  }

  .feature-card p,
  .mode-card p {
    font-size: 14px;
    line-height: 1.8;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .start-section p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.8;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .monster-panel,
  .enemy-section {
    gap: 26px;
    padding: 28px 20px;
    border-radius: 28px;
  }

  .monster-copy h2,
  .enemy-copy h2 {
    max-width: none;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.18;
  }

  .monster-copy h2 {
    font-size: clamp(30px, 8.6vw, 36px);
  }

  .monster-copy p,
  .enemy-copy p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.9;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .store-buttons {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .store-buttons a {
    width: 100%;
  }

  .news-section,
  .start-section {
    width: calc(100% - 28px);
    padding: 22px;
  }

  .section {
    width: calc(100% - 28px);
    margin-bottom: 52px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: flex-start;
  }

  .evolution-flow {
    min-height: 330px;
    border-radius: 24px;
  }

  .evolution-egg {
    left: 12px;
    bottom: 18px;
    width: 32%;
  }

  .evolution-monsters {
    top: 24px;
    right: 10px;
    width: 70%;
    min-height: 180px;
  }

  .evolution-arrow {
    left: 43%;
    top: 48%;
    font-size: clamp(76px, 24vw, 94px);
  }

  .enemy-shadow {
    max-height: 360px;
  }

  .terms-hero,
  .terms-card {
    width: calc(100% - 28px);
  }

  .terms-card {
    padding: 22px;
  }
}
