/* WP-33 part 2: King Of The Port's own page. The navy, cream and mustard of the screens (asset_spec/screens.md). */
html, body { height: 100%; }
body { padding: 0; margin: 0; background: radial-gradient(ellipse at 50% 35%, #1d4552 0%, #14313b 45%, #0b1d24 100%) fixed; color: #f6eedc;
       font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
#unity-container { position: absolute; }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%); }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100%; }
/* full window (phones, and a page told so): over the desktop frame's own size, which the page script sets inline */
.unity-mobile #unity-fullscreen-container { width: 100% !important; height: 100% !important; }
#unity-fullscreen-container { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.unity-mobile #unity-fullscreen-container { border-radius: 0; box-shadow: none; }
#unity-canvas { position: absolute; width: 100%; height: 100%; background: #14313b; }

/* while the game loads: the logo and a progress bar on the navy */
#unity-loading-container { position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
                           background: radial-gradient(ellipse at 50% 40%, #21485a 0%, #14313b 55%, #0d2129 100%); }
#unity-loading-bar { display: flex; flex-direction: column; align-items: center; width: 100%; }
#kotp-logo { width: min(46vw, 46%, 520px); max-height: 58%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.unity-mobile #kotp-logo { width: min(40vw, 60vh, 520px); }
#unity-progress-bar-empty { width: min(40%, 380px); height: 16px; margin-top: 28px; border-radius: 8px; background: rgba(246, 238, 220, 0.18);
                            overflow: hidden; }
#unity-progress-bar-full { width: 0%; height: 100%; border-radius: 8px; background: #f2b233; transition: width 0.2s ease-out; }

/* under the game on a desktop: the name and full screen */
#unity-footer { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px; }
.unity-mobile #unity-footer { display: none; }
#kotp-footer-crown { width: 26px; height: 26px; }
#unity-build-title { flex: 1; font-size: 17px; font-weight: 600; letter-spacing: 0.02em; color: #f6eedc; }
#unity-fullscreen-button { cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
                           border-radius: 10px; background: rgba(33, 72, 90, 0.9); }
#unity-fullscreen-button:hover { background: rgb(42, 88, 108); }

/* Unity's messages */
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); display: none; z-index: 2; }
#unity-warning > div { background: #f6eedc; color: #10262f; padding: 10px 14px; border-radius: 10px; margin-bottom: 6px; }
#unity-warning > div.kotp-warning { background: #f2b233; }
#unity-warning > div.kotp-error { background: #10262f; color: #f6eedc; border: 2px solid #f2b233; }
