/* App shell, gate, lobby, setup, and shared dialog styles for the player app. Owner: ui-dev. */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex: none;
}
.app-header__title { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.app-header__room { color: var(--muted); font-size: 0.9rem; }
.app-header__spacer { flex: 1; }
.rules-button {
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.rules-button:hover { background: var(--accent); color: #fff; }

.app-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-footer { flex: none; padding: 4px 16px; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }

.screen { padding: 24px 16px; }
.screen--narrow { width: min(420px, 100%); margin: 24px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.screen h2 { margin: 0 0 8px; }

.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; max-width: 640px; }
.seat { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.seat__name { color: var(--muted); }
.setup { max-width: 700px; margin: 0 auto; }
.setup__form { max-width: 420px; }
.form__row { display: flex; flex-direction: column; gap: 4px; }
.form__note { margin: 0 0 4px; font-size: 0.85rem; }

.dialog__head { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.dialog__head h2 { margin: 0; font-size: 1.1rem; }
.pile-dialog { width: min(420px, 92vw); max-height: 80vh; overflow: auto; }
.pile-dialog__note { margin: 4px 0 8px; }
.pile-list { margin: 0; padding-left: 28px; display: flex; flex-direction: column; gap: 2px; }
.pile-list__item { padding: 2px 4px; }
.pile-list__item--effect { color: var(--accent); }
.pile-list__num { display: inline-block; min-width: 24px; margin-right: 6px; }
.confirm-dialog, .match-over { width: min(460px, 92vw); }
.match-over h2 { margin-top: 0; }
.table-simple { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 0.9rem; }
.table-simple th, .table-simple td { border-bottom: 1px solid var(--border); padding: 4px 6px; text-align: left; }
