/* GamePal 聊天區：上內容、下輸入列。元件是輸入列／繼續／等待豆豆／格子封面那種子。 */
html.is-chat,
html.is-chat body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
.hall.with-feed.is-chat {
  height: 100dvh;
  min-height: 100dvh;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.hall.is-chat .feed,
.hall.is-chat #photo-rail,
.hall.is-todo .feed,
.hall.is-todo #photo-rail,
.hall.is-chat .todo-list,
.hall:not(.is-todo) .todo-list,
.hall.is-invite .todo-list,
.hall.is-booting .todo-list {
  display: none !important;
}
.hall.is-todo {
  height: 100dvh;
  min-height: 100dvh;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.todo-list {
  display: none;
  width: min(720px, 100%);
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 20px;
}
.hall.is-todo .todo-list:not([hidden]) {
  display: block;
}
.todo-empty {
  margin: 16px 8px;
  color: var(--mute, #737373);
  font-size: 15px;
}
.todo-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 6px;
  border: 0;
  border-bottom: 1px solid var(--line, #dbdbdb);
  background: transparent;
  text-align: left;
  color: inherit;
}
.todo-mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  padding: 0;
  border: 1.6px solid #c7c7cc;
  border-radius: 50%;
  background: transparent;
}
.todo-mark svg {
  display: none;
  width: 14px;
  height: 14px;
}
.todo-row.is-done .todo-mark {
  border-color: #34c759;
  background: #34c759;
}
.todo-row.is-done .todo-mark svg {
  display: block;
  margin: 4px auto 0;
}
.todo-body {
  min-width: 0;
  flex: 1;
}
.todo-title {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}
.todo-row.is-done .todo-title {
  color: var(--mute, #737373);
}
.todo-sub {
  display: block;
  margin-top: 3px;
  color: var(--mute, #737373);
  font-size: 13px;
  line-height: 1.35;
}
.home-chat {
  display: none;
  width: min(720px, 100%);
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 calc(8px + var(--kb, 0px));
}
.home-chat[hidden] {
  display: none !important;
}
.hall.is-chat .home-chat:not([hidden]) {
  display: flex;
}
.home-chat .play-log,
.play-stage .play-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: auto;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 12px;
}
.play-line {
  display: flex;
  flex: 0 0 auto;
  max-width: 82%;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}
.play-line.is-me { align-self: flex-end; }
.play-line.is-pal { align-self: flex-start; }
.play-bubble {
  min-width: 0;
  padding: 10px 14px;
  border-radius: 18px;
  word-break: break-word;
}
.play-bubble p {
  margin: 0;
  white-space: pre-wrap;
}
.play-bubble a {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}
.play-line.is-pal .play-bubble a {
  color: #0b57d0;
}
.play-line.is-me .play-bubble {
  background: var(--rose, #478cbf);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.play-line.is-pal .play-bubble {
  background: #e9e9ef;
  color: #1c1c1e;
  border-bottom-left-radius: 6px;
}
.play-line.is-job { display: none !important; }
.play-shot {
  display: block;
  width: 100%;
  max-height: 28vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  margin: 8px 0 0;
}
.play-shot.is-on { opacity: 1; }
.play-shot-cap {
  display: block;
  color: #737373;
  font-size: 13px;
  margin-top: 4px;
}
.home-chat .play-input { width: 100%; }
.home-chat .invite-wait.is-chat-wait,
.play-stage .invite-wait.is-chat-wait {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home-chat .invite-wait.is-chat-wait .thinking-five,
.play-stage .invite-wait.is-chat-wait .thinking-five {
  margin: 0 0 14px;
}
.home-chat .invite-wait.is-chat-wait .invite-wait-bar,
.play-stage .invite-wait.is-chat-wait .invite-wait-bar {
  margin: 0;
}
.play-job {
  margin: 0 0 6px;
  color: #737373;
  font-size: 14px;
  text-align: center;
}
