@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #173e35;
  background: #e9e5d8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #173e3528;
  background: #fffaf0;
  border-radius: 8px;
  padding: 10px 14px;
  color: #173e35;
  font-weight: 600;
}
button:hover {
  background: #e5ecd9;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d97241;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  border-bottom: 1px solid #173e351c;
  position: relative;
  z-index: 2;
  background: #f4f0e6e8;
}
.brand {
  font:
    700 34px "Space Grotesk",
    sans-serif;
  letter-spacing: -2px;
  text-decoration: none;
  color: #173e35;
}
.brand span {
  font:
    600 10px "DM Sans",
    sans-serif;
  letter-spacing: 2px;
  margin-left: 16px;
}
#roomBar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
#world {
  position: fixed;
  inset: 86px 0 0;
  z-index: 0;
}
#world canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#welcome {
  position: relative;
  width: 520px;
  margin: 58px 0 0 7%;
  padding: 32px;
  background: #f4f0e6f5;
  border: 1px solid #fff7;
  border-radius: 18px;
  box-shadow: 0 18px 70px #173e3515;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #6e7d63;
}
h1 {
  font:
    500 clamp(42px, 4.5vw, 64px)/1.04 "Space Grotesk",
    sans-serif;
  letter-spacing: -3px;
  margin: 20px 0;
}
p {
  font-size: 15px;
  line-height: 1.6;
  color: #6b756a;
}
em {
  font-style: normal;
  color: #bd5a35;
}
label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 18px 0 8px;
}
label span {
  font-weight: 400;
  float: right;
  letter-spacing: 0;
}
input {
  border: 1px solid #173e3528;
  background: #fffdf6;
  border-radius: 8px;
  padding: 13px;
  color: #173e35;
  min-width: 0;
}
#joinForm input {
  width: 100%;
}
#code {
  text-transform: uppercase;
}
.primary {
  background: #173e35;
  color: #fff9e8;
  border-color: #173e35;
}
.primary:hover {
  background: #285548;
}
#enter {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  text-align: left;
}
small {
  font-size: 11px;
  color: #77816e;
}
#joinForm small {
  display: block;
  margin-top: 10px;
}
.welcome-foot {
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 27px;
  color: #808772;
}
h2 {
  font:
    500 34px "Space Grotesk",
    sans-serif;
  letter-spacing: -1px;
  margin: 7px 0;
}
.scene-caption {
  position: absolute;
  top: 120px;
  left: 4%;
  pointer-events: none;
}
.scene-caption p {
  font-size: 12px;
}
.scene-caption h2 {
  font-size: 44px;
}
#tables {
  position: absolute;
  right: 28px;
  top: 122px;
  width: 275px;
  background: #faf7edf5;
  border: 1px solid #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 40px #173e351a;
}
.section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.table-card {
  padding: 16px 0;
  border-top: 1px solid #173e351a;
}
.table-card strong {
  font-size: 16px;
}
.table-card small {
  display: block;
  margin: 5px 0 12px;
}
.seats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.seats button {
  padding: 10px 3px;
  font-size: 10px;
}
.legend {
  font-size: 10px;
  color: #7a826f;
  margin-top: 10px;
}
.live-dot {
  display: inline-block;
  background: #76a568;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}
#voiceBar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: #173e35;
  color: #fff9e8;
  border: 1px solid #ffffff24;
  box-shadow: 0 8px 25px #0002;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  gap: 35px;
  align-items: center;
  max-width: 96vw;
  width: 650px;
}
#voiceBar strong {
  font-size: 12px;
}
#voiceBar small {
  display: block;
  font-size: 10px;
  color: #b7c6ae;
  margin-top: 5px;
}
.voice-buttons {
  display: flex;
  gap: 7px;
  margin-left: auto;
}
.voice-buttons button {
  font-size: 11px;
  white-space: nowrap;
  background: #285347;
  color: #fffaec;
  border-color: #ffffff35;
}
.voice-buttons button.active {
  background: #cee2a7;
  color: #173e35;
}
#tablePanel {
  position: relative;
  max-width: 1120px;
  margin: 22px auto 112px;
  background: #f6f2e8;
  border: 1px solid #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 60px #173e3530;
}
.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-heading h2 span {
  color: #c66a42;
}
.table-heading button {
  font-size: 12px;
}
#members {
  display: flex;
  gap: 8px;
  margin: 12px 0 22px;
  flex-wrap: wrap;
}
.member {
  border: 1px solid #173e3520;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  background: #e7ebdf;
}
.member.speaking {
  box-shadow: 0 0 0 2px #77a658;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
}
.drawing-area {
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #173e3520;
  overflow: hidden;
}
.canvas-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #173e3518;
  font-size: 12px;
}
#timer {
  color: #bd5a35;
  white-space: nowrap;
}
#choices {
  display: flex;
  gap: 8px;
  justify-content: center;
  background: #edf0e3;
}
#choices:not(:empty) {
  padding: 12px;
}
.canvas-wrap {
  position: relative;
}
#canvas {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  touch-action: none;
  cursor: crosshair;
}
#canvasMessage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  white-space: pre-line;
  color: #7a846e;
  font-size: 17px;
  line-height: 1.7;
  padding: 15px;
}
#tools {
  display: flex;
  gap: 5px;
  padding: 10px;
  background: #f1f0e9;
  flex-wrap: wrap;
}
#tools button,
#tools select {
  font-size: 11px;
  padding: 7px;
}
#color {
  width: 36px;
  height: 31px;
  padding: 3px;
}
#eraser[aria-pressed="true"] {
  background: #cee2a7;
}
.game-side {
  display: flex;
  flex-direction: column;
  min-height: 350px;
}
.score {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #173e3518;
}
.score b {
  color: #b36038;
}
#messages {
  flex: 1;
  max-height: 200px;
  min-height: 100px;
  overflow: auto;
  margin: 16px 0;
  font-size: 12px;
  line-height: 1.7;
}
.correct {
  color: #4b7e39;
  font-weight: bold;
}
#guessForm {
  display: flex;
  gap: 5px;
}
#guess {
  width: 100%;
  font-size: 12px;
  padding: 10px;
}
#guessForm button {
  font-size: 11px;
  padding: 8px;
}
#start {
  margin-top: 12px;
}
#gameHint {
  font-size: 11px;
  margin-bottom: 0;
}
#toast {
  position: fixed;
  z-index: 20;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #bd5a35;
  color: white;
  border-radius: 9px;
  padding: 12px 20px;
  max-width: 90vw;
  font-size: 13px;
  display: none;
}
#connection {
  position: fixed;
  top: 86px;
  left: 0;
  right: 0;
  background: #bd5a35;
  color: #fff;
  padding: 9px;
  text-align: center;
  font-size: 12px;
  z-index: 10;
}
#touch {
  display: none;
  position: fixed;
  bottom: 120px;
  left: 15px;
  text-align: center;
  touch-action: none;
}
#touch button {
  width: 43px;
  height: 43px;
  margin: 2px;
  background: #fffbe6d9;
  user-select: none;
}
@media (max-width: 800px) {
  header {
    height: 70px;
    padding: 0 18px;
  }
  .brand {
    font-size: 28px;
  }
  .brand span {
    display: none;
  }
  #roomBar {
    gap: 6px;
    font-size: 11px;
  }
  #roomBar button {
    padding: 8px;
    font-size: 10px;
  }
  #world {
    top: 70px;
  }
  #welcome {
    width: calc(100% - 32px);
    max-width: 440px;
    margin: 30px auto;
    padding: 25px;
  }
  h1 {
    font-size: 47px;
  }
  .scene-caption {
    top: 94px;
    left: 20px;
  }
  .scene-caption h2 {
    font-size: 30px;
  }
  .scene-caption p {
    max-width: 180px;
  }
  #tables {
    top: auto;
    bottom: 118px;
    right: 14px;
    width: 200px;
    padding: 13px;
  }
  .table-card {
    padding: 9px 0;
  }
  .table-card small {
    font-size: 9px;
    margin: 4px 0 7px;
  }
  .table-card strong {
    font-size: 13px;
  }
  .section-title {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .seats button {
    font-size: 9px;
  }
  .legend {
    font-size: 9px;
  }
  #voiceBar {
    bottom: 10px;
    padding: 12px;
    gap: 10px;
    width: 96%;
    flex-wrap: wrap;
  }
  #voiceBar small {
    font-size: 9px;
  }
  .voice-buttons button {
    padding: 10px 8px;
    font-size: 10px;
  }
  #touch {
    display: block;
  }
  #tablePanel {
    margin: 12px 10px 118px;
    padding: 14px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .game-side {
    min-height: 0;
  }
  #messages {
    min-height: 60px;
    max-height: 110px;
  }
  #scoreboard {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .score {
    gap: 15px;
  }
  #members {
    margin-bottom: 12px;
  }
  h2 {
    font-size: 27px;
  }
  .canvas-top {
    font-size: 11px;
    padding: 10px;
  }
  #connection {
    top: 70px;
  }
}
