:root {
  color-scheme: light;
  --ink: #173540;
  --muted: #485f67;
  --deep: #133b48;
  --jade: #1b5962;
  --sky: #e6f5f8;
  --paper: #fbfdfc;
  --line: #d8e5e6;
  --section-space: clamp(60px, 8vw, 116px);
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, dd { line-height: 1.75; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

h1, h2, h3 { text-wrap: balance; }
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  line-height: 1.2;
}
h3 { font-size: 1.375rem; line-height: 1.35; }

.wrap { width: min(calc(100% - clamp(36px, 9vw, 120px)), 1240px); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.skip-link {
  position: fixed;
  z-index: 2;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}
.brand img { border-radius: 10px; }
.site-header nav { display: flex; gap: clamp(16px, 4vw, 46px); }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .35em; }

.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(115deg, #ecf8fa 6%, var(--sky) 44%, #a3d6e7);
}
.hero-landscape {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(84%, 1450px);
  height: 100%;
  object-fit: cover;
  object-position: center 67%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 55%);
  mask-image: linear-gradient(to right, transparent, #000 55%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 54px);
  min-height: clamp(460px, 44vw, 600px);
  padding-block: clamp(36px, 5vw, 72px);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  line-height: 1.09;
  letter-spacing: -.025em;
}
.hero p {
  max-width: 24em;
  margin-top: 24px;
  color: #31545e;
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
}
.hero-mascot {
  justify-self: center;
  width: min(96%, 448px);
  filter: drop-shadow(0 16px 20px rgb(29 64 76 / .17));
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--jade);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: var(--deep); }
.button:focus-visible { outline-color: var(--ink); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(24px, 3vw, 40px);
}
.game {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.game img { width: 100%; background: var(--deep); }
.game-copy { padding: clamp(16px, 2vw, 24px); }
.game p { margin-top: 8px; color: var(--muted); }

.features {
  background: #eaf4f2;
  border-block: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
}
dl { margin-top: 28px; }
dl div { padding-block: 14px; border-top: 1px solid var(--line); }
dl div:last-child { padding-bottom: 0; }
dt { font-size: 1.125rem; font-weight: 700; }
dd { margin-top: 4px; color: var(--muted); }
.lobby-screen {
  width: 100%;
  border: 6px solid #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgb(19 59 72 / .13);
  background: #b3d9e6;
}

.support-panel {
  display: grid;
  grid-template-columns: 6fr 4fr;
  align-items: center;
  gap: clamp(28px, 7vw, 108px);
  padding: clamp(24px, 5.5vw, 74px);
  border-radius: 18px;
  background: var(--deep);
  color: #fff;
}
.support-panel p { margin-top: 16px; }
.support-panel p, .support-panel dd { color: #d8e9ed; }
.support-panel dl { margin: 0; }
.support-panel dl div { border-color: #54747d; }
.button-light { background: #f6e9d2; color: var(--deep); overflow-wrap: anywhere; }
.button-light:hover { background: #fff5e4; }
.button-light:focus-visible { outline-color: #f6e9d2; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-block: 24px;
  font-size: .9375rem;
}
.footer-inner p:first-child { font-weight: 700; }

@media (max-width: 780px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding-block: 44px 24px;
  }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4.75rem); }
  .hero p { margin-top: 14px; }
  .hero-landscape {
    inset: auto 0 0;
    width: 100%;
    height: 62%;
    object-position: center bottom;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
    mask-image: linear-gradient(to bottom, transparent, #000 38%);
  }
  .hero-mascot { width: min(70%, 320px); }
  .game-grid, .feature-grid, .support-panel { grid-template-columns: minmax(0, 1fr); }
  .game-grid { max-width: 600px; }
}

@media (max-width: 520px) {
  .header-inner { align-items: stretch; flex-direction: column; gap: 6px; padding-top: 12px; }
  .brand { align-self: flex-start; }
  .site-header nav { justify-content: space-between; }
  .footer-inner { flex-direction: column; }
}
