/* HideNSeek loading/frame page — replaces the default white Cocos shell.
   Dropped in build-templates/web-desktop/ so every build keeps this look.
   Light theme: calm mid-grey, no heavy gradients/glows. */

:root {
  --safe-top: env(safe-area-inset-top);
  --safe-right: env(safe-area-inset-right);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --grey: #808080;   /* mid grey base */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
/* solid base so there is never a white flash — matches the body tone */
html { background: var(--grey); }

body {
  cursor: default;
  padding: 0; border: 0; margin: 0;
  min-height: 100vh;
  text-align: center;
  font-family: 'Trebuchet MS', Helvetica, Verdana, Arial, sans-serif;
  color: #f5f5f5;
  /* gentle mid-grey — barely-there gradient, no color */
  background: linear-gradient(180deg, #8a8a8a 0%, #767676 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow-x: hidden;
}

body, canvas, div {
  outline: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

canvas { background-color: rgba(0, 0, 0, 0); }

/* Game title above the canvas — clean, no glow */
.header {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(14px, 2.5vw, 27px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

#GameDiv {
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(0, 0, 0, .18);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

#Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}

/* Cocos credit — kept (engine terms) but small and unobtrusive */
.footer {
  position: fixed;
  z-index: 1;
  bottom: 8px;
  left: 0; right: 0;
  margin: 0;
  font-size: 11px;
  letter-spacing: .5px;
  color: rgba(0, 0, 0, .35);
}
.footer a { color: rgba(0, 0, 0, .5); text-decoration: none; }
.footer a:hover { color: rgba(0, 0, 0, .8); }
