:root {
  --bg: #05070d; --cyan: #5df2ff; --pink: #ff3d6e; --gold: #ffd24d; --violet: #c77dff; --green: #3dffb0;
  --txt: #e8f4ff; --dim: #8aa0b8;
  --font: Bahnschrift, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--txt);
  font-family: var(--font); user-select: none; -webkit-user-select: none; touch-action: none;
}
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
h1, h2, p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font); font-weight: 700; font-size: 16px; letter-spacing: .18em; color: var(--cyan);
  background: rgba(93, 242, 255, .06); border: 2px solid var(--cyan); border-radius: 10px; padding: 12px 26px;
  cursor: pointer; text-shadow: 0 0 10px rgba(93, 242, 255, .7);
  box-shadow: 0 0 16px -4px var(--cyan), inset 0 0 16px -8px var(--cyan);
  transition: transform .12s, background .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); background: rgba(93, 242, 255, .16); box-shadow: 0 0 26px -2px var(--cyan), inset 0 0 18px -6px var(--cyan); }
.btn:active { transform: scale(.97); }
.btn.big { font-size: 24px; padding: 16px 54px; color: #06121a; background: linear-gradient(180deg, #8ff7ff, #37c8e6); border-color: #c9fbff; text-shadow: none; animation: breathe 1.6s ease-in-out infinite alternate; }
.btn.big:hover { background: linear-gradient(180deg, #c9fbff, #5df2ff); }
.btn.small { font-size: 13px; padding: 8px 18px; }
.btn.tiny { font-size: 15px; padding: 6px 12px; letter-spacing: 0; border-width: 1px; }
.btn.danger { color: var(--pink); border-color: var(--pink); background: rgba(255, 61, 110, .06); text-shadow: 0 0 10px rgba(255, 61, 110, .7); box-shadow: 0 0 16px -4px var(--pink); }
@keyframes breathe { from { box-shadow: 0 0 18px -2px var(--cyan); } to { box-shadow: 0 0 42px 2px var(--cyan); } }
.row { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---------- screens ---------- */
.screen {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 18px;
  background: radial-gradient(ellipse at center, rgba(5, 8, 18, .66), rgba(3, 5, 12, .9)); padding: 20px; text-align: center;
  overflow-y: auto; overflow-x: hidden;
}
.sub { color: var(--dim); letter-spacing: .22em; font-size: 13px; text-transform: uppercase; }
.logo {
  font-size: clamp(34px, 12.5vw, 132px); font-weight: 800; letter-spacing: .04em; line-height: .95; color: #fff;
  text-shadow: 0 0 18px rgba(93, 242, 255, .9), 0 0 60px rgba(93, 242, 255, .45);
}
.logo span { color: var(--gold); text-shadow: 0 0 18px rgba(255, 210, 77, .9), 0 0 60px rgba(255, 160, 40, .5); }
.logo.small { font-size: 26px; text-shadow: 0 0 12px rgba(93, 242, 255, .8); }
.logo.small span { text-shadow: 0 0 12px rgba(255, 210, 77, .8); }
#title { background: radial-gradient(ellipse at center, rgba(5, 8, 18, .45), rgba(3, 5, 12, .88)); gap: 26px; }
.tag { font-size: clamp(14px, 2vw, 20px); letter-spacing: .3em; color: var(--txt); text-transform: uppercase; opacity: .9; }
.controls { color: var(--dim); font-size: 13px; letter-spacing: .08em; line-height: 1.9; }
.controls b { color: var(--txt); }
h2 { font-size: clamp(30px, 5vw, 52px); letter-spacing: .14em; color: var(--cyan); text-shadow: 0 0 22px rgba(93, 242, 255, .7); }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; font-weight: 700; letter-spacing: .04em; }
.fill { height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0); }
#xpbar { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: rgba(255, 255, 255, .07); }
#xpfill { background: linear-gradient(90deg, #2a8fff, #5df2ff); box-shadow: 0 0 12px #5df2ff; transition: transform .15s; }
#hud-tl { position: absolute; left: 16px; top: 22px; display: flex; align-items: center; gap: 12px; }
#hpbar { position: relative; width: min(230px, 38vw); height: 20px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(61, 255, 176, .5); border-radius: 4px; overflow: hidden; }
#hpfill { background: linear-gradient(90deg, #1fbf7a, #3dffb0); transition: transform .12s; }
#hpbar.low { border-color: var(--pink); }
#hpbar.low #hpfill { background: linear-gradient(90deg, #c2163c, #ff3d6e); }
#hptext { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; text-shadow: 0 1px 2px #000; }
#lvl { font-size: 18px; color: var(--cyan); text-shadow: 0 0 10px rgba(93, 242, 255, .6); white-space: nowrap; }
#hud-tc { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); text-align: center; }
#timer { font-size: 34px; line-height: 1; text-shadow: 0 0 14px rgba(93, 242, 255, .5); }
#seclbl { font-size: 11px; color: var(--dim); margin-top: 3px; letter-spacing: .2em; white-space: nowrap; }
#hud-tr { position: absolute; right: 16px; top: 22px; text-align: right; font-size: 20px; display: flex; flex-direction: column; gap: 2px; }
.stat span { margin-right: 8px; opacity: .85; }
.stat.gold { color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 77, .5); }
#bossbar { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); width: min(560px, 70vw); text-align: center; }
#bossname { font-size: 14px; letter-spacing: .3em; color: var(--pink); margin-bottom: 4px; text-shadow: 0 0 10px rgba(255, 61, 110, .7); }
.bbar { height: 12px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 61, 110, .6); border-radius: 3px; overflow: hidden; }
#bossfill { background: linear-gradient(90deg, #ff3d6e, #ff9f1c); transition: transform .1s; }
#combo { position: absolute; right: 22px; top: 36%; font-size: 46px; font-style: italic; color: var(--gold); text-shadow: 0 0 18px rgba(255, 210, 77, .7); }
#banner { position: absolute; left: 0; right: 0; top: 20%; text-align: center; opacity: 0; }
#banner.show { animation: banner 1.9s ease-out both; }
.b-main { font-size: clamp(34px, 6vw, 68px); font-weight: 800; letter-spacing: .08em; text-shadow: 0 0 28px currentColor; }
.b-sub { font-size: clamp(12px, 1.6vw, 17px); letter-spacing: .3em; opacity: .85; margin-top: 4px; text-transform: uppercase; text-shadow: 0 2px 6px #000; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.6); } 12% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.96) translateY(-10px); } }
#hud-bl { position: absolute; left: 16px; bottom: 18px; }
#build { display: flex; gap: 10px; }
.bw {
  width: 46px; height: 46px; border: 2px solid var(--c); border-radius: 10px; background: rgba(0, 0, 0, .5); position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--c); text-shadow: 0 0 10px var(--c);
  box-shadow: 0 0 10px -2px var(--c), inset 0 0 12px -6px var(--c);
}
.bw i { position: absolute; right: -7px; bottom: -7px; font-size: 11px; font-style: normal; background: #0b1220; border: 1px solid var(--c); border-radius: 6px; padding: 0 4px; color: #fff; text-shadow: none; }
.bw.evo { border-color: var(--gold); box-shadow: 0 0 16px var(--gold); }
.bw.empty { border: 2px dashed rgba(255, 255, 255, .16); box-shadow: none; }
#hud-bc { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
#surge { pointer-events: auto; position: relative; width: min(340px, 56vw); height: 24px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 210, 77, .55); border-radius: 12px; overflow: hidden; cursor: pointer; }
#surgefill { background: linear-gradient(90deg, #ff9f1c, #ffd24d); }
#surgetxt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .22em; text-shadow: 0 1px 3px #000, 0 0 6px #000; white-space: nowrap; }
#surge.ready { animation: pulse .45s ease-in-out infinite alternate; border-color: #fff; box-shadow: 0 0 24px var(--gold); }
#surge.active { box-shadow: 0 0 28px var(--gold); border-color: var(--gold); }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.07); } }
#dash { pointer-events: auto; font-size: 11px; letter-spacing: .2em; color: var(--cyan); border: 1px solid rgba(93, 242, 255, .5); border-radius: 8px; padding: 3px 10px; background: rgba(0, 0, 0, .45); cursor: pointer; }
#dash i { opacity: .6; font-style: normal; margin-left: 8px; }
#dash.cd { opacity: .35; }
#hint { position: absolute; left: 0; right: 0; bottom: 100px; text-align: center; font-size: 15px; letter-spacing: .12em; opacity: 0; transition: opacity .6s; text-shadow: 0 2px 6px #000; padding: 0 16px; }
#hint.show { opacity: .92; }
#btn-pause { pointer-events: auto; position: absolute; right: 16px; bottom: 18px; opacity: .6; }

/* ---------- cards ---------- */
.cards { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; max-width: 1100px; }
.card {
  --c: var(--cyan);
  width: 214px; min-height: 268px; padding: 16px 14px 18px; border-radius: 16px; border: 2px solid var(--c); cursor: pointer; position: relative;
  background: linear-gradient(180deg, rgba(20, 28, 48, .96), rgba(8, 12, 24, .96));
  box-shadow: 0 0 22px -6px var(--c), inset 0 0 30px -18px var(--c);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: cardIn .38s cubic-bezier(.2, 1.4, .4, 1) both; transition: transform .14s, box-shadow .14s;
}
.card:hover { transform: translateY(-10px) scale(1.04); box-shadow: 0 0 38px -2px var(--c), inset 0 0 34px -14px var(--c); }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.8) rotate(-3deg); } to { opacity: 1; transform: none; } }
.card-tag { font-size: 11px; letter-spacing: .24em; color: var(--dim); font-weight: 700; }
.card-icon { font-size: 62px; line-height: 1.15; color: var(--c); text-shadow: 0 0 22px var(--c); }
.card-name { font-size: 20px; font-weight: 800; letter-spacing: .05em; }
.card-desc { font-size: 14px; color: #b9cbe0; line-height: 1.5; }
.card-desc b { color: #fff; }
.card-key { position: absolute; left: 10px; top: 8px; font-size: 12px; color: var(--dim); border: 1px solid rgba(255, 255, 255, .2); border-radius: 5px; padding: 0 6px; }
.card.r1 .card-tag { color: #6db8ff; }
.card.r2 .card-tag { color: #d59bff; }
.card.r3 .card-tag { color: var(--gold); }
.card.r2 { box-shadow: 0 0 30px -4px #c77dff, inset 0 0 30px -14px #c77dff; }
.card.r3 { border-color: var(--gold); box-shadow: 0 0 40px -2px var(--gold), inset 0 0 36px -12px var(--gold); background: linear-gradient(180deg, rgba(52, 40, 12, .97), rgba(14, 12, 6, .97)); }
.card.r3::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); background-size: 250% 100%; animation: shine 1.8s linear infinite; pointer-events: none; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
#chest h2, #chest-title { color: var(--gold); text-shadow: 0 0 26px rgba(255, 210, 77, .8); }
#chest .card { cursor: default; min-height: 220px; width: 180px; }
#chest .card-icon { font-size: 48px; }
#chest-shards { font-size: 30px; font-weight: 800; color: var(--gold); text-shadow: 0 0 16px rgba(255, 210, 77, .7); }

/* ---------- hub / upgrade web ---------- */
#hub { justify-content: flex-start; padding: 0; gap: 0; overflow: hidden; background: radial-gradient(ellipse at center, rgba(5, 8, 18, .82), rgba(3, 5, 12, .95)); }
#hub-top { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; z-index: 2; }
#hub-shards { font-size: 30px; font-weight: 800; color: var(--gold); text-shadow: 0 0 16px rgba(255, 210, 77, .6); }
#hub-shards span { margin-right: 10px; }
#tree-wrap { position: relative; flex: 1; width: 100%; overflow: hidden; cursor: grab; }
#tree-wrap:active { cursor: grabbing; }
#tree { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-origin: 0 0; }
#tree svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
#tree line { stroke: rgba(255, 255, 255, .12); stroke-width: 3; }
#tree line.lit { stroke: var(--c); stroke-opacity: .75; filter: drop-shadow(0 0 4px var(--c)); }
.node {
  --c: var(--cyan);
  position: absolute; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--c); background: #0a1020; color: var(--c);
  display: flex; align-items: center; justify-content: center; font-size: 26px; text-shadow: 0 0 10px var(--c);
  box-shadow: 0 0 14px -4px var(--c), inset 0 0 16px -8px var(--c); transition: transform .12s, box-shadow .12s, opacity .2s;
}
.node:hover, .node.sel { transform: scale(1.14); box-shadow: 0 0 24px 0 var(--c), inset 0 0 16px -6px var(--c); z-index: 3; }
.node b { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); font-size: 11px; background: #0b1220; border: 1px solid var(--c); border-radius: 7px; padding: 0 6px; color: #fff; text-shadow: none; white-space: nowrap; }
.node.locked { opacity: .28; filter: grayscale(.8); cursor: default; }
.node.afford { animation: nodePulse 1s ease-in-out infinite alternate; }
.node.maxed { border-color: var(--gold); color: var(--gold); text-shadow: 0 0 10px var(--gold); box-shadow: 0 0 16px -2px var(--gold); background: #1a1508; }
.node.maxed b { border-color: var(--gold); color: var(--gold); }
.node.core { width: 78px; height: 78px; margin: -39px 0 0 -39px; border-color: #fff; color: #fff; font-size: 34px; cursor: default; box-shadow: 0 0 34px 2px rgba(93, 242, 255, .8); text-shadow: 0 0 14px #fff; }
.node.bought { animation: bought .45s ease-out; }
.node.nope { animation: nope .3s; }
@keyframes nodePulse { from { box-shadow: 0 0 10px -2px var(--c); } to { box-shadow: 0 0 26px 4px var(--c); } }
@keyframes bought { 0% { transform: scale(1.6); filter: brightness(3); } 100% { transform: scale(1); filter: none; } }
@keyframes nope { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.arm-label { position: absolute; transform: translate(-50%, -50%); font-size: 12px; letter-spacing: .34em; font-weight: 700; color: var(--c); opacity: .55; white-space: nowrap; pointer-events: none; }
#node-info {
  position: absolute; right: 20px; bottom: 112px; width: min(330px, calc(100vw - 40px)); padding: 14px 16px; text-align: left; z-index: 2;
  background: rgba(8, 12, 24, .92); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; pointer-events: none; min-height: 118px;
}
#node-info .ni-arm { font-size: 11px; letter-spacing: .3em; }
#node-info .ni-name { font-size: 22px; font-weight: 800; margin: 2px 0 6px; }
#node-info .ni-eff { font-size: 14px; color: #b9cbe0; line-height: 1.5; }
#node-info .ni-eff b { color: #fff; }
#node-info .ni-cost { margin-top: 8px; font-size: 16px; font-weight: 800; color: var(--gold); }
#node-info .ni-cost.no { color: var(--pink); }
#node-info .ni-hint { font-size: 12px; color: var(--dim); letter-spacing: .08em; }
#hub-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 20px 18px; gap: 12px 16px; z-index: 2; }
#sector-sel { display: flex; align-items: center; gap: 10px; min-width: 250px; }
#sec-info { text-align: center; min-width: 170px; }
#sec-info b { display: block; font-size: 17px; letter-spacing: .14em; }
#sec-info small { color: var(--dim); font-size: 11px; letter-spacing: .1em; }
#hub-stats { min-width: 250px; text-align: right; color: var(--dim); font-size: 12px; letter-spacing: .1em; line-height: 1.7; }
#hub-stats b { color: var(--txt); }

/* ---------- pause ---------- */
#settings { display: flex; flex-direction: column; gap: 12px; align-items: stretch; width: min(340px, 90vw); text-align: left; font-size: 14px; letter-spacing: .12em; }
#settings label { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
#settings label.chk { justify-content: flex-start; }
#settings input[type=range] { width: 190px; accent-color: #5df2ff; }
#settings input[type=checkbox] { width: 18px; height: 18px; accent-color: #5df2ff; }
#pause-build { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; max-width: 720px; font-size: 13px; color: #b9cbe0; }
#pause-build b { color: #fff; }

/* ---------- results ---------- */
#res-title { font-size: clamp(36px, 7vw, 76px); letter-spacing: .1em; font-weight: 800; }
#res-title.lose { color: var(--pink); text-shadow: 0 0 30px rgba(255, 61, 110, .7); }
#res-title.win { color: var(--gold); text-shadow: 0 0 30px rgba(255, 210, 77, .8); }
#res-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
#res-stats div { min-width: 118px; padding: 10px 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; }
#res-stats span { display: block; font-size: 11px; letter-spacing: .24em; color: var(--dim); }
#res-stats b { font-size: 24px; }
#res-stats em { display: block; font-size: 10px; font-style: normal; color: var(--gold); letter-spacing: .2em; }
#res-break { font-size: 14px; color: #b9cbe0; line-height: 1.8; letter-spacing: .06em; }
#res-break b { color: var(--gold); }
#res-total { font-size: 54px; font-weight: 800; color: var(--gold); text-shadow: 0 0 24px rgba(255, 210, 77, .7); line-height: 1; }
#res-total span { margin-right: 12px; }
#res-miles { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.mile { padding: 6px 16px; border: 1px solid var(--gold); border-radius: 20px; background: rgba(255, 210, 77, .08); font-size: 13px; letter-spacing: .08em; animation: cardIn .4s both; }
.mile b { color: var(--gold); }
#res-next { font-size: 14px; color: var(--cyan); letter-spacing: .1em; min-height: 18px; }

@media (max-width: 760px), (max-height: 620px) {
  .card { width: 150px; min-height: 196px; padding: 10px 8px 12px; gap: 4px; }
  .card-icon { font-size: 40px; }
  .card-name { font-size: 15px; }
  .card-desc { font-size: 12px; }
  .cards { gap: 10px; }
  #timer { font-size: 26px; }
  #hud-tr { font-size: 16px; }
  #hub-stats { display: none; }
  #sector-sel { min-width: 0; }
  #node-info { bottom: 100px; }
  .screen { gap: 12px; }
  #res-total { font-size: 40px; }
  #res-stats { gap: 8px; }
  #res-stats div { min-width: 78px; padding: 6px 8px; }
  #res-stats b { font-size: 18px; }
  #res-stats span { letter-spacing: .12em; font-size: 10px; }
  #res-break { font-size: 12px; line-height: 1.6; }
  .mile { font-size: 11px; padding: 4px 12px; }
  .btn.big { font-size: 19px; padding: 12px 34px; }
  .tag { letter-spacing: .16em; }
  #hub-top { padding: 10px 12px; }
  #hub-shards { font-size: 22px; }
  #hub-bottom { justify-content: center; padding: 8px 12px 12px; }
  #node-info { right: 10px; left: 10px; top: 58px; bottom: auto; width: auto; padding: 8px 12px; min-height: 0; }
  #sector-sel { order: 2; }
  #node-info .ni-name { font-size: 17px; }
  #combo { font-size: 30px; right: 12px; top: 30%; }
  #hud-tl { left: 10px; top: 18px; gap: 8px; }
  #hud-tr { right: 10px; top: 44px; }
  #hpbar { width: 34vw; }
  #lvl { font-size: 14px; }
  #hint { font-size: 12px; bottom: 120px; }
  .bw { width: 36px; height: 36px; font-size: 17px; }
  #hud-bl { left: 10px; bottom: 64px; }
  #settings { font-size: 13px; }
}

/* ---------- milestones + damage breakdown ---------- */
.row.tight { gap: 8px; flex-wrap: nowrap; }
#miles { justify-content: flex-start; padding-top: 28px; }
#miles h2 { color: var(--gold); text-shadow: 0 0 22px rgba(255, 210, 77, .7); }
#miles-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px 12px; width: min(980px, 100%); text-align: left; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .03); opacity: .78; }
.mrow i { font-style: normal; font-size: 20px; color: var(--dim); width: 22px; text-align: center; }
.mrow div { flex: 1; min-width: 0; }
.mrow b { display: block; font-size: 14px; letter-spacing: .06em; }
.mrow small { color: var(--dim); font-size: 12px; }
.mrow em { font-style: normal; font-weight: 800; color: var(--gold); white-space: nowrap; }
.mrow.done { opacity: 1; border-color: rgba(255, 210, 77, .55); background: rgba(255, 210, 77, .07); }
.mrow.done i { color: var(--gold); text-shadow: 0 0 10px var(--gold); }
.mrow.done em { color: var(--dim); text-decoration: line-through; }
#res-dmg { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dchip { --c: var(--cyan); padding: 4px 12px; border: 1px solid var(--c); border-radius: 16px; font-size: 13px; color: var(--c); background: rgba(0, 0, 0, .35); letter-spacing: .06em; }
.dchip b { color: #fff; margin-left: 6px; }

/* ---------- relics, ships, evolution hints ---------- */
#relics { position: absolute; left: 16px; top: 52px; display: flex; gap: 6px; }
#relics span { width: 27px; height: 27px; border: 1px solid var(--c); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--c); background: rgba(0, 0, 0, .5); text-shadow: 0 0 8px var(--c); }
.card-evo { margin-top: 8px; font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.card-evo.ok { color: var(--gold); }
.card.relic .card-name { color: var(--gold); }
.card.ship { width: 196px; min-height: 270px; }
.ship-img { width: 88px; height: 88px; transform: rotate(-90deg); }
.ship-state { margin-top: auto; font-weight: 800; letter-spacing: .14em; font-size: 13px; padding: 5px 14px; border: 1px solid var(--c); border-radius: 8px; color: var(--c); }
.ship-state.sel, .ship-state.buy { color: var(--gold); border-color: var(--gold); }
.ship-state.buy.no { color: var(--pink); border-color: var(--pink); }
#sec-info { max-width: 330px; }
#sec-info small { display: block; line-height: 1.5; }
#hangar { justify-content: safe center; }
@media (max-width: 760px), (max-height: 620px) {
  #relics { left: 10px; top: 44px; }
  .card.ship { width: 150px; min-height: 216px; }
  .ship-img { width: 60px; height: 60px; }
}

/* hangar: six ships in one row on a desktop */
#ships { max-width: 1240px; gap: 14px; }
.card.ship { width: 178px; min-height: 262px; padding: 14px 10px 16px; }
@media (max-width: 760px), (max-height: 620px) {
  .card.ship { width: 150px; min-height: 216px; }
}

/* ---------- demo build ---------- */
.demo-tag { font-size: 15px; font-weight: 800; letter-spacing: .32em; color: #06121a; background: var(--gold); padding: 5px 16px; border-radius: 6px; box-shadow: 0 0 22px rgba(255, 210, 77, .6); }
.btn.gold { color: var(--gold); border-color: var(--gold); background: rgba(255, 210, 77, .08); text-shadow: 0 0 10px rgba(255, 210, 77, .7); box-shadow: 0 0 16px -4px var(--gold); }
.btn.gold:hover { background: rgba(255, 210, 77, .18); box-shadow: 0 0 26px -2px var(--gold); }
#fullgame h2 { color: var(--gold); text-shadow: 0 0 22px rgba(255, 210, 77, .7); }
#full-list { display: flex; flex-direction: column; gap: 8px; width: min(640px, 100%); text-align: left; }
#full-list .mrow b { font-size: 17px; }
#full-list .mrow small { font-size: 13px; }
.card.ship.teaser { cursor: default; border-style: dashed; opacity: .85; }
.card.ship.teaser .card-icon { font-size: 44px; font-weight: 800; }
