/* The game's look: starfield, teal title strips, thin frames, monospace, numbers coloured by size (styles.css .shiney*) */
:root {
	--space: #020810;
	--panel: rgba(2, 13, 24, .93);
	--teal: #16605f;
	--teal-hi: #2b8c88;
	--line: #24525a;
	--ink: #e2f3f1;
	--dim: #8aa9ad;
	--lav: #a9a3ff;
	--field: #000;
	--focus: #9ff;
}
* { box-sizing: border-box; margin: 0; }
body {
	background: var(--space) url(img/galaxy.jpg) center / cover fixed;
	color: var(--ink);
	font: 16px/1.45 "Ubuntu Mono", "Lucida Console", Monaco, monospace;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
a { color: inherit; }
img.px { image-rendering: pixelated; }
.shiney8 { color: #fffbd6; } .shiney7 { color: #ff85fd; } .shiney6 { color: #f1a0fa; } .shiney5 { color: #cce; } .shiney4 { color: #f99; }
.shiney3 { color: #9ff; } .shiney2 { color: #9f9; } .shiney1 { color: #fefa99; } .shiney0 { color: #faebd7; } .shiney-1 { color: pink; }

.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 24px; border-bottom: 1px solid var(--teal); background: rgba(0, 8, 16, .85); }
.logo { font: 500 24px Ubuntu, sans-serif; font-variant: small-caps; color: var(--lav); text-decoration: none; }
.logo span { font: 16px "Ubuntu Mono", monospace; color: var(--dim); font-variant: normal; margin-left: 4px; }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; width: 100%; max-width: 1280px; margin: 24px auto; padding: 0 24px; flex: 1; align-items: start; }
.nav { border: 1px solid var(--line); background: var(--panel); position: sticky; top: 16px; }
.nav h3 { background: var(--teal); color: #fff; font: 700 14px "Ubuntu Mono", monospace; text-align: center; padding: 2px; }
.nav a { display: block; padding: 5px 12px; text-decoration: none; border-top: 1px dotted var(--line); }
.nav a:hover { background: rgba(22, 96, 95, .35); }
.nav a[aria-current] { background: #0d2b30; color: #fff; box-shadow: inset 3px 0 var(--focus); }
.nav details > summary { display: none; }

.panel { border: 1px solid var(--teal-hi); background: var(--panel); }
.strip { background: var(--teal); color: #fff; font: 700 14px "Ubuntu Mono", monospace; text-align: center; padding: 2px 8px; }
.intro { display: flex; gap: 18px; align-items: center; padding: 18px 20px 6px; }
.intro img { width: 96px; height: 96px; border: 1px solid var(--line); flex: none; }
h1.strip { font: 700 18px/1.4 "Ubuntu Mono", monospace; letter-spacing: .04em; padding: 4px 8px; }
.intro p { color: var(--dim); max-width: 70ch; margin-top: 4px; }

form { padding: 14px 20px 4px; }
fieldset { border: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; margin-bottom: 14px; }
legend { color: #9f9; font-weight: 700; margin-bottom: 6px; padding: 0; }
label { display: grid; gap: 3px; align-content: start; color: var(--dim); font-size: 14px; }
label small { color: #6d8b8f; }
input, select { font: 700 17px "Ubuntu Mono", monospace; color: var(--ink); background: var(--field); border: 1px solid var(--teal-hi); padding: 4px 8px; width: 100%; min-width: 0; }
select { color: var(--ink); }
input:focus, select:focus, .nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: #f66; }

.out { padding: 4px 20px 20px; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--teal); color: #fff; font: 700 13px "Ubuntu Mono", monospace; padding: 2px 10px; text-align: right; }
th:first-child { text-align: left; }
td { padding: 6px 10px; border-bottom: 1px dotted var(--line); text-align: right; white-space: nowrap; }
td:first-child { text-align: left; color: var(--dim); white-space: normal; }
td b { font-size: 18px; }
td img { width: 22px; height: 22px; vertical-align: -6px; margin-right: 8px; }
tr.sec td { background: #0c2a2e; color: #9f9; font-weight: 700; text-align: center; padding: 3px; border: 0; }
.note { color: var(--dim); font-size: 14px; padding: 0 20px 18px; max-width: 90ch; }
.note b { color: var(--ink); font-weight: 400; }

.foot { color: #6d8b8f; font-size: 13px; padding: 16px 24px 24px; max-width: 1280px; margin: 0 auto; }

@media (max-width: 820px) {
	.layout { grid-template-columns: 1fr; padding: 0 12px; margin-top: 12px; gap: 12px; }
	.nav { position: static; }
	.nav details > summary { display: block; background: var(--teal); color: #fff; font-weight: 700; padding: 6px 12px; cursor: pointer; }
	.intro img { width: 64px; height: 64px; }
	td { white-space: normal; }
}
