#game-container {
  width: 390px;
  height: 844px;
  max-height: 100dvh;
  background: var(--bg-container);
  border: 8px solid #fff;
  border-radius: 40px;
  box-shadow: var(--shadow-shell);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.status-bar {
  padding: calc(16px + env(safe-area-inset-top)) 18px 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: var(--bg-container);
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  z-index: 4;
}

.status-left,
.status-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-tag {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
  background: var(--bg-global);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
}

.status-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-right {
  justify-content: flex-end;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialogue-history-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-container);
  scrollbar-width: none;
}

.dialogue-history-container::-webkit-scrollbar {
  display: none;
}

.bottom-interaction-area {
  flex-shrink: 0;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interaction-tip {
  min-height: 18px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.reset-control {
  display: flex;
  justify-content: center;
}

@media (max-width: 500px) {
  body {
    align-items: stretch;
  }

  #game-container {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
  }
}

@media (max-width: 340px) {
  .status-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dialogue-history-container,
  .bottom-interaction-area {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bubble-content-wrap {
    max-width: 76%;
  }
}
