:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  color: #f4e6c6;
  background: #101112;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 35%, #2f2920 0, #161516 56%, #0e0f10 100%);
}
section { text-align: center; padding: 2rem; }
.brand {
  color: #d6b478;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .9rem;
  margin: 0 0 .8rem;
}
h1 {
  font-family: "Songti SC", "SimSun", Georgia, serif;
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 600;
  letter-spacing: .12em;
  margin: 0;
}
.rule {
  width: min(16rem, 80%);
  height: 1px;
  margin: 1.4rem auto 2rem;
  background: linear-gradient(90deg, transparent, #c29a55, transparent);
}
button {
  font: inherit;
  font-weight: 600;
  border: 1px solid #aa8244;
  border-radius: .3rem;
  padding: .66rem 1rem;
  color: #f4e6c6;
  background: #292117;
  cursor: pointer;
}
button:hover { background: #45351f; }
button:focus-visible { outline: 2px solid #f4ce89; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .7; }
#play { background: #dfbd7e; color: #1d170e; padding-inline: 2.7rem; }
#play:hover { background: #f1cf92; }
#status { margin: 1.3rem 0 0; color: #d0c3ad; min-height: 1.5em; }
#seats { margin: .6rem 0; color: #d6b478; }
#invitations { margin: 1.1rem auto 0; }
#invite-field { display: grid; gap: .4rem; margin-top: .7rem; text-align: left; }
#invite-url {
  width: min(30rem, 80vw);
  padding: .55rem;
  color: inherit;
  background: #111;
  border: 1px solid #655132;
  border-radius: .25rem;
  font: inherit;
}
#invite-status { color: #d0c3ad; margin: .5rem 0 0; }
#game {
  width: 100%;
  height: calc(100dvh - 3.5rem);
  display: grid;
  place-items: center;
  background: #080809;
  align-self: start;
}
#screen { display: block; max-width: 100%; max-height: 100%; object-fit: contain; touch-action: none; }
#screen:focus { outline: 0; }
#controls {
  position: fixed;
  inset: auto 0 0;
  min-height: 3.5rem;
  padding: .3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  background: #171515;
  border-top: 1px solid #403126;
}
#game:fullscreen { height: 100%; }
