/* The world map (guide/map.html, guide/map.js MAP2): a full-screen map app. A navy bar (the two maps, search), the side panel
   (places by island, prizes by how often), the map over the sea, the place card floating on the right (a bottom sheet on a
   phone). Inside the game's guide panel (?embed=1) the site's links step aside. */
@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 { --ink: #16213a; --muted: #56627a; --line: #e6dcc7; --paper: #fffdf8; --navy: #0f1830; --cobalt: #2f4bff; --sea: rgb(49, 126, 190); --gold: #f2b52e;
  --c-games: #d9452f; --c-shops: #7a3fc6; --c-land: #1f8a4c; --c-places: #2443d4; --c-travel: #0f6e78; --c-prizes: #d99a0b; --c-jobs: #c2410c; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.mapapp { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; font: 15px/1.5 Plex, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--navy); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid #8fa4ff; outline-offset: 2px; }
kbd { display: inline-block; min-width: 1.5em; padding: 0 5px; border: 1px solid #d8cfba; border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 600 12px/1.6 Plex, system-ui, sans-serif; text-align: center; }

/* the bar */
.mbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; color: #fff; background: var(--navy); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
.mbrand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; text-decoration: none; color: #fff; white-space: nowrap; }
.mbrand img { image-rendering: pixelated; border-radius: 8px; }
.worlds { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: #202e4e; border: 1px solid rgba(255, 255, 255, .12); }
.worlds button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.worlds button[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: #273656; border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .7); }
.search:focus-within { background: #fff; color: var(--muted); border-color: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: #fff; font: inherit; font-size: 15px; }
.search:focus-within input { color: var(--ink); }
.search input::placeholder { color: rgba(255, 255, 255, .6); }
.search:focus-within input::placeholder { color: #8a92a3; }
.mnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.mnav a:hover { background: #273656; color: #fff; }
.mnav .mplay { color: #fff; background: var(--cobalt); }
html.embed .mbar [data-site] { display: none; }

/* the body: the side panel, the map, the card */
.mbody { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 372px minmax(0, 1fr); }
.side { position: relative; z-index: 5; display: flex; flex-direction: column; min-height: 0; background: var(--paper); border-right: 1px solid var(--line); }
.side-close { display: none; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 12px 8px; }
.side-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
.side-tabs button[aria-selected="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.side-tabs button[data-tab="prizes"] svg { color: var(--gold); }
.side-tabs .n { min-width: 26px; padding: 0 7px; border-radius: 99px; background: rgba(0, 0, 0, .08); font-size: 12px; }
.side-tabs button[aria-selected="true"] .n { background: #243dc0; }
.embed-side-title, html.embed .side-tabs { display: none; }
html.embed .embed-side-title { display: block; margin: 0; padding: 14px 16px 10px; font-size: 17px; }
.layers { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 12px; border-bottom: 1px solid var(--line); }
.layers[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.chip-prize[aria-pressed="false"] { border-color: #f0d38a; background: #fff8e4; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.side-scroll { flex: 1; min-height: 0; overflow: auto; padding: 6px 12px 24px; overscroll-behavior: contain; }
.isle { margin-top: 14px; }
.isle h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.isle-sub { margin: 2px 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.isle-list { display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.row:hover { background: #f3eee2; }
.row .dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; flex: none; }
.row .dot svg { width: 16px; height: 16px; }
.row-t { display: grid; min-width: 0; flex: 1; }
.row-t strong { font-size: 14px; line-height: 1.3; }
.row-t small { color: var(--muted); font-size: 12px; }
.row-prize { color: var(--gold); }
.row-prize svg { width: 18px; height: 18px; fill: var(--gold); stroke: #b8860b; stroke-width: 1.2; }
.empty { color: var(--muted); padding: 16px 4px; }
.cat-games { background: var(--c-games); } .cat-shops { background: var(--c-shops); } .cat-land { background: var(--c-land); } .cat-places { background: var(--c-places); }
.cat-travel { background: var(--c-travel); } .cat-prizes { background: var(--c-prizes); } .cat-jobs { background: var(--c-jobs); }

/* prizes */
.pz-intro { margin: 10px 2px 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pz-group { margin-top: 16px; }
.pz-group h3 { margin: 0 0 8px; }
.when { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #fff; white-space: nowrap; }
.when-season { background: #1f4c7b; } .when-weekly { background: #5b3fd6; } .when-daily { background: #1f8a4c; } .when-often { background: #d9670b; } .when-once { background: #5d6779; } .when-past { background: #687382; }
.pz { margin-bottom: 10px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 20px -18px rgba(15, 24, 48, .5); }
.pz h4 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.pz-pay { margin: 3px 0 6px; font-weight: 700; color: #8a5a00; }
.pz p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #3d4a63; }
.pz .pz-note { padding: 8px 10px; border-radius: 10px; background: #f3f5ff; color: #3d4a63; font-size: 12.5px; }
.pz .pz-where { color: var(--muted); font-size: 12.5px; }
.pz-weeks { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 6px; }
.pz-weeks li { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f7f3ea; }
.pz-weeks li > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.pz-weeks li div { display: grid; }
.pz-weeks li b { font-size: 13.5px; } .pz-weeks li small { color: var(--muted); font-size: 12px; }
.pz-weeks li.now { background: #fff4d1; box-shadow: inset 0 0 0 2px var(--gold); }
.pz-weeks li.now > span { color: #8a5a00; }
.pz-weeks li.past { opacity: .6; }
.pz-go { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pz-map { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pz-map:hover { border-color: #c6b993; }
.pz-map svg { width: 14px; height: 14px; color: var(--c-places); }

/* the map */
.mapview { position: relative; overflow: hidden; background: var(--sea); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.mapview.dragging { cursor: grabbing; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-lite .stage { will-change: auto; }
#art, #arthi { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#arthi { opacity: 0; transition: opacity .5s ease; }
#arthi.on { opacity: 1; }
.pins, .isles { position: absolute; inset: 0; }
.map-you { position: absolute; z-index: 4; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #2f4bff; box-shadow: 0 0 0 2px #16213a; transform: translate(-50%, -50%) scale(var(--inv)); pointer-events: none; }
.map-you[hidden] { display: none; }
.map-people { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.map-person { position: absolute; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; background: #ffe49c; box-shadow: 0 0 0 1px #fffdf8; transform: translate(-50%, -50%) scale(var(--inv)); pointer-events: auto; }
.isle-lbl { position: absolute; transform: translate(-50%, -50%) scale(var(--inv)); transform-origin: 50% 50%; padding: 4px 12px; border-radius: 99px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap; background: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); pointer-events: none; transition: opacity .25s ease; }
@media (min-width: 641px) { .isle-lbl[data-island="Printer Falls"] { transform: translate(-50%, -50%) scale(var(--inv)) translateY(38px); } }
.mapview:not([data-zoom="far"]) .isle-lbl { opacity: 0; }
.mpin { position: absolute; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; transform: translate(-15px, -50%) scale(var(--inv)); transform-origin: 15px 50%; cursor: pointer; }
.mpin.left { flex-direction: row-reverse; transform: translate(calc(-100% + 15px), -50%) scale(var(--inv)); transform-origin: calc(100% - 15px) 50%; }
.mpin .dot { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.mpin .dot svg { width: 15px; height: 15px; }
.mpin.cat-games .dot { background: var(--c-games); } .mpin.cat-shops .dot { background: var(--c-shops); } .mpin.cat-land .dot { background: var(--c-land); }
.mpin.cat-places .dot { background: var(--c-places); } .mpin.cat-travel .dot { background: var(--c-travel); } .mpin.cat-prizes .dot { background: var(--c-prizes); } .mpin.cat-jobs .dot { background: var(--c-jobs); }
.mpin.major .dot { width: 38px; height: 38px; }
.mpin.major .dot svg { width: 19px; height: 19px; }
.mpin.major { transform: translate(-19px, -50%) scale(var(--inv)); transform-origin: 19px 50%; }
.mpin.major.left { transform: translate(calc(-100% + 19px), -50%) scale(var(--inv)); transform-origin: calc(100% - 19px) 50%; }
.mpin .star { position: absolute; right: -7px; top: -7px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.mpin .star svg { width: 10px; height: 10px; fill: #fff; stroke: #fff; stroke-width: 1; }
.mpin .lbl { padding: 3px 10px; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .22); transition: opacity .2s ease; }
.mpin.major .lbl { font-size: 14.5px; padding: 4px 12px; }
.mapview[data-zoom="far"] .mpin .lbl, .mapview[data-zoom="mid"] .mpin:not(.major):not(.prize) .lbl { opacity: 0; pointer-events: none; }
.mapview[data-zoom="far"] .mpin:not(.major) .dot { transform: scale(.8); }
.mpin:focus-visible .lbl, .mpin[aria-pressed="true"] .lbl { opacity: 1 !important; }
@media (hover: hover) {
  .mpin:hover .lbl { opacity: 1 !important; }
  .mpin:hover .dot { transform: scale(1.12) !important; }
}
.mpin[aria-pressed="true"] .dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 0 8px rgba(47, 75, 255, .55), 0 3px 10px rgba(0, 0, 0, .35); }
.mpin[aria-pressed="true"] { z-index: 3; }
.mpin[hidden], .spot[hidden] { display: none; }
.spot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .9); transform: scale(var(--inv)); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.spot.board { width: 9px; height: 5px; margin: -2.5px 0 0 -4.5px; }
.mapview[data-zoom="near"] .spot { opacity: 1; pointer-events: auto; }
.tier-quiet { background: #8fa3b8; } .tier-local { background: #3aa0a8; } .tier-busy { background: #e0a21a; } .tier-prime { background: #e2672b; } .tier-headline { background: #c0283c; }
.mapctl { position: absolute; right: 16px; bottom: 16px; z-index: 4; display: grid; gap: 6px; }
.mapctl button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); }
.mapctl button:disabled { opacity: .45; cursor: default; }
.mapctl svg { width: 20px; height: 20px; stroke-width: 2.4; }
.listbtn { display: none; }
.maphelp { position: absolute; left: 50%; bottom: 16px; z-index: 3; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.legend-tiers { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--paper); font-size: 12px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }
.legend-tiers strong { font-size: 12px; }
.legend-tiers span { display: flex; align-items: center; gap: 7px; }
.legend-tiers .spot { position: static; margin: 0; opacity: 1; transform: none; width: 10px; height: 10px; }
.legend-tiers[hidden], .mapview[data-world="city"] .legend-tiers { display: none; }
.mapview:not([data-zoom="near"]) .legend-tiers { opacity: .0; pointer-events: none; }
.map-error { position: absolute; inset: auto 16px 80px; z-index: 5; padding: 12px 14px; border-radius: 12px; background: #fff; }

/* the place card */
.placecard { position: absolute; right: 16px; top: 16px; bottom: auto; z-index: 6; width: 392px; max-height: calc(100% - 32px); overflow: auto; border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 1px rgba(15, 24, 48, .06), 0 30px 70px -24px rgba(5, 10, 25, .75); overscroll-behavior: contain; }
.placecard[hidden] { display: none; }
.pc-peek, .pc-expand { display: none; }
.pc-controls { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 8px; height: 52px; margin-bottom: -52px; padding: 8px 10px 0; pointer-events: none; }
.pc-controls button { pointer-events: auto; }
.pc-close { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); cursor: pointer; }
.pc-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #e9e2d0; }
.pc-noimg { display: grid; place-items: center; height: 96px; color: rgba(255, 255, 255, .9); }
.pc-noimg svg { width: 40px; height: 40px; stroke-width: 1.6; }
.pc-body { padding: 16px 20px 22px; }
.pc-top { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-cat { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 99px; color: #fff; font-size: 12px; font-weight: 700; }
.pc-cat svg { width: 13px; height: 13px; }
.pc-isle { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 99px; background: #f0eadb; font-size: 12px; font-weight: 600; }
.pc-body h3 { margin: 10px 0 4px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.pc-body h3:focus { outline: none; }
.pc-lead { margin: 0; color: #3d4a63; }
.pc-body h4 { display: flex; align-items: center; gap: 7px; margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pc-body ul { margin: 0; padding-left: 18px; }
.pc-body li { margin: 4px 0; }
.pc-body p { margin: 0; }
.pc-h-prize { color: #8a5a00 !important; }
.pc-h-prize svg { color: var(--gold); width: 16px; height: 16px; }
.pc-prizes { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.pc-prizes li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0 !important; padding: 10px; border-radius: 12px; background: #fbf6e9; }
.pc-prizes li.now { background: #fff4d1; box-shadow: inset 0 0 0 2px var(--gold); }
.pc-prizes div { display: grid; }
.pc-prizes b { font-size: 13.5px; line-height: 1.35; }
.pc-prizes small { margin-top: 2px; color: #8a5a00; font-weight: 700; font-size: 12.5px; }
.pc-note { margin-top: 8px !important; padding: 8px 10px; border-radius: 10px; background: #f3f5ff; color: #3d4a63; font-size: 12.5px; }
.pc-buy { list-style: none; padding: 0 !important; }
.pc-buy li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #e6dcc7; }
.cur { flex: none; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cur.sol { background: #ece6ff; color: #4b2fb0; } .cur.printer { background: #e6ecff; color: #2238d0; } .cur.ink { background: #e3f4ea; color: #17663a; } .cur.free { background: #f0eadb; color: #5d4a1f; }
.pc-need { margin-top: 14px !important; padding: 10px 12px; border-radius: 12px; background: #f6f1e5; font-size: 13.5px; }
.pc-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 999px; color: #fff; font-weight: 700; font-size: 15.5px; background: var(--cobalt); box-shadow: 0 12px 24px -12px rgba(47, 75, 255, .8); cursor: pointer; }

/* At a medium width, the map takes the canvas. Lists open on the left and a place previews in one corner. */
@media (max-width: 1180px) {
  .mbody { grid-template-columns: minmax(0, 1fr); }
  .side { position: absolute; left: 0; top: 0; bottom: 0; width: min(360px, 60vw); z-index: 30; border-right: 1px solid var(--line); box-shadow: 16px 0 36px -22px rgba(0, 0, 0, .55); transform: translateX(-105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
  body.side-open .side { transform: none; visibility: visible; transition-delay: 0s; }
  .side-tabs { padding-right: 64px; }
  html.embed .embed-side-title { min-height: 64px; padding: 19px 64px 12px 16px; }
  .side-close { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; cursor: pointer; }
  body[data-guide-prizes] .side-close { display: none; }
  body.side-open .mapview::after { content: ''; position: absolute; inset: 0; z-index: 7; background: rgba(10, 16, 34, .24); }
  .listbtn { position: absolute; left: 12px; bottom: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); cursor: pointer; }
  .maphelp { display: none; }
  .placecard:not([data-expanded="true"]) { top: auto; bottom: 16px; width: min(360px, calc(100% - 32px)); max-height: min(220px, 36dvh); }
  .placecard:not([data-expanded="true"]) #pc-content { display: none; }
  .placecard:not([data-expanded="true"]) .pc-peek { display: block; }
  .pc-peek { padding: 12px 12px 14px 16px; }
  .pc-peek h3 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: calc(100% - 146px); margin: 0; font-size: 17px; line-height: 1.2; }
  .pc-peek h3:focus { outline: none; }
  .pc-peek p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
  .pc-peek .go-card { margin-top: 10px; }
  .pc-peek .go-card .go-btn { min-height: 44px; }
  .pc-peek .go-note { display: none; }
  .pc-expand { display: grid; place-items: center; min-width: 72px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
  .pc-close, html.embed .pc-close { width: 44px; height: 44px; }
  body.card-open .mapctl, body.card-open .listbtn { display: none; }
}

/* On a phone, the list is a short sheet and the place preview sits along the bottom. */
@media (max-width: 900px) {
  .mbar { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px 10px; }
  .mbrand span { display: none; }
  .worlds button { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .mnav a:not(.mplay) { display: none; }
  .mnav .mplay { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; min-height: 40px; }
  .pz-map { min-height: 44px; }
  .legend-tiers { display: none; }
  .mapctl { right: 12px; bottom: 14px; }
  .placecard { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 52dvh; z-index: 25; border-radius: 22px 22px 0 0; }
  .placecard:not([data-expanded="true"]) { left: 0; right: 0; bottom: 0; width: auto; }
  .pc-img { aspect-ratio: 16 / 8; }
}
@media (max-width: 700px) {
  .side { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: min(52dvh, 420px); border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .6); transform: translateY(105%); }
  body.side-open .side { transform: none; }
  html.embed .embed-side-title { min-height: 50px; padding: 12px 64px 8px 16px; box-sizing: border-box; }
  .side-close { top: 3px; }
  .side .layers { flex: none; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .side .layers .chip { flex: none; }
}
@media (max-width: 640px) {
  /* A readable overview on phones. Zoom, search or pick a layer to reveal smaller stops. */
  .mapview[data-world="main"][data-zoom="far"] .isle-lbl:not(.compact) { display: none; }
  .mapview[data-zoom="far"] .isle-lbl { font-size: 11px; padding: 3px 7px; }
  .mapview[data-zoom="far"][data-overview] .mpin:not(.major):not([aria-pressed="true"]) { display: none; }
  .mapview[data-zoom="far"] .mpin.major .dot { transform: scale(.78); }
}
@media (prefers-reduced-motion: reduce) { #arthi, .side, .mpin .dot, .mpin .lbl, .spot, .isle-lbl { transition: none; } }
.guide-calm :is(#arthi, .side, .mpin .dot, .mpin .lbl, .spot, .isle-lbl) { transition: none; }
button:enabled:active { filter: brightness(.89); }
.mpin:active .dot { box-shadow: inset 0 0 0 2px #fff; }

/* GUIDE MAP FIT (owner, November 13: "the world map and prizes should have the teleprot buttons and fit into the current theme
   options ... modern and clasic cna switch"). Two things, both only inside the game's guide window (html.embed):
   1. The travel buttons (map.js acts()): Walk there and Teleport on the place card, under every place in the list and on
      the prizes won at a place. Two columns that keep their width (the words may wrap inside a button, never into a ragged
      pile), at least 40 px tall, laid out by the panel's OWN width (container queries), not the screen's.
   2. The look. This page had its own navy bar, white pills and Plex whatever the game looked like. In the frame it now
      wears the game's font and the look the player chose (embed.js followLook sets html[data-look]): Classic is soft paper
      with round corners, Modern is cream with navy stepped frames (the game's own frame drawings, html.pxf once they are
      here). Colors go through the tokens below, so a switch restyles everything at once and nothing moves.
   The website's own map (no html.embed) is untouched. */
@font-face { font-family: Geist; src: url('/assets/Geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --paper-2: #f3eee2; --card: #fff; }
.rowbox { display: grid; min-width: 0; }
.go-acts { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px; align-items: stretch; min-width: 0; }
.go-acts.go-one { grid-template-columns: minmax(0, auto); justify-content: start; }
.go-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 40px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: 13px; line-height: 1.2; text-align: left; cursor: pointer; }
.go-btn svg { width: 16px; height: 16px; }
.go-btn span { min-width: 0; }
.go-tp { color: #fff; background: var(--cobalt); border-color: var(--cobalt); }
.go-btn:disabled { color: var(--muted); background: var(--paper-2); border-color: var(--line); cursor: default; }
.go-row { padding: 0 10px 10px; }
.go-tp svg, .go-row .go-btn svg, .go-prize .go-btn svg { display: none; }   /* the words need the room: one line wherever it fits */
.go-card { margin-top: 14px; }
.go-card .go-btn { min-height: 48px; padding: 6px 12px; font-size: 13.5px; }
.go-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: #8f2a1f; }
.go-off { margin: 0; padding: 0 10px 10px; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.pz .go-off, #pc-acts .go-off { padding: 0; }
.pz-places { display: grid; gap: 8px; }
.pz-place { display: grid; gap: 6px; min-width: 0; padding: 8px; border-radius: 12px; background: var(--paper-2); }
.pz-place .pz-map { justify-self: start; min-height: 40px; }
.pz-weeks li > :is(.go-acts, .go-off) { grid-column: 1 / -1; }
html.embed .pz-map { min-height: 40px; }
.side { container-type: inline-size; container-name: mapside; }
.placecard { container-type: inline-size; container-name: mapcard; }
@container mapside (max-width: 330px) { .go-acts { grid-template-columns: minmax(0, 1fr); } .go-acts.go-one { justify-content: stretch; } }
@container mapcard (max-width: 330px) { .go-card { grid-template-columns: minmax(0, 1fr); } }

/* the look's tokens */
html.embed[data-look="classic"] { --ink: #1d2126; --muted: #5f646b; --line: #e3dccb; --paper: #fffbf2; --paper-2: #f5efe2; --card: #fff; --navy: #1d2126; --cobalt: #2f4bff; --gold: #d9a93a; }
html.embed[data-look="modern"] { --ink: #24314d; --muted: #5a6580; --line: #dccaa2; --paper: #fdf1d7; --paper-2: #f4e4c3; --card: #fffaf0; --navy: #24314d; --cobalt: #1f5fe8; --gold: #f2b632; }
/* both looks: the game's font, and paper where this page had its own navy and white */
html.embed body.mapapp { font-family: Geist, 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--paper); }
html.embed :focus-visible { outline-color: var(--cobalt); }
html.embed .mbar { min-height: 56px; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: none; }
html.embed .worlds { border: 0; background: var(--paper-2); }
html.embed .worlds button { min-height: 40px; color: var(--muted); }
html.embed .worlds button[aria-selected="true"] { color: var(--ink); background: var(--card); box-shadow: 0 1px 3px rgba(30, 24, 10, .16); }
html.embed .search { color: var(--muted); background: var(--card); border: 1px solid var(--line); }
html.embed .search:focus-within { color: var(--muted); background: var(--card); border-color: var(--cobalt); }
html.embed .search input, html.embed .search:focus-within input { color: var(--ink); }
html.embed .search input::placeholder, html.embed .search:focus-within input::placeholder { color: var(--muted); }
html.embed .embed-side-title { font-weight: 800; }
html.embed .chip { min-height: 40px; background: var(--card); }
html.embed .chip[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
html.embed .row { min-height: 44px; }
html.embed .row:hover { background: var(--paper-2); }
html.embed .pz, html.embed .pz-map, html.embed .listbtn { background: var(--card); }
html.embed .pz p, html.embed .pc-lead { color: var(--muted); }
html.embed .pz-weeks li, html.embed .pz .pz-note, html.embed .pc-isle, html.embed .pc-prizes li, html.embed .pc-note, html.embed .pc-need { background: var(--paper-2); }
html.embed .pz-weeks li.now, html.embed .pc-prizes li.now { background: #fff4d1; }
html.embed .pc-buy li { border-bottom-color: var(--line); }
html.embed .pc-close { width: 44px; height: 44px; }
@media (min-width: 1181px) { html.embed .mbody { grid-template-columns: 400px minmax(0, 1fr); } }
@media (max-width: 900px) { html.embed .worlds button { min-height: 44px; } }

/* Classic: soft paper, round corners, a soft shadow */
html.embed[data-look="classic"] .go-walk { border-color: transparent; }
html.embed[data-look="classic"] .pz { box-shadow: 0 6px 24px -14px rgba(30, 24, 10, .3); }
html.embed[data-look="classic"] .placecard { box-shadow: 0 0 0 1px rgba(30, 24, 10, .06), 0 24px 60px -24px rgba(30, 24, 10, .6); }
html.embed[data-look="classic"] .mpin .lbl, html.embed[data-look="classic"] .mapctl button { box-shadow: 0 6px 18px -8px rgba(30, 24, 10, .45); }

/* Modern: cream, navy edges, hard shadows, square-ish corners */
html.embed[data-look="modern"] .mbar { border-bottom: 3px solid var(--navy); }
html.embed[data-look="modern"] .side { border-right: 3px solid var(--navy); }
html.embed[data-look="modern"] .worlds { padding: 4px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--navy); }
html.embed[data-look="modern"] .worlds button { border-radius: 7px; color: var(--ink); }
html.embed[data-look="modern"] .worlds button[aria-selected="true"] { color: #fff6e0; background: var(--navy); box-shadow: 0 3px 0 rgba(20, 28, 48, .3); }
html.embed[data-look="modern"] .search { border: 2px solid var(--navy); border-radius: 8px; }
html.embed[data-look="modern"] .chip { border: 2px solid var(--navy); border-radius: 8px; }
html.embed[data-look="modern"] .chip[aria-pressed="true"] { color: #fff6e0; background: var(--navy); border-color: var(--navy); }
html.embed[data-look="modern"] .chip-prize[aria-pressed="false"] { background: #ffe9ad; border-color: var(--navy); }
html.embed[data-look="modern"] .layers { border-bottom: 2px solid var(--navy); }
html.embed[data-look="modern"] :is(.row, .pz-weeks li, .pz-place, .pc-prizes li, .pz .pz-note, .pc-note, .pc-need, .maphelp, .map-error) { border-radius: 8px; }
html.embed[data-look="modern"] :is(.when, .pc-cat, .pc-isle, .cur, .isle-lbl, .mpin .lbl) { border-radius: 6px; }
html.embed[data-look="modern"] .pz { border: 2px solid var(--navy); border-radius: 10px; box-shadow: 0 4px 0 rgba(20, 28, 48, .26); }
html.embed[data-look="modern"] .pz-map { border: 2px solid var(--navy); border-radius: 8px; }
html.embed[data-look="modern"] .mpin .dot { border-radius: 9px; border-color: #fffaf0; box-shadow: 0 0 0 2px var(--navy), 0 3px 0 2px rgba(20, 28, 48, .3); }
html.embed[data-look="modern"] .mpin .star { border-radius: 5px; box-shadow: 0 0 0 1px var(--navy); }
html.embed[data-look="modern"] .mpin .lbl { box-shadow: 0 0 0 2px var(--navy), 0 3px 0 2px rgba(20, 28, 48, .3); }
html.embed[data-look="modern"] .mpin[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--navy), 0 0 0 5px #fffaf0, 0 0 0 8px var(--cobalt); }
html.embed[data-look="modern"] .isle-lbl { box-shadow: 0 3px 0 rgba(20, 28, 48, .3); }
html.embed[data-look="modern"] .legend-tiers { border-radius: 10px; box-shadow: 0 0 0 2px var(--navy), 0 4px 0 2px rgba(20, 28, 48, .28); }
html.embed[data-look="modern"] .placecard { border-radius: 14px; box-shadow: 0 0 0 3px var(--navy), 0 8px 0 3px rgba(20, 28, 48, .28); }
html.embed[data-look="modern"] :is(.go-btn, .mapctl button, .listbtn, .pc-close, .side-close) { border: 2px solid var(--navy); border-radius: 8px; box-shadow: 0 3px 0 rgba(20, 28, 48, .3); }
html.embed[data-look="modern"] .go-btn { background: var(--card); margin-bottom: 4px; }
html.embed[data-look="modern"] .go-tp { color: #fff; background: var(--cobalt); }
html.embed[data-look="modern"] .go-btn:disabled { color: var(--muted); background: var(--paper-2); box-shadow: none; }
/* the game's stepped frames, once they are here (embed.js followLook) */
html.embed.pxf[data-look="modern"] :is(.go-btn, .mapctl button, .listbtn, .pc-close, .side-close) { border: 0 solid transparent; border-image: var(--pxf-cream) 5 5 7 5 fill / 10px 10px 14px 10px / 0 0 4px 0 stretch; background: none; box-shadow: none; border-radius: 10px; image-rendering: pixelated; }
html.embed.pxf[data-look="modern"] .go-tp:enabled { border-image-source: var(--pxf-blue); }
html.embed.pxf[data-look="modern"] .go-btn:disabled { filter: saturate(.5); opacity: .8; }
@media (hover: hover) { html.embed.pxf[data-look="modern"] :is(.go-walk, .mapctl button:enabled, .listbtn, .pc-close, .side-close):hover { border-image-source: var(--pxf-cream-on); } }
@media (max-width: 900px) {
  html.embed[data-look="modern"] .placecard { border-radius: 14px 14px 0 0; box-shadow: 0 0 0 3px var(--navy); }
}
@media (max-width: 1180px) { html.embed[data-look="modern"] .side { box-shadow: 0 0 0 3px var(--navy); } }
@media (max-width: 700px) { html.embed[data-look="modern"] .side { border-right: 0; border-radius: 14px 14px 0 0; } }
/* end GUIDE MAP FIT */
/* MOBILE (owner, November 16, 2026: "menus and overlays on mobile have to be good"): a phone held sideways. The worlds switch and
   the search share one row (they took two, and the map kept under half of a 390 px high screen). */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  html .mbar { flex-wrap: nowrap; padding: 6px 12px; }
  html .search { order: 0; flex: 1 1 auto; max-width: none; min-height: 40px; }
}
/* MOBILE: decluttered (map.js runDeclutter, guide/declutter.js). A folded pin is not drawn (its group's pin shows "+n"; a tap on
   the count zooms in); a label or island name that would touch something is not drawn. */
.mpin.folded { visibility: hidden; pointer-events: none; }
.mapview .mpin.nolbl .lbl, .mapview .mpin.nolbl[aria-pressed="true"] .lbl { opacity: 0 !important; pointer-events: none; }
.mapview .isle-lbl.nolbl { opacity: 0 !important; }
.mpin .mcount { position: absolute; left: -9px; bottom: -8px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #1d2440; color: #fff; border: 2px solid #fff; font: 800 11.5px/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: zoom-in; }
.mpin .mcount::before { content: ''; position: absolute; inset: -10px; }   /* a thumb-sized target */
.mpin:has(.mcount) { z-index: 2; }   /* MOBILE: a group's count is never under a neighbour's dot (the open pin stays on top, z-index 3) */
