html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #1d2b2a;
  color: #f4ecd8;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* The game fills the window; Unity keeps its render size matched to this. */
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #1d2b2a;
  outline: none;
}

#loading, #phone {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    repeating-conic-gradient(#b8463c 0% 25%, #efe4cc 0% 50%) 0 0 / 48px 48px;
}
#loading[hidden], #phone[hidden] { display: none; }

.card {
  background: #1d2b2a;
  border: 4px solid #6fc1b0;
  border-radius: 18px;
  padding: 28px 32px;
  width: min(420px, 100%);
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
}
.title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.bar {
  height: 14px;
  border-radius: 7px;
  background: #2f4442;
  overflow: hidden;
}
#bar-fill {
  height: 100%;
  width: 0;
  background: #6fc1b0;
  transition: width 0.2s ease-out;
}
.note {
  margin-top: 12px;
  font-size: 14px;
  color: #b9c9c4;
}
#phone p { margin: 8px 0; }

#bar-top {
  position: fixed;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  opacity: 0.35;
  transition: opacity 0.2s;
}
#bar-top:hover { opacity: 1; }
.chip {
  font: inherit;
  font-size: 13px;
  color: #f4ecd8;
  background: rgba(29, 43, 42, 0.85);
  border: 1px solid rgba(244, 236, 216, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  cursor: pointer;
}

#error {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #b8463c;
  color: #fff;
  font-size: 14px;
}
#error[hidden] { display: none; }
