* { box-sizing: border-box }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #0c0c11; color: #faf7ed; font: 17px system-ui,sans-serif }
#game, main { position: absolute; inset: 0; width: 100%; height: 100% }
#game { outline: 0; touch-action: none }
main { display: grid; align-items: end; background: linear-gradient(0deg,rgba(9,9,16,.96),rgba(9,9,16,.26)),url("./wallpaper.png") center/cover }
.panel { padding: max(28px,6vh) max(28px,6vw); max-width: 57rem }
h1 { font: bold clamp(38px,8vw,100px)/1 system-ui,sans-serif; letter-spacing: -.055em; margin: 0; color: #ffdb75 }
p { margin: 14px 0 }
progress { display: block; width: min(430px,75vw); height: 9px; accent-color: #ffcf55 }
button { color: #18171c; border: 0; border-radius: 5px; padding: .7em 1.2em; font: inherit; background: #ffdb75; cursor: pointer }
#notice { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: white; background: #211e28; padding: .7em 1em; border-radius: 6px; pointer-events:none }
[hidden] { display: none !important }
#room-menu { max-width: 34rem }
#room-menu footer { margin-top: 1.5rem; font-size: .8rem; color: #ddd }
#room-menu a { color: inherit }
#home { margin-left: 1em }
#share { margin: 1.2rem 0 }
label { display: block; margin-bottom: .4em }
.invite-row { display: flex; gap: .4rem; flex-wrap: wrap }
input { min-width: 0; flex: 1 1 13rem; padding: .65em; font: inherit; color: #fff; border: 1px solid #837f75; border-radius: 5px; background: #191923 }
.invite-row button { background: #f5efdf }
button:disabled { opacity: .65; cursor: wait }
dialog { border: 1px solid #837f75; border-radius: 8px; color: #fff; background: #191923; width: min(29rem,92vw) }
dialog input { width: 100%; margin-bottom: 1em }
.panel { max-height: 100%; overflow: auto }
