/* Opt-in transfer of the unified-style UI palette to existing game controls.
   Deliberately changes no size, position, stacking, visibility or hit area. */
#cc-game{
  --g-cream:#f8f0dd;
  --g-ink:#463629;
  --g-green:#607b55;
  --g-line:#b89667;
  --cc-paper:#f8f0dd;
  --cc-ink:#463629;
  --cc-muted:#796c57;
  --cc-olive:#607b55;
  --cc-border:#b89667;
  --v49-paper:#f8f0dd;
  --v49-edge:#b89667;
  --v52-paper:linear-gradient(145deg,#fff9eb,#f8f0dd 62%,#ead8b5);
  --v52-card:linear-gradient(145deg,#fffaf0,#f5ead3);
  --v52-button:linear-gradient(#fff8e8,#ead8b5);
  --v52-primary:linear-gradient(#5d7652,#405c3e);
  --v52-edge:#b89667;
}
#cc-game :is(.g-navpanel,.g-dialog,.g-community-board,.g-daily-board,.g-quest,.g-journal-pages,.sh49-dialog,.cs42-panel){
  background:var(--v52-paper);
  border-color:#b89667;
  color:#463629;
  box-shadow:inset 0 1px #fffdf2,0 14px 34px #37241238,0 2px 5px #37241221;
}
#cc-game :is(.g-dialoghead,.sh49-dialog header,.g-community-head,.g-community-board>summary){
  background:linear-gradient(#f8ecd3,#ead8b5);
  border-color:#c7aa7b;
  color:#463629;
}
#cc-game :is(.g-community-card,.g-box,.sh49-paper,.sv-root .sv-card,.sv-root .sv-paper){
  background:var(--v52-card);
  border-color:#ceb991;
  color:#463629;
}
#cc-game :is(.g-navtoggle,.g-choice.primary,.g-daily-claim,.g-daily-redeem,.sv-root .sv-button.sv-primary,.g-nav-grid button[aria-current="location"]){
  background:var(--v52-primary);
  border-color:#405c3e;
  color:#fff9e9;
  box-shadow:inset 0 1px #d8e4bf80,0 2px 4px #352b201c;
}
#cc-game :is(.g-choice,.g-return,.sv-root .sv-button,.sv-root .sv-part-option,#g-home-tools button){
  background:var(--v52-button);
  border-color:#b89667;
  color:#513c2b;
  box-shadow:inset 0 1px #fffdf2,0 2px 4px #352b201c;
}
#cc-game :is(.g-choice,.g-return,.sv-root .sv-button,.sv-root .sv-part-option,#g-home-tools button):hover:not(:disabled){
  background:linear-gradient(#fffdf1,#e7dfc7);
  border-color:#7f9a73;
}
#cc-game :is(.g-choice,.g-return,.sv-root .sv-button,.sv-root .sv-part-option,#g-home-tools button):disabled{
  background:#e3dbcd;
  border-color:#b7aa94;
  color:#655e52;
  box-shadow:inset 0 1px #fff9ed;
}
#cc-game :is(.sv-root .sv-tab[aria-pressed="true"],.sv-root .sv-part-option[aria-pressed="true"]){
  background:#e5ebd9;
  border-color:#738b65;
  color:#405c3e;
}
#cc-game :is(.g-toast,.g-interact,.g-scene-status,#g-work-dock){
  background:linear-gradient(#fff8e8ee,#ead8b5ed);
  border-color:#b89667;
  color:#463629;
}
#cc-game :is(button,input,select,textarea,summary):focus-visible,
.fv25-overlay :focus-visible,.fish35-overlay :focus-visible,
.cwork40-overlay :focus-visible,.cmail39-overlay :focus-visible{
  outline-color:#ad772a;
}
.fv25-overlay,.fv25-hud{
  --fv-ink:#463629;
  --fv-muted:#796c57;
  --fv-paper:#f8f0dd;
  --fv-edge:#b89667;
  --fv-green:#607b55;
  --fv-green-soft:#e5ebd9;
}
.fv25-dialog,.fish35-panel,.cwork40-dialog,.cmail39-dialog{
  background:linear-gradient(145deg,#fff9eb,#f8f0dd 62%,#ead8b5);
  border-color:#b89667;
  color:#463629;
  box-shadow:0 14px 34px #37241238,0 2px 5px #37241221;
}
.fv25-header,.fish35-panel>header,.cmail39-header{
  background:linear-gradient(#f8ecd3,#ead8b5);
  border-color:#c7aa7b;
}
.fv25-card,.fish35-card,.cmail39-reading{
  background:#fff9ec;
  border-color:#ceb991;
}
.fv25-button,.fish35-panel button,.fish35-controls button,.cwork40-button,.cmail39-button{
  background:linear-gradient(#fff8e8,#ead8b5);
  border-color:#b89667;
  color:#513c2b;
}
.fv25-button:is(.is-primary),.fish35-panel button.primary,.fish35-controls .fish35-hold,
.cwork40-button.is-primary,.cmail39-button.is-primary{
  background:linear-gradient(#5d7652,#405c3e);
  border-color:#405c3e;
  color:#fff9e9;
}
.fv25-button:is(.is-danger),.cwork40-button.is-danger,.cmail39-button.is-danger{
  background:linear-gradient(#aa5e4c,#8e463e);
  border-color:#8e463e;
  color:#fff9e9;
}
.fv25-button:disabled,.fish35-panel button:disabled,.fish35-controls button:disabled,
.cwork40-button:disabled,.cmail39-button:disabled{
  background:#e3dbcd;
  border-color:#b7aa94;
  color:#655e52;
}
.fv25-button[aria-pressed="true"],.fish35-panel button[aria-current="page"],.cmail39-tabs>.cmail39-button[aria-current="page"]{
  background:#e5ebd9;
  border-color:#738b65;
  color:#405c3e;
}
