.panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay-bg);
  z-index: 30;
}

.panel__card {
  display: flex;
  flex-direction: column;
  width: min(90vw, 420px);
  max-height: 80vh;
  padding: 22px;
  border-radius: 20px;
  background: var(--card-strong);
  border: 1px solid var(--card-border);
}

.panel__card--center {
  align-items: center;
  text-align: center;
  gap: 12px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.panel__close {
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.panel__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
}

.panel__action {
  margin-top: 6px;
  padding: 14px 28px;
  border: 0;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: linear-gradient(150deg, var(--sun), var(--sun-deep));
  cursor: pointer;
}

.stats__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.stats__label {
  font-size: 14px;
  color: var(--text-dim);
}

.stats__value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--sun);
}

.ach__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.55;
}

.ach__row--unlocked {
  opacity: 1;
  background: rgba(255, 210, 74, 0.1);
}

.ach__text {
  flex: 1;
}

.ach__name {
  font-size: 15px;
  font-weight: 700;
}

.ach__desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dim);
}

.ach__status {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--sun);
}

.mission__row {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.mission__row--done {
  background: rgba(255, 210, 74, 0.12);
}

.mission__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mission__desc {
  font-size: 14px;
  font-weight: 600;
}

.mission__reward {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--sun);
}

.mission__track {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.mission__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sun), var(--sun-deep));
}

.mission__count {
  margin-top: 6px;
  font-size: 11px;
  text-align: right;
  color: var(--text-dim);
}

.set__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.set__label {
  font-size: 15px;
  font-weight: 600;
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.toggle--on {
  background: linear-gradient(90deg, var(--sun), var(--sun-deep));
}

.toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 160ms ease;
}

.toggle--on .toggle__knob {
  transform: translateX(20px);
}

.set__btn {
  padding: 13px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.set__btn--danger {
  color: #ff8a7a;
  border-color: rgba(255, 120, 100, 0.4);
}

.lang-seg {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-seg__btn {
  min-width: 42px;
  padding: 5px 12px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-seg__btn--active {
  color: var(--ink);
  background: linear-gradient(150deg, var(--sun), var(--sun-deep));
}

.tut__line {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
}

.about__lead {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.about__section {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--sun);
}

.about__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.about__credit {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s;
}

.about__credit:active {
  background: rgba(255, 255, 255, 0.1);
}

.about__credit-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__credit-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.about__credit-author {
  font-size: 12px;
  color: var(--text-dim);
}

.about__credit-license {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 210, 74, 0.16);
  border: 1px solid rgba(255, 210, 74, 0.32);
  color: var(--sun);
}

.about__copyright {
  margin: 16px 0 0;
  font-size: 11px;
  text-align: center;
  color: var(--text-dim);
}

.about__by {
  font-size: 12px;
  color: var(--text-dim);
}

.about__link {
  color: var(--sun);
  text-decoration: none;
  font-weight: 600;
}

.about__link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.about__link:active {
  opacity: 0.7;
}
