:root {
  --ink: #271915;
  --muted: #725f57;
  --paper: #fff7e8;
  --cream: #ffe8b8;
  --tomato: #f25d2a;
  --leaf: #2f8b57;
  --berry: #9c3154;
  --gold: #f5b83f;
  --line: rgba(39, 25, 21, 0.14);
  --shadow: 0 24px 70px rgba(94, 52, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif TC", "Songti TC", "Microsoft JhengHei", serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 184, 63, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(47, 139, 87, 0.14), transparent 24rem),
    linear-gradient(180deg, #fff6e1 0%, #fffaf1 42%, #fff3de 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fffaf0;
  font-size: 22px;
  background: var(--tomato);
  border: 2px solid rgba(39, 25, 21, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(242, 93, 42, 0.24);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--tomato);
}

.nav-cta,
.ghost-button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-family: "Microsoft JhengHei", sans-serif;
  font-weight: 900;
  white-space: nowrap;
}

.nav-cta {
  padding: 0 20px;
  color: #fff8e8;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 24px 0 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(54px, 7.2vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.play-button {
  gap: 12px;
  padding: 0 24px;
  color: #fff8e9;
  background: linear-gradient(135deg, var(--tomato), var(--berry));
  box-shadow: 0 18px 42px rgba(242, 93, 42, 0.28);
}

.play-button[aria-disabled="true"],
.nav-cta[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.play-button.dark {
  color: #fff8e9;
  background: var(--ink);
  box-shadow: none;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.ghost-button {
  padding: 0 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

.hero-art {
  position: relative;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  inset: 8% -4% -6% 8%;
  z-index: -1;
  content: "";
  background: #f8c85a;
  border-radius: 34px;
  transform: rotate(2.5deg);
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 100%;
  border: 8px solid rgba(255, 248, 232, 0.92);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.quick-strip div {
  padding: 24px;
  background: rgba(255, 252, 244, 0.78);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.quick-strip span {
  color: var(--muted);
  font-family: "Microsoft JhengHei", sans-serif;
  line-height: 1.55;
}

.section,
.gameplay,
.download-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 32px 0 78px;
}

.section-heading {
  max-width: 720px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.feature-grid article {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 252, 244, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(71, 41, 24, 0.08);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--tomato);
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 900;
}

.feature-grid p,
.gameplay-copy p,
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

.gameplay {
  display: grid;
  grid-template-columns: minmax(310px, 430px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 68px 0 90px;
}

.phone-frame {
  padding: 20px;
  background: #2a1b16;
  border: 8px solid #120d0b;
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(39, 25, 21, 0.28);
}

.phone-top {
  width: 90px;
  height: 8px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.tile-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: #fff3d4;
  border-radius: 22px;
}

.tile-board span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: #4d2b1f;
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  font-weight: 900;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(145deg, #ffd45e, #f47a3d);
  border: 2px solid rgba(92, 45, 26, 0.18);
  border-radius: 18px;
  box-shadow: inset 0 -8px 18px rgba(108, 42, 19, 0.12);
}

.tile-board span:nth-child(2n) {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(145deg, #98d979, #2f8b57);
}

.tile-board span:nth-child(3n) {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(145deg, #ffd0d8, #9c3154);
}

.order-bar {
  margin-top: 14px;
  padding: 16px;
  color: #fff8e9;
  font-family: "Microsoft JhengHei", sans-serif;
  font-weight: 900;
  text-align: center;
  background: var(--tomato);
  border-radius: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  font-family: "Microsoft JhengHei", sans-serif;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--leaf);
  content: "✓";
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 82px;
  padding: 36px;
  color: #fff8e9;
  background:
    linear-gradient(135deg, rgba(39, 25, 21, 0.9), rgba(86, 39, 28, 0.92)),
    url("assets/hero-cooking-merge.webp") center/cover;
  border-radius: 8px;
  overflow: hidden;
}

.download-band .eyebrow,
.download-band h2 {
  color: #fff8e9;
}

.download-band h2 {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "Microsoft JhengHei", sans-serif;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  font-weight: 800;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.legal-card {
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255, 252, 244, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: none;
  font-size: clamp(42px, 6vw, 72px);
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 28px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-art {
    order: -1;
  }

  .hero-art::before {
    inset: 9% 0 -4% 4%;
    border-radius: 24px;
  }

  .hero-art img {
    border-width: 5px;
    border-radius: 22px;
  }

  .quick-strip,
  .feature-grid,
  .gameplay {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    margin-bottom: 50px;
  }

  .gameplay {
    gap: 36px;
    padding-top: 32px;
  }

  .download-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 18px;
  }

  .nav-links {
    font-size: 14px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions,
  .play-button,
  .ghost-button {
    width: 100%;
  }

  .quick-strip div,
  .feature-grid article,
  .download-band {
    padding: 22px;
  }

  .phone-frame {
    padding: 14px;
    border-width: 6px;
  }

  .tile-board {
    gap: 8px;
  }

  .tile-board span {
    font-size: 13px;
    border-radius: 14px;
  }
}
