/* The reading pages around the game: guides, about, policies. Plain documents, no script. */
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('/fonts/baloo-2-vietnamese-800-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('/fonts/baloo-2-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --red: #e5352b; --ink: #2b1a12; --paper: #fff8ea; --card: #ffffff; --line: #ead9bd; --soft: #6b5546; --gold: #f5b301; --blue: #1c7ed6; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: #b3261e; text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3, .brand, .cta { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 10px; }
h2 { font-size: clamp(23px, 4.4vw, 30px); margin: 44px 0 10px; padding-top: 6px; }
h3 { font-size: 20px; margin: 26px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 18px; }

.top { background: var(--red); color: #fff; border-bottom: 4px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; max-width: 1040px; }
.brand { color: #fff; text-decoration: none; font-size: 22px; white-space: nowrap; text-shadow: 2px 2px 0 var(--ink); }
.brand:hover { color: #fff; }
.top nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { background: rgba(43, 26, 18, 0.28); color: #fff; }
.cta { display: inline-block; background: var(--gold); color: var(--ink); text-decoration: none; padding: 7px 18px; border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink); font-size: 17px; white-space: nowrap; }
.cta:hover { color: var(--ink); transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); }
.cta.big { font-size: 22px; padding: 10px 30px; }
/* a phone has no room for the menu beside the name: it gets a row of its own that slides sideways */
@media (max-width: 860px) {
  .top { position: static; }
  .top .wrap { flex-wrap: wrap; justify-content: space-between; row-gap: 6px; }
  .top nav { order: 3; flex: 0 0 100%; margin: 0 -6px; }
}

main { padding: 28px 0 50px; }
.crumb { font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.crumb a { color: var(--soft); }
.lead { font-size: 19px; color: #4a3528; }
.hero { border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; margin: 18px 0 22px; background: #bfe3f2; box-shadow: 0 6px 0 var(--ink); }
.hero img { display: block; width: 100%; }
figure { margin: 20px 0; }
figure img { display: block; border: 3px solid var(--ink); border-radius: 14px; background: #fff; margin: 0 auto; }
figcaption { font-size: 14px; color: var(--soft); text-align: center; margin-top: 6px; }
.box { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.box.tip { border-color: var(--gold); background: #fff6d6; }
.box > :last-child { margin-bottom: 0; }
.play { text-align: center; margin: 34px 0 6px; }
.toc { columns: 2; column-gap: 28px; padding-left: 20px; }
@media (max-width: 560px) { .toc { columns: 1; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; padding: 0; list-style: none; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; display: flex; gap: 12px; align-items: flex-start; }
.card img { width: 76px; height: 76px; object-fit: contain; flex: none; }
.card h3 { margin: 0 0 2px; font-size: 18px; }
.card p { margin: 0 0 4px; font-size: 15px; line-height: 1.45; }
.card .price { display: inline-block; font-size: 13px; font-weight: 700; background: #fff1c2; border-radius: 999px; padding: 0 9px; margin-bottom: 4px; }
.card .quote { color: var(--soft); font-style: italic; }
.hub { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hub .card { flex-direction: column; text-decoration: none; color: inherit; gap: 4px; }
.hub .card:hover { border-color: var(--red); }
.hub .card b { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 19px; color: #b3261e; }

.tbl { overflow-x: auto; margin: 18px 0; border: 2px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fff1c2; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td img { width: 64px; min-width: 64px; height: 48px; object-fit: contain; display: block; }
td.n { white-space: nowrap; font-weight: 700; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-width: 2px; }

footer { background: var(--ink); color: #f3e3cf; padding: 28px 0 34px; font-size: 15px; }
footer a { color: #ffd98a; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin-bottom: 18px; }
footer h2 { font-size: 17px; margin: 0 0 6px; padding: 0; color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer small { opacity: 0.75; }

/* the front page */
.home-hero { text-align: center; }
.home-hero .hero { display: block; max-width: 520px; margin: 0 auto 14px; }
/* the cover is cut to a strip so the name and the way in sit on the first screen of a phone */
.home-hero .hero img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 72%; }
.home-hero .cta { margin: 4px 0 8px; }
.home-hero h1 { font-size: clamp(38px, 9vw, 60px); color: var(--red); text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
.home-hero .lead { max-width: 640px; margin: 0 auto 18px; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--red); }
.news .card small { color: var(--soft); font-weight: 700; }
