/* One complete surface contract: clear old border-image fills AND their ink. */
html.egg-art-063 body :is(#guessDialog,#monkeyContestResult,#guildWarRules,#guildWarResult,#resultDialog,#gameHelp) {
  --egg-ink: #f1ead5;
  --egg-gold: #ffe1a1;
  box-sizing: border-box !important;
  border: 16px solid transparent !important;
  border-image: url('egg/skin-084/jade-dialog.webp') 90 fill stretch !important;
  background: #10332f !important;
  color: #f1ead5 !important;
  text-shadow: none !important;
}
html.egg-art-063 body :is(#guessDialog,#monkeyContestResult,#guildWarRules,#guildWarResult,#resultDialog,#gameHelp) :is(p,small,span,time,label,output,em) {
  color: #d4e2d6 !important;
  text-shadow: none !important;
}
html.egg-art-063 body :is(#guessDialog,#monkeyContestResult,#guildWarRules,#guildWarResult,#resultDialog,#gameHelp) :is(h2,h3,b,strong) {
  color: #ffe1a1 !important;
  text-shadow: none !important;
}
html.egg-art-063 body #guessDialog {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  transform: none !important;
  width: min(94vw,460px) !important;
  max-width: 94vw !important;
  height: fit-content !important;
  min-height: 0 !important;
  max-height: 88dvh !important;
  aspect-ratio: auto !important;
  padding: 22px 18px 18px !important;
  border-radius: 10px !important;
  filter: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  font: 15px/1.65 var(--egg-copy) !important;
  box-shadow: 0 16px 50px #001a17aa !important;
}
html.egg-art-063 body #guessDialog[open] { display: block !important; }
html.egg-art-063 body #guessDialog::after { content: none !important; }
html.egg-art-063 body #guessDialog::backdrop { background: #021d19bb; backdrop-filter: blur(3px); }
html.egg-art-063 body #guessDialog>.guess-eyebrow { display: none !important; }
html.egg-art-063 body #guessDialog>h2 {
  position: static !important;
  height: auto !important;
  margin: 0 32px 20px !important;
  padding: 0 !important;
  font: 26px/1.4 var(--egg-display) !important;
  overflow-wrap: anywhere;
  text-align: center;
}
html.egg-art-063 body #guessDialog .guess-close {
  position: absolute !important;
  inset: 9px 7px auto auto !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  background: url('egg/skin-078/close-082.webp') center/34px 34px no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
}
html.egg-art-063 body #guessDialog .guess-dialog-body {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
}
html.egg-art-063 body #guessDialog .guess-dialog-body>p {
  margin: 8px 0 16px;
  font-size: 15px !important;
  line-height: 1.7 !important;
}
html.egg-art-063 body #guessDialog .guess-player-select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  color: #fff0cf !important; background: #173f35 !important;
  border: 1px solid #bda46b !important;
  font: 15px/1.5 var(--egg-copy) !important;
}
html.egg-art-063 body #guessDialog .guess-summary { gap: 8px; }
html.egg-art-063 body #guessDialog .guess-summary>span,
html.egg-art-063 body #guessDialog .guess-records article,
html.egg-art-063 body #guessDialog .guess-settlement section {
  background: #0c2925 !important;
  border: 1px solid #a9936459 !important;
  padding: 12px 9px !important;
  border-radius: 6px;
}
html.egg-art-063 body #guessDialog .guess-summary b { font-size: 21px; overflow-wrap: anywhere; }
html.egg-art-063 body #guessDialog .guess-records {
  max-height: 36dvh !important;
  overflow-y: auto !important;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #bda46b #10332f;
  overscroll-behavior: contain;
}
html.egg-art-063 body #guessDialog .guess-records :is(small,time),
html.egg-art-063 body #guessDialog :is(.guess-history-note,.guess-auto-close) {
  font: 13px/1.6 var(--egg-copy) !important;
}
html.egg-art-063 body #guessDialog .guess-records article>div { flex-wrap: wrap; gap: 4px 12px; }
html.egg-art-063 body #guessDialog .guess-records .won strong { color: #a7ebc4 !important; }
html.egg-art-063 body #guessDialog .guess-records .lost strong { color: #ffc0aa !important; }
html.egg-art-063 body #guessDialog .guess-settlement { margin: 12px 0 !important; }
html.egg-art-063 body #guessDialog .guess-settlement-list { max-height: 28dvh; overflow-y: auto; }
html.egg-art-063 body #guessDialog .guess-confirm {
  position: static !important; width: min(100%,240px) !important;
  min-height: 46px !important; margin: 18px auto 0 !important; padding: 10px 18px !important;
  background: url('egg/skin-078/primary-082.webp') center/100% 100% no-repeat !important;
  border: 0 !important; box-shadow: none !important;
  color: #fff0cf !important; font: 20px/1.3 var(--egg-display) !important;
}
/* Dark card surfaces for the other activity result dialogs. */
html.egg-art-063 body #monkeyContestResult :is(.sm-result-sides section,.sm-result-list article) {
  background: #0c2925 !important; border-color: #a9936459 !important;
}
html.egg-art-063 body #monkeyContestResult {
  padding: 24px 18px !important;
  max-height: 86dvh !important;
  overflow-y: auto !important;
}
html.egg-art-063 body #resultDialog #resultTitle {
  background: none !important;
  color: #ffe1a1 !important;
  font: 28px/1.4 var(--egg-display) !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  text-align: center;
}
html.egg-art-063 body #gameHelp h2 {
  background: none !important;
  color: #ffe1a1 !important;
  font: 26px/1.4 var(--egg-display) !important;
  min-height: 0 !important;
  height: auto !important;
}
html.egg-art-063 body :is(#guessDialog,#monkeyContestResult,#guildWarRules,#guildWarResult) :is(button,select):focus-visible {
  outline: 2px solid #ffe3a2; outline-offset: 2px;
}
@media(max-width:360px) {
  html.egg-art-063 body #guessDialog { padding: 18px 10px 14px !important; border-width: 12px !important; }
  html.egg-art-063 body #guessDialog>h2 { font-size: 23px !important; }
}
