:root {
  color: #f4efe4;
  background: #10261e;
  font: 16px/1.4 "Segoe UI", sans-serif;
}

body { margin: 0; }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px;
}

h1 { font-size: 1.6rem; margin: 0 52px 12px 0; }

#top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

#tools {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

#leave {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}

#leave:hover { background: #1f6b4a; }

button, input, select { font: inherit; color: inherit; }

button {
  background: #1f6b4a;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}

form, #menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

#menu[hidden],
#table[hidden],
#seat-name[hidden],
#pass[hidden] {
  display: none !important;
}

body.playing h1,
body.playing #menu {
  display: none;
}

#table:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px 16px;
  background: #10261e;
  overflow: hidden;
}

label { display: flex; flex-direction: column; gap: 4px; }

input, select {
  background: #0e2a22;
  border: 1px solid #d7c4a3;
  border-radius: 8px;
  padding: 8px;
  min-height: 44px;
}

canvas {
  width: 100%;
  height: min(72vh, 720px);
  background: #14382c;
  border-radius: 12px;
  touch-action: manipulation;
}

#table:not([hidden]) canvas {
  flex: 1 1 0;
  width: 100%;
  height: 0;
  min-height: 0;
}

#status { margin: 0 52px 0 0; }

#status:empty { display: none; }

#prompt, #blurb, #note { margin: 0; }

#prompt:empty { display: none; }

#dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
}

#turn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

#seat-name {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 8px;
  background: #2f9e57;
  color: #10261e;
  font-weight: 650;
  line-height: 1.4;
}
