/* R45 shared presentation: existing modal owners and input routes are retained. */
#pack185SettingsHub .sk-b55-modal-window,
#pack182GfxPanel .p182-window {
  color:var(--sk-ivory,#f4f0df);
  background:linear-gradient(145deg,rgba(13,32,50,.99),rgba(5,10,18,.99));
  border:1px solid rgba(241,199,107,.42);
  border-radius:14px;
  box-shadow:0 22px 80px rgba(0,0,0,.55),inset 0 1px rgba(255,229,167,.10);
  font-family:"Atkinson Hyperlegible Next",Arial,sans-serif;
}
#pack185SettingsHub .sk-b55-kicker,
#pack185SettingsHub .sk-b55-setting-card h3,
#pack182GfxPanel .p182-title { color:var(--sk-gold,#f1c76b);text-shadow:none; }
#pack185SettingsHub .sk-b55-setting-card,
#pack182GfxPanel .p182-rowbox {
  border-color:rgba(177,203,221,.20);
  background:rgba(9,23,40,.72);
  box-shadow:none;
  border-radius:8px;
}
#pack185SettingsHub button,
#pack182GfxPanel button,
#pack182GfxPanel select {
  color:var(--sk-ivory,#f4f0df);
  background:linear-gradient(#14283b,#091728);
  border:1px solid rgba(177,203,221,.30);
  border-radius:7px;
  box-shadow:inset 0 1px rgba(244,240,223,.06);
  text-shadow:none;
}
#pack185SettingsHub button:hover,
#pack185SettingsHub button:focus-visible,
#pack182GfxPanel button:hover,
#pack182GfxPanel button:focus-visible,
#pack182GfxPanel select:focus-visible {
  border-color:var(--sk-gold,#f1c76b);
  outline:2px solid rgba(241,199,107,.36);
  outline-offset:2px;
}
#pack185SettingsHub button[aria-pressed="true"],
#pack185SettingsHub .sk-b55-difficulty-grid button.active,
#pack182GfxPanel .p182-buttons .primary {
  color:#091728;
  background:linear-gradient(#f1d494,#c29a52);
  border-color:#f1c76b;
}
#pack185SettingsHub .sk-b55-setting-card p,
#pack182GfxPanel .p182-summary {color:var(--sk-muted,#a9bccb);}
@media (prefers-reduced-motion:reduce) {
  #pack185SettingsHub *,#pack182GfxPanel * {transition:none!important;animation:none!important;}
}

#pack185SettingsHub button,#pack182GfxPanel button,#pack182GfxPanel select{font-family:"Atkinson Hyperlegible Next",Arial,sans-serif;font-size:16px;font-weight:600;}

/* R46: a settings screen inside the game, with ruled sections and a command rail.
   Never clip a window or a control: focus rings and enlarged text remain whole. */
#pack185SettingsHub .sk-b55-modal-window,
#pack182GfxPanel .p182-window {
  border-radius:0;
  border-color:#64778b;
  border-top:3px solid #f1c76b;
  background:linear-gradient(120deg,#102438 0,#081522 45%,#050c16 100%);
  box-shadow:0 24px 70px #000c,inset 0 0 0 1px #020913;
}
#pack185SettingsHub .sk-b55-modal-window>header,
#pack185SettingsHub .sk-b55-modal-window>footer {
  background:#06111e;
  border-color:#536475;
  border-radius:0;
}
#pack185SettingsHub .sk-b55-modal-window h2,
#pack182GfxPanel .p182-title {
  color:#f4f0df;
  font-weight:800;
  line-height:1.15;
  letter-spacing:.01em;
}
#pack185SettingsHub .sk-b55-setting-card {
  border:0;
  border-bottom:1px solid #405365;
  border-radius:0;
  background:transparent;
  padding-top:1rem;
  padding-bottom:1.25rem;
}
#pack185SettingsHub .sk-b55-setting-card h3 {
  border-left:3px solid #f1c76b;
  padding-left:.65rem;
  margin-bottom:.65rem;
}
#pack185SettingsHub .sk-b55-setting-card p,
#pack182GfxPanel .p182-sub,
#pack182GfxPanel .p182-value {color:#c3cfda;line-height:1.5;}
#pack185SettingsHub .sk-b55-difficulty-grid {gap:2px;}
#pack185SettingsHub .sk-b55-difficulty-grid button {min-height:4.5rem;}
#pack185SettingsHub .sk-b55-action-row {gap:.5rem;}
#pack185SettingsHub button,
#pack182GfxPanel button,
#pack182GfxPanel select {
  border-radius:2px;
  min-height:48px;
  border-color:#62798b;
  background:linear-gradient(125deg,#172d41,#0b1827);
  box-shadow:inset 0 1px #c7e2ee26;
}
#pack185SettingsHub .sk-b55-icon-button {min-width:48px;}
#pack182GfxPanel .p182-rowbox {border:0;border-bottom:1px solid #405365;border-radius:0;background:#06111e;}
#pack185SettingsHub .sk-b55-settings-scroll {scrollbar-color:#b0beca #06111e;}
#pack185SettingsHub button[aria-pressed="true"],
#pack185SettingsHub .sk-b55-difficulty-grid button.active,
#pack185SettingsHub .sk-b55-modal-window>footer button,
#pack182GfxPanel .p182-buttons .primary {
  background:linear-gradient(115deg,#ffe5a7,#d5ad5d);
  color:#081522;
  border-color:#ffe5a7;
  box-shadow:inset 0 -3px #8a672d;
}
