/* The official page (tools/site/build.mjs): the title screen's look — the ink panel under a gold edge, the name in gold
   italics, the court's teal — on a page that reads on a phone first. @hero is the court art, put in by the build. */
:root {
  --ink: #0b1316; --bg: #0f191d; --panel: #131e22; --court: #18353d; --court2: #12262c;
  --gold: #fbc75a; --gold2: #efad38; --cream: #fff4d8; --text: #d5d2c4; --mute: #94a3a1; --line: #26373d;
  --blue: #3d7fe0; --red: #e0503d;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif;
}
:lang(th) { --sans: system-ui, -apple-system, 'Segoe UI', 'Noto Sans Thai', 'Leelawadee UI', Thonburi, Roboto, Arial, sans-serif; }
:lang(zh-Hant) { --sans: system-ui, -apple-system, 'PingFang TC', 'Noto Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', sans-serif; }
:lang(zh-Hans) { --sans: system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--sans); overflow-wrap: break-word; }
:lang(th) body { line-height: 1.85; }
img { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- the bar ---- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(11, 19, 22, 0.94); box-shadow: inset 0 -2px #b4914a, 0 2px 0 #080f12; }
.bar-in { display: flex; align-items: center; gap: 20px; height: 56px; }
.bar-brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 900; font-style: italic; font-size: 18px; text-decoration: none; white-space: nowrap; letter-spacing: 0.02em; }
.bar-brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px #3a4a4f; }
.bar-nav { display: flex; gap: 22px; margin-left: auto; }
.bar-nav a { color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bar-nav a:hover, .bar-nav a[aria-current] { color: var(--gold); }
.langs { display: flex; gap: 2px; padding: 3px; background: #0a1114; box-shadow: inset 0 0 0 1px var(--line); }
.langs a { padding: 3px 9px; color: var(--mute); font-size: 13px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.langs a:hover { color: var(--cream); }
.langs a[aria-current] { color: #241c1b; background: var(--gold); }

/* ---- the hero ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--court); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url(court.702997adc6.jpg) center / cover no-repeat; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 19, 22, 0.93), rgba(11, 19, 22, 0.74) 46%, rgba(11, 19, 22, 0.22)), linear-gradient(0deg, var(--bg), rgba(15, 25, 29, 0) 34%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 104px; }
.brand { position: relative; display: inline-block; margin-left: 16px; padding: 12px 30px 18px 22px; isolation: isolate; }
.brand::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--panel);
  border-top: 4px solid var(--gold); border-bottom: 1px solid rgba(255, 224, 145, 0.3);
  transform: skewX(-10deg); box-shadow: 7px 7px 0 rgba(9, 18, 22, 0.42);
}
.brand::after { content: ''; position: absolute; left: -13px; top: 0; bottom: 0; width: 6px; background: var(--gold); transform: skewX(-10deg); }
.brand-name { margin: 0; color: var(--gold); font-size: clamp(42px, 5vw, 64px); font-style: italic; font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; text-shadow: 3px 4px 0 #080f12; }
.brand-name span { display: block; white-space: nowrap; }
:lang(zh) .brand-name { font-size: clamp(52px, 7.4vw, 88px); line-height: 1.2; letter-spacing: 0; }
.brand-sub { margin: 8px 0 0; color: var(--cream); font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0.3em; text-transform: uppercase; }
:lang(th) .brand-sub { letter-spacing: 0.04em; font-size: 15px; }
.hero-lead { margin: 30px 0 30px; max-width: 31em; color: var(--cream); font-size: 18px; text-shadow: 0 1px 3px #080f12; }
.stores { display: flex; flex-wrap: wrap; gap: 18px; padding-left: 6px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 178px; height: 60px; padding: 0 24px;
  color: #241c1b; background: linear-gradient(110deg, #ffda69, var(--gold2)); text-decoration: none;
  box-shadow: 0 0 0 2px #1a0a04, 6px 6px 0 rgba(9, 18, 22, 0.55); transform: skewX(-8deg);
}
.store > * { transform: skewX(8deg); white-space: nowrap; }
.store small { font-size: 12px; line-height: 16px; font-weight: 700; opacity: 0.82; }
.store b { font-size: 20px; line-height: 24px; font-weight: 800; }
a.store:hover { color: #241c1b; filter: brightness(1.07); }
.store.is-soon { color: var(--cream); background: #1a272c; box-shadow: 0 0 0 2px #0a1114, inset 0 0 0 1px #4d5f60, 6px 6px 0 rgba(9, 18, 22, 0.55); }
.store.is-soon small { color: var(--gold); opacity: 1; }
.phone { margin: 0; padding: 10px; border-radius: 28px; background: #0a1114; transform: rotate(-2deg); box-shadow: 0 0 0 2px #2c3a3f, 14px 14px 0 var(--gold), 0 34px 60px rgba(0, 0, 0, 0.45); }
.phone img, .shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.phone img { border-radius: 18px; }

/* ---- what the game is ---- */
.feat { padding: 84px 0; }
.feat:nth-of-type(even) { background: var(--court2); }
.feat-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.feat.is-flip .feat-text { order: 2; }
.feat-no { color: var(--gold); font-size: 15px; font-style: italic; font-weight: 900; line-height: 1; letter-spacing: 0.22em; }
.feat h2 { margin: 12px 0 22px; color: var(--cream); font-size: clamp(26px, 3.3vw, 38px); font-style: italic; font-weight: 900; line-height: 1.25; text-wrap: balance; }
:lang(th) .feat h2 { font-style: normal; line-height: 1.45; }
.feat h2::after { content: ''; display: block; width: 58px; height: 5px; margin-top: 16px; background: var(--gold); transform: skewX(-24deg); }
.feat p { margin: 0 0 14px; font-size: 17px; }
.feat ul { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 17px; }
.feat li { position: relative; padding-left: 24px; }
.feat li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 11px; height: 11px; margin-top: -3px; background: var(--gold); transform: skewX(-14deg); }
.feat li b { color: var(--cream); }
.shot { margin: 0 14px 14px 0; }
.shot img { box-shadow: 0 0 0 3px #0a1114, 14px 14px 0 var(--blue); }
.feat:nth-of-type(even) .shot img { box-shadow: 0 0 0 3px #0a1114, 14px 14px 0 var(--red); }

/* ---- the last call ---- */
.cta { padding: 76px 0 84px; text-align: center; background: linear-gradient(0deg, rgba(11, 19, 22, 0.55), rgba(11, 19, 22, 0.55)), var(--court); box-shadow: inset 0 4px var(--gold); }
.cta h2 { margin: 0 0 28px; color: var(--gold); font-size: clamp(30px, 4.6vw, 48px); font-style: italic; font-weight: 900; line-height: 1.2; text-shadow: 3px 4px 0 #080f12; }
:lang(th) .cta h2 { font-style: normal; line-height: 1.5; }
.cta .stores { justify-content: center; padding: 0; }
.cta .store { text-align: left; }
.cta-note { max-width: 44em; margin: 34px auto 0; color: var(--mute); font-size: 14px; }

/* ---- the foot ---- */
.foot { padding: 40px 0 48px; background: var(--ink); color: var(--mute); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font-weight: 800; font-size: 16px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--cream); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--gold); }
.foot-mail { margin: 10px 0 0; }
.foot-copy { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---- the texts: 用户协议, 隐私政策, 客服 ---- */
.doc { max-width: 792px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { margin: 0 0 12px; color: var(--gold); font-size: clamp(28px, 4.4vw, 40px); font-style: italic; font-weight: 900; line-height: 1.25; }
:lang(th) .doc h1 { font-style: normal; line-height: 1.5; }
.doc h2 { margin: 46px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--cream); font-size: 21px; font-weight: 800; line-height: 1.4; }
.doc h3 { margin: 26px 0 10px; color: var(--cream); font-size: 17px; font-weight: 700; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.4em; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--gold); }
.doc .n { display: grid; grid-template-columns: 2em minmax(0, 1fr); margin: 0 0 12px; }
.doc .n > span:first-child { color: var(--gold); font-weight: 700; }
.doc .sub { margin: -4px 0 14px 2em; }
.doc-lead { color: var(--cream); font-size: 18px; }
.card { margin: 28px 0 0; padding: 26px 28px 16px; background: var(--panel); border-top: 4px solid var(--gold); box-shadow: 7px 7px 0 rgba(9, 18, 22, 0.42); }
.card h2 { margin: 0 0 14px; padding: 0; border: 0; }
.mail { font-weight: 700; white-space: nowrap; }

.lost { padding: 120px 24px 160px; text-align: center; }
.lost h1 { margin: 0 0 10px; color: var(--gold); font-size: 52px; font-style: italic; font-weight: 900; text-shadow: 3px 4px 0 #080f12; }

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .bar-in { gap: 12px; }
  .bar-nav { display: none; }
  .langs { margin-left: auto; }
  .bar-brand span { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 44px; padding-bottom: 72px; }
  .hero::after { background: linear-gradient(0deg, var(--bg), rgba(11, 19, 22, 0.82) 30%, rgba(11, 19, 22, 0.7)); }
  .hero-lead { font-size: 17px; margin: 26px 0; }
  .phone { margin: 0 14px 14px 4px; padding: 7px; border-radius: 20px; transform: none; box-shadow: 0 0 0 2px #2c3a3f, 10px 10px 0 var(--gold); }
  .phone img { border-radius: 13px; }
  .feat { padding: 56px 0; }
  .feat-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feat.is-flip .feat-text { order: 0; }
  .shot { margin: 0 10px 10px 0; }
  .shot img, .feat:nth-of-type(even) .shot img { box-shadow: 0 0 0 3px #0a1114, 10px 10px 0 var(--blue); }
  .feat:nth-of-type(even) .shot img { box-shadow: 0 0 0 3px #0a1114, 10px 10px 0 var(--red); }
  .stores { gap: 14px; }
  .store { min-width: 150px; height: 56px; padding: 0 18px; }
  .store b { font-size: 18px; }
  .doc { padding: 36px 20px 72px; }
  .card { padding: 22px 16px 12px; }
  .card .mail { font-size: 15px; letter-spacing: -0.01em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
