/* Phone layout for Gwiezdny Odkrywca — same terminal look, portrait play. */

html,
body,
#root,
.game-container,
.column,
.screen-container,
.screen-content,
.screen-container h2,
.screen-title,
.menu-buttons,
.menu-button,
.upgrade-container,
.upgrade-grid,
.stat-row,
.options-container,
.music-playlist-section,
.music-playlist,
.music-track {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  font-size: 13px !important;
  line-height: 1.35;
  text-shadow: 0 0 4px rgba(0, 255, 0, 0.35) !important;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overscroll-behavior: none;
}

button,
.menu-button,
.close-button,
.station-button,
.upgrade-button {
  touch-action: manipulation;
}

.game-container,
.column,
.screen-container,
.screen-content {
  max-width: 100%;
  min-width: 0;
}

.game-container {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.middle-row,
.bottom-row {
  display: contents !important;
}

.column {
  box-shadow: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(0, 255, 0, 0.22) !important;
}

.column::before,
.column::after {
  display: none !important;
}

.game-area {
  max-width: none !important;
  width: 100%;
}

.top-row {
  order: 1;
  flex: 0 0 auto;
  min-height: 0 !important;
  height: auto;
}

.top-row > .column:not(.game-area) {
  display: none !important;
}

.top-row > .column.game-area {
  padding: 4px 10px 2px !important;
  align-items: center;
}

.system-info {
  font-size: 12px !important;
  letter-spacing: 0.04em;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.25;
}

.middle-row > .column:nth-child(1) {
  order: 2;
  flex: 0 0 auto;
  max-height: none;
  overflow: hidden;
  padding: 2px 8px 4px !important;
}

.left-column-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  gap: 2px;
  height: auto !important;
  width: 100%;
  font-size: 12px;
  line-height: 1.2;
}

.hud-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  width: 100%;
  min-width: 0;
}

.hud-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.left-column-content h3,
.info-panel-title {
  font-size: 12px !important;
  margin: 0 !important;
}

.hud-row .progress-bar,
.left-column-content .progress-bar {
  width: 52px;
  height: 8px;
  min-height: 8px;
  display: inline-block;
  vertical-align: middle;
}

.hud-xp {
  width: 64px !important;
}

.cargo-miniature {
  display: none !important;
}

.middle-row > .column.game-area {
  order: 3;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
  border-bottom: 0 !important;
}

.middle-row > .column.game-area .board-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  overflow: hidden;
  display: block;
}

.middle-row > .column.game-area .board {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  gap: 2px !important;
  border-radius: 0;
  touch-action: none;
  background: #050505;
}

.cell {
  font-size: 11px;
  border-radius: 2px;
  border-width: 1px;
  -webkit-tap-highlight-color: transparent;
}

.cell img,
.icon {
  width: 92% !important;
  height: 92% !important;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hit-info {
  font-size: 10px !important;
  padding: 1px 3px;
}

.middle-row > .column:nth-child(3) {
  order: 4;
  flex: 0 1 auto;
  max-height: 34%;
  min-height: 0;
  overflow: auto;
  padding: 4px 8px 6px !important;
  -webkit-overflow-scrolling: touch;
  font-size: 12px;
  /* 0.14.16: bez kreski nad ramką dziennika (ta kolumna siedzi tuż nad logiem). */
  border-bottom: 0 !important;
}

.sensors-active {
  padding-top: 0 !important;
  font-size: 12px;
  text-align: center;
}

.info-panel {
  font-size: 12px;
}

.info-panel h3 {
  font-size: 14px !important;
  margin: 0 0 4px;
}

.scan-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.scan-card .info-image-container {
  flex: 0 0 88px;
  width: 88px;
  max-height: none;
  margin: 0;
}

.scan-card .info-image {
  width: 84px !important;
  height: 84px !important;
  max-height: 84px !important;
  object-fit: contain;
  padding: 2px;
}

.scan-data {
  flex: 1 1 auto;
  min-width: 0;
}

.middle-row > .column:nth-child(3) button,
.info-panel button {
  min-height: 40px;
  width: 100% !important;
  margin-top: 6px !important;
  font-size: 14px !important;
}

.reset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.reset-actions .menu-button {
  width: 100% !important;
  min-height: 42px;
  margin: 0 !important;
}

.title-screen {
  /* 0.14.2: grafika przycięta do samej ilustracji (plik miał czarne pasy po bokach i u góry), więc „cover”
     wypełnia teraz cały ekran na każdym telefonie; border-box — ekran nie wystaje już 16 px poza okno. */
  box-sizing: border-box;
  width: 100%;
  position: relative;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  /* 0.14.4 (Jakub pt126u): odstęp bloku od dołu = odstęp ramki od boków ekranu (+ bezpieczny obszar). */
  --se-gap: max(18px, calc((100vw - 346px) / 2));
  /* Na dole co najmniej 30 px, żeby zmieścił się numer wersji (wyśrodkowany w tym odstępie). */
  --se-gap-bottom: max(var(--se-gap), 30px);
  padding: 0 18px calc(var(--se-gap-bottom) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: #00ff00;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.45) 62%, rgba(0, 0, 0, 0.92) 82%, #000 100%),
    url("images/title/title-bg.png?v=17") center top / cover no-repeat,
    #000;
  /* Szerokość obrazka = cały ekran, ale nie mniej niż 46% wysokości ekranu: zawsze bez pasów po bokach,
     a statek nie chowa się za ramką języków na wysokich telefonach (dół ilustracji i tak przechodzi w czerń). */
  background-size: auto, max(100vw, 46vh) auto;
  /* 0.14.3: statek ustawiany w połowie między napisem a ramką języków. Środek statku leży na 1.188 x szerokości
     obrazka (0.668 jego wysokości); cel = (napis 40vh+22px + góra ramki 100vh-243px) / 2 = 70vh - 110px.
     Obrazek tylko podnosimy (min 0px), więc u góry nigdy nie ma pustego pasa; dół grafiki i tak jest czarny. */
  /* 0.14.4: przesunięcie liczy seCenterTitleArt() (index.html) z prawdziwych pozycji napisu i bloku na dole -> --se-art-y.
     Wzór poniżej to tylko zapas do pierwszej klatki. */
  background-position: 0 0, center var(--se-art-y, min(0px, max(-140px, calc(70vh - 125px - max(118.8vw, 54.65vh))))), 0 0;
  transition: background-position 0.35s ease;
  font-family: "Share Tech Mono", "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", sans-serif;
}

.title-screen h1 {
  position: absolute;
  top: 40%;
  left: 12px;
  right: 12px;
  margin: 0;
  transform: translateY(-50%);
  font-size: clamp(28px, 7.6vw, 38px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow:
    0 0 1px #d8ffd8,
    0 0 10px rgba(0, 255, 0, 0.55);
}

.title-screen h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 12px auto 0;
  background: rgba(0, 255, 0, 0.85);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.65);
}

.title-kicker {
  display: none;
}

.title-block {
  /* 0.14.4: blok na dole ekranu startowego: „Graj” NAD ramką języków (Jakub pt126u) albo panel aktualizacji. */
  /* 346 px = dotychczasowa szerokość ramki (320 px na przyciski + 2x12 px odstępu + ramka) — „Українська” się mieści.
     Graj, ramka języków i panel aktualizacji mają dokładnie tę samą szerokość i położenie. */
  width: min(346px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title-dock {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 6, 0, 0.78);
  border: 1px solid rgba(0, 255, 0, 0.38);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 255, 0, 0.08);
}

.lang-grid {
  /* 0.14.0: 5 kolumn x 3 rzędy = wszystkie 14 języków w tej samej ramce (86px), bez uciętego rzędu.
     Przewijanie w środku zostaje jako zapas na bardzo wąskie ekrany. */
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 36px;
  gap: 5px;
  width: 100%;
  max-height: 118px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.lang-grid button {
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
  color: #00ff00;
  background: rgba(0, 20, 0, 0.55);
  border: 1px solid rgba(0, 255, 0, 0.45);
  border-radius: 7px;
  min-height: 0;
  height: 36px;
  font-size: 10px;
  line-height: 1.05;
  padding: 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: -0.02em;
}

@media (max-width: 345px) {
  .lang-grid button {
    font-size: 9px;
    letter-spacing: -0.04em;
  }
}

.lang-grid button.active {
  background: #00ff00;
  color: #001400;
  border-color: #00ff00;
}

.title-play {
  width: 100%;
  min-height: 52px;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00ff00;
  background: rgba(0, 6, 0, 0.78);
  border: 1px solid rgba(0, 255, 0, 0.7);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 255, 0, 0.22), inset 0 0 14px rgba(0, 255, 0, 0.08);
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.55);
}
.title-play:active { background: rgba(0, 40, 0, 0.85); }

.title-version {
  position: absolute;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0px);
  height: var(--se-gap-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

.bottom-row > .column:nth-child(1) {
  order: 5;
  flex: 0 0 auto;
  max-height: none;
  padding: 2px 8px !important;
  overflow: hidden;
  /* 0.14.16 (Jakub pt210u): ramka .combat-log już oddziela dziennik — bez cienkich kresek nad/pod. */
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* 0.14.1: odstęp między wierszami dziennika o połowę mniejszy (Jakub):
   było interlinia 1.35 + margines 0.2vh (~6 px przerwy), teraz 1.17 + 1 px (~3 px). Nadal 3 pełne wiersze. */
/* 0.14.15 (Jakub pt200u): cieńsza ramka terminalowa — bez separatorów, prefixów, nagłówka ani wygaszania. */
.combat-log {
  height: calc((1.17em + 1px) * 3 + 4px) !important;
  max-height: calc((1.17em + 1px) * 3 + 4px) !important;
  font-size: 12px;
  overflow: hidden !important;
  box-sizing: border-box;
  border: 1px solid rgba(0, 255, 0, 0.4);
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 255, 0, 0.15);
  padding: 1px 4px;
}

.log-entry {
  font-size: 12px !important;
  line-height: 1.17;
  margin-bottom: 1px !important;
  padding: 0;
}

.bottom-row > .column:nth-child(2) {
  order: 6;
  flex: 0 0 auto;
  padding: 4px !important;
  min-width: 0;
  overflow: hidden;
}

.bottom-row > .column:nth-child(3) {
  display: none !important;
}

.menu-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  height: auto !important;
  overflow: hidden;
  padding: 0;
}

.menu-button {
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  min-height: 38px;
  padding: 4px 2px !important;
  font-size: 11px !important;
  letter-spacing: 0.02em;
  white-space: normal;
  line-height: 1.15;
}

.game-container:not(:has(.board)) .middle-row > .column:nth-child(1),
.game-container:not(:has(.board)) .middle-row > .column:nth-child(3),
.game-container:not(:has(.board)) .bottom-row > .column:nth-child(1),
.game-container:not(:has(.board)) .top-row {
  display: none !important;
}

.game-container:not(:has(.board)) .middle-row > .column.game-area {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  height: auto;
  flex: 1 1 auto;
}

.game-container:not(:has(.board)) .middle-row > .column.game-area > .board-container {
  position: relative;
  inset: auto;
  display: block;
  height: auto;
  overflow: visible;
}

.screen-container {
  display: block;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  overflow: visible;
}

.screen-content {
  display: block;
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 8px 10px 16px !important;
  height: auto;
  overflow: visible;
}

.screen-container h2 {
  font-size: 18px !important;
  padding: 12px 8px !important;
}

.close-button,
.station-button {
  min-height: 42px;
  font-size: 15px !important;
}

.close-button {
  position: sticky;
  bottom: 8px;
  width: calc(100% - 20px);
  z-index: 3;
}

.station-button {
  width: min(100%, 360px) !important;
}

.station-buttons {
  width: 100%;
  gap: 8px;
}

.options-container,
.music-playlist-section,
.music-playlist,
.upgrade-container {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

.music-playlist-section h3 {
  font-size: 18px !important;
  margin: 4px 0 8px !important;
}

.music-playlist {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.music-track {
  font-size: 16px !important;
  line-height: 1.3 !important;
  min-height: 52px;
  padding: 8px 4px !important;
  gap: 8px;
  box-sizing: border-box;
}

.music-track > div:first-child {
  font-size: 16px !important;
  min-width: 0;
  overflow-wrap: anywhere;
}

.music-track button {
  min-width: 44px !important;
  min-height: 44px !important;
  font-size: 20px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.cargo-screen-grid,
.cargo-grid {
  width: min(280px, 100%) !important;
}

.upgrade-grid {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.upgrade-header {
  display: none !important;
}

.stat-row {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px 10px;
  background: #001400;
  border: 1px solid rgba(0, 255, 0, 0.35);
  border-radius: 8px;
  box-sizing: border-box;
}

.stat-row span,
.stat-row .stat-name {
  border: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 13px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  min-width: 0;
}

.stat-row .stat-name {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 14px;
}

.stat-row .stat-points {
  grid-column: 1;
  grid-row: 2;
}

.stat-row .stat-increase {
  grid-column: 1;
  grid-row: 3;
}

.stat-row .stat-current {
  grid-column: 1;
  grid-row: 4;
}

.stat-row .stat-points::before,
.stat-row .stat-increase::before,
.stat-row .stat-current::before {
  content: attr(data-prefix);
  color: #8f8;
}

.upgrade-button {
  grid-column: 2;
  grid-row: 2 / span 3;
  width: 48px !important;
  height: 48px !important;
  min-height: 48px;
  font-size: 22px !important;
  justify-self: end;
}

.computer-log {
  font-size: 14px !important;
  padding: 4px 2px 12px;
}

.computer-log a {
  color: #9f9;
}

.journal-box {
  display: block;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 8px;
  resize: vertical;
  color: #00ff00;
  background: #001400;
  border: 1px solid rgba(0, 255, 0, 0.45);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.journal-send {
  width: 100% !important;
  margin-top: 4px;
}

.journal-note,
.journal-missing {
  font-size: 12px;
  opacity: 0.8;
}

.journal-missing {
  color: #ff8888;
  opacity: 1;
}

.news-heading,
.news-version {
  color: #66ffba;
}

.news-version {
  margin: 14px 0 6px;
  font-size: 15px;
}

.news-list {
  margin: 0 0 8px;
  padding-left: 18px;
}

.news-list li {
  margin: 0 0 8px;
}

#se-zoom,
#se-hint {
  font-family: "Share Tech Mono", "Noto Sans", sans-serif;
  color: #00ff00;
}

#se-zoom {
  position: fixed;
  z-index: 40;
  min-height: 0;
  padding: 3px 6px;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  background: rgba(0, 16, 0, 0.88);
  border: 1px solid #00ff00;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.25);
}

.game-container:not(:has(.board)) #se-zoom,
.game-container:not(:has(.board)) #se-hint {
  display: none !important;
}

#se-hint {
  position: fixed;
  z-index: 39;
  left: 8px;
  right: 8px;
  bottom: 150px;
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(0, 255, 0, 0.45);
  border-radius: 8px;
  pointer-events: none;
}

html[data-lang="ru"] body,
html[data-lang="ru"] button,
html[data-lang="ru"] .title-screen,
html[data-lang="uk"] body,
html[data-lang="uk"] button,
html[data-lang="uk"] .title-screen {
  font-family: "Noto Sans", "Segoe UI", sans-serif;
}

html[data-lang="zh"] body,
html[data-lang="zh"] button,
html[data-lang="zh"] .title-screen {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-lang="zht"] body,
html[data-lang="zht"] button,
html[data-lang="zht"] .title-screen {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

html[data-lang="ja"] body,
html[data-lang="ja"] button,
html[data-lang="ja"] .title-screen {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

html[data-lang="ko"] body,
html[data-lang="ko"] button,
html[data-lang="ko"] .title-screen {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* 0.14.0 — HUD bars: green fill, stretch to fill the row, double height (uwagi Jakuba). */
.left-column-content {
  font-size: 14px;
  gap: 4px;
}

.left-column-content .info-panel-title {
  font-size: 14px !important;
}

.hud-row {
  gap: 4px 10px;
}

.hud-stat {
  display: flex;
  flex: 1 1 0;
  gap: 6px;
}

.hud-row .progress-bar,
.left-column-content .progress-bar {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 28px;
  height: 16px;
  min-height: 16px;
  background-color: #002200;
  border: 1px solid #006600;
  border-radius: 4px;
  box-sizing: border-box;
}

.hud-xp {
  width: auto !important;
}

.progress-bar > .progress {
  display: block;
  height: 100%;
  background-color: #00ff00;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
}

/* 0.14.0 — scan results: left aligned, half the spacing between lines. */
.scan-data {
  text-align: left;
}

.scan-data h3 {
  text-align: left;
}

.scan-data .small-margin-bottom-info {
  margin-bottom: 0.35em;
  line-height: 1.2;
}

.hud-stat,
.hud-row > span:not(.progress-bar) {
  white-space: nowrap;
}

/* 0.14.0c — top panel: attack/dodge moved into row 1; long languages wrap, XP bar keeps stretching. */
.left-column-content {
  font-size: clamp(12px, 3.4vw, 14px);
}

.left-column-content .info-panel-title {
  font-size: inherit !important;
}

.hud-row-main {
  gap: 2px 6px;
}

.hud-row-main .hud-xp {
  flex: 1 1 36px;
  min-width: 36px;
}

/* 0.14.0c — wide action buttons (Skanuj, Ląduj, Startuj, Zamknij…): 2/3 of the screen, centered. */
.middle-row > .column:nth-child(3) button,
.info-panel button,
.close-button,
.station-button,
.journal-send {
  width: min(66.667vw, 100%) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

/* 0.14.0c — floating gains over the player tile. */
.se-float-layer {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
  display: none;
}

.se-float {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: 'Share Tech Mono', 'Noto Sans', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans JP', 'Noto Sans KR', monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0;
  will-change: transform, opacity;
}

.se-float-xp {
  color: #00ff00;
  text-shadow: 0 0 2px #000, 0 0 3px #000, 0 0 8px rgba(0, 255, 0, 0.9) !important;
}

.se-float-cr {
  color: #ffd84a;
  text-shadow: 0 0 2px #000, 0 0 3px #000, 0 0 8px rgba(255, 200, 40, 0.9) !important;
}

/* 0.14.0d — top panel as HUD chips (variant B chosen by Jakub).
   Row 1: Level | XP bar | Credits | Attack | Dodge on ONE line; row 2: Shields | Hull (or Life).
   data-fit is set by LeftColumn: 0 = full labels, 1 = short labels (hud* keys), 2 = short + tighter. */
.left-column-content.hx {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  font-size: 13px;
  line-height: 1.1;
  padding-bottom: 2px;
}

.hx-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hx-g {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 24px;
  padding: 2px 5px;
  border: 1px solid rgba(0, 255, 0, 0.35);
  border-radius: 5px;
  background: rgba(0, 40, 0, 0.55);
  white-space: nowrap;
  box-sizing: border-box;
}

.hx-l {
  color: #3fa83f;
  font-size: 11px;
  text-shadow: none !important;
}

.hx-v {
  color: #b8ffb8;
  font-size: 13px;
  font-weight: 700;
}

.hx-short { display: none; }
.hx:not([data-fit="0"]) .hx-full { display: none; }
.hx:not([data-fit="0"]) .hx-short { display: inline; }

.hx-xp {
  flex: 1 1 auto;
  padding: 3px 4px;
}

.hx-xp .hx-bar-text {
  min-width: 64px;
}

.hx-meter {
  flex: 1 1 0;
}

.hx-bar {
  position: relative;
  display: grid;
  align-items: center;
  flex: 1 1 auto;
  height: 16px;
  background: #002200;
  border: 1px solid #006600;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.hx-fill {
  grid-area: 1 / 1;
  justify-self: start;
  display: block;
  height: 100%;
  background: #00ff00;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
  transition: width 0.3s ease-in-out;
}

.hx-bar-text {
  grid-area: 1 / 1;
  position: relative;
  min-width: 40px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: #f2fff2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000 !important;
}

.hx[data-fit="2"] .hx-row { gap: 3px; }
.hx[data-fit="2"] .hx-g { padding: 2px 3px; gap: 3px; }
.hx[data-fit="2"] .hx-l { font-size: 10px; }
.hx[data-fit="2"] .hx-v { font-size: 12px; }
.hx[data-fit="2"] .hx-xp .hx-bar-text { min-width: 56px; padding: 0 3px; }
.hx[data-fit="2"] .hx-bar-text { font-size: 10px; }
.hx-bar { grid-template-rows: minmax(0, 1fr); grid-template-columns: 1fr; }
.hx-fill { align-self: stretch; height: auto; }
.hx-bar-text { align-self: center; justify-self: stretch; }
.hx-bar { min-width: min-content; }
.hx-xp { min-width: min-content; }

/* fit 3: big numbers shortened to „312k”; fit 4 (last resort): row 1 may wrap. */
.hx-num-short { display: none; }
.hx[data-fit="3"] .hx-num-full,
.hx[data-fit="4"] .hx-num-full { display: none; }
.hx[data-fit="3"] .hx-num-short,
.hx[data-fit="4"] .hx-num-short { display: inline; }
.hx[data-fit="3"] .hx-row,
.hx[data-fit="4"] .hx-row { gap: 3px; }
.hx[data-fit="3"] .hx-g,
.hx[data-fit="4"] .hx-g { padding: 2px 3px; gap: 3px; }
.hx[data-fit="3"] .hx-l,
.hx[data-fit="4"] .hx-l { font-size: 10px; }
.hx[data-fit="3"] .hx-v,
.hx[data-fit="4"] .hx-v { font-size: 12px; }
.hx[data-fit="3"] .hx-xp .hx-bar-text,
.hx[data-fit="4"] .hx-xp .hx-bar-text { min-width: 56px; padding: 0 3px; font-size: 10px; }
.hx[data-fit="4"] .hx-row-1 { flex-wrap: wrap; }
.hx[data-fit="4"] .hx-row-1 .hx-g { flex-grow: 1; }

/* 0.14.2: wszystkie przyciski języków jednakowe — ta sama czcionka niezależnie od języka gry (wcześniej reguły
   html[data-lang=…] button zmieniały krój dla wszystkich przycisków), a znaki azjatyckie (pełna szerokość, wyższe)
   dostają mniejszy rozmiar, żeby optycznie były tej samej wielkości co łacinka i cyrylica. */
.title-screen .lang-grid button {
  font-family: "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0 2px;
}
.title-screen .lang-grid button[data-code="zh"],
.title-screen .lang-grid button[data-code="zht"],
.title-screen .lang-grid button[data-code="ja"],
.title-screen .lang-grid button[data-code="ko"] {
  font-size: 9.5px;
  letter-spacing: 0.02em;
}
@media (max-width: 345px) {
  .title-screen .lang-grid button { font-size: 9.5px; letter-spacing: -0.04em; }
  .title-screen .lang-grid button[data-code="zh"],
  .title-screen .lang-grid button[data-code="zht"],
  .title-screen .lang-grid button[data-code="ja"],
  .title-screen .lang-grid button[data-code="ko"] { font-size: 8.5px; letter-spacing: 0; }
}

/* 0.14.2: ekran wczytywania i komunikat błędu (nigdy czarny ekran). */
#se-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #000;
  color: #00ff00;
  font-family: "Share Tech Mono", "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", monospace;
}
.se-loading-label {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.se-loading-bar {
  width: min(66.667vw, 280px);
  height: 16px;
  border: 1px solid rgba(0, 255, 0, 0.6);
  border-radius: 8px;
  background: rgba(0, 30, 0, 0.6);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}
.se-loading-fill {
  width: 0;
  height: 100%;
  background: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
  transition: width 0.15s linear;
}
.se-loading-pct {
  font-size: 12px;
  opacity: 0.75;
}
#se-error {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #000;
  color: #00ff00;
  text-align: center;
  font-family: "Share Tech Mono", "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", monospace;
}
#se-error h2 { margin: 0; font-size: 20px; }
#se-error p { margin: 0; font-size: 14px; line-height: 1.35; max-width: 320px; }
#se-error button {
  width: min(66.667vw, 280px);
  min-height: 44px;
  font-family: inherit;
  font-size: 15px;
  color: #00ff00;
  background: rgba(0, 30, 0, 0.7);
  border: 1px solid rgba(0, 255, 0, 0.6);
  border-radius: 8px;
}
#se-error pre {
  max-width: 100%;
  max-height: 30vh;
  overflow: auto;
  margin: 8px 0 0;
  font-size: 10px;
  opacity: 0.6;
  white-space: pre-wrap;
  text-align: left;
}
.se-error-blank { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #000; }

/* 0.14.4: aktualizator w grze (projekt A) — panel jak ramka języków; na ekranie startowym zamiast „Graj” + ramki,
   w trakcie gry na warstwie nad grą, z tym samym odstępem od dołu co od boków. */
.se-upd-panel {
  box-sizing: border-box;
  width: 100%;
  padding: 18px 16px 16px;
  text-align: left;
  color: #00ff00;
  background: rgba(0, 6, 0, 0.86);
  border: 1px solid rgba(0, 255, 0, 0.38);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 255, 0, 0.08);
  font-family: "Share Tech Mono", "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", sans-serif;
}
.se-upd-head { display: flex; align-items: center; gap: 12px; }
.se-upd-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0, 255, 0, 0.55);
  display: flex; align-items: center; justify-content: center; color: #00ff00; box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.25); }
.se-upd-panel[data-state="failed"] .se-upd-ico { color: #ffd84d; border-color: rgba(255, 216, 77, 0.6); box-shadow: inset 0 0 10px rgba(255, 216, 77, 0.2); }
.se-upd-spin { animation: se-upd-spin 1s linear infinite; }
@keyframes se-upd-spin { to { transform: rotate(360deg); } }
.se-upd-ttl { font-size: 17px; letter-spacing: 0.06em; color: #d8ffd8; text-shadow: 0 0 8px rgba(0, 255, 0, 0.45); line-height: 1.2; }
.se-upd-ver { margin-top: 3px; font-size: 12px; letter-spacing: 0.06em; color: #7fdc7f; }
.se-upd-ver b { font-weight: 400; color: #d8ffd8; text-shadow: 0 0 6px rgba(0, 255, 0, 0.6); }
.se-upd-txt { margin: 12px 0 14px; font: 13px/1.45 "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", sans-serif; color: #a8e6a8; }
.se-upd-panel[data-state="installing"] .se-upd-head { margin-bottom: 14px; }
.se-upd-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.se-upd-row-top { margin: 0 0 6px; }
.se-upd-lbl { font-size: 13px; color: #d8ffd8; letter-spacing: 0.04em; }
.se-upd-pct { font-size: 20px; color: #00ff00; text-shadow: 0 0 8px rgba(0, 255, 0, 0.6); }
.se-upd-mb { font-size: 12px; color: #7fdc7f; letter-spacing: 0.02em; }
.se-upd-bar { position: relative; height: 10px; border-radius: 5px; background: rgba(0, 255, 0, 0.1); border: 1px solid rgba(0, 255, 0, 0.3); overflow: hidden; }
.se-upd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #0a8f0a, #00ff00); box-shadow: 0 0 12px #00ff00; border-radius: 4px; transition: width 0.4s ease; }
.se-upd-bar-busy i { position: absolute; top: 0; left: 0; width: 35%; animation: se-upd-busy 1.3s ease-in-out infinite; }
@keyframes se-upd-busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.se-upd-btn { display: block; box-sizing: border-box; width: 100%; height: 50px; border-radius: 10px; border: 1px solid #00ff00; background: #00ff00; color: #001a00;
  font: 16px "Share Tech Mono", "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", monospace; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 0 18px rgba(0, 255, 0, 0.45); cursor: pointer; }
.se-upd-btn:active { background: #33ff33; }
.se-upd-overlay {
  --se-gap: max(18px, calc((100vw - 346px) / 2));
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 18px calc(var(--se-gap) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 40%, rgba(0, 10, 0, 0.55), rgba(0, 0, 0, 0.82));
  backdrop-filter: blur(2px);
}
.se-upd-overlay .se-upd-panel { width: min(346px, 100%); }
/* 0.14.4: ramka ma teraz dokładnie szerokość bloku (border-box) — na wąskich ekranach mniejszy wewnętrzny odstęp,
   żeby nazwy języków (np. „Українська”) nadal mieściły się w przyciskach. */
@media (max-width: 380px) {
  .title-dock { padding: 10px 8px; }
  .title-dock .lang-grid { gap: 4px; }
  .title-screen .lang-grid button:not([data-code="zh"]):not([data-code="zht"]):not([data-code="ja"]):not([data-code="ko"]) { padding: 0; letter-spacing: -0.05em; }
}

/* ===================== 0.14.5 (Jakub pt141u) ===================== */

/* Pkt 3: płynne przesuwanie planszy. Plansza na własnej warstwie GPU, przesuwana tylko transformacją;
   na czas przeciągania pulsujące obwódki pól są wstrzymane (nie malujemy ich w każdej klatce ruchu). */
.middle-row > .column.game-area .board {
  will-change: transform;
  backface-visibility: hidden;
}
.middle-row > .column.game-area .board-container {
  contain: strict;
}
.board.se-dragging .cell,
.board.se-dragging .cell * {
  animation-play-state: paused !important;
}

/* Pkt 1: ikonki terenu na planecie na całą wielkość kafelka (--se-cell ustawia mobile.js: 58 px w zbliżeniu (0.16.03), mniej na całej mapie). */
.board[data-mode="planet"] .cell-emoji {
  display: block;
  font-size: calc(var(--se-cell, 58px) * 0.74);
  line-height: 1;
  text-shadow: none !important;
  pointer-events: none;
  user-select: none;
}

/* Pkt 2: panel wroga NAD planszą (ta sama kolumna z danymi, tylko inna kolejność w układzie telefonu). */
.game-container:has(.se-enemy) .middle-row > .column:nth-child(3) {
  order: 2;
  max-height: none;
  overflow: hidden;
  padding: 2px 8px 4px !important;
  border-bottom: 1px solid rgba(0, 255, 0, 0.22) !important;
}
.se-enemy-card {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.se-enemy-img {
  flex: 0 0 auto;
  width: 82px;
  border: 1px solid rgba(0, 255, 0, 0.55);
  border-radius: 6px;
  background: rgba(0, 40, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.se-enemy-img img {
  width: 100%;
  height: 100%;
  max-height: 82px;
  object-fit: contain;
}
.se-enemy-data {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.se-enemy-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}
.se-enemy-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  align-self: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px !important;
}
.se-enemy-hp { flex: 1 1 auto; }
.se-enemy-stats { flex-wrap: wrap; }
.se-enemy-stats .hx-g { flex: 1 1 auto; }
.se-enemy ~ .hud-detail,
.game-container:has(.se-enemy) .hud-detail {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.2;
  color: #3fa83f;
  text-shadow: none !important;
}

/* Pkt 4: panel terenu na planecie w kafelkach (jak górny HUD). Wariant z data-layout (index.html, SE_PLANET_INFO_LAYOUT). */
.se-pinfo {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.se-pinfo .se-pinfo-name {
  margin: 0 !important;
  font-size: 14px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  align-self: center;
}
.se-pinfo-chips {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.se-pchip {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: 3px 5px;
  overflow: hidden;
}
.se-pchip .hx-l,
.se-pchip .hx-v {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.se-pchip .hx-l { font-size: 10px; line-height: 1.1; }
.se-pchip .hx-v { font-size: 12px; line-height: 1.15; }
.middle-row > .column:nth-child(3) .se-pinfo button.se-pinfo-launch {
  margin: 0 !important;
  min-height: 34px;
  font-size: 13px !important;
}

/* A (polecany): [Nazwa ............ Startuj] / [Teren][Atmosfera][Grawitacja][Cywilizacja] */
.se-pinfo[data-layout="A"] {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name btn" "chips chips";
}
.se-pinfo[data-layout="A"] .se-pinfo-name { grid-area: name; }
.se-pinfo[data-layout="A"] .se-pinfo-chips { grid-area: chips; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.middle-row > .column:nth-child(3) .se-pinfo[data-layout="A"] button.se-pinfo-launch {
  grid-area: btn;
  width: auto !important;
  min-width: 120px;
  padding: 0 14px;
}

/* B: nazwa u góry, kafelki 2x2 z etykietą w wierszu, wysoki Startuj po prawej */
.se-pinfo[data-layout="B"] {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name name" "chips btn";
}
.se-pinfo[data-layout="B"] .se-pinfo-name { grid-area: name; }
.se-pinfo[data-layout="B"] .se-pinfo-chips { grid-area: chips; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.se-pinfo[data-layout="B"] .se-pchip { flex-direction: row; align-items: center; justify-content: space-between; gap: 4px; }
.middle-row > .column:nth-child(3) .se-pinfo[data-layout="B"] button.se-pinfo-launch {
  grid-area: btn;
  width: auto !important;
  min-width: 96px;
  height: 100%;
  padding: 0 10px;
}

/* C: [Nazwa][Teren][Atmosfera][Grawitacja][Cywilizacja] w jednym rzędzie, niski Startuj na całą szerokość */
.se-pinfo[data-layout="C"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas: "name chips chips chips chips" "btn btn btn btn btn";
}
.se-pinfo[data-layout="C"] .se-pinfo-name {
  grid-area: name;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 12px !important;
  border: 1px solid rgba(0, 255, 0, 0.55);
  border-radius: 5px;
  background: rgba(0, 40, 0, 0.55);
}
.se-pinfo[data-layout="C"] .se-pinfo-chips { grid-area: chips; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.middle-row > .column:nth-child(3) .se-pinfo[data-layout="C"] button.se-pinfo-launch {
  grid-area: btn;
  min-height: 32px;
}
.se-pinfo[data-layout="A"] .se-pinfo-name,
.se-pinfo[data-layout="B"] .se-pinfo-name { text-align: left; padding-left: 2px; }
.middle-row > .column:nth-child(3) .se-pinfo[data-layout="C"] button.se-pinfo-launch { justify-self: center; } /* jak inne duże przyciski: 2/3 szerokości */
.middle-row > .column:nth-child(3) .se-pinfo[data-layout="A"] button.se-pinfo-launch { justify-self: end; }
.se-enemy-name { text-align: left; }

/* 0.14.6 (Jakub pt147u, pkt 3): ikona artefaktu w ładowni na prawie całe pole, jak obrazki minerałów.
   cqi = szerokość pola; starsze WebView biorą stałe 52px. */
.cargo-screen-item {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
}
.cargo-item-emoji {
  display: block;
  font-size: 52px;
  font-size: 72cqi;
  line-height: 1;
  text-align: center;
}
/* pkt 7: wybrane pole i pasek „Wyrzuć” pod siatką */
.cargo-screen-item.se-cargo-sel {
  outline: 2px solid #9dff9d;
  outline-offset: -2px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.55) inset;
}
.se-cargo-act {
  width: min(280px, 100%);
  min-height: 44px;
  margin: 10px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  box-sizing: border-box;
}
.se-cargo-name {
  flex: 1 1 120px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: left;
}
.se-cargo-yn { display: flex; gap: 8px; }
.screen-container .se-cargo-btn,
.se-cargo-btn {
  width: auto !important;
  min-width: 88px;
  min-height: 40px;
  margin: 0 !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}
.se-cargo-btn.se-cargo-yes { border-color: #ff5a3c !important; color: #ffb3a3 !important; }
/* pkt 6: portal, którym gracz przyleciał — wygaszony, bez pulsowania */
.se-portal-off {
  filter: grayscale(1) brightness(0.55);
  opacity: 0.75;
}
.cell-portal-inactive { animation: none !important; box-shadow: none !important; background-color: #2b2b33 !important; }

/* 0.14.6 (Jakub pt147u, pkt 4): PROPOZYCJE panelu terenu bez ucinania (data-layout 6A / 6B / 6C, na zrzutach A / B / C).
   Wspólne: nic nie jest ucinane ani skracane „…”; za długi napis przechodzi do następnej linii. */
.se-pinfo[data-layout^="6"] {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name btn" "chips chips";
  column-gap: 8px;
}
.se-pinfo[data-layout^="6"] .se-pinfo-name {
  grid-area: name;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  text-align: left;
  padding-left: 2px;
}
.se-pinfo[data-layout^="6"] .se-pinfo-chips { grid-area: chips; }
.se-pinfo[data-layout^="6"] .se-pchip { overflow: visible; white-space: normal; }
.se-pinfo[data-layout^="6"] .se-pchip .hx-l,
.se-pinfo[data-layout^="6"] .se-pchip .hx-v {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  max-width: 100%;
  text-align: left !important;
}
.middle-row > .column:nth-child(3) .se-pinfo[data-layout^="6"] button.se-pinfo-launch {
  grid-area: btn;
  width: auto !important;
  min-width: 112px;
  padding: 0 14px;
  justify-self: end;
  align-self: center;
}

/* 6A: kafelki 2x2, etykieta nad wartością */
.se-pinfo[data-layout="6A"] .se-pinfo-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.se-pinfo[data-layout="6A"] .se-pchip { align-items: flex-start; justify-content: flex-start; }

/* 6B: kafelki o szerokości tekstu, zawijane jak słowa */
.se-pinfo[data-layout="6B"] .se-pinfo-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.se-pinfo[data-layout="6B"] .se-pchip {
  flex: 1 1 auto;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  max-width: 100%;
}
.se-pinfo[data-layout="6B"] .se-pchip .hx-l { flex: 0 0 auto; }
.se-pinfo[data-layout="6B"] .se-pchip .hx-v { flex: 0 1 auto; min-width: 0; }

/* 6C: jedna ramka, wiersze etykieta | wartość (kolumna etykiet równa) */
.se-pinfo[data-layout="6C"] .se-pinfo-chips {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 255, 0, 0.35);
  border-radius: 5px;
  background: rgba(0, 40, 0, 0.55);
}
.se-pinfo[data-layout="6C"] .se-pchip { display: contents; }
.se-pinfo[data-layout="6C"] .se-pchip .hx-l { align-self: baseline; font-size: 10px; justify-self: start; }
.se-pinfo[data-layout="6C"] .se-pchip .hx-v { justify-self: start; }
.se-pinfo[data-layout="6C"] .se-pchip .hx-v { align-self: baseline; }

/* 6D (Jakub pt149u): jak 6B, ale Atmosfera + Grawitacja zawsze obok siebie w jednym rzędzie.
   Para może stanąć obok krótkiego Terenu/Cywilizacji; gdy brakuje miejsca, wartość zawija się w kafelku (nigdy nie jest ucinana). */
.se-pinfo[data-layout="6D"] .se-pinfo-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.se-pinfo[data-layout="6D"] .se-pchip {
  flex: 1 1 auto;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  max-width: 100%;
}
.se-pinfo[data-layout="6D"] .se-pchip .hx-l { flex: 0 0 auto; }
.se-pinfo[data-layout="6D"] .se-pchip .hx-v { flex: 0 1 auto; min-width: 0; }
.se-pinfo[data-layout="6D"] .se-pinfo-pair {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.se-pinfo[data-layout="6D"] .se-pinfo-pair .se-pchip { flex: 1 1 0; min-width: 0; }
.se-pinfo[data-layout="6D"] .se-pinfo-pair .se-pchip .hx-l { flex: 0 1 auto; min-width: 0; }

/* 6E (Jakub pt150u): stałe 3 rzędy — Teren / Atmosfera + Grawitacja / Cywilizacja. Ciasne odstępy jak w 6D;
   długa wartość zawija się w kafelku, nigdy nie jest ucinana. */
.se-pinfo[data-layout="6E"] .se-pinfo-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.se-pinfo[data-layout="6E"] .se-pchip {
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.se-pinfo[data-layout="6E"] .se-pchip .hx-l { flex: 0 0 auto; }
.se-pinfo[data-layout="6E"] .se-pchip .hx-v { flex: 0 1 auto; min-width: 0; }
.se-pinfo[data-layout="6E"] .se-pinfo-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}
.se-pinfo[data-layout="6E"] .se-pinfo-pair .se-pchip .hx-l { flex: 0 1 auto; min-width: 0; }

/* ===================== 0.14.7 (Jakub pt161u): wrogowie wypatruja, gonia, ucieczka ===================== */

/* "!" nad wrogiem, ktory gracza wypatrzyl i goni. Nad ikona, po prawej u gory kafla. */
.enemy-container .se-alert {
  position: absolute;
  top: -1px;
  right: 1px;
  z-index: 12;
  font-family: 'Share Tech Mono', 'Noto Sans', monospace;
  font-size: calc(var(--se-cell, 58px) * 0.46);
  font-weight: 700;
  line-height: 1;
  color: #ffd84a;
  text-shadow: 0 0 2px #000, 0 0 6px rgba(255, 216, 74, 0.95) !important;
  pointer-events: none;
  animation: se-alert-blink 1s steps(2, end) infinite;
}
@keyframes se-alert-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.35; }
}
/* Kafel wroga w poscigu: delikatna czerwona obwodka, zeby odroznic go od wrogow, ktorzy jeszcze nie widza. */
.cell.se-chasing {
  box-shadow: inset 0 0 0 1px rgba(255, 90, 60, 0.85), 0 0 6px rgba(255, 90, 60, 0.45);
}


/* ===================== 0.14.9 (Jakub pt184u) ===================== */
/* Grafiki terenu PNG (images/terrain) zamiast emoji: cały kafelek, przezroczyste tło — kolor pola zostaje pod spodem.
   Mocniejszy selektor niż ogólne .cell img (92%). Nie zmienia ramki/animacji kafelka (cell-interactable, mgła itd.). */
.board[data-mode="planet"] .cell img.cell-terrain-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Panel opisu przeszkody: mała grafika obok tekstu. */
.info-panel.se-obstacle-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-panel.se-obstacle-info p { margin: 0; }
img.cell-terrain-img.se-obstacle-info-img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ===================== 0.14.10 (Jakub pt187u) ===================== */
/* Wyniki skanu: artefakt = karta z nagłówkiem (wariant A), gwiazda = karta z paskami (wariant D2). Zrzuty: qa/propozycje-skan. */
.info-panel.se-sc { text-align: left; }
.se-sc * { box-sizing: border-box; }
.se-sc h3 { margin: 0 !important; }
.se-sc-card { border: 2px solid #00ff00; border-radius: 8px; background: rgba(0, 40, 0, 0.55); box-shadow: 0 0 10px rgba(0, 255, 0, 0.3); overflow: hidden; }
.se-sc-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 4px 8px; background: #003300; border-bottom: 1px solid #00ff00; }
.se-sc-h h3 { flex: 1 1 auto; min-width: 0; font-size: 14px !important; line-height: 1.15; color: #00ff00; text-transform: uppercase; letter-spacing: 0.03em; text-shadow: 0 0 4px rgba(0, 255, 0, 0.8); overflow-wrap: anywhere; }
.se-sc-badge { flex: 0 0 auto; border: 1px solid #00ff00; border-radius: 4px; padding: 1px 6px; font-size: 11px; color: #b8ffb8; background: #001a00; white-space: nowrap; max-width: 100%; }
.se-sc-b { display: flex; gap: 8px; padding: 6px 8px; align-items: flex-start; }
.se-sc-img { flex: 0 0 auto; width: 64px; height: 64px; border: 1px solid rgba(0, 255, 0, 0.55); border-radius: 6px; background: rgba(0, 40, 0, 0.55); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.se-sc-img-lg { width: 78px; height: 78px; }
.se-sc-img img { width: 92% !important; height: 92% !important; max-width: none !important; max-height: none !important; object-fit: contain; padding: 0 !important; pointer-events: none; -webkit-user-drag: none; }
.se-sc-rows { flex: 1 1 auto; min-width: 0; }
.se-sc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 0; border-bottom: 1px dashed rgba(0, 255, 0, 0.25); font-size: 12px; line-height: 1.2; }
.se-sc-row:last-child { border-bottom: 0; }
.se-sc-row .se-sc-l { color: #3fa83f; flex: 0 0 auto; }
.se-sc-row .se-sc-v { color: #b8ffb8; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.se-sc-desc { margin: 0 8px 6px; padding: 4px 6px; border-left: 2px solid #00ff00; background: rgba(0, 0, 0, 0.35); font-size: 11.5px; line-height: 1.3; color: #a6eea6; overflow-wrap: anywhere; }
.se-sc-cap { display: block; color: #3fa83f; text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; margin-bottom: 1px; }
.se-sc-btn { padding: 0 8px 8px; }
.se-sc-btn button { margin-top: 0 !important; }
/* Gwiazda (D2): plakietka typu i nazwa w jednej linii; przy bardzo długich obie zawijają się w swoich kolumnach. */
.se-sc-star .se-sc-h { flex-wrap: nowrap; gap: 8px; }
.se-sc-star .se-sc-type { flex: 0 1 auto; white-space: normal; line-height: 1.15; max-width: 48%; font-weight: 700; color: #001a00; background: #00ff00; border-color: #00ff00; text-shadow: none !important; padding: 2px 6px; overflow-wrap: anywhere; }
.se-sc-star .se-sc-h h3 { text-transform: none; }
.se-sc-bars { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 6px; align-items: center; }
.se-sc-bars .se-sc-l { color: #3fa83f; font-size: 11px; max-width: 92px; overflow-wrap: anywhere; white-space: normal; line-height: 1.1; }
.se-sc-bar { position: relative; display: block; min-height: 18px; background: #001400; border: 1px solid #006600; border-radius: 4px; overflow: hidden; }
.se-sc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(0, 120, 0, 0.55), rgba(0, 200, 0, 0.55)); border-right: 2px solid #00ff00; box-shadow: 0 0 6px rgba(0, 255, 0, 0.5); }
.se-sc-bar b { position: relative; display: block; padding: 1px 5px; line-height: 14px; font-size: 11px; color: #f2fff2; overflow-wrap: anywhere; text-shadow: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000 !important; }

/* ===================== 0.14.11 (Jakub pt188u) ===================== */
/* Info po kliknięciu przeszkody / stworzenia na powierzchni — kompaktowy pasek (wariant B, qa/propozycje-info-powierzchnia). */
.info-panel.se-strip-host { text-align: left; }
.se-strip-host * { box-sizing: border-box; }
.se-strip { display: flex; gap: 8px; align-items: stretch; padding: 4px; border: 2px solid #00ff00; border-radius: 8px; background: rgba(0, 40, 0, 0.55); box-shadow: 0 0 10px rgba(0, 255, 0, 0.3); }
.se-strip .se-strip-img { width: 56px; height: 56px; align-self: center; }
.se-strip-emoji { font-size: 34px; line-height: 1; }
.se-strip-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.se-strip-line { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.se-strip-line h3 { margin: 0 !important; font-size: 13.5px !important; line-height: 1.15; color: #00ff00; text-shadow: 0 0 4px rgba(0, 255, 0, 0.8); min-width: 0; overflow-wrap: anywhere; text-align: left; }
.se-strip-badge { flex: 0 1 auto; white-space: normal; line-height: 1.2; max-width: 100%; font-weight: 700; color: #001a00; background: #00ff00; border-color: #00ff00; text-shadow: none !important; overflow-wrap: anywhere; }
.se-strip-txt { font-size: 12px; line-height: 1.25; color: #a6eea6; overflow-wrap: anywhere; }
.se-strip-hp { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; align-items: center; }
.se-strip-l { color: #3fa83f; font-size: 10.5px; }
.se-strip-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.se-strip-chip { flex: 1 1 auto; display: inline-flex; justify-content: center; align-items: baseline; gap: 4px; padding: 2px 6px; border: 1px solid rgba(0, 255, 0, 0.35); border-radius: 5px; background: rgba(0, 40, 0, 0.55); white-space: nowrap; }
.se-strip-v { color: #b8ffb8; font-size: 12.5px; font-weight: 700; }


/* Station terminal frame and shared image presentation. */
.screen-container.se-station {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 8px 10px 6px !important;
  box-sizing: border-box;
  overflow: hidden !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  will-change: auto !important;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 3px,
      rgba(0, 255, 0, 0.025) 3px 4px
    );
}
.se-station-frame {
  width: min(100%, 280px) !important;
  height: 210px !important;
  max-width: 280px !important;
  max-height: 210px !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 0, 0.4);
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.18), inset 0 0 24px rgba(0, 60, 0, 0.35);
  background: radial-gradient(circle at 50% 42%, rgba(0, 70, 0, 0.35), #000 72%);
  overflow: hidden;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}
.se-station-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,255,0,0.04) 0 1px, transparent 1px 3px);
}
.se-station-img {
  width: auto !important;
  height: auto !important;
  max-width: 88% !important;
  max-height: 88% !important;
  object-fit: contain;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.35));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-station) {
  display: flex !important;
  flex-direction: column !important;
}
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-station) > .board-container {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  position: relative !important;
  top: auto; right: auto; bottom: auto; left: auto;
  width: 100% !important;
}
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-station) .screen-container.se-station {
  flex: 1 1 auto;
}

/* ===================== 0.14.19 (Jakub pt216u) ===================== */
/* pkt 5: miniatura wroga po trafieniu — drgnięcie, błysk i dymek z obrażeniami */
.se-thumb { position: relative; overflow: visible !important; }
.se-thumb img { position: relative; z-index: 1; }
@keyframes seThumbShake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-4px, 1px) rotate(-2deg); }
  30% { transform: translate(4px, -1px) rotate(2deg); }
  45% { transform: translate(-3px, 0) rotate(-1deg); }
  60% { transform: translate(3px, 1px); }
  80% { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}
@keyframes seThumbFlash {
  0% { filter: brightness(2.6) sepia(1) hue-rotate(60deg) saturate(4); }
  35% { filter: brightness(1.6); }
  100% { filter: none; }
}
@keyframes seThumbFrame {
  0% { border-color: #aaffaa; box-shadow: 0 0 14px rgba(0, 255, 0, 1), inset 0 0 12px rgba(0, 255, 0, 0.8); }
  100% { box-shadow: none; }
}
.se-thumb-hit { animation: seThumbFrame 0.7s ease-out; }
.se-thumb-hit img { animation: seThumbShake 0.45s ease-out, seThumbFlash 0.6s ease-out; }
.se-thumb-miss img { animation: seThumbShake 0.3s ease-out; opacity: 0.92; }
.se-thumb-pop {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 3;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Share Tech Mono', 'Noto Sans', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans JP', 'Noto Sans KR', monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #00ff00;
  text-shadow: 0 0 2px #000, 0 0 3px #000, 0 0 3px #000, 0 0 8px rgba(0, 255, 0, 0.9);
  opacity: 0;
  animation: seThumbPop 1.3s ease-out forwards;
}
.se-thumb-pop-miss { font-size: 14px; color: #b8ffb8; }
@keyframes seThumbPop {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  30% { transform: translate(-50%, -60%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -135%) scale(1); }
}

/* pkt 3: karta statku / postaci */
.se-card .se-card-content { padding: 6px 8px 12px !important; }
.se-card-open-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.se-card-open-row .available-points { margin: 0; }
.upgrade-container .se-card-open-row .station-button.se-card-open,
.se-card-open-row .station-button.se-card-open {
  width: 100% !important;
  min-height: 42px;
  margin: 0 !important;
  font-weight: 700;
}
.se-card-body {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: center;
  margin: 4px 0 10px;
}
.se-card-col { display: flex; flex-direction: column; gap: 8px; }
.se-card-hero {
  position: relative;
  border: 2px solid rgba(0, 255, 0, 0.6);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 45%, rgba(0, 80, 0, 0.55), rgba(0, 18, 0, 0.9) 70%);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.25), inset 0 0 18px rgba(0, 255, 0, 0.12);
  aspect-ratio: 1 / 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.se-card-hero img { width: 92%; height: 92%; object-fit: contain; image-rendering: pixelated; }
.se-card-lvl {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border: 1px solid #00ff00;
  border-radius: 4px;
  background: rgba(0, 20, 0, 0.85);
  color: #00ff00;
  font-size: 12px;
  white-space: nowrap;
}
button.se-eq-slot {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 78px !important;
  margin: 0 !important;
  padding: 4px 2px 3px;
  background: rgba(0, 30, 0, 0.8);
  border: 1px solid rgba(0, 255, 0, 0.55);
  border-radius: 7px;
  color: #00ff00;
  cursor: pointer;
}
button.se-eq-slot.se-eq-empty { border-style: dashed; border-color: rgba(0, 255, 0, 0.35); }
button.se-eq-slot.se-eq-sel { border-color: #aaffaa; box-shadow: 0 0 10px rgba(0, 255, 0, 0.8); background: rgba(0, 60, 0, 0.85); }
.se-eq-slot-l { font-size: 11px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-eq-ico {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 255, 0, 0.35);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.7);
}
.se-eq-ico img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }
.se-eq-ico-empty img { filter: grayscale(1) brightness(0.55); opacity: 0.35; }
.se-eq-mk {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 16px;
  padding: 0 3px;
  border: 1px solid #00ff00;
  border-radius: 3px;
  background: #001a00;
  color: #00ff00;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  text-align: center;
}
.se-card-sel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 40px;
  padding: 6px 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 255, 0, 0.4);
  border-radius: 6px;
  background: rgba(0, 28, 0, 0.6);
  color: #b8ffb8;
  font-size: 13px;
  text-align: center;
}
.se-card-sel b { color: #00ff00; }
.se-card-stats { border: 1px solid rgba(0, 255, 0, 0.4); border-radius: 6px; overflow: hidden; }
.se-card-tr {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 4px;
  padding: 5px 8px;
  font-size: 13px;
  color: #b8ffb8;
  border-top: 1px solid rgba(0, 255, 0, 0.15);
}
.se-card-tr > span:not(:first-child) { text-align: right; white-space: nowrap; }
.se-card-tr > span:first-child { overflow-wrap: anywhere; }
.se-card-th { border-top: none; background: rgba(0, 60, 0, 0.6); color: #00ff00; font-weight: 700; font-size: 12px; }
.se-card-gear { color: #7dff7d; }
.se-card-tot { color: #00ff00; font-weight: 700; }

/* pkt 3: sklep na stacji */
.se-shop .se-shop-top { padding: 0 10px; }
.se-shop-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
button.se-shop-tab {
  width: 100% !important;
  margin: 0 !important;
  min-height: 38px;
  background: #002200;
  color: #00aa00;
  border: 1px solid #006600;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
button.se-shop-tab.se-shop-tab-on { background: #004400; color: #00ff00; border: 2px solid #00ff00; box-shadow: 0 0 8px rgba(0, 255, 0, 0.4); }
.se-shop-credits { margin: 8px 0 2px; text-align: center; color: #b8ffb8; font-size: 14px; }
.se-shop-list { display: flex !important; flex-direction: column; gap: 8px; padding-top: 6px !important; }
.se-shop-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(0, 255, 0, 0.4);
  border-radius: 8px;
  background: rgba(0, 28, 0, 0.6);
}
.se-shop-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.se-shop-name { color: #00ff00; font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; }
.se-shop-eff { color: #b8ffb8; font-size: 12px; line-height: 1.15; }
.se-shop-next { color: #7dff7d; font-size: 11px; line-height: 1.15; overflow-wrap: anywhere; }
.se-shop-next.se-shop-locked { color: #5f9f5f; }
.se-shop-btns { display: flex; flex-direction: column; gap: 5px; }
.se-shop-btns .station-button.se-shop-buy,
.se-shop-btns .station-button.se-shop-sell {
  width: 100% !important;
  min-height: 38px;
  margin: 0 !important;
  padding: 2px 3px !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.se-shop-btns .station-button small { font-size: 11px; font-weight: 400; }
.se-shop-btns .station-button.se-shop-sell { min-height: 32px; border-width: 1px; background: #001a00; }
.se-shop-msg { margin: 8px 10px; min-height: 18px; text-align: center; color: #b8ffb8; font-size: 12px; }
.se-shop-msg.se-shop-msg-bad { color: #ffd84a; }

/* 0.14.20: permanent power-meter allocation; game-area remains the single scroll owner. */
.se-card .se-card-content { min-height: 0; height: auto; overflow: visible !important; }
.se-card .se-allocation { margin-top: 16px; border-top: 1px solid #00ff00; padding-top: 8px; }
.se-allocation h3 { color: #00ff00; font-size: 15px; text-align: center; margin: 4px 0 8px; }
.se-allocation .available-points { font-size: 14px; text-align: center; }
.se-cargo-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-top: 5px; border-top: 1px dotted #006600; font-size: 12px; }
.se-cargo-pips { display: flex; gap: 4px; flex: 0 0 auto; }
.se-cargo-pips i { display: block; width: 16px; height: 8px; border: 1px solid #00ff00; background: #001000; }
.se-cargo-pips .se-pip-on { background: #00ff00; box-shadow: 0 0 5px #00aa00; }
.se-card .close-button.se-card-back { position: static !important; inset: auto !important; transform: none !important; z-index: auto !important; margin-top: 14px !important; margin-bottom: 8px !important; flex-shrink: 0; }
.se-allocation .available-points {
  margin: 6px 0 10px; padding: 5px 8px; border: 1px solid #008800;
  background: #002000; color: #00ff00; text-shadow: 0 0 5px #008800;
}
.se-power-row { min-width: 0; box-sizing: border-box; }
.se-power-row > * { min-width: 0; }
.se-power-row b { overflow-wrap: anywhere; line-height: 1.15; }
.se-card .se-power-row button.upgrade-button {
  position: static !important; inset: auto !important; transform: none !important;
  width: 44px !important; height: 44px !important; min-width: 44px !important;
  max-width: 44px !important; min-height: 44px !important; padding: 0 !important;
  margin: 0 !important; border: 1px solid #00ff00; border-radius: 3px;
  display: flex !important; align-items: center; justify-content: center;
  background: #003000; color: #00ff00; font: 24px/1 monospace !important;
  grid-row: auto; grid-column: auto; align-self: center; justify-self: end;
  box-shadow: inset 0 0 8px #004000; touch-action: manipulation;
}
.se-card .se-power-row button.upgrade-button:disabled { color: #397039; border-color: #285528; box-shadow: none; opacity: .65; }
.se-alloc-icon { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; flex: 0 0 24px; filter: grayscale(1) sepia(1) hue-rotate(65deg) saturate(5); }
.se-point-meter { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 3px; min-width: 0; }
.se-point-meter i { display: block; overflow: hidden; border: 1px solid #006000; background: #001100; height: 7px; }
.se-point-meter em { display: block; height: 100%; background: #00ff00; box-shadow: 0 0 4px #00cc00; }
.se-power-row .se-cargo-progress { grid-column: 1 / -1; margin: 0; padding-top: 5px; font-size: 11px; gap: 6px; line-height: 1.2; }
.se-power-row .se-cargo-progress > span:last-child { overflow-wrap: anywhere; }
/* Horizontal segmented reactor meters with instrument icons. */
.se-allocation .se-alloc-items { display: flex; flex-direction: column; gap: 7px; }
.se-allocation .se-power-row {
  display: grid; grid-template-columns: minmax(0,1fr) 44px;
  grid-template-rows: auto auto auto; gap: 4px 9px;
  border: 1px solid #009900; border-left: 3px solid #00ff00; border-radius: 0;
  padding: 6px 8px; margin: 0; background: repeating-linear-gradient(0deg,#001500 0 2px,#000b00 2px 4px);
  box-shadow: inset 0 0 12px #002000;
}
.se-allocation .se-power-head { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 6px; }
.se-allocation .se-power-head b { flex: 1; font-size: 12px; }
.se-allocation .se-power-head strong { font: bold 19px/1 monospace; white-space: nowrap; text-shadow: 0 0 6px #00aa00; }
.se-allocation .se-power-meta { grid-column: 1; grid-row: 3; font-size: 10px; line-height: 1.2; color: #91c991; }
.se-allocation .se-point-meter { grid-column: 1; grid-row: 2; gap: 4px; }
.se-allocation .se-point-meter i { height: 10px; border-color: #008800; transform: skewX(-10deg); }
.se-allocation .se-power-row button.upgrade-button { grid-column: 2; grid-row: 1 / 4; border-radius: 0; }
.se-allocation .se-cargo-progress { grid-row: 4; }

/* 0.14.21: dim scrollbars throughout all screens and nested panels. */
* { scrollbar-width: thin; scrollbar-color: #0a5a0a #000800; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: #000800 !important; box-shadow: none !important; }
*::-webkit-scrollbar-thumb { background: #0a5a0a !important; border: 1px solid #082d08 !important; box-shadow: none !important; }
*::-webkit-scrollbar-thumb:hover { background: #1f7a1f !important; }
*::-webkit-scrollbar-corner { background: #000800; }
.board > .cell { position: relative; min-width: 0; min-height: 0; }
.se-board-hit { z-index: 30; }

/* 0.14.22: in-game confirmation, independent of native WebView dialogs. */
.reset-confirm { position: fixed; inset: 0; z-index: 500; background: rgba(0, 0, 0, .96); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; box-sizing: border-box; color: #00ff00; }
.reset-confirm .reset-ask { border: 1px solid #00a000; background: #000d00; padding: 24px; max-width: 420px; text-align: center; }
.reset-confirm .reset-actions { display: flex; gap: 16px; }
.reset-confirm .menu-button { background: #001400 !important; border: 1px solid #00b000 !important; color: #00ff00 !important; min-width: 100px; min-height: 48px; }

/* 0.14.23: allocated-only tiered power meters; previous tier stays dim. */
.se-allocation .se-tier-wrap { grid-column: 1; grid-row: 2; min-width: 0; }
.se-allocation .se-point-meter { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); }
.se-allocation .se-point-meter i { background: transparent; }
.se-allocation .se-tier-previous i { background: #145014; box-shadow: inset 0 0 3px #0b290b; }
.se-allocation .se-tier-previous em { background: #40ff40; box-shadow: 0 0 5px #00ff00; }
.se-tier-badge { display: block; text-align: right; color: #63c963; font-size: 10px; line-height: 1.4; margin-top: 3px; }

/* 0.14.24: personal shields and first aid services. */
.se-medkit-icon { width: 54px; height: 54px; object-fit: contain; image-rendering: pixelated; }
.se-medkit-shop small { display: block; color: #70b970; font-size: 11px; margin-top: 5px; }
.se-medkit-use-panel { color: #80d080; font-size: 13px; }
.se-station-heal { white-space: normal !important; }
.se-heal-info { color: #70b970; font-size: 11px !important; }

/* 0.14.25: constrain the viewport before assigning an inner scroll owner. */
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-station) { min-height: 0 !important; flex: 1 1 0 !important; height: 0 !important; overflow: hidden !important; }
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-station) > .board-container { flex: 1 1 0 !important; height: 100% !important; min-height: 0 !important; overflow: hidden !important; }
.screen-container.se-station { min-height: 0 !important; overflow-y: auto !important; overscroll-behavior: contain; }
.screen-container.se-station.se-station-proposal { padding: 10px !important; flex: 1 1 0 !important; min-height: 0 !important; max-height: 100% !important; overflow: hidden !important; gap: 10px; }
.se-proposal-head { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.se-proposal-heading { display: flex; width: 100%; align-items: center; gap: 9px; }
.se-proposal-heading h2 { flex: 1; font-size: 15px; line-height: 1.3; font-weight: 400; text-transform: uppercase; margin: 0; text-align: left; overflow-wrap: anywhere; }
.se-station-proposal .se-station-frame { width: min(100%,300px) !important; max-width: 300px !important; height: clamp(110px,21vh,180px) !important; max-height: 180px !important; }
.se-proposal-body { flex: 1 1 0; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border: 1px solid #145614; padding: 10px; border-radius: 5px; background: rgba(0,20,0,.7); }
.se-proposal-status { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; font-size: 12px; color: #84cc84; }
.se-proposal-status span { border-bottom: 1px dotted #256025; padding: 4px 0; flex: 1 1 44%; }
.se-proposal-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.se-station-proposal .se-proposal-action { width: 100% !important; margin: 0 !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 12px 7px !important; font-size: 14px !important; line-height: 1.3; border: 1px solid #00c000; background: #001300; }
.se-action-copy { display: flex; flex-direction: column; gap: 5px; }
.se-action-copy small { font-size: 11px; font-weight: 400; color: #67ad67; }
.se-proposal-help { font-size: 12px; color: #74b774; line-height: 1.45; margin: 12px 0 0; }
.se-proposal-footer { flex: 0 0 auto; padding-top: 2px; border-top: 1px solid #125512; background: #000; }
.se-station-proposal .se-proposal-undock { position: static !important; width: 100%; min-height: 48px; margin: 0 !important; color: #00ff00 !important; background: #003000 !important; border: 1px solid #00ff00 !important; font-size: 15px !important; }
@media (max-height: 780px) {
 .screen-container.se-station.se-station-proposal { gap: 7px; padding: 8px !important; }
 .se-station-proposal .se-station-frame { height: 110px !important; }
 .se-station-proposal .se-proposal-action { min-height: 94px; }
 .se-proposal-status { font-size: 11px; gap: 4px; margin-bottom: 8px; }
 .se-proposal-body { padding: 8px; }
}
.se-station-proposal .se-proposal-undock { max-width: none !important; }
.se-proposal-heading h2 { min-width: 0; max-height: 3.9em; overflow-y: auto; }

/* Dedicated holographic station action icons. */
.se-action-icon { display: block; width: 48px !important; height: 48px !important; min-width: 48px; max-width: 48px !important; max-height: 48px !important; flex: 0 0 48px; object-fit: contain; pointer-events: none; user-select: none; }
.se-action-icon-holo { filter: drop-shadow(0 0 4px rgba(0,255,60,.25)); }

.se-station-proposal .se-proposal-undock { width: 100% !important; max-width: none !important; }

/* 0.14.26: permanent reconstruction card and amber warnings. */
.se-death-overlay { position:fixed; inset:0; z-index:20000; display:flex; align-items:center; justify-content:center; padding:18px; box-sizing:border-box; background:rgba(0,5,0,.9); backdrop-filter:blur(4px); color:#00ff00; font-family:monospace; }
.se-death-dialog { box-sizing:border-box; width:min(100%,460px); max-height:calc(100dvh - 36px); overflow:auto; border:1px solid #00ff00; padding:22px; background:repeating-linear-gradient(0deg,#000b00 0 3px,#001000 3px 4px); box-shadow:0 0 24px #006000,inset 0 0 30px #001b00; }
.se-death-dialog h2 { font-size:22px; line-height:1.25; letter-spacing:2px; margin:14px 0 22px; color:#00ff00; }
.se-death-signal { color:#70b970; font-size:11px; letter-spacing:2px; border-bottom:1px solid #175517; padding-bottom:12px; }
.se-death-cause { color:#cbffcb; line-height:1.6; font-size:14px; }
.se-death-dialog dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); font-size:13px; line-height:1.5; gap:10px; margin:22px 0; }
.se-death-dialog dt { color:#64a864; }.se-death-dialog dd { margin:0; overflow-wrap:anywhere; text-align:right; }
.se-death-rebuilt { border:1px solid #247c24; background:#002000; padding:14px; font-size:13px; line-height:1.6; }
.se-death-rebuilt b { letter-spacing:1px; }.se-death-rebuilt p { margin:10px 0 0; color:#b0e9b0; }
.se-death-loss { color:#74a674; font-size:12px; line-height:1.5; }
.se-death-continue { width:100%; min-height:48px; margin:14px 0 0; color:#00ff00; background:#003000; border:1px solid #00ff00; font:inherit; text-transform:uppercase; cursor:pointer; }
.se-death-continue:focus-visible { outline:2px solid #c0ffc0; outline-offset:4px; }
.se-death-dialog { border-radius:12px; text-align:center; border-top:3px solid #00ff00; }
.se-death-dialog h2 { font-size:19px; letter-spacing:1px; }
.se-death-portrait { display:block; width:112px; height:112px; object-fit:contain; margin:0 auto 18px; padding:12px; border:1px solid #297829; background:radial-gradient(#004000,#000); image-rendering:pixelated; }
:root { --se-alarm:#ffbf00; --se-alarm-dim:#6f4c00; }
.hx-meter.se-low { position:relative; color:var(--se-alarm); border-color:var(--se-alarm)!important; animation:seAlarmFrame 1.6s ease-in-out infinite; }
.hx-meter.se-low .hx-fill { background:var(--se-alarm)!important; animation:seAlarmFill 1.6s ease-in-out infinite!important; }
.hx-meter.se-low .hx-label { color:var(--se-alarm)!important; }
@keyframes seAlarmFill { 0%,100% { opacity:1; box-shadow:0 0 15px var(--se-alarm); filter:brightness(1.3); } 50% { opacity:.55; box-shadow:0 0 1px var(--se-alarm-dim); filter:brightness(.8); } }
@keyframes seAlarmFrame { 0%,100% { box-shadow:inset 0 0 9px var(--se-alarm-dim),0 0 9px var(--se-alarm); } 50% { box-shadow:inset 0 0 2px var(--se-alarm-dim),0 0 0 transparent; } }
@media (prefers-reduced-motion:reduce) { .se-death-dialog *, .hx-meter.se-low, .hx-meter.se-low .hx-fill { animation:none!important; } }

.news-production .news-intro { font-size:14px; font-weight:bold; color:#00ff00; margin:8px 0 12px; line-height:1.4; }
.news-production .news-list li { font-size:13px; line-height:1.4; margin:0 0 5px; }

/* Next build: author signatures sit outside release-note lists. */
.news-signature { display:block; text-align:right; color:#66ffba; font-size:13px; font-style:italic; letter-spacing:1px; margin:8px 2px 18px; padding:0; list-style:none; }

/* Permanent bounded fan of sale receipts. */
.se-sale-overlay { position:fixed; inset:0; pointer-events:none; z-index:19000; }
.se-sale-particle { position:absolute; display:flex; flex-direction:column; align-items:center; gap:5px; width:72px; will-change:transform,opacity; animation:seSaleRise 2.8s ease-out both; }
.se-sale-particle img { width:48px; height:48px; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(0 0 6px #00aa00); }
.se-sale-amount { white-space:nowrap; color:#a0ffa0; background:#001500; padding:3px 4px; border:1px solid #177517; font: bold 13px monospace; text-shadow:0 0 6px #00ff00; }
@keyframes seSaleRise { 0% { opacity:0; transform:translate(-50%,0) scale(.7); } 25% { opacity:1; transform:translate(calc(-50% + var(--dx)),-50px) scale(1); } 70% { opacity:1; transform:translate(calc(-50% + var(--dx)),calc(var(--lift) + 35px)); } 100% { opacity:0; transform:translate(calc(-50% + var(--dx)),var(--lift)); } }

.se-sale-count { color:#b0ffb0; background:#001500; border:1px solid #1a6a1a; font:bold 11px monospace; padding:1px 4px; margin-top:-7px; }
@media(prefers-reduced-motion:reduce) { .se-sale-particle { animation:none!important; transform:translate(calc(-50% + var(--dx)),-85px); opacity:1; will-change:auto; } }

/* 0.16.01 equipment rarity colors (gold best) */
.se-rarity-common { color:#c8c8c8; }
.se-rarity-uncommon { color:#00FF00; }
.se-rarity-rare { color:#4da3ff; }
.se-rarity-epic { color:#c080ff; }
.se-rarity-legendary { color:#ffcc44; text-shadow:0 0 6px #aa7700; }
.se-eq-ico { border:2px solid rgba(0,255,0,.35); border-radius:8px; }
.se-eq-ico.se-rarity-common { border-color:#c8c8c8; }
.se-eq-ico.se-rarity-uncommon { border-color:#00FF00; }
.se-eq-ico.se-rarity-rare { border-color:#4da3ff; box-shadow:0 0 8px #003366; }
.se-eq-ico.se-rarity-epic { border-color:#c080ff; box-shadow:0 0 8px #440066; }
.se-eq-ico.se-rarity-legendary { border-color:#ffcc44; box-shadow:0 0 10px #665500; }
.se-shop-row.se-rarity-common { border-color:#c8c8c8; }
.se-shop-row.se-rarity-uncommon { border-color:#00FF00; }
.se-shop-row.se-rarity-rare { border-color:#4da3ff; }
.se-shop-row.se-rarity-epic { border-color:#c080ff; }
.se-shop-row.se-rarity-legendary { border-color:#ffcc44; box-shadow:0 0 8px #443300; }
.se-shop-row.se-shop-sel { box-shadow:0 0 12px #003300; }
.se-float-warn {
  color: #ffd84a;
  font-size: 19px;
  text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 10px rgba(255, 216, 74, 0.95), 0 0 18px rgba(184, 255, 0, 0.55) !important;
}
.se-shop-rarity { display:block; font-size:10px; letter-spacing:1px; text-transform:uppercase; }
.se-shop-band { color:#7dcf7d; font-size:12px; padding:0 12px 6px; }
.se-shop-set { display:block; color:#c080ff; font-size:11px; }
.se-shop-compare { margin:10px 0; border:1px solid #177517; background:#001200; padding:8px; }
.se-cmp-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.se-cmp-grid h4 { color:#7dcf7d; margin:0 0 4px; font-size:11px; }
.se-cmp-grid .up { color:#66ff99; }
.se-cmp-grid .down { color:#ff6666; }
.se-cmp-grid .same { color:#88aa88; }
.se-cmp-note { margin-top:6px; color:#a0ffa0; font-size:11px; }
.se-set-box { border:1px solid #145014; margin:8px 0; padding:8px; background:#001000; }
.se-set-row { margin-bottom:6px; }
.se-set-row.se-set-on { border-left:3px solid #c080ff; padding-left:6px; }
.se-set-bonus.on { color:#66ff99; font-size:11px; }
.se-set-bonus.off { color:#556655; font-size:11px; }
.se-card-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.se-cargo-eq-panel { margin:6px 0; }

/* 0.16 equipment compare v2 */
.se-shop-compare { margin:10px 0 12px; border:2px solid #00aa55; background:rgba(0,12,0,.96); padding:10px; box-shadow:0 0 14px #003300; }
.se-cmp-sub { color:#88cc88; font-size:10px; margin:0 0 8px; }
.se-cmp-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.se-cmp-col { border:1px solid #144414; padding:6px; min-height:90px; }
.se-cmp-col h4 { color:#7dcf7d; margin:0 0 4px; font-size:11px; }
.se-cmp-name { font-weight:bold; margin-bottom:6px; font-size:12px; }
.se-cmp-line { display:flex; justify-content:space-between; gap:6px; font-size:11px; margin:2px 0; }
.se-cmp-line.up { color:#66ff99; }
.se-cmp-line.down { color:#ff6666; }
.se-cmp-line.same { color:#88aa88; }
.se-cmp-note { margin-top:8px; color:#a0ffa0; font-size:11px; }
.se-cargo-scrap { color:#7dcf7d; font-size:11px; margin:4px 0; }
.se-cargo-sell-disabled { opacity:.55; border-color:#555 !important; color:#888 !important; }

/* 0.16 shop compare v3: pinned Back, scrollable list+compare */
.screen-container.se-shop {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  padding: 8px 8px 0 !important;
  gap: 6px;
}
.se-shop .se-shop-header { flex: 0 0 auto; }
.se-shop .se-shop-header h2 { margin: 4px 0 6px !important; }
.se-shop .se-shop-band { padding: 0 4px 2px; margin: 0; font-size: 11px; line-height: 1.25; color: #7dcf7d; }
.se-shop .se-shop-list {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 4px 2px 10px !important;
  gap: 7px !important;
}
.se-shop .se-shop-footer {
  flex: 0 0 auto;
  padding: 4px 2px 8px;
  border-top: 1px solid #0a5a0a;
  background: #000;
  z-index: 5;
}
.se-shop .se-shop-msg { margin: 2px 4px 6px !important; min-height: 14px; font-size: 11px; line-height: 1.25; }
.se-shop .close-button.se-shop-back {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.se-shop .se-shop-compare {
  margin: 6px 0 4px;
  border: 2px solid #00aa55;
  background: rgba(0,12,0,.97);
  padding: 8px;
  box-shadow: 0 0 12px #003300;
}
.se-shop .se-cmp-sub { font-size: 10px; margin: 0 0 6px; line-height: 1.3; }
.se-shop .se-cmp-note { margin-top: 6px; font-size: 11px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.se-shop.se-shop-comparing .se-shop-row:not(.se-shop-sel):not(.se-medkit-shop) { opacity: 0.72; }

/* 0.16 shop v3 height chain (mirror station proposal) */
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-shop) {
  min-height: 0 !important;
  flex: 1 1 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-shop) > .screen-container.se-shop {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  height: 100% !important;
}

/* ===================== 0.17.00: Tablica Misji ===================== */
.se-float-mis {
  color: #ffd84a;
  font-size: 18px;
  text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 10px rgba(255, 216, 74, 0.95) !important;
}
/* station: wide mission tile above the 2x2 grid */
.se-station-proposal .se-proposal-action.se-action-missions {
  grid-column: 1 / -1;
  position: relative;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  min-height: 84px;
  padding: 10px 12px !important;
  border: 2px solid #00ff00;
  background: linear-gradient(180deg, rgba(0, 48, 0, 0.9), rgba(0, 22, 0, 0.9));
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.25);
}
.se-action-missions .se-action-icon { flex: 0 0 auto; width: 56px; height: 56px; }
.se-action-missions .se-action-copy { min-width: 0; flex: 1 1 auto; padding-right: 4px; }
.se-action-missions .se-action-copy b { font-size: 16px; color: #00ff00; }
.se-action-missions .se-action-copy small { overflow-wrap: anywhere; }
.se-mis-badge {
  position: absolute;
  top: -9px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #ffd84a;
  color: #1a1400;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(255, 216, 74, 0.6);
}
.se-proposal-status span.se-mis-status { color: #b8ffb8; }
/* missions screen (reuses the shop height chain: .se-shop) */
.se-missions .se-shop-tabs button.se-shop-tab { font-size: 13px; padding: 2px 4px; line-height: 1.15; overflow-wrap: anywhere; }
.se-mis-lead, .se-mis-note, .se-mis-empty { margin: 2px 2px 4px; font-size: 11px; line-height: 1.35; color: #7dcf7d; overflow-wrap: anywhere; }
.se-mis-empty { color: #b8ffb8; font-size: 12px; padding: 10px 4px; text-align: center; }
.se-mis-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: center;
  padding: 7px 6px;
  border: 1px solid rgba(0, 255, 0, 0.45);
  border-radius: 8px;
  background: rgba(0, 28, 0, 0.6);
}
.se-mis-row.se-mis-done { border: 1px solid #ffd84a; background: rgba(40, 32, 0, 0.55); box-shadow: 0 0 8px rgba(255, 216, 74, 0.25); }
.se-mis-ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #0a7b36; border-radius: 6px; background: #001a08; }
.se-mis-ic img { width: 32px; height: 32px; display: block; }
.se-mis-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.se-mis-cat { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #67ad67; overflow-wrap: anywhere; }
.se-mis-tag { margin-left: 6px; padding: 0 5px; border-radius: 6px; background: #ffd84a; color: #1a1400; font-style: normal; font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 10px; white-space: nowrap; }
.se-mis-name { color: #00ff00; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.se-mis-done .se-mis-name { color: #ffe680; }
.se-mis-desc { color: #b8ffb8; font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
.se-mis-bar { display: block; height: 5px; margin-top: 3px; border: 1px solid #0a5a0a; border-radius: 3px; background: #001200; overflow: hidden; }
.se-mis-bar i { display: block; height: 100%; background: #00ff00; box-shadow: 0 0 6px rgba(0, 255, 0, 0.6); }
.se-mis-done .se-mis-bar { border-color: #6b5a10; }
.se-mis-done .se-mis-bar i { background: #ffd84a; box-shadow: 0 0 6px rgba(255, 216, 74, 0.6); }
.se-missions .station-button.se-mis-btn {
  width: 100% !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 3px 3px !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow-wrap: anywhere;
}
.se-missions .station-button.se-mis-btn small { font-size: 11px; font-weight: 400; white-space: nowrap; }
.se-missions .station-button.se-mis-take.se-mis-dim { opacity: 0.5; }
.se-missions .station-button.se-mis-turnin { color: #ffe680 !important; border: 2px solid #ffd84a !important; background: #2a2000 !important; box-shadow: 0 0 8px rgba(255, 216, 74, 0.35); }
.se-missions .station-button.se-mis-abandon { min-height: 34px; font-size: 12px !important; font-weight: 400; background: #001a00 !important; border-width: 1px !important; }
.se-missions .station-button.se-mis-abandon.se-mis-asking { color: #ffd84a !important; border-color: #ffd84a !important; }
.se-mis-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding: 8px 10px; border: 1px solid #ffd84a; border-radius: 8px; background: rgba(40, 32, 0, 0.5); color: #ffe680; font-size: 12px; }
.se-mis-summary b { color: #ffd84a; font-size: 14px; }
.se-mis-sec { margin: 6px 2px 0; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #67ad67; font-weight: 400; }
.se-mis-msg { animation: seMisPop 0.35s ease-out; }
@keyframes seMisPop { 0% { transform: scale(1.12); opacity: 0.3; } 100% { transform: scale(1); opacity: 1; } }
/* HUD: indicator in the top-left corner of the board, list of active missions under it */
.se-mis-hud {
  position: absolute !important;
  z-index: 40;
  top: 2px;
  left: 2px;
  width: auto !important;
  min-height: 0;
  margin: 0 !important;
  padding: 3px 6px !important;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Share Tech Mono", "Noto Sans", sans-serif;
  font-size: 10px !important;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  color: #00ff00;
  background: rgba(0, 16, 0, 0.88);
  border: 1px solid #00ff00;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.25);
}
/* 0.17.01 (Jakub t264u): completed-missions badge in the same bright green as the label (was gold #ffd84a) */
.se-mis-hud.se-mis-hud-done { border-color: #00ff00; box-shadow: 0 0 10px rgba(0, 255, 0, 0.45); }
.se-mis-hud-badge { padding: 0 4px; border-radius: 5px; background: #00ff00; color: #001a00; font-size: 10px; line-height: 1.35; }
.se-mis-pop {
  position: absolute;
  z-index: 41;
  top: 28px;
  left: 4px;
  width: min(330px, calc(100% - 8px));
  max-height: calc(100% - 36px);
  overflow-y: auto;
  padding: 8px 10px 10px;
  border: 1px solid #00ff00;
  border-radius: 8px;
  background: rgba(0, 10, 0, 0.95);
  box-shadow: 0 0 14px rgba(0, 255, 0, 0.3);
  font-family: "Share Tech Mono", "Noto Sans", sans-serif;
  color: #b8ffb8;
}
.se-mis-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #00ff00; font-size: 13px; }
button.se-mis-pop-x { width: auto !important; min-height: 0; margin: 0 !important; padding: 0 6px !important; font-size: 14px !important; line-height: 1.4; color: #00ff00; background: transparent !important; border: 1px solid #0a5a0a !important; border-radius: 5px; }
.se-mis-pop-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px dotted #1d4d1d; }
.se-mis-pop-ic { flex: 0 0 auto; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border: 1px solid #0a7b36; border-radius: 5px; background: #001a08; }
.se-mis-pop-ic img { width: 20px; height: 20px; }
.se-mis-pop-main { flex: 1 1 auto; min-width: 0; }
.se-mis-pop-line { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 1.25; }
.se-mis-pop-name { min-width: 0; overflow-wrap: anywhere; }
.se-mis-pop-prog { flex: 0 0 auto; color: #00ff00; white-space: nowrap; }
.se-mis-pop-row.se-mis-done .se-mis-pop-name, .se-mis-pop-row.se-mis-done .se-mis-pop-prog { color: #ffe680; }
.se-mis-pop-none { margin: 4px 0 0; font-size: 11px; line-height: 1.35; }
.se-mis-pop-hint { margin: 6px 0 0; font-size: 11px; line-height: 1.35; color: #ffd84a; }

/* ===================== 0.18.00: ekran Odkryć (gwiazdy S1, planety P2, artefakty A) ===================== */
.screen-container.se-disc {
  display: flex !important; flex-direction: column !important; flex: 1 1 0 !important;
  min-height: 0 !important; max-height: 100% !important; overflow: hidden !important;
  padding: 8px 8px 0 !important; gap: 6px; position: relative;
}
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-disc) {
  min-height: 0 !important; flex: 1 1 0 !important; height: 0 !important; overflow: hidden !important;
  display: flex !important; flex-direction: column !important;
}
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-disc) > .screen-container.se-disc {
  flex: 1 1 0 !important; min-height: 0 !important; max-height: 100% !important; height: 100% !important;
}
.se-disc button {
  all: unset; box-sizing: border-box; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; font-family: inherit;
}
.se-disc-head { flex: 0 0 auto; }
.se-disc-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.se-disc-title h2 { margin: 2px 0 4px !important; font-size: 20px !important; letter-spacing: 2px; text-transform: uppercase; }
.se-disc-title span { color: #7dcf7d; font-size: 11px; }
.se-disc-bar { height: 5px; background: #002200; border: 1px solid #0a5a0a; border-radius: 3px; overflow: hidden; }
.se-disc-bar > i { display: block; height: 100%; background: #00ff00; box-shadow: 0 0 6px #00ff00; }
.se-disc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.se-disc button.se-disc-tab {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 52px;
  padding: 6px 7px; background: #001a00; color: #00aa00; border: 1px solid #006600; border-radius: 7px; text-align: center;
}
.se-disc-tab b { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-disc-tab small { font-size: 11px; color: #5faf5f; }
.se-disc-tab .se-disc-bar { height: 3px; }
.se-disc button.se-disc-tab.on { background: #003300; color: #00ff00; border: 2px solid #00ff00; box-shadow: 0 0 9px rgba(0,255,0,.45); }
.se-disc-tab.on small { color: #b8ffb8; }
.se-disc-dot { position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #ffd84a; box-shadow: 0 0 6px #ffd84a; }
.se-disc-list {
  flex: 1 1 0 !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 2px 12px !important; display: block !important;
}
.se-disc-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 8px; }
.se-disc-sum > div { border: 1px solid #0a5a0a; border-radius: 6px; background: #000f00; padding: 5px 4px; text-align: center; min-width: 0; }
.se-disc-sum b { display: block; color: #00ff00; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-disc-sum small { display: block; color: #6fbf6f; font-size: 10px; line-height: 1.15; overflow-wrap: anywhere; }
.se-disc-sec { margin: 6px 0 10px; }
.se-disc-group { display: flex; align-items: center; gap: 6px; color: #66ffba; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 8px 0 6px; }
.se-disc-group-t { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.se-disc-group em { font-style: normal; color: #5faf5f; font-size: 11px; flex: 0 0 auto; }
.se-disc-group-line { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, #0a7a0a, transparent); min-width: 12px; }
.se-disc-cap { color: #7dcf7d; font-size: 11px; margin: 2px 0 4px; }
.se-disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.se-disc .se-disc-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  padding: 8px 5px 7px; border: 2px solid var(--rc, var(--sc, #00aa00)); border-radius: 8px;
  background: radial-gradient(circle at 50% 38%, rgba(0,60,0,.55), #000a00 70%); text-align: center;
  box-shadow: 0 0 6px rgba(0,0,0,.6), inset 0 0 10px rgba(0,0,0,.6);
}
.se-disc .se-disc-card:active { transform: scale(.97); }
.se-disc-card img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.se-disc-card b { color: #00ff00; font-size: 11px; font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; min-height: 2.3em; display: flex; align-items: center; }
.se-disc-card small { color: #8fdf8f; font-size: 10px; }
.se-disc-art > i { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rc); box-shadow: 0 0 6px var(--rc); }
.se-disc-star { border-color: color-mix(in srgb, var(--sc, #00aa00) 70%, #000) !important; }
.se-disc-star img { filter: drop-shadow(0 0 6px var(--sc, #00ff00)); }
.se-disc-cls { position: absolute; top: 4px; left: 4px; min-width: 18px; padding: 1px 3px; border-radius: 4px; font-size: 10px; color: #000; background: var(--sc, #2a5a2a); font-weight: 700; }
.se-disc-card.locked { border-color: #123a12 !important; border-style: dashed !important; background: #000600; cursor: default; }
.se-disc-card.locked b { color: #2f6f2f; }
.se-disc-card.locked .se-disc-cls { background: #123a12; color: #4f8f4f; }
.se-disc-card.locked > i { background: #123a12; box-shadow: none; }
img.se-disc-sil { filter: brightness(0) drop-shadow(0 0 1px #2f7f2f) !important; opacity: .7; background: transparent; }
.se-disc-new {
  position: absolute; top: -7px; right: -4px; z-index: 2; padding: 1px 5px; border-radius: 4px;
  background: #ffd84a; color: #000; font-size: 9px; font-weight: 700; letter-spacing: .5px; box-shadow: 0 0 6px #ffd84a;
}
.se-disc-row-txt .se-disc-new { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.se-disc-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.se-disc-chips::-webkit-scrollbar { display: none; }
.se-disc button.se-disc-chip, .se-scr button.se-disc-chip { flex: 0 0 auto; padding: 6px 10px; min-height: 32px; border: 1px solid #0a6a0a; border-radius: 16px; background: #001400; color: #5faf5f; font-size: 11px; white-space: nowrap; display: flex; align-items: center; }
.se-disc button.se-disc-chip.on, .se-scr button.se-disc-chip.on { border-color: #00ff00; color: #00ff00; background: #003300; box-shadow: 0 0 6px rgba(0,255,0,.4); }
/* P2 */
.se-disc-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 0 6px; }
.se-disc-segs > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 4px; padding: 4px 5px; border: 1px solid #0a4a0a; border-radius: 5px; background: #000c00; }
.se-disc-segs > div.none { opacity: .6; }
.se-disc-segs span { flex: 1 1 auto; min-width: 0; font-size: 10px; line-height: 1.1; color: #9fef9f; overflow-wrap: anywhere; }
.se-disc-segs em { flex: 0 0 auto; font-style: normal; font-size: 10px; color: #5faf5f; }
.se-disc-seg { flex: 0 0 100%; height: 5px; background: #002200; border: 1px solid #0a5a0a; border-radius: 2px; overflow: hidden; }
.se-disc-seg > i { display: block; height: 100%; background: #00ff00; }
.se-disc-row { border: 1px solid #0a5a0a; border-left: 3px solid var(--rc, #0a5a0a); border-radius: 7px; background: #000c00; margin: 0 0 6px; overflow: hidden; }
.se-disc-row.locked { display: flex; align-items: center; gap: 9px; padding: 6px; border-style: dashed; border-left: 3px dashed #123a12; background: #000500; }
.se-disc-row.open { border-color: var(--rc); box-shadow: 0 0 8px rgba(0,255,0,.18); }
.se-disc button.se-disc-row-head { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px; }
.se-disc-map { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 15px); grid-template-rows: repeat(3, 15px); gap: 1px; padding: 2px; border: 1px solid var(--rc, #0a5a0a); border-radius: 4px; background: #000; }
.se-disc-row.locked .se-disc-map { border-color: #123a12; }
.se-disc-map > div { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.se-disc-map img { width: 15px; height: 15px; object-fit: contain; }
.se-disc-row-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.se-disc-row-txt b { color: #00ff00; font-size: 13px; font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.se-disc-row.locked .se-disc-row-txt b { color: #2f6f2f; }
.se-disc-row-txt small { color: #7dcf7d; font-size: 10px; }
.se-disc-row.locked .se-disc-row-txt small { color: #2f6f2f; }
.se-disc-row-txt .se-disc-bar { height: 3px; }
.se-disc-chev { flex: 0 0 auto; color: #00ff00; font-size: 18px; width: 16px; text-align: center; }
.se-disc-more { padding: 2px 9px 9px; border-top: 1px dotted #1d4d1d; }
.se-disc-desc { color: #b8ffb8; font-size: 12px; line-height: 1.35; margin: 6px 0 !important; }
.se-disc-sub { color: #66ffba; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin: 8px 0 4px; }
.se-disc-traits { display: flex; flex-wrap: wrap; gap: 5px; }
.se-disc-traits span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border: 1px solid #0a5a0a; border-radius: 5px; color: #9fef9f; font-size: 11px; background: #001200; }
.se-disc-traits img { width: 20px; height: 20px; object-fit: contain; }
.se-disc-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 5px; }
.se-disc .se-disc-art-ic { display: flex; align-items: center; justify-content: center; height: 44px; border: 2px solid var(--rc, #0a5a0a); border-radius: 6px; background: #000a00; }
.se-disc-art-ic.locked { border: 1px dashed #123a12; }
.se-disc-art-ic img { width: 34px; height: 34px; object-fit: contain; }
/* stopka + karta szczegółów */
.se-disc-footer { flex: 0 0 auto; padding: 4px 2px 8px; border-top: 1px solid #0a5a0a; background: #000; z-index: 5; }
.se-disc .close-button.se-disc-back, .se-disc .close-button.se-disc-pop-close {
  all: revert; position: static !important; inset: auto !important; transform: none !important; width: 100% !important; margin: 0 !important;
  box-sizing: border-box; min-height: 42px; font-size: 15px !important; background-color: #003300; color: #00ff00; border: 2px solid #00ff00;
  border-radius: 8px; padding: 8px 12px; font-family: inherit; cursor: pointer; box-shadow: 0 0 10px rgba(0,255,0,.3); touch-action: manipulation;
}
.se-disc-pop-back { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; padding: 14px; }
.se-disc-pop-wrap { width: min(100%, 420px); max-height: 92%; display: flex; flex-direction: column; gap: 8px; }
.se-disc-pop {
  overflow-y: auto; overscroll-behavior: contain; border: 2px solid var(--sc, #00ff00); border-radius: 10px; background: rgba(0,10,0,.98);
  padding: 12px; box-shadow: 0 0 16px color-mix(in srgb, var(--sc, #00ff00) 45%, transparent);
}
.se-disc-pop-top { display: flex; gap: 12px; align-items: flex-start; }
.se-disc-pop-top > div { flex: 1 1 auto; min-width: 0; }
img.se-disc-pop-img { flex: 0 0 auto; width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 0 8px var(--sc, #00ff00)); border: 1px solid #0a5a0a; border-radius: 8px; background: radial-gradient(circle, #002a00, #000 70%); padding: 4px; }
.se-disc-pop h3 { margin: 0 0 6px !important; color: #00ff00; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; text-align: left !important; }
.se-disc-tag { display: inline-block; margin: 0 5px 5px 0; padding: 2px 7px; border-radius: 10px; font-size: 11px; color: #000; background: var(--sc, #00ff00); }
.se-disc-tag.dim { background: transparent; color: #9fef9f; border: 1px solid #0a6a0a; }
.se-disc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 6px; }
.se-disc-kv.one { grid-template-columns: 1fr; }
.se-disc-kv small { display: block; color: #6fbf6f; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.se-disc-kv b { display: block; color: #00ff00; font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.se-disc-kv em { display: block; color: #6fbf6f; font-size: 10px; font-style: normal; }
/* znacznik nowości na przycisku menu */
.menu-button.se-menu-new { position: relative; overflow: visible; }
.menu-button.se-menu-new::after { content: ''; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #ffd84a; box-shadow: 0 0 6px #ffd84a; }

/* ===================== 0.19.00: Ładownia, Dziennik, Lore, Komputer, Opcje (wspólny układ jak Odkrycia) ===================== */
.screen-container.se-scr {
  display: flex !important; flex-direction: column !important; flex: 1 1 0 !important;
  min-height: 0 !important; max-height: 100% !important; overflow: hidden !important;
  padding: 8px 8px 0 !important; gap: 6px; position: relative;
}
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-scr) {
  min-height: 0 !important; flex: 1 1 0 !important; height: 0 !important; overflow: hidden !important;
  display: flex !important; flex-direction: column !important;
}
.game-container:not(:has(.board)) .middle-row > .column.game-area:has(.se-scr) > .screen-container.se-scr {
  flex: 1 1 0 !important; min-height: 0 !important; max-height: 100% !important; height: 100% !important;
}
.se-scr button { all: unset; box-sizing: border-box; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; font-family: inherit; }
.se-scr button:disabled { cursor: default; }
.se-scr-head { flex: 0 0 auto; }
.se-scr-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.se-scr-title h2 { margin: 2px 0 4px !important; font-size: 20px !important; letter-spacing: 2px; text-transform: uppercase; }
.se-scr-title span { color: #7dcf7d; font-size: 11px; }
.se-scr-list { flex: 1 1 0 !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 2px 12px !important; display: block !important; }
.se-scr-foot { flex: 0 0 auto; padding: 4px 2px 8px; border-top: 1px solid #0a5a0a; background: #000; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.se-scr .close-button.se-scr-close {
  all: revert; position: static !important; inset: auto !important; transform: none !important; width: 100% !important; margin: 0 !important;
  box-sizing: border-box; min-height: 42px; font-size: 15px !important; background-color: #003300; color: #00ff00; border: 2px solid #00ff00;
  border-radius: 8px; padding: 8px 12px; font-family: inherit; cursor: pointer; box-shadow: 0 0 10px rgba(0,255,0,.3); touch-action: manipulation;
}
.se-scr .se-scr-btn, .se-scr a.se-scr-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0; min-height: 40px; padding: 6px 10px; text-align: center;
  border: 2px solid #00ff00; border-radius: 8px; background: #003300; color: #00ff00; font-size: 14px; box-shadow: 0 0 8px rgba(0,255,0,.25); text-decoration: none; box-sizing: border-box;
}
.se-scr .se-scr-btn.sm { min-height: 34px; font-size: 13px; border-width: 1px; }
.se-scr .se-scr-btn.off, .se-scr .se-scr-btn:disabled { border-color: #2a5a2a; color: #4f8f4f; background: #000c00; box-shadow: none; }
.se-scr .se-scr-btn.warn { border-color: #ff4a4a; color: #ffb0b0; background: #2a0000; box-shadow: 0 0 8px rgba(255,0,0,.3); }
.se-scr .se-scr-btn.gold { border-color: #ffd84a; color: #ffd84a; background: #221a00; box-shadow: 0 0 8px rgba(255,216,74,.3); }
/* Ładownia */
.se-cg-cap { display: grid; gap: 2px; margin: 4px 0 2px; }
.se-cg-cap i { height: 8px; border: 1px solid #0a5a0a; border-radius: 2px; background: #001a00; }
.se-cg-cap i.f { background: #00ff00; border-color: #00ff00; box-shadow: 0 0 4px #00ff00; }
.se-cg-gold { color: #ffd84a !important; }
.se-cg-tool { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: #7dcf7d; margin: 2px 0 6px; }
.se-scr button.se-cg-sort { color: #00ff00; border: 1px solid #0a6a0a; border-radius: 6px; padding: 5px 8px; white-space: nowrap; }
.se-cg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.se-scr .se-cg-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; min-height: 104px; padding: 6px 3px 5px;
  border: 2px solid var(--rc, #0a5a0a); border-radius: 8px; background: radial-gradient(circle at 50% 38%, rgba(0,60,0,.55), #000a00 70%); text-align: center;
}
.se-cg-card img { width: 52px; height: 52px; object-fit: contain; }
.se-cg-card b { font-size: 10px; font-weight: 400; line-height: 1.1; color: #cfffcf; min-height: 22px; display: flex; align-items: center; overflow-wrap: anywhere; }
.se-cg-card small { font-size: 10px; color: #ffd84a; }
.se-scr .se-cg-card.sel { box-shadow: 0 0 0 2px #00ff00, 0 0 12px rgba(0,255,0,.6); }
.se-cg-card.free { border: 1px dashed #123a12; background: #000600; color: #2f6f2f; justify-content: center; font-size: 10px; }
.se-cg-q { position: absolute; top: 3px; right: 3px; font-size: 11px; color: #000; background: #00ff00; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.se-cg-q.inline { position: static; margin-left: 6px; vertical-align: 1px; }
.se-cg-panel { border: 2px solid var(--rc, #00ff00); border-radius: 10px; background: rgba(0,12,0,.98); padding: 8px; box-shadow: 0 0 12px rgba(0,255,0,.2); max-height: 46vh; overflow-y: auto; }
.se-cg-panel-top { display: flex; gap: 10px; align-items: center; }
.se-cg-panel-top img { width: 54px; height: 54px; object-fit: contain; border: 1px solid #0a5a0a; border-radius: 8px; background: #001200; padding: 3px; flex: none; }
.se-cg-panel-top > div { min-width: 0; flex: 1; }
.se-cg-panel h4 { margin: 0 0 3px; font-size: 14px; font-weight: 400; color: #00ff00; overflow-wrap: anywhere; }
.se-cg-panel .se-disc-tag { background: var(--rc); }
.se-cg-sub { font-size: 11px; color: #9fdf9f; line-height: 1.3; margin-top: 2px; }
.se-cg-acts { display: flex; gap: 6px; margin-top: 8px; }
.se-cg-ask { color: #ffd84a; font-size: 13px; text-align: center; margin: 4px 0; }
.se-cg-msg { margin-top: 6px; font-size: 11px; color: #b8ffb8; text-align: center; } .se-cg-msg.bad { color: #ffd84a; }
.se-cg-cmp { margin-top: 7px; border: 1px solid #0a4a0a; border-radius: 7px; padding: 5px 7px; background: #000a00; }
.se-cg-cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 4px; }
.se-cg-cmp-cols small { display: block; font-size: 9px; color: #6fbf6f; text-transform: uppercase; letter-spacing: .5px; }
.se-cg-cmp-cols b { display: block; font-size: 11px; font-weight: 400; color: #cfffcf; overflow-wrap: anywhere; }
.se-cg-cmp-row { display: grid; grid-template-columns: 1fr auto 18px; gap: 6px; font-size: 11px; color: #b8ffb8; padding: 2px 0; border-top: 1px dotted #1d4d1d; }
.se-cg-cmp-row b.up { color: #00ff00; } .se-cg-cmp-row b.dn { color: #ff7070; } .se-cg-cmp-row b { text-align: center; color: #9fdf9f; }
/* Dziennik */
.se-scr button.se-jr-fb { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px dashed #00aa00; border-radius: 8px; padding: 8px; background: #001200; margin: 2px 0 8px; }
.se-jr-fb .ic { font-size: 22px; } .se-jr-fb .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.se-jr-fb .tx b { font-size: 13px; font-weight: 400; color: #00ff00; } .se-jr-fb .tx small { font-size: 10px; color: #6fbf6f; }
.se-jr-fb .go { border: 1px solid #00ff00; border-radius: 6px; padding: 6px 10px; color: #00ff00; font-size: 12px; white-space: nowrap; }
.se-jr-write { border: 1px solid #00aa00; border-radius: 8px; padding: 8px; background: #000f00; margin: 2px 0 8px; }
.se-jr-write-h { display: flex; justify-content: space-between; align-items: center; color: #00ff00; font-size: 13px; }
.se-scr button.se-jr-hide { color: #7dcf7d; font-size: 12px; border: 1px solid #0a6a0a; border-radius: 6px; padding: 3px 8px; }
.se-jr-write p { font-size: 12px; color: #b8ffb8; margin: 6px 0 !important; }
.se-jr-write .journal-box { width: 100%; min-height: 110px; box-sizing: border-box; }
.se-jr-tl { position: relative; padding-left: 18px; }
.se-jr-tl:before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(#00ff00, #0a3a0a); }
.se-jr .news-entry.se-jr-node { position: relative; margin: 0 0 8px !important; padding: 7px 9px !important; border: 1px solid #0a5a0a; border-radius: 8px; background: #000c00; }
.se-jr .news-entry.se-jr-node.open { border-color: #00ff00; box-shadow: 0 0 8px rgba(0,255,0,.2); }
.se-jr .se-jr-node:before { content: ''; position: absolute; left: -17px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #000; border: 2px solid #0a7a0a; }
.se-jr .se-jr-node.open:before { border-color: #00ff00; box-shadow: 0 0 6px #00ff00; }
.se-scr button.se-jr-ent-h { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.se-jr-v { display: flex; align-items: center; gap: 6px; } .se-jr-v .se-disc-new { position: static; }
.se-jr .news-version { margin: 0 !important; font-size: 13px !important; color: #00ff00; }
.se-jr-chev { color: #00ff00; font-size: 16px; }
.se-jr .news-intro { margin: 3px 0 !important; font-size: 14px; color: #66ffba; }
.se-jr .news-list { margin: 4px 0 0 !important; padding-left: 16px !important; } .se-jr .news-list li { font-size: 12px; line-height: 1.35; color: #b8ffb8; margin: 2px 0; }
.se-jr .news-list[hidden], .se-jr .news-signature[hidden] { display: none !important; }
.se-jr .news-signature { text-align: right; font-style: italic; margin: 4px 0 0 !important; font-size: 12px; }
.se-jr-count { margin: 2px 0 0 !important; font-size: 11px; color: #6fbf6f; }
/* Lore */
.se-lo-ch { margin: 6px 0 10px; }
.se-lo-ch-h { display: flex; align-items: center; gap: 8px; color: #66ffba; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 8px 0 6px; }
.se-lo-ch-h .n { width: 22px; height: 22px; border: 1px solid #00ff00; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #00ff00; flex: none; }
.se-lo-ch-h .t { min-width: 0; overflow-wrap: anywhere; } .se-lo-ch-h em { font-style: normal; color: #5faf5f; font-size: 11px; flex: none; }
.se-scr .se-lo-e { display: flex; gap: 9px; align-items: center; width: 100%; border: 1px solid #0a5a0a; border-radius: 8px; background: #000c00; padding: 7px; margin: 0 0 6px; }
.se-lo-e img { width: 46px; height: 46px; object-fit: contain; flex: none; border: 1px solid #0a4a0a; border-radius: 6px; background: #001200; padding: 2px; box-sizing: border-box; }
.se-lo-e .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.se-lo-e .tx b { font-size: 13px; font-weight: 400; color: #00ff00; } .se-lo-e .tx small { font-size: 11px; color: #9fdf9f; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.se-lo-e .go { color: #00ff00; flex: none; }
.se-lo-e.locked { border-style: dashed; border-color: #123a12; background: #000500; } .se-lo-e.locked .tx b, .se-lo-e.locked .tx small, .se-lo-e.locked .go { color: #2f6f2f; }
.se-lo-reader { position: absolute; inset: 0; z-index: 20; background: #000; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.se-lo-ban { flex: none; height: 104px; border: 1px solid #0a5a0a; border-radius: 9px; background: #000 center/cover; position: relative; overflow: hidden; display: flex; align-items: flex-end; gap: 10px; padding: 8px; }
.se-lo-ban:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.92)); }
.se-lo-ban img { position: relative; z-index: 1; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 6px #00ff00); }
.se-lo-ban div { position: relative; z-index: 1; min-width: 0; } .se-lo-ban small { display: block; color: #9fef9f; font-size: 11px; } .se-lo-ban b { display: block; font-size: 17px; color: #00ff00; text-shadow: 0 0 6px #000; }
.se-lo-reader-body { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px; }
.se-lo-reader-body p { color: #cfffcf; font-size: 14px; line-height: 1.55; margin: 0 0 10px !important; }
.se-lo-reader-body p.first:first-letter { float: left; font-size: 36px; line-height: 1; padding: 2px 6px 0 0; color: #00ff00; text-shadow: 0 0 8px #00ff00; }
.se-lo-pg { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.se-lo-pg span { font-size: 12px; color: #7dcf7d; white-space: nowrap; }
.se-scr .se-lo-back { flex: none; }
/* Komputer */
.se-cp-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 2px 0 8px; }
.se-cp-tile { border: 1px solid #0a5a0a; border-radius: 8px; background: #000f00; padding: 7px 8px; min-width: 0; }
.se-cp-tile small { display: block; font-size: 10px; color: #6fbf6f; text-transform: uppercase; letter-spacing: 1px; }
.se-cp-tile b { display: block; font-size: 15px; font-weight: 400; margin: 2px 0 3px; color: #00ff00; overflow-wrap: anywhere; }
.se-scr button.se-cp-tx { display: flex; gap: 9px; align-items: center; width: 100%; border: 1px solid #00ff00; border-radius: 8px; background: #001200; padding: 8px; margin: 0 0 6px; box-shadow: 0 0 8px rgba(0,255,0,.2); }
.se-cp-tx { display: flex; gap: 9px; align-items: center; }
.se-cp-tx .ic { width: 38px; height: 38px; border: 1px solid #00aa00; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.se-cp-tx .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .se-cp-tx .tx b { font-size: 13px; font-weight: 400; color: #00ff00; } .se-cp-tx .tx small { font-size: 10px; color: #7dcf7d; }
.se-cp-tx .se-disc-new { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.se-cp-tx .go { color: #00ff00; }
.se-cp-tx.locked { border: 1px dashed #123a12; border-radius: 8px; background: #000500; padding: 8px; color: #2f6f2f; } .se-cp-tx.locked .ic { border-color: #123a12; } .se-cp-tx.locked .tx b, .se-cp-tx.locked .tx small { color: #2f6f2f; }
.se-cp-term { position: relative; border: 2px solid #00aa00; border-radius: 10px; background: #000a00; padding: 9px; font-size: 13px; line-height: 1.5; color: #9fff9f; box-shadow: inset 0 0 30px rgba(0,255,0,.12), 0 0 10px rgba(0,255,0,.2); overflow: hidden; }
.se-cp-term:after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); }
.se-cp-l { margin: 0 0 8px !important; white-space: normal; overflow-wrap: anywhere; } .se-cp-l .pr { color: #00ff00; }
.se-cp-l.hd { color: #00ff00; font-size: 11px; letter-spacing: 1px; border-bottom: 1px dashed #0a5a0a; padding-bottom: 6px; }
.se-cp-l.tx { color: #ffd84a; font-size: 12px; }
.se-cp-l.g { color: #7dffd0; font-style: italic; text-shadow: 2px 0 #003a2a, -1px 0 #3a0030; }
.se-cp-l.z { color: #4f8f4f; letter-spacing: 2px; } .se-cp-l.sig { text-align: right; font-style: italic; color: #cfffcf; }
.se-cp-l a { color: #ffd84a; text-decoration: underline; position: relative; z-index: 1; }
.se-cp-cur { display: inline-block; width: 8px; height: 13px; background: #00ff00; vertical-align: -2px; box-shadow: 0 0 6px #00ff00; animation: se-cp-blink 1s steps(1) infinite; }
@keyframes se-cp-blink { 50% { opacity: 0; } }
.se-cp-foot-acts { display: flex; gap: 6px; }
/* Opcje */
.se-op-sec { border: 1px solid #0a5a0a; border-radius: 9px; background: #000c00; padding: 4px 10px; margin: 0 0 8px; }
.se-op-sec > h4 { margin: 6px 0 2px !important; font-size: 11px; letter-spacing: 2px; color: #66ffba; font-weight: 400; text-transform: uppercase; text-align: left !important; }
.se-op-row { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px dotted #1d4d1d; width: 100%; box-sizing: border-box; }
.se-op-sec .se-op-row:last-child { border-bottom: 0; }
.se-op-row .lb { flex: 1; min-width: 0; font-size: 13px; color: #cfffcf; text-align: left; } .se-op-row .lb small { display: block; font-size: 10px; color: #6fbf6f; }
.se-op-row .v { color: #00ff00; font-size: 13px; white-space: nowrap; }
.se-scr button.se-op-sw { width: 48px; height: 28px; border-radius: 14px; background: #002200; border: 1px solid #0a6a0a; position: relative; flex: none; }
.se-scr button.se-op-sw:after { content: ''; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #2f6f2f; transition: left .15s; }
.se-scr button.se-op-sw.on { background: #004400; border-color: #00ff00; } .se-scr button.se-op-sw.on:after { left: 25px; background: #00ff00; box-shadow: 0 0 6px #00ff00; }
.se-op-sl { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; max-width: 60%; }
.se-op-sl span { width: 40px; text-align: right; font-size: 12px; color: #9fef9f; }
.se-op-sl input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 8px; border-radius: 4px; border: 1px solid #0a5a0a; margin: 0; padding: 0;
  background: linear-gradient(90deg, #007a00, #00ff00) 0 0 / var(--p, 50%) 100% no-repeat, #002200; }
.se-op-sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #000; border: 2px solid #00ff00; box-shadow: 0 0 6px #00ff00; }
.se-op-sl input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #000; border: 2px solid #00ff00; }
.se-op-sl.off { opacity: .45; }
.se-op-np { display: flex; align-items: center; gap: 8px; border: 1px solid #00ff00; border-radius: 8px; padding: 7px 8px; background: #001a00; margin: 6px 0; box-shadow: 0 0 8px rgba(0,255,0,.2); }
.se-op-np.off { opacity: .5; } .se-op-np > div { flex: 1; min-width: 0; } .se-op-np small { display: block; font-size: 10px; color: #7dcf7d; } .se-op-np b { display: block; font-size: 13px; font-weight: 400; color: #00ff00; overflow-wrap: anywhere; }
.se-scr .se-op-np button.k { width: 38px; height: 38px; border: 1px solid #00aa00; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #00ff00; flex: none; }
.se-op-tr { display: flex; align-items: center; gap: 6px; min-height: 40px; border-bottom: 1px dotted #1d4d1d; }
.se-scr .se-op-tr button.n { flex: 1; min-width: 0; font-size: 12px; color: #9fdf9f; padding: 8px 0; }
.se-op-tr.on button.n { color: #00ff00; }
.se-scr .se-op-tr button.ar { width: 34px; height: 30px; border: 1px solid #0a6a0a; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #00ff00; flex: none; }
.se-scr .se-op-tr button.ar:disabled { color: #2a5a2a; border-color: #123a12; }
.se-scr button.se-op-more { display: block; width: 100%; text-align: center; color: #7dcf7d; font-size: 12px; padding: 9px 0; }
.se-scr button.se-op-langrow { cursor: pointer; }
.se-op-lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px 0 8px; }
.se-scr .se-op-lang button { border: 1px solid #0a6a0a; border-radius: 6px; padding: 8px 2px; text-align: center; font-size: 12px; color: #9fdf9f; }
.se-scr .se-op-lang button.on { border-color: #00ff00; background: #003300; color: #00ff00; box-shadow: 0 0 6px rgba(0,255,0,.4); }
.se-op-note { font-size: 12px; color: #9fdf9f; margin: 4px 0 8px !important; }
.se-op-danger { border-color: #5a0a0a; background: #0c0000; } .se-op-danger > h4 { color: #ff8080 !important; }
.se-op-danger .warning-text { color: #ff9090; font-size: 12px; margin: 6px 0 !important; }
.se-op-danger .se-op-reset { margin: 4px 0 10px; }
.se-op-danger .reset-confirm { margin: 4px 0 10px; } .se-op-danger .reset-ask { color: #ffd84a; font-size: 13px; margin: 4px 0 6px !important; text-align: center; }
.se-op-danger .reset-actions { display: flex; gap: 8px; }
.se-op-ver { text-align: center; font-size: 11px; color: #4f8f4f; margin: 4px 0 8px !important; }
