body { padding: 0; margin: 0; background: #0b0805 }
#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% }
/* loading-bg.jpg = Resources/LoadingScreen/LoadingArt.png (1280 px), the game's own loading picture, so the page and the
   game's loading screen look the same; index.html removes it once the game starts drawing. */
#unity-canvas { display: block; background: #1F1F20 url('loading-bg.jpg') center / cover no-repeat }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
/* The bottom band of the loading picture is kept free for this panel. */
#unity-loading-bar { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: none; box-sizing: border-box; width: min(86%, 460px); padding: 14px 20px 12px; text-align: center; background: rgba(14, 9, 4, .78); border: 1px solid rgba(201, 162, 74, .65); border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45) }
#unity-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; font: bold 24px Georgia, "Times New Roman", serif; color: #f3d58a; text-shadow: 0 2px 6px rgba(0, 0, 0, .8) }
#unity-logo img { width: 40px; height: 40px; border-radius: 8px }
#unity-progress-bar-empty { height: 10px; background: #2a1f10; border: 1px solid #6b5326; border-radius: 6px; overflow: hidden }
#unity-progress-bar-full { width: 0%; height: 100%; background: linear-gradient(90deg, #a5701f, #f3d58a); transition: width .25s }
#phongthan-load { margin-top: 8px; font: 14px sans-serif; color: #e9dcc0 }
#phongthan-load-text:empty { display: none }
#phongthan-load-retry { margin-top: 8px; padding: 8px 20px; font-size: 15px; color: #f6e2a8; background: #3a2a12; border: 1px solid #c9a24a; border-radius: 6px; cursor: pointer }
#unity-footer { position: relative; box-sizing: border-box; height: 38px; display: flex; align-items: center; gap: 16px; padding: 0 6px 0 10px; background: #120d06; border-top: 1px solid #3a2a12; font: 15px sans-serif; color: #c9b27a; white-space: nowrap }
.unity-mobile #unity-footer { display: none }
#phongthan-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font: bold 17px Georgia, "Times New Roman", serif; color: #f3d58a }
#phongthan-brand img { width: 26px; height: 26px; border-radius: 5px }
#unity-footer a { color: #c9b27a; text-decoration: none }
#unity-footer a:hover { color: #f3d58a; text-decoration: underline }
#unity-fullscreen-button { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: #c9b27a }
#unity-fullscreen-button:hover { color: #f3d58a; background: #2a1f10 }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
#phongthan-orient { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 10; display: none; align-items: center; justify-content: center; text-align: center; background: rgba(8, 6, 4, .94); color: #f1d38a; font-family: sans-serif; font-size: 18px; line-height: 1.5 }
#phongthan-orient > div { max-width: 80% }
#phongthan-orient-icon { font-size: 56px; line-height: 1.2 }
#phongthan-orient-button { margin-top: 18px; padding: 12px 26px; font-size: 18px; color: #f6e2a8; background: #3a2a12; border: 1px solid #c9a24a; border-radius: 6px }
#phongthan-tab { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 12; display: none; align-items: center; justify-content: center; text-align: center; background: rgba(8, 6, 4, .94); color: #f1d38a; font-family: sans-serif; font-size: 18px; line-height: 1.5 }
#phongthan-tab > div { max-width: 80% }
#phongthan-tab button { margin-top: 18px; padding: 12px 26px; font-size: 18px; color: #f6e2a8; background: #3a2a12; border: 1px solid #c9a24a; border-radius: 6px }
#phongthan-text { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 11; display: none; align-items: flex-start; justify-content: center; background: rgba(8, 6, 4, .7); font-family: sans-serif }
#phongthan-text > div { margin-top: 6vh; padding: 16px 20px; width: min(80%, 460px); background: #241a0c; border: 1px solid #c9a24a; border-radius: 8px; color: #f1d38a; text-align: center }
#phongthan-text-title { font-size: 18px; margin-bottom: 10px }
#phongthan-text-input { box-sizing: border-box; width: 100%; padding: 10px; font-size: 20px; color: #f6e2a8; background: #120d06; border: 1px solid #c9a24a; border-radius: 6px }
#phongthan-text-hint { display: none; margin-top: 8px; font-size: 15px; color: #c9b27a }
#phongthan-text button { margin: 14px 8px 0; padding: 10px 24px; font-size: 18px; color: #f6e2a8; background: #3a2a12; border: 1px solid #c9a24a; border-radius: 6px }
