/* PLAYER GUIDE (owner, November 8: "Need tutorials and everything made for users in detail with images step by step ... easier
   resources for players to see purchase, and play things throughout the map"): printer.world/guide (the step-by-step guide)
   and printer.world/guide/map (the world map with every place, game, shop and rental). The homepage's look (world-front.css):
   paper, ink, one blue, Plex. Light only, as the homepage. */
@font-face { font-family: Plex; src: url('/home-assets/assets/plex-sans-latin.woff2') format('woff2'); font-style: normal; font-weight: 100 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #fbf7ed; --paper-2: #f3ecdb; --paper-3: #e9e0c9; --card: #fffdf7;
  --ink: #1c2940; --muted: #46556a; --line: #d8d0bc; --line-2: #e6dfcd;
  --blue: #2443d4; --blue-ink: #1934b1; --blue-soft: #e8ecfd;
  --green: #2f6b3a; --green-soft: #e4f1e2; --gold: #a76a00; --gold-soft: #fff1cc; --red: #a3312a; --red-soft: #fbe5e1;
  --violet: #6a3fc1; --violet-soft: #efe7fd; --teal: #0f6e78; --teal-soft: #dff2f3;
  --r: 8px; --r-lg: 12px;
  --shadow: 0 1px 2px rgba(28, 41, 64, .06), 0 8px 24px rgba(28, 41, 64, .08);
  background: var(--paper); color: var(--ink);
  font: 17px/1.55 Plex, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, ul, ol, dl { margin: 0; }
.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 16px; z-index: 50; padding: 12px; background: #fff; transform: translateY(-150%); }
.skip:focus { transform: none; }
kbd { display: inline-block; min-width: 1.7em; padding: 1px 6px; border: 1px solid #bdb39b; border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 600 .82em/1.5 Plex, system-ui, sans-serif; text-align: center; color: var(--ink); white-space: nowrap; }

/* Header and footer (as the homepage) */
.bar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand img { width: 34px; height: 34px; image-rendering: pixelated; }
.brand small { font-weight: 500; color: var(--muted); }
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: #9babc2; }
.bar nav a[aria-current="page"] { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.bar nav a:hover { text-decoration-color: currentColor; }
.play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 6px; background: var(--blue); color: #fff !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; border: 0; cursor: pointer; font-size: 16px; }
.play:hover { background: var(--blue-ink); }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 6px; border: 1px solid #a6aebf; color: var(--ink); background: transparent; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; font: inherit; font-weight: 700; }
.ghost:hover { background: #eeeae0; }
.sec .ghost { white-space: normal; text-align: left; padding-block: 10px; max-width: 100%; }
.site-foot { border-top: 1px solid var(--line); margin-top: 56px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; min-height: 76px; font-size: 14px; }
.site-foot a { color: var(--ink); text-decoration: none; padding-block: 10px; }
.site-foot a:hover { text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 64px) 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.hero h1 { margin-top: 10px; font-size: clamp(42px, 5.4vw, 76px); line-height: .95; letter-spacing: -.055em; }
.hero p.lead { margin-top: 16px; max-width: 34ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero figure { border-radius: var(--r-lg); overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow); }
.hero figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts span::before { content: ''; width: 8px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-2px); }

/* The three ways in */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 8px; }
@media (max-width: 1180px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* GUIDE NOV 14: a fourth door, What is new */
.door { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.door:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.door .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); }
.door .ic svg { width: 24px; height: 24px; }
.door strong { display: block; font-size: 17px; }
.door span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.door b { color: var(--blue); font-size: 20px; }

/* Page body: the contents on the left, the reading column on the right */
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 36px; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; padding: 4px 4px 12px 0; font-size: 14px; }
.toc details > summary { display: none; }
.toc h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.toc li a::before { counter-increment: toc; content: counter(toc); color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.toc li a:hover { background: var(--paper-2); }
.toc li a[aria-current="true"] { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.toc .toc-map { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.toc .toc-map:hover { border-color: var(--blue); }
.read { min-width: 0; max-width: 820px; }

/* Sections */
.sec { padding: 8px 0 44px; border-bottom: 1px solid var(--line-2); margin-bottom: 40px; }
.sec:last-child { border-bottom: 0; }
.sec > .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.sec > h2 { margin-top: 6px; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.sec > p.intro { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 62ch; }
.sec h3 { margin-top: 30px; font-size: 21px; letter-spacing: -.015em; line-height: 1.25; }
.sec p { margin-top: 10px; }
.sec ul, .sec ol { margin-top: 10px; padding-left: 22px; }
.sec li { margin-top: 4px; }

/* Numbered steps with a picture */
.steps { list-style: none; padding: 0 !important; margin-top: 22px !important; display: grid; gap: 22px; counter-reset: step; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.step h3 { margin-top: 6px; font-size: 19px; }
.step .shot { margin-top: 12px; }
.shot { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot figcaption { padding: 9px 12px; font-size: 14px; color: var(--muted); background: var(--card); border-top: 1px solid var(--line-2); }
.shots-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.shot.narrow { max-width: 380px; }
.shot.phone { max-width: 300px; border-radius: 22px; }

/* Callouts */
.note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--blue-soft); font-size: 16px; }
.note::before { content: 'i'; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; font-style: italic; font-family: Georgia, serif; }
.note.good { background: var(--green-soft); } .note.good::before { content: '✓'; background: var(--green); font-style: normal; font-family: inherit; }
.note.warn { background: var(--gold-soft); } .note.warn::before { content: '!'; background: var(--gold); font-style: normal; font-family: inherit; }
.note p { margin: 0; } .note p + p { margin-top: 6px; }

/* The screen explained: a picture with numbered pins */
.hudbox { margin-top: 18px; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.annot { position: relative; margin-top: 12px; }
.annot .shot { margin: 0; }
.annot.phone-view { max-width: 340px; }
.pin { position: absolute; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid #fff; background: #e0312b; color: #fff; font: 700 13px/24px Plex, system-ui, sans-serif; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: pointer; padding: 0; }
.pin:hover, .pin[aria-expanded="true"] { background: var(--blue); transform: scale(1.12); }
.legend { list-style: none; padding: 0 !important; margin-top: 16px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.legend li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; margin: 0; font-size: 15px; line-height: 1.4; padding: 6px 8px; border-radius: 8px; }
.legend li.on { background: var(--blue-soft); }
.legend li b.n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e0312b; color: #fff; font-size: 12px; }
.legend li.on b.n { background: var(--blue); }
.legend strong { display: block; }

/* Tables */
.tablewrap { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
thead th { background: var(--paper-2); font-size: 13px; letter-spacing: .03em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td.k { white-space: nowrap; }
td small, th small { display: block; color: var(--muted); font-weight: 400; }

/* Pills for money */
.cur { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cur::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cur.free { background: var(--green-soft); color: var(--green); }
.cur.ink { background: var(--violet-soft); color: var(--violet); }
.cur.xp { background: var(--teal-soft); color: var(--teal); }
.cur.printer { background: var(--gold-soft); color: var(--gold); }
.cur.sol { background: var(--blue-soft); color: var(--blue-ink); }
.cur.chips { background: var(--red-soft); color: var(--red); }
.cur.card { background: #ece9f8; color: #3c2f86; }

/* Cards (games, things to buy) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-3); }
.card .body { padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; }
.card h3 { margin: 0; font-size: 19px; }
.card .where { font-size: 14px; color: var(--muted); }
.card p { margin: 0; font-size: 15px; }
.card ol, .card ul { margin: 0; padding-left: 20px; font-size: 15px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 600; font-size: 15px; }

/* What can I buy: filters and the list */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.buylist { display: grid; gap: 10px; margin-top: 14px; }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.buy h4 { font-size: 17px; }
.buy .price { text-align: right; font-weight: 700; white-space: nowrap; }
.buy .price small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.buy .what { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin: 0; }
.buy .how { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.buy .how span { display: inline-flex; gap: 6px; align-items: baseline; }
.buy .how b { font-weight: 700; color: var(--ink); }
.buy[hidden] { display: none; }

/* Pay steps strip */
.paysteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; list-style: none; padding: 0 !important; counter-reset: pay; }
.paysteps li { margin: 0; padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.paysteps li::before { counter-increment: pay; content: counter(pay); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.paysteps strong { display: block; }

/* FAQ */
.faq { margin-top: 16px; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 16px 16px; color: var(--ink); font-size: 16px; }
.faq details > div p:first-child { margin-top: 0; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .toc { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 28px; }
  .toc details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
  .toc details > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 15px; }
  .toc details > summary::-webkit-details-marker { display: none; }
  .toc details > summary::after { content: '+'; font-size: 20px; color: var(--blue); font-weight: 400; }
  .toc details[open] > summary::after { content: '−'; }
  .toc details > div { padding: 0 8px 10px; }
  .toc h2 { display: none; }
  .toc .toc-map { margin: 8px 8px 4px; }
  .read { max-width: none; }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .paysteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .bar .wrap { min-height: 60px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .brand small { display: none; }
  .bar nav { gap: 10px; }
  .bar nav a.nav-hide { display: none; }
  .bar nav a { font-size: 14px; }
  .play { min-height: 42px; padding: 0 12px; font-size: 15px; }
  .shots-2 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .step::before { width: 32px; height: 32px; font-size: 14px; }
  .sec > p.intro { font-size: 17px; }
  th, td { padding: 9px 10px; font-size: 14px; }
  .tablewrap.stack thead { display: none; }
  .tablewrap.stack tr { display: grid; grid-template-columns: 1fr; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
  .tablewrap.stack tr:last-child { border-bottom: 0; }
  .tablewrap.stack td { border: 0; padding: 2px 0; }
  .tablewrap.stack td[data-l]::before { content: attr(data-l) ': '; font-weight: 700; color: var(--muted); font-size: 13px; }
  .tablewrap.stack td:first-child { font-size: 16px; padding-bottom: 4px; }
  .buy { grid-template-columns: 1fr; }
  .buy .price { text-align: left; }
  .paysteps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* GUIDE PANEL: in the game's frame (?embed=1) the site's own header, footer and Play buttons step aside */
html.embed .bar, html.embed .site-foot, html.embed .play, html.embed a[href^="/?play"] { display: none !important; }
html.embed :is(button:enabled, a[href], summary):active { filter: brightness(.89); }
html.guide-calm * { scroll-behavior: auto; transition: none; }

/* GUIDE MAP FIT (owner, November 13: "fit into the current theme options ... modern and clasic cna switch"): the guide page in
   the game's guide window (html.embed) wears the game's font and the look the player chose (embed.js followLook sets
   html[data-look]; Settings, Interface, Look). The page is drawn from the tokens at the top of this file, so each look only
   names its own: Classic is the game's soft paper and round corners, Modern its cream, navy edges and hard shadows. The
   website's own guide (no html.embed) is untouched. */
@font-face { font-family: Geist; src: url('/assets/Geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
html.embed { font-family: Geist, 'Segoe UI', system-ui, -apple-system, sans-serif; }
html.embed[data-look="classic"] { --paper: #fffbf2; --paper-2: #f5efe2; --paper-3: #ebe3d1; --card: #fff; --ink: #1d2126; --muted: #5f646b; --line: #e3dccb; --line-2: #ebe3d1;
  --blue: #2f4bff; --blue-ink: #243ed8; --r: 12px; --r-lg: 16px; --shadow: 0 6px 24px rgba(30, 24, 10, .14); }
html.embed[data-look="modern"] { --paper: #fdf1d7; --paper-2: #f4e4c3; --paper-3: #e8d5ad; --card: #fffaf0; --ink: #24314d; --muted: #5a6580; --line: #dccaa2; --line-2: #e8d5ad;
  --blue: #1f5fe8; --blue-ink: #1a4cc4; --r: 8px; --r-lg: 10px; --shadow: 0 0 0 2px #24314d, 0 4px 0 2px rgba(20, 28, 48, .26); }
html.embed kbd { font-family: inherit; }
html.embed[data-look="classic"] :is(.play, .ghost) { border-radius: 12px; }
html.embed[data-look="modern"] :is(.play, .ghost) { border-radius: 8px; }
html.embed[data-look="modern"] .ghost { border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(20, 28, 48, .3); }
/* end GUIDE MAP FIT */

/* GUIDE NOV 14: What is new */
.updated { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.card .new-tag { display: inline-block; width: fit-content; justify-self: start; align-self: flex-start; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.shots-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.shots-3 .shot.phone { max-width: none; }
@media (max-width: 860px) { .shots-3 { grid-template-columns: 1fr; } .shots-3 .shot.phone { max-width: 300px; } }
/* CLEAN ADDRESS: a section the page moved focus to after a link draws no ring */
[tabindex="-1"]:focus { outline: none; }
