/* www.landgame.app: the game's own look (navy outlines, hard shadows, sun yellow, Nunito) on a calm page */
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --ink: #03205C; --ink2: #3E5587; --paper: #fffdf7; --sun: #FDE22E; --sky: #4aa8ee; --mint: #39D1A5; --pink: #FD72AB;
  --line: 3px solid var(--ink); --font: "Nunito", ui-rounded, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans", "Apple SD Gothic Neo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 600 17px/1.5 var(--font);
  background-image: radial-gradient(rgba(3, 32, 92, .07) 1.2px, transparent 1.4px); background-size: 22px 22px;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 22%; border: 2.5px solid var(--ink); }
.brand span { font-size: 30px; font-weight: 1000; color: var(--sun); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); letter-spacing: 1px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 2px 0 var(--ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 6px; list-style: none; background: #fff; border: var(--line); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); min-width: 160px; }
.langs li a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.langs li a:hover { background: #fff6c2; }
.langs li a[aria-current] { background: var(--sun); }

/* hero */
.hero { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(38px, 9vw, 66px); line-height: 1.05; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink2); max-width: 34em; margin: 16px 0 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: block; line-height: 0; border-radius: 10px; transition: transform .15s; }
.badge img { height: 52px; width: auto; }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: scale(.97); }
.web { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 900; text-decoration: none; border-bottom: 2.5px solid var(--sun); padding-bottom: 1px; }
.web:hover { border-bottom-color: var(--ink); }

.hero-art { position: relative; height: min(450px, 112vw); max-width: 420px; width: 100%; margin: 0 auto; }
.phone { margin: 0; border: 4px solid var(--ink); border-radius: 34px; overflow: hidden; background: #fff; box-shadow: 0 8px 0 var(--ink); aspect-ratio: 600 / 1304; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art .phone { position: absolute; width: min(190px, 46vw); }
.hero-art .front { left: 50%; top: 0; transform: translateX(-30%) rotate(4deg); z-index: 2; }
.hero-art .back { left: 50%; top: 28px; transform: translateX(-88%) rotate(-7deg); opacity: .96; }
.pin { position: absolute; z-index: 3; width: 38px; height: 38px; border-radius: 50% 50% 50% 0; border: 3px solid var(--ink); transform: rotate(-45deg); box-shadow: 2px 3px 0 var(--ink); }
.pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); }
.pin.p1 { background: var(--pink); right: 4%; top: 64px; animation: bob 3.2s ease-in-out infinite; }
.pin.p2 { background: var(--mint); left: 2%; bottom: 58px; animation: bob 3.6s ease-in-out .6s infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* how to play */
.how, .more { padding-top: 40px; padding-bottom: 40px; }
.how h2, .more h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step { display: grid; gap: 18px; align-items: center; background: #fff; border: var(--line); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); padding: 24px 22px 0; overflow: hidden; }
.step-text { max-width: 30em; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); border: var(--line); font-weight: 1000; font-size: 22px; margin-bottom: 10px; }
.step h3 { font-size: 26px; line-height: 1.15; }
.step p { color: var(--ink2); margin: 8px 0 0; }
.step .phone { width: min(230px, 70%); margin: 0 auto; border-bottom: 0; border-radius: 30px 30px 0 0; box-shadow: none; aspect-ratio: 600 / 900; }
.step .phone img { object-position: top; }
.step:nth-child(2) { background: #fff8cf; }
.step:nth-child(3) { background: #e6f3ff; }

/* more */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(62%, 240px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .phone { scroll-snap-align: start; border-radius: 28px; box-shadow: 0 6px 0 var(--ink); }

/* call to action */
.cta { background: var(--sun); border-top: var(--line); border-bottom: var(--line); margin-top: 30px; padding: 48px 0; text-align: center; }
.cta h2 { font-size: clamp(30px, 6vw, 50px); line-height: 1.1; margin-bottom: 24px; }
.cta .badges { justify-content: center; }
.cta .web { border-bottom-color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 26px; padding-bottom: 40px; color: var(--ink2); font-size: 15px; }
.foot a { text-decoration: none; font-weight: 800; }
.foot a:hover { text-decoration: underline; }
.foot span { margin-left: auto; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 48px; padding-bottom: 64px; }
  .hero-art { height: 560px; }
  .hero-art .phone { width: 245px; }
  .step { grid-template-columns: 1fr 260px; padding: 0 0 0 40px; min-height: 300px; }
  .step .phone { width: 220px; align-self: end; margin-top: 36px; }
  .step:nth-child(2) { grid-template-columns: 260px 1fr; padding: 0 40px 0 0; }
  .step:nth-child(2) .phone { order: -1; }
  .step h3 { font-size: 36px; }
  .step p { font-size: 20px; }
  .num { width: 52px; height: 52px; font-size: 26px; }
  .strip .phone { aspect-ratio: 600 / 1000; }
  .strip .phone img { object-position: bottom; }
  .strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .pin { animation: none; } .badge { transition: none; } }
/* CJK headlines: a bit smaller (no spaces to wrap at), and Japanese breaks at phrase boundaries where supported */
:lang(ja) h1, :lang(zh-CN) h1, :lang(zh-TW) h1, :lang(ko) h1 { font-size: clamp(34px, 7.5vw, 56px); line-height: 1.15; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
