/* Voidfront - freight terminal.
   A cargo-hauler's flight computer: phosphor on black, scanlines, a little glow, chamfered frames and
   segmented gauges. Loaded after style.css and re-uses its tokens, so every page picks it up.
   Phosphor colour is one number: --h (green 135, amber 38, ice 190). The player chooses it in Settings. */

:root {
  --h: 135;
  --ph: hsl(var(--h) 100% 72%);
  --ph-bright: hsl(var(--h) 100% 88%);
  --ph-glow: hsl(var(--h) 100% 60% / .45);
  --ink: hsl(var(--h) 45% 2.4%);
  --deep: hsl(var(--h) 38% 3.8%);
  --panel: hsl(var(--h) 32% 6.5%);
  --raise: hsl(var(--h) 32% 10%);
  --line: hsl(var(--h) 46% 17%);
  --text: hsl(var(--h) 80% 78%);
  --muted: hsl(var(--h) 38% 54%);
  --brass: var(--ph);
  --brass-ink: hsl(var(--h) 80% 4%);
  --teal: var(--ph);
  --coral: #ff6a3d;
  --ore: #ffb000;
  --crystal: #5de6ff;
  --fuel: #8dff7a;
  --energy: #f4ff6a;
  --serif: "Chakra Petch", "Bahnschrift", "Segoe UI Semibold", system-ui, sans-serif;
  --sans: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  --radius: 0;
  --cut: 8px;
}
html[data-phosphor="amber"] { --h: 38; }
html[data-phosphor="ice"] { --h: 190; }

body { font-size: 15px; line-height: 1.55; letter-spacing: 0; font-feature-settings: normal; text-shadow: 0 0 4px color-mix(in srgb, currentColor 30%, transparent); }
h1, h2, h3, h4 { text-transform: uppercase; letter-spacing: .09em; text-shadow: 0 0 8px var(--ph-glow); }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: .98rem; }
p { max-width: 70ch; }
a { color: var(--ph); text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--ph) 55%, transparent); }
a:hover { color: var(--ph-bright); text-decoration: none; border-bottom-style: solid; }
.btn, .rail a, .brand, .tabs a, .skip, .more-panel a { border-bottom: 0; }
::selection { background: var(--ph); color: var(--brass-ink); text-shadow: none; }
:focus-visible { outline: 1px solid var(--ph); outline-offset: 3px; box-shadow: 0 0 10px var(--ph-glow); }
.num, .timer { text-shadow: 0 0 6px var(--ph-glow); }

/* ---------- the screen itself ---------- */

body { background: var(--ink); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .32) 0 1px, transparent 1px 3px);
  animation: flicker 7s steps(1, end) infinite;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 91; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(to bottom, hsl(var(--h) 100% 60% / .035), transparent 30%);
}
@keyframes flicker { 0%, 100% { opacity: 1; } 91% { opacity: .86; } 92% { opacity: 1; } 96% { opacity: .93; } }
/* one slow bright band that rolls down the glass, like a refresh line */
.shell::after { content: ""; position: fixed; left: 0; right: 0; top: -30vh; height: 28vh; z-index: 89; pointer-events: none;
  background: linear-gradient(to bottom, transparent, hsl(var(--h) 100% 60% / .045) 60%, transparent); animation: roll 11s linear infinite; }
@keyframes roll { to { transform: translateY(160vh); } }

/* ---------- the rail: a control panel ---------- */

.rail { background: var(--deep); border-right: 1px solid var(--line); box-shadow: inset -1px 0 0 hsl(var(--h) 100% 50% / .06), 6px 0 24px rgba(0, 0, 0, .5); }
.brand { display: block; padding: 0 1.1rem 1rem; font-size: 1.15rem; letter-spacing: .28em; color: var(--ph-bright); text-shadow: 0 0 10px var(--ph-glow); }
.brand small { display: block; margin-top: .3rem; font: 400 .62rem/1.3 var(--sans); letter-spacing: .12em; color: var(--muted); text-shadow: none; }
.rail li a { text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; padding: .5rem 1.1rem; border-left: 2px solid transparent; }
.rail li a::before { content: ">"; width: 1.1ch; margin-right: .6ch; opacity: 0; color: var(--ph); }
.rail li a:hover::before { opacity: .6; }
.rail li a[aria-current="page"] { background: linear-gradient(90deg, hsl(var(--h) 100% 60% / .16), transparent); border-left-color: var(--ph); color: var(--ph-bright); }
.rail li a[aria-current="page"]::before { opacity: 1; animation: blink 1.1s steps(1) infinite; }
.badge { border-radius: 0; background: var(--coral); color: #1a0500; clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%); }
@keyframes blink { 50% { opacity: 0; } }
.rail-foot { border-top: 1px dashed var(--line); font-size: .8rem; }
.wallet b { color: var(--energy); }
.rail li a .ti { filter: drop-shadow(0 0 3px var(--ph-glow)); }

/* ---------- status bar: segmented gauges ---------- */

.resbar { background: hsl(var(--h) 40% 3% / .95); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.gauge-name { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.gauge-val { font-size: 1.05rem; color: var(--g, var(--ph)); text-shadow: 0 0 8px color-mix(in srgb, var(--g, var(--ph)) 60%, transparent); }
.gauge-bar { height: 8px; background: repeating-linear-gradient(90deg, hsl(var(--h) 40% 12%) 0 5px, transparent 5px 7px); border-radius: 0; }
.gauge-bar i { border-radius: 0; background: repeating-linear-gradient(90deg, var(--g, var(--ph)) 0 5px, transparent 5px 7px); box-shadow: none; filter: drop-shadow(0 0 3px var(--g, var(--ph))); }
.gauge-rate { font-size: .68rem; }
.gauge.is-full .gauge-val { animation: blink 1s steps(1) infinite; }
.g-ore .gauge-name::before, .g-crystal .gauge-name::before, .g-fuel .gauge-name::before, .g-energy .gauge-name::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; background: var(--g); box-shadow: 0 0 6px var(--g); }
.gauge-name .ti { display: inline-block; width: 26px; height: 26px; margin: -6px .5rem -6px 0; vertical-align: middle; object-fit: contain; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--g) 55%, transparent)); }
.gauge-name:has(.ti)::before { display: none !important; }

/* ---------- headings, sections, notices ---------- */

main { max-width: 74rem; }
.page-head h1::before { content: ">"; color: var(--ph); margin-right: .55ch; }
.page-head h1::after { content: ""; display: inline-block; width: .55em; height: 1em; margin: 0 0 -.12em .35em; background: var(--ph); box-shadow: 0 0 10px var(--ph-glow); animation: blink 1.1s steps(1) infinite; }
.page-head p { text-transform: none; }
.section > h2, main > h2 { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); position: relative; }
.section > h2::before { content: "// "; color: var(--muted); }
.section > h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 3rem; height: 1px; background: var(--ph); box-shadow: 0 0 8px var(--ph); }
.notice, .nextstep { border: 1px solid var(--line); border-left: 3px solid var(--ph); background: hsl(var(--h) 100% 50% / .05); }
.flash, .alert { border-left-width: 3px; background: hsl(var(--h) 100% 50% / .07); font-size: .9rem; }
.flash::before { content: "[ OK ] "; color: var(--ph); }
.flash-error::before { content: "[ ERR ] "; color: var(--coral); }
.flash-info::before { content: "[ INFO ] "; color: var(--crystal); }
.flash-error { background: rgba(255, 106, 61, .1); }
.alert-hostile { background: rgba(255, 106, 61, .16); color: #ffb199; animation: alarm 1.6s steps(1) infinite; }
.alert-hostile::before { content: "!! WARNING !! "; color: var(--coral); font-weight: 700; }
@keyframes alarm { 50% { background: rgba(255, 106, 61, .06); } }

/* ---------- controls: chamfered, bracketed ---------- */

.btn { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; padding: .55rem 1.1rem; background: transparent; color: var(--ph); border: 1px solid var(--ph);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); box-shadow: inset 0 0 12px hsl(var(--h) 100% 50% / .12); text-shadow: 0 0 6px var(--ph-glow); }
.btn:hover { background: var(--ph); color: var(--brass-ink); text-shadow: none; box-shadow: 0 0 18px var(--ph-glow); }
.btn-quiet { color: var(--muted); border-color: var(--line); box-shadow: none; text-shadow: none; }
.btn-quiet:hover { background: hsl(var(--h) 100% 50% / .1); color: var(--ph-bright); box-shadow: none; }
.btn-danger { color: var(--coral); border-color: var(--coral); }
.btn-danger:hover { background: var(--coral); color: #1a0500; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .35; }
.linkbtn { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
label { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.check, .mission-pick label, .ship-pick label { text-transform: none; letter-spacing: 0; font-size: .9rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  background: hsl(var(--h) 60% 2%); border: 1px solid var(--line); border-bottom-color: hsl(var(--h) 60% 30%); color: var(--ph-bright); caret-color: var(--ph); border-radius: 0; box-shadow: inset 0 0 14px rgba(0, 0, 0, .7); text-shadow: 0 0 5px var(--ph-glow); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ph); box-shadow: inset 0 0 14px rgba(0, 0, 0, .7), 0 0 12px var(--ph-glow); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ph); }
select option { background: #000; color: var(--ph); }

/* ---------- ledgers and tables: ruled like a printout ---------- */

.entry { border-bottom: 1px dashed var(--line); }
.entry:hover { background: hsl(var(--h) 100% 50% / .035); }
.entry-main h3 { color: var(--ph-bright); }
.entry-main p, .entry-meta { color: var(--muted); }
.lvl { color: var(--energy); font-family: var(--sans); }
.cost span::before { border-radius: 0; box-shadow: 0 0 6px var(--c); }
.tag { border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; }
th { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; border-bottom: 1px solid var(--line); font-family: var(--sans); }
td { border-bottom: 1px dashed var(--line); }
.card, .away { border: 1px solid var(--line); background: var(--panel); border-radius: 0; position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.card.is-current { border-color: var(--ph); box-shadow: inset 0 0 20px hsl(var(--h) 100% 50% / .08); }
.meter, .queue li { border-radius: 0; }
.meter { height: 8px; background: repeating-linear-gradient(90deg, hsl(var(--h) 40% 12%) 0 5px, transparent 5px 7px); }
.meter i { background: repeating-linear-gradient(90deg, var(--ph) 0 5px, transparent 5px 7px); }
.tabs a[aria-current="page"] { border-bottom-color: var(--ph); color: var(--ph-bright); }
.chatlog { background: #000; border-radius: 0; box-shadow: inset 0 0 24px rgba(0, 0, 0, .8); }
details > summary { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.win { color: var(--ph); } .loss { color: var(--coral); }
.streak li { border-radius: 0; }

/* ---------- planets ---------- */

.planet-img { display: block; width: var(--size, 44px); height: var(--size, 44px); flex: none; object-fit: contain; }
.planet-img.xl { --size: 220px; }
.planet-img.sm { --size: 40px; }
.planet-img.xs { --size: 22px; }
.scope { position: relative; display: grid; place-items: center; width: 250px; height: 250px; flex: none;
  background:
    radial-gradient(circle, transparent 0 62%, hsl(var(--h) 100% 50% / .1) 62.5%, transparent 63.5%),
    radial-gradient(circle, transparent 0 80%, hsl(var(--h) 100% 50% / .08) 80.5%, transparent 81.5%),
    linear-gradient(hsl(var(--h) 100% 50% / .07) 1px, transparent 1px) 0 0 / 25px 25px,
    linear-gradient(90deg, hsl(var(--h) 100% 50% / .07) 1px, transparent 1px) 0 0 / 25px 25px,
    #000;
  border: 1px solid var(--line); }
.scope::before, .scope::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--ph); }
.scope::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.scope::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.scope .planet-img { --size: 232px; }
.scope .tick { position: absolute; font-size: .6rem; letter-spacing: .1em; color: var(--muted); text-shadow: none; }
.scope .tick.tl { top: 4px; left: 8px; } .scope .tick.br { bottom: 4px; right: 8px; }
.planet-head { align-items: flex-start; gap: 2rem; }

.datasheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .15rem 2.5rem; margin: 1rem 0 0; }
.datasheet div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line); padding: .25rem 0; }
.datasheet dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; align-self: end; }
.datasheet dd { margin: 0; color: var(--ph-bright); text-align: right; }
.lore { border-left: 2px solid var(--ph); padding: .2rem 0 .2rem 1rem; margin: 1rem 0; color: var(--text); max-width: 68ch; }
.lore b { color: var(--ph-bright); text-transform: uppercase; letter-spacing: .08em; }
.perks { list-style: none; margin: .5rem 0 0; }
.perks li { padding-left: 1.4ch; position: relative; font-size: .9rem; }
.perks li::before { content: "+"; position: absolute; left: 0; color: var(--ph); }
.perks li.minus::before { content: "-"; color: var(--coral); }
.stamp { display: inline-block; border: 1px solid var(--ph); color: var(--ph); padding: .1rem .5rem; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.stamp.hot { border-color: var(--coral); color: var(--coral); }

.orbit::before { background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px); }
.orbit .empty-dot { border-radius: 0; transform: rotate(45deg); border: 1px solid var(--muted); background: transparent; }
.orbit li.is-own .name { color: var(--ph-bright); }
.orbit li.is-empty .survey { color: var(--muted); font-size: .85rem; }

/* ---------- public pages: the boot screen ---------- */

body.public { background: radial-gradient(900px 520px at 78% -10%, hsl(var(--h) 80% 10%) 0%, transparent 65%), var(--ink); }
.pubbar { border-bottom: 1px dashed var(--line); }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: .06em; }
.hero p { color: var(--text); font-size: 1rem; }
.boot { font: 400 .82rem/1.6 var(--sans); color: var(--muted); margin: 0 0 1.5rem; white-space: pre-wrap; max-width: 60ch; text-shadow: none; }
.boot span { display: block; overflow: hidden; white-space: nowrap; width: 0; animation: type .9s steps(34, end) forwards; }
.boot span:nth-child(1) { animation-delay: .2s; } .boot span:nth-child(2) { animation-delay: 1.1s; } .boot span:nth-child(3) { animation-delay: 2s; }
.boot span:nth-child(4) { animation-delay: 2.9s; } .boot span:nth-child(5) { animation-delay: 3.8s; color: var(--ph); }
@keyframes type { to { width: 100%; } }
.hero-art .ring { border-color: var(--line); }
.hero-art img { filter: drop-shadow(0 0 22px hsl(var(--h) 100% 50% / .22)); }
.points h3 { color: var(--ph); }
.todo { border-radius: 0; }
.auth { border: 1px solid var(--line); padding: 1.5rem; background: var(--panel); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }

/* ---------- phosphor picker ---------- */
.phos { display: flex; gap: .75rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.phos label { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--line); padding: .5rem .8rem; cursor: pointer; margin: 0; }
.phos label:has(input:checked) { border-color: var(--ph); box-shadow: 0 0 12px var(--ph-glow); }
.phos i { width: .9rem; height: .9rem; display: inline-block; background: var(--sw); box-shadow: 0 0 8px var(--sw); }

@media (max-width: 860px) {
  .rail { background: hsl(var(--h) 40% 3% / .98); border-top: 1px solid var(--ph); }
  .rail li a::before { display: none; }
  .brand, .rail-foot, .rail li.sec { display: none; }
  .rail ul.nav-main > li > a { text-transform: uppercase; font-size: .54rem; letter-spacing: 0; padding-left: 0; padding-right: 0; }
  .more summary { font-size: .54rem; text-transform: uppercase; letter-spacing: 0; }
  .scope { width: 210px; height: 210px; margin: 0 auto; }
  .scope .planet-img { --size: 196px; }
  .planet-head { justify-content: center; }
  .shell::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .shell::after, .page-head h1::after, .alert-hostile { animation: none !important; }
  .boot span { width: 100% !important; animation: none !important; }
}
@media print { body::before, body::after, .shell::after { display: none; } }

.brand { text-transform: uppercase; }
.datasheet div { align-items: baseline; }
.datasheet dt { align-self: baseline; }
.datasheet dd { max-width: 60%; }
.orbit .info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.orbit .info > span, .orbit .info > details { display: block; margin: 0; }
.orbit .survey .stamp { margin-left: .5rem; }
.orbit details { margin: .15rem 0 0; }
.orbit details .datasheet { margin-top: .6rem; }
.orbit details .lore { margin: .6rem 0; }
.planet-img.sm { --size: 44px; }

/* ---------- minimal mode: quiet by default, detail on hover or focus ---------- */

.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .22s ease, opacity .22s ease; }
.reveal > * { overflow: hidden; min-height: 0; }
.entry:hover .reveal, .entry:focus-within .reveal, .hov:hover .reveal, .hov:focus-within .reveal { grid-template-rows: 1fr; opacity: 1; }
.hov { outline: 0; }
.hint { font-size: .68rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin: 0; transition: opacity .2s; }
.hov:hover .hint, .hov:focus-within .hint { opacity: 0; }

.entry { padding: .55rem 0; }
.entry-main h3 { margin: 0; }
.entry-main .entry-meta { margin-top: .15rem; }
.entry.is-locked { opacity: .4; }
.entry:hover { background: linear-gradient(90deg, hsl(var(--h) 100% 60% / .05), transparent); }

/* resource bar: name, value, bar. Rates appear under the gauge on hover. */
.gauge { position: relative; outline: 0; }
.gauge .gauge-rate { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; white-space: nowrap; padding: .3rem .6rem;
  background: var(--panel); border: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .15s, transform .15s; }
.gauge:hover .gauge-rate, .gauge:focus .gauge-rate, .gauge.is-short .gauge-rate { opacity: 1; transform: none; }

/* planet header */
.where { margin: .25rem 0 0; }
.worldsheet .datasheet { margin-top: .6rem; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.worldsheet .datasheet div { border-bottom: 0; flex-direction: column; gap: 0; padding: .1rem 0; }
.worldsheet .datasheet dd { text-align: left; max-width: none; }
.worldsheet .reveal .datasheet { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: .8rem; }
.worldsheet .reveal .datasheet div { flex-direction: row; justify-content: space-between; border-bottom: 1px dotted var(--line); }
.worldsheet .reveal .datasheet dd { text-align: right; }
.lore { margin: .8rem 0 .4rem; }
.lore p { color: var(--muted); }

/* calmer page chrome */
.page-head p { color: var(--muted); font-size: .85rem; }
.section { margin-bottom: 1.6rem; }
.section > h2::before { content: ""; }
.nextstep { font-size: .85rem; padding: .4rem .8rem; margin-bottom: 1rem; }
body { text-shadow: none; }
.num, .timer, h1, h2, h3 { text-shadow: 0 0 6px var(--ph-glow); }
body::before { background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.shell::after { display: none; }
.rail li.sec a { opacity: .75; }

/* touch screens have no hover: show everything */
@media (hover: none) {
  .reveal { grid-template-rows: 1fr; opacity: 1; }
  .hint { display: none; }
  .gauge .gauge-rate { position: static; opacity: 1; transform: none; padding: 0; border: 0; background: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal, .gauge .gauge-rate { transition: none; } }

/* ---------- motion: panels power up, fold shut, respond to touch ---------- */

/* each panel on a page opens like a screen warming: a bright line splits into the full box */
@keyframes panel-open {
  0% { clip-path: inset(49% 0 49% 0); opacity: .2; filter: brightness(2.2); }
  55% { clip-path: inset(0 0 0 0); opacity: 1; filter: brightness(1.5); }
  100% { clip-path: inset(0 0 0 0); opacity: 1; filter: none; }
}
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes gauge-fill { from { width: 0; } }
@keyframes pulse-edge { 0%, 100% { box-shadow: 0 0 0 transparent; } 50% { box-shadow: 0 0 14px var(--ph-glow); } }

main > .section, main > .planet-head, main > .notice, main > .nextstep, main > .away, main > .page-head { animation: panel-open .5s cubic-bezier(.2, .8, .2, 1) both; }
main > :nth-child(2) { animation-delay: .06s; } main > :nth-child(3) { animation-delay: .12s; } main > :nth-child(4) { animation-delay: .18s; }
main > :nth-child(5) { animation-delay: .24s; } main > :nth-child(6) { animation-delay: .3s; } main > :nth-child(n+7) { animation-delay: .36s; }
.entry, .queue li, .ledger li { animation: slide-in .35s ease both; }
.ledger .entry:nth-child(2) { animation-delay: .05s; } .ledger .entry:nth-child(3) { animation-delay: .1s; } .ledger .entry:nth-child(4) { animation-delay: .15s; } .ledger .entry:nth-child(n+5) { animation-delay: .2s; }
.gauge-bar i { animation: gauge-fill .9s cubic-bezier(.2, .8, .2, 1) both; transition: width .8s ease; }
.flash { animation: slide-in .3s ease both; }
.alert-hostile { animation: pulse-edge 1.4s ease-in-out infinite; }

/* foldable section panels */
.fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
.fold-in { min-height: 0; overflow: hidden; }
.section.is-closed > .fold { grid-template-rows: 0fr; opacity: 0; }
.section > h2.foldable { cursor: pointer; user-select: none; display: flex; align-items: center; gap: .6rem; }
.section > h2.foldable::before { content: "\25BE"; display: inline-block; color: var(--ph); font-size: .8em; transition: transform .25s ease; }
.section.is-closed > h2.foldable::before { transform: rotate(-90deg); }
.section > h2.foldable:hover { color: var(--ph-bright); }
.section.is-closed > h2.foldable { opacity: .65; }

/* controls feel mechanical: buttons light a sweep on hover and press in */
.btn { position: relative; overflow: hidden; transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, hsl(var(--h) 100% 80% / .28) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover:not(:disabled)::after { transform: translateX(120%); transition: transform .55s ease; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.rail li a { transition: padding-left .18s ease, background .2s ease, color .2s ease; }
.rail li a:hover { padding-left: 1.4rem; }
.more-panel { transform-origin: top; animation: panel-open .25s ease both; }
.gauge { transition: filter .2s ease; }
.gauge:hover { filter: brightness(1.25); }

@media (prefers-reduced-motion: reduce) {
  main > *, .entry, .queue li, .ledger li, .gauge-bar i, .flash, .more-panel { animation: none !important; }
  .fold, .section > h2.foldable::before, .btn, .rail li a { transition: none; }
}

/* ---------- archive: relics and the data slate ---------- */
.relics, .shelf { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; margin-top: 1rem; }
.relic, .slate { border: 1px solid var(--line); background: var(--panel); padding: .7rem .9rem; display: flex; flex-direction: column; gap: .15rem; outline: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: border-color .2s, box-shadow .2s; }
.relic:not(.is-got), .slate.is-locked { opacity: .45; }
.relic.is-got:hover, .relic.is-got:focus-within, .slate:not(.is-locked):hover { border-color: var(--ph); box-shadow: inset 0 0 18px hsl(var(--h) 100% 50% / .1); }
.relic.r2.is-got b { color: var(--crystal); } .relic.r3.is-got b { color: var(--energy); }
.relic .tag { align-self: flex-start; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.relic p { font-size: .85rem; margin: .4rem 0 0; }
.slate a { display: flex; flex-direction: column; gap: .15rem; border: 0; }

.tablet { display: flex; justify-content: center; padding: 1rem 0 2rem; }
.tablet-bezel { width: min(100%, 38rem); padding: 1.1rem; border-radius: 22px; background: linear-gradient(145deg, #1b201c, #0b0e0c); border: 1px solid #2a332c; box-shadow: 0 18px 50px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .05); position: relative; }
.tablet-bezel::after { content: ""; position: absolute; right: 50%; bottom: .35rem; width: 2.2rem; height: 3px; background: #2a332c; border-radius: 3px; transform: translateX(50%); }
.tablet-screen { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; min-height: 26rem; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; box-shadow: inset 0 0 40px hsl(var(--h) 100% 50% / .08); position: relative; overflow: hidden; }
.tablet-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); }
.tablet-screen header h1 { font-size: 1.15rem; margin: .2rem 0 .8rem; }
.tablet-screen header h1::before, .tablet-screen header h1::after { content: none; }
.tablet-page { flex: 1; animation: page-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.tablet-page h2 { font-size: .95rem; color: var(--ph-bright); border: 0; padding: 0; margin: 0 0 .6rem; }
.tablet-page h2::before, .tablet-page h2::after { content: none; }
.tablet-page p { font-size: 1.02rem; line-height: 1.75; color: var(--text); max-width: none; }
.tablet-screen footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; padding-top: .8rem; border-top: 1px dashed var(--line); position: relative; z-index: 1; }
@keyframes page-in { from { opacity: 0; transform: translateX(26px); filter: brightness(2); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .tablet-page { animation: none; } }

/* ---------- mining pulse: faster pulse means faster mining; +n shows what you earn ---------- */
.gauge-per { margin-left: .55rem; font-size: .66rem; letter-spacing: .04em; color: var(--g); opacity: .85; text-transform: none; }
.g-ore .gauge-name::before, .g-crystal .gauge-name::before, .g-fuel .gauge-name::before { animation: mine-pulse var(--pulse, 2s) ease-in-out infinite; }
.g-ore .gauge-bar i, .g-crystal .gauge-bar i, .g-fuel .gauge-bar i { position: relative; overflow: hidden; }
.g-ore .gauge-bar i::after, .g-crystal .gauge-bar i::after, .g-fuel .gauge-bar i::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: translateX(-100%); animation: mine-sweep var(--pulse, 2s) linear infinite;
}
.gauge.is-full .gauge-name::before, .g-energy.is-short .gauge-name::before { animation: none; }
@keyframes mine-pulse { 0%, 100% { transform: scale(.85); box-shadow: 0 0 3px var(--g); opacity: .7; } 50% { transform: scale(1.35); box-shadow: 0 0 12px var(--g); opacity: 1; } }
@keyframes mine-sweep { to { transform: translateX(100%); } }
.gauge .plus { position: absolute; right: 0; top: -.2rem; font-style: normal; font-size: .72rem; color: var(--g); pointer-events: none; animation: plus-up 1.5s ease-out forwards; text-shadow: 0 0 6px var(--g); }
@keyframes plus-up { from { opacity: 1; transform: translateY(.9rem); } to { opacity: 0; transform: translateY(-.9rem); } }
@media (max-width: 860px) { .gauge-per { display: none; } }
@media (prefers-reduced-motion: reduce) { .g-ore .gauge-name::before, .g-crystal .gauge-name::before, .g-fuel .gauge-name::before, .gauge-bar i::after, .gauge .plus { animation: none !important; } }

/* ---------- event meters ---------- */
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; margin: 1.2rem 0 .4rem; }
.meter { height: 10px; margin: .3rem 0; background: repeating-linear-gradient(90deg, hsl(var(--h) 40% 12%) 0 6px, transparent 6px 8px); }
.meter i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--ph) 0 6px, transparent 6px 8px); filter: drop-shadow(0 0 3px var(--ph)); animation: gauge-fill .9s cubic-bezier(.2, .8, .2, 1) both; }
form.stack { display: grid; gap: .6rem; max-width: 22rem; margin-top: .8rem; }
form.stack label { display: grid; gap: .2rem; font-size: .8rem; color: var(--muted); }

/* resource icons pulse the way the old marker did */
.g-ore .gauge-name .ti, .g-crystal .gauge-name .ti, .g-fuel .gauge-name .ti { animation: icon-pulse var(--pulse, 2s) ease-in-out infinite; }
@keyframes icon-pulse { 0%, 100% { transform: scale(.94); filter: drop-shadow(0 0 2px color-mix(in srgb, var(--g) 40%, transparent)); } 50% { transform: scale(1.1); filter: drop-shadow(0 0 9px var(--g)); } }
.gauge.is-full .gauge-name .ti { animation: none; }
@media (prefers-reduced-motion: reduce) { .gauge-name .ti { animation: none !important; } }
.ti.big { width: 40px; height: 40px; margin-right: .6rem; vertical-align: middle; object-fit: contain; }

/* list icons: realistic art needs room; menu entries without art stay aligned */
.entry-main h3 .ti { width: 44px; height: 44px; margin: -6px .75rem -6px 0; vertical-align: middle; object-fit: contain; }
.rail li a:not(:has(.ti)) { padding-left: calc(1.1rem + 32px); }
.rail li a:not(:has(.ti)):hover { padding-left: calc(1.4rem + 32px); }
@media (max-width: 860px) { .rail li a:not(:has(.ti)), .rail li a:not(:has(.ti)):hover { padding-left: 0; } }

/* planet view: the layers sit on the globe and fade in one after the other */
.scope .planet-base { width: 232px; height: 232px; object-fit: contain; }
.scope .planet-layer { position: absolute; inset: 9px; width: 232px; height: 232px; object-fit: contain; mix-blend-mode: screen; animation: layer-in .9s ease-out both; animation-delay: calc(var(--i) * .25s); }
@keyframes layer-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scope .planet-layer { animation: none; } }
@media (max-width: 860px) { .scope .planet-base, .scope .planet-layer { width: 196px; height: 196px; } .scope .planet-layer { inset: 7px; } }

/* galaxy list: the finished planet picture sits on top of the small generated globe */
.orbit .dot { position: relative; }
.orbit .dot .orb-art { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); object-fit: contain; pointer-events: none; }

/* a young colony is only a few lights on the surface; the footprint grows with each stage */
.scope .planet-layer { transform: translate(var(--dx, 0), var(--dy, 0)) scale(var(--sc, 1)); opacity: var(--op, 1); animation-name: layer-in; }
.scope .layer-colony { --sc: .3; --dx: -9%; --dy: -4%; --op: .6; }
.scope .layer-industry { --sc: .72; --op: .85; }
.scope .layer-military { --sc: .92; --op: .9; }
@keyframes layer-in { from { opacity: 0; } to { opacity: var(--op, 1); } }

/* start screen with key art: the picture fades out at every edge into the page, the text sits on a dark fade at the left */
.hero.has-art { position: relative; grid-template-columns: minmax(0, 1fr); min-height: 32rem; padding: 4rem clamp(1rem, 4vw, 3rem) 3.5rem; margin: 0 calc(50% - 50vw); align-items: end; isolation: isolate; }
.hero.has-art::before { content: ""; position: absolute; inset: -3rem 0 0; z-index: -2; background: var(--hero-img) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 68%, transparent 100%), linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 68%, transparent 100%), linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.hero.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.5) 38%, rgba(0,0,0,0) 72%); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 62%, transparent 100%); }
/* the hero text lines up with the page column below it */
.hero.has-art { padding-left: max(clamp(1rem, 4vw, 3rem), calc(50vw - 29rem)); padding-right: max(clamp(1rem, 4vw, 3rem), calc(50vw - 29rem)); }
.hero.has-art > div { max-width: 38rem; }
@media (max-width: 860px) { .hero.has-art { margin: 0 -1rem; min-height: 28rem; }
  .hero.has-art::before { background-position: 70% center; }
  .hero.has-art::after { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.1) 100%); } }

/* home page: what is live and what is coming */
.happening { margin: 2rem 0 0; }
.happening h2 { margin-bottom: .25rem; }
.happen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.happen { position: relative; border: 1px solid var(--line); background: color-mix(in srgb, var(--ph) 4%, transparent); padding: 1rem 1.1rem; }
.happen.live { border-color: color-mix(in srgb, var(--ph) 55%, transparent); }
.happen.live::before { content: ""; position: absolute; top: .9rem; right: .9rem; width: 8px; height: 8px; border-radius: 50%; background: var(--ph); box-shadow: 0 0 8px var(--ph-glow); animation: live-dot 1.8s ease-in-out infinite; }
.happen-tag { display: block; font-size: .72rem; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }
.happen h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.happen p { margin: 0 0 .5rem; font-size: .9rem; }
.happen-clock { color: var(--ph); margin-bottom: 0 !important; }
@keyframes live-dot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .happen.live::before { animation: none; } }

/* mega event pictures */
.mega-art { height: clamp(9rem, 26vw, 18rem); margin: 0 0 1rem; background: var(--mega-img) center / cover no-repeat; border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); filter: brightness(.75); }
.happen.has-art { grid-column: 1 / -1; min-height: 14rem; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(90deg, rgba(5,10,8,.88) 20%, rgba(5,10,8,.2)), var(--happen-img) center / cover no-repeat; }
.happen.has-art p { max-width: 38rem; }

/* guided first hour */
.tour { border: 1px solid var(--line); border-left: 3px solid var(--ph); background: hsl(var(--h) 100% 50% / .05); padding: .9rem 1.1rem; margin-bottom: 1.25rem; }
.tour-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: .5rem; }
.tour-head h2 { margin: 0; }
.tour-meter { flex: 1 1 8rem; max-width: 14rem; }
.tour-list { list-style: none; margin: 0; padding: 0; }
.tour-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; padding: .3rem 0; opacity: .6; }
.tour-list li.is-now, .tour-list li.is-done { opacity: 1; }
.tour-list li.is-done strong { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.tour-mark { color: var(--ph); text-align: center; font-weight: 700; }
.tour-why { color: var(--muted); margin: .2rem 0; }
.tour p { margin: .25rem 0; }

/* alliance banners */
.banner-sm { width: 34px; height: 42px; flex: none; }
.banner-lg { width: 110px; height: auto; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.roster-name { display: flex; align-items: center; gap: .7rem; }
.alliance-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.found-form { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.found-fields { flex: 1 1 22rem; max-width: 34rem; }
.found-form .banner-lg { width: 150px; }

/* sealed future events: greyed, clickable, mostly a mystery */
.horizon { margin: 1.75rem 0 1rem; }
.horizon-h { font-size: .9rem; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; font-weight: 400; }
.horizon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; }
.sealed { border: 1px solid var(--line); background: rgba(255,255,255,.02); filter: grayscale(1); opacity: .62; transition: opacity .2s, filter .2s; position: relative; overflow: hidden; }
.sealed:hover, .sealed[open] { opacity: .9; filter: grayscale(.6); }
.sealed.is-mega::before { content: ""; position: absolute; inset: 0; background: var(--sealed-img) center / cover; filter: blur(7px) brightness(.55); opacity: .5; z-index: 0; }
.sealed > * { position: relative; z-index: 1; }
.sealed summary { cursor: pointer; padding: .8rem 1rem; list-style: none; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.sealed summary::-webkit-details-marker { display: none; }
.sealed-year { color: var(--text); font-size: 1.05rem; }
.sealed-tag { font-size: .72rem; letter-spacing: .08em; color: var(--muted); }
.sealed-name { letter-spacing: .3em; color: var(--muted); margin-left: auto; }
.sealed-body { padding: 0 1rem .9rem; }
.sealed-body p { margin: .3rem 0; }

/* announcement screens */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.announce { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: hsl(var(--h) 40% 1.5% / .88); animation: announce-in .5s ease-out both; }
.announce-card { position: relative; width: min(36rem, 100%); max-height: 100%; overflow: auto; padding: 0; border: 1px solid var(--ph); background: var(--deep); box-shadow: 0 0 40px var(--ph-glow); }
.announce-body { padding: 2rem 1.75rem 1.5rem; }
.announce-card.has-art h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: .6rem; }
.announce-card.has-art .announce-text { margin-bottom: .9rem; }
.announce-pledge select { width: auto; max-width: 100%; }
.announce-pledge { margin-bottom: .9rem; padding: .8rem 0; }
.announce-hero { position: relative; width: 100%; height: clamp(9rem, 32vh, 17rem); overflow: hidden; border-bottom: 1px solid var(--line); }
.announce-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.announce-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--deep)); }
.announce-card.has-art { width: min(44rem, 100%); }
.announce-card.has-art .announce-body { padding-top: .6rem; }
.announce-tag { font-size: .75rem; letter-spacing: .12em; color: var(--muted); margin: 0 0 .5rem; }
.announce-card h2 { margin: 0 0 .9rem; font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.15; color: var(--ph-bright); text-shadow: 0 0 14px var(--ph-glow); }
.announce-text { margin: 0 0 1.25rem; max-width: 60ch; }
.announce-pledge { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: 0 0 1.1rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.announce-pledge label { display: grid; gap: .25rem; font-size: .8rem; color: var(--muted); }
.announce-pledge input { width: 8rem; }
.announce-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@keyframes announce-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .announce { animation: none; } }

/* small events: a short banner picture shared by every event of the same type */
.announce-card.has-art.small { width: min(34rem, 100%); }
.announce-card.small .announce-hero { height: clamp(5rem, 16vh, 8rem); }

/* a picture shown whole on black (an icon-like object, such as the Neather Shard) */
.announce-card.contain .announce-hero { height: clamp(14rem, 44vh, 24rem); background: #000; }
.announce-card.contain .announce-hero img { object-fit: contain; }
.announce-card.contain .announce-hero::after { background: linear-gradient(to bottom, transparent 80%, var(--deep)); }

/* Neather Shard gauge: the only place the rainbow is used */
.g-shard { --g: #d3b4ff; }
.g-shard .gauge-bar i { background: linear-gradient(90deg, #b46bff, #5fa8ff, #5fffa8, #ffd25f, #ff6b5f); filter: none; }
.neather-note { border-left-color: #b9a1ff; }
.resbar:has(.g-shard) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .resbar:has(.g-shard) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Galactic News: a small radio in the top right of the resource bar */
.main-col .resbar { padding-right: 4.6rem; }
.news-radio { position: absolute; top: .45rem; right: clamp(.6rem, 2vw, 1.4rem); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; color: var(--ph, #6ff2a0); border: 1px solid var(--line); border-radius: 4px; background: hsl(var(--h) 40% 4% / .9); text-decoration: none; }
.news-radio:hover, .news-radio:focus-visible, .news-radio[aria-current="page"] { border-color: var(--ph, #6ff2a0); box-shadow: 0 0 10px hsl(var(--h) 80% 50% / .35); }
.news-dot { position: absolute; top: -.4rem; right: -.4rem; min-width: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--coral, #ff7a59); color: #1a0803; font-size: .7rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
@media (max-width: 760px) { .main-col .resbar { padding-right: 3rem; } .news-radio { width: 2rem; height: 2rem; top: .3rem; right: .4rem; } .news-radio svg { width: 18px; height: 18px; } }

.news-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.news-filter { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; }
.news-filter[aria-current="true"] { border-color: var(--ph, #6ff2a0); color: var(--ph, #6ff2a0); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 56rem; }
.news-item { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .9rem; align-items: baseline; padding: .65rem .9rem; border: 1px solid var(--line); border-left-width: 3px; border-radius: 3px; }
.news-item.is-new { border-left-color: var(--ph, #6ff2a0); }
.news-conflict { border-left-color: var(--coral, #ff7a59); }
.news-diplomacy { border-left-color: #7fb8ff; }
.news-world { border-left-color: var(--brass, #e0b45a); }
.news-item.is-new { background: hsl(var(--h) 40% 8% / .6); }
.news-tag { font-size: .8rem; opacity: .8; }
.news-title { display: block; }
.news-time { font-size: .8rem; white-space: nowrap; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: .15rem; } }

/* Upgraded ships: the glow follows the outline of the ship picture itself. Colour alone marks the level: green, blue, purple; orange and ice are kept for higher levels. */
.ship-glow { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .6rem; vertical-align: middle; }
.ship-glow .ti { width: 1.9rem; height: 1.9rem; object-fit: contain; margin: 0; }
.glow-green .ti { filter: drop-shadow(0 0 1px #6cc88f) drop-shadow(0 0 3px #6cc88f) drop-shadow(0 0 7px rgba(108, 200, 143, .8)); }
.glow-blue .ti { filter: drop-shadow(0 0 1px #6aa5e6) drop-shadow(0 0 3px #6aa5e6) drop-shadow(0 0 7px rgba(106, 165, 230, .85)); }
.glow-purple .ti { filter: drop-shadow(0 0 1px #a883d9) drop-shadow(0 0 3px #a883d9) drop-shadow(0 0 7px rgba(168, 131, 217, .85)); }
.glow-orange .ti { filter: drop-shadow(0 0 1px #e6a55c) drop-shadow(0 0 3px #e6a55c) drop-shadow(0 0 7px rgba(230, 165, 92, .85)); }
.glow-ice .ti { filter: drop-shadow(0 0 1px #e4f2f8) drop-shadow(0 0 3px #b8dbe8) drop-shadow(0 0 8px rgba(184, 219, 232, .9)); }
.ship-chip { display: inline-flex; align-items: center; margin-right: .75rem; white-space: nowrap; }
.ship-chip .ship-glow { width: 1.5rem; height: 1.5rem; margin-right: .3rem; }
.ship-chip .ship-glow .ti { width: 1.4rem; height: 1.4rem; }
.ship-pick label .ship-glow { margin-right: .4rem; }
.entry h3 .ship-glow { width: auto; min-width: 2.4rem; margin-right: .7rem; }
.entry h3 .ship-glow .ti { width: 2.4rem; height: 1.9rem; }
