/* Snowmoon Forever — GPL-3.0-or-later. Page styles for the WebGL template (art bible v2 palette). */
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #16201a; }
#unity-canvas { width: 100%; height: 100%; display: block; background: #16201a; outline: none; }

#sm-loader {
  position: fixed; inset: 0; overflow: hidden; background: #16201a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #f4eee0;
  transition: opacity 0.7s ease;
}
#sm-loader.sm-hidden { opacity: 0; pointer-events: none; }
/* key art (pipeline/higgsfield: loading_keyart_v1), drifting slowly */
.sm-loader-art {
  position: absolute; inset: -3%; background: url("loading.jpg") center 40% / cover no-repeat;
  animation: sm-drift 38s ease-in-out infinite alternate;
}
@keyframes sm-drift { from { transform: scale(1.0) translate(0, 0); } to { transform: scale(1.07) translate(-1.5%, -1%); } }
.sm-loader-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 12, 0.35) 0%, rgba(10, 16, 12, 0) 28%, rgba(10, 16, 12, 0) 52%, rgba(10, 16, 12, 0.82) 100%);
}
.sm-loader-mark {
  position: absolute; top: 5vh; left: 50%; transform: translateX(-50%);
  width: min(360px, 62vw); filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}
.sm-loader-panel {
  position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); width: min(560px, 88vw);
  padding: 18px 22px; border-radius: 18px; box-sizing: border-box;
  background: rgba(22, 30, 25, 0.72); border: 1px solid rgba(236, 211, 150, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sm-loader-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
#sm-loader-status { color: #f3e2b4; letter-spacing: 0.2px; }
#sm-loader-pct { color: rgba(244, 238, 224, 0.7); font-variant-numeric: tabular-nums; }
.sm-loader-bar { margin: 10px 0 12px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
#sm-loader-fill { width: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5e8c4a, #8dbf5a 55%, #ecce80); transition: width 0.25s; }
#sm-loader-tip { min-height: 20px; font-size: 14px; color: rgba(244, 238, 224, 0.92); transition: opacity 0.4s; }
#sm-loader-tip.sm-fade { opacity: 0; }
.sm-loader-credit { margin-top: 10px; font-size: 11px; color: rgba(244, 238, 224, 0.55); line-height: 1.4; }
@media (max-height: 520px) { .sm-loader-mark { width: min(240px, 40vw); top: 3vh; } .sm-loader-panel { bottom: 3vh; padding: 12px 16px; } }

/* HTML text inputs laid over UI Toolkit text fields (Runtime/UI/WebTextInput.cs); same look as the in-game field. */
.sm-text-input {
  z-index: 20; box-sizing: border-box; margin: 0; padding: 0 8px;
  background: rgb(28, 36, 30); color: rgb(246, 238, 220); caret-color: rgb(196, 236, 150);
  border: 1px solid rgba(236, 211, 150, 0.45); border-radius: 8px; outline: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.sm-text-input:focus { border-color: rgb(196, 236, 150); }
.sm-text-input::selection { background: rgba(141, 191, 90, 0.35); }
