:root {
  --ink: #111a17;
  --ink-soft: #21322c;
  --forest: #16332b;
  --forest-light: #254c40;
  --cream: #f5edda;
  --paper: #e9ddc1;
  --sand: #c9b27f;
  --gold: #e1b85e;
  --gold-bright: #f3d889;
  --red: #a94f43;
  --teal: #4f8a80;
  --glass: rgba(14, 29, 25, 0.88);
  --glass-soft: rgba(18, 37, 32, 0.76);
  --line: rgba(255, 255, 255, 0.14);
  --paper-line: rgba(48, 40, 27, 0.18);
  --shadow: 0 24px 70px rgba(4, 11, 9, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111d19;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

#game-shell,
#game {
  width: 100%;
  height: 100%;
}

#game-shell {
  position: relative;
  overflow: hidden;
  background: #78938a;
  isolation: isolate;
}

#game {
  display: block;
  touch-action: none;
}

#game-shell::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at center,
      transparent 43%,
      rgba(8, 21, 17, 0.22) 100%
    ),
    linear-gradient(to bottom, rgba(9, 21, 18, 0.08), transparent 30%);
  content: "";
  pointer-events: none;
}

#damage-flash {
  position: absolute;
  inset: 0;
  z-index: 45;
  border: 0 solid rgba(164, 51, 38, 0);
  background: transparent;
  pointer-events: none;
}

#damage-flash.flash {
  animation: damage-flash 650ms ease-out;
}

@keyframes damage-flash {
  0% {
    border-width: 28px;
    border-color: rgba(164, 51, 38, 0.72);
    background: rgba(130, 24, 18, 0.2);
  }
  100% {
    border-width: 0;
    border-color: transparent;
    background: transparent;
  }
}

.hud-top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 22px 26px;
  pointer-events: none;
  transition: opacity 450ms ease;
}

.brand,
.location-pill,
.top-actions {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
  background: rgba(13, 29, 25, 0.72);
  color: var(--gold-bright);
  font-size: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.13em;
}

.brand small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.22em;
}

.location-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 218px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(13, 29, 25, 0.76);
  padding: 9px 20px 10px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.19);
  backdrop-filter: blur(14px);
}

.location-pill span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.location-pill strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
}

.top-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(13, 29, 25, 0.76);
  color: white;
  font-size: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(35, 71, 60, 0.95);
}

.icon-button.light {
  border-color: rgba(39, 34, 25, 0.17);
  background: rgba(62, 50, 32, 0.08);
  color: #3b3123;
  box-shadow: none;
}

.icon-button.muted {
  color: rgba(255, 255, 255, 0.48);
}

.quest-panel {
  position: absolute;
  top: 92px;
  left: 26px;
  z-index: 9;
  width: 315px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(27, 53, 45, 0.94),
    rgba(12, 28, 24, 0.9)
  );
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.quest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quest-heading span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.quest-heading strong {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  padding: 3px 7px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
}

.quest-panel h2 {
  margin: 8px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.quest-panel p {
  min-height: 34px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.55;
}

.quest-progress {
  width: 100%;
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.quest-progress span {
  display: block;
  width: 7.69%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b98940, var(--gold-bright));
  box-shadow: 0 0 12px rgba(235, 194, 103, 0.44);
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quest-panel > small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.minimap-wrap {
  position: absolute;
  top: 92px;
  right: 26px;
  z-index: 9;
  width: 208px;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(13, 29, 25, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

#minimap {
  width: 100%;
  height: 100%;
  opacity: 0.88;
}

.minimap-wrap::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 30px rgba(9, 24, 20, 0.62);
  content: "";
  pointer-events: none;
}

.minimap-north {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  color: #fff0c1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  transform: translateX(-50%);
}

.minimap-label {
  position: absolute;
  right: 9px;
  bottom: 7px;
  z-index: 2;
  border-radius: 6px;
  background: rgba(13, 29, 25, 0.58);
  padding: 3px 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.status-panel {
  position: absolute;
  bottom: 27px;
  left: 26px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-medallion {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid rgba(236, 207, 140, 0.64);
  border-radius: 50%;
  background: linear-gradient(145deg, #355d50, #142c25);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    inset 0 0 0 4px rgba(0, 0, 0, 0.17);
}

.status-bars {
  display: flex;
  width: 190px;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 29, 25, 0.82);
  padding: 9px 11px;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.bar-row {
  display: grid;
  grid-template-columns: 13px 1fr 24px;
  align-items: center;
  gap: 7px;
  font-size: 9px;
}

.bar-row > span {
  text-align: center;
}

.health-row > span {
  color: #d96e5f;
}

.stamina-row > span {
  color: #e4c36f;
}

.bar-row strong {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  text-align: right;
}

.bar-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
}

.bar-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transition: width 220ms ease;
}

#health-bar {
  background: linear-gradient(90deg, #a84239, #de7664);
}

#stamina-bar {
  background: linear-gradient(90deg, #a77d37, #e1bd66);
}

.virtues {
  position: absolute;
  bottom: 87px;
  left: 26px;
  z-index: 9;
  display: flex;
  gap: 6px;
}

.virtue {
  display: flex;
  min-width: 92px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(13, 29, 25, 0.78);
  padding: 6px 9px 6px 6px;
  backdrop-filter: blur(10px);
}

.virtue-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  font-size: 11px;
}

.virtue-icon.compassion {
  background: rgba(190, 77, 68, 0.2);
  color: #dc8175;
}

.virtue-icon.courage {
  background: rgba(208, 166, 72, 0.19);
  color: #e0bf6f;
}

.virtue-icon.wisdom {
  background: rgba(91, 145, 134, 0.2);
  color: #82bcb1;
}

.virtue > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.virtue small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.virtue strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.inventory {
  position: absolute;
  right: 26px;
  bottom: 88px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
  pointer-events: none;
}

.inventory.visible {
  opacity: 1;
  transform: translateY(0);
}

.inventory-title {
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.inventory-slot {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(13, 29, 25, 0.76);
  color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.inventory-slot.filled {
  border-color: rgba(235, 199, 118, 0.5);
  background: rgba(52, 68, 45, 0.92);
  color: #efd58f;
  box-shadow: 0 0 20px rgba(221, 181, 90, 0.14);
}

.inventory-slot span {
  font-size: 18px;
  line-height: 1;
}

.inventory-slot small {
  font-size: 7px;
}

.journal-button {
  position: absolute;
  right: 26px;
  bottom: 28px;
  z-index: 9;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 29, 25, 0.82);
  padding: 7px 9px 7px 13px;
  color: white;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.journal-button:hover {
  transform: translateY(-2px);
  background: rgba(34, 68, 57, 0.96);
}

.journal-button > span:nth-child(2) {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 68px;
}

.journal-button small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.journal-button strong {
  margin-top: 1px;
  font-size: 10px;
}

kbd {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.journal-button kbd {
  min-width: 28px;
  height: 28px;
}

.interaction-prompt {
  position: absolute;
  bottom: 18%;
  left: 50%;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(12, 28, 23, 0.9);
  padding: 8px 13px 8px 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  animation: prompt-in 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes prompt-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

.interaction-prompt kbd {
  border-color: rgba(230, 192, 106, 0.5);
  background: rgba(224, 181, 87, 0.19);
  color: #ffe4a0;
}

.torch-hint {
  position: absolute;
  right: 26px;
  bottom: 154px;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(240, 174, 65, 0.42);
  border-radius: 12px;
  background: rgba(48, 31, 17, 0.9);
  padding: 8px 12px 8px 8px;
  color: #f4cf78;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: 0 0 28px rgba(230, 146, 35, 0.2);
  animation: torch-pulse 1.4s ease-in-out infinite;
}

@keyframes torch-pulse {
  50% {
    border-color: rgba(255, 199, 86, 0.8);
    box-shadow: 0 0 40px rgba(232, 151, 37, 0.32);
  }
}

.desktop-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 8px;
  transform: translateX(-50%);
  transition: opacity 250ms ease;
  pointer-events: none;
}

.desktop-controls span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.desktop-controls kbd {
  min-width: 20px;
  height: 19px;
  border-radius: 5px;
  padding: 0 4px;
  font-size: 7px;
}

.desktop-controls.dimmed {
  opacity: 0;
}

.dialogue {
  position: absolute;
  right: 9%;
  bottom: 6.5%;
  left: 9%;
  z-index: 51;
  display: grid;
  grid-template-columns: 94px 1fr auto;
  min-height: 152px;
  align-items: stretch;
  gap: 18px;
  border: 1px solid rgba(239, 215, 158, 0.24);
  border-radius: 23px;
  background: linear-gradient(
    115deg,
    rgba(17, 38, 32, 0.97),
    rgba(8, 22, 18, 0.96)
  );
  padding: 18px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  animation: dialogue-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dialogue-in {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.98);
  }
}

.portrait {
  position: relative;
  display: grid;
  width: 94px;
  min-height: 112px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(236, 205, 134, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(231, 195, 119, 0.24),
      transparent 35%
    ),
    linear-gradient(150deg, #365f52, #142d26);
  color: #f1daa2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.24);
}

.portrait::after {
  position: absolute;
  right: -24px;
  bottom: -38px;
  width: 90px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  content: "";
  transform: rotate(-23deg);
}

.portrait[data-speaker="Isus"] {
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(255, 235, 174, 0.42),
      transparent 36%
    ),
    linear-gradient(150deg, #7d7b66, #293c36);
  color: #fff0bd;
}

.dialogue-copy {
  align-self: center;
  padding: 3px 0;
}

.speaker-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.speaker-line > span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.speaker-line small {
  border-radius: 99px;
  background: rgba(225, 184, 94, 0.13);
  padding: 4px 8px;
  color: #ebca80;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.dialogue-copy > p {
  max-width: 960px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.55;
}

.dialogue-next {
  display: flex;
  min-width: 96px;
  align-self: end;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.dialogue-next:hover {
  color: white;
}

.dialogue-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dialogue-choices button {
  display: flex;
  min-width: 220px;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(231, 195, 112, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.83);
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.dialogue-choices button:hover {
  border-color: rgba(231, 195, 112, 0.55);
  background: rgba(231, 195, 112, 0.11);
  transform: translateY(-1px);
}

.dialogue-choices button span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.dialogue-choices button small {
  color: var(--gold);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.cinematic-bar {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 48;
  height: 0;
  background: #050807;
  transition: height 450ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cinematic-top {
  top: 0;
}

.cinematic-bottom {
  bottom: 0;
}

.cinematic-bar.visible {
  height: 5.2vh;
}

.screen-overlay,
.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.screen-overlay {
  transition: opacity 600ms ease;
}

.loading-screen {
  z-index: 100;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(53, 92, 77, 0.4), transparent 32%),
    #0d1c18;
}

.loading-screen.loaded {
  opacity: 0;
  pointer-events: none;
}

.loading-emblem {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(234, 203, 132, 0.34);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 25px;
  box-shadow:
    0 0 0 8px rgba(234, 203, 132, 0.04),
    0 0 55px rgba(226, 184, 91, 0.14);
  animation: emblem-turn 5s linear infinite;
}

@keyframes emblem-turn {
  to {
    transform: rotate(360deg);
  }
}

.loading-screen > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: 0.16em;
}

.loading-screen > small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.loading-track {
  width: 260px;
  height: 3px;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.loading-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #8a6e36, var(--gold-bright));
  transition: width 450ms ease;
}

.loading-screen p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
}

.title-screen {
  z-index: 29;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      90deg,
      rgba(8, 20, 17, 0.9) 0%,
      rgba(8, 20, 17, 0.34) 47%,
      rgba(8, 20, 17, 0.52) 100%
    ),
    linear-gradient(to top, rgba(8, 20, 17, 0.68), transparent 45%);
}

.title-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 65% 48%,
    transparent 12%,
    rgba(6, 15, 12, 0.17) 55%,
    rgba(6, 15, 12, 0.62) 100%
  );
  pointer-events: none;
}

.title-content {
  position: relative;
  display: flex;
  width: min(590px, 50vw);
  align-items: center;
  flex-direction: column;
  margin-left: -34%;
  text-align: center;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.5);
}

.title-kicker,
.step-label {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.title-symbol {
  margin-top: 18px;
  color: var(--gold-bright);
  font-size: 23px;
  filter: drop-shadow(0 0 18px rgba(234, 193, 98, 0.36));
}

.title-symbol.small {
  margin: 0;
  font-size: 19px;
}

.title-content h1 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 7.4vw, 112px);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 0.9;
}

.title-subtitle {
  margin: 10px 0 0;
  color: #ead4a1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 28px);
  font-style: italic;
}

.title-divider {
  display: flex;
  width: 290px;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
}

.title-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(237, 207, 139, 0.48));
}

.title-divider span:last-child {
  background: linear-gradient(90deg, rgba(237, 207, 139, 0.48), transparent);
}

.title-divider i {
  color: rgba(237, 207, 139, 0.72);
  font-size: 8px;
  font-style: normal;
}

.title-description {
  max-width: 470px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.65;
}

.title-actions {
  display: flex;
  width: min(420px, 100%);
  flex-direction: column;
  gap: 9px;
  margin-top: 25px;
}

.primary-button,
.secondary-button {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 18px;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.primary-button {
  border: 1px solid #e5c372;
  background: linear-gradient(135deg, #d5a94e, #f0ce7d);
  color: #233129;
  font-weight: 800;
  box-shadow:
    0 14px 35px rgba(191, 137, 47, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.48);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 42px rgba(191, 137, 47, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.58);
}

.primary-button span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.primary-button small {
  position: absolute;
  right: 13px;
  color: rgba(34, 49, 41, 0.58);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 31, 26, 0.66);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  backdrop-filter: blur(10px);
}

.title-actions .secondary-button small {
  margin-left: 7px;
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.secondary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(31, 62, 52, 0.9);
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.secondary-button.danger {
  border-color: rgba(179, 82, 69, 0.28);
  color: #d8aaa3;
}

.edition-label {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.title-controls {
  position: absolute;
  right: 28px;
  bottom: 24px;
  display: flex;
  gap: 15px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.title-controls span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.title-controls kbd {
  height: 22px;
  min-width: 24px;
}

.creator-screen {
  z-index: 31;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 470px;
  align-items: center;
  gap: 7vw;
  background:
    linear-gradient(
      90deg,
      rgba(7, 17, 14, 0.26) 0%,
      rgba(7, 17, 14, 0.05) 44%,
      rgba(7, 17, 14, 0.78) 73%,
      rgba(7, 17, 14, 0.9) 100%
    ),
    linear-gradient(to top, rgba(7, 17, 14, 0.55), transparent 45%);
  padding: 8vh 8vw;
}

.creator-copy {
  align-self: end;
  max-width: 440px;
  margin-bottom: 5vh;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.62);
}

.creator-copy h2 {
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.5vw, 54px);
  font-weight: 500;
  line-height: 1.08;
}

.creator-copy > p {
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.65;
}

.preview-callout {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 23px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(12, 28, 23, 0.55);
  padding: 7px 10px;
  backdrop-filter: blur(8px);
}

.preview-callout span {
  color: var(--gold);
}

.preview-callout small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
}

.creator-card {
  width: 100%;
  border: 1px solid rgba(248, 227, 180, 0.28);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(248, 241, 224, 0.98),
    rgba(225, 211, 180, 0.97)
  );
  padding: 26px;
  color: #352d22;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.creator-card label,
.creator-card fieldset {
  display: block;
}

.creator-card label > span,
.creator-card legend {
  color: #6e624e;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.creator-card input {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(55, 45, 31, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
  padding: 11px 12px;
  color: #322a20;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.creator-card fieldset {
  min-width: 0;
  margin: 20px 0 0;
  border: 0;
  padding: 0;
}

.profession-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.profession {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid rgba(55, 45, 31, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  padding: 11px;
  color: #443a2c;
  text-align: left;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.profession:hover,
.profession.active {
  border-color: rgba(38, 83, 69, 0.52);
  background: rgba(52, 104, 87, 0.11);
  transform: translateY(-1px);
}

.profession.active {
  box-shadow: inset 0 0 0 1px rgba(38, 83, 69, 0.21);
}

.profession-icon {
  color: #4b7667;
  font-size: 19px;
  line-height: 1;
}

.profession strong {
  margin-top: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.profession small {
  margin-top: 2px;
  color: #8a7657;
  font-size: 7px;
}

.appearance-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}

.swatches {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.swatch {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(51, 42, 29, 0.18);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.swatch:hover,
.swatch.active {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px #355f52,
    0 5px 12px rgba(39, 34, 26, 0.18);
}

.creator-submit {
  width: 100%;
  margin-top: 25px;
}

.side-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 56;
  width: min(520px, 43vw);
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(
    145deg,
    rgba(248, 242, 226, 0.99),
    rgba(226, 212, 181, 0.99)
  );
  padding: 34px;
  color: #352d22;
  box-shadow: -30px 0 80px rgba(4, 11, 9, 0.38);
  animation: side-panel-in 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes side-panel-in {
  from {
    transform: translateX(100%);
  }
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 20px;
}

.panel-header small {
  color: #867555;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.panel-header h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.journal-entries {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.journal-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.28);
  padding: 15px 16px;
}

.journal-entry::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #718c68;
  content: "";
}

.journal-entry > span {
  color: #8a7550;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.journal-entry h3 {
  margin: 5px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
}

.journal-entry p {
  margin: 0;
  color: #6f6250;
  font-size: 10px;
  line-height: 1.55;
}

.journal-entry.locked {
  filter: saturate(0);
  opacity: 0.48;
}

.journal-note {
  margin-top: 20px;
  border: 1px dashed rgba(86, 71, 48, 0.28);
  border-radius: 12px;
  padding: 14px;
}

.journal-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.journal-note p {
  margin: 5px 0 0;
  color: #756754;
  font-size: 9px;
  line-height: 1.55;
}

.modal-overlay {
  z-index: 62;
  display: grid;
  place-items: center;
  background: rgba(5, 13, 11, 0.7);
  backdrop-filter: blur(10px);
}

.minigame-card,
.pause-card {
  width: min(510px, calc(100% - 40px));
  border: 1px solid rgba(244, 221, 170, 0.26);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(250, 242, 224, 0.99),
    rgba(223, 208, 176, 0.99)
  );
  padding: 30px;
  color: #352c20;
  text-align: center;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
  animation: modal-in 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}

.minigame-card h2,
.pause-card h2 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
}

.minigame-card > p,
.pause-card > p {
  max-width: 390px;
  margin: 0 auto;
  color: #72634e;
  font-size: 11px;
  line-height: 1.6;
}

.repair-illustration {
  position: relative;
  height: 92px;
  margin: 18px 0 8px;
  overflow: hidden;
  border: 1px solid rgba(71, 58, 40, 0.12);
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 20px,
      rgba(92, 74, 46, 0.06) 20px 22px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0 20px,
      rgba(92, 74, 46, 0.06) 20px 22px
    ),
    rgba(255, 255, 255, 0.23);
}

.rope-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 3px;
  border-radius: 99px;
  background: #9d7c4a;
  transform-origin: center;
}

.rope-a {
  transform: translate(-50%, -50%) rotate(20deg);
}

.rope-b {
  transform: translate(-50%, -50%) rotate(-20deg);
}

.rope-c {
  transform: translate(-50%, -50%) rotate(90deg);
}

.repair-meter {
  position: relative;
  height: 20px;
  margin: 20px 12px 0;
  border: 1px solid rgba(52, 43, 30, 0.14);
  border-radius: 99px;
  background: rgba(75, 62, 42, 0.12);
}

.repair-zone {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 40%;
  width: 20%;
  border-radius: 99px;
  background: linear-gradient(90deg, #cda24b, #f2cf78, #cda24b);
  box-shadow: 0 0 18px rgba(198, 146, 54, 0.36);
}

#repair-needle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: #284b40;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
}

.stitch-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.stitch-dot {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(54, 44, 31, 0.25);
  border-radius: 50%;
  background: rgba(63, 52, 36, 0.08);
}

.stitch-dot.complete {
  border-color: #507769;
  background: #507769;
  box-shadow: 0 0 0 4px rgba(80, 119, 105, 0.12);
}

#repair-feedback {
  min-height: 18px;
  margin-top: 12px;
  font-size: 10px;
}

#repair-feedback.success {
  color: #3e725e;
}

#repair-feedback.miss {
  color: #a24e42;
}

.minigame-card .primary-button {
  width: 100%;
  margin-top: 14px;
}

.pause-card {
  width: min(420px, calc(100% - 40px));
}

.pause-card > small {
  display: block;
  margin-top: 7px;
  color: #8a734e;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.pause-card .primary-button,
.pause-card .secondary-button {
  width: 100%;
  margin-top: 11px;
}

.pause-card > p {
  margin-top: 17px;
  font-size: 9px;
}

.failure-card {
  border-color: rgba(176, 74, 58, 0.28);
}

.failure-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid rgba(164, 76, 61, 0.34);
  border-radius: 50%;
  color: #aa5042;
}

.ending-screen {
  z-index: 70;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 24%,
      rgba(255, 231, 167, 0.45),
      transparent 30%
    ),
    linear-gradient(to bottom, rgba(27, 55, 46, 0.4), rgba(7, 18, 15, 0.9));
  backdrop-filter: blur(6px);
}

.ending-light {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 520px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 236, 183, 0.24),
    transparent
  );
  filter: blur(15px);
  transform: translateX(-50%) perspective(400px) rotateX(-10deg);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}

.ending-card {
  position: relative;
  width: min(700px, calc(100% - 40px));
  border: 1px solid rgba(244, 219, 160, 0.28);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(17, 42, 35, 0.96),
    rgba(8, 23, 19, 0.96)
  );
  padding: 38px 48px;
  text-align: center;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(20px);
}

.ending-symbol {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid rgba(236, 202, 126, 0.35);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 21px;
  box-shadow:
    0 0 0 8px rgba(236, 202, 126, 0.04),
    0 0 55px rgba(236, 202, 126, 0.13);
}

.ending-card > small {
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.ending-card h2 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 500;
}

.ending-card blockquote {
  margin: 18px auto 5px;
  color: #f4e5bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.3vw, 29px);
  font-style: italic;
  line-height: 1.4;
}

.scripture-source {
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.ending-card > p {
  max-width: 480px;
  margin: 17px auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.65;
}

.ending-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.ending-stats span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ending-stats strong {
  color: #f0d68e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.ending-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 9px;
  margin-top: 20px;
}

.objective-flash {
  position: absolute;
  top: 24%;
  left: 50%;
  z-index: 42;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  color: #fff0bf;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
  animation: objective-in 2.5s ease both;
  pointer-events: none;
}

.objective-flash i {
  color: var(--gold-bright);
  font-size: 20px;
  font-style: normal;
  filter: drop-shadow(0 0 14px rgba(239, 198, 102, 0.6));
}

.objective-flash span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

@keyframes objective-in {
  0% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  15%,
  72% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

.area-toast {
  position: absolute;
  top: 22%;
  left: 50%;
  z-index: 41;
  display: flex;
  min-width: 300px;
  align-items: center;
  flex-direction: column;
  text-align: center;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.75);
  transform: translateX(-50%);
  animation: area-in 3.5s ease both;
  pointer-events: none;
}

.area-toast::before,
.area-toast::after {
  width: 190px;
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 220, 161, 0.58),
    transparent
  );
  content: "";
}

.area-toast small {
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.area-toast strong {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.area-toast span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
}

@keyframes area-in {
  0%,
  100% {
    opacity: 0;
  }
  14%,
  72% {
    opacity: 1;
  }
}

.toast {
  position: absolute;
  bottom: 19%;
  left: 50%;
  z-index: 44;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 11px;
  background: rgba(11, 27, 22, 0.9);
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.skip-hint {
  position: absolute;
  top: 7.2vh;
  right: 26px;
  z-index: 52;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-mode="loading"] .hud-top,
body[data-mode="loading"] .quest-panel,
body[data-mode="loading"] .minimap-wrap,
body[data-mode="loading"] .status-panel,
body[data-mode="loading"] .virtues,
body[data-mode="loading"] .inventory,
body[data-mode="loading"] .journal-button,
body[data-mode="title"] .hud-top,
body[data-mode="title"] .quest-panel,
body[data-mode="title"] .minimap-wrap,
body[data-mode="title"] .status-panel,
body[data-mode="title"] .virtues,
body[data-mode="title"] .inventory,
body[data-mode="title"] .journal-button,
body[data-mode="creator"] .hud-top,
body[data-mode="creator"] .quest-panel,
body[data-mode="creator"] .minimap-wrap,
body[data-mode="creator"] .status-panel,
body[data-mode="creator"] .virtues,
body[data-mode="creator"] .inventory,
body[data-mode="creator"] .journal-button,
body[data-mode="ending"] .hud-top,
body[data-mode="ending"] .quest-panel,
body[data-mode="ending"] .minimap-wrap,
body[data-mode="ending"] .status-panel,
body[data-mode="ending"] .virtues,
body[data-mode="ending"] .inventory,
body[data-mode="ending"] .journal-button {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .creator-screen {
    grid-template-columns: 1fr 430px;
    gap: 3vw;
    padding: 7vh 4vw;
  }

  .creator-copy {
    max-width: 360px;
  }

  .virtues {
    display: none;
  }

  .dialogue {
    right: 5%;
    left: 5%;
  }

  .title-content {
    margin-left: -27%;
  }
}

@media (max-height: 760px) {
  .quest-panel {
    top: 79px;
    padding: 14px 17px 13px;
  }

  .minimap-wrap {
    top: 79px;
    width: 180px;
    height: 112px;
  }

  .hud-top {
    padding-top: 16px;
  }

  .creator-card {
    padding: 20px;
  }

  .creator-card fieldset {
    margin-top: 14px;
  }

  .profession {
    min-height: 77px;
    padding: 9px;
  }

  .creator-submit {
    margin-top: 17px;
  }

  .dialogue {
    bottom: 5%;
    min-height: 132px;
  }

  .portrait {
    min-height: 96px;
  }
}

/* Ucenic · Capitolul II */

.minimap-wrap {
  width: 250px;
  height: 154px;
  border-color: rgba(243, 216, 148, 0.34);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(224, 182, 89, 0.08);
}

.minimap-wrap:hover {
  border-color: rgba(243, 216, 148, 0.62);
}

.map-expand-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  min-height: 31px;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(246, 220, 160, 0.42);
  border-radius: 9px;
  background: rgba(9, 25, 21, 0.88);
  padding: 4px 6px;
  color: #fff1c9;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.map-expand-button:hover {
  border-color: rgba(255, 229, 166, 0.86);
  background: rgba(34, 70, 59, 0.96);
  transform: translateY(-1px);
}

.map-expand-button > span {
  font-size: 13px;
}

.map-expand-button small {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.map-expand-button kbd {
  min-width: 20px;
  height: 19px;
  border-radius: 5px;
  padding: 0 4px;
  font-size: 7px;
}

.interaction-prompt {
  border: 2px solid rgba(247, 207, 111, 0.72);
  background:
    radial-gradient(
      circle at 12% 50%,
      rgba(232, 184, 76, 0.24),
      transparent 42%
    ),
    rgba(9, 26, 21, 0.96);
  padding: 10px 17px 10px 9px;
  color: #fff5d7;
  font-size: 12px;
  font-weight: 750;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(231, 184, 78, 0.3),
    inset 0 0 18px rgba(240, 196, 98, 0.07);
  animation:
    prompt-in 300ms cubic-bezier(0.22, 1, 0.36, 1),
    interaction-glow 1.35s ease-in-out infinite;
}

.interaction-prompt kbd {
  min-width: 34px;
  height: 34px;
  border-color: rgba(255, 224, 153, 0.78);
  background: linear-gradient(145deg, #d79f3f, #876126);
  color: #fff9e8;
  font-size: 12px;
  box-shadow:
    0 3px 0 rgba(70, 45, 12, 0.7),
    0 0 18px rgba(246, 201, 96, 0.42);
}

@keyframes interaction-glow {
  50% {
    border-color: rgba(255, 231, 168, 0.98);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.4),
      0 0 44px rgba(244, 198, 91, 0.5),
      inset 0 0 24px rgba(240, 196, 98, 0.11);
  }
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 66;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(60, 95, 78, 0.28), transparent 42%),
    rgba(4, 12, 10, 0.84);
  padding: clamp(18px, 3vw, 44px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.world-map-card {
  width: min(1440px, 100%);
  max-height: 100%;
  overflow: auto;
  border: 1px solid rgba(239, 211, 147, 0.38);
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(249, 239, 214, 0.99),
    rgba(210, 193, 155, 0.99)
  );
  padding: clamp(18px, 2.2vw, 32px);
  color: #30291d;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.58);
  animation: modal-in 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.world-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.world-map-header small {
  color: #876d3c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.world-map-header h2 {
  margin: 4px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
}

.world-map-header p {
  margin: 0;
  color: #72654e;
  font-size: 10px;
}

.world-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 20px;
}

.world-map-canvas-wrap {
  position: relative;
  min-height: min(64vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(72, 59, 39, 0.28);
  border-radius: 18px;
  background: #85906e;
  box-shadow:
    inset 0 0 55px rgba(55, 43, 24, 0.26),
    0 14px 38px rgba(55, 43, 24, 0.15);
}

#world-map {
  display: block;
  width: 100%;
  height: 100%;
}

.world-map-compass {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(64, 49, 28, 0.3);
  border-radius: 50%;
  background: rgba(246, 231, 197, 0.88);
  color: #493a25;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(58, 42, 22, 0.18);
}

.world-map-compass::after {
  position: absolute;
  top: 2px;
  border-right: 5px solid transparent;
  border-bottom: 11px solid #a34e3d;
  border-left: 5px solid transparent;
  content: "";
}

.world-map-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid rgba(71, 57, 37, 0.16);
  border-radius: 17px;
  background: rgba(255, 250, 237, 0.46);
  padding: 17px;
}

.world-map-sidebar h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
}

.map-object-list {
  display: grid;
  gap: 8px;
}

.map-object-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(69, 56, 37, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
  padding: 8px;
}

.map-object-row > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #a66f2a;
  color: #fff8e4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(166, 111, 42, 0.14);
}

.map-object-row strong,
.map-object-row small {
  display: block;
}

.map-object-row strong {
  font-size: 10px;
}

.map-object-row small {
  margin-top: 2px;
  color: #7a6b53;
  font-size: 8px;
}

.map-object-row.collected {
  opacity: 0.56;
}

.map-object-row.collected > span {
  background: #577466;
}

.map-legend {
  display: grid;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(69, 56, 37, 0.14);
  padding-top: 16px;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #645841;
  font-size: 9px;
}

.map-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.legend-player {
  background: #fff7d3;
  filter: drop-shadow(0 0 3px #263d35);
  clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%);
}

.legend-objective {
  border: 2px solid #d89b38;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(216, 155, 56, 0.2);
}

.legend-place {
  border-radius: 2px;
  background: #eadbb4;
  box-shadow: inset 0 0 0 1px #7c6948;
}

.world-map-sidebar > p {
  margin: 14px 0 0;
  color: #84765f;
  font-size: 8px;
  text-align: center;
}

.world-map-sidebar kbd,
.storm-card kbd {
  border-color: rgba(54, 43, 28, 0.23);
  background: rgba(71, 56, 35, 0.09);
  color: #423521;
  box-shadow: 0 2px 0 rgba(66, 50, 29, 0.13);
}

.bible-quiz-card {
  width: min(650px, calc(100% - 40px));
  text-align: left;
}

.quiz-progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: #8a734e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.bible-quiz-card h2 {
  text-align: center;
}

.bible-quiz-card .quiz-reference {
  margin: 0 auto 16px;
  color: #a36e27;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.bible-quiz-card .quiz-question {
  max-width: 540px;
  margin: 0 auto 16px;
  color: #3f3425;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.48;
  text-align: center;
}

.quiz-options {
  display: grid;
  gap: 9px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(67, 54, 35, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  padding: 10px 12px;
  color: #493b28;
  text-align: left;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.quiz-option:hover {
  border-color: rgba(174, 126, 48, 0.55);
  background: rgba(255, 251, 240, 0.72);
  transform: translateY(-1px);
}

.quiz-option > span:first-child {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(87, 68, 39, 0.2);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 900;
}

.quiz-option.correct {
  border-color: rgba(60, 118, 90, 0.58);
  background: rgba(90, 151, 119, 0.16);
}

.quiz-option.wrong {
  border-color: rgba(168, 72, 57, 0.55);
  background: rgba(178, 75, 59, 0.12);
}

.bible-quiz-card .quiz-feedback {
  min-height: 18px;
  margin-top: 13px;
  color: #77684f;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.bible-quiz-card .quiz-feedback.success {
  color: #3c755c;
}

.bible-quiz-card .quiz-feedback.miss {
  color: #9c493b;
}

.storm-overlay {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(106, 139, 145, 0.22),
      transparent 38%
    ),
    rgba(4, 12, 15, 0.88);
}

.storm-card {
  width: min(680px, calc(100% - 40px));
}

.storm-scene {
  position: relative;
  height: 150px;
  margin: 18px 0 13px;
  overflow: hidden;
  border: 1px solid rgba(42, 60, 62, 0.25);
  border-radius: 15px;
  background: linear-gradient(to bottom, #536d70 0 48%, #316272 49% 100%);
  box-shadow: inset 0 0 45px rgba(13, 31, 35, 0.35);
}

.storm-cloud {
  position: absolute;
  top: 20px;
  width: 180px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 48, 51, 0.82);
  filter: blur(2px);
  animation: storm-clouds 5s linear infinite;
}

.storm-cloud::before,
.storm-cloud::after {
  position: absolute;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.storm-cloud::before {
  top: -16px;
  left: 36px;
  width: 74px;
  height: 64px;
}

.storm-cloud::after {
  top: -4px;
  right: 20px;
  width: 68px;
  height: 55px;
}

.storm-cloud-a {
  left: -20px;
}

.storm-cloud-b {
  top: 9px;
  left: 62%;
  animation-delay: -2.2s;
}

@keyframes storm-clouds {
  50% {
    transform: translateX(28px);
  }
}

.storm-wave {
  position: absolute;
  right: -10%;
  bottom: -62px;
  left: -10%;
  height: 105px;
  border: 5px solid rgba(193, 225, 222, 0.62);
  border-radius: 48%;
  animation: storm-waves 1.6s ease-in-out infinite alternate;
}

.storm-wave-b {
  right: -18%;
  bottom: -73px;
  left: -2%;
  border-color: rgba(143, 201, 202, 0.5);
  animation-delay: -0.8s;
}

@keyframes storm-waves {
  to {
    transform: translateX(26px) translateY(-9px) rotate(-1.5deg);
  }
}

.storm-boat {
  position: absolute;
  bottom: 33px;
  left: 50%;
  z-index: 2;
  font-size: 46px;
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, 0.42));
  transform: translateX(-50%) rotate(-4deg);
  animation: storm-boat 1.2s ease-in-out infinite alternate;
}

@keyframes storm-boat {
  to {
    transform: translateX(-50%) translateY(6px) rotate(7deg);
  }
}

.balance-meter {
  position: relative;
  height: 24px;
  margin: 16px 9px 10px;
  border: 1px solid rgba(50, 42, 29, 0.18);
  border-radius: 99px;
  background:
    linear-gradient(
      90deg,
      rgba(157, 58, 48, 0.2),
      transparent 28% 72%,
      rgba(157, 58, 48, 0.2)
    ),
    rgba(76, 62, 41, 0.1);
}

.balance-safe-zone {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 34%;
  width: 32%;
  border-radius: 99px;
  background: linear-gradient(90deg, #bd8d3c, #efd07e, #bd8d3c);
  box-shadow: 0 0 22px rgba(208, 157, 62, 0.35);
}

#storm-balance-marker {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 5px;
  height: 36px;
  border-radius: 99px;
  background: #244d47;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.86),
    0 5px 12px rgba(28, 44, 40, 0.3);
  transform: translateX(-50%);
}

.storm-progress {
  height: 7px;
  margin: 15px 9px 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(73, 59, 39, 0.12);
}

.storm-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f7568, #77aa8f);
  box-shadow: 0 0 14px rgba(67, 124, 101, 0.38);
  transition: width 100ms linear;
}

.storm-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 9px 0;
  color: #74654d;
  font-size: 9px;
}

.storm-status strong {
  color: #3c5f55;
}

.storm-status.danger {
  color: #a3473c;
}

.storm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.storm-actions .secondary-button {
  min-height: 46px;
}

.chapter-two-ending {
  overflow-y: auto;
  padding: 28px 0;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(154, 212, 210, 0.28),
      transparent 32%
    ),
    linear-gradient(to bottom, rgba(24, 58, 62, 0.48), rgba(6, 20, 20, 0.94));
}

.support-ending-card {
  margin: auto;
  padding-top: 30px;
  padding-bottom: 30px;
}

.support-box {
  max-width: 555px;
  margin: 20px auto 0;
  border: 1px solid rgba(236, 202, 126, 0.24);
  border-radius: 16px;
  background: rgba(244, 221, 169, 0.07);
  padding: 18px 20px;
}

.support-box > span {
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.support-box h3 {
  margin: 5px 0 7px;
  color: #f5e7c2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.support-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.55;
}

.support-box a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  border: 1px solid rgba(248, 218, 146, 0.5);
  border-radius: 11px;
  background: linear-gradient(135deg, #d4a445, #8f6729);
  padding: 10px 18px;
  color: #fff8e6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.support-box a:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.support-box small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
}

body[data-mode="ending-two"] .hud-top,
body[data-mode="ending-two"] .quest-panel,
body[data-mode="ending-two"] .minimap-wrap,
body[data-mode="ending-two"] .status-panel,
body[data-mode="ending-two"] .virtues,
body[data-mode="ending-two"] .inventory,
body[data-mode="ending-two"] .journal-button {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1180px), (max-height: 760px) {
  .world-map-layout {
    grid-template-columns: minmax(0, 1fr) 215px;
  }

  .world-map-canvas-wrap {
    min-height: 500px;
  }

  .world-map-sidebar {
    padding: 13px;
  }

  .minimap-wrap {
    width: 220px;
    height: 136px;
  }

  .support-ending-card {
    padding: 24px 34px;
  }
}

/* Capitolele III–IV · misiuni și jocuri biblice */

.title-actions {
  width: min(560px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
}

.title-actions #new-game-button {
  grid-column: 1 / -1;
}

.title-actions .secondary-button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
}

.testimony-card,
.meal-card {
  width: min(690px, calc(100% - 40px));
}

.testimony-progress,
.meal-progress-line {
  height: 9px;
  margin: 22px 0 17px;
  overflow: hidden;
  border: 1px solid rgba(71, 55, 32, 0.16);
  border-radius: 99px;
  background: rgba(75, 60, 38, 0.12);
}

.testimony-progress > span,
.meal-progress-line > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8c6730, #e1b85e, #f0d17f);
  box-shadow: 0 0 18px rgba(199, 147, 58, 0.34);
  transition: width 280ms ease;
}

.testimony-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.testimony-option {
  display: grid;
  min-height: 78px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(67, 54, 35, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.36);
  padding: 11px;
  color: #493b28;
  text-align: left;
}

.testimony-option > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(87, 68, 39, 0.22);
  border-radius: 9px;
  font-weight: 850;
}

.testimony-option:hover,
.testimony-option.current {
  border-color: rgba(177, 128, 45, 0.62);
  background: rgba(255, 250, 232, 0.86);
}

.testimony-option.selected {
  border-color: rgba(60, 118, 90, 0.58);
  background: rgba(90, 151, 119, 0.16);
  color: #315c49;
}

.meal-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 20px 0;
}

.meal-group {
  min-height: 110px;
  border: 1px solid rgba(67, 54, 35, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.31);
  padding: 14px 10px;
  color: #4c3d29;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.meal-group span {
  display: block;
  margin-bottom: 8px;
  font-size: 25px;
}

.meal-group strong {
  display: block;
  font-size: 14px;
}

.meal-group small {
  display: block;
  margin-top: 5px;
  color: #837155;
}

.meal-group.waiting {
  border-color: rgba(184, 126, 35, 0.76);
  background: rgba(241, 201, 111, 0.25);
  box-shadow:
    0 0 0 4px rgba(218, 166, 65, 0.11),
    0 12px 28px rgba(112, 74, 19, 0.12);
  transform: translateY(-3px);
}

.meal-group.served {
  animation: meal-served 360ms ease;
}

@keyframes meal-served {
  50% {
    border-color: rgba(60, 118, 90, 0.72);
    background: rgba(90, 151, 119, 0.22);
    transform: scale(1.03);
  }
}

.chapter-three-ending,
.chapter-four-ending {
  overflow-y: auto;
  padding: 28px 0;
}

.chapter-three-ending {
  background:
    radial-gradient(circle at 50% 20%, rgba(229, 190, 111, 0.28), transparent 32%),
    linear-gradient(to bottom, rgba(56, 65, 41, 0.48), rgba(10, 22, 17, 0.95));
}

.chapter-four-ending {
  background:
    radial-gradient(circle at 50% 18%, rgba(141, 200, 203, 0.34), transparent 31%),
    linear-gradient(to bottom, rgba(24, 59, 67, 0.54), rgba(5, 17, 20, 0.96));
}

.chapter-three-ending .ending-card,
.chapter-four-ending .ending-card {
  margin: auto;
}

body[data-mode="ending-three"] .hud-top,
body[data-mode="ending-three"] .quest-panel,
body[data-mode="ending-three"] .minimap-wrap,
body[data-mode="ending-three"] .status-panel,
body[data-mode="ending-three"] .virtues,
body[data-mode="ending-three"] .inventory,
body[data-mode="ending-three"] .journal-button,
body[data-mode="ending-four"] .hud-top,
body[data-mode="ending-four"] .quest-panel,
body[data-mode="ending-four"] .minimap-wrap,
body[data-mode="ending-four"] .status-panel,
body[data-mode="ending-four"] .virtues,
body[data-mode="ending-four"] .inventory,
body[data-mode="ending-four"] .journal-button {
  opacity: 0;
  pointer-events: none;
}

@media (max-height: 800px) {
  .title-content h1 {
    font-size: clamp(54px, 6.2vw, 82px);
  }

  .title-symbol {
    margin-top: 8px;
  }

  .title-divider {
    margin-top: 10px;
  }

  .title-description {
    margin-top: 9px;
    line-height: 1.45;
  }

  .title-actions {
    gap: 7px;
    margin-top: 13px;
  }

  .chapter-four-ending .ending-card {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}

@media (max-width: 980px) {
  .title-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .interaction-prompt,
  .storm-cloud,
  .storm-wave,
  .storm-boat {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Desktop polish · v3.1 */

#game-shell,
#game-shell * {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal;
}

small {
  font-size: 10px !important;
  line-height: 1.3;
}

.brand strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.location-pill span,
.quest-heading span {
  font-size: 10px;
}

.location-pill strong {
  font-size: 15px;
  font-weight: 700;
}

.quest-panel {
  width: 340px;
}

.quest-heading strong {
  font-size: 11px;
}

.quest-panel h2 {
  font-size: 22px;
  font-weight: 700;
}

.quest-panel p {
  min-height: 42px;
  font-size: 14px;
  line-height: 1.5;
}

.quest-panel > small {
  font-size: 10px !important;
}

.minimap-north {
  font-size: 12px;
  font-weight: 700;
}

.minimap-label,
.map-expand-button small {
  font-size: 10px !important;
}

.bar-row,
.bar-row strong {
  font-size: 11px;
}

.virtue small,
.inventory-title,
.inventory-slot small,
.journal-button small {
  font-size: 10px !important;
}

.virtue strong {
  font-size: 16px;
}

.journal-button strong {
  font-size: 12px;
}

.interaction-prompt {
  font-size: 14px;
}

.torch-hint,
.desktop-controls {
  font-size: 10px;
}

.desktop-controls kbd,
.map-expand-button kbd {
  font-size: 9px;
}

.speaker-line > span {
  font-size: 18px;
  font-weight: 700;
}

.speaker-line small,
.dialogue-next,
.dialogue-choices button small {
  font-size: 10px !important;
}

.dialogue-copy > p {
  font-size: clamp(17px, 1.35vw, 21px);
}

.dialogue-choices button span {
  font-size: 14px;
}

.title-kicker,
.step-label,
.creator-card label > span,
.creator-card legend {
  font-size: 10px;
}

.title-description,
.creator-copy > p,
.pause-card > p,
.ending-card > p {
  font-size: 15px;
}

.objective-flash span {
  font-size: 18px;
  font-weight: 700;
}

.area-toast small,
.area-toast span,
.skip-hint {
  font-size: 10px !important;
}

.toast {
  font-size: 13px;
}

.map-overlay {
  overflow: hidden;
  padding: 18px;
}

.world-map-card {
  display: flex;
  width: min(1440px, 100%);
  height: auto;
  max-height: calc(100vh - 36px);
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
}

.world-map-header {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.world-map-header small {
  font-size: 11px !important;
}

.world-map-header h2 {
  margin: 5px 0;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 750;
}

.world-map-header p {
  font-size: 14px;
  line-height: 1.4;
}

.world-map-layout {
  display: grid;
  min-height: 0;
  flex: 0 1 auto;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.world-map-canvas-wrap {
  width: 100%;
  min-height: 0;
  max-height: 100%;
  align-self: center;
  aspect-ratio: 1100 / 680;
}

.world-map-compass {
  width: 46px;
  height: 46px;
  font-size: 17px;
  font-weight: 700;
}

.world-map-sidebar {
  min-height: 0;
  overflow: auto;
  padding: 19px;
}

.world-map-sidebar h3 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 750;
}

.map-object-list {
  gap: 10px;
}

.map-object-row {
  grid-template-columns: 36px 1fr;
  gap: 11px;
  padding: 11px;
}

.map-object-row > span {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.map-object-row strong {
  font-size: 13px;
  line-height: 1.25;
}

.map-object-row small {
  margin-top: 3px;
  font-size: 11px !important;
  line-height: 1.35;
}

.map-object-row.objective-row {
  border-color: rgba(174, 117, 36, 0.3);
  background: rgba(255, 248, 226, 0.58);
}

.map-legend span {
  font-size: 11px;
}

.world-map-sidebar > p {
  font-size: 10px;
}

@media (max-width: 1180px), (max-height: 760px) {
  .world-map-card {
    padding: 18px;
  }

  .world-map-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 14px;
  }

  .world-map-canvas-wrap {
    min-height: 0;
  }

  .world-map-sidebar {
    padding: 14px;
  }

  .map-object-row {
    padding: 8px;
  }
}

/* Capitolele V–VI · v5.0 */

.title-actions {
  width: min(760px, 100%);
}

.title-actions #chapter-five-button,
.title-actions #chapter-six-button {
  min-height: 46px;
}

@media (min-width: 981px) {
  .title-actions {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .title-actions #new-game-button {
    grid-column: 1 / -1;
  }

  .title-actions .secondary-button {
    grid-column: span 2;
  }

  .title-actions #chapter-five-button,
  .title-actions #chapter-six-button {
    grid-column: span 3;
  }
}

.heart-card,
.allocation-card,
.focus-card,
.words-card {
  width: min(720px, calc(100% - 40px));
}

.heart-note,
.allocation-card > p,
.focus-card > p,
.words-card > p {
  font-size: 15px;
  line-height: 1.55;
}

.heart-progress-line,
.allocation-progress-line,
.words-progress-line {
  height: 10px;
  margin: 19px 0;
  overflow: hidden;
  border: 1px solid rgba(69, 55, 33, 0.17);
  border-radius: 999px;
  background: rgba(72, 59, 39, 0.11);
}

.heart-progress-line > span,
.allocation-progress-line > span,
.words-progress-line > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #725b31, #d3a84f, #efd480);
  box-shadow: 0 0 18px rgba(190, 138, 48, 0.34);
  transition: width 260ms ease;
}

.heart-prompt {
  display: grid;
  min-height: 112px;
  place-items: center;
  margin: 12px 0 18px;
  border: 1px solid rgba(74, 58, 34, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(235, 199, 119, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.34);
  padding: 22px;
  color: #3d3324;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.heart-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.heart-actions button {
  min-height: 66px;
}

.heart-actions button span,
.focus-card .primary-button span {
  display: block;
  font-size: 14px;
}

.heart-actions button small,
.focus-card .primary-button small {
  display: block;
  margin-top: 3px;
}

.allocation-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 19px 0;
}

.allocation-group {
  min-height: 126px;
  border: 1px solid rgba(67, 54, 35, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.33);
  padding: 13px 9px;
  color: #493b29;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.allocation-group:hover:not(:disabled) {
  border-color: rgba(176, 124, 39, 0.66);
  background: rgba(255, 248, 225, 0.82);
  transform: translateY(-2px);
}

.allocation-group > span {
  display: block;
  margin-bottom: 8px;
  font-size: 27px;
}

.allocation-group strong {
  display: block;
  min-height: 34px;
  font-size: 13px;
  line-height: 1.25;
}

.allocation-group small {
  display: block;
  margin-top: 7px;
  color: #806c4d;
}

.allocation-group.satisfied {
  border-color: rgba(53, 111, 84, 0.52);
  background: rgba(86, 151, 117, 0.14);
}

.allocation-group.full {
  opacity: 0.72;
}

.focus-scene {
  position: relative;
  height: 170px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(53, 73, 57, 0.2);
  border-radius: 17px;
  background:
    linear-gradient(to bottom, rgba(124, 159, 146, 0.72), rgba(177, 181, 128, 0.82) 66%, rgba(111, 121, 76, 0.84));
  filter: blur(8px);
  transition: filter 550ms ease;
}

.focus-scene.phase-two {
  filter: blur(3px);
}

.focus-scene.clear {
  filter: blur(0);
}

.focus-person,
.focus-tree {
  position: absolute;
  bottom: 20px;
  border-radius: 48% 48% 18% 18%;
  background: #304f42;
}

.focus-person {
  width: 23px;
  height: 80px;
}

.focus-person::before {
  position: absolute;
  top: -17px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #9a6d4c;
  content: "";
}

.focus-person-a {
  left: 29%;
}

.focus-person-b {
  left: 63%;
  height: 70px;
}

.focus-tree {
  right: 17%;
  width: 16px;
  height: 92px;
  border-radius: 5px;
  background: #5c5639;
}

.focus-tree::before {
  position: absolute;
  top: -34px;
  left: -24px;
  width: 64px;
  height: 60px;
  border-radius: 50%;
  background: #496a4e;
  content: "";
}

.focus-meter {
  position: relative;
  height: 24px;
  margin: 19px 0;
  border: 1px solid rgba(54, 48, 35, 0.22);
  border-radius: 999px;
  background: linear-gradient(90deg, #7a6650, #c7b782, #7a6650);
}

.focus-zone {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 39%;
  width: 22%;
  border-radius: inherit;
  background: rgba(255, 237, 148, 0.88);
  box-shadow: 0 0 18px rgba(250, 210, 91, 0.72);
  transition:
    left 280ms ease,
    width 280ms ease;
}

.focus-meter > i {
  position: absolute;
  top: -8px;
  left: 0;
  width: 7px;
  height: 38px;
  border-radius: 99px;
  background: #274c42;
  box-shadow: 0 0 0 3px rgba(255, 250, 224, 0.7);
  transform: translateX(-50%);
}

.focus-card .primary-button {
  width: 100%;
}

.words-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.word-option {
  min-height: 66px;
  border: 1px solid rgba(68, 54, 34, 0.19);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.35);
  color: #463827;
  font-size: 17px;
  font-weight: 750;
}

.word-option:hover:not(:disabled) {
  border-color: rgba(178, 128, 44, 0.68);
  background: rgba(255, 249, 228, 0.86);
}

.word-option.selected {
  border-color: rgba(55, 112, 86, 0.58);
  background: rgba(88, 151, 118, 0.17);
  color: #315c49;
}

.chapter-five-ending,
.chapter-six-ending {
  overflow-y: auto;
  padding: 28px 0;
}

.chapter-five-ending {
  background:
    radial-gradient(circle at 50% 18%, rgba(229, 194, 118, 0.3), transparent 32%),
    linear-gradient(to bottom, rgba(52, 70, 47, 0.52), rgba(9, 21, 16, 0.96));
}

.chapter-six-ending {
  background:
    radial-gradient(circle at 50% 12%, rgba(247, 225, 153, 0.38), transparent 31%),
    linear-gradient(to bottom, rgba(46, 66, 65, 0.54), rgba(6, 16, 18, 0.97));
}

.chapter-five-ending .ending-card,
.chapter-six-ending .ending-card {
  margin: auto;
}

body[data-mode="ending-five"] .hud-top,
body[data-mode="ending-five"] .quest-panel,
body[data-mode="ending-five"] .minimap-wrap,
body[data-mode="ending-five"] .status-panel,
body[data-mode="ending-five"] .virtues,
body[data-mode="ending-five"] .inventory,
body[data-mode="ending-five"] .journal-button,
body[data-mode="ending-six"] .hud-top,
body[data-mode="ending-six"] .quest-panel,
body[data-mode="ending-six"] .minimap-wrap,
body[data-mode="ending-six"] .status-panel,
body[data-mode="ending-six"] .virtues,
body[data-mode="ending-six"] .inventory,
body[data-mode="ending-six"] .journal-button {
  opacity: 0;
  pointer-events: none;
}

@media (max-height: 800px) {
  .title-actions {
    width: min(720px, 100%);
    gap: 6px;
    margin-top: 10px;
  }

  .title-actions .secondary-button,
  .title-actions #chapter-five-button,
  .title-actions #chapter-six-button {
    min-height: 39px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .chapter-six-ending .ending-card {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

@media (max-width: 900px) {
  .allocation-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .allocation-group {
    min-height: 104px;
  }
}

/* Lumea extinsă · v6.1 */

.coin-pill {
  display: grid;
  min-width: 96px;
  height: 42px;
  grid-template-columns: 22px 1fr;
  grid-template-rows: 20px 12px;
  align-items: center;
  border: 1px solid rgba(238, 203, 123, 0.25);
  border-radius: 13px;
  background: rgba(13, 29, 25, 0.8);
  padding: 5px 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.coin-pill > span {
  grid-row: 1 / 3;
  color: var(--gold-bright);
  font-size: 17px;
}

.coin-pill strong {
  color: #fff3c9;
  font-size: 14px;
  line-height: 1;
}

.coin-pill small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.resume-world-button {
  grid-column: 1 / -1 !important;
  border-color: #f0d58e;
  background: linear-gradient(135deg, #e0b85d, #f5db93);
}

.text-button {
  border: 0;
  background: transparent;
  padding: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: #f2d895;
}

.chapter-meaning {
  max-width: 560px;
  margin: 18px auto 0;
  border: 1px solid rgba(235, 204, 132, 0.22);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(238, 208, 139, 0.1), rgba(255, 255, 255, 0.035));
  padding: 13px 17px;
  text-align: left;
}

.chapter-meaning > span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.chapter-meaning > strong {
  display: block;
  color: #fff2cc;
  font-size: 14px;
  line-height: 1.35;
}

.chapter-meaning > p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.ending-screen,
.chapter-two-ending,
.chapter-three-ending,
.chapter-four-ending,
.chapter-five-ending,
.chapter-six-ending {
  overflow-y: auto;
  padding: 24px 0;
}

.ending-card {
  margin: auto;
}

.support-ending-card {
  width: min(780px, calc(100% - 40px));
}

.map-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 15px;
  border-radius: 10px;
  background: rgba(80, 65, 40, 0.08);
  padding: 4px;
}

.map-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px;
  color: #76674e;
  font-size: 11px;
  font-weight: 800;
}

.map-tabs button.active {
  background: #315c50;
  color: #fff5d8;
  box-shadow: 0 6px 16px rgba(32, 58, 50, 0.2);
}

.map-object-row.city-locked {
  border-style: dashed;
  opacity: 0.74;
}

.map-object-row.city-locked > span {
  background: #766d5b;
}

.map-object-row.city-discovered > span {
  background: #315f52;
}

.legend-city {
  border: 2px solid #315f52;
  border-radius: 50%;
  background: #e9d89f;
}

.city-mission-overlay,
.survival-overlay,
.shop-overlay {
  z-index: 69;
  display: grid;
  place-items: center;
  background: rgba(4, 13, 11, 0.82);
  padding: 24px;
  backdrop-filter: blur(13px);
}

.city-mission-card,
.survival-card,
.shop-card {
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(234, 205, 139, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 4%, rgba(226, 190, 109, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(248, 239, 216, 0.99), rgba(218, 202, 165, 0.99));
  padding: clamp(22px, 3vw, 34px);
  color: #30291e;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
  animation: modal-in 330ms cubic-bezier(0.22, 1, 0.36, 1);
}

.city-mission-card > header,
.shop-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.city-mission-card header span,
.shop-card header span {
  color: #8c6c34;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.city-mission-card h2,
.survival-card h2,
.shop-card h2 {
  margin: 5px 0 0;
  color: #27372f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.city-passage {
  margin-top: 20px;
  border-left: 4px solid #b17b32;
  border-radius: 0 13px 13px 0;
  background: rgba(255, 252, 239, 0.58);
  padding: 13px 16px;
}

.city-passage small {
  display: block;
  color: #88704a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.city-passage strong {
  display: block;
  margin-top: 3px;
  color: #805a28;
  font-size: 14px;
}

.city-passage p,
.city-mission-story,
.shop-card header p {
  margin: 7px 0 0;
  color: #665b48;
  font-size: 14px;
  line-height: 1.55;
}

.city-mission-story {
  margin-top: 17px;
}

.city-mission-options {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.city-mission-options button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(69, 56, 36, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 244, 0.55);
  padding: 11px 13px;
  color: #3b3428;
  text-align: left;
}

.city-mission-options button:hover {
  border-color: rgba(151, 105, 42, 0.45);
  background: rgba(255, 250, 232, 0.9);
  transform: translateY(-1px);
}

.city-mission-options button > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #315c50;
  color: #fff5d8;
  font-size: 12px;
  font-weight: 800;
}

.city-mission-options button.correct {
  border-color: #4d7c66;
  background: rgba(82, 129, 102, 0.14);
}

.city-mission-options button.wrong {
  border-color: #a95748;
  background: rgba(169, 87, 72, 0.12);
}

.city-mission-feedback,
.shop-feedback {
  min-height: 22px;
  margin: 13px 0 0;
  color: #706148;
  font-size: 12px;
  font-weight: 700;
}

.city-mission-feedback.success,
.shop-feedback.success {
  color: #315f52;
}

.city-mission-feedback.miss,
.shop-feedback.miss {
  color: #994c40;
}

.city-mission-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 17px;
  border-top: 1px solid rgba(68, 55, 35, 0.14);
  padding-top: 13px;
  color: #726348;
  font-size: 10px;
}

.city-mission-footer > span {
  color: #805b28;
  font-weight: 800;
}

.survival-card {
  width: min(660px, calc(100vw - 48px));
  text-align: center;
}

.survival-card > p {
  color: #665b48;
  font-size: 14px;
  line-height: 1.55;
}

.survival-card kbd {
  border-color: rgba(54, 43, 28, 0.23);
  background: rgba(71, 56, 35, 0.09);
  color: #423521;
}

.survival-scene {
  position: relative;
  height: 130px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(to top, rgba(99, 104, 68, 0.88) 0 34%, transparent 35%),
    linear-gradient(150deg, #7ba3a0, #c1b989 58%, #9a9e6b);
  box-shadow: inset 0 0 35px rgba(38, 50, 42, 0.18);
}

.survival-wind {
  position: absolute;
  width: 220px;
  height: 2px;
  border-radius: 99px;
  background: rgba(247, 240, 205, 0.64);
  animation: survival-wind 1.35s linear infinite;
}

.wind-a {
  top: 36px;
  left: -220px;
}

.wind-b {
  top: 67px;
  left: -290px;
  animation-delay: 0.46s;
}

@keyframes survival-wind {
  to { transform: translateX(900px); }
}

.survival-avatar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid rgba(255, 239, 190, 0.8);
  border-radius: 50%;
  background: #315c50;
  color: #f3d889;
  box-shadow: 0 8px 24px rgba(19, 38, 31, 0.3);
  transform: translateX(-50%);
}

.survival-meter {
  position: relative;
  height: 18px;
  border: 2px solid rgba(74, 59, 36, 0.18);
  border-radius: 99px;
  background: rgba(78, 65, 43, 0.16);
}

.survival-safe-zone {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 42%;
  width: 16%;
  border-radius: 99px;
  background: linear-gradient(90deg, #bf8c36, #e8c66f);
  box-shadow: 0 0 18px rgba(198, 146, 53, 0.4);
}

#survival-marker {
  position: absolute;
  top: -5px;
  left: 0;
  width: 7px;
  height: 25px;
  border-radius: 5px;
  background: #223d34;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.survival-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 2px 16px;
  color: #706148;
  font-size: 11px;
}

.survival-status strong {
  color: #805b28;
}

.survival-card .primary-button {
  width: 100%;
}

.shop-card {
  width: min(820px, calc(100vw - 48px));
}

.shop-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
  border-radius: 12px;
  background: rgba(49, 92, 80, 0.1);
  padding: 10px 13px;
  color: #5d513e;
  font-size: 12px;
}

.shop-balance strong {
  color: #7f5927;
  font-size: 17px;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shop-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(68, 55, 35, 0.15);
  border-radius: 14px;
  background: rgba(255, 253, 244, 0.5);
  padding: 12px;
}

.shop-item > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #315c50;
  color: #f5dc99;
  font-size: 20px;
}

.shop-item strong,
.shop-item small {
  display: block;
}

.shop-item strong {
  color: #30291e;
  font-size: 13px;
}

.shop-item small {
  margin-top: 3px;
  color: #776950;
  font-size: 10px;
  line-height: 1.35;
}

.shop-item button {
  border: 0;
  border-radius: 9px;
  background: #a96f2b;
  padding: 8px 10px;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.shop-item button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.city-discovery {
  position: absolute;
  top: 16%;
  left: 50%;
  z-index: 72;
  width: min(560px, calc(100% - 44px));
  border: 1px solid rgba(238, 207, 137, 0.45);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(16, 43, 35, 0.97), rgba(7, 23, 19, 0.97));
  padding: 20px 26px;
  color: white;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.52);
  transform: translateX(-50%);
  animation: discovery-in 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.city-discovery > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.city-discovery > strong {
  display: block;
  margin-top: 5px;
  color: #fff0c4;
  font-size: clamp(28px, 4vw, 42px);
}

.city-discovery > p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.5;
}

.city-discovery > small {
  display: block;
  margin-top: 8px;
  color: #e2bd69;
  font-size: 10px;
  font-weight: 800;
}

@keyframes discovery-in {
  from { opacity: 0; transform: translate(-50%, -16px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

body[data-mode="city-mission"] .desktop-controls,
body[data-mode="survival"] .desktop-controls,
body[data-mode="shop"] .desktop-controls {
  opacity: 0.25;
}

@media (min-width: 981px) {
  .title-actions {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .title-actions #resume-world-button,
  .title-actions #new-game-button {
    grid-column: 1 / -1;
  }
}

@media (max-height: 820px) {
  .chapter-meaning {
    margin-top: 12px;
    padding: 10px 14px;
  }

  .chapter-meaning > p {
    font-size: 11px;
  }

  .ending-card {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

@media (max-width: 760px) {
  .coin-pill {
    display: none;
  }

  .shop-items {
    grid-template-columns: 1fr;
  }

  .city-mission-footer {
    flex-direction: column;
  }
}
