:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", "PingFang SC", sans-serif; background: #f5f6fa; color: #222; }
.card { max-width: 720px; margin: 32px auto; padding: 24px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0 0 12px; }
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.row.spread { justify-content: space-between; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
label { display: flex; flex-direction: column; font-size: 13px; color: #555; }
input, select { padding: 8px 10px; border: 1px solid #d0d4dd; border-radius: 6px; font-size: 14px; }
button { padding: 8px 16px; border: 0; border-radius: 6px; background: #1e88e5; color: #fff; font-size: 14px; cursor: pointer; }
button:hover { background: #1976d2; }
button.secondary { background: #888; }
button.danger { background: #e53935; }
.msg { min-height: 20px; font-size: 13px; color: #c00; }
.msg.ok { color: #2a7; }
#room { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.status-bar { position: absolute; top: 0; left: 0; right: 0; height: 56px; background: rgba(255,255,255,.92); border-bottom: 1px solid #e0e3eb; display: flex; align-items: center; padding: 0 16px; gap: 16px; z-index: 5; font-size: 14px; }
.status-bar .me { font-weight: 700; }
.status-bar .slot { padding: 4px 10px; border-radius: 999px; background: #eef2f7; }
.status-bar .slot.done { background: #c8e6c9; }
.status-bar .seat { color: #888; margin-right: 6px; }
.status-bar button { margin-left: auto; }
#game { display: block; width: 100vw; height: 100vh; background: #fafbfc; }
.overlay { position: absolute; inset: 0; background: rgba(255,255,255,.86); display: flex; align-items: center; justify-content: center; z-index: 10; font-size: 28px; text-align: center; padding: 32px; }
.overlay .panel { background: #fff; border-radius: 16px; padding: 32px 40px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.overlay table { border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.overlay th, .overlay td { border-bottom: 1px solid #eee; padding: 6px 12px; text-align: left; }
.overlay .big { font-size: 80px; font-weight: 800; color: #1e88e5; }
#history { font-size: 13px; max-height: 180px; overflow: auto; border-top: 1px dashed #ddd; padding-top: 8px; }
#history div { padding: 4px 0; border-bottom: 1px solid #f1f1f1; }
