/* World Board Game 3D - release 1 (free offline preview on worldboardgame.com/game3d/).
   Added by tools/build_release1.py to the release copy only; the dev game in web/ is unchanged.
   Release 1 = one device, free: no shop, no Gold Pass, no online rooms, no AR. */

/* features that are not part of release 1 (the code behind them is also disabled in the copy) */
#marketBtn, #p3dOnline, #phAr, .pc-buy,
section:has(> label input[data-set="online"]) { display: none !important; }

/* loading screen */
#wgLoad {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #fff6fb 0%, #fde3f0 55%, #f6c9de 100%);
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif; color: #3A2E39; padding: 24px; box-sizing: border-box;
  transition: opacity .45s ease;
}
#wgLoad.done { opacity: 0; pointer-events: none; }
#wgLoad .ld-card { max-width: 420px; width: 100%; text-align: center; }
#wgLoad .ld-crown { font-size: 46px; line-height: 1; }
#wgLoad h1 { margin: 6px 0 0; font-size: 30px; letter-spacing: 1px; color: #E0559A; line-height: 1.1; }
#wgLoad .ld-tag { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: #fff;
  border: 2px solid #D4A537; color: #A87F22; font-size: 13px; font-weight: 800; letter-spacing: .5px; }
#wgLoad .ld-bar { margin: 22px auto 8px; height: 12px; width: 100%; max-width: 320px; border-radius: 999px;
  background: #fff; border: 2px solid #f0c7da; overflow: hidden; }
#wgLoad .ld-fill { height: 100%; width: 8%; border-radius: 999px; background: linear-gradient(90deg, #F26CA7, #D4A537);
  transition: width .4s ease; }
#wgLoad .ld-msg { font-family: "Nunito", system-ui, sans-serif; font-size: 14px; font-weight: 700; color: #6d5d68; min-height: 40px; }
#wgLoad .ld-links { margin-top: 14px; font-family: "Nunito", system-ui, sans-serif; font-size: 13px; font-weight: 800; }
#wgLoad .ld-links a, #wgPreview a { color: #b8336f; text-decoration: underline; }
#wgLoad .ld-err { display: none; margin-top: 12px; font-family: "Nunito", system-ui, sans-serif; font-size: 14px;
  font-weight: 700; color: #8a2b14; background: #fff4ec; border: 2px solid #f3cdb3; border-radius: 12px; padding: 10px 12px; }
#wgLoad.err .ld-err { display: block; }
#wgLoad.err .ld-bar { display: none; }
#wgLoad button { margin-top: 10px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; border: 0; border-radius: 12px;
  padding: 10px 22px; background: linear-gradient(180deg, #F26CA7, #d94f8e); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { #wgLoad, #wgLoad .ld-fill { transition: none; } }

/* "free 3D preview" label with the way back to the main site and the classic game */
#wgPreview {
  position: fixed; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  font: 800 11.5px/1.3 "Nunito", system-ui, sans-serif; color: #5a4757; background: rgba(255, 255, 255, .92);
  border: 1.5px solid #e8c9da; border-radius: 999px; padding: 5px 11px; box-shadow: 0 2px 8px rgba(160, 48, 96, .12);
  max-width: calc(100vw - 16px); box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#wgPreview b { color: #E0559A; }
body.wg-in-game #wgPreview { display: none; }
/* phones: a small two-line tag in the free top-left corner (the bottom holds the grown-ups buttons) */
@media (max-width: 600px) {
  #wgPreview { top: calc(8px + env(safe-area-inset-top, 0px)); bottom: auto; border-radius: 12px; white-space: normal;
    max-width: 116px; padding: 4px 8px; font-size: 10.5px; line-height: 1.35; }
  #wgPreview .pv-long, #wgPreview .pv-sep { display: none; }
  #wgPreview .pv-links { display: block; }
}
