/* Lorestar Maps' map maker, on the site's own look (css/base.css). */
.brand-sub { font-weight: 300; color: var(--text-2); }
/* the account in the bar: a long address never widens the page */
#who { min-width: 0; display: flex; align-items: center; gap: 0.4rem; }
#who .btn { min-width: 0; max-width: min(14rem, 42vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 2rem; }
@media (max-width: 30rem) { #who .tag { display: none; } }
.mm-wrap > * { min-width: 0; }
.mm { padding-top: 1.25rem; padding-bottom: 3rem; }
.mm-wrap { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .mm-wrap { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; } }
.mm-side { display: grid; gap: 1rem; align-content: start; }

/* what to make: one list of the kinds of map (a locked one says so in the list, and can't be picked) */
/* while Maps isn't on sale, why the other kinds are locked, in plain sight */
.kinds-soon { display: flex; gap: 0.5rem; align-items: baseline; margin: -0.35rem 0 0; font-size: 0.875rem; color: var(--text-2); }
.kinds-soon[hidden] { display: none; }
.kinds-soon .lock { flex: none; width: 0.85rem; height: 0.85rem; position: relative; top: 0.1rem; }
.kinds-soon b { color: var(--text); font-weight: 600; }
.upsell { display: grid; gap: 0.6rem; padding: 1rem 1.1rem; }
/* request access, over the page */
.ask { width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; color: var(--text); padding: 1.25rem 1.25rem 1.5rem; }
.ask::backdrop { background: rgba(4, 5, 8, 0.72); }
.ask-form { display: grid; gap: 1rem; }
.ask-form p { margin: 0; }
.upsell p { margin: 0; font-size: 0.9375rem; }

.mm-form { display: grid; gap: 0.9rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.seg button { min-height: 2.25rem; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--float); color: var(--text); font: inherit; font-size: 0.875rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--raised); border-color: rgba(255, 255, 255, 0.4); color: var(--now); }
.checks { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* the map: fills its box, moves with a finger, a mouse or the buttons */
.viewport { position: relative; height: clamp(20rem, 68vh, 56rem); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; background: #1b1a17; touch-action: none; }
.viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.viewport canvas:active { cursor: grabbing; }
.empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-2); font-size: 0.9375rem; pointer-events: none; }
.busy { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; background: rgba(7, 8, 11, 0.85); border: 1px solid var(--hairline); font-size: 0.875rem; white-space: nowrap; }
.zoom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.zoom .btn { min-width: 2.5rem; justify-content: center; }
.zoom[hidden] { display: none; }
.zoom .btn[aria-pressed="true"] { background: var(--now); border-color: var(--now); color: var(--void); }
.journey-bar { flex-basis: 100%; margin: 0; font-size: 0.9375rem; color: var(--text-2); }
.after { margin-top: 0.75rem; }
.after .lock { width: 0.85rem; height: 0.85rem; }
/* a button an alpha invite opens: marked, not disabled (pressed, it says what it is and how to get it) */
.after .btn[data-locked] { background: transparent; border-style: dashed; color: var(--text-2); }
.after .btn[data-locked]:hover { color: var(--text); }
.save-note { margin: 0.45rem 0 0; }
.mm-stage .say { margin-top: 0.6rem; }

/* beyond a free town: the map greys, and under it the way in */
.beyond, .alpha-locked { margin-top: 0.75rem; display: grid; gap: 0.6rem; padding: 1rem 1.1rem; font-size: 0.9375rem; }
.beyond p, .alpha-locked p { margin: 0; }
/* (base.css makes an svg a block: a lock in a line of words stays in the line) */
.beyond .lock, .alpha-locked .lock, .info .lock, .levels .lock { display: inline-block; width: 0.85rem; height: 0.85rem; vertical-align: -0.1rem; }
.enter { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); }
.levels { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-bottom: 0.6rem; font-size: 0.875rem; color: var(--text-2); }
.levels button { font: inherit; color: var(--text-2); background: none; border: 0; padding: 0.2rem 0.3rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.levels button[aria-current="true"] { color: var(--now); text-decoration: none; cursor: default; }
/* on a whole world, the land the middle of the screen is over */
.levels .where { color: var(--text-2); font-style: italic; padding: 0.2rem 0.3rem; }
.levels .where::before { content: '· '; font-style: normal; }
.atlas-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-bottom: 0.75rem; }
.atlas-tools .field { min-width: 10rem; }
.info { margin-top: 0.75rem; padding: 0.9rem 1rem; display: grid; gap: 0.35rem; }
.info h3 { margin: 0; font-size: 1rem; color: var(--now); }
.info p { margin: 0; font-size: 0.9rem; color: var(--text-2); }
.info .what { color: var(--text); font-weight: 500; }
/* a planet's or a star's figures */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.2rem 0.9rem; margin: 0.2rem 0 0; font-size: 0.875rem; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text); }

/* full screen: the map fills it, and the controls float over it in one panel that fades when not pointed at */
.menu-tab { display: none; }
body.full { overflow: hidden; }
body.full #bar, body.full .foot, body.full .skip { display: none; }
body.full > .viewport { position: fixed; inset: 0; height: auto !important; border: 0; border-radius: 0; z-index: 40; }
body.full .mm { padding: 0; }
body.full .mm-wrap { position: fixed; z-index: 50; top: 12px; left: 12px; bottom: 12px; width: min(23rem, calc(100vw - 24px)); max-width: none; margin: 0;
  display: block; overflow-y: auto; padding: 1rem; background: rgba(9, 10, 14, 0.92); border: 1px solid var(--hairline-strong); border-radius: 16px;
  transition: opacity 0.25s ease, transform 0.25s ease; }
body.full .mm-wrap > * + * { margin-top: 1rem; }
body.full .mm-wrap.away { opacity: 0; transform: translateX(-16px); pointer-events: none; }
body.full .menu-tab { display: inline-flex; position: fixed; z-index: 45; left: max(12px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); }
body.full .menu-tab[hidden] { display: none; }
/* the way out, always there in full screen (over the panel too): a phone has no Esc */
.full-exit { display: none; }
body.full .full-exit { display: inline-flex; position: fixed; z-index: 55; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); }
body.full .full-exit[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { body.full .mm-wrap { transition: none; } }

/* journeys (subscribers) */
.journey { margin-top: 1rem; padding: 1rem 1.1rem; display: grid; gap: 0.5rem; }
.journey table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.journey th, .journey td { text-align: left; padding: 0.3rem 0.4rem; border-top: 1px solid var(--hairline); }
.journey .num { font-variant-numeric: tabular-nums; }
.journey .bad { color: #ff9a9a; }
.travel { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-top: 0.75rem; }
.travel[hidden] { display: none; }
.travel .field { min-width: 11rem; }
.travel .field-narrow { min-width: 6rem; width: 7rem; }
.journey h4 { margin: 0.4rem 0 0; font-size: 0.875rem; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.journey .pack { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.journey .pack b { color: var(--now); font-weight: 600; }
.journey .pack .why { color: var(--text-2); font-size: 0.8125rem; }
.journey .rolls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.journey .rolls .input { width: auto; min-width: 9rem; min-height: 2.25rem; padding-top: 0; padding-bottom: 0; }
.open-file { margin: 0.9rem 0 0; font-size: 0.875rem; }
