/* Text pages: privacy, about, contact, game guides and the 404 page. Shares the homepage colours and fonts. */
:root {
  --sun: #ffd84d;
  --ink: #231a12;
  --ink-soft: #5b4a36;
  --paper: #ffffff;
  --cream: #fffaf0;
  --line: #efe6cf;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "PingFang TC", "Noto Sans TC", sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: #e0b400; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--sun); color: var(--ink); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--sun); border-radius: 10px; }
.skip:focus { top: 12px; }

.top-wrap { background: var(--sun); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 18px var(--pad); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.mark img { width: 32px; height: 32px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.9375rem; font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ink); }

.doc { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--pad) 24px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.doc h2 { margin: 2.2em 0 0.5em; font-size: 1.375rem; font-weight: 800; line-height: 1.35; }
.doc h3 { margin: 1.6em 0 0.4em; font-size: 1.125rem; font-weight: 800; }
.doc p, .doc ul, .doc ol { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 0.4em; }
.doc .lede { font-size: 1.1875rem; color: var(--ink-soft); }
.doc .muted { color: var(--ink-soft); font-size: 0.9375rem; }
.doc hr { border: 0; border-top: 2px solid var(--line); margin: 3em 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 800; background: var(--cream); }
.table-scroll { overflow-x: auto; }

.cover { margin: 24px 0 28px; border-radius: 24px; overflow: hidden; background: var(--cream); aspect-ratio: 16 / 9; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 99px; background: var(--ink); color: var(--sun); font-weight: 800; text-decoration: none; }
.play-btn:hover { background: #3d2e20; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.facts li { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--cream); font-size: 0.9375rem; line-height: 1.5; }
.facts b { display: block; font-size: 0.8125rem; color: var(--ink-soft); font-weight: 500; }
.tip { padding: 16px 20px; border-radius: 16px; background: var(--cream); border-left: 6px solid var(--sun); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; padding: 18px 20px; border: 2px solid var(--line); border-radius: 20px; text-decoration: none; }
.cards a:hover { border-color: var(--ink); }
.cards strong { display: block; font-size: 1.0625rem; }
.cards span { display: block; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }

.site-foot { max-width: 1280px; margin: clamp(48px, 8vw, 88px) auto 0; padding: 24px var(--pad) 40px; border-top: 2px solid var(--line); color: var(--ink-soft); font-size: 0.875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot a { color: var(--ink); font-weight: 500; }

@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; gap: 8px; }
}
