/* Little Orbit: a calm deep-blue star chart. Sprites are inline SVG drawn by script. Calm colours only. */
.hint { color: var(--muted); font-size: .95rem; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.notice { padding: .5rem .75rem; border: var(--line) dashed var(--border); border-radius: var(--radius-sm); background: var(--note); }

/* The sky is dark on purpose; its text and sprites are light. Tiles stay at least 44px; on a narrow phone the biggest
   sky scrolls inside its own box, so the page itself never scrolls sideways. The row and column boxes do the same job. */
.sky-scroll { width: 100%; max-width: 38rem; margin: 0 auto; overflow-x: auto; padding: 4px; }
.sky-grid { --sky-a: #1f3354; --sky-b: #25406a; --sky-ink: #f1f5fa; display: grid; gap: 0; width: max(100%, calc(var(--cols, 5) * 44px)); border: var(--line) solid #5d7da6; border-radius: var(--radius); overflow: hidden; background: #5d7da6; box-shadow: var(--shadow); }
.sky-row { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
.sky-cell { min-width: 0; }
.sky-grid .tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%; aspect-ratio: 1; min-width: 44px; min-height: 44px; padding: 2px; border: 1px solid #5d7da6; border-radius: 0; box-shadow: none; background: var(--sky-a); color: var(--sky-ink); font-size: .75rem; line-height: 1.1; }
.sky-row:nth-child(odd) .sky-cell:nth-child(even) .tile,
.sky-row:nth-child(even) .sky-cell:nth-child(odd) .tile { background: var(--sky-b); }
.sky-grid .tile .px { flex: 1; min-height: 0; }
.sky-grid .tile-label { display: block; min-height: .8rem; color: var(--sky-ink); font-weight: 700; }
/* Selected is shown by a thick light outline AND a tick, never colour alone. */
.sky-grid .tile.is-selected { outline: 4px solid #f1f5fa; outline-offset: -4px; }
.sky-grid .tile.is-selected::after { content: "✓"; position: absolute; top: 1px; right: 4px; font-size: .85rem; font-weight: 700; color: #f1f5fa; }
.sky-grid .tile.is-moving { border-style: dashed; border-width: 3px; }
.sky-grid .tile:focus-visible { outline: 4px solid #ffd479; outline-offset: -4px; }
.sky-grid .tile:active { transform: none; }

.goto { margin-top: .75rem; }
#tile-actions button, #expansions button { text-align: left; }
#expansions li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
#afford li { display: flex; gap: .7rem; align-items: center; min-height: 44px; }
#afford .icon { flex: none; width: 2.25rem; height: 2.25rem; padding: 2px; background: #1f3354; }
#notes-list li { margin-bottom: .6rem; }
.confirm { margin-top: .75rem; padding: .6rem .8rem; border: var(--line) solid var(--border); border-radius: var(--radius-sm); background: var(--note); }
.game-footer { margin-top: 1.5rem; }
.game-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
