.quest-panel {
  max-width: 920px;
}

.landing-panel {
  max-width: 980px;
}

.landing-title-only {
  text-align: center;
}

.landing-header-figure {
  margin: 0;
  border: 1px solid rgba(61, 241, 255, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.landing-header-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

.landing-info {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.landing-info p {
  margin: 0 0 14px;
  color: #dff3ff;
}

.landing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-links .chip {
  text-decoration: none;
}

.landing-player-dashboard {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.landing-dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.landing-dashboard-card {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 12px;
  background: rgba(7, 20, 36, 0.55);
  padding: 12px;
}

.landing-dashboard-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-dashboard-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.landing-dashboard-name {
  margin: 0;
  font-size: 1.08rem;
  color: #ecfcff;
}

.landing-dashboard-level {
  margin: 4px 0 0;
  color: #9deaff;
  font-weight: 700;
}

.landing-dashboard-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landing-stat-chip {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
}

.landing-stat-chip strong {
  display: block;
  color: #ecfcff;
  font-size: 1.02rem;
}

.landing-stat-chip span {
  color: #9ec1d8;
  font-size: 0.8rem;
}

.landing-rank-image {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.landing-rank-title {
  margin: 0;
  color: #ecfcff;
}

.landing-rank-meta {
  margin: 6px 0 0;
  color: #9ec1d8;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .landing-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .landing-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.landing-news-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.news-list-stack {
  display: grid;
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-rows: 140px 1fr;
  text-decoration: none;
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover,
.news-card:focus-visible {
  border-color: rgba(61, 241, 255, 0.58);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 24, 42, 0.38);
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.news-card-body {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.news-card-title {
  margin: 0;
  font-size: 1rem;
  color: #eafaff;
}

.news-card-teaser {
  margin: 0;
  color: #dff3ff;
  font-size: 0.92rem;
  line-height: 1.35;
}

.news-card-time {
  margin: 0;
  color: #8ea9bd;
  font-size: 0.8rem;
}

.news-article {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(7, 20, 36, 0.72);
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
}

.news-article-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.news-article-title {
  margin: 0;
  font-size: 1.2rem;
  color: #ecfcff;
}

.news-article-teaser {
  margin: 0;
  color: #dff3ff;
  font-size: 0.95rem;
}

.news-article-content {
  color: #d7f0ff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.news-article-content p {
  margin: 0 0 10px;
}

.news-article-content ul,
.news-article-content ol {
  margin: 0 0 10px 20px;
}

.news-article .news-card-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
}

@media (max-width: 760px) {
  .news-article {
    grid-template-columns: 1fr;
  }

  .news-article .news-card-image {
    min-height: 180px;
    max-height: 260px;
  }
}

.parent-news-list {
  display: grid;
  gap: 10px;
}

.parent-news-item {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.parent-news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-editor {
  min-height: 220px;
  border: 1px solid rgba(61, 241, 255, 0.25);
  border-radius: 10px;
  background: rgba(2, 10, 20, 0.6);
  color: #e8fbff;
  padding: 10px 12px;
  outline: none;
}

.news-editor:focus {
  border-color: rgba(61, 241, 255, 0.55);
}

.level-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 14px;
  padding: 16px;
}

.level-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.level-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.level-number {
  font-size: 2rem;
  margin: 4px 0;
  color: #8ef5ff;
  font-weight: 700;
}

.level-xp {
  font-size: 1.4rem;
  margin: 4px 0;
}

.progress-wrap {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #20d4e6, #6af5ff);
  transition: width 0.3s ease;
}

.reward-progress-wrap {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.reward-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f2ad43, #ffd37a);
  transition: width 0.25s ease;
}

.reward-progress-coins_purchase {
  background: linear-gradient(90deg, #f2ad43, #ffd37a);
}

.reward-progress-quests_completed {
  background: linear-gradient(90deg, #3dd1ff, #8de7ff);
}

.reward-progress-level_up {
  background: linear-gradient(90deg, #63e27d, #b6f5c3);
}

.reward-progress-reach_level {
  background: linear-gradient(90deg, #ff7b95, #ffc2cf);
}

.reward-progress-quest_ids {
  background: linear-gradient(90deg, #3dd1ff, #8de7ff);
}

.reward-progress-reward_ids {
  background: linear-gradient(90deg, #63e27d, #b6f5c3);
}

.reward-quest-list {
  display: grid;
  gap: 8px;
  margin: 6px 0 10px;
}

.reward-quest-select-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.reward-quest-select-row select {
  width: 100%;
}

.reward-requirements {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.reward-requirement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #dff3ff;
}

.reward-requirement-item input[type="checkbox"] {
  accent-color: #3dd1ff;
}

.reward-quest-summary {
  margin-top: 10px;
}

.reward-quest-summary .quest-meta {
  margin: 0 0 6px;
}

.reward-quest-summary-list {
  margin: 0;
  padding-left: 18px;
  color: #dff3ff;
  font-size: 0.92rem;
}

.reward-quest-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.reward-redeem-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 16, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}

.reward-redeem-modal {
  width: min(420px, 95vw);
  background: rgba(8, 20, 34, 0.98);
  border: 1px solid rgba(61, 241, 255, 0.25);
  border-radius: 14px;
  padding: 14px;
}

.reward-redeem-modal h4 {
  margin: 0 0 8px;
}

.reward-redeem-slider {
  width: 100%;
  margin: 10px 0 12px;
}

.quest-form {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 10px;
}

.quest-form input {
  background: rgba(2, 10, 20, 0.6);
  color: #e8fbff;
  border: 1px solid rgba(61, 241, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.quest-item {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.quest-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.quest-title {
  margin: 0;
  font-size: 1.05rem;
}

.quest-meta {
  margin: 4px 0 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.quest-coins-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coin-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.shop-item {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 6px;
}

.shop-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.shop-preview.missing {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
  border-style: dashed;
}

.shop-msg {
  margin-top: 8px;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.shop-msg.success {
  color: #19c37d;
}

.shop-msg.error {
  color: #ff5b6a;
}

.profile-avatar-block {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.profile-avatar-large {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

#profile-image-select {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(61, 241, 255, 0.25);
  background: rgba(2, 10, 20, 0.6);
  color: #e8fbff;
}

.security-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.field-label {
  font-size: 0.86rem;
  color: #c9edf7;
  opacity: 0.95;
}

.security-form input {
  background: rgba(2, 10, 20, 0.6);
  color: #e8fbff;
  border: 1px solid rgba(61, 241, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.security-form textarea,
.security-form select {
  background: rgba(2, 10, 20, 0.6);
  color: #e8fbff;
  border: 1px solid rgba(61, 241, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.security-form textarea {
  min-height: 100px;
  resize: vertical;
}

.parent-graph-wrap {
  margin-top: 10px;
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

#progress-curve {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.parent-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.parent-quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.quest-group {
  margin-bottom: 0;
}

.quest-group-available {
  border-color: rgba(61, 241, 255, 0.35);
  background: rgba(61, 241, 255, 0.06);
}

.quest-group-accepted {
  border-color: rgba(255, 198, 92, 0.4);
  background: rgba(255, 198, 92, 0.08);
}

.quest-group-pending {
  border-color: rgba(95, 220, 130, 0.45);
  background: rgba(95, 220, 130, 0.1);
}

.parent-quest-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.parent-quest-entry {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.15);
}

.parent-quest-entry .quest-title {
  font-size: 0.95rem;
}

.quest-edit-btn {
  margin-top: 8px;
  border: 1px solid rgba(61, 241, 255, 0.3);
  background: rgba(61, 241, 255, 0.12);
  color: #dff3ff;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.parent-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.parent-create-quest-wrap {
  margin-top: 12px;
}

.parent-new-quest-panel {
  margin-top: 10px;
  border: 1px solid rgba(61, 241, 255, 0.25);
  border-radius: 12px;
  padding: 12px;
  background: rgba(61, 241, 255, 0.05);
  position: relative;
}

.panel-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.25);
  color: #e8fbff;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.parent-shop-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.parent-shop-entry {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.parent-shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.parent-shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.parent-shop-description {
  margin: 10px 0 0;
  color: #d6eef8;
  border-top: 1px solid rgba(61, 241, 255, 0.15);
  padding-top: 10px;
}

.quest-accordion {
  border: 1px solid rgba(61, 241, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.quest-accordion-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.quest-accordion-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quest-main-text {
  min-width: 0;
}

.quest-time {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #9ec1d8;
}

.quest-id {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #b8f8ff;
}

.quest-ep {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(61, 241, 255, 0.15);
  border: 1px solid rgba(61, 241, 255, 0.25);
  color: #b8f8ff;
  font-size: 0.85rem;
  white-space: nowrap;
}

.quest-pending-check {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(95, 220, 130, 0.5);
  background: rgba(95, 220, 130, 0.16);
  color: #c6ffd7;
  font-size: 0.82rem;
  white-space: nowrap;
}

.quest-pending-check::before {
  content: "\2713 ";
  color: #6bf190;
}

.quest-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quest-toggle-btn {
  background: transparent;
  border: 1px solid rgba(61, 241, 255, 0.25);
  color: #dff3ff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.quest-accordion-body {
  border-top: 1px solid rgba(61, 241, 255, 0.18);
  padding: 12px;
}

.quest-accordion-body[hidden] {
  display: none;
}

.achievement-path-wrap {
  overflow-x: auto;
  padding: 8px 2px 14px;
}

.achievement-custom-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.achievement-overview-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.achievement-overview-preview {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.achievement-path-wrap::-webkit-scrollbar {
  height: 10px;
}

.achievement-path-wrap::-webkit-scrollbar-thumb {
  background: rgba(61, 241, 255, 0.3);
  border-radius: 999px;
}

.achievement-rail {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 22px;
  width: max-content;
  min-width: 100%;
  padding: 16px 8px 8px;
}

.achievement-rail::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(61, 241, 255, 0.45), rgba(61, 241, 255, 0.2));
}

.achievement-rail::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 72px;
  height: 3px;
  width: var(--achievement-progress, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(95, 220, 130, 0.9), rgba(95, 220, 130, 0.45));
  box-shadow: 0 0 12px rgba(95, 220, 130, 0.35);
}

.achievement-path-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.achievement-step {
  font-size: 0.78rem;
  color: #9ec1d8;
}

.achievement-point {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  padding: 4px;
  border: 2px solid rgba(61, 241, 255, 0.25);
  background: rgba(7, 18, 32, 0.85);
}

.achievement-path-node.done .achievement-point {
  border-color: rgba(95, 220, 130, 0.65);
  box-shadow: 0 0 0 4px rgba(95, 220, 130, 0.14);
}

.achievement-path-node.current .achievement-point {
  animation: achievementPulse 1.8s ease-in-out infinite;
}

.achievement-current-marker {
  font-size: 0.74rem;
  color: #062315;
  background: #95f0b0;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.achievement-path-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
}

.achievement-target {
  margin: 0;
  font-size: 0.82rem;
  color: #b8f8ff;
}

.achievement-path-title {
  margin: 0;
  font-size: 0.92rem;
  max-width: 140px;
}

.achievement-coins {
  margin: 0;
  font-size: 0.8rem;
  color: #ffd37a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.achievement-state {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.achievement-state.done {
  color: #c6ffd7;
  border: 1px solid rgba(95, 220, 130, 0.5);
  background: rgba(95, 220, 130, 0.2);
}

.achievement-state.done::before {
  content: "\2713 ";
  color: #6bf190;
}

.achievement-state.open {
  color: #b8f8ff;
  border: 1px solid rgba(61, 241, 255, 0.3);
  background: rgba(61, 241, 255, 0.14);
}

@keyframes achievementPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 241, 255, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(61, 241, 255, 0.06);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 241, 255, 0.35);
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .achievement-rail {
    grid-auto-columns: minmax(138px, 1fr);
    gap: 16px;
  }

  .achievement-point {
    width: 74px;
    height: 74px;
  }

  .achievement-rail::before {
    top: 67px;
  }

  .achievement-rail::after {
    top: 67px;
  }
}

.achievement-unlock-popup {
  position: fixed;
  right: 18px;
  top: 78px;
  z-index: 30;
  width: min(360px, 92vw);
  border-radius: 14px;
  border: 1px solid rgba(95, 220, 130, 0.55);
  background: linear-gradient(180deg, rgba(10, 34, 22, 0.96), rgba(8, 24, 18, 0.96));
  color: #d8ffe5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.achievement-unlock-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.achievement-unlock-popup h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.achievement-unlock-popup ul {
  margin: 0;
  padding-left: 18px;
}

.achievement-unlock-popup li {
  margin: 4px 0;
}

.chip.danger {
  border-color: rgba(255, 110, 110, 0.55);
  color: #ffd5d5;
}

/* Profil name-change form */
.rename-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.rename-form input {
  flex: 1;
  min-width: 160px;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: inherit;
  font-size: 0.95rem;
}
.rename-form input:focus {
  outline: 2px solid rgba(61,241,255,0.25);
  outline-offset: 2px;
}
.rename-msg {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.rename-msg.success { color: #19c37d; }
.rename-msg.error   { color: #ff5b6a; }

.player-title-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 122, 0.55);
  background: rgba(255, 211, 122, 0.16);
  color: #ffd37a;
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
}

@media (max-width: 720px) {
  .quest-form {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────── Boost-Indikator ───────────────────────── */
.boost-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  min-height: 28px;
}

.boost-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.48);
  border-radius: 999px;
  color: #ffc400;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: default;
  user-select: none;
  transition: background 0.15s;
}

.boost-badge:hover {
  background: rgba(255, 193, 7, 0.24);
}

.boost-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  max-width: 310px;
  background: rgba(8, 18, 36, 0.97);
  border: 1px solid rgba(255, 193, 7, 0.38);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #e8fbff;
  z-index: 200;
  pointer-events: none;
  white-space: normal;
  line-height: 1.5;
}

.boost-badge:hover .boost-tooltip {
  display: block;
}

.boost-tooltip-title {
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffc400;
}

.boost-tooltip-entry {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.boost-tooltip-entry:last-child {
  border-bottom: none;
}

/* ───────────────────────── Systemnachrichten ───────────────────────── */
.system-messages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.system-messages-box {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(61, 241, 255, 0.24);
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.45);
}

.system-message-item {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(61, 241, 255, 0.1);
  border-radius: 10px;
}

.system-message-item p {
  margin: 0;
  font-size: 0.85rem;
  color: #b0d8e8;
  line-height: 1.4;
}

.system-message-time {
  font-size: 0.72rem !important;
  color: #5e8fa8 !important;
  margin-top: 4px !important;
}

.parent-system-messages {
  margin-top: 14px;
}

.shop-type-fields {
  display: contents;
}

/* ─────────────────── Collapsible Sektionen (Elternbereich) ─────────────────── */
.collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
  gap: 10px;
}

.collapsible-toggle h3 {
  margin: 0;
  flex: 1;
}

.collapsible-toggle:hover h3 {
  color: #6af5ff;
}

.collapsible-chevron {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid rgba(61, 241, 255, 0.4);
  border-radius: 50%;
  position: relative;
  transition: transform 0.22s ease, border-color 0.15s;
}

.collapsible-chevron::before,
.collapsible-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 2px;
  background: rgba(61, 241, 255, 0.8);
  border-radius: 2px;
  transition: transform 0.22s ease;
}

.collapsible-chevron::before {
  transform: translate(-90%, -50%) rotate(45deg);
}

.collapsible-chevron::after {
  transform: translate(-10%, -50%) rotate(-45deg);
}

.collapsible-toggle[aria-expanded="true"] .collapsible-chevron {
  transform: rotate(180deg);
  border-color: rgba(61, 241, 255, 0.7);
}

.collapsible-body {
  margin-top: 14px;
}
