@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&display=swap");
:root {
  --bg: #111310;
  --panel: #1a1d18;
  --border: #30352a;
  --muted: #878e7e;
  --lime: #c5f66b;
  --ink: #eff2e9;
  --orange: #ffaf71;
  --app-safe-top: calc(
    max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) +
      var(--tg-content-safe-area-inset-top, 0px)
  );
  --app-safe-bottom: calc(
    max(
        env(safe-area-inset-bottom, 0px),
        var(--tg-safe-area-inset-bottom, 0px)
      ) +
      var(--tg-content-safe-area-inset-bottom, 0px)
  );
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-top: var(--app-safe-top);
  padding-left: max(
    env(safe-area-inset-left, 0px),
    var(--tg-safe-area-inset-left, 0px),
    var(--tg-content-safe-area-inset-left, 0px)
  );
  padding-right: max(
    env(safe-area-inset-right, 0px),
    var(--tg-safe-area-inset-right, 0px),
    var(--tg-content-safe-area-inset-right, 0px)
  );
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 "Golos Text",
    sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.app {
  max-width: 1600px;
  margin: auto;
  display: flex;
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100dvh);
}
.sidebar {
  width: 252px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-icon {
  background: var(--lime);
  color: #192311;
  width: 34px;
  height: 38px;
  border-radius: 9px;
  text-align: center;
  font-size: 30px;
}
.brand-light {
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 6px;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-top: 4px;
}
.workspace {
  display: flex;
  gap: 11px;
  margin: 42px 0 29px;
  padding: 13px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 5px;
}
.office-icon {
  font-size: 24px;
  color: var(--muted);
}
.nav-label,
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
}
nav {
  margin-top: 15px;
}
.nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  border-radius: 7px;
  padding: 13px 11px;
  color: var(--muted);
  margin-bottom: 5px;
  text-align: left;
}
.nav.active {
  background: #c5f61414;
  color: var(--lime);
}
.nav b {
  font-size: 8px;
  margin-left: auto;
}
.nav em {
  margin-left: auto;
  background: #303827;
  color: var(--lime);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
}
.sidebar-bottom {
  margin-top: auto;
}
.quote {
  border-left: 2px solid #586b3d;
  padding-left: 12px;
  font-size: 13px;
  color: #b9c0ad;
  margin-bottom: 28px;
}
.quote small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 10px;
}
.profile {
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  padding: 20px 0 0;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
}
.profile strong {
  font-size: 11px;
}
.profile small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.avatar {
  background: #323a2b;
  color: var(--lime);
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
main {
  padding: 0 38px;
  min-width: 0;
  flex: 1;
}
header {
  height: 77px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.breadcrumbs {
  color: var(--muted);
}
.breadcrumbs span {
  margin: 0 12px;
  color: #4a5143;
}
.breadcrumbs b {
  color: #c8cebf;
  font-weight: 400;
}
.version {
  font: 9px monospace;
  letter-spacing: 0.8px;
  color: #b7c4a7;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 32px 0 25px;
}
.page-heading .eyebrow {
  color: var(--lime);
}
h1 {
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -1.4px;
  margin: 8px 0;
}
h1 em {
  font-style: normal;
  color: var(--lime);
}
.page-heading p {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0;
}
.daily-button {
  border: 1px solid #475536;
  background: #232b1c;
  border-radius: 8px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lime);
  font-size: 12px;
  white-space: nowrap;
}
.daily-button small {
  display: block;
  color: #96a389;
  font-size: 8px;
  margin-top: 3px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 23px;
}
.stats article {
  padding: 17px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.stats article > span {
  font-size: 10px;
  color: #a6af9b;
}
.stats strong {
  font-size: 30px;
  display: block;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 9px 0 4px;
}
.stats strong small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.stats article > small {
  font-size: 8px;
  color: var(--muted);
}
.lime {
  color: var(--lime) !important;
}
.orange {
  color: var(--orange);
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 20px;
}
.arena {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 55%, #313d2333, transparent 65%), #191c17;
  border: 1px solid #3b4431;
  border-radius: 12px;
  padding: 20px 24px;
  overflow: hidden;
}
.arena-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  font-size: 8px;
  color: var(--lime);
  border: 1px solid #3d4d2c;
  border-radius: 4px;
  padding: 4px 7px;
}
.muted {
  color: var(--muted);
}
.mono {
  font: 8px monospace;
  letter-spacing: 0.5px;
}
.career {
  text-align: center;
  margin-top: 22px;
}
.career > span {
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 1px;
}
.career h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 8px 0;
}
.career p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.scene {
  position: relative;
  height: 255px;
  display: grid;
  place-items: center;
}
.mascot {
  position: relative;
  z-index: 2;
  height: 260px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px #0005);
  pointer-events: none;
  user-select: none;
  transition: transform 0.1s;
}
.scene.bump .mascot {
  transform: translateY(-5px) rotate(-2deg);
}
.orbit {
  position: absolute;
  border: 1px dashed #859e4936;
  border-radius: 50%;
  width: 290px;
  height: 190px;
  transform: rotate(-17deg);
}
.orbit-two {
  width: 340px;
  height: 220px;
  transform: rotate(18deg);
}
.mascot-glow {
  position: absolute;
  bottom: 20px;
  width: 200px;
  height: 50px;
  border-radius: 50%;
  background: #b2ed3930;
  filter: blur(24px);
}
.scene-note {
  position: absolute;
  font: 10px monospace;
  color: #9fae8a;
  z-index: 3;
  transform: rotate(-9deg);
  left: 0;
  top: 65px;
  border: 1px solid #475535;
  background: #272e20;
  padding: 8px;
  border-radius: 5px;
}
.note-two {
  left: auto;
  right: 0;
  top: 120px;
  transform: rotate(7deg);
  font-size: 9px;
}
.note-two b {
  font-weight: 400;
  color: #e5aa7d;
}
.ai-bubble {
  position: absolute;
  bottom: 4px;
  z-index: 4;
  font-size: 9px;
  color: #cad9b5;
  background: #282f21;
  border: 1px solid #4b5839;
  padding: 5px 11px;
  border-radius: 20px;
}
.tap-button {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  background: var(--lime);
  color: #202b12;
  border: 0;
  border-radius: 8px;
  padding: 17px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 0 #7b9d40;
  transition: transform 0.08s;
  touch-action: manipulation;
  user-select: none;
}
.tap-button span {
  font-size: 10px;
  font-weight: 500;
  border-left: 1px solid #7c9c4a;
  padding-left: 20px;
}
.tap-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #7b9d40;
}
.energy {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin: 18px 0 7px;
}
.energy b {
  color: #d8dfcf;
  margin-left: 7px;
}
.energy > span + span {
  font-size: 8px;
}
.energy-track,
.progress,
.health-track {
  height: 4px;
  border-radius: 4px;
  background: #343b2d;
  overflow: hidden;
}
.energy-track span,
.progress span,
.health-track span {
  height: 100%;
  display: block;
  background: var(--lime);
  transition: width 0.3s;
}
.level-progress {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin: 18px 0 7px;
}
.level-progress b {
  color: #c6d4b7;
  font-weight: 400;
}
.arena > .progress {
  height: 3px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 19px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title h3 {
  font-size: 13px;
  margin: 0;
}
.live-dot {
  color: var(--orange);
  font: 8px monospace;
}
.live-dot:before {
  content: "●";
  margin-right: 5px;
}
.health {
  margin: 19px 0 9px;
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: var(--muted);
}
.health b {
  font-weight: 500;
  font-size: 12px;
  color: var(--orange);
  margin-top: 5px;
}
.health-track {
  height: 5px;
  margin-bottom: 16px;
}
.health-track span {
  background: var(--orange);
}
.feed-item {
  display: flex;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #2b3026;
  font-size: 10px;
  animation: appear 0.3s;
}
.feed-item > span {
  font-size: 15px;
}
.feed-item p {
  margin: 0;
  color: #bfc7b5;
}
.feed-item small {
  font-size: 8px;
  color: #717b66;
}
.feed-footer {
  font-size: 8px;
  color: var(--muted);
  margin-top: 12px;
}
.mission-panel {
  margin-top: 16px;
}
.mission-panel .eyebrow {
  color: var(--lime);
  font-size: 8px;
}
.mission-panel h3 {
  margin: 10px 0 7px;
  font-size: 17px;
}
.mission-panel p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 15px;
}
.mission-count {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 8px;
}
.mission-count b {
  color: var(--lime);
  font-weight: 400;
}
.outline-button {
  width: 100%;
  border: 1px solid #475336;
  background: none;
  border-radius: 5px;
  color: #cadab5;
  font-size: 10px;
  padding: 10px;
  margin-top: 15px;
}
.disclaimer {
  text-align: center;
  font-size: 9px;
  color: #6b7462;
  margin-top: 16px;
  line-height: 1.8;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 26px 0 17px;
}
.section-heading h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 5px 0;
}
.section-heading .eyebrow {
  font-size: 8px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--lime);
  font-size: 10px;
}
.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.upgrade {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 17px;
}
.upgrade-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upgrade-icon {
  width: 32px;
  height: 32px;
  background: #2d3823;
  border: 1px solid #465a30;
  color: var(--lime);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.upgrade-level {
  color: var(--muted);
  font: 9px monospace;
}
.upgrade h3 {
  font-size: 12px;
  margin: 13px 0 6px;
}
.upgrade p {
  font-size: 10px;
  color: var(--muted);
  min-height: 30px;
  margin: 0;
}
.upgrade-benefit {
  font-size: 9px;
  color: #b9d498;
  display: block;
  margin: 12px 0;
}
.buy-button {
  width: 100%;
  border: 1px solid #4b5d34;
  background: #c5f61012;
  border-radius: 5px;
  padding: 9px;
  color: var(--lime);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.buy-button:disabled {
  color: #79836e;
  border-color: #343c2d;
  background: #242a20;
  cursor: not-allowed;
}
.full-grid {
  grid-template-columns: repeat(3, 1fr);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding: 20px 0;
  font-size: 9px;
  color: #a2ad96;
}
footer .muted {
  margin-left: 5px;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 25px;
}
.task-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
}
.task-card > span {
  font-size: 27px;
}
.task-card h3 {
  font-size: 17px;
}
.task-card p {
  color: var(--muted);
  font-size: 12px;
}
.task-card.locked {
  opacity: 0.6;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  background: var(--lime);
  color: #233014;
  padding: 14px 23px;
  border-radius: 9px;
  box-shadow: 0 10px 50px #0009;
  transition: 0.25s;
  max-width: 90vw;
  font-size: 12px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.floater {
  position: absolute;
  z-index: 8;
  color: var(--lime);
  font-size: 26px;
  font-weight: 800;
  pointer-events: none;
  animation: float 1s forwards;
  text-shadow: 0 2px 8px #000;
}
@keyframes float {
  to {
    transform: translateY(-100px) rotate(10deg);
    opacity: 0;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  main {
    padding: 0 50px;
  }
  .scene {
    height: 290px;
  }
  .mascot {
    height: 290px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
    padding: 28px 15px;
  }
  main {
    padding: 0 22px;
  }
  .brand {
    font-size: 17px;
  }
  .daily-button small {
    display: none;
  }
  .daily-button {
    font-size: 10px;
  }
  .stats article {
    padding: 13px;
  }
  .stats article > small {
    font-size: 7px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
  }
  .arena {
    padding: 17px;
  }
  .career h2 {
    font-size: 22px;
  }
  .energy > span + span {
    display: none;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .scene-note {
    font-size: 8px;
  }
  .scene {
    height: 240px;
  }
  .mascot {
    height: 240px;
  }
  .tap-button {
    gap: 12px;
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 68px;
    padding: 0;
    background: #191d16f5;
    z-index: 10;
    border-top: 1px solid var(--border);
    border-right: 0;
  }
  .sidebar .brand,
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    margin: 0;
    height: 100%;
    justify-content: space-around;
  }
  .nav {
    margin: 0;
    flex-direction: column;
    gap: 3px;
    border-radius: 0;
    justify-content: center;
    width: 25%;
    padding: 7px 3px;
    font-size: 17px;
  }
  .nav span {
    font-size: 9px;
  }
  .nav b,
  .nav em {
    display: none;
  }
  main {
    padding: 0 17px;
    width: 100%;
    padding-bottom: 78px;
  }
  header {
    height: 56px;
  }
  .version {
    font-size: 7px;
  }
  .page-heading {
    margin: 24px 0 20px;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -1px;
    max-width: 330px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 300px;
  }
  .daily-button {
    padding: 8px 10px;
    font-size: 9px;
  }
  .daily-button span {
    display: block;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
  }
  .stats article {
    padding: 12px 14px;
  }
  .stats strong {
    font-size: 26px;
    margin: 5px 0 0;
  }
  .stats article > small {
    font-size: 8px;
  }
  .play-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .arena {
    padding: 17px 20px;
  }
  .career h2 {
    font-size: 26px;
  }
  .career p {
    max-width: 300px;
    margin: auto;
  }
  .scene {
    height: 270px;
  }
  .mascot {
    height: 280px;
  }
  .scene-note {
    font-size: 9px;
  }
  .note-two {
    top: 140px;
  }
  .tap-button {
    font-size: 14px;
    padding: 18px;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .panel {
    padding: 14px;
  }
  .mission-panel {
    margin: 0;
  }
  .disclaimer {
    grid-column: 1/-1;
    margin-top: 0;
  }
  .feed-item {
    padding: 9px 0;
  }
  .feed-item:nth-child(3) {
    display: none;
  }
  .health {
    margin: 12px 0 8px;
  }
  .panel-title h3 {
    font-size: 11px;
  }
  .mission-panel h3 {
    font-size: 16px;
  }
  .upgrade-grid,
  .full-grid {
    grid-template-columns: 1fr;
  }
  .upgrade {
    display: grid;
    grid-template-columns: 42px 1fr 105px;
    gap: 0 10px;
    padding: 14px;
  }
  .upgrade-top {
    grid-row: 1/5;
    flex-direction: column;
    gap: 7px;
    justify-content: start;
  }
  .upgrade h3 {
    margin: 0 0 5px;
  }
  .upgrade p {
    grid-column: 2;
    font-size: 9px;
    min-height: 0;
  }
  .upgrade-benefit {
    grid-column: 2;
    margin: 6px 0 0;
    font-size: 9px;
  }
  .buy-button {
    grid-column: 3;
    grid-row: 1/4;
    align-self: center;
    gap: 4px;
    justify-content: center;
    font-size: 10px;
    padding: 12px 5px;
  }
  .section-heading h2 {
    font-size: 18px;
    max-width: 230px;
  }
  .section-heading .text-button {
    max-width: 105px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  footer {
    font-size: 8px;
    flex-direction: column;
    gap: 5px;
  }
  .mono {
    font-size: 7px;
  }
  .orbit-two {
    width: 300px;
  }
  .orbit-one {
    width: 260px;
  }
  .view {
    scroll-margin-top: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Game systems and operator tools */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-button {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 11px;
}
.strategy-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #1b2117;
  border: 1px solid #34402a;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 12px 16px;
  font-size: 10px;
  color: var(--muted);
}
.strategy-strip > div {
  width: 155px;
  flex-shrink: 0;
}
.strategy-strip b {
  color: var(--orange);
  margin-left: 10px;
}
.strategy-strip .progress {
  margin-top: 5px;
}
.strategy-strip .progress span {
  background: var(--orange);
}
.strategy-strip > .text-button {
  margin-left: auto;
}
.incident-event {
  border: 1px solid #876039;
  background: #2b2419;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.incident-event .eyebrow {
  color: var(--orange);
}
.incident-event h3 {
  margin: 8px 0;
  font-size: 21px;
}
.incident-event p {
  color: #c2b59f;
  font-size: 12px;
}
.incident-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.incident-choice {
  border: 1px solid #6b5a3f;
  background: #1e2119;
  border-radius: 7px;
  padding: 13px;
  text-align: left;
  font-size: 11px;
}
.incident-choice small {
  display: block;
  margin-top: 6px;
  color: var(--lime);
  font-size: 10px;
}
.view-intro {
  font-size: 12px;
  color: var(--muted);
}
.skill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.filter-button {
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 20px;
  font-size: 11px;
  color: var(--muted);
}
.filter-button.active {
  border-color: #768e4e;
  background: #29371e;
  color: var(--lime);
}
.build-conflicts:empty {
  display: none;
}
.build-conflicts {
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}
.conflict-item {
  font-size: 11px;
  border-left: 3px solid var(--orange);
  padding: 10px 14px;
  background: #352b1b80;
  color: #d7c9b4;
}
.conflict-item b {
  display: block;
  color: var(--orange);
  margin-bottom: 3px;
}
.skill-card {
  display: flex;
  flex-direction: column;
  min-height: 275px;
}
.skill-card h3 {
  font-size: 14px;
}
.skill-card p {
  min-height: 34px;
}
.skill-downside {
  color: #c4a68a;
  font-size: 10px;
  margin-bottom: 12px;
  min-height: 32px;
}
.skill-card .buy-button {
  margin-top: auto;
}
.skill-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.skill-actions .buy-button {
  flex: 1;
}
.skill-switch {
  border: 1px solid #536941;
  background: #2c3c22;
  color: var(--lime);
  border-radius: 5px;
  font-size: 9px;
  padding: 7px;
}
.skill-switch.off {
  color: var(--muted);
  background: #252923;
  border-color: #3c4335;
}
.skill-card.disabled-skill {
  border-style: dashed;
}
.skill-card.locked-skill {
  opacity: 0.65;
}
.skill-card .upgrade-benefit {
  min-height: 27px;
}
.task-card.secret-found {
  border-color: #607c3a;
}
.task-card .secret-reward {
  font-size: 12px;
  color: var(--lime);
}
.company-card {
  background:
    radial-gradient(ellipse at top right, #536f2426, transparent), var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 24px 0;
}
.company-card h2 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -1px;
}
.company-card > p {
  font-size: 13px;
  color: var(--muted);
  max-width: 750px;
}
.company-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.company-stats small {
  color: var(--muted);
}
.company-stats strong {
  display: block;
  font-size: 32px;
  color: var(--lime);
}
.company-card .tap-button {
  max-width: 480px;
  margin-top: 20px;
}
.tap-button:disabled {
  background: #353e2c;
  box-shadow: none;
  color: #8b977d;
  cursor: not-allowed;
}
.history-panel {
  margin-bottom: 20px;
}
.history-row {
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 20px;
}
.history-row small {
  color: var(--muted);
  min-width: 90px;
}
.feedback-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.feedback-layout h2 {
  font-size: 23px;
  line-height: 1.3;
}
.feedback-layout p {
  font-size: 12px;
}
.feedback-layout label {
  display: block;
  font-size: 12px;
  margin: 20px 0 8px;
}
select,
textarea,
input:not([type="checkbox"]) {
  border: 1px solid #47533a;
  background: #10150e;
  color: var(--ink);
  border-radius: 6px;
  padding: 12px;
  width: 100%;
  font: inherit;
}
textarea {
  resize: vertical;
  font-size: 12px;
  line-height: 1.6;
}
textarea:focus,
select:focus,
input:focus {
  outline: 1px solid var(--lime);
  outline-offset: 2px;
}
.form-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  margin: 8px 0 22px;
}
.feedback-layout .tap-button {
  font-size: 12px;
}
.feedback-entry {
  border-top: 1px solid var(--border);
  padding: 15px 0;
  overflow-wrap: anywhere;
}
.feedback-entry small {
  color: var(--muted);
  font-size: 9px;
}
.feedback-entry .feedback-status {
  color: var(--lime);
  font-size: 10px;
}
.feedback-entry p {
  white-space: pre-wrap;
}
.feedback-entry blockquote {
  border-left: 2px solid var(--lime);
  margin: 10px 0;
  padding-left: 12px;
  font-size: 12px;
}
.pending-feedback {
  color: var(--orange) !important;
}
dialog {
  background: #1b2017;
  color: var(--ink);
  border: 1px solid #50603e;
  border-radius: 13px;
  width: min(530px, calc(100% - 28px));
  max-height: 85vh;
  max-height: min(
    85dvh,
    calc(
      var(--tg-viewport-stable-height, 100dvh) - var(--app-safe-top) -
        var(--app-safe-bottom) - 24px
    )
  );
  padding: 24px;
  box-shadow: 0 30px 120px #000b;
}
dialog::backdrop {
  background: #090d08b8;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 22px;
}
.close-button {
  background: none;
  border: 0;
  color: #b9c7aa;
  font-size: 28px;
  padding: 0 6px;
}
.menu-links {
  display: grid;
  margin: 20px 0;
}
.menu-links button {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  text-align: left;
  font-size: 12px;
  color: #c9d7b9;
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  font-size: 12px;
}
.setting input {
  accent-color: var(--lime);
  width: 18px;
  height: 18px;
}
.help-copy {
  font-size: 12px;
  color: #b9c6ab;
  line-height: 1.7;
}
.help-copy input {
  margin-top: 7px;
}
.reduced-motion * {
  animation: none !important;
  transition: none !important;
}
.task-section-title {
  grid-column: 1/-1;
  margin: 16px 0 0;
  font-size: 20px;
}
.offline-banner {
  color: var(--orange);
}
.skill-filters button:focus-visible {
  outline: 2px solid var(--lime);
}
@media (max-width: 1100px) {
  .full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .strategy-strip {
    flex-wrap: wrap;
    gap: 12px;
  }
  .strategy-strip > span {
    font-size: 9px;
  }
  .strategy-strip > .text-button {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .nav {
    width: 16.66%;
    font-size: 16px;
  }
  .nav span {
    font-size: 8px;
  }
  .strategy-strip {
    padding: 10px 12px;
    gap: 8px;
  }
  .strategy-strip > div {
    width: 110px;
  }
  .strategy-strip > span {
    flex: 1;
    font-size: 8px;
  }
  .strategy-strip > .text-button {
    margin-left: 0;
    font-size: 9px;
  }
  .incident-choices {
    grid-template-columns: 1fr;
  }
  .full-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    display: flex;
    min-height: 0;
    padding: 18px;
  }
  .skill-card .upgrade-top {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .skill-card .upgrade-benefit,
  .skill-downside {
    min-height: 0;
  }
  .skill-card p {
    min-height: 0;
    font-size: 11px;
  }
  .skill-card h3 {
    font-size: 15px;
  }
  .skill-actions {
    margin-top: 4px;
  }
  .skill-actions .buy-button {
    padding: 11px;
    justify-content: space-between;
  }
  .skill-switch {
    font-size: 11px;
    padding: 10px 14px;
  }
  .feedback-layout {
    grid-template-columns: 1fr;
  }
  .company-card {
    padding: 22px;
  }
  .company-card h2 {
    font-size: 25px;
  }
  .company-card > p {
    font-size: 12px;
  }
  .company-stats {
    gap: 10px;
  }
  .company-stats small {
    font-size: 9px;
  }
  .company-stats strong {
    font-size: 25px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .text-button {
    font-size: 10px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
  .section-heading .muted {
    font-size: 10px;
  }
  .section-heading .lime {
    white-space: nowrap;
  }
  .history-row {
    font-size: 11px;
    gap: 10px;
  }
  .breadcrumbs {
    font-size: 9px;
  }
  .feedback-layout .tap-button {
    font-size: 11px;
  }
}
.secret-keyboard {
  display: flex;
  gap: 8px;
}
.secret-keyboard button {
  background: #313e25;
  border: 1px solid #617e40;
  color: var(--lime);
  border-radius: 5px;
  min-width: 36px;
  min-height: 36px;
}
.setting input[type="range"] {
  width: 145px;
  accent-color: var(--lime);
}
.campaign-card {
  grid-column: 1/-1;
  background: linear-gradient(120deg, #28351f, #1a2017);
  border: 1px solid #5e7c3b;
  border-radius: 12px;
  padding: 26px;
}
.campaign-card .eyebrow {
  color: var(--lime);
}
.campaign-card h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.campaign-card p {
  color: #aaba98;
  font-size: 13px;
  max-width: 700px;
}
.campaign-build {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  margin: 20px 0;
}
.campaign-card .mission-count {
  font-size: 12px;
}
.campaign-actions {
  display: flex;
  gap: 12px;
}
.campaign-actions button {
  width: auto;
  min-width: 200px;
}
.outline-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.campaign-card details {
  font-size: 11px;
  margin-top: 18px;
  color: var(--muted);
}
.campaign-card summary {
  cursor: pointer;
}
.campaign-card li {
  padding: 4px 0;
}
.task-section-title small {
  font-size: 11px;
  font-weight: 400;
}
@media (max-width: 760px) {
  header {
    height: 45px;
  }
  .page-heading {
    margin: 14px 0;
    gap: 9px;
  }
  .page-heading h1 {
    font-size: 23px;
    line-height: 1.2;
    margin: 5px 0;
    max-width: none;
  }
  .page-heading .eyebrow {
    font-size: 7px;
  }
  .page-heading p {
    display: none;
  }
  .daily-button {
    padding: 6px 10px;
    font-size: 8px;
  }
  .stats {
    gap: 6px;
    margin-bottom: 10px;
  }
  .stats article {
    padding: 9px 12px;
  }
  .stats article > span {
    font-size: 9px;
  }
  .stats strong {
    font-size: 22px;
    line-height: 1.2;
    margin: 4px 0 0;
  }
  .stats article > small {
    display: none;
  }
  .strategy-strip {
    margin-bottom: 10px;
    padding: 8px 10px;
  }
  .arena {
    padding: 14px 17px;
  }
  .career {
    margin-top: 12px;
  }
  .career h2 {
    font-size: 23px;
    margin: 6px 0;
  }
  .career p {
    font-size: 9px;
  }
  .scene {
    height: 190px;
  }
  .mascot {
    height: 200px;
  }
  .scene-note {
    top: 45px;
    font-size: 8px;
  }
  .note-two {
    top: 95px;
  }
  .orbit {
    width: 240px;
    height: 150px;
  }
  .orbit-two {
    width: 270px;
    height: 170px;
  }
  .tap-button {
    padding: 15px;
  }
  .energy {
    margin-top: 14px;
  }
  .level-progress {
    margin-top: 12px;
  }
  .sidebar {
    height: calc(64px + var(--app-safe-bottom));
    padding-bottom: var(--app-safe-bottom);
  }
  .campaign-card {
    padding: 20px;
  }
  .campaign-card h2 {
    font-size: 22px;
  }
  .campaign-card p {
    font-size: 12px;
  }
  .campaign-actions {
    flex-direction: column;
    gap: 0;
  }
  .campaign-actions button {
    width: 100%;
    min-width: 0;
  }
  .campaign-card .mission-count {
    font-size: 10px;
    gap: 15px;
  }
  .task-section-title small {
    display: block;
    margin-top: 6px;
  }
  .strategy-strip > .text-button {
    font-size: 8px;
  }
  .campaign-build {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .page-heading {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .page-heading > div {
    min-width: 0;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .daily-button {
    flex-shrink: 0;
    font-size: 15px;
    padding: 8px;
    gap: 4px;
  }
  .daily-button span {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .stats article {
    padding: 8px 7px;
    min-width: 0;
  }
  .stats article > span {
    font-size: 0;
    white-space: nowrap;
  }
  .stats article > span:before {
    font-size: 8px;
  }
  .stats article:nth-child(1) > span:before {
    content: "✳ Токены";
  }
  .stats article:nth-child(2) > span:before {
    content: "↖ За тап";
  }
  .stats article:nth-child(3) > span:before {
    content: "⌁ Фон /сек";
  }
  .stats article:nth-child(4) > span:before {
    content: "◉ Ущерб";
  }
  .stats strong {
    font-size: 19px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .stats strong small {
    font-size: 8px;
  }
  .stats article > small {
    display: none;
  }
  .scene {
    height: 150px;
  }
  .mascot {
    height: 160px;
  }
  .orbit {
    width: 200px;
    height: 120px;
  }
  .orbit-two {
    width: 235px;
    height: 135px;
  }
  .scene-note {
    top: 30px;
    font-size: 7px;
    padding: 6px;
  }
  .note-two {
    top: 70px;
  }
  .career p {
    max-width: 290px;
    font-size: 8px;
  }
  .ai-bubble {
    font-size: 8px;
    padding: 4px 9px;
    bottom: 0;
  }
  .career h2 {
    font-size: 22px;
  }
  .arena .tap-button {
    font-size: 12px;
    gap: 10px;
  }
  .arena .tap-button span {
    font-size: 9px;
    padding-left: 12px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .scene {
    height: 120px;
  }
  .mascot {
    height: 130px;
  }
  .page-heading {
    margin: 10px 0;
  }
  .career {
    margin-top: 9px;
  }
  .strategy-strip {
    padding: 7px 10px;
  }
  .scene-note {
    top: 20px;
  }
  .note-two {
    top: 55px;
  }
}
/* The courier's secret: narrative view and event-driven character animation. */
.story-teaser {
  grid-column: 1/-1;
  background: linear-gradient(135deg, #29351c, #1a1d18);
  border-color: #4c6434;
}
.story-teaser .eyebrow {
  font-size: 8px;
  color: var(--lime);
}
.story-teaser h3 {
  margin: 9px 0;
  font-size: 17px;
}
.story-teaser p {
  font-size: 11px;
  color: #aab69b;
}
.suspicion-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin: 14px 0 6px;
}
.suspicion-label b {
  color: var(--orange);
}
.suspicion-track span {
  background: var(--orange);
}
.new-chapter {
  border-color: #91b75b;
  color: var(--lime);
}
.story-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 30px 0 22px;
}
.story-intro .eyebrow {
  color: var(--lime);
}
.story-intro h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 12px 0;
}
.story-intro em {
  font-style: normal;
  color: var(--lime);
}
.story-intro p {
  color: var(--muted);
  max-width: 620px;
  font-size: 12px;
}
.dossier-stamp {
  transform: rotate(7deg);
  border: 2px dashed #6f8258;
  color: #adc092;
  padding: 20px;
  flex-shrink: 0;
  text-align: center;
  font: 11px/1.8 monospace;
}
.dossier-stamp b {
  display: block;
  font-size: 9px;
  color: var(--orange);
}
.dossier-stamp span {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}
.story-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.story-meters article {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 9px;
  padding: 17px;
}
.story-meters article > span {
  color: var(--muted);
  font-size: 10px;
}
.story-meters strong {
  display: block;
  font-size: 27px;
  color: var(--lime);
  margin: 5px 0;
}
.story-meters article:first-child strong {
  color: var(--orange);
}
.story-meters small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.story-scene {
  background: #1a2017;
  border: 1px solid #455536;
  border-radius: 12px;
  padding: 28px;
  scroll-margin-top: 18px;
}
.story-scene-heading h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 8px 0 18px;
}
.story-scene-heading .eyebrow {
  color: var(--lime);
}
.story-readonly {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-bottom: 20px;
}
.dialogue-thread {
  display: grid;
  gap: 14px;
  max-width: 800px;
}
.dialogue-bubble {
  display: flex;
  align-items: start;
  gap: 12px;
  animation: dialogue-in 0.35s ease both;
  animation-delay: calc(var(--line) * 0.07s);
}
.dialogue-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid #3f4d32;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #2a3323;
  font-size: 22px;
  flex-shrink: 0;
}
.dialogue-bubble > div {
  border: 1px solid #343f2b;
  background: #22291d;
  border-radius: 0 12px 12px 12px;
  padding: 12px 16px;
  max-width: 650px;
}
.dialogue-bubble strong {
  font-size: 10px;
  color: #a0b586;
}
.dialogue-bubble p {
  font-size: 13px;
  line-height: 1.7;
  margin: 6px 0 0;
}
.dialogue-bubble.from-max {
  margin-left: 35px;
}
.from-max > div {
  background: #2c381f;
  border-color: #516a35;
}
.from-max strong {
  color: var(--lime);
}
.story-choice-heading {
  font-size: 13px;
  color: var(--muted);
  margin: 26px 0 12px;
}
.story-choices {
  display: grid;
  gap: 9px;
}
.story-choice {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 5px 12px;
  border: 1px solid #475a35;
  background: #171e12;
  text-align: left;
  padding: 16px;
  border-radius: 8px;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.story-choice:hover {
  border-color: var(--lime);
  background: #29381d;
}
.choice-number {
  grid-row: 1/3;
  align-self: center;
  font: 11px monospace;
  color: var(--lime);
}
.story-choice strong {
  font-size: 12px;
  font-weight: 500;
}
.story-choice small {
  font-size: 10px;
  color: #96aa7f;
  line-height: 1.6;
}
.story-locked,
.story-resolution {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
}
.story-locked p,
.story-resolution p {
  color: var(--muted);
  font-size: 11px;
}
.story-locked > span {
  display: block;
  color: var(--lime);
  font-size: 11px;
}
.story-locked .outline-button,
.story-resolution .outline-button {
  max-width: 350px;
}
.story-resolution b {
  color: var(--lime);
}
.story-journal {
  margin: 22px 0;
}
.story-journal > p {
  font-size: 11px;
}
.story-chapter-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.story-chapter-row strong {
  font-size: 12px;
  font-weight: 500;
}
.story-chapter-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.story-chapter-row > button,
.story-chapter-row > span:last-child {
  margin-left: auto;
  flex-shrink: 0;
}
.chapter-number {
  font: 11px monospace;
  color: var(--lime);
  min-width: 20px;
}
.current-chapter {
  border-left: 2px solid var(--lime);
  padding-left: 12px;
}
.story-ending {
  text-align: center;
  max-width: 700px;
  margin: auto;
  padding: 20px 0;
}
.ending-icon {
  font-size: 60px;
  margin: 25px 0 15px;
}
.story-ending h2 {
  font-size: 32px;
  letter-spacing: -1px;
}
.story-ending p {
  color: #adb99f;
  font-size: 14px;
  line-height: 1.8;
}
.story-ending b {
  display: block;
  font-size: 12px;
  color: var(--lime);
  margin: 20px 0;
}
.story-ending .outline-button {
  max-width: 350px;
}
.office-ambient {
  position: absolute;
  inset: 15% 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-5deg);
  pointer-events: none;
  opacity: 0.23;
  font: 8px monospace;
  color: var(--lime);
  overflow: hidden;
}
.office-ambient span:nth-child(2) {
  text-align: right;
}
.mascot {
  animation: character-idle 5s ease-in-out infinite;
}
.scene.bump .mascot {
  animation: character-tap 0.18s ease-out;
}
.scene.is-tired .mascot {
  animation: character-tired 3s ease-in-out infinite;
}
.character-emote {
  position: absolute;
  right: 20%;
  top: 12%;
  z-index: 3;
  font-size: 23px;
  filter: drop-shadow(0 3px 5px #0008);
  animation: emote-float 4s ease-in-out infinite;
  pointer-events: none;
}
.scene.is-watched .character-emote {
  animation: watching 3s ease-in-out infinite;
}
.scene.is-burning .mascot {
  filter: drop-shadow(0 0 16px #f7842940);
}
.server-steam {
  position: absolute;
  bottom: 20%;
  left: 50%;
  z-index: 3;
  display: none;
  pointer-events: none;
}
.scene.is-burning .server-steam {
  display: block;
}
.server-steam i {
  position: absolute;
  width: 16px;
  height: 30px;
  background: #e9b68e35;
  filter: blur(5px);
  animation: server-steam 2.6s ease-out infinite;
}
.server-steam i:nth-child(2) {
  left: 25px;
  animation-delay: 0.8s;
}
.server-steam i:nth-child(3) {
  left: 50px;
  animation-delay: 1.6s;
}
.scene.event-upgrade .mascot {
  animation: upgrade-pop 0.65s ease-out;
}
.scene.event-incident .mascot {
  animation: incident-shake 0.6s ease-in-out;
}
.scene.event-story .character-emote {
  animation: evidence-drop 0.8s ease-out;
}
.fx-particle {
  position: absolute;
  z-index: 9;
  color: var(--lime);
  font-size: 18px;
  pointer-events: none;
  animation: office-particle 1.1s ease-out both;
}
.fx-incident {
  color: var(--orange);
}
.fx-story {
  font-size: 17px;
}
.level-celebration {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 30px));
  padding: 20px;
  text-align: center;
  background: #29391ef5;
  border: 1px solid #91b759;
  border-radius: 12px;
  box-shadow: 0 20px 70px #0009;
  pointer-events: none;
  animation: promotion-in 0.4s ease-out;
}
.level-celebration > span {
  font: 10px monospace;
  letter-spacing: 2px;
  color: var(--lime);
}
.level-celebration strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
  margin: 10px 0;
}
.level-celebration small {
  font-size: 9px;
  color: #aaba99;
}
@keyframes character-idle {
  0%,
  100% {
    transform: translateY(0) rotate(-0.3deg);
  }
  50% {
    transform: translateY(-5px) rotate(0.3deg);
  }
}
@keyframes character-tap {
  40% {
    transform: translateY(-7px) rotate(-2deg);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes character-tired {
  0%,
  100% {
    transform: translateY(4px) rotate(-1deg);
  }
  50% {
    transform: translateY(7px) rotate(1deg);
  }
}
@keyframes emote-float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-7px) rotate(5deg);
  }
}
@keyframes watching {
  0%,
  70%,
  100% {
    transform: translateX(0);
  }
  80% {
    transform: translateX(-8px);
  }
  90% {
    transform: translateX(6px);
  }
}
@keyframes server-steam {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(2);
  }
}
@keyframes upgrade-pop {
  35% {
    transform: translateY(-14px) scale(1.05);
  }
  65% {
    transform: translateY(2px) scale(0.98);
  }
}
@keyframes incident-shake {
  20%,
  60% {
    transform: translateX(-5px) rotate(-2deg);
  }
  40%,
  80% {
    transform: translateX(5px) rotate(2deg);
  }
}
@keyframes evidence-drop {
  0% {
    transform: translateY(-40px) rotate(-30deg);
    opacity: 0;
  }
  60% {
    transform: translateY(6px) rotate(12deg);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes office-particle {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--turn)) scale(0.8);
  }
}
@keyframes promotion-in {
  from {
    opacity: 0;
    translate: 0 -25px;
    scale: 0.95;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes dialogue-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .dossier-stamp {
    display: none;
  }
  .story-intro h2 {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  .nav[data-tab="company"] {
    display: none;
  }
  .story-intro {
    padding: 22px 0 12px;
  }
  .story-intro h2 {
    font-size: 26px;
  }
  .story-intro p {
    font-size: 11px;
  }
  .story-meters {
    gap: 7px;
  }
  .story-meters article {
    padding: 12px 9px;
  }
  .story-meters article > span {
    font-size: 8px;
  }
  .story-meters strong {
    font-size: 22px;
  }
  .story-meters small {
    font-size: 8px;
  }
  .story-scene {
    padding: 18px 14px;
  }
  .story-scene-heading h2 {
    font-size: 23px;
  }
  .dialogue-bubble {
    gap: 8px;
  }
  .dialogue-avatar {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .dialogue-bubble > div {
    padding: 10px 12px;
  }
  .dialogue-bubble p {
    font-size: 12px;
  }
  .dialogue-bubble.from-max {
    margin-left: 15px;
  }
  .story-choice {
    padding: 13px 10px;
    gap: 5px 8px;
    grid-template-columns: 20px 1fr;
  }
  .story-choice strong {
    font-size: 11px;
  }
  .story-choice small {
    font-size: 9px;
  }
  .story-chapter-row {
    gap: 8px;
  }
  .story-chapter-row strong {
    font-size: 11px;
  }
  .story-chapter-row small {
    font-size: 9px;
  }
  .story-chapter-row .text-button {
    font-size: 9px;
  }
  .story-ending h2 {
    font-size: 25px;
  }
  .story-ending p {
    font-size: 12px;
  }
  .character-emote {
    right: 24%;
    top: 4%;
    font-size: 18px;
  }
  .office-ambient {
    font-size: 6px;
  }
  .story-teaser h3 {
    font-size: 16px;
  }
  .story-journal {
    padding: 15px;
  }
  .level-celebration strong {
    font-size: 17px;
  }
}
/* A tiny story in motion; all movement is decorative and uses transforms/opacity. */
.mini-office {
  grid-column: 1/-1;
  overflow: hidden;
  padding: 16px 18px 12px;
  background:
    radial-gradient(ellipse at 80% 70%, #435e2626, transparent 70%), #1a2017;
}
.mini-office-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 8px monospace;
  letter-spacing: 0.8px;
}
.mini-office-heading > span:first-child {
  color: #d6ac6a;
}
.mini-office-heading b {
  color: var(--lime);
  font-weight: 500;
  margin-left: auto;
}
.mini-route-arrow {
  color: #6f7d61;
}
.office-loop {
  display: block;
  width: 100%;
  height: auto;
  max-height: 155px;
  margin: 7px auto 0;
  overflow: visible;
}
.mini-office-caption {
  position: relative;
  min-height: 28px;
  font-size: 10px;
  line-height: 1.5;
  color: #a7b893;
  text-align: center;
}
.mini-office-caption > span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: office-caption 12s linear infinite;
}
.mini-office-caption > span:first-child {
  opacity: 1;
}
.mini-office-caption > span:nth-child(2) {
  animation-delay: 4s;
}
.mini-office-caption > span:nth-child(3) {
  animation-delay: 8s;
}
.vignette-rider {
  animation: courier-commute 12s ease-in-out infinite;
}
.vignette-pedal {
  transform-box: fill-box;
  transform-origin: center;
  animation: pedal-turn 0.8s linear infinite;
}
.vignette-cloud {
  animation: cloud-drift 12s ease-in-out infinite;
}
.vignette-speed {
  animation: speed-lines 1.5s ease-in-out infinite;
}
.vignette-window {
  animation: bank-window 6s ease-in-out infinite;
}
.second-window {
  animation-delay: 2s;
}
.vignette-door {
  transform-box: fill-box;
  transform-origin: left center;
  animation: bank-door 12s ease-in-out infinite;
}
.vignette-leaf {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: leaf-sway 4s ease-in-out infinite;
}
.vignette-receipt {
  opacity: 0;
  animation: receipt-ready 12s ease-in-out infinite;
}
.desk-terminal {
  position: absolute;
  left: 10%;
  bottom: 15%;
  z-index: 3;
  min-width: 125px;
  max-width: 42%;
  padding: 7px 9px;
  border: 1px solid #526842;
  border-radius: 5px;
  background: #111b0ef2;
  transform: rotate(-6deg);
  font: 6px/1.7 monospace;
  color: #9ec478;
  box-shadow: 0 4px 12px #0005;
  pointer-events: none;
}
.desk-terminal > span {
  font-size: 5px;
  color: #718d59;
}
.terminal-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 4px;
}
.terminal-cursor {
  animation: terminal-blink 1.8s steps(2, end) infinite;
}
.terminal-working {
  display: flex;
  gap: 3px;
  position: absolute;
  right: 6px;
  top: 5px;
}
.terminal-working i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a6d36c;
  animation: typing-dots 1.8s ease-in-out infinite;
}
.terminal-working i:nth-child(2) {
  animation-delay: 0.2s;
}
.terminal-working i:nth-child(3) {
  animation-delay: 0.4s;
}
.desk-leaf {
  position: absolute;
  bottom: 18%;
  right: 15%;
  z-index: 3;
  font-size: 27px;
  transform-origin: bottom;
  animation: leaf-sway 5s ease-in-out infinite;
  pointer-events: none;
}
.season-checkpoint {
  border: 1px solid #718d4f;
  border-radius: 8px;
  padding: 16px;
  background: #2a381f;
  margin-bottom: 20px;
}
.season-checkpoint .eyebrow {
  color: var(--lime);
}
.season-checkpoint h3 {
  margin: 8px 0;
  font-size: 18px;
}
.season-checkpoint p {
  line-height: 1.7;
}
.season-checkpoint strong {
  font-size: 11px;
  color: var(--lime);
}
@keyframes courier-commute {
  0%,
  9% {
    transform: translateX(0);
    opacity: 1;
  }
  50%,
  64% {
    transform: translateX(244px);
    opacity: 1;
  }
  72%,
  91% {
    transform: translateX(254px);
    opacity: 0;
  }
  92% {
    transform: translateX(0);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes pedal-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cloud-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
}
@keyframes speed-lines {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(0);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-4px);
  }
}
@keyframes bank-window {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes bank-door {
  0%,
  45%,
  82%,
  100% {
    transform: scaleX(1);
  }
  54%,
  73% {
    transform: scaleX(0.1);
  }
}
@keyframes leaf-sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}
@keyframes receipt-ready {
  0%,
  63%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
  73%,
  89% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@keyframes office-caption {
  0%,
  25% {
    opacity: 1;
  }
  32%,
  100% {
    opacity: 0;
  }
}
@keyframes terminal-blink {
  0%,
  60% {
    opacity: 1;
  }
  61%,
  100% {
    opacity: 0.15;
  }
}
@keyframes typing-dots {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@media (max-width: 760px) {
  .mini-office {
    padding: 14px 15px 10px;
  }
  .office-loop {
    max-height: 135px;
  }
  .mini-office-heading {
    font-size: 8px;
    letter-spacing: 0.4px;
  }
  .mini-office-caption {
    font-size: 9px;
    min-height: 26px;
  }
  .desk-terminal {
    left: 6%;
    bottom: 7%;
    padding: 4px 6px;
    font-size: 5px;
    min-width: 102px;
    max-width: 35%;
  }
  .desk-terminal > span {
    font-size: 4px;
  }
  .desk-leaf {
    right: 14%;
    bottom: 13%;
    font-size: 19px;
  }
  .story-intro h2 {
    font-size: 24px;
    overflow-wrap: anywhere;
  }
  .season-checkpoint h3 {
    font-size: 16px;
  }
}
.reduced-motion .mini-office-caption > span {
  opacity: 0;
}
.reduced-motion .mini-office-caption > span:first-child {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .mini-office-caption > span {
    opacity: 0;
  }
  .mini-office-caption > span:first-child {
    opacity: 1;
  }
}
/* Articulated Valerian. The SVG parts move independently; the whole picture stays fixed. */
.character-tap-target {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
.character-tap-target:focus-visible {
  outline: 2px dashed var(--lime);
  outline-offset: -8px;
  border-radius: 16px;
}
.scene .mascot.mascot-rig {
  position: relative;
  animation: none;
  transform: none;
  filter: drop-shadow(0 10px 18px #0005);
  pointer-events: none;
  overflow: visible;
  height: 290px;
  max-width: 100%;
  width: auto;
  bottom: auto;
}
.rig-head {
  transform-origin: 247px 161px;
  animation: rig-head-idle 5.5s ease-in-out infinite;
}
.rig-body {
  transform-origin: 247px 260px;
  animation: rig-breathe 4s ease-in-out infinite;
}
.rig-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: rig-blink 5.6s ease-in-out infinite;
}
.rig-pupils {
  animation: rig-look 7.4s ease-in-out infinite;
}
.rig-backpack {
  transform-origin: 341px 174px;
  animation: rig-bag 6s ease-in-out infinite;
}
.rig-badge {
  transform-origin: 248px 202px;
  animation: rig-badge-sway 4.4s ease-in-out infinite;
}
.rig-leg-front {
  transform-origin: 220px 258px;
  animation: rig-foot-tap 5s ease-in-out infinite;
}
.rig-leg-back {
  transform-origin: 279px 258px;
  animation: rig-foot-tap 6.2s ease-in-out infinite reverse;
}
.rig-forearm-left {
  transform-origin: 175px 240px;
}
.rig-forearm-right {
  transform-origin: 315px 240px;
}
.rig-arm-right {
  transform-origin: 280px 181px;
}
.rig-arm-left {
  transform-origin: 209px 180px;
}
.rig-screen-cursor {
  animation: terminal-blink 1.8s steps(2, end) infinite;
}
.rig-cup,
.rig-mouth-panic,
.rig-mouth-tired,
.rig-sweat {
  opacity: 0;
}
.scene.is-typing .rig-forearm-left {
  animation: rig-type-left 0.25s ease-in-out infinite;
}
.scene.is-typing .rig-forearm-right {
  animation: rig-type-right 0.28s ease-in-out infinite;
}
.scene.is-typing .rig-head {
  animation: rig-focus 0.7s ease-in-out infinite;
}
.scene.is-drinking .rig-arm-right {
  animation: rig-drink 2.4s ease-in-out;
}
.scene.is-drinking .rig-cup {
  opacity: 1;
}
.scene.is-drinking .rig-forearm-right {
  animation: none;
}
.rig-coffee-steam {
  animation: rig-steam 1.5s ease-out infinite;
}
.scene.event-upgrade .rig-arm-right {
  animation: rig-celebrate 0.85s ease-in-out;
}
.scene.event-upgrade .rig-head {
  animation: rig-happy 0.8s ease-in-out;
}
.scene.is-watched .rig-eyebrows {
  transform-origin: 247px 100px;
  animation: rig-brow-worry 4s ease-in-out infinite;
}
.scene.is-watched .rig-sweat,
.scene.is-burning .rig-sweat,
.scene.event-incident .rig-sweat {
  opacity: 1;
}
.scene.event-incident .rig-head,
.scene.is-burning .rig-head {
  animation: rig-panic 0.55s ease-in-out infinite;
}
.scene.event-incident .rig-mouth-normal,
.scene.is-burning .rig-mouth-normal,
.scene.is-tired .rig-mouth-normal {
  opacity: 0;
}
.scene.event-incident .rig-mouth-panic,
.scene.is-burning .rig-mouth-panic {
  opacity: 1;
}
.scene.is-tired .rig-head {
  animation: rig-sleepy 3.5s ease-in-out infinite;
}
.scene.is-tired .rig-eyes {
  animation: rig-heavy-blink 3.5s ease-in-out infinite;
}
.scene.is-tired .rig-mouth-tired {
  opacity: 1;
}
.scene.is-tired .rig-leg {
  animation: none;
}
.scene .desk-terminal {
  display: none;
}
.scene .desk-leaf {
  display: none;
}
@keyframes rig-head-idle {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1.3deg) translateY(-1px);
  }
}
@keyframes rig-breathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.018);
  }
}
@keyframes rig-blink {
  0%,
  43%,
  47%,
  81%,
  85%,
  100% {
    transform: scaleY(1);
  }
  45%,
  83% {
    transform: scaleY(0.08);
  }
}
@keyframes rig-look {
  0%,
  25%,
  70%,
  100% {
    transform: translateX(0);
  }
  35%,
  55% {
    transform: translateX(3px);
  }
}
@keyframes rig-bag {
  0%,
  100% {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(1deg);
  }
}
@keyframes rig-badge-sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
@keyframes rig-foot-tap {
  0%,
  38%,
  70%,
  100% {
    transform: rotate(0);
  }
  44%,
  58% {
    transform: rotate(-5deg);
  }
  51% {
    transform: rotate(1deg);
  }
}
@keyframes rig-type-left {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-7deg) translateY(-2px);
  }
}
@keyframes rig-type-right {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(7deg) translateY(-2px);
  }
}
@keyframes rig-focus {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(-0.5deg) translateY(1px);
  }
}
@keyframes rig-drink {
  0%,
  100% {
    transform: rotate(0);
  }
  25%,
  75% {
    transform: rotate(-48deg);
  }
  40%,
  60% {
    transform: rotate(-52deg);
  }
}
@keyframes rig-celebrate {
  0%,
  100% {
    transform: rotate(0);
  }
  35%,
  65% {
    transform: rotate(-55deg);
  }
}
@keyframes rig-happy {
  0%,
  100% {
    transform: rotate(0);
  }
  30%,
  70% {
    transform: rotate(-5deg) translateY(-3px);
  }
}
@keyframes rig-panic {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
@keyframes rig-sleepy {
  0%,
  100% {
    transform: rotate(5deg) translateY(3px);
  }
  50% {
    transform: rotate(9deg) translateY(6px);
  }
}
@keyframes rig-heavy-blink {
  0%,
  100% {
    transform: scaleY(0.7);
  }
  45%,
  65% {
    transform: scaleY(0.12);
  }
}
@keyframes rig-steam {
  0% {
    opacity: 0;
    transform: translateY(2px);
  }
  25% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes rig-brow-worry {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
@media (max-width: 1100px) {
  .scene .mascot.mascot-rig {
    height: 255px;
  }
}
@media (max-width: 760px) {
  .scene .mascot.mascot-rig {
    height: 172px;
  }
  .character-emote {
    right: 20%;
    top: 3%;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .scene .mascot.mascot-rig {
    height: 143px;
  }
}
.account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  margin-top: 10px;
  border: 1px solid #435335;
  border-radius: 8px;
  background: #20291a;
  overflow-wrap: anywhere;
}
.account-banner[hidden] {
  display: none;
}
.account-banner > div {
  min-width: 0;
}
.account-banner strong,
.account-banner span {
  display: block;
  font-size: 11px;
}
.account-banner span {
  color: #bcc9ad;
  font-size: 10px;
}
.account-banner button {
  flex-shrink: 0;
  min-height: 44px;
}
@media (max-width: 760px) {
  main {
    position: relative;
  }
  .telegram-connected .breadcrumbs {
    visibility: hidden;
  }
  .telegram-connected .account-banner {
    position: absolute;
    top: 8px;
    left: 17px;
    right: 154px;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
  }
  .telegram-connected .account-banner > div {
    width: 100%;
  }
  .telegram-connected .account-banner strong,
  .telegram-connected .account-banner span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  main {
    padding-bottom: calc(78px + var(--app-safe-bottom));
  }
  .sidebar {
    left: max(
      env(safe-area-inset-left, 0px),
      var(--tg-safe-area-inset-left, 0px),
      var(--tg-content-safe-area-inset-left, 0px)
    );
    right: max(
      env(safe-area-inset-right, 0px),
      var(--tg-safe-area-inset-right, 0px),
      var(--tg-content-safe-area-inset-right, 0px)
    );
    width: auto;
  }
  select,
  textarea,
  input:not([type="checkbox"]):not([type="range"]) {
    font-size: 16px;
  }
  button,
  input,
  textarea {
    scroll-margin-bottom: calc(90px + var(--app-safe-bottom));
  }
  .account-banner {
    flex-wrap: wrap;
  }
  .account-banner strong {
    font-size: 10px;
  }
  .account-banner span {
    font-size: 9px;
  }
}
.loadout-summary {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  background: #23301c;
  border: 1px solid #4b6435;
  padding: 20px;
  border-radius: 10px;
  margin: 18px 0;
}
.loadout-summary .eyebrow {
  color: var(--lime);
}
.loadout-summary h3 {
  margin: 8px 0;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.loadout-summary p {
  font-size: 11px;
  color: #a6b897;
  max-width: 500px;
  margin: 8px 0 0;
}
.build-forecast {
  border-left: 1px solid #526744;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.build-forecast > span {
  font-size: 9px;
  color: #9aaa88;
}
.build-forecast strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--lime);
}
.build-forecast small {
  font-size: 10px;
  color: #adbc9b;
}
.build-forecast small:last-child {
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
.skill-card .upgrade-benefit {
  font-size: 10px;
  line-height: 1.7;
}
.skill-forecast {
  color: #a4bc88;
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 14px;
  min-height: 32px;
}
.skill-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.upgrade-level {
  font-size: 8px;
}
.upgrade .skill-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
}
.upgrade .skill-actions .buy-button {
  margin-top: 0;
}
.skill-card {
  min-height: 325px;
}
@media (max-width: 760px) {
  .loadout-summary {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 17px;
  }
  .build-forecast {
    border-left: 0;
    border-top: 1px solid #526744;
    padding: 14px 0 0;
  }
  .loadout-summary h3 {
    font-size: 21px;
  }
  .build-forecast strong {
    font-size: 13px;
  }
  .skill-card {
    min-height: 0;
  }
  .upgrade .skill-actions {
    grid-column: 3;
    grid-row: 1/4;
  }
  .skill-card .skill-actions {
    width: 100%;
  }
  .skill-card .upgrade-benefit {
    font-size: 10px;
  }
  .skill-forecast {
    min-height: 0;
  }
  .upgrade .buy-button {
    font-size: 9px;
  }
}
.scene.is-drinking.event-upgrade .rig-arm-right {
  animation: rig-drink 2.4s ease-in-out;
}
.scene.is-tired .rig-mouth-panic {
  opacity: 0;
}
.scene .mascot.mascot-rig {
  height: 100%;
  max-height: 290px;
}
.scene .ai-bubble {
  top: 8px;
  bottom: auto;
  right: 0;
  max-width: 155px;
  font-size: 8px;
}
.scene .mascot.mascot-rig {
  height: 245px;
  width: 313px;
  max-height: none;
  max-width: 100%;
}
@media (max-width: 1100px) {
  .scene .mascot.mascot-rig {
    height: 230px;
    width: 294px;
  }
}
@media (max-width: 760px) {
  .scene .mascot.mascot-rig {
    height: 140px;
    width: 179px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .scene .mascot.mascot-rig {
    height: 110px;
    width: 141px;
  }
}
