/* Additions for the pages that the launcher does not have (downloads, whitelist). Everything else is the launcher's own stylesheet. */
html, body { overflow: auto; }
body { user-select: text; }
.app { height: auto; min-height: 100%; }
.page { position: relative; z-index: 10; display: grid; justify-items: center; gap: 16px; padding: 34px 24px 40px; }
.display .chip, .chip { text-shadow: none; }
.page > * { width: 100%; max-width: 760px; }
.page h1 { text-align: center; margin: 4px 0 0; }
.titlebar__nav { display: flex; align-items: center; gap: 8px; }
.titlebar__nav form { margin: 0; }
.stack { display: grid; gap: 14px; padding: 22px 24px; }
.stack h2 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack .sub { margin: -6px 0 0; font-size: 13px; color: var(--text-subtle); }
.rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--chip-bg); border: 2px solid rgb(0 0 0 / 0.6); }
.rows .grow { flex: 1; min-width: 0; word-break: break-all; }
.rows .grow small { display: block; color: var(--text-subtle); font-size: 12px; word-break: break-all; }
.rows .size { font-size: 12px; color: var(--text-subtle); white-space: nowrap; }
.rows form { margin: 0; }
.mc-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.add { display: flex; gap: 10px; flex-wrap: wrap; }
.add .input { flex: 1; min-width: 200px; }
.notice { display: flex; align-items: center; gap: 8px; margin: 0; }
.notice--ok { color: #8be38b; }
.center { text-align: center; }
.uuid { user-select: all; display: block; margin: 6px auto; }
@media (max-width: 520px) { .page { padding: 8px 12px 32px; } .rows li { flex-wrap: wrap; } }

/* the launcher downloads: one card per system, side by side; the visitor's own system is lit */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px !important; }
.os-card { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 26px 18px 22px; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.os-card__icon { color: var(--text-muted); }
.os-card h2 { margin: 0; }
.os-card__spacer { height: 26px; }
.os-card__btn { width: 100%; }
.os-card__file { margin: -6px 0 0; font-size: 12px; color: var(--text-subtle); }
.os-card.is-current { box-shadow: inset 0 0 0 2px var(--play-hi), 0 0 0 2px var(--play), 0 16px 48px rgb(0 0 0 / 0.45), 0 0 36px rgb(121 220 111 / 0.35); transform: translateY(-4px); }
.os-card.is-current .os-card__icon { color: var(--play-hi); }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* device code login */
.device-code { letter-spacing: 6px; padding: 10px 18px !important; user-select: all; }

/* player area, economy and management: live pages drawn by dash.js */
.live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #6b7280; vertical-align: middle; margin-left: 8px; }
.live.is-on { background: #79dc6f; box-shadow: 0 0 8px #79dc6f; }
.stack__body { display: grid; gap: 12px; }
.stack-group { display: grid; gap: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #4b5563; flex: none; }
.dot.is-on { background: #79dc6f; box-shadow: 0 0 6px #79dc6f; }
.amount { font-family: Monocraft, monospace; white-space: nowrap; }
.amount.plus { color: #8be38b; }
.amount.minus { color: #ff8f8f; }
.stack h3 { margin: 6px 0 0; }
select.input { padding: 8px; }
.rows li button { flex: none; }
#toast { position: sticky; top: 8px; z-index: 20; padding: 10px 14px; background: var(--chip-bg); border: 2px solid rgb(0 0 0 / 0.6); }
