/* ---------- הגדרות (זמני) ---------- */
/* השורה העליונה, כפתור החזרה והמטבעות מוגדרים ב-gallery.css */
#settings {
  justify-content: flex-start;
  align-items: stretch;
  gap: 2vh;
  padding: 3vh 2.5vw 2.5vh;
}
#settings.entering { animation: home-in .8s var(--ease-out) both; }
#settings.active .gal-top > * { animation: gal-drop .7s var(--ease-out) backwards; }
#settings.active .gal-top > :nth-child(2) { animation-delay: .1s; }
#settings.active .gal-top > :nth-child(3) { animation-delay: .2s; }

.set-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1c4fa8 transparent;
  width: min(90vw, 190vh);
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 2.6vh 2vw;
  padding-top: 3vh;
}

.set-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  padding: 2.8vh 2.4vw;
  background: linear-gradient(170deg, rgba(22, 48, 104, .64), rgba(5, 12, 27, .92) 62%);
  box-shadow: inset 0 0 0 4px #1c4fa8, inset 0 0 0 7px rgba(120, 180, 255, .14);
  clip-path: var(--notch);
}
#settings.active .set-panel { animation: stand-in .8s var(--ease-out) backwards; }
#settings.active .set-panel:nth-child(2) { animation-delay: .12s; }
#settings.active .set-panel:nth-child(3) { animation-delay: .24s; }
#settings.active .set-panel:nth-child(4) { animation-delay: .36s; }
.set-head { --u: max(1.8px, .36vh); display: flex; }
.set-panel[hidden] { display: none; }

.code-row { display: flex; align-items: stretch; gap: 1.4vw; direction: ltr; }
.code-input {
  flex: 1;
  min-width: 0;
  padding: 1.6vh 1.2vw;
  border: 0;
  outline: none;
  font: 400 clamp(14px, 2.6vh, 26px) "Pixel", monospace;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #fff;
  caret-color: #ffd54a;
  background: rgba(6, 16, 31, .88);
  box-shadow: inset 0 0 0 3px #1c4fa8;
  transition: box-shadow .2s;
}
.code-input::placeholder { color: rgba(255, 255, 255, .22); }
.code-input:focus, .code-input.nav-focus { box-shadow: inset 0 0 0 3px #ffd54a; animation: none; outline: none; }
.code-submit { padding: 1.2vh 2.6vw; }

.code-status { min-height: 5.4vh; display: flex; align-items: center; padding: .8vh 1vw; border-right: .7vh solid transparent; }
.code-status .px { --u: max(1.6px, .32vh); }
.code-status.ok  { background: rgba(47, 158, 68, .22); border-right-color: #2f9e44; }
.code-status.bad { background: rgba(216, 68, 60, .2);  border-right-color: #d8443c; }
.code-used .px { --u: max(1.4px, .27vh); opacity: .8; }

.set-toggle {
  align-self: flex-start;
  padding: 1.3vh 2.2vw;
  border: 0;
  cursor: pointer;
  background: rgba(47, 158, 68, .5);
  box-shadow: inset 0 0 0 3px #2f9e44;
  clip-path: var(--notch);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.set-toggle.off { background: rgba(70, 82, 110, .6); box-shadow: inset 0 0 0 3px #3b4a6c; }
.set-toggle.set-danger { background: rgba(168, 50, 28, .45); box-shadow: inset 0 0 0 3px #a8321c; }
.set-toggle .px { --u: max(1.6px, .32vh); }
body.input-mouse .set-toggle:hover, .set-toggle.nav-focus { transform: scale(1.05); }
.set-toggle.nav-focus { outline: none; animation: none; box-shadow: inset 0 0 0 3px #ffd54a; }
.set-toggle:disabled { opacity: .4; cursor: not-allowed; }

.set-note { --u: max(1.4px, .27vh); display: flex; opacity: .8; }

/* עוצמת קול: מינוס, סרגל של 10 מדרגות ופלוס. הכיוון שמאל לימין כדי שפלוס יהיה מימין לסרגל */
.set-vol { display: flex; align-items: center; gap: 1vw; direction: ltr; }
.set-vol-label { --u: max(1.5px, .3vh); display: flex; margin-right: 1vw; }
.set-step {
  position: relative;
  width: 5.4vh;
  height: 5.4vh;
  flex: none;
  border: 0;
  cursor: pointer;
  background: rgba(6, 16, 31, .88);
  box-shadow: inset 0 0 0 3px #1c4fa8;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.set-step::before, .set-step::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; transform: translate(-50%, -50%); }
.set-step::before { width: 46%; height: .5vh; }
.set-step#vol-up::after { width: .5vh; height: 46%; }
body.input-mouse .set-step:hover, .set-step.nav-focus { transform: scale(1.1); box-shadow: inset 0 0 0 3px #6fb3ff; }
.set-step.nav-focus { outline: none; animation: none; box-shadow: inset 0 0 0 3px #ffd54a; }
.set-step:disabled { opacity: .35; cursor: not-allowed; }
.set-vol-bar { flex: 1; display: flex; gap: .4vw; height: 3.2vh; }
.set-vol-bar i { flex: 1; background: #26354f; transition: background .15s; }
.set-vol-bar i.on { background: linear-gradient(180deg, #7fd0ff, #2f8cff); }
.set-vol-bar.muted i.on { background: #4a5876; }

/* ---------- העברת התקדמות: קוד שמירה ---------- */
.set-wide { grid-column: 1 / -1; }
.save-code {
  width: 100%;
  min-height: 8vh;
  padding: 1.2vh 1vw;
  border: 0;
  outline: none;
  resize: none;
  font: 400 clamp(11px, 1.6vh, 15px) ui-monospace, "Consolas", monospace;
  line-height: 1.35;
  word-break: break-all;
  color: #cfe3ff;
  caret-color: #ffd54a;
  background: rgba(6, 16, 31, .88);
  box-shadow: inset 0 0 0 3px #1c4fa8;
  transition: box-shadow .2s;
}
.save-code::placeholder { color: rgba(255, 255, 255, .22); }
.save-code:focus, .save-code.nav-focus { box-shadow: inset 0 0 0 3px #ffd54a; animation: none; outline: none; }
.set-row { display: flex; flex-wrap: wrap; gap: 1.4vw; }

/* ---------- חלון ההסבר "הוספה למסך הבית": שם האפשרות באנגלית, מתחת לשורה בעברית ---------- */
.cf-en { --u: max(1.4px, .28vh); display: flex; direction: ltr; opacity: .85; }
