/* Account status is an overlay: loading never changes the game controls' geometry. */
.app .web-status {
  position: fixed;
  inset: auto auto max(20px, env(safe-area-inset-bottom)) 20px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(440px, calc(100vw - 40px));
  min-height: 0;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  background: rgba(5,71,92,.96);
  box-shadow: 0 8px 28px rgba(0,62,85,.18);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  pointer-events: none;
}
.app .web-status:empty, .unity-open .app .web-status { display: none; }
.app:not([data-view="home"]) .web-status { bottom: max(132px, calc(env(safe-area-inset-bottom) + 112px)); }
.app .web-status[data-tone="error"] { background: #792546; color: #fff; }
.web-status[data-notice-kind="loading"]::before {
  content: ""; flex: 0 0 16px; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #d6fb57;
  border-radius: 50%; animation: account-status-spin .9s linear infinite;
}
@keyframes account-status-spin { to { transform: rotate(360deg); } }

.engagement-reward, .mobile-promotion {
  width: min(1180px, 100%); margin: 0 auto; box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.45); border-radius: 28px;
  background: rgba(255,255,255,.13); color: #fff;
}
.engagement-reward[hidden] { display: none; }
.engagement-reward { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 28px; }
.engagement-reward h2, .mobile-promotion h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.engagement-reward p { margin: 0; line-height: 1.5; font-size: 16px; }
.engagement-reward-meter { min-width: 165px; flex: 0 0 190px; }
.engagement-reward progress { width: 100%; height: 12px; border: 0; border-radius: 20px; overflow: hidden; accent-color: #d6fb57; background: rgba(0,66,92,.25); }
.engagement-reward progress::-webkit-progress-bar { background: rgba(0,66,92,.25); }
.engagement-reward progress::-webkit-progress-value { background: #d6fb57; border-radius: 20px; }
.engagement-reward progress::-moz-progress-bar { background: #d6fb57; }
.engagement-reward-meter p { margin-top: 8px; font-weight: 800; }
.mobile-promotion { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 36px; align-items: center; padding: 32px 40px; text-align: left; }
.mobile-promotion-copy > p { max-width: 570px; margin: 0 0 24px; font-size: 17px; line-height: 1.55; }
.mobile-platforms { display: flex; gap: 20px; flex-wrap: wrap; }
.mobile-platform { min-width: 160px; padding: 0; }
.mobile-platform h3 { margin: 0 0 6px; font-size: 19px; }
.mobile-coming { display: inline-block; color: #d6fb57; font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.mobile-availability-link { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; gap: 9px; color: #fff; text-underline-offset: 4px; font-size: 15px; font-weight: 700; }
.mobile-availability-link:focus-visible { outline: 3px solid #d6fb57; outline-offset: 6px; border-radius: 8px; }
.mobile-qr { display: block; width: 132px; height: 132px; border-radius: 12px; background: #fff; }
.mobile-promotion-copy > .mobile-qr-caption { margin: 20px 0 0; font-size: 14px; }
.mobile-app-preview { margin: 0; text-align: center; }
.mobile-app-preview img { display: block; width: 100%; height: auto; border: 5px solid rgba(255,255,255,.8); box-sizing: border-box; border-radius: 30px; box-shadow: 0 16px 34px rgba(0,79,107,.16); }
.mobile-app-preview figcaption { margin-top: 12px; font-size: 13px; }

#engagement-offer {
  box-sizing: border-box; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 30px; overflow: auto; border: 1px solid rgba(255,255,255,.85); border-radius: 30px;
  background: #f0fbff; color: #064b64; text-align: center; box-shadow: 0 30px 100px rgba(0,45,70,.32);
}
#engagement-offer::backdrop { background: rgba(0,39,58,.58); backdrop-filter: blur(5px); }
#engagement-offer-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: #064b64; font-size: 30px; border-radius: 50%; }
.engagement-offer-art { display: block; width: min(240px, 100%); height: 170px; margin: 6px auto 12px; object-fit: contain; }
#engagement-offer h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.1; }
#engagement-offer-copy { margin: 0; font-size: 16px; line-height: 1.5; }
#engagement-offer-price { margin: 18px 0; font-size: 32px; font-weight: 900; }
#engagement-offer-error { font-size: 14px; line-height: 1.45; color: #962449; }
#engagement-offer-error:empty { display: none; }
.engagement-offer-actions { display: flex; flex-direction: column; gap: 10px; }
.engagement-offer-actions button { width: 100%; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 24px; font: inherit; font-weight: 800; cursor: pointer; }
#engagement-offer-buy { background: #ff2580; color: #fff; }
#engagement-offer-dismiss { background: transparent; color: #064b64; }
#engagement-offer button:focus-visible { outline: 3px solid #077795; outline-offset: 3px; }
#engagement-offer button:disabled { opacity: .6; cursor: progress; }
.side-tile[data-skin="barons"].locked::after, .select-tile[data-skin="barons"].locked::after { content: "3 × ♟"; }

@media (max-width: 700px) {
  .engagement-reward { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px; }
  .engagement-reward-meter { flex: none; }
  .mobile-promotion { grid-template-columns: 1fr; padding: 26px 22px; gap: 28px; }
  .mobile-platforms { gap: 24px 14px; }
  .mobile-platform { min-width: 0; flex: 1 1 120px; }
  .mobile-platform h3 { font-size: 16px; min-height: 2.6em; }
  .mobile-qr { width: 116px; height: 116px; }
  .mobile-app-preview { width: min(190px, 100%); justify-self: center; }
  .app .web-status { left: 12px; max-width: calc(100vw - 24px); padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .web-status[data-notice-kind="loading"]::before { animation: none; } }

/* Keep the newly adjacent home sections together without altering the game grid. */
.growth-page { row-gap: 32px; }
.engagement-reward-meter { min-height: 60px; }
