/* Release notice: the same carved wood, acorn crest and moss as the pause menu. */
#game-update {
  width: min(580px, calc(100vw - 48px)); max-width: none;
  max-height: calc(100dvh - 54px); margin: auto; padding: 0;
  overflow: visible; border: 0; background: transparent;
  color: #fff1d0; font-family: inherit; text-align: center;
}
#game-update::backdrop { background: rgba(6, 16, 10, .84); backdrop-filter: blur(7px); }
.update-frame {
  position: relative; padding: 15px; border-radius: 30px;
  background:
    repeating-linear-gradient(96deg, #3d241729 0 2px, transparent 2px 12px, #ffda9b0e 12px 14px, transparent 14px 24px),
    linear-gradient(#a7733d, #704321 55%, #8d592d);
  box-shadow: 0 0 0 3px #2b180e, inset 0 3px 0 #f6cd8a70, 0 10px 0 #26180ee6, 0 26px 70px #0009;
}
.update-panel {
  border: 2px solid #d5a34d; border-radius: 18px; padding: 46px 30px 24px;
  background: radial-gradient(ellipse at 50% 0, #3c6538, transparent 70%), linear-gradient(#23472b, #112c1d);
  box-shadow: inset 0 3px 20px #09180c99, 0 0 0 2px #3d2817;
}
.update-crest {
  position: absolute; width: 180px; height: 113px; top: -52px; left: 50%;
  transform: translateX(-50%); pointer-events: none;
  background: url('../../assets/ui/frame-crest.svg') center / contain no-repeat;
  filter: drop-shadow(0 4px 3px #0006);
}
.update-vine {
  position: absolute; top: -16px; width: 140px; height: 120px; pointer-events: none;
  background: url('../../assets/ui/frame-vine.svg') center / contain no-repeat;
}
.update-vine.left { left: -18px; }
.update-vine.right { right: -18px; transform: scaleX(-1); }
.update-brand { margin: 0 0 18px; color: #f5d787; font-size: 20px; font-weight: 700; text-shadow: 0 2px #211b10; }
.update-eyebrow { margin: 0 0 7px; color: #b5c998; font-size: 10px; letter-spacing: 2.5px; font-weight: 700; }
#update-title { margin: 0 0 12px; color: #fff2cc; font-size: clamp(24px, 4vw, 32px); line-height: 1.12; text-shadow: 0 2px #162214; }
#update-copy { margin: 0 auto 20px; max-width: 390px; font-size: 15px; line-height: 1.5; color: #d8dfbf; }
.update-versions { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px; border: 1px solid #cfad5b55; border-radius: 12px; background: #081c1280; }
.update-versions span { flex: 1; min-width: 0; color: #b7c4a2; font-size: 11px; }
.update-versions b { display: block; margin-top: 5px; color: #f7dda3; font-size: 13px; overflow-wrap: anywhere; }
.update-versions i { font-size: 25px; color: #dfb458; font-style: normal; }
.update-status { margin: 16px 0 12px; min-height: 18px; font-size: 12px; color: #d7dfba; }
#update-progress { width: 100%; height: 8px; margin-bottom: 12px; accent-color: #b8d777; }
#update-apply {
  width: 100%; min-height: 50px; border-radius: 13px; border: 2px solid #e0c16c;
  background: linear-gradient(#85a949, #4a722c); color: #fff4cb;
  box-shadow: inset 0 2px #e8f8b960, 0 4px 0 #091d12, 0 0 0 2px #0d2618;
  font-family: inherit; font-size: 20px; font-weight: 700;
  text-shadow: 0 2px #2d451b; cursor: pointer;
}
#update-apply:hover:not(:disabled) { filter: brightness(1.13); }
#update-apply:active:not(:disabled) { transform: translateY(2px); }
#update-apply:focus-visible { outline: 3px solid #fff0a4; outline-offset: 4px; }
#update-apply:disabled { cursor: wait; opacity: .75; }
.update-safe { display: block; margin-top: 14px; font-size: 11px; color: #bdcba8; }
@media (max-height: 570px) and (min-width: 620px) {
  #game-update { width: min(720px, calc(100vw - 48px)); max-height: calc(100dvh - 40px); }
  .update-panel { padding: 32px 24px 16px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: center; }
  .update-brand { grid-column: 1 / -1; margin-bottom: 10px; font-size: 17px; }
  .update-eyebrow, #update-title, #update-copy { grid-column: 1; }
  .update-eyebrow { margin-bottom: 5px; font-size: 9px; }
  #update-title { font-size: 26px; }
  #update-copy { font-size: 13px; margin-bottom: 0; }
  .update-versions { grid-column: 2; grid-row: 2 / 4; padding: 10px; gap: 8px; }
  .update-status { grid-column: 2; grid-row: 4; margin: 4px 0 10px; }
  #update-progress { grid-column: 2; margin-bottom: 8px; }
  #update-apply { grid-column: 2; min-height: 44px; font-size: 17px; }
  .update-safe { grid-column: 1 / -1; margin-top: 12px; }
  .update-crest { width: 140px; height: 88px; top: -38px; }
  .update-vine { width: 110px; height: 100px; }
}
@media (max-width: 619px) {
  #game-update { width: calc(100vw - 38px); }
  .update-panel { max-height: calc(100dvh - 94px); overflow: auto; padding: 40px 18px 18px; }
}
