* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; }
button { font: inherit; }
.screen { padding: 16px; max-width: 480px; margin: 0 auto; }
.card { background: #f3f3f3; border-radius: 12px; padding: 12px; margin: 12px 0; }
.card input { display: block; width: 100%; padding: 12px; margin: 6px 0; font-size: 18px; }
.card button { width: 100%; padding: 14px; font-size: 18px; }
.err { color: red; margin-top: 8px; }
.header { font-size: 14px; opacity: .7; text-align: center; margin-bottom: 16px; }
.buzzer { width: 100%; height: 60vh; font-size: 48px; font-weight: 800; border-radius: 24px; border: none; }
.buzzer.disabled { background: #ccc; color: #777; }
.buzzer.armed { background: #d11; color: white; }
.buzzer.pressed { background: #2a2; color: white; }
.queue { list-style: none; padding: 0; }
.qrow { padding: 12px; border-radius: 8px; margin: 6px 0; background: #f3f3f3; }
.qrow.active { background: #ffd; outline: 2px solid #c80; }
.qmain { display: flex; gap: 12px; align-items: center; }
.qteam { font-weight: 700; }
.qdelta { margin-left: auto; opacity: .7; }
.qexp { padding: 4px 8px; font-size: 12px; }
.qothers { font-size: 14px; padding-left: 24px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.actions button { padding: 12px 18px; font-size: 16px; }
.actions .big { padding: 16px 24px; font-size: 20px; flex: 1; }
.actions .good { background: #2a2; color: white; }
.actions .bad  { background: #c22; color: white; }
.tech { padding: 16px; max-width: 900px; margin: 0 auto; }
.tech section { margin-bottom: 20px; }
.tech table { width: 100%; border-collapse: collapse; }
.tech table th, .tech table td { padding: 6px; border-bottom: 1px solid #eee; text-align: left; }
.tech button { padding: 8px 14px; margin-right: 6px; }
.display { padding: 40px; min-height: 100vh; background: #111; color: white; font-family: system-ui; }
.display h1 { font-size: 64px; text-align: center; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.team-card { background: #222; padding: 16px; border-radius: 12px; }
.team-name { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.team-card ul { list-style: none; padding: 0; }
.team-card li { font-size: 20px; padding: 4px 0; }
.answering { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; }
.team-big { font-size: 120px; font-weight: 900; }
.player-big { font-size: 80px; opacity: .8; }
.board { font-size: 36px; max-width: 800px; margin: 0 auto; }
.board li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #333; }
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; }
.shot { text-align: center; padding-top: 10vh; }
.shot h1 { font-size: 240px; }

/* invite block on player screen */
.invite { background: #ffe; border: 1px solid #cc0; border-radius: 12px; padding: 12px; margin: 12px 0; }
.invite-row { margin: 4px 0; }
.invite-row.small { font-size: 14px; opacity: .8; word-break: break-all; }
.invite .code { font-size: 28px; letter-spacing: 4px; }
.invite a { color: #06c; }
.invite .copy { width: 100%; padding: 10px; margin-top: 8px; }

/* display lobby code + hint */
.lobby-hint { text-align: center; font-size: 24px; opacity: .8; margin-bottom: 24px; }
.team-code { font-size: 18px; opacity: .8; margin: 4px 0 8px; }
.team-code b { letter-spacing: 3px; color: #ffd700; }

.tech section.danger { border-top: 2px dashed #c22; margin-top: 24px; padding-top: 12px; }
.tech .danger-btn { background: #c22; color: white; padding: 10px 18px; }

.lobby-header { display: flex; gap: 32px; align-items: center; justify-content: center; margin-bottom: 24px; }
.lobby-title h1 { text-align: left; margin: 0; }
.lobby-title .lobby-hint { text-align: left; font-size: 22px; opacity: .85; margin-top: 12px; }
.lobby-qr { width: 260px; height: 260px; background: white; border-radius: 12px; padding: 12px; }

.tech .code-pill { font-size: 12px; opacity: .7; letter-spacing: 2px; margin-left: 6px; }
.tech .p-chip { display: inline-block; background: #eee; border-radius: 4px; padding: 2px 6px; margin: 2px; }
.tech .p-chip a { color: #c22; margin-left: 4px; cursor: pointer; }
.tech button.del { background: #c22; color: white; }

.qdelta-start { margin-left: 12px; font-size: 12px; opacity: .65; }
.qothers .qdelta-start { display: inline; }
