:root {
  color: #2f3336;
  background: #ecebe6;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color-scheme: light;
}
html, body { margin: 0; height: 100%; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: 0.3; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #0c6266; outline-offset: 5px; }
[hidden] { display: none !important; }
#app canvas { display: block; }
#home {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 24px;
  background: rgba(247, 246, 241, 0.86);
  overflow-y: auto;
}
#home h1 { margin: 0 0 36px; font-size: clamp(24px, 4vw, 36px); font-weight: 500; text-align: center; }
.choices { display: flex; gap: clamp(16px, 4vw, 64px); }
.choices button {
  min-width: 144px;
  min-height: 96px;
  padding: 16px 24px;
  border: 0;
  background: transparent;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
}
.choices button:hover:enabled { background: #e4e3dd; }
.live-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; margin-top: 28px; cursor: pointer; }
.live-toggle input { width: 22px; height: 22px; accent-color: #2f3336; cursor: pointer; }
#home-status { text-align: center; min-height: 24px; margin: 8px 0 0; }
#watch-panel { position: fixed; inset: 0; display: grid; place-content: center; gap: 16px; background: #ecebe6; text-align: center; }
#watch-status { font-size: 24px; margin: 0; }
#rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 720px; padding: 24px; }
#rooms button { min-height: 64px; min-width: 120px; border: 0; background: #f7f6f1; font-size: 24px; padding: 12px 24px; }
#broadcast-status { position: fixed; top: 16px; right: 24px; margin: 0; color: #8b3430; }
#fatal { position: fixed; inset: 0; display: grid; place-content: center; gap: 24px; text-align: center; background: #ecebe6; }
#fatal button { min-height: 64px; border: 0; padding: 16px 32px; background: #f7f6f1; }
body.in-vr #home, body.in-vr #broadcast-status { display: none; }
body.cursor-hidden, body.cursor-hidden canvas { cursor: none; }
@media (max-width: 620px) {
  .choices { flex-direction: column; gap: 4px; }
  .choices button { min-width: 240px; min-height: 80px; }
  #home h1 { margin-bottom: 20px; }
  .live-toggle { margin-top: 16px; }
}
@media (max-height: 480px) and (min-width: 621px) {
  #home h1 { margin-bottom: 12px; }
  .live-toggle { margin-top: 8px; }
}
