#game-announcement-overlay {
  position: fixed;
  z-index: 100010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  color: #3a2519;
  background: rgba(22, 15, 10, 0.72);
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  letter-spacing: 0;
  -webkit-user-select: none;
  user-select: none;
}

#game-announcement-overlay.is-visible { display: flex; }
#game-announcement-overlay * { box-sizing: border-box; letter-spacing: 0; }

.game-announcement-window {
  position: relative;
  width: min(520px, 88%);
  min-height: 360px;
  max-height: 82%;
  padding: 70px 58px 42px;
  overflow: auto;
  background: url("../../../resources/img/battleUI/giveUpDialog/bg.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 14px 12px rgba(20, 10, 5, 0.5));
  animation: game-announcement-enter 220ms ease-out both;
}

.game-announcement-close {
  position: absolute;
  top: 28px;
  right: 31px;
  width: 50px;
  height: 48px;
  padding: 0;
  border: 0;
  background: url("../../../resources/img/pvpUI/close.png") center / contain no-repeat;
  cursor: pointer;
}

.game-announcement-seal {
  position: absolute;
  top: 30px;
  left: 46px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 4px solid #4b2b1d;
  border-radius: 50%;
  color: #fff3c9;
  background: #a94435;
  font-size: 28px;
  font-weight: 700;
  box-shadow: inset 0 0 0 3px #d77a55;
}

.game-announcement-window h2 {
  margin: 7px 55px 0;
  color: #4a2b1d;
  font-size: 30px;
  line-height: 1.25;
  text-align: center;
}

.game-announcement-divider {
  height: 3px;
  margin: 22px 4px 18px;
  background: linear-gradient(90deg, transparent, #9a6645 18%, #9a6645 82%, transparent);
}

.game-announcement-content {
  min-height: 105px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #4b382c;
  font-size: 23px;
  line-height: 1.65;
  text-align: left;
  white-space: pre-wrap;
  user-select: text;
}

.game-announcement-line {
  min-height: 1.65em;
}

.game-announcement-link {
  color: #185fa7;
  text-decoration: underline;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: text;
}

.game-announcement-time {
  display: block;
  margin-top: 12px;
  color: #876d5c;
  font-family: sans-serif;
  font-size: 12px;
  text-align: right;
}

.game-announcement-confirm {
  display: block;
  width: 190px;
  height: 62px;
  margin: 22px auto 0;
  border: 3px solid #56291c;
  border-radius: 6px;
  color: #fff8dc;
  background: #c75f43;
  box-shadow: inset 0 -7px 0 rgba(104, 42, 27, 0.25), 0 4px 0 #452419;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.game-announcement-confirm:active { transform: translateY(3px); box-shadow: inset 0 -4px 0 rgba(104, 42, 27, 0.25), 0 1px 0 #452419; }

@keyframes game-announcement-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  #game-announcement-overlay { padding: 12px; }
  .game-announcement-window { width: 96%; min-height: 330px; padding: 66px 38px 34px; }
  .game-announcement-window h2 { font-size: 25px; }
  .game-announcement-content { font-size: 19px; }
}
