html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #14110f;
  color: #fff8ec;
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #14110f;
  outline: none;
}

/* ------------------------------------------------------------ start screen */

#gh-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #3a2414 0%, #14110f 70%);
  transition: opacity .35s ease;
  z-index: 10;
}

#gh-screen.gh-hide { opacity: 0; pointer-events: none; }

#gh-box {
  text-align: center;
  padding: 16px;
  max-width: 90vw;
}

#gh-title {
  font-size: clamp(64px, 16vmin, 150px);
  font-weight: 900;
  line-height: 1;
  color: #ffc21a;
  -webkit-text-stroke: 4px #1b0f05;
  paint-order: stroke fill;
  text-shadow: 0 8px 0 #1b0f05;
}

#gh-subtitle {
  margin-top: 8px;
  font-size: clamp(16px, 3.5vmin, 26px);
  font-weight: 800;
  letter-spacing: .5em;
  color: #ffdf8a;
}

#gh-play {
  margin-top: 6vmin;
  padding: 14px 64px 12px;
  font: inherit;
  font-size: clamp(26px, 6vmin, 44px);
  font-weight: 900;
  color: #1b0f05;
  background: #ffc21a;
  border: 4px solid #1b0f05;
  border-radius: 18px;
  box-shadow: 0 7px 0 #1b0f05;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}

#gh-play span {
  display: block;
  font-size: .42em;
  letter-spacing: .3em;
}

#gh-play:hover { background: #ffd34d; }
#gh-play:active { transform: translateY(5px); box-shadow: 0 2px 0 #1b0f05; }

#gh-loading { margin-top: 6vmin; }
#gh-loading[hidden], #gh-error[hidden], #gh-play[hidden], #gh-fullscreen[hidden],
#gh-install[hidden], #gh-install-hint[hidden], #gh-install-app[hidden], #gh-install-steps[hidden] { display: none; }

#gh-install-hint {
  margin-top: 4vmin;
  padding: 8px 18px;
  font: inherit;
  font-weight: 800;
  color: #ffdf8a;
  background: transparent;
  border: 2px solid #8f7c63;
  border-radius: 12px;
  cursor: pointer;
}

#gh-bar {
  width: min(420px, 70vw);
  height: 22px;
  margin: 0 auto;
  border: 4px solid #1b0f05;
  border-radius: 14px;
  background: #3a2414;
  overflow: hidden;
}

#gh-bar-fill {
  width: 0%;
  height: 100%;
  background: #ffc21a;
  transition: width .2s ease;
}

#gh-percent {
  margin-top: 10px;
  font-weight: 800;
  color: #ffdf8a;
}

#gh-error {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #b3261e;
  font-weight: 700;
  direction: ltr;
}

#gh-keys {
  margin-top: 5vmin;
  font-size: 14px;
  color: #c9b79c;
}

#gh-studio {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: .15em;
  color: #8f7c63;
}

.gh-mobile #gh-keys { display: none; }

/* ------------------------------------------------------------ full screen button */

#gh-fullscreen {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  color: #fff8ec;
  background: rgba(0, 0, 0, .35);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  z-index: 15;
  opacity: .55;
}

#gh-fullscreen:hover { opacity: 1; }
:fullscreen #gh-fullscreen, :-webkit-full-screen #gh-fullscreen { display: none; }

/* ------------------------------------------------------------ add to home screen (iPhone) */

#gh-install {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 8, 6, .82);
}

#gh-install-box {
  width: min(460px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 18px 20px;
  direction: rtl;
  text-align: right;
  background: #2a1c10;
  border: 4px solid #1b0f05;
  border-radius: 18px;
  box-shadow: 0 7px 0 #1b0f05;
}

#gh-install-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffc21a;
  text-align: center;
}

#gh-install-steps { margin: 12px 0 0; padding-right: 22px; line-height: 1.5; }
#gh-install-steps li { margin-bottom: 8px; }
#gh-install-steps small { color: #c9b79c; }

.gh-share {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: #fff8ec;
  color: #1b0f05;
}

#gh-install-app, #gh-install-close {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  color: #1b0f05;
  background: #ffc21a;
  border: 3px solid #1b0f05;
  border-radius: 12px;
  cursor: pointer;
}

#gh-install-close { background: #c9b79c; }

/* ------------------------------------------------------------ phones held upright */

#gh-rotate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #14110f;
  font-size: 24px;
  font-weight: 800;
  color: #ffc21a;
  text-align: center;
}

#gh-rotate span {
  margin-top: 8px;
  font-size: 15px;
  color: #c9b79c;
}

@media (orientation: portrait) {
  .gh-mobile #gh-rotate { display: flex; }
}
