/* v16 metal-framed windows and announcements. This file changes only paint;
   window-layout-v16.css separately owns the larger responsive window geometry. */
body #detail-dialog,
body.game-interface[data-button-quality='v15'] :is(.settings-panel,.result-card,.battle-confirm-v15),
body.game-interface[data-button-quality='v15'] .arena-curtain > div {
  color:#fff4dc;
  border:2px solid transparent!important;
  border-image:var(--ui16-frame) 20 / 8px / 0 stretch!important;
  border-radius:0;
  background-color:#172d37!important;
  background-image:radial-gradient(ellipse at 17% 0,rgba(122,157,163,.14),transparent 53%),linear-gradient(155deg,rgba(15,33,43,.89),rgba(7,22,32,.97)),var(--ui16-button-material)!important;
  background-size:100% 100%,100% 100%,100% 100%!important;
  background-position:center;
  box-shadow:inset 0 1px 0 #eee5be38,inset 0 -2px 0 #060e1890,0 15px 45px #0207108c;
}
body.game-interface[data-button-quality='v15'] :is(.settings-panel,.result-card) { box-shadow:inset 0 1px 0 #eee5be38,0 0 0 200vmax #05101cb8,0 15px 45px #0207108c; }
body #detail-dialog > :is(.dialog-header,.dialog-footer,.dialog-fixed-actions,.dialog-content-navigation),
body.game-interface[data-button-quality='v15'] .settings-heading {
  background:linear-gradient(180deg,#32464f,#1b323e 65%,#152c38);
  border-color:#d7bb8159;
  box-shadow:inset 0 1px #dcedd519,inset 0 -1px #02091270;
}
body #detail-dialog .dialog-header h2,
body.game-interface[data-button-quality='v15'] :is(.settings-heading h2,.result-card h3,.battle-confirm-v15 h2) {
  color:#fff3d3;
  text-shadow:0 1px 2px #07101a;
  font-weight:800;
}
body #detail-dialog :is(.hub-card:not(button),.mini-character,.friend-card,.equipment-row,.shop-detail,.growth-confirm,.supply-card,.prepared-mode,.supply-rewards,.room-code-card,.room-directory-card,.growth-goal,.stage-choice-description),
body.game-interface[data-button-quality='v15'] :is(.party-member,.time-principle) {
  color:#f4edd9;
  border-color:#a4b8b357;
  background:linear-gradient(160deg,#2a424d,#1d3540 62%,#152b37);
  box-shadow:inset 0 1px #e4e6c918,inset 0 -1px #02091266;
}
body #detail-dialog :is(input:not([type='range']):not([type='checkbox']):not([type='radio']):not([type='hidden']),select,textarea),
body.game-interface[data-button-quality='v15'] .field select {
  border-color:#a9bdb2;
  background:linear-gradient(180deg,#101f2a,#192f3b);
  box-shadow:inset 0 2px 5px #020a1277,0 1px #e8e7c624;
  color:#fff4dc;
}
body #detail-dialog :is(.dialog-notice,.form-error,.shop-receipt),
body #status-message,
body.game-interface[data-button-quality='v15'] .arena-wrapper > #battle-notice {
  color:#fff4dc;
  background:linear-gradient(160deg,#324e59,#17323f);
  border-color:#bdcfbf;
  box-shadow:inset 0 1px #edf2d126,inset 0 -2px #020a1277,0 4px 12px #02070d66;
}
body #detail-dialog .form-error,
body #detail-dialog .dialog-notice[data-kind='error'],
body #status-message:is([data-priority='error'],[data-priority='critical']) {
  border-color:#dcaa9f;
  background:linear-gradient(155deg,#52353d,#2b2534);
}
body #detail-dialog .dialog-notice[data-kind='warning'] { border-color:#e2c188;background:linear-gradient(155deg,#4d4638,#2d3437); }
body #detail-dialog .dialog-notice[data-kind='success'],
body #detail-dialog .shop-receipt[role='status'] { border-color:#aadbbd;background:linear-gradient(155deg,#345048,#213a3f); }
body #status-message-dismiss { border-image:var(--ui16-silver-frame) 20 / 6px / 0 stretch!important;background:linear-gradient(160deg,#3c5762,#223943); }
body.game-interface[data-button-quality='v15'] :is(.battle-hud,.thumb-player,.login-notice,.noscript-note) {
  color:#fff4dc;
  border-image:var(--ui16-silver-frame) 20 / 4px / 0 stretch;
  background:linear-gradient(155deg,rgba(41,64,75,.96),rgba(10,29,41,.96));
  box-shadow:inset 0 1px #dcefd422,0 3px 9px #0209125c;
}
body.game-interface[data-button-quality='v15'] :is(.objective-track,.thumb-health) {
  background:#0b1b29;
  box-shadow:inset 0 1px 3px #01071099,0 1px #d4e4cd26;
}
body.game-interface[data-button-quality='v15'] :is(.objective-track,.thumb-health) > span { background:linear-gradient(180deg,#b5e8c1,#47866e 48%,#205846); }
body.game-interface[data-button-quality='v15'][data-battle-mode='boss'] .objective-track > span { background:linear-gradient(180deg,#f0bc92,#bc715a 48%,#814443); }
@media(prefers-reduced-motion:reduce) { body :is(#detail-dialog,#status-message) { transition:none!important; } }
