.l2-starter-story-intro,
.l2-starter-story-note,
.l2-starter-story-location,
.l2-starter-story-reward-title {
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.42;
}

.l2-starter-story-note {
  color: #c8b994;
}

.l2-starter-story-location {
  color: #d7c38d;
}

.l2-starter-story-targets,
.l2-starter-story-rewards {
  list-style: none;
  margin: 6px 0;
  padding: 0;
}

.l2-starter-story-target {
  margin: 4px 0;
  padding: 2px 0;
  font-size: 12px;
  line-height: 1.38;
}

.l2-starter-story-star {
  color: #ffdf8c;
  font-weight: 800;
  text-shadow: 0 0 4px rgba(255, 223, 140, 0.28);
}

.l2-starter-story-progress {
  color: #e6bd69;
  font-weight: 700;
}

.l2-starter-story-done {
  color: #83b978;
  font-weight: 700;
}

.l2-starter-story-reward {
  margin: 10px 0 7px;
  padding: 0;
  border: 0;
  background: transparent;
}

.l2-starter-story-reward + .l2-starter-story-reward {
  margin-top: 13px;
}

.l2-starter-story-reward-title {
  margin: 0 0 5px;
  color: #e6bd69;
  font-weight: 800;
}

.l2-starter-story-reward-currency {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0 0 7px;
  color: #d5d0c4;
  font-size: 12px;
}

.l2-starter-story-reward-value {
  font-weight: 800;
}

.l2-starter-story-reward-value--adena {
  color: #e8c66a;
}

.l2-starter-story-reward-value--exp {
  color: #7db9d8;
}

.l2-starter-story-reward-value--sp {
  color: #c39ae8;
}

.l2-starter-story-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  margin: 5px 0 9px;
}

.l2-starter-story-resource {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 0;
  background: transparent;
  border: 0;
  font-size: 11px;
  line-height: 1.25;
}

.l2-starter-story-resource img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 1px solid rgba(197, 158, 91, 0.42);
}

.l2-starter-story-resource-name {
  min-width: 0;
  color: #d7c38d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l2-starter-story-resource-qty {
  color: #f0e5ca;
  font-weight: 800;
}

.l2-starter-story-belt {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid rgba(190, 153, 90, 0.32);
}

.l2-starter-story-belt__main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.l2-starter-story-belt__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border: 1px solid rgba(221, 180, 102, 0.56);
  box-shadow: 0 0 8px rgba(212, 164, 79, 0.12);
}

.l2-starter-story-belt__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.l2-starter-story-belt__eyebrow {
  color: #c99a52;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.l2-starter-story-belt__name {
  color: #f0d58f;
  font-size: 13px;
  line-height: 1.25;
}

.l2-starter-story-belt__grade {
  color: #91a9c9;
  font-size: 10px;
}

.l2-starter-story-belt__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
  margin-top: 6px;
}

.l2-starter-story-belt__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
}

.l2-starter-story-belt__stat-label {
  min-width: 0;
  color: #bdb5a7;
}

.l2-starter-story-belt__stat-value {
  flex: 0 0 auto;
  font-weight: 900;
}

.l2-starter-story-belt__stat-value--hp {
  color: #e6776c;
}

.l2-starter-story-belt__stat-value--run {
  color: #7fc8a5;
}

.l2-starter-story-belt__stat-value--physicalCrit {
  color: #e8b55f;
}

.l2-starter-story-belt__stat-value--magicCrit {
  color: #b89be7;
}

.l2-starter-story-min-level {
  color: #cf6a5d;
  font-weight: 700;
}

@media (max-width: 420px) {
  .l2-starter-story-target,
  .l2-starter-story-intro,
  .l2-starter-story-note,
  .l2-starter-story-location {
    font-size: 11px;
  }

  .l2-starter-story-resources,
  .l2-starter-story-belt__stats {
    grid-template-columns: 1fr;
  }

  .l2-starter-story-reward-currency {
    gap: 4px 8px;
    font-size: 11px;
  }
}


.l2-starter-story-target__location,
.l2-starter-story-location--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.l2-starter-story-target__location {
  margin-top: 3px;
}

.l2-starter-story-teleport-btn {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.1;
}

@media (max-width: 420px) {
  .l2-starter-story-target__location,
  .l2-starter-story-location--with-action {
    align-items: flex-start;
  }

  .l2-starter-story-teleport-btn {
    min-width: 72px;
  }
}


.l2-starter-story-objective-line,
.l2-starter-story-raid {
  margin: 6px 0;
  font-size: 12px;
  line-height: 1.38;
}

.l2-starter-story-raid {
  padding: 4px 0;
  border: 0;
  background: transparent;
}

.l2-dion-campaign-cloak .l2-starter-story-belt__grade {
  color: #88bde8;
}

.l2-starter-story-belt__stat-value--pdef {
  color: #7fc8a5;
}

.l2-starter-story-belt__stat-value--mdef {
  color: #b89be7;
}


/* Giran 40+ campaign — primary action like the framed “Назад до міста” control. */
.l2-page-captain-andrei #giran-campaign-actions {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

.l2-page-captain-andrei #giran-campaign-actions .l2-giran-campaign-primary-action {
  display: flex;
  width: min(100%, 520px);
  min-width: 0;
  max-width: 520px;
  min-height: 58px;
  margin: 0 auto 10px;
  padding: 14px 18px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: var(--l2-font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  border: 2px solid #6b543f;
  border-radius: 12px;
  background: linear-gradient(180deg, #4b4135 0%, #342b22 52%, #211a14 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.42);
}

.l2-page-captain-andrei #giran-campaign-actions .l2-giran-campaign-primary-action:hover,
.l2-page-captain-andrei #giran-campaign-actions .l2-giran-campaign-primary-action:focus {
  color: #fff;
  border-color: #8a6b49;
  outline: none;
  filter: brightness(1.08);
}

@media (max-width: 420px) {
  .l2-page-captain-andrei #giran-campaign-actions .l2-giran-campaign-primary-action {
    min-height: 54px;
    padding: 12px 14px;
    font-size: 16px;
  }
}


/* Giran 40+ campaign — keep NPC location compact and readable on mobile. */
.l2-page-captain-andrei .l2-giran-campaign-location-row {
  justify-content: flex-start;
}

.l2-page-captain-andrei .l2-giran-campaign-location-row > span {
  min-width: 0;
  white-space: nowrap;
}

.l2-page-captain-andrei .l2-giran-campaign-location-row .l2-starter-story-teleport-btn {
  margin-left: auto;
}

@media (max-width: 420px) {
  .l2-page-captain-andrei .l2-giran-campaign-location-row {
    align-items: center;
  }

  .l2-page-captain-andrei .l2-giran-campaign-location-row > span {
    font-size: 10.5px;
  }
}


/* Quest stage 3 — one compact framed control style, matching “Назад до міста”. */
.l2-starter-story-missing {
  color: #e45d5d;
  font-weight: 700;
}

body.l2-page-captain-andrei .l2-quest-framed-btn,
body.l2-page-captain-andrei .l2-captain-andrei-btn,
body.l2-page-captain-andrei .l2-starter-story-teleport-btn,
body.l2-page-captain-andrei .l2-captain-andrei-back .l2-town-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 140px;
  max-width: 240px;
  min-height: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 7px 14px;
  font-family: var(--l2-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: #fff;
  text-shadow: none;
  cursor: pointer;
  border: 1px solid #5c4a36;
  border-radius: 6px;
  border-image: none;
  background: linear-gradient(180deg, #4a4034 0%, #2e2820 55%, #1f1a14 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: filter 0.12s ease;
}

body.l2-page-captain-andrei .l2-quest-framed-btn:hover,
body.l2-page-captain-andrei .l2-quest-framed-btn:focus,
body.l2-page-captain-andrei .l2-captain-andrei-btn:hover,
body.l2-page-captain-andrei .l2-captain-andrei-btn:focus,
body.l2-page-captain-andrei .l2-starter-story-teleport-btn:hover,
body.l2-page-captain-andrei .l2-starter-story-teleport-btn:focus,
body.l2-page-captain-andrei .l2-captain-andrei-back .l2-town-btn:hover,
body.l2-page-captain-andrei .l2-captain-andrei-back .l2-town-btn:focus {
  color: #fff;
  outline: none;
  filter: brightness(1.1);
}

body.l2-page-captain-andrei #giran-campaign-actions .l2-giran-campaign-primary-action {
  width: auto;
  min-width: 140px;
  max-width: 240px;
  min-height: auto;
  margin: 0 auto 10px;
  padding: 7px 14px;
  font-size: 11px;
  border: 1px solid #5c4a36;
  border-radius: 6px;
  background: linear-gradient(180deg, #4a4034 0%, #2e2820 55%, #1f1a14 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.l2-giran-campaign-return-row {
  margin-top: 10px;
}
