/* RUINROLL · 21-settings.css — Settings panel, sound mixer, language, camera preference.
   Generated from the consolidated stylesheet stack; rule order inside this file is cascade order. */
.audioMixer {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px;
  border-radius: 13px;
  background: #0a2c4bd9;
  border: 1px solid #4ac3ef85;
  max-width: min(410px,90vw);
}
.audioMixer .audioHeader span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #ffe7a1;
  margin-top: 3px;
}
.audioMixer label {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 9px;
  justify-content: space-between;
  align-items: center;
}
.audioMixer input {
  width: 72%;
  accent-color: #36d5f4;
  touch-action: auto;
  height: 24px;
}
.audioMixer #testMusic {
  background: #0786bb;
  border: 1px solid #9cecff;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 900;
}
@media (max-height:440px) {
  .audioMixer {
    margin: 2px 0;
    padding: 5px;
    gap: 3px;
  }
  .audioMixer label {
    font-size: 10px;
  }
  .audioMixer input {
    height: 13px;
  }
  .audioMixer #testMusic {
    padding: 4px;
  }
}
.cameraPreference {
  padding: 12px;
  margin: 8px auto;
  border: 1px solid #81cfff;
  border-radius: 13px;
  max-width: 560px;
  background: #0b2946f1;
  color: #f6fdff;
  text-align: left;
}
.cameraPreference strong {
  color: #ffdb77;
}
#homeSettingsPanel .setLang {
  grid-column: 1/-1;
  flex-wrap: wrap;
}
#homeSettingsPanel .setLang span {
  margin-inline-end: 4px;
}
#homeSettingsPanel .setLang {
  gap: 6px;
}
#homeSettingsPanel .setLang button {
  padding: 0 11px;
  min-width: 0;
  font: 900 14px system-ui,'SF Arabic','Geeza Pro','Noto Sans Arabic',Tahoma,sans-serif;
}
#homeSettingsPanel .perfNote {
  font-size: 11px;
  opacity: .8;
  margin: -2px 0 8px;
}
#homeSettingsPanel .setGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
#homeSettingsPanel .setSlider {
  display: grid;
  gap: 4px;
  font: 900 12px system-ui,sans-serif;
  color: #dbeeff;
}
#homeSettingsPanel .setSlider input {
  width: 100%;
}
#homeSettingsPanel .setRow {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 900 12px system-ui,sans-serif;
  color: #dbeeff;
}
#homeSettingsPanel .setRow button.on {
  background: linear-gradient(180deg,#ffd75a,#f3a924);
  color: #3a2300;
  border-color: #ffe08a;
}
#homeSettingsPanel .setGrid>button:disabled {
  opacity: .6;
}
html body #homeSettingsPanel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  overflow: hidden !important;
  padding: max(8px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
}
html body #homeSettingsPanel.hidden {
  display: none;
}
html body #homeSettingsPanel>p,
html body #homeSettingsPanel .perfNote {
  display: none;
}
html body #homeSettingsPanel .sheetHead {
  margin: 0;
  padding-bottom: 4px;
}
html body #homeSettingsPanel .setBody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  align-content: start;
  min-height: 0;
}
html body #homeSettingsPanel .setGrid {
  display: contents;
}
html body #homeSettingsPanel .setGrid>*,
html body #homeSettingsPanel .settingsGuide button,
html body #homeSettingsPanel #menuSound {
  min-height: clamp(26px,7.5vh,38px) !important;
  font-size: clamp(9.5px,2.6vh,12.5px) !important;
  padding: 2px 8px !important;
}
html body #homeSettingsPanel .setRow.setLang {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: auto repeat(6,1fr);
  gap: 4px;
}
html body #homeSettingsPanel .setRow.setLang>span {
  display: flex;
  align-items: center;
  padding-inline-end: 4px;
}
html body #homeSettingsPanel .setRow.setLang button {
  min-width: 0;
  padding: 2px 3px !important;
  font-size: clamp(9px,2.4vh,11.5px) !important;
}
html body #homeSettingsPanel .settingsGuide {
  display: contents;
}
html body #homeSettingsPanel #menuSound {
  display: none;
}
html body #homeSettingsPanel .setSlider {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: clamp(9.5px,2.6vh,12px);
  padding: 0 6px;
}
html body #homeSettingsPanel .setSlider input {
  margin: 0;
}
html body #homeSettingsPanel .setRow:not(.setLang) {
  padding: 0 6px;
  justify-content: space-between;
}
html body #homeSettingsPanel .setRow:not(.setLang) button {
  min-width: 34px !important;
  flex: 0 0 auto;
}
html body#rr-app.rr-ui #homeSettingsPanel :is(.setSlider,.setRow) {
  background: #0a1d30 !important;
  border: 1px solid #3b6a80 !important;
  border-radius: 6px !important;
}
html body#rr-app.rr-ui #homeSettingsPanel input[type=range] {
  accent-color: var(--mc-gold);
  cursor: pointer;
}
html body#rr-app.rr-ui #homeSettingsPanel .settingsGuide button {
  box-shadow: inset 0 0 0 1px #39758d,0 2px 0 #000 !important;
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup .sheetHead h2 {
  color: var(--mc-gold) !important;
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup #homeSettingsClose {
  background: linear-gradient(#ffe68a,#ffc340) !important;
  color: #211600 !important;
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup {
  padding-bottom: 13vh !important;
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup :is(.rr-settings-tools,.setLang) {
  display: none !important;
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup #homeSettingsClose {
  width: 34vw;
  min-height: 40px !important;
  font-family: var(--mc-display) !important;
  font-size: clamp(16px,3.5vh,28px) !important;
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup::after {
  content: '';
  position: absolute;
  left: 3vw;
  bottom: 0;
  width: 20vw;
  height: 12vh;
  pointer-events: none;
  background: url('../ui-assets/guide-disco.webp') center/contain no-repeat;
}
html body#rr-app.rr-ui #homeSettingsPanel {
  padding: clamp(8px,2vh,22px) max(16px,3vw) !important;
  grid-template-rows: auto minmax(0,1fr) !important;
}
html body#rr-app.rr-ui #homeSettingsPanel .sheetHead h2 {
  font-size: clamp(24px,5vh,42px) !important;
  margin: 0;
}
html body#rr-app.rr-ui #homeSettingsPanel .setBody {
  display: flex !important;
  flex-direction: column;
  gap: clamp(7px,1.5vh,16px) !important;
  min-height: 0;
}
html body#rr-app.rr-ui #homeSettingsPanel .rr-settings-group :is(button,.setSlider,.setRow) {
  min-height: clamp(33px,7vh,66px) !important;
  font-size: clamp(10px,2.3vh,19px) !important;
  padding: 6px 10px !important;
}
html body#rr-app.rr-ui #homeSettingsPanel .setLang {
  display: grid !important;
  grid-template-columns: auto repeat(6,minmax(0,1fr));
  gap: 6px;
  flex: none;
}
html body#rr-app.rr-ui #homeSettingsPanel .setLang button {
  min-height: clamp(32px,6vh,52px) !important;
  font-size: clamp(10px,2vh,16px) !important;
}
@media (max-height:440px) {
  html body#rr-app.rr-ui #homeSettingsPanel .rr-settings-tools button {
    min-height: 28px !important;
  }
  html body#rr-app.rr-ui #homeSettingsPanel .rr-settings-group :is(button,.setSlider,.setRow) {
    min-height: 29px !important;
    padding: 3px 6px !important;
  }
}
html body #homeSettingsPanel .setBody {
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
html body #homeSettingsPanel .bv24Cloud {
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 8px;
  border: 2px solid #03060c;
  background: linear-gradient(135deg,#173a56,#0c2038);
  box-shadow: none;
  flex: none;
}
html body #homeSettingsPanel .bv24Cloud>b {
  color: var(--mc-gold,#ffcf4c);
  font-size: clamp(11px,2.3vh,15px);
  white-space: nowrap;
}
html body #homeSettingsPanel .bv24Cloud>small {
  margin: 0;
  color: #9fe7ff;
  font-size: clamp(9px,1.9vh,12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body #homeSettingsPanel .bv24Row {
  display: contents;
}
html body #homeSettingsPanel .bv24Row button {
  min-height: clamp(28px,6vh,44px) !important;
  padding: 4px 10px !important;
  font-size: clamp(10px,2vh,14px) !important;
  border-radius: 8px;
  border: 2px solid #03060c;
  background: linear-gradient(#ffe27a,#ffb627);
  color: #3a2200;
  font-weight: 900;
  white-space: nowrap;
}
html body #homeSettingsPanel #bv24Restore {
  background: #0c2038;
  color: #fff;
  border-color: #26dbf0;
}
html body #homeSettingsPanel .bv24Out {
  grid-column: 1/-1;
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}
html body #homeSettingsPanel .bv24Out:empty {
  display: none;
}
#bv24In {
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid #000;
  font: 900 20px ui-monospace,monospace;
  letter-spacing: .15em;
  text-align: center;
  direction: ltr;
  text-transform: uppercase;
}
#bv24Go {
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid #000;
  background: linear-gradient(#ffe27a,#ffb627);
  color: #3a2200;
  font-weight: 900;
}
html body #homeSettingsPanel.rr-first-setup .bv24Cloud {
  display: none;
}
html body #homeSettingsPanel .bv24Cloud {
  display: contents !important;
}
html body #homeSettingsPanel .bv24Cloud>b {
  display: none;
}
html body #homeSettingsPanel .bv24Cloud>small {
  grid-column: 1/-1;
  order: 9;
  text-align: center;
}
html body #homeSettingsPanel .bv24Cloud>small:not(.on) {
  display: none;
}
html body #homeSettingsPanel .bv24Out {
  order: 10;
  padding: 4px 8px;
  border-radius: 8px;
  background: #0c2038;
  border: 2px solid #03060c;
}
html body #homeSettingsPanel .rr-settings-tools .bv24Row button {
  min-height: clamp(28px,6vh,56px) !important;
  font-size: clamp(10px,2vh,16px) !important;
}
html body #homeSettingsPanel .bv25Legal {
  display: contents;
}
html body #homeSettingsPanel .bv25Legal a,
html body #homeSettingsPanel #bv25Erase {
  display: grid;
  place-items: center;
  min-height: clamp(28px,6vh,56px);
  padding: 4px 8px;
  border-radius: 8px;
  border: 2px solid #03060c;
  background: #0c2038;
  color: #cfe8ff;
  font: 800 clamp(9px,1.9vh,14px)/1.1 system-ui,sans-serif;
  text-decoration: none;
  text-align: center;
}
html body #homeSettingsPanel #bv25Erase {
  background: #3a0d16;
  color: #ffb3bd;
  border-color: #ff5a6a;
}
html body#rr-app.rr-ui #homeSettingsPanel .rr-settings-tools {
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
}
html body#rr-app #homeSettingsPanel .sheetHead {
  border-bottom: 2px solid #ffc93a55;
}
html body#rr-app #homeSettingsPanel .setBody h3 {
  color: #ffd34d !important;
  letter-spacing: .08em;
}
html body#rr-app #homeSettingsPanel input[type=range] {
  accent-color: #ffc93a;
}
html body#rr-app #homeSettingsPanel .setRow.setLang>span {
  color: var(--u-cy);
}
@media (max-height:400px) {
  html body#rr-app.rr-ui #homeSettingsPanel {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    gap: 3px !important;
  }
  html body#rr-app.rr-ui #homeSettingsPanel .sheetHead {
    padding-bottom: 2px !important;
    margin-bottom: 2px !important;
  }
  html body#rr-app.rr-ui #homeSettingsPanel .sheetHead h2 {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }
  html body#rr-app.rr-ui #homeSettingsPanel .setBody {
    gap: 3px 8px !important;
  }
  html body#rr-app.rr-ui #homeSettingsPanel .setBody h3 {
    font-size: 11px !important;
    margin: 0 0 2px !important;
  }
  html body#rr-app.rr-ui #homeSettingsPanel .rr-settings-tools button,
  html body#rr-app.rr-ui #homeSettingsPanel .setGrid>button,
  html body#rr-app.rr-ui #homeSettingsPanel .setRow button,
  html body#rr-app.rr-ui #homeSettingsPanel [data-lang] {
    min-height: 24px !important;
    height: auto !important;
    padding: 1px 6px !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
  }
  html body#rr-app.rr-ui #homeSettingsPanel .rr-settings-group :is(.setSlider,.setRow) {
    min-height: 0 !important;
    padding: 1px 6px !important;
  }
  html body#rr-app.rr-ui #homeSettingsPanel .setSlider input {
    height: 14px;
  }
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: env(safe-area-inset-left,0px) !important;
  right: env(safe-area-inset-right,0px) !important;
  height: auto !important;
  max-height: none !important;
  padding: max(6px,env(safe-area-inset-top)) 12px calc(max(10vh,46px) + 10px) 12px !important;
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup .sheetHead {
  position: static !important;
}
html body#rr-app.rr-ui #homeSettingsPanel.rr-first-setup #homeSettingsClose {
  position: absolute !important;
  top: auto !important;
  bottom: max(8px,env(safe-area-inset-bottom)) !important;
  right: max(12px,3vw) !important;
  height: max(9vh,40px) !important;
  margin: 0 !important;
  z-index: 3;
}
