:root {
  --bg: #250914;
  --bg-2: #310c1a;
  --panel: rgba(70, 14, 32, 0.7);
  --line: #743247;
  --line-soft: rgba(182, 95, 121, 0.25);
  --text: #f7dce5;
  --muted: #b98a9a;
  --accent: #ff587c;
  --accent-2: #ff7894;
  --correct: #79b958;
  --present: #d79b2e;
  --absent: #6e4050;
  --danger: #d05a6d;
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -10%, #57152c 0%, transparent 42%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 20;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.15) 0,
      rgba(255,255,255,0.15) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: soft-light;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(18px, env(safe-area-inset-top))
    16px
    max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.is-hidden {
  display: none !important;
}

/* BOOT */
.boot-screen {
  flex: 1;
  display: grid;
  place-items: center;
  animation: fadeIn 350ms ease both;
}

.boot-window {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(34, 6, 16, 0.78);
  box-shadow: 0 22px 70px var(--shadow), inset 0 0 40px rgba(255, 70, 112, 0.04);
  padding: 26px 20px 22px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.boot-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanner 2.4s linear infinite;
}

.boot-line {
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.boot-line.dim,
.tiny {
  color: var(--muted);
}

.accent {
  color: var(--accent-2);
}

.terminal-button,
.yes-button,
.reboot-button {
  border: 0;
  cursor: pointer;
}

.terminal-button {
  display: block;
  width: 100%;
  margin-top: 26px;
  padding: 14px 16px;
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  border-radius: 4px;
  transition: transform 120ms ease, background 120ms ease;
}

.terminal-button:active,
.yes-button:active,
.reboot-button:active,
.key:active {
  transform: scale(0.97);
}

.tiny {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
}

/* GAME */
.game-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 300ms ease both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0 13px;
}

.brand {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.subtitle {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
  letter-spacing: 0.16em;
}

.subtitle strong {
  color: var(--text);
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.mission {
  text-align: center;
  padding: 18px 0 13px;
}

.mission-kicker,
.result-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 800;
}

.mission h1 {
  margin: 7px 0 5px;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.2;
}

.status-text {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.board {
  width: min(100%, 342px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 4px 0 10px;
}

.tile {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(48, 10, 23, 0.62);
  color: var(--text);
  font-size: clamp(19px, 6.1vw, 29px);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 0 14px rgba(255,255,255,0.015);
  user-select: none;
  transform-style: preserve-3d;
}

.tile.filled {
  border-color: #a64a67;
  animation: pop 100ms ease;
}

.tile.reveal {
  animation: flip 520ms ease forwards;
}

.tile.correct {
  background: var(--correct);
  border-color: var(--correct);
  color: #10200d;
}

.tile.present {
  background: var(--present);
  border-color: var(--present);
  color: #2b1b04;
}

.tile.absent {
  background: var(--absent);
  border-color: var(--absent);
  color: #f3dae2;
}

.board.shake {
  animation: shake 360ms ease;
}

.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 9px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-box {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 1px;
}

.legend-box.correct { background: var(--correct); }
.legend-box.present { background: var(--present); }
.legend-box.absent { background: var(--absent); }

.keyboard {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.key-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.key {
  height: 42px;
  min-width: 0;
  flex: 1;
  max-width: 38px;
  padding: 0 3px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #4b1728;
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: transform 100ms ease, background 160ms ease;
}

.key.wide {
  max-width: 56px;
  flex: 1.45;
  font-size: 10px;
}

.key.correct {
  background: var(--correct);
  border-color: var(--correct);
  color: #12220d;
}

.key.present {
  background: var(--present);
  border-color: var(--present);
  color: #2b1b04;
}

.key.absent {
  background: #593443;
  border-color: #593443;
  color: #b9919f;
}

.toast {
  position: fixed;
  left: 50%;
  top: max(16px, env(safe-area-inset-top));
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  background: #f4dfe6;
  color: #35101d;
  border-radius: 3px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 900;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* RESULT */
.result-screen,
.accepted-screen {
  flex: 1;
  display: grid;
  place-items: center;
  animation: fadeIn 420ms ease both;
}

.result-card,
.accepted-card {
  width: 100%;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 88, 124, 0.12), transparent 38%),
    rgba(38, 7, 17, 0.76);
  border-radius: 8px;
  padding: 30px 20px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}

.result-card h2,
.accepted-card h2 {
  margin: 8px 0 3px;
  font-size: clamp(29px, 10vw, 44px);
  color: var(--accent-2);
  letter-spacing: 0.05em;
}

.result-lead {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.result-copy {
  margin: 26px auto 22px;
  max-width: 330px;
  line-height: 1.6;
  font-size: 15px;
}

.result-copy p {
  margin: 6px 0;
}

.yes-button {
  width: 100%;
  padding: 15px 16px;
  border-radius: 4px;
  background: var(--accent);
  color: #2b0712;
  font-weight: 900;
  box-shadow: 0 8px 30px rgba(255, 88, 124, 0.2);
}

.reboot-button {
  margin-top: 14px;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
}

.attempt-summary {
  min-height: 15px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.accepted-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #12220d;
  background: var(--correct);
  font-size: 31px;
  font-weight: 900;
  box-shadow: 0 0 38px rgba(121, 185, 88, 0.2);
}

.accepted-card > p:not(.result-kicker):not(.tiny) {
  color: var(--muted);
}

.accepted-card .big-line {
  color: var(--text) !important;
  font-size: 18px;
  font-weight: 900;
  margin: 4px 0 22px;
}

.code-box {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 12px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.12);
}

.code-box span {
  color: var(--muted);
  font-size: 10px;
}

.code-box strong {
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

/* DIALOG */
.help-dialog {
  width: min(calc(100% - 30px), 400px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2a0a16;
  color: var(--text);
  padding: 0;
  box-shadow: 0 25px 90px rgba(0,0,0,0.5);
}

.help-dialog::backdrop {
  background: rgba(10, 1, 5, 0.72);
  backdrop-filter: blur(4px);
}

.help-dialog form {
  padding: 24px 20px 20px;
  position: relative;
}

.help-dialog h2 {
  margin: 7px 0 12px;
  color: var(--accent-2);
}

.help-dialog p:not(.result-kicker) {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 23px;
  cursor: pointer;
}

.dialog-ok {
  margin-top: 18px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  50% { transform: scale(1.08); }
}

@keyframes flip {
  0% { transform: rotateX(0); }
  45% { transform: rotateX(90deg); }
  55% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}

@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes scanner {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (max-height: 720px) {
  .mission {
    padding: 10px 0 8px;
  }

  .mission h1 {
    font-size: 18px;
  }

  .board {
    width: min(100%, 300px);
    gap: 4px;
  }

  .legend {
    margin-bottom: 6px;
  }

  .key {
    height: 36px;
  }
}

@media (min-width: 700px) {
  .app-shell {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* TRYB AWARYJNY */
.emergency-card h2 {
  font-size: clamp(25px, 8vw, 38px);
}

.emergency-hint {
  margin: 18px 0 22px;
  padding: 15px 10px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--accent-2);
  font-size: clamp(20px, 7vw, 31px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  word-spacing: 0.15em;
}


/* ===== DALSZA CZĘŚĆ QUESTA ===== */
.easter-target { cursor: pointer; user-select: none; }
.easter-pulse { display: inline-block; animation: easterPulse .18s ease; }

.story-screen { flex: 1; display: grid; place-items: center; animation: fadeIn 420ms ease both; }
.story-card {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 27px 20px 23px;
  background: radial-gradient(circle at 50% 0%, rgba(255,88,124,.10), transparent 36%), rgba(38,7,17,.78);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
.story-card > h2 { margin: 8px 0 7px; font-size: clamp(22px, 7vw, 32px); color: var(--accent-2); line-height: 1.15; }
.story-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 8px 0 20px; }

.terminal-log { margin: 22px 0 15px; padding: 14px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.16); border-radius: 4px; }
.terminal-log p { margin: 6px 0; color: var(--muted); font-size: 11px; }
.terminal-log span { color: var(--correct); font-weight: 900; }
.progress-track, .metric-track { overflow: hidden; height: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.18); border-radius: 999px; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 90ms linear; }
.progress-label { text-align: right; color: var(--muted); font-size: 10px; margin: 6px 0 17px; }
.found-box { border: 1px dashed var(--accent); padding: 15px; margin: 12px 0 18px; display: flex; flex-direction: column; gap: 5px; text-align: center; background: rgba(255,88,124,.06); }
.found-box span { color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.found-box strong { color: var(--accent-2); font-size: 21px; }

.mission-history { display: flex; flex-direction: column; gap: 8px; margin: 21px 0 18px; }
.mission-history > div { display: grid; grid-template-columns: 22px 1fr auto; gap: 7px; align-items: center; padding: 11px 10px; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(0,0,0,.10); }
.mission-history span:nth-child(2) { font-size: 12px; font-weight: 800; }
.mission-history small { color: var(--muted); font-size: 9px; text-align: right; }
.history-ok { color: var(--correct); font-weight: 900; }
.history-pending { border-color: var(--accent) !important; }
.history-pending > span:first-child { color: var(--accent); font-weight: 900; }

.metric-list { display: flex; flex-direction: column; gap: 18px; margin: 22px 0; }
.metric-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 7px; font-size: 11px; }
.metric-row span { color: var(--muted); }
.metric-row strong { color: var(--text); font-size: 12px; }
.metric-track i { display: block; width: 0; height: 100%; background: var(--accent); transition: width 700ms ease; }
.probability-box { margin: 20px 0 14px; padding: 16px 12px; border: 1px dashed var(--line); text-align: center; background: rgba(0,0,0,.12); }
.probability-box span, .probability-box small { display: block; color: var(--muted); font-size: 10px; }
.probability-box strong { display: block; margin: 6px 0; color: var(--accent-2); font-size: 28px; }
.analysis-error { border: 1px solid var(--danger); padding: 12px; margin: 13px 0 17px; text-align: center; background: rgba(208,90,109,.07); }
.analysis-error strong { display: block; color: #ff8da1; font-size: 12px; margin-bottom: 5px; }
.analysis-error span { color: var(--muted); font-size: 10px; line-height: 1.4; }

.choice-grid { display: grid; gap: 10px; margin: 20px 0 13px; }
.choice-card { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; text-align: left; padding: 13px 12px; border: 1px solid var(--line); border-radius: 5px; background: rgba(65,15,31,.55); color: var(--text); cursor: pointer; transition: transform 120ms ease, border-color 120ms ease, background 120ms ease; }
.choice-card:active { transform: scale(.985); }
.choice-card > span { grid-row: 1 / 3; color: var(--accent); font-size: 10px; padding-top: 2px; }
.choice-card strong { font-size: 12px; }
.choice-card small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.choice-card.selected { border-color: var(--accent); background: rgba(255,88,124,.11); box-shadow: inset 0 0 25px rgba(255,88,124,.04); }
.choice-confirmation { min-height: 17px; text-align: center; color: var(--muted); font-size: 10px; }

.recommendation-main { margin: 22px 0 15px; padding: 18px 12px; border: 1px dashed var(--accent); text-align: center; background: rgba(255,88,124,.06); }
.recommendation-main span, .recommendation-main small { display: block; color: var(--muted); font-size: 10px; }
.recommendation-main strong { display: block; color: var(--accent-2); font-size: 29px; margin: 5px 0 7px; }
.details-panel { margin: 12px 0 16px; border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; }
.details-panel > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 11px; border-bottom: 1px solid var(--line-soft); font-size: 10px; }
.details-panel > div:last-child { border-bottom: 0; }
.details-panel span { color: var(--muted); }
.details-panel strong { color: var(--text); text-align: right; }
.secondary-button { width: 100%; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }

.secret-message { margin: 17px 0 5px; padding: 13px; border: 1px dashed var(--accent); color: var(--accent-2); font-size: 12px; text-align: center; background: rgba(255,88,124,.06); }

@keyframes easterPulse { 50% { transform: scale(1.12) rotate(-1deg); color: var(--accent); } }

@media (max-height: 760px) {
  .story-card { padding-top: 20px; padding-bottom: 18px; }
  .story-card > h2 { font-size: 22px; }
  .metric-list { gap: 12px; margin: 14px 0; }
  .choice-grid { margin-top: 13px; }
}


/* ===== FINAŁ: WYBÓR, KALENDARZ I LUŹNE „NIE” ===== */
.decline-button {
  width: 100%;
  padding: 13px 14px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease;
}
.decline-button:active { transform: scale(.985); }
.decline-button:hover { border-color: #9b5a70; color: var(--text); }
.no-pressure-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 9px; line-height: 1.45; }

.calendar-card { align-self: start; margin-top: 8px; }
.calendar-shell { margin: 18px 0 13px; border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: rgba(0,0,0,.12); }
.calendar-header { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 7px; margin-bottom: 10px; }
.calendar-header strong { text-align: center; color: var(--text); font-size: 13px; text-transform: capitalize; }
.calendar-nav { height: 34px; border: 1px solid var(--line); border-radius: 4px; background: rgba(70,14,32,.65); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.calendar-nav:disabled { opacity: .25; cursor: default; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-weekdays { margin-bottom: 5px; }
.calendar-weekdays span { text-align: center; color: var(--muted); font-size: 9px; padding: 4px 0; }
.calendar-day { aspect-ratio: 1 / 1; min-width: 0; border: 1px solid transparent; border-radius: 4px; background: rgba(75,23,40,.60); color: var(--text); font-size: 11px; cursor: pointer; display: grid; place-items: center; position: relative; }
.calendar-day:hover { border-color: var(--line); }
.calendar-day.other-month { opacity: .20; pointer-events: none; }
.calendar-day.disabled { opacity: .18; pointer-events: none; }
.calendar-day.today { border-color: var(--accent); }
.calendar-day.today::after { content: ""; position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.calendar-day.selected { background: var(--accent); color: #2b0712; border-color: var(--accent); font-weight: 900; box-shadow: 0 0 22px rgba(255,88,124,.16); }
.calendar-day.weekend:not(.selected) { background: rgba(91,27,48,.78); }
.selected-date-text { min-height: 18px; margin: 11px 0 14px; text-align: center; color: var(--muted); font-size: 10px; }
.selected-date-text strong { color: var(--accent-2); }
.calendar-later { margin-top: 9px; }
.final-details { margin-top: 15px; margin-bottom: 18px; }
.declined-card { border-color: rgba(185,138,154,.42); }
.declined-card h2 { color: var(--text); }
.declined-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; color: #2b0712; background: var(--muted); font-size: 31px; font-weight: 900; opacity: .9; }

@media (max-height: 760px) {
  .calendar-shell { margin-top: 10px; padding: 8px; }
  .calendar-day { font-size: 10px; }
}


/* ===== V6: LOKALIZACJA + SUBTELNE SMAKI ===== */
.preference-hint {
  margin: 14px 0 2px;
  padding: 11px 10px;
  border: 1px dashed var(--line-soft);
  border-radius: 5px;
  background: rgba(255,255,255,.015);
  text-align: center;
}
.preference-hint > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 8px;
}
.preference-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.preference-chips i {
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(75,23,40,.48);
  color: var(--text);
  font-style: normal;
  font-size: 9px;
}
.preference-hint small {
  display: block;
  color: var(--muted);
  opacity: .75;
  font-size: 8px;
  margin-top: 8px;
}
.location-grid .choice-card small {
  line-height: 1.45;
}


.game-memory-note {
  margin-top: 8px;
  font-size: 9px;
  opacity: .78;
}


/* ===== V7.3: ŁADOWANIE INSPIROWANE THE SIMS 3 ===== */
.loading-screen {
  flex: 1;
  display: grid;
  place-items: center;
  animation: fadeIn 280ms ease both;
}

.loading-wrap {
  width: 100%;
  text-align: center;
  padding: 28px 18px;
}

.loading-wrap h2 {
  margin: 18px 0 8px;
  font-size: clamp(24px, 7vw, 34px);
  color: var(--text);
}

.loading-tip {
  min-height: 36px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 320px;
}

.plumbob-wrap {
  width: 86px;
  height: 132px;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 600px;
}

.plumbob {
  position: relative;
  width: 52px;
  height: 94px;
  animation: plumbobFloat 1.8s ease-in-out infinite, plumbobTurn 4s linear infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 10px rgba(132, 255, 116, .4));
}

.plumbob-top,
.plumbob-bottom {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
}

.plumbob-top {
  top: 0;
  border-bottom: 47px solid #78d85d;
}

.plumbob-bottom {
  bottom: 0;
  border-top: 47px solid #3ba84a;
}

.plumbob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46px;
  transform: translateX(-50%);
  width: 34px;
  height: 1px;
  background: rgba(255,255,255,.35);
}

.plumbob-glow {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113,255,111,.23), transparent 70%);
  filter: blur(4px);
  animation: plumbobPulse 1.7s ease-in-out infinite;
}

.sims-progress {
  width: min(100%, 330px);
  height: 9px;
  margin: 0 auto;
  border: 1px solid rgba(160, 255, 141, .35);
  background: rgba(18, 40, 17, .45);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0,0,0,.25);
}

.sims-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f9f46, #80df62);
  box-shadow: 0 0 15px rgba(115, 255, 99, .35);
  transition: width 160ms ease;
}

.loading-percent {
  margin: 8px 0 0;
  color: #8bdd72;
  font-size: 11px;
  font-weight: 800;
}

.loading-footnote {
  margin: 24px 0 0;
  color: var(--muted);
  opacity: .65;
  font-size: 9px;
}

.loading-screen.finishing .plumbob {
  animation: plumbobFinish 520ms ease forwards;
}

@keyframes plumbobFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-9px) rotateY(10deg); }
}

@keyframes plumbobTurn {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes plumbobPulse {
  0%, 100% { transform: scale(.85); opacity: .65; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes plumbobFinish {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-12px) scale(1.14); opacity: 1; }
  100% { transform: translateY(-28px) scale(.72); opacity: 0; }
}


/* v7.3.1 — pewniejsza widoczność ekranu ładowania */
.loading-screen:not(.is-hidden) {
  display: grid !important;
  min-height: calc(100dvh - 40px);
}
.sims-progress {
  position: relative;
  min-height: 11px;
}
.sims-progress-bar {
  min-height: 100%;
}
