/* Settings — экран настроек (стиль Ingress Prime) */
.screen.settings {
  position: fixed; inset: 0; z-index: 100;
  background: #061018;
  color: #e4f1ee;
  display: flex; flex-direction: column;
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 500; overflow: hidden; letter-spacing: .05em;
}
.screen.settings.hidden { display: none; }

/* -------- верхний бар с табами в стиле Prime -------- */
.scr__topbar {
  display: flex; align-items: stretch;
  background: #0a1a22;
  border-bottom: 1px solid #f0c04a66;
  min-height: 48px;
  padding-left: 4px;
  flex-shrink: 0;
}
.scr__back {
  background: none; border: 0; color: #f0c04a;
  padding: 0 10px 0 4px; cursor: pointer;
  display: flex; align-items: center;
}
.scr__back svg { width: 22px; height: 22px; stroke-width: 2.5; }
.scr__title {
  flex: 1; padding: 14px 18px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #f0c04a;
  display: flex; align-items: center;
}

.scr__content {
  flex: 1; overflow-y: auto;
  padding: 16px 14px 24px;
  -webkit-overflow-scrolling: touch;
}

/* -------- секции с рамками Prime -------- */
.stg__section {
  position: relative;
  margin-bottom: 14px;
  padding: 30px 12px 12px;
  background: #0a1a22;
  border: 1px solid #f0c04a88;
}
/* угловые акценты */
.stg__section::before,
.stg__section::after {
  content: ''; position: absolute;
  width: 10px; height: 10px;
  border: 2px solid #f0c04a;
  pointer-events: none;
}
.stg__section::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.stg__section::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* заголовок секции — как плашка слева сверху */
.stg__label {
  position: absolute;
  top: 0; left: 0;
  padding: 4px 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  background: #f0c04a;
  color: #061018;
  border-right: 1px solid #f0c04a;
  border-bottom: 1px solid #f0c04a;
}
.stg__section--row .stg__label {
  position: static;
  background: none;
  color: #f0c04a;
  padding: 0;
  border: 0;
  letter-spacing: .12em;
}

/* значение (проценты) — справа в заголовке */
.stg__value {
  float: right;
  color: #f0c04a;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 12px;
}

/* -------- select в стиле Prime -------- */
.stg__select {
  width: 100%;
  background: #0f2630;
  color: #7fe9da;
  border: 1px solid #f0c04a55;
  padding: 12px 14px;
  font-family: inherit; font-size: 15px;
  font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #f0c04a 50%), linear-gradient(135deg, #f0c04a 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 10px) 18px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.stg__select:focus { border-color: #f0c04a; outline: none; }

/* -------- range в стиле Prime -------- */
.stg__range {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 4px; background: #0f2630;
  border: 1px solid #f0c04a44;
  outline: none;
  margin: 6px 0;
}
.stg__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 22px;
  background: #f0c04a;
  cursor: pointer; border: 0;
  box-shadow: 0 0 10px #f0c04a88;
}
.stg__range::-moz-range-thumb {
  width: 16px; height: 22px;
  background: #f0c04a; border: 0; cursor: pointer;
}

/* -------- toggle -------- */
.stg__toggle {
  width: 56px; height: 26px;
  background: #0f2630;
  border: 1px solid #f0c04a55;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background .15s, border-color .15s;
}
.stg__toggle span {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #3a5460;
  transition: transform .15s, background .15s;
}
.stg__toggle.active {
  background: #f0c04a22;
  border-color: #f0c04a;
}
.stg__toggle.active span {
  transform: translateX(28px);
  background: #f0c04a;
  box-shadow: 0 0 10px #f0c04a99;
}

/* -------- danger кнопка (logout) -------- */
.stg__danger {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: #2a0a0a;
  border: 1px solid #ff5555;
  color: #ff8888;
  font-family: inherit; font-size: 14px;
  font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}
.stg__danger::before,
.stg__danger::after {
  content: ''; position: absolute;
  width: 8px; height: 8px;
  border: 2px solid #ff5555;
}
.stg__danger::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.stg__danger::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.stg__danger:active { background: #3a1515; }

/* -------- about -------- */
.stg__about {
  margin-top: 24px;
  padding: 12px;
  border: 1px solid #f0c04a33;
  text-align: center;
  font-size: 11px;
  color: #7a8c8a;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.imghid .i-image-box { display: none !important; }
