/* Rental Rush in the browser: teal room, the game in a phone-shaped column (full screen on touch devices). */
:root {
  --ink: #1C2333;
  --teal: #0F6E7A;
  --teal-deep: #0A5560;
  --sun: #FFC53D;
  --cream: #FFF6E8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #17909C 0%, var(--teal) 45%, var(--teal-deep) 100%);
  color: var(--cream);
  font: 500 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

#room {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

#phone {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

body.desk #phone {
  border-radius: 26px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9), 0 24px 60px rgba(8, 20, 30, 0.45);
}

body.hand #phone {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
  background: var(--ink);
}

#curtain {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--teal);
  transition: opacity 0.35s ease;
}

#curtain.gone { opacity: 0; pointer-events: none; }

#logo { width: min(72%, 360px); height: auto; filter: drop-shadow(0 8px 14px rgba(8, 20, 30, 0.25)); }

#meter {
  width: min(60%, 260px);
  height: 14px;
  border-radius: 7px;
  background: rgba(28, 35, 51, 0.45);
  overflow: hidden;
}

#meter-fill {
  width: 10%;
  height: 100%;
  border-radius: 7px;
  background: var(--sun);
  transition: width 0.2s ease;
}

#meter-text { margin: 0; font-weight: 700; letter-spacing: 0.04em; opacity: 0.9; }

#trouble {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FF6F59;
  color: #fff;
  font-weight: 600;
}

#keys {
  width: 280px;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: rgba(255, 246, 232, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(8, 20, 30, 0.3);
}

#keys h2 { margin: 0 0 12px; font-size: 21px; font-weight: 800; color: var(--teal-deep); }
#keys ul { list-style: none; margin: 0 0 12px; padding: 0; }
#keys li { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
#keys p { margin: 8px 0 0; }
#keys .quiet { color: #6B7385; font-size: 13px; }

.caps {
  flex: none;
  min-width: 88px;
  padding: 4px 8px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 3px 0 #0B0F18;
}
