/* Space Clicker. Everything is prefixed sc- and lives inside .sc-root; nothing is position: fixed. */
.sc-root { --sc-dust: #ffd166; --sc-alloy: #b9c6dc; --sc-energy: #6ef0c2; --sc-dark: #b08cff; --sc-shard: #ff7eb6; --sc-acc: #55d6ff;
  --sc-line: #1f2f52; --sc-panel: #0a1226; --sc-card: #0f1a34; --sc-mute: #8aa3c4;
  position: relative; display: flex; flex-direction: column; gap: 6px; height: var(--sc-h, 600px); min-height: 430px; overflow: hidden;
  color: #dfe9ff; font-size: 14px; line-height: 1.35; font-variant-numeric: tabular-nums; border-radius: 12px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sc-root *, .sc-root *::before, .sc-root *::after { box-sizing: border-box; }
.sc-root [hidden] { display: none !important; }
.sc-root button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sc-root svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-root :focus-visible { outline: 2px solid var(--sc-acc); outline-offset: 2px; }
.stage.is-immersive .sc-root { height: auto; min-height: 0; border-radius: 0; }

.sc-main { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-view { position: relative; height: var(--sc-view, 250px); border-radius: 12px; overflow: hidden; background: #050816; border: 1px solid var(--sc-line); }
.sc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.sc-hud { position: absolute; inset: 0; pointer-events: none; padding: 8px 10px; display: flex; flex-direction: column; }
.sc-hud-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sc-totals { min-width: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9); }
.sc-dust { font-size: 30px; font-weight: 800; line-height: 1.05; color: #fff; letter-spacing: -0.01em; white-space: nowrap; }
.sc-dust-l { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-dust); margin-top: 1px; }
.sc-rate { font-size: 13px; color: #cfe0ff; margin-top: 2px; white-space: nowrap; }
.sc-rate span { font-weight: 700; color: #fff; }
.sc-rate.is-surge span { color: var(--sc-dust); }
.sc-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.sc-tools button { pointer-events: auto; }
.sc-ic, .sc-x { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 11px; border: 1px solid rgba(138, 163, 196, 0.28); background: rgba(8, 14, 32, 0.72); color: #cfe0ff; }
.sc-ic svg, .sc-x svg { width: 21px; height: 21px; }
.sc-ic .sc-dot { fill: currentColor; stroke: none; }
.sc-ic:hover, .sc-x:hover, .sc-lvl:hover { border-color: rgba(85, 214, 255, 0.6); color: #fff; }
.sc-ic .sc-spk { fill: currentColor; stroke: none; }
.sc-ic .sc-off { display: none; }
.sc-ic[aria-pressed="true"] .sc-on { display: none; }
.sc-ic[aria-pressed="true"] .sc-off { display: inline; }
.sc-ic[aria-pressed="true"] { color: var(--sc-mute); }
.sc-lvl { height: 40px; min-width: 52px; padding: 0 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 11px;
  border: 1px solid rgba(255, 209, 102, 0.4); background: rgba(8, 14, 32, 0.72); line-height: 1; }
.sc-lvl small { font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-dust); white-space: nowrap; }
.sc-lvl small i { font-style: normal; }
.sc-lvl b { font-size: 16px; color: #fff; margin-top: 2px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 4px 5px; margin-top: 6px; max-width: 100%; }
.sc-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: rgba(8, 14, 32, 0.72); border: 1px solid rgba(138, 163, 196, 0.22); font-size: 12px; white-space: nowrap; }
.sc-chip i { width: 8px; height: 8px; border-radius: 50%; align-self: center; background: var(--c); box-shadow: 0 0 6px var(--c); }
.sc-chip b { color: #fff; font-weight: 700; }
.sc-chip small { color: var(--sc-mute); font-size: 11px; }
.sc-c-alloy { --c: var(--sc-alloy); } .sc-c-energy { --c: var(--sc-energy); } .sc-c-dark { --c: var(--sc-dark); } .sc-c-shard { --c: var(--sc-shard); } .sc-c-dust { --c: var(--sc-dust); }
.sc-c-shard i { border-radius: 1px; transform: rotate(45deg); }
.sc-buffs { display: flex; flex-wrap: wrap; gap: 4px 5px; margin-top: 5px; }
.sc-buff { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: #1a1200; background: var(--sc-dust); box-shadow: 0 0 14px rgba(255, 209, 102, 0.5); }
.sc-buff.is-vein { background: #8ef0ff; color: #001a22; box-shadow: 0 0 14px rgba(85, 214, 255, 0.5); }
.sc-hint { margin: auto auto 12px; padding: 6px 14px; border-radius: 999px; background: rgba(8, 14, 32, 0.8); border: 1px solid rgba(255, 209, 102, 0.5); color: #fff; font-weight: 700; font-size: 13px; animation: sc-bob 1.4s ease-in-out infinite; }
@keyframes sc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.sc-heat { position: absolute; left: 10px; bottom: 8px; display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(8, 14, 32, 0.72); border: 1px solid rgba(138, 163, 196, 0.22); }
.sc-heat-l { text-transform: uppercase; letter-spacing: 0.1em; color: var(--sc-mute); font-weight: 700; }
.sc-heat-bar { width: 74px; height: 6px; border-radius: 4px; background: rgba(138, 163, 196, 0.2); overflow: hidden; }
.sc-heat-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #ff9d4d, #ffd166 60%, #fff); }
.sc-heat b { min-width: 3.1em; text-align: right; color: #fff; }
.sc-heat.is-hot { border-color: rgba(255, 209, 102, 0.7); box-shadow: 0 0 12px rgba(255, 170, 60, 0.35); }

.sc-main { position: relative; }
.sc-toasts { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; pointer-events: none; }
.sc-toasts:empty { display: none; }
.sc-toast { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 0 10px; padding: 5px 14px; border-radius: 12px; background: #0d1733; border: 1px solid rgba(255, 209, 102, 0.6); font-size: 13px; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: sc-toast-in 0.2s ease-out; }
.sc-toast.is-out { opacity: 0; transition: opacity 0.28s; }
.sc-toast small { grid-column: 2; display: block; color: var(--sc-mute); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-toast b { grid-column: 2; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-toast::before { content: ""; grid-row: 1 / span 2; width: 9px; height: 9px; transform: rotate(45deg); background: var(--sc-dust); box-shadow: 0 0 8px var(--sc-dust); }
.sc-toast.is-info { border-color: rgba(85, 214, 255, 0.5); }
.sc-toast.is-info::before { background: var(--sc-acc); box-shadow: 0 0 8px var(--sc-acc); border-radius: 50%; }
.sc-toast.is-bad { border-color: rgba(255, 107, 129, 0.6); }
.sc-toast.is-bad::before { background: #ff6b81; box-shadow: none; border-radius: 50%; }
@keyframes sc-toast-in { from { opacity: 0; } to { opacity: 1; } }

.sc-goal { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "k e" "t t"; align-items: center; gap: 0 8px; width: 100%; min-height: 40px; padding: 5px 12px 8px; text-align: left;
  border-radius: 11px; border: 1px solid var(--sc-line); background: var(--sc-panel); overflow: hidden; }
.sc-goal:hover { border-color: rgba(85, 214, 255, 0.45); }
.sc-goal-k { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-acc); white-space: nowrap; }
.sc-goal-k { grid-area: k; }
.sc-goal-t { grid-area: t; font-weight: 700; color: #fff; line-height: 1.2; overflow-wrap: break-word; }
.sc-goal-e { grid-area: e; justify-self: end; min-width: 0; max-width: 100%; overflow: hidden; font-size: 12px; color: var(--sc-mute); white-space: nowrap; }
.sc-goal-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(138, 163, 196, 0.14); }
.sc-goal-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sc-acc), #9be7ff); transition: width 0.25s linear; }
.sc-goal.is-ready { border-color: rgba(255, 126, 182, 0.7); }
.sc-goal.is-ready .sc-goal-k { color: var(--sc-shard); }
.sc-goal.is-ready .sc-goal-bar i { background: linear-gradient(90deg, var(--sc-shard), #ffd1e6); }

.sc-side { flex: 1 1 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-tabs { flex: none; display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--sc-panel); border: 1px solid var(--sc-line); }
.sc-tab { position: relative; flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 4px 3px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 0; border-radius: 9px; background: transparent; color: var(--sc-mute); }
.sc-tab svg { width: 19px; height: 19px; flex: none; }
.sc-tab span { font-size: 11px; font-weight: 600; white-space: nowrap; }
.sc-tab:hover { color: #dfe9ff; }
.sc-tab[aria-selected="true"] { background: #16254a; color: #fff; box-shadow: inset 0 -2px 0 var(--sc-acc); }
.sc-tab.is-locked { opacity: 0.55; }
.sc-tab em { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--sc-dust); color: #1a1200; font-size: 10px; font-weight: 800; font-style: normal; line-height: 16px; text-align: center; }
.sc-tab em.is-pink { background: var(--sc-shard); }
.sc-panel { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; border-radius: 12px; background: var(--sc-panel); border: 1px solid var(--sc-line); padding: 0 8px 10px; scrollbar-width: thin; scrollbar-color: #24365c transparent; }
.sc-panel:focus { outline: none; }

@media (min-width: 860px) {
  .sc-root { flex-direction: row; gap: 10px; height: var(--sc-h, 620px); }
  .sc-main { flex: 1 1 0; }
  .sc-view { flex: 1 1 0; height: auto; min-height: 0; }
  .sc-side { flex: 0 0 410px; }
  .sc-dust { font-size: 40px; }
  .sc-rate { font-size: 14px; }
  .sc-hud { padding: 12px 14px; }
  .sc-goal { min-height: 46px; padding: 7px 14px 10px; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "k t e"; gap: 8px; }
  .sc-tab span { font-size: 12px; }
  .sc-heat-bar { width: 110px; }
}
/* a phone held sideways (wide and short): star on the left, shop on the right, so the lists keep real height */
.sc-root.is-row { flex-direction: row; gap: 8px; }
.sc-root.is-row .sc-main { flex: 1 1 0; }
.sc-root.is-row .sc-view { flex: 1 1 0; height: auto; min-height: 0; }
.sc-root.is-row .sc-side { flex: 0 0 clamp(300px, 50%, 400px); }
/* sideways on a small phone: the shop keeps room for its tab labels, the star's buttons stand in a column */
.sc-root.is-row.is-tight .sc-side { flex-basis: clamp(300px, 54%, 400px); }
.sc-root.is-tight .sc-tools { position: absolute; top: 8px; right: 10px; flex-direction: column; align-items: flex-end; }
.sc-root.is-tight .sc-chips, .sc-root.is-tight .sc-buffs { padding-right: 54px; }     /* clear of the button column */
.sc-root.is-tight .sc-tab span { font-size: 10.5px; }
.sc-root.is-tight .sc-chip small { display: none; }     /* the colour dot says which supply it is, as in Research */
.sc-root.is-tight .sc-dust, .sc-root.is-tight .sc-dust[data-n="6"] { font-size: 26px; }
.sc-root.is-tight .sc-dust[data-n="7"] { font-size: 23px; }
.sc-root.is-tight .sc-dust[data-n="8"] { font-size: 21px; }
@media (max-width: 859px) {
  .sc-lvl { min-width: 48px; padding: 0 6px; }
  .sc-lvl small { font-size: 8px; line-height: 1.05; text-align: center; }
  .sc-lvl small i { display: block; }
  .sc-lvl b { font-size: 15px; margin-top: 1px; }
  .sc-tools { gap: 4px; }
  .sc-dust[data-n="7"] { font-size: 28px; }
  .sc-dust[data-n="8"] { font-size: 25px; }
  .sc-row-s { font-size: 11.5px; }
}
@media (max-width: 380px) {
  .sc-dust, .sc-dust[data-n="6"] { font-size: 26px; }
  .sc-dust[data-n="7"] { font-size: 23px; }
  .sc-dust[data-n="8"] { font-size: 21px; }
  .sc-tab span { font-size: 10.5px; }
}

/* ---- inside the panel ---- */
.sc-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 0 7px; background: var(--sc-panel); }
.sc-bar h4 { margin: 0; font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; }
.sc-bar small { color: var(--sc-mute); font-size: 12px; white-space: nowrap; }
.sc-sp { flex: 1 1 0; }
.sc-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: #070d1e; border: 1px solid var(--sc-line); }
.sc-seg button { min-width: 44px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--sc-mute); font-weight: 700; font-size: 13px; white-space: nowrap; }
.sc-seg button.is-on { background: #1b2d5a; color: #fff; }
.sc-list { display: flex; flex-direction: column; gap: 6px; }
.sc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 11px; background: var(--sc-card); border: 1px solid transparent; }
.sc-row.is-can { border-color: rgba(85, 214, 255, 0.35); }
.sc-row-ic { width: 44px; height: 44px; border-radius: 10px; background: #070d1e; display: grid; place-items: center; overflow: hidden; }
.sc-row-ic img { width: 40px; height: 40px; display: block; }
.sc-row-ic svg { width: 24px; height: 24px; color: var(--sc-acc); }
.sc-row-b { min-width: 0; }
.sc-row-n { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.sc-row-n b { font-weight: 700; color: #fff; line-height: 1.18; overflow-wrap: break-word; min-width: 0; }
.sc-row-n em { flex: none; font-style: normal; font-weight: 800; color: var(--sc-dust); font-size: 13px; }
.sc-row-s { font-size: 12px; color: var(--sc-mute); line-height: 1.25; }
.sc-row-s.is-wrap { white-space: normal; }
.sc-row-m { height: 3px; margin-top: 4px; border-radius: 2px; background: rgba(138, 163, 196, 0.14); overflow: hidden; }
.sc-row-m i { display: block; height: 100%; width: 0; background: var(--sc-dust); opacity: 0.8; }
.sc-buy { min-width: 98px; min-height: 44px; padding: 3px 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #2a3f6e; background: #131f3f; line-height: 1.15; }
.sc-buy small { font-size: 11px; color: var(--sc-mute); white-space: nowrap; }
.sc-buy b { font-size: 13.5px; white-space: nowrap; }
.sc-buy.is-can { background: linear-gradient(180deg, #2a8fb5, #1c6f93); border-color: #55d6ff; color: #fff; }
.sc-buy.is-can small { color: #d9f5ff; }
.sc-buy.is-can:hover { filter: brightness(1.12); }
.sc-buy.is-can:active { transform: translateY(1px); }
.sc-buy.is-off b { color: #7f93b5; }
.sc-btn { min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid #2a3f6e; background: #16254a; font-weight: 700; white-space: nowrap; }
.sc-btn:hover { border-color: rgba(85, 214, 255, 0.6); }
.sc-btn.is-main { background: linear-gradient(180deg, #2a8fb5, #1c6f93); border-color: #55d6ff; color: #fff; }
.sc-btn.is-pink { background: linear-gradient(180deg, #d9558f, #a93a6c); border-color: #ff9cc8; color: #fff; }
.sc-btn.is-warn { background: #3a1522; border-color: #ff6b81; color: #ffd3da; }
.sc-btn.is-off, .sc-btn[disabled] { opacity: 0.5; filter: saturate(0.5); }
.sc-btn.is-wait { opacity: 0.55; }
.sc-btn.is-small { min-height: 40px; padding: 0 11px; font-size: 13px; }
.sc-note { margin: 6px 2px; color: var(--sc-mute); font-size: 12.5px; }
.sc-note b { color: #dfe9ff; }
.sc-h { margin: 12px 2px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-mute); display: flex; justify-content: space-between; gap: 8px; }
.sc-h span { letter-spacing: 0; text-transform: none; font-weight: 600; }
.sc-meter { height: 6px; border-radius: 4px; background: rgba(138, 163, 196, 0.16); overflow: hidden; }
.sc-meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--sc-acc); }
.sc-meter.is-pink i { background: var(--sc-shard); }
.sc-meter.is-gold i { background: var(--sc-dust); }
.sc-card { padding: 10px; border-radius: 11px; background: var(--sc-card); margin-bottom: 6px; }
.sc-card h5 { margin: 0 0 2px; font-size: 14px; color: #fff; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sc-card h5 small { font-weight: 600; color: var(--sc-mute); font-size: 12px; white-space: nowrap; }
.sc-card p { margin: 3px 0; color: #b9c9e6; font-size: 13px; }
.sc-lock { margin: 26px 10px; text-align: center; color: var(--sc-mute); }
.sc-lock svg { width: 34px; height: 34px; color: #4d6490; }
.sc-lock b { display: block; color: #dfe9ff; font-size: 15px; margin: 6px 0 2px; }
.sc-cost { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 12.5px; }
.sc-cost span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #dfe9ff; }
.sc-cost span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sc-cost span.is-short { color: #ff9aa8; }
.sc-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 13px; }
.sc-sheet-body .sc-note { margin: 12px 0 4px; }
.sc-kv span { color: var(--sc-mute); }
.sc-kv b { text-align: right; color: #fff; white-space: nowrap; }
.sc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-acts .sc-btn { flex: 1 1 120px; }

/* research */
.sc-pips { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 6px 0; }
.sc-pip { height: 40px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; position: relative; }
.sc-pip i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #2a3f6e; background: #070d1e; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #5d7299; position: relative; z-index: 1; }
.sc-pip::before { content: ""; position: absolute; left: -50%; right: 50%; top: 19px; height: 2px; background: #2a3f6e; }
.sc-pip:first-child::before { display: none; }
.sc-pip.is-done i { background: var(--bc); border-color: var(--bc); color: #06101f; }
.sc-pip.is-done::before, .sc-pip.is-open::before { background: var(--bc); }
.sc-pip.is-open i { border-color: var(--bc); color: #fff; box-shadow: 0 0 10px color-mix(in srgb, var(--bc) 60%, transparent); }
.sc-pip.is-sel i { outline: 2px solid #fff; outline-offset: 2px; }
/* below about 410 px eight steps in a row would be under 40 px each: two rows of four, the second row starting a new line */
@media (max-width: 409px) { .sc-pips { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2px; } .sc-pip:nth-child(5)::before { display: none; } }
.sc-root.is-tight .sc-pips { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2px; } .sc-root.is-tight .sc-pip:nth-child(5)::before { display: none; }
.sc-br-0 { --bc: #ffb056; } .sc-br-1 { --bc: #6ef0c2; } .sc-br-2 { --bc: #b08cff; }
.sc-proj { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 4px; }
.sc-proj b { color: #fff; }
.sc-proj p { margin: 1px 0 4px; }

/* prestige */
.sc-sub { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 0 4px; }
.sc-sub button { flex: 1 1 auto; min-height: 40px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--sc-line); background: #070d1e; color: var(--sc-mute); font-weight: 700; font-size: 13px; white-space: nowrap; }
.sc-sub button.is-on { background: #1b2d5a; color: #fff; border-color: #3a5aa0; }
.sc-sub button.is-locked { opacity: 0.55; }
.sc-sub button.is-ping { border-color: var(--sc-shard); color: #ffd1e6; }
.sc-nova { text-align: center; padding: 14px 10px; border-radius: 12px; background: radial-gradient(120% 140% at 50% 0%, #3a1640 0%, #0f1a34 60%); border: 1px solid #4a2a5e; margin-bottom: 6px; }
.sc-nova-n { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.sc-nova-n small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-shard); margin-top: 2px; text-wrap: balance; }
.sc-nova p { margin: 8px auto; max-width: 34em; color: #c9d6ee; font-size: 13px; }
.sc-nova .sc-btn { min-width: 200px; min-height: 48px; font-size: 15px; }
.sc-detail { position: sticky; top: 0; z-index: 3; padding: 8px 0 6px; background: var(--sc-panel); }
.sc-detail .sc-card { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; min-height: 74px; border: 1px solid var(--sc-line); }
.sc-detail .sc-card > div { min-width: 0; }
.sc-map { position: relative; margin: 6px auto 4px; width: 100%; max-width: 392px; height: 500px; }
.sc-map svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #24365c; stroke-width: 2; }
.sc-map svg .is-lit { stroke: var(--sc-shard); opacity: 0.8; }
.sc-node { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border-radius: 50%; border: 2px solid #2a3f6e; background: #070d1e; display: grid; place-items: center; color: #5d7299; font-size: 11px; font-weight: 800; }
.sc-node svg { width: 20px; height: 20px; }
.sc-node small { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 7px; background: #0b1328; border: 1px solid currentColor; font-size: 9.5px; line-height: 13px; white-space: nowrap; }
.sc-node.is-open { border-color: #6f8fd0; color: #cfe0ff; }
.sc-node.is-can { border-color: var(--sc-shard); color: #fff; box-shadow: 0 0 12px rgba(255, 126, 182, 0.55); }
.sc-node.is-have { background: #3a1640; border-color: var(--sc-shard); color: #ffd1e6; }
.sc-node.is-max { background: var(--sc-shard); border-color: #ffd1e6; color: #2a0a1c; }
.sc-node.is-max small { color: #ffd1e6; border-color: var(--sc-shard); }
.sc-node.is-big { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 16px; }
.sc-node.is-sel { outline: 2px solid #fff; outline-offset: 2px; }
.sc-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 5px; margin: 6px 0; }
.sc-opt { min-height: 44px; padding: 4px 6px; border-radius: 10px; border: 1px solid var(--sc-line); background: #070d1e; color: #b9c9e6; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.sc-opt b { font-size: 13px; white-space: nowrap; }
.sc-opt small { font-size: 11px; color: var(--sc-mute); white-space: nowrap; }
.sc-opt.is-on { background: #1b2d5a; border-color: #55d6ff; color: #fff; }
.sc-relics { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: 6px 0 2px; }
.sc-relics i { aspect-ratio: 1; border-radius: 4px; border: 1px solid #2a3f6e; background: #070d1e; }
.sc-relics i.is-got { background: var(--sc-dust); border-color: #fff0c2; box-shadow: 0 0 6px rgba(255, 209, 102, 0.6); }
.sc-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: var(--sc-card); margin-bottom: 6px; }
.sc-toggle b { color: #fff; display: block; }
.sc-toggle small { color: var(--sc-mute); font-size: 12px; }
.sc-sw { width: 54px; height: 40px; padding: 0; border: 0; background: transparent; position: relative; }
.sc-sw::before { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 24px; border-radius: 12px; background: #1c2b4a; transition: background 0.15s; }
.sc-sw::after { content: ""; position: absolute; left: 6px; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: #8aa3c4; transition: transform 0.15s, background 0.15s; }
.sc-sw[aria-checked="true"]::before { background: #1c6f93; }
.sc-sw[aria-checked="true"]::after { transform: translateX(24px); background: #fff; }
.sc-sw[disabled] { opacity: 0.4; }

/* achievements */
.sc-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 5px; }
.sc-ach { position: relative; aspect-ratio: 1; min-height: 40px; padding: 0; border-radius: 10px; border: 1px solid #1f2f52; background: #070d1e; color: #3d5078; display: grid; place-items: center; }
.sc-ach svg { width: 22px; height: 22px; }
.sc-ach b { position: absolute; right: 3px; bottom: 1px; font-size: 9.5px; font-weight: 800; }
.sc-ach.is-got { background: #2c2208; border-color: #c79a2e; color: var(--sc-dust); }
.sc-ach.is-sel { outline: 2px solid #fff; outline-offset: 1px; }

/* sheets, the supernova flash */
.sc-sheet-wrap { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(2, 4, 12, 0.74); animation: sc-fade 0.16s ease-out; }
.sc-sheet { width: min(470px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 14px; background: #0b1328; border: 1px solid #2a3f6e; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); }
.sc-sheet:focus { outline: none; }
.sc-sheet-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 10px 8px 16px; border-bottom: 1px solid var(--sc-line); }
.sc-sheet-title { flex: 1 1 0; min-width: 0; margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.sc-x { flex: none; }
.sc-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; -webkit-overflow-scrolling: touch; }
.sc-sheet-body p { margin: 0 0 9px; color: #c9d6ee; }
.sc-sheet-body h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-mute); }
.sc-sheet-body ol, .sc-sheet-body ul { margin: 0 0 9px; padding-left: 20px; color: #c9d6ee; }
.sc-sheet-body li { margin-bottom: 5px; }
.sc-sheet-body kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid #2a3f6e; background: #070d1e; font: inherit; font-size: 12px; color: #fff; }
.sc-big { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; text-align: center; margin: 4px 0 12px; }
.sc-big small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-dust); margin-top: 3px; text-wrap: balance; }
.sc-big.is-pink small { color: var(--sc-shard); }
.sc-ta { width: 100%; min-height: 76px; resize: vertical; padding: 8px; border-radius: 9px; border: 1px solid #2a3f6e; background: #070d1e; color: #dfe9ff; font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all;
  -webkit-user-select: text; user-select: text; }
.sc-msg { margin: 6px 0 0; font-size: 13px; min-height: 1.3em; color: var(--sc-energy); }
.sc-msg.is-bad { color: #ff9aa8; }
.sc-flash { position: absolute; inset: 0; z-index: 25; pointer-events: none; background: radial-gradient(circle at 50% 40%, #fff 0%, #ffe9c4 40%, #ff9d4d 100%); opacity: 0; }
.sc-flash.is-on { animation: sc-flash 1.9s ease-out forwards; }
@keyframes sc-flash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sc-hint, .sc-toast, .sc-sheet-wrap { animation: none; }
  .sc-flash.is-on { animation-duration: 0.6s; }
  .sc-goal-bar i { transition: none; }
}
@media (min-width: 860px) {
  .sc-panel { padding: 0 10px 12px; }
  .sc-sheet-wrap { padding: 24px; }
}

/* ---- icons, small states ---- */
.sc-pi { display: block; width: 40px; height: 40px; background: center / contain no-repeat; }
.sc-ach .sc-pi { width: 30px; height: 30px; opacity: 0.28; filter: grayscale(1); }
.sc-ach.is-got .sc-pi { opacity: 1; filter: none; }
.sc-ach .sc-q { position: static; font-size: 16px; }
.sc-node .sc-pi { width: 32px; height: 32px; }
.sc-row.is-soon { opacity: 0.62; }
.sc-row.is-soon .sc-row-ic svg { color: #4d6490; }
.sc-row.is-flash { animation: sc-rowflash 0.9s ease-out; }
@keyframes sc-rowflash { 0% { box-shadow: 0 0 0 2px var(--sc-dust); } 100% { box-shadow: 0 0 0 2px transparent; } }
.sc-done { color: var(--sc-mute); font-size: 12px; text-align: right; max-width: 110px; }
.sc-report { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; margin-top: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(110, 240, 194, 0.45); background: rgba(110, 240, 194, 0.07); }
.sc-report.is-bad { border-color: rgba(255, 157, 77, 0.5); background: rgba(255, 157, 77, 0.07); }
.sc-report b { color: #fff; }
.sc-report p { margin: 2px 0 0; font-size: 12.5px; }
.sc-opts.is-two { grid-template-columns: 1fr 1fr; }
.sc-opts.is-two .sc-opt small { white-space: normal; text-align: center; }
.sc-toggle.is-locked { opacity: 0.6; }
.sc-card .sc-meter { margin: 6px 0 4px; }
.sc-nova .sc-meter { margin: 10px auto 4px; max-width: 320px; }
.sc-seg.is-wide { display: flex; }
.sc-seg.is-wide button { flex: 1 1 0; min-width: 0; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.sc-seg.is-wide button small { font-size: 11.5px; font-weight: 600; opacity: 0.8; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .sc-ta { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .sc-row.is-flash { animation: none; } }

/* research: the three supplies side by side */
.sc-b3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sc-b3 > div { padding: 6px 8px; border-radius: 10px; background: var(--sc-card); border-top: 2px solid var(--c); min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sc-b3 small { font-size: 11px; color: var(--c); font-weight: 700; white-space: nowrap; }
.sc-b3 b { font-size: 15px; color: #fff; white-space: nowrap; }
.sc-b3 em { font-style: normal; font-size: 11.5px; color: var(--sc-mute); white-space: nowrap; }
